OSDN Git Service

* expr.h (lang_expand_expr): Delete obsolete prototype.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-03-05  Roger Sayle  <roger@eyesopen.com>
2
3         * expr.h (lang_expand_expr): Delete obsolete prototype.
4
5 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
6
7         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
8
9 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
10
11         * config/h8300/h8300.md (a peephole2): Generalize to
12         accept a memory operand.
13
14 Wed Mar  5 19:34:18 2003  Olivier Hainque <hainque@act-europe.fr>
15
16         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
17         * config/alpha/alpha.c (print_operand, case '+'): New.
18         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
19         (call_value_osf_1_noreturn): Likewise.
20
21 Wed Mar  5 18:55:02 2003  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22
23         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
24         (expand_end_bindings): Likewise.
25
26 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27
28         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
29         (epilogue): Don't generate return_external_pic when emitting PA 2.0
30         code.
31
32 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
33
34         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
35
36         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
37
38         * hooks.c (hook_rtx_rtx_null): New.
39
40         * hooks.h (hook_rtx_rtx_null): Protoize.
41
42         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
43         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
44
45         * target.h (struct gcc_target): Add dwarf_register_span.
46
47         * dwarf2out.c (multiple_reg_loc_descriptor): New.
48         (one_reg_loc_descriptor): New.
49         (reg_loc_descriptor): Add support for values that span more than
50         one register.
51
52 Wed Mar  5 23:16:57 CET 2003  Jan Hubicka  <jh@suse.cz>
53
54         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
55         * alias.c:  Include cgraph.h
56         (mark_constant_function): Use cgraph_rtl_info.
57         * calls.c:  Include cgraph.h
58         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
59         calls.
60         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
61         * cgraph.c (cgraph_rtl_info): New function.
62         * cgraph.h (cgraph_rtl_info): Declare
63         (cgraph_rtl_info): Likewise.
64         * function.h (struct function): Add recursive_call_emit.
65         * toplev.c: Include cgraph.h.
66         (rest_of_compilation): Set preferred_incoming_stack_boundary.
67
68 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
69
70         * config/h8300/h8300.c (output_simode_bld): Clear the
71         destination first if possible.
72         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
73         alternative.
74         (extzv_1_r_inv_h8300hs): Likewise.
75
76 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
77
78         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
79         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
80         * cfgloop.c (flow_loop_free): Made global.
81         (establish_preds): New static function.
82         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
83         (get_loop_exit_edges): New.
84         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
85         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
86         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
87         loops.
88         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
89         removability of an edge.
90         (fix_irreducible_loops): New static function.
91         (find_path, remove_path): Add ability to remove enclosing loops.
92         (unloop): New.
93         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
94         flags.
95         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
96         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
97         not neccessary.
98         (decide_peel_completely, peel_loops_completely): Allow complete peeling
99         of non-duplicable once rolling loops.
100         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
101
102 Wed Mar  5 21:40:57 2003  J"orn Rennecke <joern.rennecke@superh.com>
103
104         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
105         for align_jumps is 4.
106
107         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
108         use GENERAL_REGS.
109
110 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
111
112         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
113         according to va_arg type.
114         (EXPAND_BUILTIN_VA_ARG): Remove.
115         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
116         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
117
118 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
119
120         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
121         else clauses.
122
123 2003-03-05  Michael Matz  <matz@suse.de>
124
125         * i386/i386.c (ix86_save_reg): Also test
126         current_function_uses_const_pool.
127
128 2003-03-05  Michael Matz  <matz@suse.de>
129
130         * unwind.h: Add the GPL exception.
131         * Makefile.in (USER_H): Add unwind.h.
132
133 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
134
135         PR c/9799
136         * c-typeck.c (push_init_level): Add sanity check.
137
138 Wed Mar  5 02:04:04 CET 2003  Jan Hubicka  <jh@suse.cz>
139
140         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
141         RTL inlining is done.
142
143         * cgraphunit.c (cgraph_mark_local_functions): New local function.
144         (cgraph_optimize): Mark local functions.
145         * i386-protos.h (init_cumulative_args): Update prototype.
146         * i386.c (init_cumulative_args): Use register passing convention for
147         local functions.
148
149         * cgraph.c (cgraph_global_info_ready): New global variable
150         (cgraph_local_info, cgraph_global_info): New functions.
151         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
152         structures.
153         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
154         Declare.
155         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
156         (cgraph_mark_functions_to_output): Use inline_many.
157         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
158         (cgraph_expand_functions): Expand inline functions last.
159         (cgraph_optimize): Do not emit uneeded functions.
160
161 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
162
163         * expr.c (convert_modes): Check for legal hard register.
164
165 2003-03-04  Tom Tromey  <tromey@redhat.com>
166
167         * doc/sourcebuild.texi (Front End Directory): Document tags.
168         * configure: Rebuilt.
169         * configure.in (target_list): Added tags.
170         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
171         TAGS files by reference.
172         * objc/Make-lang.in (objc.tags): New target.
173
174 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
175
176         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
177         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
178         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
179         gcov_read_string, gcov_write_length): Modified to enable reading/
180         writing of whole .da file just once.
181         (da_file_open, da_file_close, da_file_eof, da_file_error,
182         da_file_position, da_file_seek, da_file_write, da_file_read): New
183         functions.
184         (actual_da_file, actual_da_file_position, actual_da_file_length,
185         actual_da_file_buffer, actual_da_file_buffer_size): New static
186         functions.
187         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
188         just once.
189
190
191 2003-03-04  Andreas Schwab  <schwab@suse.de>
192
193         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
194         offset without frame pointer.
195
196 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
197
198         * expr.c (expand_expr): Call promote_mode to set unsignedp.
199
200 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
201
202         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
203         * configure: Regenerated.
204         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
205
206 2003-03-04  Andreas Jaeger  <aj@suse.de>
207
208         * configure.in: Check for <memcheck.h>.
209         * configure: Regenerated.
210
211         * config.in: Define HAVE_MEMCHECK_H.
212
213         * ggc-common.c: Use <memcheck.h> if available instead of
214         <valgrind.h>.
215         * ggc-page.c: Likewise.
216         * cppfiles.c: Likewise.
217
218 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
219
220         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
221
222 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
223
224         PR c/9262
225         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
226         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
227
228 Tue Mar  4 11:30:04 CET 2003  Jan Hubicka  <jh@suse.cz>
229
230         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
231         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
232         for -O3.
233
234 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
235
236         * configure.in: Delete three unused variables.  Move a variable
237         definition closer to its use.  Simplify use_collect2 logic.  Start to
238         organize.  Simplify tests for in-tree gas and ld.
239         * configure: Regenerate.
240
241 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
242
243         * Makefile.in: Update.
244         * c-common.c (flag_no_line_commands, flag_no_output,
245         flag_dump_macros, flag_dump_includes): New.
246         * c-common.h (flag_no_line_commands, flag_no_output,
247         flag_dump_macros, flag_dump_includes, preprocess_file): New.
248         (init_c_lex): Update prototype.
249         * c-lex.c (init_c_lex): Update prototype; move some code to
250         c_common_init.
251         * c-opts.c (preprocess_file): Subsume into c_common_init.
252         (c_common_decode_option): Update flags.
253         (c_common_init): Move code from preprocess_file and init_c_lex.
254         (sanitize_cpp_opts): Update.
255         * c-ppoutput.c: New, cppmain.c almost verbatim.
256         * cpphash.h (struct printer): Remove.
257         (struct cpp_reader): Remove print.
258         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
259         cpp_preprocess_file): Remove.
260         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
261         and dump_includes.
262         * cppmain.c: Remove.
263         * doc/passes.texi: Update.
264
265 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
266
267         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
268         (assign_stack_local_1): Perform overall stack alignment only when
269         STACK_ALIGNMENT_NEEDED is non-zero.
270         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
271
272         * pa.c (compute_frame_size): Rename fsize to size.  Account for
273         alignment to a word boundary before general register save block.  Only
274         account for double-word alignment before floating point register save
275         block if one or more are saved.  Don't allocate space for %r3 when
276         frame pointer is needed.
277         (hppa_expand_prologue): Include alignment to word boundary in local
278         frame size.
279         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
280         (STACK_ALIGNMENT_NEEDED): Define.
281
282 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
283
284         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
285         global register variables.
286
287 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
288
289         * reload.c (reload_adjust_reg_for_mode): New function.
290         (subst_reloads): Call it.
291         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
292         * reload.h (reload_adjust_reg_for_mode): Declare.
293         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
294         Call it.
295
296 2003-03-03  James E Wilson  <wilson@tuliptree.org>
297
298         * optabs.c (add_equal_note): Delete SUBREG_REG use.
299         Fixes PR c/7872.
300
301 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
302
303         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
304         (*ixorsi3_lshiftrt_16): New.
305         (*iorsi3_ashift_16): Remove.
306
307 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
308
309         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
310         pattern.
311
312 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
313
314         * doc/install.texi (Specific): Update entry for powerpc-darwin.
315
316 2003-03-03  Richard Henderson  <rth@redhat.com>
317
318         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
319
320 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
321
322         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
323         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
324         (rs6000_variable_issue): Do not return negative value.
325         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
326         scheduling pass.
327
328 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
329
330         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
331         prune_unused_types calls.
332
333 2003-03-03  Jason Merrill  <jason@redhat.com>
334
335         * tree-inline.c (find_builtin_longjmp_call): Save and restore
336         lineno and input_filename.
337         (find_alloca_call): Likewise.
338         (inlinable_function_p): Run the langhook earlier.
339
340         * calls.c (compute_argument_addresses): Give the new MEMs a
341         minimum alignment of PARM_BOUNDARY.
342
343 Mon Mar  3 20:45:25 2003  J"orn Rennecke <joern.rennecke@superh.com>
344
345         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
346         subtarget_asm_isa_spec.
347         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
348         (ASM_SPEC): Define as SH_ASM_SPEC.
349         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
350         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
351         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
352         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
353
354         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
355         and align_jumps if not set.
356         Force align_jumps to be at least 2.
357         When relaxing, force align_functions to be at least the maximum of
358         align_loops, align_jumps and 4.
359         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
360         (sh_loop_align): Honour align_loops_log.
361
362         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
363         to check for indirect_jump_scratch.
364         (indirect_jump_scratch): Add second set.
365         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
366         when looking for indirect_jump_scratch.
367         Extract scratch register taking new structure of indirect_jump_scratch
368         into account.
369         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
370
371 Mon Mar  3 19:07:21 CET 2003  Jan Hubicka  <jh@suse.cz>
372
373         * calls.c (rtx_for_function_call): Take the address as an argument
374         (expand_call): Do not modify the expression.
375
376         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
377         optimizing.
378
379 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
380
381         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
382         TARGET_H8300H and TARGET_H8300S.
383
384 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
385
386         * config/h8300/h8300.md (a peephole2): New.
387
388 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
389
390         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
391         operands[0] and operands[1] are different.
392
393 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
394
395         * reload1.c (reload_cse_move2add): Remove variable success.
396
397 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
398
399         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
400         warnings.
401
402 2003-03-02  Richard Henderson  <rth@redhat.com>
403
404         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
405         * config.in, configure: Rebuild.
406         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
407         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
408         paired ldtoffx and ldxmov annotations.
409         (load_symptr_internal1): Remove.
410         (load_symptr_high, load_symptr_low): New.
411
412 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
413
414         * c-incpath.c (add_path): Fix sysp assignment.
415
416 2003-03-02  Kurt Garloff  <garloff@suse.de>
417
418         * params.def: Introduce parameter max-inline-insns-rtl for
419         a separate limit for the RTL inliner.
420         * params.h: Likewise.
421         * integrate.c (function_cannot_inline_p): Use it.
422         * toplev.c (decode_f_option): Set multiple parameters
423         controlling inlining with -finline-limit.
424         * params.def: Fix orthographic and typographic errors.
425         * doc/invoke.texi: Document parameters controlling inlining
426         and the way -finline-limit sets multiple of them.
427
428         * tree.h (struct tree_decl): Introduce inlined_function_flag,
429         recording whether the function became eligible for inlining
430         by a compiler flag rather than the declaration.
431         Provide DID_INLINE_FUNC macro to access it.
432         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
433         * cp/decl.c (grokfndecl): Likewise.
434         * toplev.c (rest_of_compilation): Likewise.
435         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
436         * print-tree.c (print_node): Report it.
437         * params.def: Introduce new max-inline-insns-auto limit.
438         * params.h: Likewise.
439         * tree-inline.c (inlinable_function_p): Apply it to functions
440         with DID_INLINE_FUNC set.
441         * toplev.c (decode_f_option): Initialize it from -finline-limit
442         value.
443         * doc/invoke.texi: Document new parameter.
444
445 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
446
447         * fix-header.c (read_scan_file): Don't reference simplify_path.
448
449 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
450
451         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
452         min/max instructions by default as may result in reload errors.
453
454 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
455
456         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
457         avoid reload problems; define split for it.
458
459 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
460
461         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
462         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
463         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
464         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
465         rotatert and rotate.
466         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
467         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
468         ("*rotrhi3_addr"): New split for shift insns on address register.
469         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
470         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
471         (___rotrhi3): Likewise.
472         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
473
474 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
475
476         * toplev.c (aux_base_name): Moved from toplev.h.
477         (filename): Constify.
478         (lang_dependent_init): Don't duplicate name.
479         (process_options): Set aux_base_name here, not...
480         (do_compile): ...here.  Change protoype.
481         (toplev_main): Move some code from do_compile.
482         * toplev.h: Remove aux_base_name.
483
484 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
485
486         * config/h8300/h8300-protos.h: Add a prototype for
487         iorxor_operator.
488         * config/h8300/h8300.c (print_operand): Handle 'c'.
489         (iorxor_operator): New.
490         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
491         * config/h8300/h8300.md (*iorhi3_zext): Remove.
492         (*iorsi3_zexthi): Likewise.
493         (*iorsi3_zextsi): Likewise.
494         (*xorhi3_zextqi): Likewise.
495         (*xorsi3_zexthi): Likewise.
496         (*xorsi3_zextsi): Likewise.
497         (*ixorhi3_zext): New.
498         (*ixorsi3_zext_qi): Likewise.
499         (*ixorsi3_zext_hi): Likewise.
500
501 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
502
503         * c-incpath.c (remove_component_p, simplify_path): Move back to
504         cppfiles.c.
505         (remove_duplicates): Use cpp_simplify_path.
506         * c-incpath.h (simplify_path): Remove.
507         * c-lex.c: Don't include c-incpath.h.
508         (init_c_lex): Remove simplify_path.
509         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
510         (find_or_create_entry, validate_pch): Revert.
511
512 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
513
514         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
515           an external cpp during compilation.
516         (option_map): Likewise.
517         * objc/lang-specs.h (default_compilers): Similarly.
518         * doc/invoke.texi: Document -no-integrated-cpp flag.
519
520 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
521
522         * config/h8300/h8300.md (zero_extendqisi2): Change to an
523         expander.
524         (*zero_extendqisi2_h8300): New.
525         (*zero_extendqisi2_h8300hs): New.
526         (two splitters): New.
527
528 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
529
530         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
531
532 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
533
534         * config/h8300/h8300.md (a peephole2): Remove dead code.
535
536 2003-03-01  Roger Sayle  <roger@eyesopen.com>
537
538         PR c++/9367
539         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
540         (BT_FN_INT_CONST_STRING_VALIST_ARG,
541         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
542         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
543         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
544         BT_FN_INT_STRING_CONST_STRING_VAR,
545         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
546         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
547         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
548         ATTR_NONNULL_3): Also include the nothrow attribute.
549         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
550         vsnprintf, vscanf, vsscanf): Don't define attributes here.
551         * builtins.def (putchar, puts): Make full C89 built-ins.
552         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
553         vsscanf, vsnprintf, vsprintf): New built-ins.
554         * c-common.c (c_common_nodes_and_builtins): Handle new macro
555         DEF_FUNCTION_TYPE_VAR_3.
556
557         * doc/extend.texi: Document these new built-in functions.
558
559 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
560
561         * config/h8300/h8300.md (a peephole2): New.
562
563 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
564
565         * predict.c (estimate_bb_frequencies): Correctly set
566         real_values_initialized after initialization.
567
568 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
569
570         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
571         cppinit.o, cppdefault.o, fix-header): Update.
572         * c-incpath.c: New file.
573         * c-incpath.h: New file.
574         * c-lex.c: Include c-incpath.h.
575         (init_c_lex): Register path simplifier.
576         * c-opts.c: Include cppdefault.h and c-incpath.h.
577         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
578         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
579         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
580         (missing_arg, c_common_decode_option): Handle them.
581         (c_common_post_options): Register include chains.
582         (print_help): Update.
583         * cppdefault.h (struct default include): Update.
584         Move some macros to ...
585         * cppdefault.c: ... here.
586         (cpp_include_defaults): Add extra field add_sysroot.
587         * cppfiles.c (include_file, search_from, find_or_create_entry,
588         cpp_included, find_include_file, remap_filename): Update for
589         renaming of search_path to cpp_path, and of the chain headers.
590         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
591         * cpphash.h (struct search_path): Move to cpplib.h.
592         (struct cpp_buffer, struct cpp_reader): Update.
593         (_cpp_simplify_pathname): Remove.
594         * cppinit.c: Don't include prefix.h and cppdefault.h.
595         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
596         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
597         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
598         no_pth, cpp_handle_options): Remove.
599         (struct pending_option): Remove chain members.
600         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
601         cpp_handle_option): Update.
602         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
603         (struct cpp_options): Remove quote_include, bracket_include,
604         include_prefix, include_prefix_len, verbose, ignore_srcdir,
605         no_standard_includes, no_standard_cplusplus_includes.
606         (struct cpp_callbacks): Add simplify_path.
607         (cpp_handle_options): Remove.
608         * fix-header.c: Include c-incpath.h.
609         (read_scan_file): Update to use c-incpath functionality.
610         * doc/passes.texi: Update.
611
612 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
613
614         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
615         satisfies EXTRA_CONSTRAINT 'U'.
616
617 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
618
619         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
620         register.
621         (*tst_extzv_memqi_1_n): Change to a splitter.
622         (a peephole2): Update.
623
624 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
625
626         * predict.c (estimate_bb_frequencies): Initialize the sreal
627         constants once per compilation.
628
629 2003-02-28  Richard Henderson  <rth@redhat.com>
630
631         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
632
633 2003-02-28  scott snyder  <snyder@fnal.gov>
634
635         * flags.h: Add flag_eliminate_unused_debug_types.
636         * toplev.c: Add flag_eliminate_unused_debug_types.
637         (f_options): Add -feliminate-unused-debug-types.
638         * dwarf2out.c (struct file_table): Add emitted member.
639         (splice_child_die): Fix the parent pointer for the child being
640         spliced.
641         (lookup_filename): Maintain file_table.emitted array.  Don't
642         output .file directive here.
643         (maybe_emit_file): (new)
644         (init_file_table): Set up file_table.emitted.
645         (dwarf2out_source_line): Use maybe_emit_file.
646         (dwarf2out_start_source_file): Use maybe_emit_file.
647         (dwarf2out_init): Use maybe_emit_file.
648         (prune_unused_types_walk_attribs): (new)
649         (prune_unused_types_mark): (new)
650         (prune_unused_types_walk): (new)
651         (prune_unused_types_prune): (new)
652         (prune_unused_types): (new)
653         (dwarf2out_finish): Call prune_unused_types if
654         flag_eliminate_unused_debug_types is set.
655         * doc/invoke.texi (Option Summary): Add
656         -feliminate-unused-debug-types.
657         (Debugging Options): Likewise.
658
659 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
660
661         * doc/invoke.texi: Change .pch to .gch.
662         * cppfiles.c (open_file_pch): Likewise.
663         * gcc.c (default_compilers): Likewise.
664
665 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
666
667         * floatlib.c: Remove.
668
669 2003-02-28  Jason Merrill  <jason@redhat.com>
670
671         * stor-layout.c (variable_size): Leave a "minus 1" outside the
672         SAVE_EXPR.
673
674 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
675
676         * config/rs6000/power4.md: Add compare bypass.
677
678 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
679
680         * config/netbsd.h: Update copyright years.
681         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
682         -pthread is specified on the command line.
683
684 2003-02-28  Dale Johannesen <dalej@apple.com>
685
686         * loop.c (struct movable): Add insert_temp, shrink savemode.
687         (scan_loop): Accept invariants that require copying; mark as
688         insert_temp.
689         (combine_movables): Don't combine insert_temp movables.
690         (move_movables): Insert copies for insert_temp movables.
691         Don't record the info based on regno for insert_temp's.
692
693 2003-02-28  Joel Sherrill <joel@OARcorp.com>
694
695         PR 9638/other
696         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
697         this constant defaults to 1.
698
699 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
700
701         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
702
703 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
704
705         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
706         ARMv5e processor, not just for XScale.  Instructions are predicable.
707         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
708
709 2003-02-28  Nick Clifton  <nickc@redhat.com>
710
711         * config/arm/arm.c (note_invalid_constants): Change parameter type
712         from bool to int.
713
714 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
715
716         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
717         test of bit 7.
718         (*tst_extzv_memqi_1_n): Likewise.
719         (a peephole2): New.
720
721 2002-02-28  Richard Sandiford  <rsandifo@redhat.com>
722
723         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
724         #ifndef __mips16.
725
726 Fri Feb 28 11:09:14 CET 2003  Jan Hubicka  <jh@suse.cz>
727
728         * combine.c (gen_lowpart_for_combine): Update handling of
729         subregs_of_mode
730         * flow.c (life_analysis, mark_used_regs): Likewise.
731         * regclass.c (subregs_of_mode): Turn into single bitmap.
732         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
733         dealing with subregs_of_mode
734         * regs.h (subregs_of_mode): Update prototype.
735
736 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
737
738         * emit-rtl.c (set_reg_attrs_for_parm): New function.
739         * rtl.h (set_reg_attrs_for_parm): New exported function.
740         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
741         set_reg_attrs_from_mem.
742
743 2003-02-27  Roger Sayle  <roger@eyesopen.com>
744             Zack Weinberg <zack@codesourcery.com>
745
746         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
747
748 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
749
750         * reload1.c (sext_for_mode): Remove.
751         (reload_cse_move2add): Use trunc_int_for_mode instead of
752         sext_for_mode.
753         (move2add_note_store): Likewise.
754         Reset register information if we see a set in non-integer
755         mode.
756
757 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
758
759         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
760         option.
761         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
762         * config/rs6000/aix51.h: Same.
763         * config/rs6000/aix52.h: Same.
764         * config/rs6000/power4.md: Additional VMX bypasses.
765
766 2003-02-27   Geert Bosch <bosch@gnat.com>
767
768         * toplev.c (print_version): Add indentation for GGC heuristics and
769         output after printing version information.
770
771 2003-02-27  James E Wilson  <wilson@tuliptree.org>
772
773         * combine.c (simplify_comparison): Require integral mode when
774         permuting SUBREG with AND.
775
776 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
777
778         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
779
780 2003-02-27  Nick Clifton  <nickc@redhat.com>
781
782         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
783         deleted when cirrus instructions were added.
784
785 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
786
787         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
788         POSIX thread support by default.
789
790 2003-02-27  Roger Sayle  <roger@eyesopen.com>
791
792         * config/i386/cygwin.h: Don't include any other files directly.
793         * config/i386/mingw32.h: Don't include cygwin.h directly.
794         * config.gcc (cygwin, mingw32, uwin): Instead make these files
795         explicit in the tm_files variable.
796
797 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
798
799         * config/rs6000/rs6000.md: Add TI constant splitter.
800
801 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
802
803         * builtins.c (purge_builtin_constant_p): Handle subreg of
804         constant_p_rtx too.
805
806         * function.c (assign_stack_local_1): Truncate constant added to
807         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
808
809 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
810
811         * config.gcc: Add power4 to PowerPC with_cpu list.
812
813 Wed Feb 26 19:46:25 CET 2003  Jan Hubicka  <jh@suse.cz>
814
815         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
816
817 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
818
819         * gcov-dump.c (print_prefix): Fix signedness warning.
820         * gcov-io.h (struct counter_section, struct counter_section_data): New.
821         (struct function_info): n_arc_counts field removed, n_counter_sections,
822         counter_sections fields added.
823         (struct gcov_info): arc_counts, n_arc_counts fields removed,
824         n_counter_sections, counter_sections fields added.
825         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
826         profile sections.
827         * profile.h (MAX_COUNTER_SECTIONS): New.
828         (struct section_info): New.
829         (struct profile_info): count_instrumented_edges,
830         count_edges_instrumented_now fields removed, n_sections, section_info
831         fields added.
832         (find_counters_section): Declare.
833         * profile.c (struct function_list): count_edges field removed,
834         n_counter_sections, counter_sections fields added.
835         (set_purpose, label_for_tag, build_counter_section_fields,
836         build_counter_section_value, build_counter_section_data_fields,
837         build_counter_section_data_value, build_function_info_fields,
838         build_function_info_value, build_gcov_info_fields,
839         build_gcov_info_value): New static functions.
840         (find_counters_section): New function.
841         (instrument_edges, get_exec_counts, compute_branch_probabilities,
842         branch_prob, create_profiler): Modified to support multiple profile
843         sections.
844
845 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
846
847         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
848         is 8 * STACK_BOUNDARY.
849         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
850
851 2003-02-26  Michael Matz  <matz@suse.de>
852
853         * ra-colorize.c (merge_moves): Fix list handling.
854
855 2003-02-26  Nick Clifton  <nickc@redhat.com>
856
857         * config/arm/arm.c (is_load_address): Rename to...
858         (arm_memory_load_p) ... this and make it check for SUBREGs and
859         constant loads that will be converted into loads from the
860         minipool.
861         (is_cirrus_insn): Rename to ...
862         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
863         of CIRRUS_NO with CIRRUS_NOT.
864         (cirrus_reorg): Use renamed functions.
865         (note_invalid_constants): Change from a void function to bool.
866         Add an extra parameter, saying whether the fixups should be
867         pushed.  Return true if fixups are needed.
868         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
869         of CIRRUS_NO with CIRRUS_NOT.
870         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
871         other floating point co-processors can also affect this.
872         * config/arm/arm.md ("type" attribute): Add mav_farith and
873         mav_dmult.  Replace references to "cirrus_type" attribute with
874         "type".
875         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
876         ("cirrus_type" attribute): Delete - use "type" instead.
877         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
878         'normal'.
879
880 Tue Feb 25 22:46:27 CET 2003  Jan Hubicka  <jh@suse.cz>
881
882         * objc-act.c: Include cgraph.h
883         (mark_referenced_methods): New function.
884         (objc_init): Call it.
885         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
886
887         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
888         mode.
889
890         * optabs.c (expand_fix): Do not widen the input operand.
891
892         * expr.c (emit_group_store):  Fix crash when converting single
893         register into complex register.
894
895         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
896         * alias.c: Include timevar.h
897         (init_alias_analysis):  Set timevar
898         * jump.c: Include timevar.h
899         (rebuild_jump_labels):  Set timevar
900         * regcalss.c: Include timevar.h
901         (reg_scan):  Set timevar
902         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
903
904 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
905
906         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
907
908         * Makefile.in (loop-unroll.o): New.
909         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
910         (unroll_and_peel_loops): Declare.
911         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
912         flag_old_unroll_loops.
913         * loop.c (loop_invariant_p): Ditto.
914         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
915         flag_old_unroll_all_loops.
916         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
917         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
918         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
919         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
920         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
921         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
922         PARAM_MAX_ONCE_PEELED_INSNS): New.
923         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
924         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
925         instead of old one.
926         (flag_peel_loops): New.
927         (lang_independent_options): The new flags added.
928         (rest_of_compilation): Call new unroller.
929         (process_options): Setup flags for coexistence of old and new unroller.
930         * doc/invoke.texi: Document new options.
931         * doc/passes.texi: Document new unroller pass.
932
933 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
934
935         * fixinc/fixincl.x: Regenerate
936
937 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
938
939         * function.c (assign_parms): Set reg_attrs for parameters passed in
940         registers.
941
942 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
943
944         PR target/9681
945         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
946
947 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
948
949         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
950         pseudo-op.
951
952 2003-02-25  Roger Sayle  <roger@eyesopen.com>
953
954         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
955         * cse.c (invalidate_skipped_set):  Likewise.
956         * integrate.c (subst_constants):  Likewise.
957         * jump.c (reversed_comparison_code_parts):  Likewise.
958         * loop.c (canonicalize_condition):  Likewise.
959         * simplify-rtx.c (simplify_relational_operation):  Likewise.
960
961 2003-02-25  Roger Sayle  <roger@eyesopen.com>
962
963         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
964         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
965         the appropriate macro to define built-in function.
966         (fmod,fmodf,fmodl): New built-in functions.
967
968         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
969
970 2003-02-25  Richard Henderson  <rth@redhat.com>
971
972         * config/i386/i386.c (function_arg): Pass variable sized
973         structures correctly on the stack.
974
975 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
976
977         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
978         does not reduce the cost of SET.
979
980 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
981
982         PR target/9732
983         * config/rs6000/rs6000.c (first_reg_to_save): Handle
984         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
985         (rs6000_emit_prologue): Likewise.
986         (rs6000_emit_epilogue): Likewise.
987         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
988         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
989
990 2003-02-25  Richard Henderson  <rth@redhat.com>
991
992         * real.c (real_to_integer2): Force overflow result only for
993         unsigned overflow.
994
995 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
996
997         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
998
999 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
1000             Richard Henderson  <rth@redhat.com>
1001
1002         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
1003         there is no similar load.
1004
1005 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
1006             Richard Henderson  <rth@redhat.com>
1007
1008         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
1009         sched-rgn.c.
1010         (add_forward_dependence): New function prototype.
1011
1012         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
1013         sched-init.h.
1014         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
1015         them to haifa-sched.c.
1016
1017         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
1018         haifa_classify_insn): Move them from sched-rgn.c.
1019
1020         * sched-deps.c (add_dependence): Return flag of creating a new
1021         entry.
1022         (add_forward_dependence): New function.
1023         (compute_forward_dependences): Use the function.
1024
1025         * sched-ebb.c (earliest_block_with_similiar_load): New function.
1026         (add_deps_for_risky_insns): New function.
1027         (schedule_ebb): Call the function.
1028
1029 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
1030
1031         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
1032         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
1033
1034         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
1035         opaque types fail.
1036
1037         * c-typeck.c (comptypes): Change call to vector_types_compatible
1038         to vector_opaque_p.
1039         (convert_for_assignment): Call vector_opaque_p instead of
1040         vector_types_compatible.
1041         (really_start_incremental_init): Disallow initialization of opaque
1042         types.
1043
1044         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
1045         Define TARGET_VECTOR_OPAQUE_P.
1046         (TARGET_INITIALIZER): Same.
1047
1048         * target.h (struct gcc_target): Remove vector_types_compatible.
1049         Add vector_opaque_p.
1050
1051         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
1052         Remove.
1053         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
1054         a vector type.  Change return type to bool.
1055         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
1056         (TARGET_VECTOR_OPAQUE_P): Define.
1057
1058         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
1059         target hook.
1060         Include target.h.
1061         (cp_parser_init_declarator): Fix typo in function comments.
1062
1063 Tue Feb 25 12:35:34 CET 2003  Jan Hubicka  <jh@suse.cz>
1064
1065         * Makefile.in (lcm.o):  Add dependency on function.h
1066         * lcm.c (function.h): Include.
1067         * i386.c (machine_function, ix86_stack_locals,
1068         * ix86_save_varrargs_registers) : Move to
1069         ...
1070         * i386.h (machine_function, ix86_stack_locals,
1071         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
1072         (ix86_optimize_mode_switching): New.
1073         * i386.md (fix patterns): Set ix86_optimize_mode_switching
1074
1075 2003-02-25  Nick Clifton  <nickc@redhat.com>
1076
1077         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
1078         of fourth arg is 'fndecl' not 'indirect'.  Update comment
1079         describing the function's parameters.
1080
1081 Mon Feb 24 22:08:22 CET 2003  Jan Hubicka  <jh@suse.cz>
1082
1083         * combine.c (simplify_shift_const):  Fix previous patch.
1084
1085 2003-02-24  Jeff Law  <law@redhat.com>
1086
1087         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
1088         alternative.
1089         (testsi_1, testhi_1, testqi_1): Likewise.
1090
1091 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1092
1093         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
1094         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
1095         * doc/extend.texi (Tru64 Pragmas): Reflect this.
1096
1097         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
1098         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
1099         * fixinc/fixincl.x: Regenerate.
1100         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
1101         testcase.
1102         Fixes PR c/5059, c/6126, other/9671.
1103
1104 2003-02-24  Roger Sayle  <roger@eyesopen.com>
1105
1106         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
1107         from handle_braces in "%{...}".
1108
1109 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1110
1111         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
1112         (prepare_move_operands): Handle TLS operands.
1113         (tls_symbolic_operand): New.
1114         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
1115         (legitimize_pic_address): Do nothing for the TLS symbol.
1116         (sh_encode_section_info): Handle TLS case.
1117         (sh_strip_name_encoding): Drop TLS encoding.
1118         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
1119         * config/sh/sh.h (SH_TLS_ENCODING): Define.
1120         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
1121         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
1122         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
1123         * config/sh/sh.md: Define TLS UNSPEC constants.
1124         (type): Add tls_load.
1125         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
1126         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
1127         ("tls_initial_exec"): New insn.
1128         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
1129         ("load_gbr"): New insn.
1130
1131         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
1132         * configure: Regenerate.
1133
1134 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
1135
1136         PR 9297, PR 9722
1137         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
1138         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
1139         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
1140         (enum block_op_methods): Reorder for better store_expr optimization.
1141         * expr.c (store_expr): Test bit 1 of "want_value" for call param
1142         stores, test bit 0 for original want_value meaning.  Pass
1143         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
1144         recursive calls, and calls to expand_param.
1145         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
1146         expected, set target to 0 rather than to subtarget.  Formatting.
1147
1148 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
1149
1150         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
1151
1152 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1153
1154         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
1155         new default behavior.
1156         * ggc-common.c: Include sys/resource.h.
1157         (ggc_rlimit_bound): New function.
1158         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
1159         defaults to account for rlimits.
1160
1161 2003-02-22  Richard Henderson  <rth@redhat.com>
1162
1163         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
1164
1165 2003-02-22  Kelley Cook <kelley@dwhoops.info>
1166
1167         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
1168         (ix86_tune_string): Rename from ix86_cpu_string.
1169
1170 2003-02-22  Kelley Cook <kelleycook@comcast.net>
1171
1172         * config/i386/i386.c: Replace "mcpu" with "mtune".
1173         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
1174         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
1175         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
1176         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
1177
1178 2003-02-23  Andreas Schwab  <schwab@suse.de>
1179
1180         * config.gcc: Delete references to m68k/t-linux and
1181         m68k/t-linux-aout.
1182         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
1183
1184 Sat Feb 22 20:22:19 CET 2003  Jan Hubicka  <jh@suse.cz>
1185
1186         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
1187         of track scheduling patch.
1188
1189 Sat Feb 22 19:29:28 CET 2003  Jan Hubicka  <jh@suse.cz>
1190
1191         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
1192         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
1193
1194 Sat Feb 22 12:42:16 CET 2003  Jan Hubicka  <jh@suse.cz>
1195
1196         * c-decl.c (c_expand_body_1): Fix.
1197
1198 Sat Feb 22 03:13:36 CET 2003  Jan Hubicka  <jh@suse.cz>
1199
1200         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
1201
1202         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
1203         when not optimizing.
1204         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
1205         when not expensive.
1206         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
1207         optimizing;  Delete trivially dead insns early; fix optimize check.
1208
1209         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
1210         dependency on cgraph.h
1211         * c-decl.c: Include cgraph.h
1212         (finish_function): Update call of tree_inlinable_function_p.
1213         * c-objc-common.c: Include cgraph.h
1214         * cgraph.h: New file.
1215         * cgraphunit.c: New file.
1216         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
1217         (cgraph_nodes, cgraph_n_nodes): Globalize.
1218         (cgraph_finalize_function, cgraph_finalize_compilation_unit
1219         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
1220         Move into cgraphunit.c
1221         * tree-inline.c: Include cgraph.h
1222         * tree-inline.c: Include cgraph.h
1223
1224 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
1225
1226         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
1227         for copying a register.
1228
1229 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1230
1231         PR other/3782
1232         * toplev.c (process_options): If flag_detailed_statistics is set,
1233         then set time_report as well.
1234
1235         PR c/8828
1236         * jump.c (never_reached_warning): Don't fall through BARRRIER
1237         insns.  Update comments to reflect what the function really does.
1238
1239 2003-02-21  Roger Sayle  <roger@eyesopen.com>
1240
1241         * fold-const.c (omit_one_operand): No longer static.
1242         * tree.h (omit_one_operand): Prototype here.
1243         (div_and_round_double): Keep fold-const.c prototypes together.
1244         * builtins.c (builtin_mathfn_code): Handle binary built-in
1245         funtions, such as "pow" and "atan2".
1246         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
1247         Simplify optimizations using "type" the builtin's return type.
1248
1249 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
1250
1251         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
1252         Fix functionalization typo.
1253
1254         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
1255         in an asm.
1256
1257 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1258
1259         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
1260         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
1261         documentation.
1262         * ggc-common.c: Include params.h
1263         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
1264         init_ggc_heuristics): New functions.
1265         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
1266         init_ggc_heuristics): Prototype.
1267         * toplev.c (print_version):  Output GGC heuristics.
1268         (parse_options_and_default_flags): Call init_ggc_heuristics.
1269
1270 Sat Feb 22 02:35:07 CET 2003  Jan Hubicka  <jh@suse.cz>
1271
1272         * i386.c (def_builtin):  Special case 64bit builtins.
1273         (MASK_SSE164, MASK_SSE264): New constants.
1274         (builtin_description): Add 64bit builtins.
1275         (ix86_init_mmx_sse_builtins): Likewise.
1276         * i386.h (enum ix86_builtins): Likewise.
1277         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
1278         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
1279         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
1280         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
1281         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
1282         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
1283         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
1284
1285 Sat Feb 22 00:48:22 CET 2003  Jan Hubicka  <jh@suse.cz>
1286
1287         * i386.c (builtin_description): Add __builtin_ia32_paddq and
1288         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
1289          and __builtin_ia32_psubq128.
1290         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
1291         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
1292         (mmx_adddi3, mmx_subdi3): New.
1293         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
1294         * xmmintrin.h (_mm_movepi64_pi64): New.
1295         (_mm_add_epi64, _mm_sub_epi64): fix.
1296         (_mm_mul_pu16): Rename to...
1297         (_mm_mul_su32): ... this one.
1298
1299         * builtins.c (expand_builtin_expect):  Do not predict
1300         flag_guess_branch_prob is not set.
1301         * c-semantics.c (expand_stmt): Likewise.
1302         * predict.c (predict_insn): Likewise.
1303         * stmt.c (expand_continue_loop): Likewise.
1304         * toplev.c (rest_of_compilation): Do not call
1305         note_prediction_to_br_prob and note_prediction_to_br_prob
1306         when not optimizing.
1307
1308 Fri Feb 21 23:10:13 CET 2003  Jan Hubicka  <jh@suse.cz>
1309
1310         * cfgrtl.c (commit_edge_insertions):  Call
1311         find_many_sub_basic_block only when some code has been emitted.
1312         (commit_edge_insertions_watch_calls): Bring into sync with
1313         commit_edge_insertions
1314
1315 Fri Feb 21 20:41:29 2003  J"orn Rennecke <joern.rennecke@superh.com>
1316
1317         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
1318
1319         * sh.md (binary_sf_op): Use extra constant operand instead of
1320         negating constant operand 4.
1321         * sh.c (sh_expand_binop_v2sf): Supply it.
1322
1323 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
1324
1325         * cpphash.h (struct lexer_state): Add directive_wants_padding.
1326         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
1327         for directives of type INCL.
1328         (glue_header_name, parse_include): Use get_token_no_padding.
1329         * cppmacro.c (replace_args): If directive_wants_padding,
1330         provide padding tokens.
1331
1332 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
1333
1334         * config/h8300/h8300.md (a peephole2): New.
1335
1336 Fri Feb 21 11:05:44 CET 2003  Jan Hubicka  <jh@suse.cz>
1337
1338         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
1339         (commit_edge_insertions): Call find_many_sub_basic_blocks
1340
1341         * reg-stack.c (convert_regs): Cleax aux for blocks.
1342
1343 Fri Feb 21 10:29:52 CET 2003  Jan Hubicka  <jh@suse.cz>
1344
1345         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
1346
1347 2003-02-21  Glen Nakamura  <glen@imodulo.com>
1348
1349         PR optimization/8613
1350         * builtins.c (expand_builtin): Emit postincrements before expanding
1351         builtin functions.
1352
1353 2003-02-21  Ben Elliston  <bje@redhat.com>
1354
1355         PR other/5634
1356         * doc/install.texi (Configuration): Explain using $HOME instead of
1357         the ~ metacharacter when referring to home directories.
1358
1359 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
1360
1361         * configure.in (TARGET_SYSTEM_ROOT): Set default to
1362         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
1363         '${exec_prefix}' (in addition to the expansion thereof) as
1364         relocatable.
1365         * configure: Rebuilt.
1366
1367 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
1368
1369         * config/h8300/h8300.md (addhi3_incdec): Change the name to
1370         *addhi3_incdec.
1371         (addsi3_incdec): Change the name to *addsi3_incdec.
1372
1373 2003-02-20  Roger Sayle  <roger@eyesopen.com>
1374
1375         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
1376
1377 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
1378
1379         PR fortran/9038
1380         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
1381         options to be ignored.
1382         (c_common_decode_option): Ignore them when preprocessing.
1383
1384 Thu Feb 20 21:41:19 CET 2003  Jan Hubicka  <jh@suse.cz>
1385
1386         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
1387         global variables.
1388         (lang_independent_options):  Add -fsched2-use-superblocks
1389         -fsced2-use-traces.
1390         (rest_of_compilation): Deal with it.
1391         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
1392         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
1393         Declare.
1394         * rtl.h (reg_to_stack):  Update prototype.
1395         * reg-stack.c (reg_to_stack): Return when something has changed;
1396         update liveness when executing after superblock scheduling.
1397
1398         * combine.c (simplify_shift_const):  Simplify few special cases
1399         into constants.
1400
1401 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
1402
1403         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
1404         (add.,subf.,neg.): Change attribute to fast_compare.
1405         All DFA descriptions updated.
1406
1407 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1408
1409         Change base class access representation.
1410         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
1411         TREE_VIA_PRIVATE): Remove.
1412         (BINFO_BASEACCESSES): New binfo elt.
1413         (BINFO_BASEACCESS): New accessor.
1414         (BINFO_ELTS): Increase.
1415         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
1416         (access_public_node, access_protected_node,
1417         access_private_node): New global nodes.
1418         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
1419         * dbxout.c (dbxout_type): Adjust.
1420         * dwarf2out.c (gen_inheritance_die): Add access parameter.
1421         (gen_member_die): Adjust.
1422         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
1423         (output_type): Adjust.
1424         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
1425
1426         Change base class access representation. Share virtual base
1427         binfos.
1428         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
1429         call.
1430         * cp/class.c (build_base_path): Likewise.
1431         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
1432         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
1433         (make_new_vtable): Adjust.
1434         (force_canonical_binfo_r): Delete.
1435         (force_canonical_binfo): Delete.
1436         (mark_primary_virtual_base): Delete.
1437         (dfs_unshared_virtual_bases): Delete.
1438         (mark_primary_bases): Adjust.
1439         (maybe_warn_about_overly_private_class): Adjust.
1440         (dfs_base_derived_from): Delete.
1441         (base_derived_from): Follow the inheritance chain.
1442         (struct find_final_overrider_data): Add vpath member.
1443         (dfs_find_final_overrider): Adjust.
1444         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
1445         (find_final_overrider): Adjust.
1446         (update_vtable_entry_for_fn): Adjust.
1447         (modify_all_vtables): Adjust.
1448         (walk_subobject_offsets): Adjust.
1449         (layout_nonempty_base_or_field): Adjust.
1450         (layout_empty_base): Remove last parameter. Adjust.
1451         (build_base_field): Adjust.
1452         (build_base_fields): Adjust.
1453         (propagate_binfo_offsets): Remove last parameter. Adjust.
1454         (dfs_set_offset_for_unshared_vbases): Delete.
1455         (layout_virtual_bases): Adjust.
1456         (finish_struct_1): Adjust.
1457         (init_class_processing): Don't init access nodes.
1458         (dfs_get_primary_binfo): Delete.
1459         (get_primary_binfo): Adjust.
1460         (dump_class_hierarchy_r): Remove most derived arg, add IGO
1461         parameter. Adjust.
1462         (dump_class_hierarchy): Adjust.
1463         (finish_vtbls): Adjust.
1464         (get_original_base): Delete.
1465         (build_vtt_inits): Adjust.
1466         (dfs_build_secondary_vptr_vtt_inits): Adjust.
1467         (dfs_ctor_vtable_bases_queue_p): Adjust.
1468         (build_ctor_vtbl_group): Adjust.
1469         (dfs_accumulate_vtbl_inits): Adjust.
1470         (build_vtbl_initializer): Adjust.
1471         (build_vbase_offset_vtbl_entries): Adjust.
1472         (add_vcall_offset_vtbl_entries_1): Adjust.
1473         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
1474         (access_*_node): Remove.
1475         (CANONICAL_BINFO): Delete.
1476         (BINFO_UNSHARED_MARKED): Remove.
1477         (BINFO_MARKED): Set LANG_FLAG_0 directly.
1478         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
1479         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
1480         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
1481         Delete.
1482         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
1483         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
1484         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
1485         Delete.
1486         (BINFO_DEPENDENT_BASE_P): New.
1487         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
1488         index.
1489         (markedp, unmarkedp): Adjust.
1490         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
1491         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
1492         find_vbase_instance, binfo_for_vbase): Delete.
1493         (copied_binfo, original_binfo): Declare.
1494         (finish_base_specifier): Add virtual_p arg.
1495         (unshare_base_binfos): Delete.
1496         (copy_base_binfos): Declare.
1497         (reverse_path): Delete.
1498         * cp/decl.c (xref_basetypes): Access and virtuality passed
1499         differently. Don't copy direct base binfos here. Call
1500         copy_base_binfos.
1501         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
1502         (initialize_vtbl_ptrs): Adjust.
1503         (expand_member_init): Adjust.
1504         * cp/parser.c (cp_parser_base_specifier): Adjust.
1505         * cp/pt.c (instantiate_class_template): Adjust.
1506         (get_template_base_recursive): Adjust.
1507         * cp/rtti.c (get_pseudo_ti_init): Adjust.
1508         (get_pseudo_ti_desc): Adjust.
1509         * cp/tree.c (unshare_base_binfos): Rename to ...
1510         (copy_base_binfos): ... here, reimplement.
1511         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
1512         (reverse_path): Remove.
1513         * cp/typeck.c (get_delta_difference): Adjust error messages.
1514         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
1515         * cp/search.c (lookup_base_r): Adjust.
1516         (dynamic_cast_base_recurse): Adjust.
1517         (canonical_binfo): Remove.
1518         (dfs_canonical_queue): Remove.
1519         (dfs_assert_unmarked_p): Remove.
1520         (assert_canonical_unmarked): Remove.
1521         (shared_marked_p, shared_unmarked_p): Remove.
1522         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
1523         (dfs_access_in_type): Adjust.
1524         (access_in_type): Adjust.
1525         (dfs_accessible_queue_p): Adjust.
1526         (dfs_accessible_p): Adjust.
1527         (is_subobject_of_p_1, is_subobject_of_p): Remove.
1528         (struct lookup_field_info): Remove from_dep_base_p field.
1529         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
1530         (lookup_field_r): Remove dependent base code.
1531         (lookup_member): Likewise.
1532         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
1533         (dfs_unmarked_real_bases_queue_p): Remove.
1534         (dfs_marked_real_bases_queue_p): Remove.
1535         (dfs_skip_vbases): Remove.
1536         (dfs_get_pure_virtuals): Adjust.
1537         (markedp, unmarkedp): Adjust.
1538         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
1539         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
1540         (dfs_unmark): Adjust.
1541         (dfs_get_vbase_types):Remove.
1542         (dfs_build_inheritance_graph_order): Remove.
1543         (get_vbase_types): Remove
1544         (dfs_find_vbase_instance): Remove.
1545         (find_vbase_instance): Remove.
1546         (dfs_debug_unmarkedp): Adjust.
1547         (dependent_base_p): Remove.
1548         (dfs_push_type_decls): Adjust.
1549         (dfs_push_decls): Adjust.
1550         (dfs_no_overlap_yet): Adjust.
1551         (copied_binfo): New function.
1552         (original_binfo): New function.
1553         (binfo_for_vbase): Remove.
1554
1555         Change base class access representation.
1556         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
1557         (add_interface_do): Likewise.
1558
1559 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
1560
1561         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
1562         * config/rs6000/power4.md (power4-store,power4-vecstore): New
1563         insn reservations.
1564         (power4-fpstore): Compact.
1565
1566 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
1567
1568         * config/h8300/h8300.md (*iorsi3_w): New.
1569
1570 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
1571
1572         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
1573         * rtl.c (reg_note_name): Likewise.
1574         * rtl.h (enum reg_note): Likewise.
1575         * doc/invoke.texi: Likewise.
1576         * doc/rtl.texi: Likewise.
1577
1578 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
1579
1580         * bb-reorder.c (find_traces_1_round): Fix comment typo.
1581
1582 2003-02-19  Roger Sayle  <roger@eyesopen.com>
1583
1584         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
1585         addition in the presence of signaling NaNs.
1586
1587 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
1588
1589         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
1590
1591 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1592
1593         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
1594         ORing with 0xffff??00 with the highest bit of the ?? part set.
1595         (compute_logical_op_length): Update.
1596         (compute_logical_op_cc): Likewise.
1597
1598 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
1599
1600         * bb-reorder.c (find_traces_1_round): Fixed condition for small
1601         destination block with multiple predecessors.
1602         (connect_traces): Check whether the block is a start of trace.
1603
1604 Wed Feb 19 19:00:24 CET 2003  Jan Hubicka  <jh@suse.cz>
1605
1606         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
1607         * function.c (assign_params): Likewise.
1608         * arm-protos.h (arm_init_cumulative_args): Update prototype.
1609         * arm.c (arm_init_cumulative_args): Update function.
1610         * arm.h (INIT_CUMULATIVE_ARGS): Update.
1611         * avr-protos.h (init_cumulative_args): Update prototype.
1612         * avr.c (init_cumulative_args): Update function.
1613         * avr.h (INIT_CUMULATIVE_ARGS): Update.
1614         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
1615         * d30v.c (d30v_init_cumulative_args): Update function.
1616         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
1617         * frv-protos.h (frv_init_cumulative_args): Update prototype.
1618         * frv.c (frv_init_cumulative_args): Update function.
1619         * frv.h (INIT_CUMULATIVE_ARGS): Update.
1620         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
1621         * pa.h (INIT_CUMULATIVE_ARGS): Update.
1622         * sparc-protos.h (init_cumulative_args): Update prototype.
1623         * sparc.c (init_cumulative_args): Update function.
1624         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
1625         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
1626
1627 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1628
1629         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
1630         (*ashiftsi_sextqi_7): Likewise.
1631
1632 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1633
1634         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
1635         ISO C99 and C++.
1636
1637         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
1638         for C++ on IRIX 6.5.1[89].
1639         * fixinc/tests/base/internal/sgimacros.h: New file.
1640
1641         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
1642         * fixinc/tests/base/internal/wchar_core.h: New file.
1643
1644         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
1645         socklen_t definition.
1646         * fixinc/fixincl.x: Regenerate.
1647         * fixinc/tests/base/sys/socket.h: New file.
1648         Fixes PR libgcj/9652.
1649
1650 Wed Feb 19 17:22:51 CET 2003  Jan Hubicka  <jh@suse.cz>
1651
1652         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
1653
1654 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
1655
1656         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
1657         align_jumps_max_skip and align_loops_max_skip.
1658
1659 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
1660
1661         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
1662         test size if named section.
1663
1664 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
1665
1666         * expr.c (expand_expr): Use gen_int_mode for the argument
1667         to gen_rtx_MULT.
1668
1669 Wed Feb 19 14:22:42 CET 2003  Jan Hubicka  <jh@suse.cz>
1670
1671         * i386.md (cosxf2):  Fix conditional.
1672
1673 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1674
1675         * config/h8300/h8300.md (extendqisi2): Change to an expander.
1676         (*extendqisi2_h8300): New.
1677         (*extendqisi2_h8300hs): Likewise.
1678
1679 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1680
1681         * config/h8300/h8300-protos.h: Update the prototype for
1682         split_adds_subs.  Remove the prototypes for
1683         const_int_le_2_operand and const_int_le_6_operand.
1684         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
1685         (const_int_le_2_operand): Remove.
1686         (const_int_le_6_operand): Likewise.
1687         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
1688         for const_int_le_2_operand and const_int_le_6_operand.
1689         * config/h8300/h8300.md: Update all uses of split_adds_subs.
1690         (a peephole2): New.
1691
1692 Tue Feb 18 23:50:59 CET 2003  Jan Hubicka  <jh@suse.cz>
1693
1694         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
1695         (cgraph_expand_function): Rewrite.
1696
1697 2003-02-18  Matt Austern <austern@apple.com>
1698
1699         * toplev.c, langhooks.c, langhooks-def.h: Move
1700         write_global_declarations from toplev.c to langhooks.c.
1701
1702 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1703
1704         * config/h8300/h8300.c (general_operand_src): Always check
1705         MODE.
1706         (general_operand_dst): Likewise.
1707
1708 2003-02-18  Roger Sayle  <roger@eyesopen.com>
1709
1710         * convert.c (convert_to_real): Also optimize (float)log(x) into
1711         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
1712
1713 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1714
1715         * config/sh/sh.c (unspec_caller_rtx_p): New.
1716         (sh_cannot_copy_insn_p): New.
1717         (TARGET_CANNOT_COPY_INSN_P): New.
1718
1719 2003-02-18  Richard Henderson  <rth@redhat.com>
1720
1721         * c-common.c (handle_used_attribute): Accept static data too.
1722
1723 2003-02-18  Nick Clifton  <nickc@redhat.com>
1724             Aldy Hernandez  <aldyh@redhat.com>
1725
1726         * testsuite/gcc.dg/20030218-1.c: New.
1727
1728         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
1729
1730         * target-def.h (TARGET_INITIALIZER): Add
1731         TARGET_VECTOR_TYPES_COMPATIBLE.
1732         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
1733
1734         * target.h (struct gcc_target): Add field vector_types_compatible.
1735
1736         * c-typeck.c (comptypes): Take into account
1737         TARGET_VECTOR_TYPES_COMPATIBLE.
1738         (convert_for_assignment): Same.
1739
1740         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
1741         (rs6000_spe_vector_types_compatible): New.
1742         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
1743
1744 2003-02-19  Andreas Schwab  <schwab@suse.de>
1745
1746         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
1747         * toplev.c: Include langhooks-def.h.
1748
1749 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
1750
1751         * config/mips/mips.h (enum processor_type): Sort entries
1752         alphabetically.
1753         * config/mips/mips.md (define_attr cpu): Sync with processor_type
1754         enum values, including adding entries that were missing.
1755
1756 Tue Feb 18 20:15:54 2003  J"orn Rennecke <joern.rennecke@superh.com>
1757
1758         * sh.c (calc_live_regs): Also check GET_CODE when checking if
1759         initial value for PR_REG is still the PR_REG register.
1760
1761 2003-02-18  Jim Wilson  <wilson@redhat.com>
1762
1763         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
1764         instruction in output template.
1765         (bsp_value): Change output template from string to C code, add %,
1766         before actual instruction.
1767         (flushrs): Mark as not predicable.
1768
1769 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
1770
1771         * inclhack.def (netbsd_bogus_semicolon): New fix.
1772         * fixincl.x: Rebuilt.
1773         * tests/base/ctype.h: Update.
1774
1775 2003-02-18  Roger Sayle  <roger@eyesopen.com>
1776
1777         * fold-const.c (negate_expr_p): New function to determine whether
1778         an expression can be negated cheaply.
1779         (fold) [MINUS_EXPR]: Use it to determine whether to transform
1780         -A - B into -B - A for floating point types.
1781
1782 2003-02-18  Roger Sayle  <roger@eyesopen.com>
1783
1784         * sbitmap.c (sbitmap_resize): New function.
1785         * sbitmap.h (sbitmap_resize): Prototype here.
1786         * recog.c (split_all_insns): Use sbitmap_resize.
1787
1788 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1789
1790         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
1791         insn length.
1792         (extendqisi2): Likewise.
1793         (*extendhisi2_h8300): Likewise.
1794
1795 2003-02-18  Matt Austern <austern@apple.com>
1796
1797         * langhooks.h, langhooks-def.h: introduce new langhook,
1798         final_write_globals, with write_global_declarations as default.
1799         * toplev.c: Move invocation of wrapup_global_declarations from
1800         compile_file to new function, write_global_declarations.  Change
1801         compile_file to use final_write_globals hook.  Change
1802         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
1803         conditional.
1804
1805 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1806
1807         * pa.md: Correct and enhance comment.
1808
1809 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
1810
1811         * gcc.c (validate_switches): Don't scan past closing '}'.
1812
1813 2003-02-18  Ben Elliston  <bje@redhat.com>
1814
1815         PR c++/1607
1816         * doc/extend.texi (Function Attributes): Document the effect of
1817         the C++ "this" parameter on the counting of arguments for the
1818         "format" and "format_arg" attributes.
1819
1820 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
1821
1822         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
1823         (__ev_stdw): Same.
1824         (__ev_stdh): Same.
1825
1826 Mon Feb 17 16:16:54 CET 2003  Jan Hubicka  <jh@suse.cz>
1827
1828         * recog.c (split_all_insns):  Fix memory overflow.
1829
1830 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1831
1832         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
1833         (cmphi): Likewise.
1834         (*cmphi_h8300): Likewise.
1835         (*cmphi_h8300hs): Likewise.
1836         (cmpsi): Likewise.
1837         (7 peephole2): Likewise.
1838
1839 Sun Feb 16 23:07:52 CET 2003  Jan Hubicka  <jh@suse.cz>
1840
1841         * c-typeck.c (build_c_cast):  Fold constant variables into
1842         initial values.
1843
1844 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1845
1846         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
1847         (Binaries): Ditto for Sinix/Reliant Unix.
1848
1849 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
1850
1851         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
1852         not overlap the final result register.
1853
1854 2003-02-16 Arend Bayer <arend.bayer@web.de>
1855            Richard Henderson  <rth@redhat.com>
1856
1857         PR c/8068
1858         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
1859         rearrange mult arguments for less recursion.
1860         (extract_muldiv): New.  Prevent runaway recursion.
1861
1862 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
1863
1864         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
1865         MASK_ALIGN_DOUBLE.
1866
1867 2003-02-15  Roger Sayle  <roger@eyesopen.com>
1868
1869         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
1870         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
1871         (ext_80387_constants_table): Global table of 80387 special constants
1872         guarded by ext_80387_constants_init flag when not initialized.
1873         (init_ext_80387_constants): New function to initialize this table.
1874         (standard_80387_constant_p): Extend to recognize extra 80387
1875         constants, in XFmode, on processors where this is a win.
1876         (standard_80387_constant_opcode): New function to return the
1877         opcode associated with standard_80387_constant_p.
1878         (standard_80387_constant_rtx): New function to return the XFmode
1879         CONST_DOUBLE associated with standard_80387_constant_p.
1880         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
1881
1882         * config/i386/i386-protos.h (standard_80387_constant_opcode):
1883         Prototype here.
1884         (standard_80387_constant_rtx): Likewise.
1885
1886         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
1887         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
1888         *movtf_integer): Simplify using new standard_80387_constant_opcode.
1889
1890 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
1891
1892         * doc/invoke.texi (Optimize Options): Correct @option syntax.
1893
1894 2003-02-15  Richard Henderson  <rth@redhat.com>
1895
1896         * Makefile.in (cfglayout.o): Depend on TARGET_H.
1897         * cfglayout.c: Include target.h.
1898         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
1899         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
1900         * target.h (struct gcc_target): Add cannot_copy_insn_p.
1901
1902         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
1903         (TARGET_CANNOT_COPY_INSN_P): New.
1904         (override_options): Revert 2003-02-08 hack.
1905
1906 2003-02-15  Richard Henderson  <rth@redhat.com>
1907
1908         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
1909         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
1910
1911 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
1912
1913         * config/rs6000/rs6000.h (processor_type): Add PPC440.
1914         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1915         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1916         TARGET_SCHED_VARIABLE_ISSUE): Define.
1917         (rs6000_use_dfa_pipeline_interface): New function.
1918         (rs6000_multipass_dfa_lookahead): New Function.
1919         (rs6000_variable_issue): New function.
1920         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
1921         (rs6000_issue_rate): Add PPC440.
1922         * config/rs6000/rs6000.md (unspec list): Correct typo.
1923         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
1924         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
1925         cmp, delayed_cr, mfcr, mtcr.
1926         (automata_option): Set "ndfa".
1927         (extendMMNN2): Update attributes.
1928         (movcc_internal1): Discourage move to non-cr0.  Update
1929         attributes.
1930         (movMM_update): Update attributes.
1931         (cmpMM_internal): Update attributes.
1932         (sCC CR materialization): Update attributes.
1933         (branch patterns): Do not discourage non-cr0.
1934         (cr logical patterns): Prefer destructive register allocation.
1935         Update attributes.
1936         (movesi_from_cr): Update attribute.
1937         (mtcrf_operation): Update attribute.
1938         (mtcrfsi): Update attribute.
1939         * config/rs6000/40x.md: New file.
1940         * config/rs6000/603.md: New file.
1941         * config/rs6000/6xx.md: New file.
1942         * config/rs6000/7450.md: New file.
1943         * config/rs6000/7xx.md: New file.
1944         * config/rs6000/mpc.md: New file.
1945         * config/rs6000/power4.md: New file.
1946         * config/rs6000/rios1.md: New file.
1947         * config/rs6000/rios2.md: New file.
1948         * config/rs6000/rs64.md: New file.
1949         [Some DFA descriptions based on work by Michael Hayes]
1950
1951 2003-02-15  Richard Henderson  <rth@redhat.com>
1952
1953         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
1954         successors with multiple predecessors.
1955         (connect_traces): Try harder to copy traces of length 1.
1956
1957         * function.h (struct function): Add computed_goto_common_label,
1958         computed_goto_common_reg.
1959         * function.c (free_after_compilation): Zap them.
1960         * stmt.c (expand_computed_goto): Use them to produce one
1961         indirect branch per function.
1962
1963 2003-02-15  Richard Henderson  <rth@redhat.com>
1964
1965         * cfgcleanup.c: Include params.h.
1966         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
1967         too many outgoing edges from a block.
1968         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
1969         * params.def (max-crossjump-edges): New.
1970         * doc/invoke.texi: Document it.
1971
1972 2003-02-15  Richard Henderson  <rth@redhat.com>
1973
1974         * recog.c (split_all_insns): Include new blocks in life update;
1975         do a global life update.
1976
1977 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
1978
1979         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
1980         Update copyright.
1981         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
1982         -mno-cygwin case.
1983
1984 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1985
1986         PR optimization/7702
1987         * reload1.c (reload_cse_simplify_set): Honor
1988         CANNOT_CHANGE_MODE_CLASS.
1989
1990 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
1991
1992         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
1993         function.
1994         * config/mn10300/mn10300-protos.h: Declare it.
1995         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
1996         attribute cc of instructions that may use clr.
1997
1998 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
1999
2000         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
2001         (x - (x & y)) is found.
2002
2003 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2004
2005         * configure.in: Fix typo.
2006         * configure: Regenerate.
2007
2008 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
2009
2010         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
2011
2012 2003-02-13  Adam Nemet  <anemet@lnxw.com>
2013
2014         PR opt/2391
2015         * combine.c: Fix spelling in comment.
2016         (cached_nonzero_bits): New function.
2017         (cached_num_sign_bit_copies): New function.
2018         (nonzero_bits_with_known): New macro.
2019         (num_sign_bit_copies_with_known): New macro.
2020         (nonzero_bits1): Rename from nonzero_bits.  Add three new
2021         arguments.  Change calls from nonzero_bits to
2022         nonzero_bits_with_known.
2023         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
2024         three new arguments.  Change calls from num_sign_bit_copies to
2025         num_sign_bit_copies_with_known.
2026         (nonzero_bits): New macro.
2027         (num_sign_bit_copies): New macro.
2028         (update_table_tick): Don't traverse identical subexpression more
2029         than once.
2030         (get_last_value_validate): Likewise.
2031
2032 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
2033
2034         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
2035         * function.h (struct emit_status): Length of regno_pointer_align
2036         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
2037         not regno_pointer_align_length (i.e. length actually used, not
2038         length as allocated)
2039
2040         * config/i386/i386.c (struct stack_local_entry): New.
2041         (struct machine_function): Replace huge array with alist.
2042         (assign_386_stack_local): Change to match.
2043
2044 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
2045
2046         * inclhack.def (hpux_long_double): Tighten select and add bypass
2047         regexp.
2048         * fixincl.x: Rebuilt.
2049
2050 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
2051
2052         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
2053         edge and block ends with a jump insn it must be simple jump.
2054
2055 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
2056
2057         * Makefile.in (PREPROCESSOR_DEFINES): Add
2058         @TARGET_SYSTEM_ROOT_DEFINE@.
2059         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
2060         is specified or if building a cross compiler.
2061         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
2062         if the sysroot is under $exec_prefix.
2063         * configure: Regenerated.
2064         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
2065         defined.
2066         (struct default_include): Add add_sysroot field.
2067         (cpp_SYSROOT): Declare.
2068         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
2069         field.
2070         (cpp_SYSROOT): New variable.
2071         * cppinit.c (cpp_create_reader): Initialize
2072         CPP_OPTION (pfile, sysroot).
2073         (init_standard_includes): Handle add_sysroot.  Do not
2074         add unrelocated copies of relocated directories.
2075         (COMMAND_LINE_OPTIONS): Add -isysroot.
2076         (cpp_handle_option): Handle -isysroot.
2077         * cpplib.h (struct cpp_options): Add sysroot member.
2078         * gcc.c (The Specs Language): Update description of %I.
2079         (target_system_root_changed): New variable.
2080         (process_command): Conditionalize make_relative_prefix call
2081         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
2082         target_system_root_changed.
2083         (do_spec_1): Add -isysroot to %I.
2084         * doc/invoke.texi (Spec Files): Update description of %I.
2085         * doc/install.texi (--with-sysroot): Update comment about
2086         relocation.
2087
2088 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
2089
2090         * config/h8300/h8300.md (a peephole2): New.
2091
2092 2003-02-13  Robert Lipe <robertlipe@usa.net>
2093             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2094
2095         * doc/install.texi (Specific): Update three SCO-related URLs.
2096
2097 2003-02-13  Andreas Schwab  <schwab@suse.de>
2098
2099         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
2100         Parenthesize properly.
2101         (NPREDECESORS): Parenthesize properly.
2102
2103 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2104
2105         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
2106
2107 2003-02-12  Roger Sayle  <roger@eyesopen.com>
2108
2109         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
2110         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
2111
2112         * reg-stack.c (subst_stack_regs_pat): Add support for binary
2113         UNSPEC instructions (e.g. "fpatan").
2114
2115 2003-02-12  Mike Stump  <mrs@apple.com>
2116
2117         * varray.c (element_size): Remove.
2118         (uses_ggc): Remove.
2119         (element): Add.
2120         (varray_init): Use new interface.
2121         (varray_grow): Use new interface.
2122         (varray_clear): Use new interface.
2123
2124 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
2125
2126         * config/rs6000/spe.h: Add casts to the arguments of the following
2127         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
2128         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
2129         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
2130         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
2131         __ev_get_u16, __ev_get_s16.
2132
2133 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2134
2135         * config/h8300/h8300.md (a peephole2): New.
2136
2137 Wed Feb 12 22:47:18 CET 2003  Jan Hubicka  <jh@suse.cz>
2138
2139         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
2140         (OBJS): Add callgraph.o
2141         (callgraph.o): New.
2142         * c-decl.c (expand_body_1): Break out from ...
2143         (expand_body): This one;  change calling convention
2144         (finish_function): Move some of expand_body logic here.
2145         (c_expand_deferred_function): Update call of expand_body
2146         (c_expand_stmt): Use c_expand_body_1.
2147         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
2148         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
2149         * c-tree.h (c_expand_body): Declare.
2150         * callgraph.c: New file.
2151         * flags.h (flag_unit_at_a_time): Declare.
2152         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
2153         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
2154         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
2155         * langhooks.h (struct lang_hooks_for_callgraph): New.
2156         (struct lang_hooks): Add callgraph field.
2157         * toplev.c (flag_unit_at_a_time): New.
2158         (lang_independent_options): Add flag_unit_at_a_time.
2159         (process_options): Disable unit-at-a-time mode for frontends not
2160         supporting callgraph.
2161         * tree-inline.c (typedef struct inline_data): Add "decl"
2162         (expand_call_inline): Update callgraph.
2163         (optimize_inline_calls): Set id.decl.
2164         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
2165         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
2166         cgraph_calls_p): Declare.
2167         * invoke.texi (-funit-at-a-time): Document
2168
2169 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
2170
2171         * config/rs6000/spe.h: Fix misc formatting.
2172         (__ev_create_ufix32_fs): Cast ev argument.
2173         (__ev_create_sfix32_fs): Same.
2174         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
2175         (__ev_get_ufix32_fs_internal): Same.
2176
2177 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
2178
2179         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
2180         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
2181
2182 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
2183
2184         * cpplib.c (do_include_common): Move warnings for
2185         #include_next and #import out to callers.  Use early-return
2186         instead of nested ifs.  Don't do check_eol here.
2187         (parse_include): Do check_eol here with the rest of the
2188         parsing stuff.
2189         (do_include_next, do_import): Now handle warnings.
2190
2191 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2192
2193         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
2194
2195 Wed Feb 12 15:19:42 CET 2003  Jan Hubicka  <jh@suse.cz>
2196
2197         * predict.c (estimate_probability):  Fix roundoff error.
2198
2199 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2200
2201         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
2202         (two peephole2): New.
2203
2204 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2205
2206         * config/h8300/h8300.md (several peephole2): Replace
2207         find_regno_note with peep2_reg_dead_p.
2208
2209 2003-02-11  Richard Henderson  <rth@redhat.com>
2210
2211         * gcse.c (lookup_set): Remove unused argument PAT.  Update
2212         both callers.
2213
2214 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
2215
2216         * diagnostic.c (real_abort): New.
2217         (diagnostic_report_diagnostic): Call real_abort on error.
2218         * diagnostic.h (diagnostic_abort_on_error): New.
2219         (struct diagnostic_context): Add abort_on_error field.
2220         * toplev.c (setup_core_dumping): New.
2221         (decode_d_option): Handle 'H' case.
2222         * doc/invoke.texi (Debugging Options): Document -dH.
2223
2224 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
2225
2226         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
2227         which refers to obsolete directories.
2228
2229 2003-02-11  Richard Henderson  <rth@redhat.com>
2230
2231         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
2232
2233 Mon Oct 21 17:07:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
2234
2235         * i386.c (contains_128bit_aligned_vector_p): New function.
2236         (ix86_function_arg_boundary): Properly align vector modes.
2237
2238 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
2239
2240         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
2241         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
2242         as a SET pattern.
2243
2244 2003-02-11  Roger Sayle  <roger@eyesopen.com>
2245
2246         * builtins.c:  Fix failure caused by commiting wrong patch.
2247
2248 2003-02-11  Dale Johannesen  <dalej@apple.com>
2249         * ra-build.c (compare_and_free_webs):  Relax checking.
2250         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
2251         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
2252
2253 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2254
2255         PR optimization/9651
2256         * rtlanal.c (may_trap_p): Handle FIX.
2257
2258 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
2259
2260         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
2261         * doc/invoke.texi: Extra alias.
2262
2263 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
2264
2265         * config/rs6000/host-darwin.c: Fix comment.
2266
2267 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
2268
2269         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
2270         predicate for mod result.
2271
2272 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2273
2274         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
2275         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
2276         * fixincl.x: Rebuilt.
2277         * tests/base/stdlib.h: Update.
2278         * tests/base/ctype.h: New file.
2279
2280 Tue Feb 11 20:44:45 CET 2003  Jan Hubicka  <jh@suse.cz>
2281
2282         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
2283
2284 2003-02-11  Richard Henderson  <rth@redhat.com>
2285
2286         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
2287         appropriated as globals.
2288         (ix86_expand_clrstr): Similarly.
2289         * config/i386/i386.md (cmpstrsi): Similarly.
2290
2291 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
2292
2293         * config/h8300/h8300.md (a peephole2): Add a case of 255.
2294
2295 2003-02-11  Roger Sayle  <roger@eyesopen.com>
2296
2297         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
2298         (pow_optab, atan2_optab): Define corresponding macros.
2299         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
2300         * genopinit.c (optabs): Implement pow_optab and atan2_optab
2301         using pow?f3 and atan2?f3 patterns.
2302         * builtins.c (expand_errno_check): New function to update errno
2303         if necessary, split out from expand_builtin_mathfn.
2304         (expand_builtin_mathfn): Use expand_errno_check.
2305         (expand_builtin_mathfn_2): New function to handle expanding binary
2306         math functions, reusing the code in expand_errno_check.
2307         (expand_builtin): Handle the pow and atan2 math built-ins,
2308         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
2309         expand_builtin_mathfn_2.
2310
2311         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
2312
2313 Tue Feb 11 19:03:22 MET 2003  Jan Hubicka  <jh@suse.cz>
2314
2315         * combine.c (combine_simplify_rtx): Fix folding of
2316         nested float_truncates.
2317
2318 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
2319
2320         * config/h8300/h8300.md (a peephole2): Fix a typo.
2321
2322 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
2323
2324         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
2325         register number.
2326
2327 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
2328
2329         * config/h8300/h8300-protos.h: Add a prototype for
2330         gtuleu_operator.
2331         * config/h8300/h8300.c (gtuleu_operator): New.
2332         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
2333         * config/h8300/h8300.md (a peephole2): New.
2334
2335 Tue Feb 11 13:32:12 CET 2003  Jan Hubicka  <jh@suse.cz>
2336
2337         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
2338
2339 Tue Feb 11 10:02:54 CET 2003  Jan Hubicka  <jh@suse.cz>
2340
2341         * predict.c (choose_function_section): Choose sections correctly.
2342
2343 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2344
2345         * reload1.c (first_label_num): New.
2346         (reload): Index offsets_known_at and offsets_at using difference of
2347         label number and first label number.  Don't use offset pointers.
2348         (set_label_offsets, set_initial_label_offsets): Likewise.
2349
2350 2003-02-10  Roger Sayle  <roger@eyesopen.com>
2351
2352         * mips-tfile.c (init_file): Add missing initializers in the
2353         "#ifdef __alpha" case.
2354         (file_offset, max_file_offset): Declare as unsigned long.
2355         (write_varray): Cast to "unsigned long" in comparisons against
2356         either file_offset or max_file_offset.
2357         (write_object): Likewise.
2358         (read_seek): Likewise.
2359         (copy_object): Likewise. Declare "ifd" as int to match its use
2360         in add_ext_symbol, and avoid signed/unsigned conditional warning.
2361
2362 2003-02-10  Nick Clifton  <nickc@redhat.com>
2363             Aldy Hernandez  <aldyh@redhat.com>
2364
2365         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
2366         override options which have been specified on the command line.
2367
2368 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
2369
2370         * config/h8300/h8300.md (abssf2): New.
2371         (*abssf2_h8300): Likewise.
2372         (*abssf2_h8300hs): Likewise.
2373
2374 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
2375
2376         * tree.c (build_tree_list):  Fix parameter names in comment.
2377
2378 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
2379
2380         * config/rs6000/ppc64-fp.c: New file.
2381         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
2382
2383 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
2384
2385         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
2386         * bb-reorder.c (make_reorder_chain): Deleted.
2387         (make_reorder_chain_1): Deleted.
2388         (find_traces): New function.
2389         (rotate_loop): New function.
2390         (mark_bb_visited): New function.
2391         (find_traces_1_round): New function.
2392         (copy_bb): New function.
2393         (bb_to_key): New function.
2394         (better_edge_p): New function.
2395         (connect_traces): New function.
2396         (copy_bb_p): New function.
2397         (get_uncond_jump_length): New function.
2398         (reorder_basic_blocks): Use new functions (Software Trace Cache).
2399         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
2400         boundaries.
2401
2402 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
2403
2404         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
2405
2406 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
2407
2408         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
2409         (DECL_LIVE_RANGE_RTL): Remove.
2410
2411 2003-02-10  Nick Clifton  <nickc@redhat.com>
2412
2413         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
2414         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
2415         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
2416         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
2417         config/arm/freebsd.h, config/arm/linux-elf.h,
2418         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
2419         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
2420         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
2421         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
2422         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
2423         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
2424         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
2425         and reformat as appropriate.
2426
2427 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
2428
2429         * config/h8300/clzsi2.c: Remove.
2430         * config/h8300/ctzsi2.c: Likewise.
2431         * config/h8300/paritysi2.c: Likewise.
2432         * config/h8300/popcountsi2.c: Likewise.
2433         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
2434         ctzsi2, paritysi2, and popcountsi2.
2435
2436 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2437             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
2438
2439         PR c/7741
2440         * c-decl.c (duplicate_decls): Discard the initializer of the
2441         new decl when the types are conflicting.
2442
2443 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
2444
2445         * Makefile.in (sreal.o): Added.
2446         (predict.o): Depends on sreal.h instead of real.h.
2447         * sreal.c: New file.
2448         * sreal.h: New file.
2449         * predict.c: Use sreal.c instead of real.c.
2450
2451 2003-02-10  Nick Clifton  <nickc@redhat.com>
2452
2453         * Contributed support for the Cirrus EP9312 "Maverick"
2454         floating point co-processor.  Written by Aldy Hernandez
2455         <aldyh@redhat.com>.
2456         (config/arm/arm.c): Add Cirrus support.
2457         (config/arm/arm.h): Likewise.
2458         (config/arm/aout.h): Likewise.
2459         (config/arm/arm.md): Likewise.
2460         (config/arm/arm-protos.h): Likewise.
2461         (config.gcc): Likewise.
2462         (doc/invoke.texi): Describe new -mcpu value and new
2463         -mcirrus-fix-invalid-insns switch,
2464         (cirrus.md): New file.
2465
2466 Mon Feb 10 11:40:18 CET 2003  Jan Hubicka  <jh@suse.cz>
2467
2468         * combine.c (combine_simplify_rtx): Simplify using
2469         (float_truncate (float x)) is (float x)
2470         (float_extend (float_extend x)) is (float_extend x).
2471
2472 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
2473
2474         * calls.c (try_to_integrate): Tidy stack_usage_map access.
2475         (emit_library_call_value_1): Likewise.  Formatting.
2476         (store_one_arg): Likewise.
2477
2478 2003-02-09  Nick Clifton  <nickc@redhat.com>
2479             Aldy Hernandez  <aldyh@redhat.com>
2480
2481         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
2482         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
2483         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
2484         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
2485         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
2486         docs.  Add range test for immediate value.
2487
2488 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
2489
2490         Rename spe_evxor to xorv2si3.
2491         (xorv4hi3): New.
2492         (xorv1di3): New.
2493
2494 2003-02-10  Glen Nakamura  <glen@imodulo.com>
2495
2496         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
2497         tag.
2498
2499 Mon Feb 10 00:29:17 CET 2003  Jan Hubicka  <jh@suse.cz>
2500
2501         * i386.c (vector_move_operand): New predicate.
2502         (ix86_expand_vector_move): Be happy about 0.
2503         * i386.h (PREDICATE_CODES): Add sse-move_operand.
2504         * i386.md (mov*_internal): Add 'C' alternative.
2505
2506 Sun Feb  9 23:58:33 CET 2003  Jan Hubicka  <jh@suse.cz>
2507
2508         * i386.md (floathi*): Deal with SSE.
2509
2510 Sun Feb  9 23:54:59 CET 2003  Jan Hubicka  <jh@suse.cz>
2511
2512         * simplify-rtx.c (simplify_unary_operation,
2513         simplify_binary_operation):  Deal with vector modes
2514         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
2515
2516 2002-02-09  Richard Sandiford  <rsandifo@redhat.com>
2517
2518         * toplev.c (rest_of_compilation): Recompute register usage after
2519         split_all_insns.
2520
2521 2003-02-09  Richard Henderson  <rth@redhat.com>
2522
2523         * libgcc-std.ver (__clztf2): New.
2524         (__ctztf2, __popcounttf2, __paritytf2): New.
2525         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
2526         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
2527         adjust code to match the different type sizes.
2528         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
2529         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
2530
2531         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
2532         TImode; select word_mode and twice that.
2533         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
2534         select the modes from float, double, and long double.
2535         (init_optabs): Remove duplicate initializations.
2536
2537 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
2538
2539         * doc/install.texi: Squeeze and streamline section on
2540         testing and regression checking.
2541
2542 Sun Feb  9 13:33:34 CET 2003  Jan Hubicka  <jh@suse.cz>
2543
2544         * i386.md (ahi?v*3): Set third operand type to TImode.
2545         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
2546
2547         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
2548         integer mode.
2549
2550         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
2551         Change code so they are arithmetic expressions now.
2552         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
2553         simplify_ternary_operation): Deal with VEC_* expressions.
2554
2555         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
2556
2557 Sat Feb  8 00:21:22 CET 2003  Jan Hubicka  <jh@suse.cz>
2558
2559         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
2560         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
2561         possibly got duplicated.
2562
2563 2003-02-08  Richard Henderson  <rth@redhat.com>
2564
2565         * config/alpha/alpha.c (override_options): Turn off explicit
2566         relocs until post-peep2 code duplication resolved.
2567
2568 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
2569
2570         * optabs.c (expand_unop): Widen clz properly when clz is done
2571         via libcall.
2572
2573 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
2574
2575         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
2576         * config/h8300/crti.asm: Likewise.
2577         * config/h8300/crtn.asm: Likewise.
2578         * config/h8300/ctzsi2.c: Likewise.
2579         * config/h8300/fixunssfsi.c: Likewise.
2580         * config/h8300/h8300-protos.h: Likewise.
2581         * config/h8300/h8300.c: Likewise.
2582         * config/h8300/h8300.h: Likewise.
2583         * config/h8300/h8300.md: Likewise.
2584         * config/h8300/paritysi2.c: Likewise.
2585         * config/h8300/popcountsi2.c: Likewise.
2586         * config/h8300/rtems.h: Likewise.
2587
2588 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2589
2590         * doc/invoke.texi: Documentation for my previous commit.
2591         * doc/passes.texi: Ditto.
2592
2593 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2594
2595         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
2596         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
2597         Declare.
2598         (DLTHE_FLAG_UPDATE_FREQ): New.
2599         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
2600         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
2601         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
2602         fix_bb_placement, fix_bb_placements, place_new_loop,
2603         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
2604         New static functions.
2605         (fix_loop_placement, can_duplicate_loop_p,
2606         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
2607         New functions.
2608
2609         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
2610         unswitch_loops): Declare.
2611         * loop-init.c: New file.
2612         * loop-unswitch.c: New file.
2613         * Makefile.in (loop-init.o, loop-unswitch.o): New.
2614         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
2615         * toplev.c (DFI_loop2): New dump.
2616         (flag_unswitch_loops): New.
2617         (lang_independent_options): Add it.
2618         (rest_of_compilation): Call new loop optimizer.
2619         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
2620
2621 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
2622
2623         * config/h8300/clzsi2.c: New.
2624         * config/h8300/ctzsi2.c: Likewise.
2625         * config/h8300/paritysi2.c: Likewise.
2626         * config/h8300/popcountsi2.c: Likewise.
2627         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
2628
2629 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
2630
2631         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2632         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
2633         (ctzsi2): New pattern.
2634         (ffssi2): Use clz instead of unspec.
2635         (clzdi2): Rename from cntlzd2.
2636         (ctzdi2): New pattern.
2637         (ffsdi2): Use clz instead of unspec.
2638
2639 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
2640
2641         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
2642         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
2643         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2644         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
2645
2646 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
2647
2648         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
2649
2650 2003-02-07  Richard Henderson  <rth@redhat.com>
2651
2652         PR 9226
2653         * gcse.c (local_cprop_find_used_regs): New.
2654         (local_cprop_pass): Use it.
2655
2656 2003-02-07  Fred Fish  <fnf@intrinsity.com>
2657
2658         * mips-tfile.c (parse_def): Parenthesize assignments to fix
2659         precedence bugs.
2660
2661 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
2662
2663         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
2664
2665 2003-02-07  Roger Sayle  <roger@eyesopen.com>
2666
2667         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
2668         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
2669         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
2670         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
2671         builtin functions (and their __builtin_* variants).
2672         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
2673         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
2674         when not optimizing.
2675
2676         * doc/extend.texi: Document new pow and atan2 builtins, and
2677         their float and long double variants.  Realphabetize builtins.
2678
2679 Fri Feb  7 23:24:28 CET 2003  Jan Hubicka  <jh@suse.cz>
2680
2681         * i386.md (sse2_nandv2di3): Fix.
2682
2683 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
2684
2685         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
2686         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
2687         definition.
2688         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
2689         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
2690
2691 Fri Feb  7 22:22:40 CET 2003  Jan Hubicka  <jh@suse.cz>
2692
2693         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
2694
2695 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
2696
2697         * cfg.c (dump_flow_info): Add back accidently deleted line.
2698
2699 2003-02-07  Andrey Petrov <petrov@netbsd.org>
2700
2701         * optabs.c (expand_float): Search wider integer modes first.
2702
2703 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
2704
2705         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
2706         based on preprocessor flag.
2707
2708 2003-02-07  Roger Sayle  <roger@eyesopen.com>
2709             Richard Henderson  <rth@redhat.com>
2710
2711         * gcse.c (implicit_sets): New.
2712         (compute_hash_table_work): Include them in hash table.
2713         (find_implicit_sets, fis_get_condition): New.
2714         (one_cprop_pass): Allocate and free implicit_sets; call
2715         find_implicit_sets before building hash table.
2716
2717 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
2718
2719         * config/t-netbsd (USER_H): Revert previous change.
2720
2721 2003-02-07  Gabor Greif  <ggreif@lucent.com>
2722
2723         * doc/c-tree.texi (Namespaces): Fix typo.
2724
2725 Fri Feb  7 02:18:57 CET 2003  Jan Hubicka  <jh@suse.cz>
2726
2727         * regrename.c (do_replace, find_oldest_value_reg,
2728         copyprop_hardreg_forward_1): Update register attributes.
2729
2730 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
2731
2732         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
2733         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
2734         variables starting with underscore.
2735         (struct unit_usage): New structure.
2736         (unit_usages, cycle_alt_unit_usages): New global variables.
2737         (check_unit_distribution_in_reserv): Remove it.
2738         (store_alt_unit_usage): New function.
2739         (check_regexp_units_distribution): Rewrite it.
2740
2741 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2742
2743         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
2744         target_cpu_default.
2745         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
2746         if not MASK_NO_SPACE_REGS.
2747         (output_call): Adjust return pointer, don't load new space register
2748         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
2749         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
2750         TARGET_NO_SPACE_REGS is true.
2751         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
2752         conditions.
2753         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
2754         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
2755         true.  Use bve when TARGET_64BIT is true.
2756
2757 2003-02-06  Richard Henderson  <rth@redhat.com>
2758
2759         * combine.c (nonzero_bits): Fix double break.
2760
2761 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
2762             Richard Henderson <rth@redhat.com>
2763
2764         PR c/9530
2765         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
2766         from functions that return a float to functions that don't.
2767
2768 Thu Feb  6 00:18:38 CET 2003  Jan Hubicka  <jh@suse.cz>
2769
2770         * i386.c (x86_inter_unit_moves): New variable.
2771         (ix86_secondary_memory_needed): Fix 64bit case, honor
2772         TARGET_INTER_UNIT_MOVES
2773         * i386.h (x86_inter_unit_moves): Declare.
2774         (TARGET_INTER_UNIT_MOVES): New macro.
2775         * i386.md (movsi_1): Cleanup constraints; disable
2776         when not doing inter-unit moves.
2777         (movsi_1_nointernunit): New.
2778         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
2779         (movdi_1_rex64_nointerunit): New.
2780         (mivsf_1): disable when not doing inter-unit moves.
2781         (movsf_1_nointerunit): New.
2782
2783         * basic-block.h (inside_basic_block_p):  Declare.
2784         * cfgbuild.c (inside_basic_block_p): Make global.
2785         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
2786         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
2787         update CFG.
2788         (fix_basic_block_boundaries, add_missing_bbs): New.
2789         (rank): Use profile.
2790         (scheudle_ebbs): Rely on CFG; update coments.
2791
2792 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
2793
2794         * Makefile.in (host_hook_obj): New.
2795         (OBJS): Add $(host_hook_obj).
2796         (host_default.o): New rule.
2797         * config.gcc (host_hook_obj): New, default to host-default.o.
2798         (powerpc-*-darwin*): Use host-darwin.o.
2799         (out_host_hook_obj): New.
2800         * configure: Regenerate.
2801         * configure.in: Print information about out_host_hook_obj, substitute
2802         into output files.
2803         * host-default.c: New file.
2804         * hosthooks.h: New file.
2805         * toplev.c (general_init): Call host_hooks.extra_signals.
2806         * config/rs6000/host-darwin.c: New file.
2807         * config/rs6000/x-darwin: New file.
2808         * doc/hostconfig.texi: Add documentation for new host hook.
2809         Rearrange existing documentation.
2810
2811 2003-02-05  Roger Sayle  <roger@eyesopen.com>
2812
2813         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
2814         with *targetm.delegitimize_address.
2815         (rtl_for_decl_location): Likewise.
2816         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
2817         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
2818
2819         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
2820         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
2821         prototype.
2822         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
2823         i386_simplify_dwarf_addr.  Made static.  Prototyped.
2824         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
2825         i386_simplify_dwarf_addr to ix86_delegitimize_address.
2826         (ix86_find_base_term): Likewise.
2827         (maybe_get_pool_constant): Likewise.
2828
2829         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
2830         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
2831         prototype.
2832         * config/s390/s390.c (s390_delegitimize_address): Renamed from
2833         s390_simplify_dwarf_addr.  Made static.  Prototyped.
2834         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
2835
2836 2003-02-05  Richard Henderson  <rth@redhat.com>
2837
2838         PR c/8602
2839         * integrate.c (output_inline_function): Reset input_filename
2840         and lineno from the decl before rest_of_compilation.
2841
2842 2003-02-05  Richard Henderson  <rth@redhat.com>
2843
2844         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
2845         (CTZ_DEFINED_VALUE_AT_ZERO): New.
2846         * doc/rtl.texi, doc/tm.texi: Document them.
2847
2848         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
2849         of the value at zero properly.
2850         * fold-const.c (tree_expr_nonnegative_p): Likewise.
2851         * simplify-rtx.c (simplify_unary_operation): Likewise.
2852
2853         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
2854         (CTZ_DEFINED_VALUE_AT_ZERO): New.
2855
2856         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
2857         (TARGET_EXPAND_BUILTIN): Remove.
2858         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
2859         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
2860         (enum arm_builtins): Remove.
2861         * config/arm/arm.md (UNSPEC_CLZ): Remove.
2862         (clzsi2): Rename from clz; use clz instead of unspec.
2863         (ctzsi2): New.
2864         * config/arm/arm-protos.h: Update.
2865
2866 Wed Feb  5 23:12:57 CET 2003  Jan Hubicka  <jh@suse.cz>
2867
2868         * i386-protos.h (x86_emit_floatuns):  Declare.
2869         * i386.c (x86_emit_floatuns): New global function.
2870         * i386.md (floatunssisf2, floatunsdisf2,
2871         floatunsdidf2):  New patterns.
2872
2873 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2874
2875         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
2876
2877 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
2878
2879         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
2880           config/ia64/linux.h
2881
2882 2002-02-05  Roger Sayle  <roger@eyesopen.com>
2883
2884         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
2885
2886 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
2887
2888         PR optimization/8555
2889         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
2890         instead of aborting.
2891
2892 2003-02-04  Richard Henderson  <rth@redhat.com>
2893
2894         * config/i386/i386.md (UNSPEC_BSF): Remove.
2895         (ffssi2): Split into cmove and no_cmove insns and splitters;
2896         lose pentium float trick for now.
2897         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
2898         (ctzsi2, clzsi2, bsr): New.
2899
2900 2003-02-04  Richard Henderson  <rth@redhat.com>
2901
2902         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
2903         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
2904         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
2905         (ffsdi2): Use popcount instead of unspec.
2906         (popcountdi2): Rename from *popcnt.
2907         (ctzdi2, clzdi2, getf_exp_tf): New.
2908
2909 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2910
2911         * genconfig.c (main): Generate CC0_P.
2912         * rtl.h (CC0_P): Remove.
2913
2914 2003-02-04  Richard Henderson  <rth@redhat.com>
2915
2916         * libgcc2.h, libgcc2.c (__ffsSI2): New.
2917         (__ffsDI2): Rename from __ffsdi2.
2918         * mklibgcc.in (lib2funcs): Add _ffssi2.
2919
2920 2003-02-04  Richard Henderson  <rth@redhat.com>
2921
2922         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
2923         rounds with a "bit table" lookup.
2924
2925 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2926
2927         * reload.c (find_reloads): Do not use the mode specified in the insn
2928         pattern as reload mode for address operands.  Do not generate optional
2929         reloads for operands where a mandatory reload was already pushed.
2930
2931 2003-02-04  Richard Henderson  <rth@redhat.com>
2932
2933         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
2934         builtins instead of inline assembly.
2935
2936 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2937
2938         PR c/9376
2939         * libgcc2.c (__subvdi3): Fix typo.
2940
2941 Tue Feb  4 21:46:05 CET 2003  Jan Hubicka  <jh@suse.cz>
2942
2943         * i386.md (movti_rex64):  Fix constraint.
2944
2945 Tue Feb  4 18:40:42 CET 2003  Jan Hubicka  <jh@suse.cz>
2946
2947         * i386.md (vector push splitters):  Fix typo in resolving conflict.
2948
2949 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
2950
2951         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
2952
2953 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
2954
2955         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
2956         for recent libstdc++.  Remove formatting cruft.
2957
2958 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
2959
2960         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
2961         attribute even if input file name is absolute, but one of the
2962         includes is relative.
2963
2964 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
2965
2966         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
2967         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
2968         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
2969
2970 2003-02-03  Richard Henderson  <rth@redhat.com>
2971
2972         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
2973         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
2974         return type to "int".  Shuffle declarations and undef int trap.
2975         * libgcc2.h: Remove their declarations.
2976         * optabs.c (expand_unop): Force outmode to int for bitops.
2977
2978 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
2979
2980         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
2981         coprocessor registers before floating-point registers.
2982         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
2983         to account for a previously removed register.
2984         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
2985         Delete unused macros.
2986
2987 Mon Feb  3 21:19:11 CET 2003  Jan Hubicka  <jh@suse.cz>
2988
2989         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
2990         (mov*_internal): Fix predicates; require one of operands to not be
2991         memory.
2992         (SSE?MMX move expanders):  Fix predicates; force one of operands to
2993         register.
2994         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
2995         (movups/movupd/movdqu patterns): Force one of operands to not be
2996         memory.
2997
2998 2002-02-03  Roger Sayle  <roger@eyesopen.com>
2999
3000         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
3001         takes a single rtx and returns it unmodified.
3002         * hooks.h (hook_rtx_rtx_identity): Prototype here.
3003         * target.h (struct gcc_target): Add "delegitimize_address"
3004         field to target structure.
3005         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
3006         for delegitimize_address target using hook_rtx_rtx_identity.
3007         (TARGET_INITIALIZER): Initialize delegitimize_address field
3008         using TARGET_DELEGITIMIZE_ADDRESS macro.
3009         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
3010         extensions of constant pool references.  Use delegitimize_address
3011         to undo the obfuscation of "-fpic".
3012         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
3013
3014         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
3015         i386_simplify_dwarf_addr.
3016         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
3017         (maybe_get_pool_constant): Likewise.
3018
3019 Mon Feb  3 16:01:17 CET 2003  Jan Hubicka  <jh@suse.cz>
3020
3021         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
3022
3023 Mon Feb  3 01:30:11 CET 2003  Jan Hubicka  <jh@suse.cz>
3024
3025         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
3026
3027 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3028
3029         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
3030         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
3031
3032 2003-02-02  Andreas Schwab  <schwab@suse.de>
3033
3034         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
3035
3036 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
3037
3038         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
3039         (epilogue_insns): Likewise.
3040
3041 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3042
3043         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
3044
3045 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3046
3047         * pa-protos.h (attr_length_millicode_call): Remove second argument.
3048         (attr_length_indirect_call, attr_length_indirect_call,
3049         attr_length_save_restore_dltp): New prototypes.
3050         * pa.c (attr_length_millicode_call): Remove second argument.  Check
3051         INSN_ADDRESSES_SET_P in distance calculation.
3052         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
3053         INSN_ADDRESSES.
3054         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
3055         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
3056         Call attr_length_call directly.
3057         (attr_length_indirect_call, output_indirect_call,
3058         attr_length_save_restore_dltp): New functions.
3059         * pa.md (attr_length_millicode_call): Drop second argument from all
3060         patterns.
3061         (return_internal_pic): Delete.
3062         (return_external_pic): Remove use of PIC register and pic operand and
3063         flag checks.
3064         (epilogue): Use return_internal for both normal and pic code.
3065         (call, call_value): Emit new 32-bit pic patterns for symref and
3066         indirect calls.  Remove uses for arg pointer and pic register.
3067         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
3068         call_reg_pic_post_reload, call_val_symref_pic,
3069         call_val_symref_pic_post_reload, call_val_reg_pic,
3070         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
3071         Implement define_split and define_peephole2 patterns for pre reload
3072         patterns.
3073         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
3074         call_value_internal_reg_64bit): Shorten names.
3075         (all call patterns): Explicitly indicate registers used and clobbered.
3076         Use attr_length_indirect_call and attr_length_save_restore_dltp for
3077         attribute length calculation.  Move code generation for indirect calls
3078         to output_indirect_call.
3079         (sibcall, sibcall_value): Don't restore PIC register.
3080         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
3081         register retore.
3082
3083 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3084
3085         * doc/install.texi (Testing): Simplify and compress instructions
3086         concerning Dejagnu.
3087
3088 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3089
3090         * collect2.c (pexecute_pid): Rename to pid.
3091         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
3092         pid.
3093
3094 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
3095
3096         * doc/extend.texi (Function Attributes): Remove documentation
3097         for PowerPC Windows NT function attributes..
3098
3099 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
3100
3101         * dwarf2out.c (gen_type_die): Check for typedefs before calling
3102         for TYPE_MAIN_VARIANT.
3103
3104 2003-02-01  Richard Henderson  <rth@redhat.com>
3105
3106         * libgcc2.c: Include auto-host.h.
3107         (ATTRIBUTE_HIDDEN): New.
3108         (__clz_tab): Don't declare here for clz and ctz.
3109         (__clzsi2, __clzdi2): Use count_leading_zeros.
3110         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
3111         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
3112         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
3113         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
3114
3115 2003-02-01  Richard Henderson  <rth@redhat.com>
3116
3117         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
3118         to the conditional.
3119         (ashlsi3_1_zext splitter): Likewise.
3120
3121 2003-02-01  Richard Henderson  <rth@redhat.com>
3122
3123         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
3124         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3125         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
3126         return type to Wtype.
3127
3128         * libgcc-std.ver (GCC_3.4): Fix inheritance.
3129
3130         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
3131         expander input constraint.
3132
3133 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3134
3135         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
3136         OTI_parity.
3137         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
3138         * optabs.c (widen_clz, expand_parity): New.
3139         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
3140         for libcalls to clz, ctz, popcount, and parity.
3141         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
3142         parity_optab, and set up libfunc handlers.
3143         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3144         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
3145         __popcount_tab): New.
3146         * libgcc2.h: Declare them.
3147         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
3148         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
3149         and parity_optab.
3150         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
3151         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
3152         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
3153         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
3154         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
3155         BUILT_IN_PARITYLL): New.
3156         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
3157         and add optab argument.
3158         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
3159         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
3160         * expr.c (expand_expr): Handle them.
3161         * fold-const.c (tree_expr_nonnegative_p): Likewise.
3162         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
3163         * reload1.c (eliminate_regs): Handle them.
3164         (elimination_effects): Likewise.
3165         * function.c (instantiate_virtual_regs_1): Likewise
3166         * genattrtab.c (check_attr_value): Likewise.
3167         * simplify-rtx.c (simplify_unary_operation): Likewise.
3168         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
3169         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
3170         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
3171         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
3172         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
3173         __builtin_arm_clz.
3174         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
3175         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
3176         * doc/extend.texi (Other Builtins): Add new builtins.
3177         * doc/md.texi (Standard Names): Add new patterns.
3178
3179 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
3180
3181         * reload.c: Revert 2003-01-31 change.
3182
3183 Sat Feb  1 14:14:40 CET 2003  Jan Hubicka  <jh@suse.cz>
3184
3185         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
3186
3187 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
3188
3189         * flags.h (flag_volatile): Remove declaration.
3190         (flag_volatile_global, flag_volatile_static): Likewise.
3191         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
3192         * toplev.c (flag_volatile): Remove definition.
3193         (flag_volatile_global, flag_volatile_static): Likewise.
3194         (f_options): Remove corresponding entries here.
3195         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
3196         or flag_volatile_static.
3197         * doc/invoke.texi: Remove documentation of -fvolatile,
3198         -fvolatile-global and -fvolatile-static.
3199
3200 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3201
3202         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
3203         updating of total_code_bytes from prologue to epilogue.
3204
3205 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
3206
3207         * reload.c (find_reloads): Do not use the mode specified in the insn
3208         pattern as reload mode for address operands.  Do not generate optional
3209         reloads for operands where a mandatory reload was already pushed.
3210         Generate optional reloads only in the final pass though find_reloads.
3211         (have_replacement_p): New function.
3212
3213 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3214
3215         * doc/install.texi (Testing): Remove a reference to our obsolete
3216         /testresults web pages and strip redundant information concerning
3217         test results.
3218         (Binaries): Refer to Microsoft Windows instead of listing all
3219         possible variants.
3220
3221 Sat Feb  1 00:28:30 CET 2003  Jan Hubicka  <jh@suse.cz>
3222
3223         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
3224         RTL chain.
3225
3226         * combine.c (simplify_set): Reverse order of ragumetns to
3227         REG_CANNOT_CHANGE_MODE_P
3228         * df.c (df_def_record_1): Likewise.
3229         * recog.c (register_operand): Likewise.
3230         * simplify-rtx.c (simplify_subreg): Likewise.
3231         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
3232         CANNOT_CHANGE_MODE_CLASS.
3233         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
3234         Likewise.
3235         * reload.c (push_reload): Likewise.
3236         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3237         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3238         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3239         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
3240         * mips.c (mips_cannot_change_mode_class): Update.
3241         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3242         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3243         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3244         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3245         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
3246         * sh.c (sh_cannot_change_mode_class): Update.
3247         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
3248         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
3249
3250 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
3251
3252         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
3253         change to LINK_COMMAND_SPEC in gcc.c.
3254
3255 2003-01-31  Jan Hubicka  <jh@suse.cz>
3256
3257         PR c/9506
3258         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
3259
3260 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3261
3262         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
3263         duplicated code.
3264
3265 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
3266
3267         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
3268         (BINFO_ELTS): New #define.
3269         * stor-layout.c (finalize_record_size): Don't set them.
3270         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
3271         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
3272         (BINFO_LANG_ELTS): New #define.
3273         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
3274         * java/class.c (make_class): Use BINFO_ELTS.
3275         (set_super_info): Likewse.
3276         (add_interface_do): Likewise.
3277         * objc/objc-act.c (start_class): Use BINFO_ELTS.
3278
3279 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3280
3281         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
3282         (times): Don't ever declare if not HAVE_TIMES.
3283         (clock): Don't ever declare if not HAVE_CLOCK.
3284
3285 2003-01-30  Richard Henderson  <rth@redhat.com>
3286
3287         * flow.c (update_life_info): Zap life info after cleanup_cfg.
3288         (regno_uninitialized): Use correct live at function entry set.
3289         (regno_clobbered_at_setjmp): Likewise.
3290
3291         * expr.c (store_expr): Promote all MEM intermediates to regs.
3292
3293 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3294
3295         * config/arm/arm.c: Fix comment typos.
3296         * config/arm/arm.h: Likewise.
3297         * config/arm/netbsd-elf.h: Likewise.
3298         * config/arm/netbsd.h: Likewise.
3299
3300 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
3301
3302         * gengtype.c (struct walk_type_data): Add needs_cast_p.
3303         (walk_type): Set needs_cast_p in walk_type_data.
3304         (write_types_process_field): Supply casts when required to suppress
3305         warnings.
3306         (write_root): Cast gt_pch_n_S to suppress warning.
3307         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
3308         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
3309         when they might exist.
3310         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
3311         insn-conditions.o, and rs6000.o.
3312
3313 2003-01-30  Richard Henderson  <rth@redhat.com>
3314
3315         * ggc-page.c (G.context_depth_allocations): New.
3316         (G.context_depth_collections): New.
3317         (alloc_page): Set G.context_depth_allocations.
3318         (ggc_collect): Set G.context_depth_collections.
3319         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
3320         (ggc_pop_context): Early exit for no allocations or collections.
3321
3322 2003-01-30  Richard Henderson  <rth@redhat.com>
3323
3324         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
3325
3326 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
3327
3328         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
3329         size, the link register is always saved if any other register is
3330         saved.
3331
3332 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3333
3334         * config/h8300/h8300-protos.h: Update the prototype for
3335         compute_plussi_cc.
3336         (cpp_reader): Declare before it is used.
3337         * config/h8300/h8300.c (compute_plussi_cc): Change the return
3338         type to int.
3339         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
3340         see an unknown H8 variant.
3341
3342 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
3343
3344         PR target/9316
3345         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
3346         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
3347         * config/rs6000/t-rtems: New file. multilib variants to match OS.
3348         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
3349         rs6000/t-ppcgas so we get the desired multilibs.
3350
3351 2003-01-30  Nick Clifton  <nickc@redhat.com>
3352
3353         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
3354         when popping saved IP register off the stack.
3355
3356 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3357
3358         * config/rs6000/aix43.h: Fix comment typos.
3359         * config/rs6000/aix51.h: Likewise.
3360         * config/rs6000/aix52.h: Likewise.
3361         * config/rs6000/altivec.h: Likewise.
3362         * config/rs6000/rs6000.c: Likewise.
3363         * config/rs6000/rs6000.h: Likewise.
3364         * config/rs6000/rs6000.md: Likewise.
3365         * config/rs6000/spe.md: Likewise.
3366
3367 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
3368
3369         * c-common.c (builtin_define_float_constants): Define
3370         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
3371
3372 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3373
3374         * config/sh/lib1funcs.asm: Fix comment typos.
3375         * config/sh/linux.h: Likewise.
3376         * config/sh/sh.c: Likewise.
3377         * config/sh/sh.md: Likewise.
3378
3379 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
3380
3381         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
3382
3383 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
3384
3385         * config/fp-bit.h (__make_dp): Declare if TMODES.
3386
3387 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
3388
3389         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
3390         general_operand_src and general_operand_dst.
3391
3392 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
3393
3394         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
3395         Return true for variable sized types.
3396         (rs6000_va_arg): Handle variable sized types passed by reference
3397         on non-SVR4 ABI.
3398
3399 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
3400
3401         * arm.c (arm_legtimize_address): New function.
3402         * arm-protos.h (arm_legtimize_address): Add prototype.
3403         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
3404         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
3405         do ... while (0)
3406
3407 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
3408
3409         PR bootstrap/9296
3410         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
3411         depended on it being defined until now.
3412
3413 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
3414
3415         PR target/9295
3416         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
3417         RTEMS code knows which C++ initialization style the toolset
3418         configuration is using.
3419
3420 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
3421
3422         PR bootstrap/9293
3423         * config/m68k/t-crtstuff: Replace spaces with tabs, add
3424          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
3425
3426 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
3427
3428         PR bootstrap/9292
3429         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
3430         RTEMS threads.
3431         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
3432
3433 2003-01-29  Nick Clifton  <nickc@redhat.com>
3434
3435         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
3436         not $(srcdir).
3437
3438 2003-01-29  Andrew Haley  <aph@redhat.com>
3439
3440         * tree-inline.c (walk_tree): Add CHAR_TYPE.
3441
3442 Wed Jan 29 10:26:12 CET 2003  Jan Hubicka  <jh@suse.cz>
3443
3444         * i386.md (subdi3_carry_rex64): Fix typo.
3445
3446 2003-01-28  Stan Shebs  <shebs@apple.com>
3447
3448         * coretypes.h (cpp_reader): Forward declare struct.
3449         * c-pragma.h (cpp_reader): Remove forward declaration.
3450         * hashtable.h (cpp_reader): Likewise.
3451         * scan.h (cpp_reader): Likewise.
3452         * tree.h (cpp_reader): Likewise.
3453         * config/darwin-protos.h (cpp_reader): Likewise.
3454         * config/arm/arm-protos.h (cpp_reader): Likewise.
3455         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
3456         struct cpp_reader in prototypes.
3457
3458 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
3459
3460         * doc/install.texi: Add documentation for installation into
3461         tooldirs and with DESTDIR.
3462
3463 2003-01-28  Richard Henderson  <rth@redhat.com>
3464
3465         * config.gcc (ia64*-*-aix*): Remove.
3466         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
3467         * config/ia64/unwind-aix.c: Remove file.
3468
3469 2003-01-28  Andreas Schwab  <schwab@suse.de>
3470
3471         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
3472         register.
3473         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
3474         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
3475         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
3476         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
3477         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
3478         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
3479         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
3480
3481 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
3482
3483         * combine.c (nonzero_bits): Fix check for negative divide operands.
3484
3485 2003-01-28  Richard Henderson  <rth@redhat.com>
3486
3487         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
3488         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
3489
3490 2003-01-28  Richard Henderson  <rth@redhat.com>
3491
3492         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
3493
3494         * config/cris/cris.c (cris_address_cost): Make static.
3495         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
3496         * config/cris/cris.h (ADDRESS_COST): Remove.
3497         * config/cris/cris-protos.h: Update.
3498
3499 2003-01-23  Mike Stump  <mrs@apple.com>
3500
3501         * regclass.c (init_reg_autoinc): New function.
3502         (regclass): Move initialization of forbidden_inc_dec_class from
3503         here...
3504         (init_regs): to here.  Avoids reinitialization for each function,
3505         saving compilation time.
3506
3507 2003-01-28  Jason Merrill  <jason@redhat.com>
3508
3509         * cpplib.h (struct cpp_options): Add warn_deprecated field.
3510         * cppinit.c (cpp_create_reader): Turn it on by default.
3511         * c-opts.c (c_common_decode_option): Set it.
3512         * cpplib.c (do_pragma_once): Only complain about #pragma once
3513         if warn_deprecated is set.
3514
3515 2003-01-28  Dale Johannesen  <dalej@apple.com>
3516
3517         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
3518         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
3519         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
3520
3521 2003-01-28  Richard Henderson  <rth@redhat.com>
3522
3523         * target.h (targetm.address_cost): New.
3524         * target-def.h (TARGET_ADDRESS_COST): New.
3525         (TARGET_RTX_COSTS): Uncomment.  Oops.
3526         * cse.c (address_cost): Use new target hook.
3527         (default_address_cost): New.
3528         * output.h (default_address_cost): Declare.
3529         * hooks.c (hook_int_rtx_0): New.
3530         * hooks.h (hook_int_rtx_0): Declare.
3531         * loop.c (combine_givs_p): Remove if 0 code.
3532         * system.h (ADDRESS_COST): Poison.
3533
3534         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
3535         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
3536         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
3537         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
3538         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
3539         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
3540         config/xtensa/xtensa.c, config/xtensa/xtensa.h
3541         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
3542         (ADDRESS_COST): Remove.
3543
3544         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
3545         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3546         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
3547         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
3548         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
3549         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
3550         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
3551         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
3552         config/mips/mips.c, config/mips/mips.h,
3553         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3554         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
3555         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
3556         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
3557         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
3558         config/vax/vax.c, config/vax/vax.h
3559         (foo_address_cost): Make static.
3560         (TARGET_ADDRESS_COST): New.
3561         (ADDRESS_COST): Remove.
3562
3563         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
3564         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
3565         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
3566         config/stormy16/stormy16.h
3567         (ADDRESS_COST): Move code ...
3568         (foo_address_cost): ... here.
3569         (TARGET_ADDRESS_COST): New.
3570
3571         * config/m32r/m32r.c (m32r_address_cost): Remove.
3572         * config/m32r/m32r-protos.h: Update.
3573
3574         * config/mmix/mmix.c (mmix_address_cost): Remove.
3575         * config/mmix/mmix-protos.h: Update.
3576
3577         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
3578         mn10300_address_cost; move unsig allocation ...
3579         (mn10300_address_cost): ... here.
3580         (TARGET_ADDRESS_COST): New.
3581         * config/mn10300/mn10300-protos.h: Update.
3582         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
3583
3584         * doc/tm.texi: Update.
3585
3586 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
3587
3588         * haifa-sched.c (schedule_insn): Return necessary cycle advance
3589         after issuing the insn.
3590         (rank_for_schedule): Make a insn with /S the highest priority
3591         insn.
3592         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
3593         (choose_ready): Check SCHED_GROUP_P.
3594         (schedule_block): Advance cycle after issuing insn if it is
3595         necessary.  Don't reorder insns if there is an insn with /S.
3596         (set_priorities): Ignore schedule groups.
3597
3598         * sched-deps.c (remove_dependence, group_leader): Remove the
3599         functions.
3600         (add_dependence): Ignore schedule groups.
3601         (set_sched_group_p): Don't make copy of dependencies from previous
3602         insn of the schedule group.  Add anti-dependency to the previous
3603         insn of the schedule group.
3604         (compute_forward_dependences): Ignore schedule groups.
3605
3606         * sched-ebb.c (init_ready_list): Ignore schedule groups.
3607
3608         * sched-rgn.c (init_ready_list): Ditto.
3609         (can_schedule_ready_p): Ditto.
3610
3611 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
3612
3613         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
3614         register to another one.
3615
3616 2003-01-28  Richard Henderson  <rth@redhat.com>
3617
3618         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
3619
3620 2003-01-28  Roger Sayle  <roger@eyesopen.com>
3621
3622         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
3623
3624 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
3625
3626         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
3627         class contains a floating-point register, return the size of the
3628         mode in half words.
3629
3630 Tue Jan 28 12:15:13 CET 2003  Jan Hubicka  <jh@suse.cz>
3631
3632         * i386.c (ix86_carry_flag_operator):  New predicate.
3633         (fcmov_operator): Fix whitespace.
3634         (ix86_expand_carry_flag_compare):  Deal with floating point.
3635         (ix86_expand_int_movcc): Deal with fp; update insn expansion
3636         (ix86_expand_int_addcc): Likewise.
3637         (ix86_expand_strlensi_unroll_1): likewsie.
3638         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
3639         * i386.md (add?i_carry_rex64): Use new predicate.
3640         (sub?i3_carry_rex64): Likewise.
3641         (x86_mov?icc_0_m1*): Likewise.
3642
3643 2003-01-28  Andreas Schwab  <schwab@suse.de>
3644
3645         * cfgloopmanip.c (create_preheader): Initialize src to avoid
3646         warning.
3647
3648         * expmed.c (emit_store_flag): Fix cast to avoid sign
3649         comparison warning.
3650
3651         * combine.c (force_to_mode): Add cast to fix warning when
3652         STORE_FLAG_VALUE is negative.
3653
3654 2003-01-27  Richard Henderson  <rth@redhat.com>
3655
3656         * Makefile.in (cse.o): Depend on TARGET_H.
3657         * cse.c (rtx_cost): Use targetm.rtx_costs.
3658         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
3659         * doc/tm.texi: Update.
3660
3661         * target.h (targetm.rtx_costs): New.
3662         * target-def.h (TARGET_RTX_COSTS): New.
3663         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
3664         * hooks.h: Update.
3665
3666         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
3667         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
3668         * config/alpha/alpha.h (PROCESSOR_MAX): New.
3669         (CONST_COSTS, RTX_COSTS): Remove.
3670
3671         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
3672         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
3673         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
3674         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
3675         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
3676         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
3677         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
3678         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
3679         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
3680         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
3681         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
3682         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
3683         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
3684         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
3685         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
3686         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
3687         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
3688         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
3689         config/v850/v850.c, config/v850/v850.h,
3690         config/xtensa/xtensa.c, config/xtensa/xtensa.h
3691         (CONST_COSTS, RTX_COSTS): Move code ...
3692         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
3693
3694         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
3695         (arm_rtx_costs, TARGET_RTX_COSTS): New.
3696         * config/arm/arm-protos.h: Update.
3697         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
3698
3699         * config/avr/avr.h (CONST_COSTS): Move code ...
3700         * config/avr/avr.c (avr_rtx_costs): ... here.
3701         (default_rtx_costs): Make static.
3702         * config/avr/avr-protos.h: Update.
3703
3704         * config/h8300/h8300.c (const_costs): Make static.
3705         (h8300_and_costs, h8300_shift_costs): Likewise.
3706         * config/h8300/h8300-protos.h: Update.
3707
3708         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
3709         (CONST_COSTS): Move code ...
3710         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
3711         default_rtx_costs; update for signature change.
3712         * config/ip2k/ip2k-protos.h: Update.
3713
3714         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
3715         (CONST_COSTS): Move code ...
3716         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
3717         (TARGET_RTX_COSTS): New.
3718         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
3719         * config/m68hc11/m68hc11-protos.h: Update.
3720
3721         * config/m68k/m68k.c (const_int_cost): Make static.
3722         * config/m68k/m68k-protos.h: Update.
3723
3724         * config/mcore/mcore.c (mcore_const_costs): Make static.
3725         (mcore_and_cost, mcore_ior_cost): Likewise.
3726         * config/mcore/mcore-protos.h: Update.
3727
3728         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
3729         (mmix_rtx_cost_recalculated): Remove.
3730         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
3731         * config/mmix/mmix-protos.h: Update.
3732
3733         * config/sh/sh.c (shiftcosts): Make static.
3734         (addsubcosts, andcosts, multcosts): Likewise.
3735         * config/sh/sh-protos.h: Update.
3736
3737         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
3738         (sparc_rtx_costs): Make static; update for change in signature.
3739         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
3740         * config/sparc/sparc-protos.h: Update.
3741
3742         * config/v850/v850.c (const_costs): Make static.
3743         * config/v850/v850-protos.h: Update.
3744
3745         * config/vax/vax.h (RTX_COSTS): Remove.
3746         (CONST_COSTS): Move code ...
3747         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
3748         from vax_rtx_cost.
3749         (vax_rtx_costs, TARGET_RTX_COSTS): New.
3750
3751 2003-01-27  Richard Henderson  <rth@redhat.com>
3752
3753         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
3754         * config/vax/vax-protos.h: Update.  Really.
3755
3756 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
3757
3758         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
3759         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
3760         zero if no hardware floating point.
3761         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
3762         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
3763         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
3764         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
3765         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
3766         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
3767         even FP registers on N32 and N64.
3768         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
3769         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
3770         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
3771         even-register-like alignment to 128-bit arguments.
3772         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
3773         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
3774         on N32 or N64.
3775         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
3776         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
3777         (TPBIT): Set to tp-bit.c.
3778         (tp-bit.c): Create out of fp-bit.c.
3779
3780 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3781
3782         * c-parse.in: Remove '%expect 32' directive in objc mode.
3783
3784 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
3785
3786         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
3787         (LIBGCOV): New variable.
3788         (libgcc.mk): Add LIBGCOV.
3789         (LIBGCC_DEPS): Add libgcov.c.
3790         (libgcov.a): New target.
3791         (clean): Remove libgcov.a.
3792         (install-libgcc): Do libgcov too.
3793         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
3794         with libgcov.a.
3795         * libgcc2.c (L_gcov): Move into ...
3796         * libgcov.c: ... here. New file.
3797         * mklibgcc.in: Add libgcov rules.
3798         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
3799
3800         * doc/invoke.texi (profile-arcs, test-coverage): Update and
3801         clarify.
3802
3803         * profile.c (index_counts_file): Remove duplicate check for open file.
3804
3805 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
3806
3807         * gcc/doc/invoke.texi (Optimization Options): Group together
3808         optional and experimental flags.  Move trapv and bounds-check
3809         out of this section.  Group floating point flags together.
3810         (Code Gen Options): Move trapv and bounds-check to here.
3811
3812 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
3813
3814         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
3815
3816 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
3817
3818         PR optimization/9090
3819         * function.c (purge_addressof_1): After pushing an addressed register
3820         onto the stack, simplify the result.
3821
3822 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3823
3824         * doc/extend.texi: Fix typo.
3825
3826 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3827
3828         * doc/cppopts.texi: Fix typo.
3829         * doc/objc.texi: Likewise.
3830         * doc/passes.texi: Likewise.
3831
3832 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
3833
3834         * real.c (ibm_extended_format): Add 53 to minimum exponent.
3835         (encode_ibm_extended): Adjust.
3836
3837 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
3838
3839         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
3840         timevar_id enumerations.
3841
3842 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3843
3844         * combine.c: Fix formatting.
3845
3846 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3847
3848         * doc/gccint.texi: Update the copyright.
3849
3850 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3851
3852         * doc/cpp.texi: Fix typos.
3853         * doc/extend.texi: Likewise.
3854         * doc/gty.texi: Likewise.
3855         * doc/install.texi: Likewise.
3856         * doc/passes.texi: Likewise.
3857         * doc/rtl.texi: Likewise.
3858         * doc/tm.texi: Likewise.
3859
3860 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3861
3862         * config/ia64/fde-glibc.c: Fix comment typos.
3863         * config/ia64/hpux.h: Likewise.
3864         * config/ia64/ia64.c: Likewise.
3865         * config/ia64/ia64.h: Likewise.
3866         * config/ia64/unwind-ia64.c: Likewise.
3867
3868 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3869
3870         * config/i386/i386-modes.def: Fix comment typos.
3871         * config/i386/i386.c: Likewise.
3872         * config/i386/i386.md: Likewise.
3873
3874 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3875
3876         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
3877         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
3878         ASM_FINISH_DECLARE_OBJECT before defining it.
3879         * toplev.c (rest_of_decl_compilation):  Don't define
3880         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
3881         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
3882         parameters for DWARF2 targets because they _are_ used.
3883
3884 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
3885
3886         * fp-bit.h: Define macros for TFmode floating-point constants
3887         in IBM-extended TFmode types.
3888         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
3889         widths.
3890         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
3891         TFmode type.
3892
3893         * config/fp-bit.h: Define macros for TFmode floating-point
3894         constants in IEEE quad TFmode type.  Declare functions according
3895         to L_ macros.
3896         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
3897         (TFtype, TItype, UTItype): Define if TMODES is defined.
3898         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
3899         (F_T_BITOFF, D_T_BITOFF): Define.
3900         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
3901         guaranteed to be wide enough.
3902         * config/fp-bit.c: Check for L_ macros for tf functions.
3903         (__thenan_tf): New.
3904         (nan): Adjust.
3905         (pack_d, unpack_d): Support IEEE 854 quad type.
3906         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
3907         from FRAC_NBITS, FRAC_BITS and NGARDS.
3908         (usi_to_float): Cast constants to be shifted to fractype
3909         instead of assuming long long is wide enough.
3910         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
3911
3912 2003-01-26  Andreas Jaeger  <aj@suse.de>
3913
3914         * df.c: Remove prototype of unused function df_regno_rtl_debug.
3915
3916 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
3917
3918         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
3919         (DBBIT_FUNCS): Added _df_to_tf.
3920         (TPBIT_FUNCS): New.
3921         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
3922         (LIBGCC_DEPS): Added TPBIT.
3923         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
3924
3925         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
3926         been able to move the result to target.
3927
3928         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
3929         for the appropriate mode.
3930
3931         * calls.c (emit_library_call_value_1): Handle return values
3932         in a PARALLEL.
3933
3934         * rtl.c (get_mode_alignment): Moved to...
3935         * stor-layout.c: ... here.
3936
3937         * print-rtl.c (print_rtx): Don't print MEM details in
3938         GENERATOR_FILEs.
3939
3940 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
3941
3942         * df.h: Update comments, tidy formatting.
3943         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
3944         REVERSE, UNION, INTERSECTION.  All uses updated.
3945         (OLD_DF_INTERFACE): Remove.
3946         (struct insn_info): Remove commented out insn field.
3947         * df.c: Update comments, tidy formatting.
3948         (df_def_table_realloc): Remove.
3949
3950
3951 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
3952
3953         * calls.c (save_fixed_argument_area): Tidy.
3954         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
3955         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
3956         call chain loop at 1 if !try_tail_call.  Formatting.
3957         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
3958         Use save_fixed_argument_area and restore_fixed_argument_area.
3959
3960 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3961
3962         * df.c (df_uses_record): Handle CC0.
3963
3964 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
3965
3966         * reload.c (maybe_memory_address_p): New function.
3967         (find_reloads_address): Use it instead of memory_address_p.
3968
3969 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3970
3971         * final.c (shorten_branches): Align the address of code label
3972         when computing initial lengths and addresses.
3973
3974 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3975
3976         * config/m68hc11/m68hc11.md: Fix a comment typo.
3977
3978 2003-01-25  Andreas Jaeger  <aj@suse.de>
3979
3980         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
3981         TARGET_MACHO.
3982
3983 2003-01-25  Roger Sayle  <roger@eyesopen.com>
3984
3985         * gcse.c (bypass_last_basic_block): New global variable.
3986         (bypass_block):  Use redirect_edge_and_branch_force to redirect
3987         fall-through edges.  Use bypass_last_basic_block to determine
3988         which blocks have valid PRE information.
3989         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
3990
3991 Sat Jan 25 22:31:59 CET 2003  Jan Hubicka  <jh@suse.cz>
3992
3993         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
3994
3995 Sat Jan 25 21:04:33 CET 2003  Jan Hubicka  <jh@suse.cz>
3996                               Eric Botcazou <ebotcazou@libertysurf.fr>
3997         PR opt/8492
3998         * gcse.c (one_cprop_pass): Delete unreachable blocks.
3999
4000 2003-01-25  Richard Henderson  <rth@redhat.com>
4001
4002         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
4003         from ia64_aix_select_rtx_section.
4004         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
4005         instead of saving and restoring flag_pic.
4006         (ia64_rwreloc_unique_section): Similarly.
4007         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
4008         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
4009         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
4010         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
4011
4012 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4013
4014         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
4015         comment.
4016
4017 2002-01-25  Richard Henderson  <rth@redhat.com>
4018
4019         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
4020
4021 2002-01-25  Kelley Cook <kelleycook@comcast.net>
4022
4023         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
4024
4025 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
4026
4027         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
4028         type for bitmaps.  Use unsigned long.
4029         (nBITMAP_WORD_BITS): New macro.
4030         (BITMAP_WORD_BITS): New macro.
4031         (rest of file): Use it.
4032         * bitmap.c: Use it.
4033
4034 2003-01-25  Richard Henderson  <rth@redhat.com>
4035
4036         2002-02-19  Robert Lipe  <robertlipe@usa.net>
4037         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
4038
4039 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4040
4041         * builtins.c (purge_builtin_constant_p): Scan insn stream
4042         sequentially rather than by basic block.
4043         * function.c (purge_addressof): Simplify test with INSN_P.
4044
4045 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4046
4047         * combine.c (simplify_comparison, case AND): Remove a redundant test.
4048
4049 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4050
4051         * function.h (struct function): New field calls_constant_p.
4052         (current_function_calls_constant_p): New macro for above.
4053         * function.c (prepare_function_start): Initialize calls_eh_return
4054         and calls_constant_p.
4055         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
4056         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
4057         when the current_function_calls_constant_p.
4058         * integrate.c (expand_inline_function): Set calls_constant_p if
4059         the function being inlined has calls_constant_p set.
4060
4061 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4062
4063         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
4064         optimizing, even if flag_gcse is true.
4065         * toplev.c (rest_of_compilation): purge_builtin_constant_p
4066         only needs to be called when "optimize > 0 && flag_gcse".
4067
4068 2003-01-25  Roger Sayle  <roger@eyesopen.com>
4069
4070         * stmt.c (emit_case_bit_tests): New routine to implement suitable
4071         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
4072         (case_bit_test_cmp): New comparison function for "qsort" to order
4073         case_bit_tests by decreasing number of destination nodes.
4074         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
4075         (expand_end_case_type): Use emit_case_bit_tests to implement
4076         suitable switch statments.
4077         (CASE_USE_BIT_TESTS): New target macro to disable the above.
4078         * Makefile.in (stmt.o): Add dependency on optab.h.
4079         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
4080
4081 2003-01-23  Andreas Schwab  <schwab@suse.de>
4082
4083         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
4084         __do_global_ctors_aux hidden global and don't put it in
4085         .init_array.
4086         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
4087         instead so that it comes first.
4088
4089 Sat Jan 25 16:11:22 CET 2003  Jan Hubicka  <jh@suse.cz>
4090
4091         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
4092         subreg is read/modify.
4093
4094 Sat Jan 25 15:55:08 CET 2003  Jan Hubicka  <jh@suse.cz>
4095
4096         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
4097         do libcall for large blocks.
4098         * i386.md (comi patterns): Set type to ssecomi.
4099         (sse2_unpck?pd): Fix mode of vec_select.
4100
4101         * cse.c: Include except.h
4102         (cse_set_around_loop):  Do not create new basic blocks.
4103         * Makefile.in (cse.o): Add dependnecy on except.h
4104
4105 Sat Jan 25 12:05:17 CET 2003  Jan Hubicka  <jh@suse.cz>
4106
4107         * builtins.c (fold_trunc_transparent_mathfn): New function.
4108         (fold_builtin): Use it.
4109         * convert.c (convert_to_real): Re-enable code to convert
4110         math functions; add support for floor familly functions.
4111
4112 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4113
4114         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
4115         dependencies on coretypes.h and $(TM_H).
4116
4117 Sat Jan 25 11:10:03 CET 2003  Jan Hubicka  <jh@suse.cz>
4118
4119         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
4120
4121 2002-01-24  Stuart Hastings  <stuart@apple.com>
4122
4123         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
4124
4125 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4126
4127         * config/c4x/c4x.md (UNSPEC_BU): New constants.
4128         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
4129         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
4130         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
4131         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
4132         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
4133         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
4134         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
4135
4136 Fri Jan 24 23:44:12 CET 2003  Jan Hubicka  <jh@suse.cz>
4137
4138         * emit-rtl.c (reg_attrs_htab): New static variable.
4139         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
4140         functions.
4141         (reg_rtx): Do not maintain regno_decl.
4142         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
4143         set_mem_attrs_from_reg): New global function.
4144         (init_emit): Do not initialize regno_decl.
4145         (init_emit_once): initialize reg_attrs_htab.
4146         * final.c (alter_subreg): Do not replace REG by SUBREG.
4147         (gen_mem_expr_from_op): Improve output.
4148         (output_asm_operands): Likewise.
4149         * function.c (assign_params): Do not set REGNO_DECL.
4150         * function.h (struct function): Kill regno_decl.
4151         (REGNO_DECL): Kill.
4152         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
4153         * print_rtl.c (print_rtx): Output REG information.
4154         * regclass.c (reg_scan_mark_refs): Update attrs.
4155         * reload1.c (alter_reg): Likewise.
4156         * simplify_rtx.c (simplify_subreg): Likewise.
4157         * stmt.c (expand_decl): Likewise.
4158         * rtl.def (REG): Add new field.
4159         * rtl.h (struct reg_attrs): New.
4160         (rtunion_def): At rtreg.
4161         (X0MEMATTR): Add checking.
4162         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
4163         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
4164         Declare.
4165         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
4166
4167 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
4168
4169         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
4170         (xtensa_emit_call, print_operand): Fix printf format strings
4171         to avoid compile warnings.
4172         (xtensa_function_prologue, xtensa_function_epilogue): Change type
4173         of "size" argument to HOST_WIDE_INT to fix compile warnings.
4174         * config/xtensa/xtensa-protos.h
4175         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
4176
4177 Fri Jan 24 23:03:32 CET 2003  Jan Hubicka  <jh@suse.cz>
4178
4179         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
4180         (implicit_built_in_decls): New global array.
4181         (mathfn_built_in): New global function.
4182         (fold_trunc_transparent_mathfn): New static function
4183         (expand_builtin_strstr, expand_bultin_strchr,
4184         expand_builtin_strpbrk, expand_builtin_strcpy,
4185         expand_builtin_strncpy, expand_bultin_strcmp,
4186         expand_bultin_strncat, expand_builtin_fputs): Use
4187         implicint_built_in_decls.
4188         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
4189         * builtins.def: Fix comments.
4190         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
4191         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
4192         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
4193         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
4194         (DEF_C99_C90RES_BULTIN): New.
4195         (*f, *l builtins): Update.
4196         * c-common.c (DEF_BUILTIN): Initialize implicit array.
4197         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
4198         * convert.c (strip_float_extensions): New global function.
4199         * tree.h (DEF_BUILTIN): Accept 10 arguments.
4200         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
4201         Declare.
4202         * java/builtins.c (define_builtin): Handle implicit.
4203         (DEF_BUILTIN): Update.
4204         * tm.texi (TARGET_C99_FUNCTIONS): Document.
4205         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
4206         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
4207         when using glibc2.
4208
4209 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
4210
4211         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
4212         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
4213         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
4214         * config/xtensa/crti.asm: New file.
4215         * config/xtensa/crtn.asm: New file.
4216         * config/xtensa/t-elf: New file.
4217         * config/xtensa/t-linux: New file.
4218         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
4219         Move various CFLAGS settings to new t-elf file.
4220
4221 2003-01-24  Richard Henderson  <rth@redhat.com>
4222
4223         PR optimization/4382
4224         * tree-inline.c (find_builtin_longjmp_call_1): New.
4225         (find_builtin_longjmp_call): New.
4226         (inlinable_function_p): Use it.
4227
4228 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4229
4230         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
4231         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
4232         * config/i386/i386.c (function_arg_pass_by_reference): New.
4233         (ix86_va_arg): Support arguments passed by reference.
4234
4235 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4236
4237         * cfgloopanal.c: New file.
4238         * cfgloopmanip.c: New file.
4239         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
4240         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
4241         cfglayout.o): Add dependency on cfgloop.h.
4242         (cfgloop.o): Add flags.h dependency.
4243         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
4244         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
4245         (struct loop, struct loops, flow_loops_find, flow_loops_update,
4246         flow_loops_free, flow_loops_dump, flow_loop_dump,
4247         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
4248         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
4249         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
4250         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
4251         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
4252         find_common_loop, verify_loop_structure): Declarations moved to ...
4253         * cfgloop.h: New file.
4254         * bb-reorder.c (reorder_basic_blocks): Modified.
4255         * cfglayout.c: Include cfgloop.h.
4256         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
4257         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
4258         (break_superblocks): New static function.
4259         (cfg_layout_finalize): Use it.
4260         (cfg_layout_split_block): New function.
4261         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
4262         fields.
4263         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
4264         changed.
4265         (cfg_layout_split_block): Declare.
4266         * cfgloop.c: Include cfgloop.h and flags.h.
4267         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
4268         get_loop_body): Avoid signed versus unsigned comparison warnings.
4269         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
4270         loop_latch_edge): Modified.
4271         (verify_loop_structure): Modified to use flags stored in loop structure;
4272         check irreducible loops.
4273         (cancel_loop, cancel_loop_tree): New functions.
4274         (estimate_probability): Use loop analysis code for predictions.
4275         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
4276         warnings.
4277         * doloop.c: Include cfgloop.h.
4278         * loop.c: Include cfgloop.h.
4279         * predict.c: Include cfgloop.h.
4280         * toplev.c: Include cfgloop.h.
4281         * unroll.c: Include cfgloop.h.
4282         * tracer.c (tracer): Modified.
4283
4284 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4285
4286         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
4287
4288 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
4289
4290         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
4291         * configure: Regenerate.
4292
4293         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
4294         (tls_symbolic_reference_mentioned_p): Add prototype.
4295         (s390_tls_get_offset): Add prototype.
4296         (emit_pic_move): Remove prototype, replace by ...
4297         (emit_symbolic_move): .. this new prototype.
4298
4299         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
4300         (tls_model_chars): New global variable.
4301         (s390_encode_section_info): Encode TLS model.
4302         Use targetm.binds_local_p to check for local symbols.
4303         (s390_strip_name_encoding): New function.
4304         (TARGET_STRIP_NAME_ENCODING): Define.
4305
4306         (get_thread_pointer): New function.
4307         (legitimize_tls_address): New function.
4308         (legitimize_address): Call it.
4309         (emit_pic_move): Remove, replace by ...
4310         (emit_symbolic_move): ... this new function.
4311
4312         (larl_operand): Handle TLS operands.
4313         (legitimate_constant_p): Likewise.
4314         (s390_decompose_address): Likewise.
4315         (s390_cannot_force_const_mem): New function.
4316         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4317
4318         (s390_output_symbolic_const): Handle TLS unspecs.
4319         (print_operand): New code 'J'.
4320         (machine_function): Add struct member 'some_ld_name'.
4321         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4322
4323         (enum s390_builtin): New type.
4324         (code_for_builtin_64, code_for_builtin_31): New global variables.
4325         (s390_init_builtins, s390_expand_builtin): New functions.
4326         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4327
4328         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
4329         (ASM_OUTPUT_LABELREF): Define.
4330         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
4331
4332         * config/s390/s390.md: Define TLS UNSPEC constants.
4333         ("movdi", "movsi"): Handle TLS operands.
4334         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
4335         ("*tls_load_64", "*tls_load_31"): New insns.
4336         ("call_value_tls", "call_value_tls_exp"): New expanders.
4337         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
4338         "bas_tls_64", "bas_tls_31"): New insns.
4339
4340 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
4341
4342         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
4343         spe ABI is configured, if requested.
4344
4345 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4346
4347         * doc/passes.texi: Fix typo.
4348
4349 2003-01-24  Andreas Schwab  <schwab@suse.de>
4350
4351         * stor-layout.c (excess_unit_span): Only define if used.
4352
4353 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
4354
4355         * gcc/doc/invoke.texi (Optimization Options): List -O levels
4356         for each optimization flag.
4357
4358 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4359
4360         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
4361
4362 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4363
4364         * doc/bugreport.texi: Use @command instead of @code for commands.
4365         * doc/collect2.texi: Likewise.
4366         * doc/headerdirs.texi: Likewise.
4367         * doc/invoke.texi: Likewise.
4368         * doc/standards.texi: Likewise.
4369         * doc/tm.texi: Likewise.
4370         * doc/trouble.texi: Likewise.
4371
4372 2003-01-24  Nick Clifton  <nickc@redhat.com>
4373
4374         * config/arm/arm.c (use_return_insn): Do not use a single return
4375         instruction for interrupt handelrs which have to create a stack
4376         frame.
4377         (arm_expand_prologue): Do not pre-bias the return address of
4378         interrupt handlers which create a stack frame.
4379
4380 2003-01-24  Nick Clifton  <nickc@redhat.com>
4381
4382         * Add sh2e support:
4383
4384         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
4385
4386                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
4387                 med_cbranches.  Fix logic in short_cbranches.
4388
4389         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
4390
4391                 * config/sh/sh.md (delay for cbranch): Don't annul delay
4392                 slots on SH2e.
4393                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
4394                 cbranch with unfilled delay slot on SH2e.
4395                 (output_branch): Fill with a nop the delay slot of a
4396                 branch that required a delay slot but didn't get one.
4397
4398         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
4399
4400                 * doc/invoke.texi (SH options): Document -m2e.
4401                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
4402                 * config/sh/lib1funcs.asm: Likewise.
4403                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
4404                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
4405                 not __sh1__.
4406                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
4407                 SH2E up.
4408                 (SH3E_BIT): Renamed to...
4409                 (SH_E_BIT): ... this.  Replace all uses.
4410                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
4411                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
4412                 (TARGET_SWITCHES): Added 2e.
4413                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
4414                 (processor_type): Added PROCESSOR_SH2E.
4415                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
4416                 TARGET_SH2E, except in sqrtsf2_i.
4417                 (attribute cpu): Added sh2e.
4418                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
4419                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
4420                 * config.gcc: Add sh2e target support.
4421
4422 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
4423
4424         Rename -W to -Wextra.
4425         * c-decl.c:  Update comments.
4426         * c-typeck.c:  Likewise.
4427         * flags.h:  Likewise.
4428         * function.c:  Likewise.
4429         * stmt.c:  Likewise.
4430         * toplev.c:  Update comments.
4431         (W_options):  Add 'extra'.
4432         (display_help):  Remove '-W'.
4433         (decode_W_option):  Special warn_uninitialized treatment in the case
4434         of -Wextra.
4435         * doc/invoke.texi:  Update with new entries.
4436
4437 2003-01-23  Richard Henderson  <rth@redhat.com>
4438
4439         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
4440         in no-else-block case.  Add commentary.
4441
4442 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4443
4444         * configure.in: Revert last change.
4445
4446 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4447
4448         * configure.in: Don't include ansidecl.h in tconfig.h.
4449         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
4450         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
4451         ATTRIBUTE_UNUSED.
4452
4453         * configure: Regenerate.
4454
4455 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4456
4457         PR java/6748
4458         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
4459         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
4460         kernels.
4461
4462 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4463
4464         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
4465
4466 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
4467
4468         * genattrtab.c (write_attr_get): Mark 'insn' paramter
4469         as ATTRIBUTE_UNUSED.
4470
4471 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
4472
4473         * arm.c (thumb_base_register_rtx_p): New function.
4474         (thumb_index_register_rtx_p): New function.
4475         (thumb_legitimate_address_p): New function.
4476         (thumb_legitimate_offset_p): New function.
4477         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
4478         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
4479         definitions.
4480         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
4481         (THUMB_LEGITIMATE_OFFSET): Delte.
4482         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
4483         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
4484         (thumb_legitimate_offset_p): Likewise.
4485
4486 2003-01-23  Andreas Schwab  <schwab@suse.de>
4487
4488         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
4489
4490 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4491
4492         * fixinc/Makefile.in (FL_LIST): Revert last change.
4493
4494 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4495
4496         PR other/7341
4497         * invoke.texi (ftest-coverage): Fix broken cross-reference.
4498         Change @code to @command for gcov command.
4499
4500         * gcc.texi: Adjust title of gcov section.
4501         Adjust copyright.
4502         * gcov.texi: Likewise.
4503
4504 2003-01-22  Roger Sayle  <roger@eyesopen.com>
4505
4506         PR optimization/8423
4507         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
4508         its argument is constant, or 0 if !flag_gcse.
4509         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
4510         if it's argument is constant.
4511         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
4512         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
4513         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
4514         * builtins.c (purge_builtin_constant_p): New function to force
4515         instantiation of any remaining CONSTANT_P_RTX nodes.
4516         * rtl.h (purge_builtin_constant_p): Prototype here.
4517         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
4518         pass after GCSE and before loop.
4519         (flag_gcse): No longer static.
4520         * flags.h (flag_gcse): Prototype here.
4521
4522 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
4523
4524         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
4525         introduced by last change.
4526
4527 2003-01-22  Andreas Schwab  <schwab@suse.de>
4528
4529         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
4530
4531 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
4532
4533         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
4534         request a scratch reg on H8S when the shift count is 8.
4535
4536 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
4537
4538         * config/s390/s390-protos.h (preferred_la_operand_p):
4539         Remove second parameter.
4540         * config/s390/s390.c (preferred_la_operand_p): Likewise.
4541         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
4542         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
4543         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
4544         Add peepholes to transform ADD to LOAD ADDRESS.
4545
4546 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
4547
4548         * arm.c (arm_address_register_rtx_p): New function.
4549         (arm_legitimate_address_p): New function.
4550         (arm_legitimate_index_p): New function.
4551         (legitimize_pic_address): Use arm_legitimate_index_p.
4552         * arm-protos.h (arm_legtimate_address_p): Add prototype.
4553         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
4554         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
4555
4556 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
4557
4558         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
4559         * config/s390/2064.md (define_bypass): Correct 'Load' and
4560         'Load-address' bypass values.
4561
4562 2003-01-22  Andreas Schwab  <schwab@suse.de>
4563
4564         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
4565
4566 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
4567
4568         * genautomata.c (output_internal_insn_latency_func,
4569         output_print_reservation_func): Short circuit when there is no
4570         automaton to generate code for.
4571
4572 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4573
4574         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
4575         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
4576
4577 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
4578
4579         * config/rs6000/rs6000.md: Remove warning.
4580         (builtin_setjmp_receiver): Likewise.
4581         * config/darwin.c (update_stubs): Slightly improve terrible hack
4582         with identifiers.  Add comment pointing out problems with it.
4583         (update_non_lazy_ptrs): Likewise.
4584
4585 2003-01-21  Richard Henderson  <rth@redhat.com>
4586
4587         * dwarf2out.c (lookup_filename): Fix printf format warning.
4588         * system.h (fread_unlocked, fwrite_unlocked): Undef.
4589
4590         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
4591         (fixincl.o-warn, gnu-regex.o-warn): New.
4592         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
4593         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
4594         * fixinc/fixincl.c (process): Fix printf format warning.
4595
4596 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
4597
4598         * dwarf2out (output_file_names): Don't crash if called
4599         with empty file_table.
4600
4601 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
4602
4603         * genautomata.c (output_internal_insn_latency_func): Add
4604         missing break statement to generated code.
4605
4606 2003-01-21  Roger Sayle  <roger@eyesopen.com>
4607
4608         * stmt.c (same_case_target_p): New function to determine whether
4609         two case labels branch to the same target.  Split out from...
4610         (group_case_nodes): ... here.  Use same_case_target_p instead.
4611         (strip_default_case_nodes): Remove explicit case nodes
4612         that branch to the default destination.
4613         (expand_end_case_type): Call strip_default_case_nodes after
4614         group_case_nodes, to simplify the case-list before we count it.
4615         Only generate table_label RTX when actually needed.  Try to share
4616         thiscase->exit_label and thiscase->data.case_stmt.default_label
4617         when a switch has no explicit default case.  Simplify test for
4618         constant index.
4619
4620 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
4621
4622         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
4623         \t.
4624         (*negsf2_h8300hs): Likewise.
4625         (*addsi3_lshiftrt_16_zexthi): Likewise.
4626         (*iorhi3_lshiftrt_8): Likewise.
4627
4628 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
4629
4630         * dwarf2out.c (fde_table_in_use): Mark GTY.
4631         (dwarf2out_cfi_label_num): New variable, marked GTY.
4632         (dwarf2out_cfi_label): Use it instead of static label_num.
4633         * emit-rtl.c (label_num): Mark GTY.
4634
4635 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
4636
4637         * config/h8300/h8300.c (output_plussi): Support H8/300.
4638         (compute_plussi_length): Likewise.
4639         (compute_plussi_cc): Likewise.
4640         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
4641         output assembly instructions.
4642
4643 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4644
4645         * calls.c (fix_unsafe_tree): Prototype.
4646
4647         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
4648         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
4649         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
4650         c-parse.o-warn): Add -Wno-error.
4651         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
4652
4653         * configure.in (--enable-werror): Add new flag.
4654         * doc/install.texi (--enable-werror): Document.
4655         * configure: Regenerate.
4656
4657         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
4658
4659 2003-01-21  Andreas Schwab  <schwab@suse.de>
4660
4661         * genautomata.c (output_internal_insn_latency_func): Fix missing
4662         close paren in output.
4663
4664 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
4665
4666         * genautomata.c: Space savings in generated code:
4667         (output_dfa_insn_code_func): Split out the table-enlargement
4668         path to an out-of-line static function, dfa_insn_code_enlarge.
4669         (output_internal_insn_latency_func): Use a lookup table for the
4670         default latencies.
4671         (output_print_reservation_func): Use a lookup table for the
4672         strings.
4673
4674 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
4675
4676         PR opt/7507
4677         * calls.c (fix_unsafe_tree): Split out from ...
4678         (expand_call): ... here.  Use it on the function address too.
4679
4680 2003-01-20  Richard Henderson  <rth@redhat.com>
4681
4682         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
4683
4684 2003-01-20  Richard Henderson  <rth@redhat.com>
4685
4686         PR opt/7154
4687         * stmt.c (expand_asm_operands): Validize memory operands.
4688
4689 2003-01-20  Richard Henderson  <rth@redhat.com>
4690
4691         PR opt/8848
4692         * ifcvt.c (noce_process_if_block): Correct arguments to
4693         modified_between_p for no-else-block case.
4694
4695 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
4696
4697         * config/h8300/h8300.c (const_costs): Remove a warning.
4698         (output_plussi): Likewise.
4699         (compute_plussi_length): Likewise.
4700         (compute_plussi_cc): Likewise.
4701
4702 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
4703
4704         * config/h8300/h8300.md (addsi_h8300): Remove the last
4705         alternative.
4706
4707 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
4708
4709         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
4710
4711 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4712
4713         * system.h (__NO_STRING_INLINES): Define.
4714
4715 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4716
4717         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
4718         is not a scalar int mode.
4719
4720 2003-01-20  Roger Sayle  <roger@eyesopen.com>
4721
4722         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
4723         insn's notes following a substitution inside a libcall.
4724
4725 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
4726
4727         * configure.in: Check for system-provided 'uchar' type.
4728         * configure, config.in: Regenerate.
4729         * cpphash.h: Only typedef 'uchar' if the system doesn't.
4730
4731 2003-01-20  Richard Henderson  <rth@redhat.com>
4732
4733         * expr.h (MUST_PASS_IN_STACK): Move implementation...
4734         * calls.c (default_must_pass_in_stack): ... here.
4735
4736 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
4737
4738         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
4739
4740         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
4741
4742         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
4743         Wrap up definition of `insn_alts'.
4744
4745         * genattrtab.c (main): Wrap up `insn_alts'.
4746
4747 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4748
4749         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
4750         prototyping.
4751         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
4752
4753         * config.in, configure: Regenerate.
4754
4755 2003-01-20  Nick Clifton  <nickc@redhat.com>
4756
4757         * config/arm/arm.md (sibcall_epilogue): Add an
4758         UNSPEC_PROLOGUE_USE to prevent the link register from being
4759         considered dead.
4760
4761 Mon Jan 20 14:36:23 CET 2003  Jan Hubicka  <jh@suse.cz>
4762
4763         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
4764
4765 2003-01-20  Andreas Schwab  <schwab@suse.de>
4766
4767         * system.h: Don't declare strsignal if the decl test hasn't been
4768         run yet.
4769
4770 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
4771
4772         * config/h8300/h8300.c (notice_update_cc): Don't assume that
4773         recog_data.operands[0] is always associated with cc0.
4774
4775 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
4776
4777         * collect2.c (ldgetname): Expand declaration to prototype.
4778         * read-rtl.c (atoll): Add prototype.
4779         * system.h (strsignal): Also declare if no declaration found.
4780
4781 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
4782
4783         * config.gcc (mips64*-*-linux*): Added.
4784         * config/mips/linux64.h, config/mips/t-linux64: New file.
4785         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
4786         * config/mips/mips.c (override_options): Use it.
4787         * config/mips/mips.h (TARGET_SWITCHES): Added...
4788         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
4789         * Makefile.in (SPECS): New.
4790         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
4791         * gcc.c (process_command): Move self-spec processing past spec
4792         file loading.
4793         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
4794         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
4795         CRTSTUFF_T_CFLAGS.
4796         (SPECS): Document.
4797         * doc/invoke.texi (-mabi-fake-default): Document.
4798
4799 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
4800
4801         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
4802         z_reg, z_reg_qi): Declare static and GTY().
4803         (da_reg): Remove.
4804         (create_regs_rtx): Don't create da_reg.
4805         ("gt-m68hc11.h"): Include for GTY roots.
4806         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
4807         and GTY() here.
4808         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
4809         (m68hc11_soft_tmp_reg): Likewise.
4810         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
4811
4812 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
4813
4814         * basic-block.h: Fix comment formatting.
4815         * calls.c: Likewise.
4816         * combine.c: Likewise.
4817         * convert.c: Likewise.
4818         * gcov.c: Likewise.
4819         * haifa-sched.c: Likewise.
4820         * libgcc2.c: Likewise.
4821         * loop.c: Likewise.
4822         * profile.c: Likewise.
4823         * system.h: Likewise.
4824
4825 2003-01-18  Roger Sayle  <roger@eyesopen.com>
4826
4827         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
4828
4829 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4830
4831         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
4832
4833 2003-01-17  Dale Johannesen  <dalej@apple.com>
4834
4835         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
4836           (*floatunssidf2_internal):  Ditto.
4837
4838 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
4839
4840         * alias.c: Fix comment typos.
4841         * basic-block.h: Likewise.
4842         * c-common.c: Likewise.
4843         * c-common.h: Likewise.
4844         * c-decl.c: Likewise.
4845         * c-opts.c: Likewise.
4846         * c-pragma.c: Likewise.
4847         * c-pretty-print.h: Likewise.
4848         * cfg.c: Likewise.
4849         * cfganal.c: Likewise.
4850         * cfgbuild.c: Likewise.
4851         * cfgcleanup.c: Likewise.
4852         * cfglayout.c: Likewise.
4853         * cfgrtl.c: Likewise.
4854         * convert.c: Likewise.
4855         * cpphash.h: Likewise.
4856         * cpplex.c: Likewise.
4857         * cpplib.h: Likewise.
4858         * df.h: Likewise.
4859         * diagnostic.c: Likewise.
4860         * diagnostic.h: Likewise.
4861         * dwarf2.h: Likewise.
4862
4863 2003-01-17  Stan Shebs  <shebs@apple.com>
4864
4865         * config/darwin-protos.h: Forward-declare struct cpp_reader.
4866
4867 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
4868
4869         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
4870         mistake in last checkin.
4871
4872 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
4873
4874         * et-forest.c: Fix comment typos.
4875         * et-forest.h: Likewise.
4876         * except.c: Likewise.
4877         * expr.c: Likewise.
4878         * flags.h: Likewise.
4879         * flow.c: Likewise.
4880         * gcc.c: Likewise.
4881         * gcse.c: Likewise.
4882         * genattrtab.c: Likewise.
4883         * genautomata.c: Likewise.
4884         * gengtype.c: Likewise.
4885         * genrecog.c: Likewise.
4886         * global.c: Likewise.
4887         * gthr-rtems.h: Likewise.
4888
4889 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4890
4891         * i386.c (x86_function_profiler): Fix format specifier.
4892
4893 2003-01-17  Richard Henderson  <rth@redhat.com>
4894
4895         * gengtype.c (walk_type): Allow paramN_is.
4896
4897 2003-01-17  Nick Clifton  <nickc@redhat.com>
4898
4899         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
4900
4901 2003-01-16  Richard Henderson  <rth@redhat.com>
4902
4903         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
4904
4905 2003-01-16  Richard Henderson  <rth@redhat.com>
4906
4907         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
4908         (alpha_next_sequence_number): Likewise.
4909         (alpha_this_literal_sequence_number): Likewise.
4910         (alpha_this_gpdisp_sequence_number): Likewise.
4911         (struct alpha_funcs, alpha_funcs_num): Likewise.
4912         (struct alpha_links): Fix branch merge error.
4913         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
4914
4915 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
4916
4917         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
4918         R. Ghazi.
4919
4920 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
4921
4922         * ifcvt.c: Fix comment typos.
4923         * lcm.c: Likewise.
4924         * libgcc2.c: Likewise.
4925         * local-alloc.c: Likewise.
4926         * loop.c: Likewise.
4927         * predict.c: Likewise.
4928         * ra-build.c: Likewise.
4929         * ra.c: Likewise.
4930         * ra-colorize.c: Likewise.
4931         * ra.h: Likewise.
4932         * ra-rewrite.c: Likewise.
4933         * regmove.c: Likewise.
4934         * reload.h: Likewise.
4935         * rtlanal.c: Likewise.
4936         * toplev.c: Likewise.
4937         * tree.h: Likewise.
4938         * unwind-dw2-fde-glibc.c: Likewise.
4939         * vmsdbgout.c: Likewise.
4940
4941 2003-01-16  Richard Henderson  <rth@redhat.com>
4942
4943         * dwarf2out.c (struct file_table): Remove.
4944         (FILE_TABLE_INCREMENT): Remove.
4945         (file_table): Make a varray; mark for GC.  Update all users.
4946         (file_table_last_lookup_index): Extract from struct file_table.
4947         (output_file_names): Fix unsigned compare warnings.
4948         (add_name_attribute): Remove inline marker.
4949         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
4950         (lookup_filename): Don't manage size of file_table.
4951         (init_file_table): Allocate file_table with GC.
4952         (dwarf2out_init): Don't record main_input_filename here.
4953         (dwarf2out_finish): Do it here instead.
4954
4955 2003-01-16  Bruce Korb  <bkorb@gnu.org>
4956
4957         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
4958
4959 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
4960
4961         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
4962         instead of rotldi3_mextr.
4963
4964 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
4965
4966         * haifa-sched.c (move_insn): Restore moving all schedule group.
4967         (set_priorities): Restore taking SCHED_GROUP_P into account.
4968
4969         * sched-deps.c (add_dependence): Restore processing the last group
4970         insn.
4971         (remove_dependence, group_leader): Restore the functions.
4972         (set_sched_group_p): Restore adding dependencies from previous insn
4973         in the group.
4974         (compute_forward_dependences): Restore usage of group_leader.
4975
4976         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
4977         account.
4978
4979         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
4980         account.
4981         (can_schedule_ready_p): Ditto.
4982         (add_branch_dependences): Restore skipping over the group insns.
4983
4984 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
4985
4986         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
4987         68HC12 pre/post inc/dec side effects.
4988
4989 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
4990
4991         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
4992
4993 Thu Jan 16 21:50:25 2003  J"orn Rennecke <amylaar@onetel.net.uk>
4994
4995         * sh.md (mshflo_w_x): Fix description of operation.
4996
4997 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
4998
4999         * config/rs6000/rs6000.h: Mention Altivec registers in
5000         commentary.  Fix typo.
5001
5002 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
5003
5004         * config/rs6000/rs6000.md (movti_string): Remove clobber.
5005         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
5006         generate PARALLEL with clobber for TARGET_POWER.
5007
5008 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5009
5010         * ra-colorize.c (colorize_one_web): Initialize variable.
5011         * regmove.c (fixup_match_1): Likewise.
5012         * reload1.c (reload_as_needed): Likewise.
5013         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
5014
5015 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5016
5017         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
5018
5019 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5020
5021         * dbxout.c (lastfile, cwd): Fix `unused' warning.
5022         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
5023         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
5024         is_main_source, file_table, decl_die_table_in_use,
5025         abbrev_die_table_in_use, line_info_table_in_use,
5026         separate_line_info_table_in_use, pubname_table_in_use,
5027         arange_table_in_use, ranges_table_in_use,
5028         current_function_has_inlines): Likewise.
5029         * flow.c (life_analysis): Likewise.
5030         * genemit.c (gen_insn): Likewise.
5031         * protoize.c (cplus_suffix): Likewise.
5032
5033         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
5034         * arm.h (ROUND_UP_WORD): Likewise.
5035
5036         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
5037         warning.
5038         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
5039         init_emit_once): Likewise.
5040         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
5041         Likewise.
5042         * function.c (assign_stack_temp_for_type): Likewise.
5043         * loop.c (loop_invariant_p): Likewise.
5044         * recog.c (push_operand): Likewise.
5045         * regclass.c (init_reg_sets_1): Likewise.
5046         * reload.c (update_auto_inc_notes): Likewise.
5047         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
5048         * stmt.c (expand_asm_operands): Likewise.
5049         * stor-layout.c (start_record_layout): Likewise.
5050
5051 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5052
5053         * config/c4x/c4x.md (epilogue): Correct last patch.
5054
5055 2003-01-15  Richard Henderson  <rth@redhat.com>
5056
5057         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
5058         also check that GP is being used.
5059         (alpha_find_lo_sum_using_gp): New.
5060         (alpha_does_function_need_gp): Use get_attr_usegp.
5061         * config/alpha/alpha-protos.h: Update.
5062         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
5063         as needed.
5064
5065 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5066
5067         * gcse.c (one_cprop_pass): Change function arguments to take both
5068         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
5069         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
5070         (bypass_jumps): New function to perform separate jump bypassing pass.
5071         * rtl.h (bypass_jumps): Add function prototype.
5072         * timevar.def (TV_BYPASS): New timing variable.
5073         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
5074         (dump_file): New entry for the bypass RTL dump file.
5075         (rest_of_compilation): Insert new jump bypassing optimization
5076         pass after loop.
5077         * doc/passes.texi: Document new pass.
5078
5079 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5080
5081         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
5082         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
5083         * pa.h (TARGET_SOM_SDEF): Define.
5084         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
5085
5086 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
5087
5088         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
5089         allocate 4-bytes of locals on 68HC11.
5090         (expand_epilogue): Likewise.
5091         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
5092
5093 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
5094
5095         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
5096         and -mshort-double to the assembler to specify the ABI.
5097         (LINK_SPEC): Likewise.
5098         (CPP_SPEC): Pass HCS12 specific define.
5099         (MASK_M68S12): New define.
5100         (TARGET_M68S12): Likewise.
5101         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
5102         (TARGET_VERSION): Update.
5103         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
5104         (LINK_SPEC): Update.
5105         (ASM_SPEC): Update.
5106         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
5107         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
5108
5109 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
5110
5111         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
5112         the return code.
5113
5114 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
5115
5116         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
5117         flag before setting it.
5118
5119 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5120
5121         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
5122         when loop condition is known true, i.e.  "while (1) { ... }".
5123         (genrtl_for_stmt): Similarly for "for" statements.
5124
5125 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5126
5127         * real.c (real_sqrt): Return a bool result indicating whether
5128         a floating point exception or trap should be raised.
5129         * real.h (real_sqrt): Update function prototype.
5130         * builtins.c (fold_builtin): Only fold non-trapping square
5131         roots unless we're ignoring errno and trapping math.
5132
5133 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
5134
5135         * expr.h (emit_conditional_add): Add PARAMS to declaration.
5136         * gengtype-lex.l (malloc, realloc): Move defines after include of
5137         system.h.  Remove duplicate include of system.h.
5138
5139 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5140
5141         PR middle-end/9009
5142         * optabs.c (expand_unop):  When manipulating the FP sign bit
5143         using integer operations, account for targets with different
5144         integer and FP word orders.
5145         (expand_abs): Likewise.
5146
5147 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
5148
5149         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
5150         file extension in section name.
5151
5152 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
5153
5154         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
5155         constant offset.
5156
5157 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
5158
5159         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
5160         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
5161         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
5162         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5163
5164 Wed Jan 15 12:23:21 CET 2003  Jan Hubicka  <jh@suse.cz>
5165
5166         PR f/9258
5167         * global.c (struct allocno): Add no_stack_reg.
5168         (global_conflicts): Set no_stack_reg.
5169         (find_reg): Use it.
5170
5171         * convert.c (convert_to_real): Fold - and abs only when profitable.
5172         * fold-const.c (fold): Fold truncates in - and abs.
5173
5174 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
5175
5176         Segher Boessenkool  <segher@koffie.nl>
5177
5178         * predict.c (real_inv_br_prob_base): New variable.
5179         (propagate_freq): Use multiply by reciprocal instead of
5180         division.  Don't divide by 1.0 at all.
5181         (estimate_bb_frequencies): Similar.
5182
5183 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
5184
5185         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
5186         * configure: Rebuilt.
5187
5188 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
5189
5190         * config/s390/s390.c (s390_safe_attr_type): New function.
5191         (s390_use_dfa_pipeline_interface): New function, return true for z900.
5192         (s390_issue_rate): New function.
5193         (s390_agen_dep_p): New function.
5194         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
5195         (s390_adjust_cost): Return 'cost' if new DFA is used.
5196         (s390_adjust_priority): Delete function.
5197         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
5198         * config/s390/s390.md (atype attribute): Attribute 'atype' default
5199         determined by 'op_type'.
5200         (type attribute): Added more type attributes.
5201         * config/s390/2064.md: New DFA description for z900 pipeline.
5202
5203 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
5204
5205         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
5206         forced to memory.  Fixes PR bootstrap/9036.
5207
5208         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
5209         to set $gp before the call.
5210
5211 2003-01-14  Richard Henderson  <rth@redhat.com>
5212
5213         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
5214         for force_const_mem.
5215
5216 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5217
5218         * genattr.c (main): Rearrange output to avoid prototype warning.
5219         * genautomata.c (transform_3): Fix ambiguous-else warning.
5220         * local-alloc.c (requires_inout): Add parentheses around
5221         assignment used as truth-value.
5222         * timevar.c: Move system includes above local includes.  Include
5223         toplev.h
5224         * Makefile.in (timevar.o): Depend on toplev.h.
5225
5226 2003-01-14  Denis Chertykov  <denisc@overta.ru>
5227
5228         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
5229         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
5230
5231         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
5232         attributes.
5233         (TARGET_ATTRIBUTE_TABLE): New macro.
5234         (valid_machine_type_attribute): Remove.
5235         (valid_machine_decl_attribute): Remove.
5236         (ip2k_handle_progmem_attribute): New function.
5237         (ip2k_handle_fndecl_attribute): New function.
5238
5239 2003-01-10  Andrew Haley  <aph@redhat.com>
5240
5241         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
5242         registers to be in correct order.  Add rip.
5243
5244 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5245
5246         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
5247         (*iorsi3_and_lshiftrt_9_sb): Likewise.
5248
5249 Tue Jan 14 00:45:33 CET 2003  Jan Hubicka  <jh@suse.cz>
5250
5251         * convert.c (strip_float_extensions):  Look for narrowest type handling
5252         FP constants.
5253
5254         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
5255         float1 CMP float2.
5256         * convert.c (strip_float_extensions): Make global.
5257         * tree.h (strip_float_extensions): Declare.
5258
5259 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5260
5261         * timevar.def: define TV_NAME_LOOKUP.
5262         * timevar.c (timevar_pop): Be verbose when aborting.
5263
5264 2003-01-13  Andreas Schwab  <schwab@suse.de>
5265
5266         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
5267         $(parsedir), just move the temporary file at the end.
5268         ($(parsedir)/gengtype-yacc.c): Likewise.
5269
5270 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
5271
5272         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
5273         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
5274         splitting.
5275         * configure: Rebuilt.
5276
5277 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5278
5279         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
5280         internal_mcount): Don't use PARAMS.
5281         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
5282         ISO C style.
5283         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
5284
5285 2003-01-13  Andreas Schwab  <schwab@suse.de>
5286
5287         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
5288         directive.
5289
5290 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5291
5292         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
5293         (*iorsi3_and_lshiftrt_n_sb): Likewise.
5294
5295 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
5296
5297         PR c++/9264
5298         * c-lex.c (c_lex): Set the token value to error_mark_node for
5299         invalid numeric constants.
5300
5301 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5302
5303         * c-pch.c (asm_file_startpos): Change to `long'.
5304         (pch_init): Use ftell, not ftello.
5305         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
5306         Use `long' instead of `off_t'.
5307         (c_common_read_pch): Likewise.
5308         * ggc-common.c (gt_pch_save): Use long/ftell instead of
5309         off_t/ftello.
5310
5311 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
5312
5313         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
5314
5315 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
5316
5317         * arm-protos.h (struct cpp_reader): Add declaration.
5318
5319 Sat Jan 11 11:02:58 CET 2003  Jan Hubicka  <jh@suse.cz>
5320
5321         PR target/9068
5322         * i386.c (output_fp_compare): Fix typo.
5323
5324 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
5325
5326         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
5327
5328 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
5329
5330         * Makefile.in (parsedir): New variable.
5331         (docobjdir): New variable.
5332         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
5333         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
5334         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
5335         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
5336         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
5337         Use docobjdir.
5338         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
5339         objc.maintainer-clean): Use parsedir.
5340
5341         * varasm.c (struct constant_descriptor_rtx): Remove unused
5342         `label' field.
5343
5344         * toplev.c (documented_lang_options): Document -Winvalid-pch.
5345
5346 2003-01-10  Richard Henderson  <rth@redhat.com>
5347
5348         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
5349         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
5350
5351 2003-01-10  Richard Henderson  <rth@redhat.com>
5352
5353         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
5354         not INTEGRAL_MODE_P when widening extensions.
5355
5356 2003-01-10  Richard Henderson  <rth@redhat.com>
5357
5358         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
5359
5360 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
5361
5362         * ggc-page.c (ggc_collect): Avoid overflow computing
5363         min_expand.
5364
5365         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
5366         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
5367         Remove calls.
5368         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
5369
5370 Fri Jan 10 22:05:35 CET 2003  Jan Hubicka  <jh@suse.cz>
5371
5372         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
5373         with weird operands.
5374
5375 2003-01-10  Dale Johannesen <dalej@apple.com>
5376
5377         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
5378         parameters.  Call check_sibcall_argument_overlap if indicated.
5379         (check_sibcall_argument_overlap):  Add mark_stored_args_map
5380         parameter.  Don't mark parameter area as clobbered if not set.
5381         (expand_call):  Adjust calls to above.
5382
5383 2003-01-10 Kelley Cook <kelleycook@comcast.net>
5384
5385         * configure.in (linker read-only and read-write section mixing):
5386         Squelch some assembler warnings.
5387         * configure: Likewise.
5388
5389 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
5390
5391         * doc/invoke.texi: Document -mtune, delete -mcpu
5392         option for S/390 and zSeries.
5393         * config/s390/s390.c (s390_tune_string) New variable.
5394         (s390_cpu_string) Delete variable.
5395         (override_options): Use s390_tune_string instead of
5396         s390_cpu_string.
5397         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
5398
5399 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
5400
5401         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
5402
5403 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
5404
5405         * jump.c (next_nonnote_insn_in_loop): New function.
5406         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
5407         next_nonnote_insn.
5408         (duplicate_loop_exit_test). Likewise.
5409
5410 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
5411
5412         Merge from pch-branch:
5413
5414         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
5415
5416         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
5417         load.
5418
5419         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
5420
5421         * cpplib.c (count_registered_pragmas): New function.
5422         (save_registered_pragmas): New function.
5423         (_cpp_save_pragma_names): New function.
5424         (restore_registered_pragmas): New function.
5425         (_cpp_restore_pragma_names): New function.
5426         * cpphash.h (_cpp_save_pragma_names): Prototype.
5427         (_cpp_restore_pragma_names): Likewise.
5428         * cpppch.c (struct save_macro_item): Split from save_macro_data.
5429         (struct save_macro_data): New field 'saved_pragmas'.
5430         (save_macros): Update for changes to struct save_macro_data.
5431         (cpp_prepare_state): Call _cpp_save_pragma_names, update
5432         for changes to struct save_macro_data.
5433         (cpp_read_state): Call _cpp_restore_pragma_names, update
5434         for changes to struct save_macro_data.
5435
5436         * cpppch.c (cpp_read_state): Restore the hashtable references
5437         in the cpp_reader.
5438
5439         * tree.h (built_in_decls): Mark for PCH.
5440
5441         * dbxout.c (lastfile): Don't mark for PCH.
5442
5443         * ggc.h: Document PCH calls into memory managers.
5444
5445         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
5446
5447         * doc/invoke.texi (Precompiled Headers): Document the
5448         directory form of PCH.
5449         * cppfiles.c (validate_pch): New function.
5450         (open_file_pch): Search suitably-named directories for PCH files.
5451
5452         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
5453
5454         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
5455         reorder options.
5456         (Type Information): Mention that the information is also
5457         used to implement PCH.
5458         * doc/passes.texi (Passes): Improve documentation of
5459         language-specific files.
5460
5461         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
5462
5463         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
5464         (struct walk_type_data): Add reorder_fn field.
5465         (walk_type): Process 'reorder' option.
5466         (write_types_process_field): Reorder parameters to gt_pch_note_object,
5467         call reorder_note_routine.
5468         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
5469         (ggc_wtd): Update for change to struct write_types_data.
5470         (pch_wtd): Likewise.
5471         * ggc.h (gt_pch_note_object): Reorder parameters.
5472         (gt_handle_reorder): New definition.
5473         (gt_pch_note_reorder): New prototype.
5474         * ggc-common.c (struct ptr_data): Add reorder_fn.
5475         (gt_pch_note_object): Reorder parameters.
5476         (gt_pch_note_reorder): New.
5477         (gt_pch_save): Call reorder_fn.
5478         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
5479
5480         * dbxout.c (cwd): Don't mark for PCH.
5481
5482         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
5483
5484         * gengtype.c (finish_root_table): Fix some warnings.
5485         (write_root): Handle TYPE_STRING.
5486         * ggc.h (gt_ggc_m_S): Add prototype.
5487         * stringpool.c (gt_ggc_m_S): New function.
5488
5489         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
5490
5491         * dwarf2out.c (dw2_string_counter): New.
5492         (AT_string_form): Use it.
5493         (same_dw_val_p): Update for removal of hashtable.h hash tables.
5494
5495         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
5496
5497         * dbxout.c: Include gt-dbxout.h.
5498         (lastfile): Mark for PCH/GGC.
5499         (cwd): Likewise.
5500         (struct typeinfo): Likewise.
5501         (typevec): Likewise.
5502         (typevec_len): Likewise.
5503         (next_type_number): Likewise.
5504         (struct dbx_file): Likewise.
5505         (current_file): Likewise.
5506         (next_file_number): Likewise.
5507         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
5508         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
5509         (dbxout_end_source_file): Don't free struct dbx_file.
5510         (dbxout_type): Use GGC to allocate typevec.
5511         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
5512         (GTFILES): Add dbxout.c.
5513         (gt-dbxout.h): New rule.
5514
5515         * Makefile.in (c-pch.o): Add debug.h as dependency.
5516         * c-pch.c: Include debug.h.
5517         (pch_init): Call start_source_file to keep nesting right.
5518         (c_common_read_pch): Add orig_name parameter.  Call
5519         start_source_file debug hook.  Call end_source_file debug hook.
5520         * c-common.h (c_common_read_pch): Update prototype.
5521         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
5522         callback.
5523         * cppfiles.c (struct include_file): Add new field `header_name'.
5524         (find_or_create_entry): Default it to `name'.
5525         (open_file_pch): Set it to the original header file searched for.
5526         (stack_include_file): Don't stack an empty buffer, just handle
5527         PCH files immediately.  Pass header_name field to read_pch callback.
5528
5529         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
5530
5531         * function.c (funcdef_no): Mark to be saved in a PCH.
5532
5533         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
5534
5535         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
5536
5537         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
5538
5539         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
5540
5541         * optabs.h (code_to_optab): Add GTY marker.
5542
5543         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
5544
5545         * Makefile.in (GTFILES): Add cpplib.h.
5546         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
5547         * c-decl.c (build_compound_literal): Don't use var_labelno.
5548         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
5549         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
5550         * varasm.c (const_labelno): Use gengtype to mark.
5551         (var_labelno): Likewise.
5552         (in_section): Likewise.
5553         (in_named_name): Likewise.
5554         (struct in_named_entry): Likewise.
5555         (in_named_htab): Likewise.
5556         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
5557         (init_varasm_once): Use GGC to allocate in_named_htab.
5558         * config/darwin.c (current_pic_label_num): Mark for PCH.
5559
5560         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
5561
5562         * ggc-simple.c (init_ggc_pch): New stub procedure.
5563         (ggc_pch_count_object): Likewise.
5564         (ggc_pch_total_size): Likewise.
5565         (ggc_pch_this_base): Likewise.
5566         (ggc_pch_alloc_object): Likewise.
5567         (ggc_pch_prepare_write): Likewise.
5568         (ggc_pch_write_object): Likewise
5569         (ggc_pch_finish): Likewise.
5570         (ggc_pch_read): Likewise.
5571
5572         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
5573
5574         * c-pch.c (c_common_write_pch): Write the macro definitions after
5575         the GCed data.
5576         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
5577         definitions after the GCed data.
5578         * cpplib.c (save_macros): New.
5579         (reset_ht): New.
5580         (cpp_write_pch_deps): Split out of cpp_write_pch.
5581         (cpp_write_pch_state): Split out of cpp_write_pch.
5582         (cpp_write_pch): Delete.
5583         (struct save_macro_data): Delete.
5584         (cpp_prepare_state): New.
5585         (cpp_read_state): Erase and restore initial macro definitions.
5586         * cpplib.h (struct save_macro_data): Forward-declare.
5587         (cpp_write_pch_deps): Prototype.
5588         (cpp_write_pch_state): Prototype.
5589         (cpp_write_pch): Delete prototype.
5590         (cpp_prepare_state): Prototype.
5591         (cpp_read_state): Add fourth argument.
5592
5593         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
5594
5595         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
5596         (write_array): Remove warning.
5597
5598         * gengtype.c (contains_scalar_p): New.
5599         (finish_root_table): Add the table to all languages, even if it's
5600         empty.
5601         (write_roots): Output gt_pch_scalar_rtab.
5602         * ggc-common.c (gt_pch_save): Write out scalars.
5603         (gt_pch_restore): Read scalars back.
5604
5605         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
5606         (struct page_entry): Delete pch_page field.
5607         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
5608         (clear_marks): Likewise.
5609         (sweep_pages): Likewise.
5610         (poison_pages): Likewise.
5611         (ggc_print_statistics): Likewise.
5612         (ggc_pch_read): Don't free objects read from a PCH.
5613         Properly set up in_use_p and page_tails.
5614
5615         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
5616
5617         * gengtype.c (struct write_types_data): New.
5618         (struct walk_type_data): Make `cookie' const; add extra
5619         prev_val item; add `orig_s' field.
5620         (walk_type): Update prev_val[3].
5621         (write_types_process_field): New.
5622         (write_func_for_structure): Take write_types_data structure.
5623         (write_types): New.
5624         (ggc_wtd): New.
5625         (pch_wtd): New.
5626         (write_types_local_process_field): New.
5627         (gc_mark_process_field): Delete.
5628         (write_local_func_for_structure): New.
5629         (gc_mark_func_name): Delete.
5630         (write_gc_types): Delete.
5631         (write_local): New.
5632         (finish_root_table): Don't include 'ggc_' in PFX.
5633         (write_root): Rename from write_root.  Fill pchw field of structures.
5634         (write_array): New.
5635         (write_roots): Rename from write_gc_roots.  Split out to write_array.
5636         Update to changes to other routines.  Write gt_pch_cache_rtab table.
5637         (main): Write PCH walking routines.
5638         * ggc-common.c: Include toplev.h, sys/mman.h.
5639         (ggc_mark_roots): For cache hashtables, also mark the hash table
5640         and the array of entries.
5641         (saving_htab): New.
5642         (struct ptr_data): New.
5643         (POINTER_HASH): New.
5644         (gt_pch_note_object): New.
5645         (saving_htab_hash): New.
5646         (saving_htab_eq): New.
5647         (struct traversal_state): New.
5648         (call_count): New.
5649         (call_alloc): New.
5650         (compare_ptr_data): New.
5651         (relocate_ptrs): New.
5652         (write_pch_globals): New.
5653         (struct mmap_info): New.
5654         (gt_pch_save): New.
5655         (gt_pch_restore): New.
5656         * ggc-page.c (ROUND_UP_VALUE): New.
5657         (ROUND_UP): New.
5658         (struct page_entry): Add field `pch_page'.
5659         (init_ggc): Use ROUND_UP.
5660         (struct ggc_pch_data): Declare.
5661         (init_ggc_pch): New.
5662         (ggc_pch_count_object): New.
5663         (ggc_pch_total_size): New.
5664         (ggc_pch_this_base): New.
5665         (ggc_pch_alloc_object): New.
5666         (ggc_pch_prepare_write): New.
5667         (ggc_pch_write_object): New.
5668         (ggc_pch_finish): New.
5669         (ggc_pch_read): New.
5670         * ggc.h (gt_pointer_operator): New.
5671         (gt_note_pointers): New.
5672         (gt_pch_note_object): New prototype.
5673         (gt_pointer_walker): New.
5674         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
5675         (LAST_GGC_ROOT_TAB): Update.
5676         (gt_pch_cache_rtab): Declare.
5677         (gt_pch_scalar_rtab): Declare.
5678         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
5679         (LAST_GGC_CACHE_TAB): Update.
5680         (gt_pch_save_stringpool): Declare.
5681         (gt_pch_restore_stringpool): Declare.
5682         (gt_pch_p_S): Declare.
5683         (gt_pch_n_S): Declare.
5684         (struct ggc_pch_data): Forward-declare.
5685         (init_ggc_pch): Declare.
5686         (ggc_pch_count_object): Declare.
5687         (ggc_pch_total_size): Declare.
5688         (ggc_pch_this_base): Declare.
5689         (ggc_pch_alloc_object): Declare.
5690         (ggc_pch_prepare_write): Declare.
5691         (ggc_pch_write_object): Declare.
5692         (ggc_pch_finish): Declare.
5693         (ggc_pch_read): Declare.
5694         (gt_pch_save): Declare.
5695         (gt_pch_restore): Declare.
5696         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
5697         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
5698         const_double_htab, mem_attrs_htab using GGC.
5699         * c-pch.c: Include ggc.h.
5700         (pch_init): Allow reading PCH file back.
5701         (c_common_write_pch): Call gt_pch_save.
5702         (c_common_read_pch): Call gt_pch_restore.
5703         * c-parse.in (init_reswords): Delete now-untrue comment.
5704         Allocate ridpointers using GGC.
5705         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
5706         calling expand_deferred_fns.
5707         * c-common.h (ridpointers): Mark for GTY machinery.
5708         * Makefile.in (stringpool.o): Update dependencies.
5709         (c-pch.o): Update dependencies.
5710         (ggc-common.o): Update dependencies.
5711         * stringpool.c: Include gt-stringpool.h.
5712         (gt_pch_p_S): New.
5713         (gt_pch_n_S): New.
5714         (struct string_pool_data): New.
5715         (spd): New.
5716         (gt_pch_save_stringpool): New.
5717         (gt_pch_restore_stringpool): New.
5718         * tree.c (init_ttree): Make type_hash_table allocated using GC.
5719
5720         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
5721
5722         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
5723         (output_mangled_typename): Don't pass size_t to printf.
5724
5725         * tree.h (union tree_type_symtab): Add tag to `address' field.
5726         (union tree_decl_u2): Add tag to 'i' field.
5727         * varasm.c (union rtx_const_un): Add tags to all fields.
5728         * gengtype.c (struct walk_type_data): New.
5729         (output_escaped_param): Take struct walk_type_data parameter.
5730         (write_gc_structure_fields): Delete.
5731         (walk_type): New.
5732         (write_gc_marker_routine_for_structure): Delete.
5733         (write_func_for_structure): New.
5734         (gc_mark_process_field): New.
5735         (gc_mark_func_name): New.
5736         (gc_counter): Delete.
5737         (write_gc_types): Use write_func_for_structure.
5738         (write_gc_roots): Use walk_type.
5739
5740         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
5741
5742         * ggc-common.c (ggc_mark_roots): Delete 'x'.
5743         (ggc_splay_dont_free): Fix warning about unused 'x'.
5744         (ggc_print_common_statistics): Remove warnings.
5745
5746         2002-10-01  Mike Stump  <mrs@apple.com>
5747
5748         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
5749         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
5750
5751         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
5752             Catherine Moore  <clm@redhat.com>
5753
5754         * Makefile (c-pch.o): Update dependencies.
5755         (LIBCPP_OBJS): Add cpppch.o.
5756         (cpppch.o): New.
5757         * c-common.c (c_common_init): Don't call pch_init here.
5758         * c-common.h (c_common_read_pch): Update prototype.
5759         * c-lex.c (c_common_parse_file): Call pch_init here.
5760         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
5761         (c_common_decode_option): Handle them.
5762         * c-pch.c: Include c-pragma.h.
5763         (save_asm_offset): Delete.
5764         (pch_init): Move contents of save_asm_offset into here, call
5765         cpp_save_state.
5766         (c_common_write_pch): Call cpp_write_pch.
5767         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
5768         cpp_valid_state.
5769         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
5770         * cppfiles.c (stack_include_file): Update for change to
5771         parameters of cb.read_pch.
5772         * cpphash.h (struct cpp_reader): Add `savedstate' field.
5773         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
5774         `restore_pch_deps' fields.
5775         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
5776         (cpp_save_state): Prototype.
5777         (cpp_write_pch): Prototype.
5778         (cpp_valid_state): Prototype.
5779         (cpp_read_state): Prototype.
5780         * cpppch.c: New file.
5781         * flags.h (version_flag): Remove prototype.
5782         * mkdeps.c (deps_save): New.
5783         (deps_restore): New.
5784         * mkdeps.h (deps_save): Prototype.
5785         (deps_restore): Prototype.
5786         * toplev.c (late_init_hook): Delete.
5787         (version_flag): Make static again.
5788         (compile_file): Don't call late_init_hook.
5789         * toplev.h (late_init_hook): Delete.
5790         * doc/cppopts.texi: Document -fpch-deps.
5791         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
5792
5793         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
5794
5795         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
5796         callers.
5797         (c_common_valid_pch): Rename from c_valid_pch, change callers.
5798         (c_common_read_pch): Rename from c_read_pch, change callers.
5799
5800         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
5801         a space between it and its argument.
5802
5803         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
5804
5805         * c-pch.c: New file.
5806         * toplev.h (late_init_hook): Declare.
5807         * toplev.c (late_init_hook): Define.
5808         (version_flag): Make globally visible.
5809         (compile_file): Call late_init_hook.
5810         (init_asm_output): Make output file seekable.
5811         * gcc.c (default_compilers): Update c-header rule.
5812         * flags.h (version_flag): Declare.
5813         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
5814         fields.
5815         * cppfiles.c (struct include_file): Add 'pch' field.
5816         (INCLUDE_PCH_P): New.
5817         (open_file_pch): New.
5818         (stack_include_file): Handle PCH files specially.
5819         (find_include_file): Call open_file_pch instead of open_file.
5820         (_cpp_read_file): Explain why open_file is used instead of
5821         open_file_pch.
5822         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
5823         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
5824         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
5825         in cpplib callbacks.
5826         * c-common.c (pch_file): Correct comment.
5827         (allow_pch): Define.
5828         (c_common_init): Call pch_init.
5829         * c-common.h (allow_pch): Declare.
5830         (pch_init): Declare.
5831         (c_valid_pch): Declare.
5832         (c_read_pch): Declare.
5833         (c_write_pch): Declare.
5834         * Makefile.in (c-pch.o): New.
5835         (C_AND_OBJC_OBJS): Add c-pch.o.
5836         * doc/invoke.texi (Precompiled Headers): Add index entries,
5837         complete truncated paragraph.
5838
5839         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
5840
5841         * c-common.c: (pch_file): Define.
5842         * c-common.h (pch_file): Declare.
5843         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
5844         (missing_arg): Require --output-pch= to have an argument.
5845         (c_common_decode_option): Handle --output-pch=.
5846         * gcc.c: Document new %V.
5847         (default_compilers): Handle compiling C header files.
5848         (do_spec_1): Implement %V.
5849         (main): Handle "gcc foo.h" without trying to run linker.
5850         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
5851         (Overall Options): Document what the driver does with header files,
5852         document new -x option possibilities.
5853         (Invoking G++): More documentation for PCH.
5854         (Precompiled Headers): New.
5855
5856         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
5857
5858         * ggc.h: Don't include varray.h.  Rearrange functions to be more
5859         organized.
5860         (ggc_add_root): Delete.
5861         (ggc_mark_rtx): Delete.
5862         (ggc_mark_tree): Delete.
5863         (struct ggc_statistics): Remove contents.
5864         * ggc-common.c: Remove unneeded includes.
5865         (struct ggc_root): Delete.
5866         (roots): Delete.
5867         (ggc_add_root): Delete.
5868         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
5869         (ggc_print_common_statistics): Remove most of the contents.
5870         * Makefile.in (GGC_H): No longer uses varray.h.
5871         (ggc-common.o): Update dependencies.
5872         (c-parse.o): Add varray.h to dependencies.
5873         (c-common.o): Add varray.h.
5874         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
5875         (mark_ident_hash): Rename to ggc_mark_stringpool.
5876         (init_stringpool): Don't use ggc_add_root.
5877         * c-parse.in: Include varray.h.
5878         * c-common.c: Include varray.h.
5879         * objc/Make-lang.in (objc-act.o): Add varray.h.
5880         * objc/objc-act.c: Include varray.h.
5881
5882         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
5883
5884         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
5885         (dw_cfi_oprnd1_desc): Likewise.
5886
5887         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
5888
5889         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
5890         move out of ifdef.
5891         (alpha_links): Use gengtype to mark; move out of ifdef.
5892         (mark_alpha_links_node): Delete.
5893         (mark_alpha_links): Delete.
5894         (alpha_need_linkage): Use GGC to allocate splay tree, struct
5895         alpha_links, strings.  Don't use ggc_add_root.
5896         * ggc-common.c (ggc_splay_alloc): New.
5897         (ggc_splay_dont_free): New.
5898         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
5899         (ggc_mark_tree): Likewise.
5900         (splay_tree_new_ggc): New.
5901         (ggc_splay_alloc): Declare.
5902         (ggc_splay_dont_free): Declare.
5903         * dwarf2asm.c: Include gt-dwarf2asm.h.
5904         (mark_indirect_pool_entry): Delete.
5905         (mark_indirect_pool): Delete.
5906         (indirect_pool): Use gengtype to mark.
5907         (dw2_force_const_mem): Don't use ggc_add_root.
5908         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
5909         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
5910         (gt-dwarf2asm.h): Depend on s-gtype.
5911
5912         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
5913
5914         * tree.h (union tree_type_symtab): Mark `die' field.
5915         * Makefile.in (dwarf2out.o): Update dependencies.
5916         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
5917         hash tables.
5918         (dw_cfi_oprnd1_desc): New function.
5919         (dw_cfi_oprnd2_desc): New function.
5920         (indirect_string_alloc): Delete.
5921         (debug_str_do_hash): New function.
5922         (debug_str_eq): New function.
5923         (mark_limbo_die_list): Delete.
5924         (dwarf2out_init): Don't call ggc_add_root.
5925
5926 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
5927
5928         The following changes are merged from itanium-sched-branch:
5929
5930         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
5931
5932         * doc/md.texi: Clarify assignment of units to automata description.
5933
5934         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
5935
5936         * genautomata.c (unit_decl): Remove members
5937         `the_same_automaton_unit' and
5938         `the_same_automaton_message_reported_p'.
5939         (process_unit_to_form_the_same_automaton_unit_lists,
5940         form_the_same_automaton_unit_lists_from_regexp,
5941         form_the_same_automaton_unit_lists, the_same_automaton_lists):
5942         Remove them.
5943         (annotation_message_reported_p): New global variable.
5944         (check_unit_distribution_in_reserv,
5945         check_regexp_units_distribution): New functions.
5946         (check_unit_distributions_to_automata): Rewrite it.
5947
5948         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
5949
5950         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
5951         Use continue instead of break if cycle is too big.
5952
5953         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
5954
5955         * genautomata.c (check_unit_distributions_to_automata): Output at
5956         most one message for a unit.
5957         (process_unit_to_form_the_same_automaton_unit_lists): Check
5958         automaton of units instead of units themself.
5959
5960         * doc/md.texi: Describe the constraint about assigning unit to
5961         automata.
5962
5963         2002-12-20  Jan Hubicka  <jH@suse.cz>
5964                     Vladimir Makarov  <vmakarov@redhat.com>
5965
5966         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
5967         and `in_set_p'.
5968         (gen_cpu_unit): Initialize the new members.
5969         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
5970         up `min_occ_cycle_num'.
5971         (evaluate_max_reserv_cycles): Change the function call.
5972         (CLEAR_BIT): New macro.
5973         (states_union, state_shift): Use the mask.
5974         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
5975         (form_reservs_matter): New function.
5976         (make_automaton): Call the function and use the mask.
5977         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
5978         account.
5979
5980         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
5981
5982         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
5983
5984         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
5985
5986         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
5987         for Itanium.
5988
5989         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
5990
5991         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
5992         default cpu.
5993
5994         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
5995                 2002-10-31  Dale Johannesen <dalej@apple.com>
5996
5997         * haifa-sched.c (find_set_reg_weight): New function.
5998         (find_insn_reg_weight): Use the new function.
5999         (schedule_block): Do sorting ready queue always
6000         after insn issue.
6001
6002         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
6003
6004         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
6005
6006         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
6007
6008         * haifa-sched.c (choice_entry): New structure.
6009         (choice_stack, cycle_issued_insns): New variables.
6010         (max_issue): Rewrite it.
6011         (choose_ready): Set up ready_try for unknown insns too.
6012         (schedule_block): Allocate and free choice_stack.  Set up
6013         and modify cycle_issued_insns.
6014
6015         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
6016         with and without filling the bundle.
6017         (bundling): Combine calls of issue_nops_and_insn.
6018
6019         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
6020
6021         * config/ia64/itanium1.md: New file.
6022
6023         * config/ia64/itanium2.md: New file.
6024
6025         * config/ia64/ia64.md: Move DFA descriptions into the new files.
6026         Remove the old pipeline description.
6027
6028         * config/ia64/ia64.c (ia64_override_options): Add aliases of
6029         itanium processor names.
6030
6031         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
6032
6033         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
6034         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
6035
6036         * config/ia64/ia64.md: Add descriptions for Itanium2.
6037
6038         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
6039
6040         * config/ia64/ia64.h (processor_type): New enumeration.
6041         (ia64_tune, ia64_tune_string): New external declarations.
6042         (TARGET_OPTIONS): Add option `tune='.
6043
6044         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
6045         variables.
6046         (ia64_override_options): Set up `ia64_tune'.
6047         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
6048         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
6049         (bundling): Add nops for MM-insns only for Itanium.
6050         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
6051         Itanium.
6052
6053         * config/ia64/ia64.md (cpu): New attribute.
6054         (DFA description): Enable it only for Itanium.
6055
6056         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
6057                     Richard Henderson  <rth@redhat.com>
6058
6059         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
6060         MASK_EARLY_STOP_BITS.
6061         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
6062         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
6063         `early-stop-bits'.
6064
6065         * config/ia64/ia64.c (ia64_dfa_new_cycle,
6066         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
6067         instead of TARGET_TUNE_STOP_BITS.
6068
6069         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
6070         `-mearly-stop-bits'.
6071
6072         * config/ia64/ia64.c (automata_option "v"): Comment it.
6073
6074         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
6075
6076         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
6077         New macros.
6078         (TARGET_SWITCHES): Add entries for the new option.
6079
6080         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
6081         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
6082         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
6083         global variables.
6084         (ia64_sched_reorder2): Set up `clocks'.
6085         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
6086         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
6087         queue when TARGET_TUNE_STOP_BITS.
6088         (bundling): Insert additional nops for MM-insns.
6089         (final_emit_insn_group_barriers): Add insertion of stop bits
6090         according `stops_p'.
6091         (ia64_reorg): Initiate the new varibales.
6092
6093         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
6094
6095         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
6096
6097         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
6098         insns at the end of block insn scheduling.
6099
6100         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
6101
6102         * sched-deps.c (remove_dependence, group_leader): Remove it.
6103         (add_dependence): Add dependence to group leader to.
6104         (set_sched_group_p): Add dependence to the first insn of the
6105         schedule group too.
6106         (sched_analyze_insn): Make dependence to jump as anti-dependence.
6107         Change true dependence by anti-dependence when
6108         `reg_pending_barrier'.
6109
6110         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
6111         add_branch_dependences): Ignore schedule groups.
6112
6113         * sched-ebb.c (init_ready_list): Ditto.
6114
6115         * (move_insn, set_priorities): Ditto.
6116
6117         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
6118         flag is clear after reload.
6119         (adjust_cost): Change cost only for output dependencies.
6120
6121         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
6122
6123         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
6124
6125         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
6126
6127         * target.h (gcc_target): Add member
6128         `dependencies_evaluation_hook'.
6129
6130         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
6131         macro.
6132         (TARGET_SCHED): Add initiatialization of the new member.
6133
6134         * sched-ebb.c: Include `target.h'.
6135         (schedule_ebb): Call `dependencies_evaluation_hook'.
6136
6137         * sched-rgn.c (schedule_region): Call
6138         `dependencies_evaluation_hook'.
6139
6140         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
6141         New macro.
6142         (ia64_dependencies_evaluation_hook): New function.
6143
6144         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
6145         Describe the new hook.
6146
6147         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
6148
6149         * target.h (gcc_target): Add members
6150         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
6151
6152         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
6153         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
6154         macros.
6155         (TARGET_SCHED): Add initiatialization of the new members.
6156
6157         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
6158         insn scheduling too.
6159         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
6160         initialize `ready_try'.
6161         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
6162         `dfa_new_cycle' says not to do it.
6163
6164         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
6165         bundling.
6166
6167         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
6168
6169         * config/ia64/ia64.c: Include `hashtab.h'.
6170         (ia64_first_cycle_multipass_dfa_lookahead_guard,
6171         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
6172         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
6173         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
6174         bundle_state_eq_p, insert_bundle_state,
6175         initiate_bundle_state_table, finish_bundle_state_table,
6176         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
6177         get_template, get_next_important_insn, bundling): New functions.
6178         (ia64_internal_sched_reorder): Remove it.
6179         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
6180         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
6181         (ia64_safe_itanium_requires_unit0): Remove it.
6182         (group_barrier_needed_p): Place group barrier right before a real
6183         insn.
6184         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
6185         Remove them.
6186         (bundle_name): New variable.
6187         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
6188         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
6189         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
6190         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
6191         temp_dfa_state, prev_cycle_state): New global variables.
6192         (insn_matches_slot, maybe_rotate, finish_last_head,
6193         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
6194         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
6195         find_best_packet, itanium_reorder, dump_current_packet,
6196         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
6197         (sched_data, sched_ready, sched_types): Remove them.
6198         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
6199         `init_insn_group_barriers'.
6200         (ia64_sched_reorder, ia64_sched_reorder2): Call
6201         ia64_dfa_sched_reorder.
6202         (ia64_variable_issue): Rewrite it.
6203         (bundle_state): New structure.
6204         (index_to_bundle_states, bundle_states_num,
6205         allocated_bundle_states_chain, free_bundle_state_chain): New
6206         global variables.
6207         (ia64_sched_finish): Add stop bits and call `bundling' after the
6208         2nd insn scheduling.
6209         (ia64_use_dfa_pipeline_interface): Return zero always.
6210         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
6211         insn scheduling.
6212         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
6213         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
6214         (ia64_reorg): Add bundling insns.
6215
6216         * doc/tm.texi
6217         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
6218         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
6219
6220         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
6221
6222         * config/ia64/ia64.md: Add Itanium1 DFA description.
6223         (itanium_class): Add `nop' and `pre_cycle'.  Add
6224         define_function_unit for `nop'.
6225         (nop): Change attribute `itanium_class'.
6226         (pre_cycle): New define_insn.
6227
6228         * config/ia64/ia64-protos.h (bundling_p): New external variable.
6229         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
6230         ia64_produce_address_p): New function prototypes.
6231
6232         * config/ia64/ia64.c (bundling_p): New global variable.
6233         (ia64_use_dfa_pipeline_interface,
6234         ia64_first_cycle_multipass_dfa_lookahead,
6235         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
6236         functions.
6237         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6238         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6239         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6240         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
6241         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
6242         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
6243         (dfa_pre_cycle_insn): New variable.
6244
6245         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6246
6247         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
6248         constructions.
6249
6250         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
6251         New function prototypes.
6252
6253         * genattrtab.c (main): Process the new constructions.
6254
6255         * genautomata.c (gen_presence_absence_set,
6256         process_presence_absence_names, process_presence_absence_patterns,
6257         add_presence_absence, check_absence_pattern_sets): Add parameter
6258         `final_p'.
6259         (unit_decl): Add new members `final_presence_list' and
6260         `final_absence_list'.
6261         (unit_pattern_rel_decl): Add new member `final_p'.
6262         (gen_final_presence_set, gen_final_absence_set): New functions.
6263         (process_decls): Use member `final_p'.
6264         (temp_reserv): New global variable.
6265         (reserv_sets_are_intersected): Add processing `final_presence_set'
6266         and `final_absence_set'.
6267         (initiate_states): Allocate `temp_reserv'.
6268         (unit_final_presence_set_table, unit_final_absence_set_table): New
6269         gloabal variables.
6270         (initiate_presence_absence_pattern_sets): Initiate them.
6271         (NDFA_to_DFA): Fix typo.
6272         (output_description): Output `final_presence_set' and
6273         `final_absence_set'.
6274
6275         * doc/md.texi (final_presence_set, final_absence_set): Describe
6276         them.
6277
6278         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6279
6280         * genautomata.c (transform_3): Process a missing case (nothing on
6281         unit place).
6282
6283         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6284
6285         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
6286         comments about queried units and the minimization.
6287
6288         * doc/md.texi: Ditto.
6289
6290         * genautomata.c (create_composed_state): Return nonzero if the new
6291         state has been created.
6292         (first_cycle_unit_presence): New function.
6293         (state_is_differed): Add new parameter.  Use the new function.
6294         Take queried units into account.
6295         (partition_equiv_class): Pass additional parameter to
6296         `state_is_differed'.
6297         (merge_states): Process composed states too.
6298         (build_automaton, create_automata, output_min_issue_delay_table,
6299         output_tables, output_statistics): Output more information.
6300         (output_reserved_units_table): Use function
6301         `first_cycle_unit_presence'.
6302         (output_tables): Output table of queried units even if the
6303         minimization is switched on.
6304         (write_automata): Output code for querying units even if the
6305         minimization is switched on.
6306
6307         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
6308
6309         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
6310         syntax of the constructions.
6311
6312         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
6313         extended syntax of the constructions.
6314
6315         * genautomata.c (unit_rel_decl): Rename it to
6316         `unit_pattern_rel_decl'.
6317         (pattern_set_el, pattern_reserv): New structures.
6318         (pattern_set_el_t, pattern_reserv_t): New types.
6319         (gen_presence_absence_set): New function.
6320         (process_presence_absence): Remove it.
6321         (process_presence_absence_names,
6322         process_presence_absence_patterns): New functions.
6323         (get_presence_absence_set): Remove it.
6324         (initiate_presence_absence_sets): Rename it on
6325         `initiate_presence_absence_pattern_sets'.  Use new function
6326         `form_reserv_sets_list'.
6327         (form_reserv_sets_list, check_presence_pattern_sets,
6328         check_absence_pattern_sets, output_pattern_set_el_list): New
6329         functions.
6330         (unit_decl): Change types of members `presence_list' and
6331         `absence_list'.
6332         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
6333         (decl): Change types of members `excl', `presence', and `absence'.
6334         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
6335         at the end of the vector.
6336         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
6337         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
6338         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
6339         (gen_presence_set, gen_absence_set): Use new function
6340         `gen_presence_absence_set'.
6341         (add_presence_absence): Process `pattern_list' instead of
6342         `source_list'.
6343         (process_decls): USe new functions
6344         `process_presence_absence_names' and
6345         `process_presence_absence_patterns'.
6346         (reserv_sets_are_intersected): Use new function
6347         `check_presence_pattern_sets'.
6348         (presence_set, absence_set): Remove them.
6349         (unit_presence_set_table, unit_absence_set_table): New global
6350         variables.
6351         (output_description): Use new function
6352         `output_pattern_set_el_list'.
6353         (generate): Use `initiate_presence_absence_pattern_sets'.
6354
6355         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
6356
6357         * genattr.c (main): Add output of prototype of new interface
6358         function `dfa_clean_insn_cache'.
6359
6360         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
6361         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
6362         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
6363         the generated code.
6364         (write_automata): Call the new function.
6365
6366 Thu Jan  9 22:47:38 CET 2003  Jan Hubicka  <jh@suse.cz>
6367
6368         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
6369         correctly.
6370
6371 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
6372
6373         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
6374
6375 Thu Jan  9 17:26:40 2003  J"orn Rennecke <joern.rennecke@superh.com>
6376
6377         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
6378         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
6379         (CONSTRAINT_LEN): Provide default definition.
6380         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
6381         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
6382         (EXTRA_CONSTRAINT_STR): Likewise.
6383         (REG_CLASS_FROM_CONSTRAINT): Define.
6384         * genoutput.c (check_constraint_len, constraint_len): New functions.
6385         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
6386         constraint / modifier.
6387         (gen_insn): Call check_constraint_len.
6388         * local-alloc.c (block_alloc): Update to use new macros / pass
6389         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
6390         * ra-build.c (handle_asm_insn): Likewise.
6391         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
6392         (constrain_operands, peep2_find_free_register): Likewise.
6393         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
6394         * regmove.c (find_matches): Likewise.
6395         * reload.c (push_secondary_reload, find_reloads): Likewise.
6396         (alternative_allows_memconst): Likewise.
6397         * reload1.c (maybe_fix_stack_asms): Likewise.
6398         (reload_cse_simplify_operands): Likewise.
6399         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6400         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
6401         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
6402         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
6403         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
6404         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
6405
6406         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
6407
6408 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6409
6410         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
6411         length.
6412         (*extzv_1_r_h8300hs): Likewise.
6413         (*extzv_1_r_inv_h8300): Likewise.
6414         (*extzv_1_r_inv_h8300hs): Likewise.
6415
6416 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6417
6418         * config/h8300/h8300.h (PREDICATE_CODES): New.
6419
6420 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6421
6422         * config/h8300/h8300.md (*addsi3_upper): New.
6423         (*iorsi3_shift): Likewise.
6424         (two splitters): Likewise.
6425         (*addsi3_shift): Likewise.
6426         (two splitters): Likewise.
6427
6428 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
6429
6430         * Makefile.in (optabs.o): Add dependency on basic-block.h.
6431         * basic-block.h (control_flow_insn_p): Fuction was exported.
6432         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
6433         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
6434         notes only when the region is contained in a single basic block.
6435
6436 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
6437
6438         PR inline-asm/8832
6439         * tree.h (expand_asm): New prototype.
6440         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
6441         to do so.
6442         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
6443         down to expand_asm.
6444         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
6445         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
6446         (volatile_refs_p) [ASM_INPUT]: Likewise.
6447         (side_effects_p) [ASM_INPUT]: Likewise.
6448
6449 Thu Jan  9 12:00:36 CET 2003  Jan Hubicka  <jh@suse.cz>
6450
6451         * i386.md (*mul*): FIx constraints; remove confused comment; fix
6452         athlon_decode attributes
6453         (imul/k8 optimization peep2s): New.
6454
6455         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
6456         * i386.md (type attribute): Add ssecomi.
6457         (unit, memory, prefix attributes): Handle ssecomi.
6458         (cvt?2? patterns): Fix athlon_decode attribute
6459         (comi patterns): Set attribute to ssecomi.
6460
6461         PR target/8343
6462         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
6463
6464 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
6465
6466         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
6467         that match register_operands.
6468         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
6469         register_operand the default case.
6470
6471 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
6472
6473         PR c/8032
6474         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
6475         an empty element, do not advance the pointer to unfilled
6476         fields if there are pending initializers.
6477
6478 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
6479
6480         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
6481         (install-gcc-tooldir, install-cpp, installdirs,
6482         install-common, install-driver, install-info, install-man,
6483         install-headers, install-include-dir, install-headers-tar,
6484         install-headers-cpio, install-headers-cp, install-mkheaders,
6485         install-collect2, uninstall): Prepend $(DESTDIR) to
6486         destination paths in all (un)installation commands.
6487         (install-driver): Rewrite $(LN) commands to support DESTDIR
6488         with "ln" as well as with "ln -s".
6489         (installdirs): Simply use mkinstalldirs.
6490         (install-libgcc, install-multilib): Also pass DESTDIR.
6491         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
6492         installation destination variable ldir.
6493         * config/alpha/t-osf4, config/arm/t-netbsd,
6494         config/ia64/t-hpux, config/mips/t-iris5-6,
6495         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
6496         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
6497         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
6498         in the definition of SHLIB_INSTALL.
6499         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
6500         $(libsubdir) in the installation commands.
6501
6502 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6503
6504         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
6505         non-optimizing compile.
6506         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
6507         compile.
6508
6509 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
6510
6511         * config/i386/i386.c (ix86_attribute_table): Add new attributes
6512         ms_struct and gcc_struct.
6513         (ix86_handle_struct_attribute): New function.
6514         (ix86_ms_bitfield_layout_p): Update to take new attributes
6515         into account.
6516         * doc/extend.texi: Document new attributes.
6517         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
6518
6519 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
6520
6521         PR optimization/8750
6522         * config/i386/i386.c (ix86_expand_prologue): Don't allow
6523         scheduling pass to move insns across __alloca call.
6524
6525 2003-01-08  Dale Johannesen  <dalej@apple.com>
6526
6527         * config/rs6000/rs6000.md:  Replace *store_multiple_string
6528         with *stmsi[3-8].
6529
6530 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
6531
6532         PR target/9210
6533         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
6534         Set SYMBOL_REF_FLAG on local data sym_ref.
6535
6536 2003-01-08  Dale Johannesen  <dalej@apple.com>
6537
6538         * function.c (assign_parms):  Don't set pretend_args_size if
6539           REG_PARM_STACK_SPACE.
6540           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
6541           pretend_args_size.
6542
6543 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
6544
6545         * gcc.hlp: Delete.
6546
6547 Thu Jan  9 00:57:15 CET 2003  Jan Hubicka  <jh@suse.cz>
6548
6549         * i386.c  (ix86_expand_int_addcc): Fix thinko.
6550
6551 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
6552
6553         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
6554         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
6555         as hook_bool_tree_hwi_hwi_tree_true.
6556         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
6557         (rs6000_emit_epilogue): Same.
6558         (rs6000_output_mi_thunk): Re-implement as RTL.
6559         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
6560         xcoffout_declare_function if any debugging enabled.
6561
6562 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
6563
6564         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
6565         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
6566         * config/mips/mips.h (enum processor_type): Rename
6567         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
6568         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
6569         Add PROCESSOR_M4K.
6570         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
6571         (ISA_MIPS32R2): New define.
6572         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
6573         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
6574         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
6575         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
6576         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
6577         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
6578         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
6579         compiling MIPS16 code.
6580         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
6581         comment.
6582         (ISA_HAS_SEB_SEH): New define.
6583         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
6584         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
6585         processor_type value renaming.  Add support for MIPS32R2.
6586         Clean up comments, and move "sb1" entry with other MIPS64 CPU
6587         entries.
6588         (override_options): Reimplement -mipsN option handling so that
6589         it will work correctly for -mips32r2.  Avoid branch-likely
6590         instructions on MIPS32R2.
6591         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
6592         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
6593         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
6594         (extendhisi2_hw, extendqisi2_hw): New.
6595         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
6596         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
6597         MIPS32R2, and MIPS64.
6598         (LINK_SPEC): Pass -mips32r2 to linker.
6599         * config/mips/t-isa3264: Built -mips32r2 multilibs.
6600         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
6601         for mips32r2 in the -march description.  Alphabetically sort
6602         CPU names in the -march description.  Add long-missed -mips32
6603         and -mips64 to MIPS option summary.
6604
6605         * config.gcc: Update copyright years to include 2003.
6606         * config/mips/mips.c: Likewise.
6607         * config/mips/mips.h: Likewise.
6608         * config/mips/mips.md: Likewise.
6609         * config/mips/netbsd.h: Likewise.
6610         * doc/invoke.texi: Likewise.
6611
6612 2003-01-08  Andreas Schwab  <schwab@suse.de>
6613
6614         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
6615         variable.
6616         * configure: Regenerated.
6617
6618 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
6619
6620         * config/h8300/h8300.c (output_logical_op): Replace byte/word
6621         extraction of det with b0, b1, w0, w2, etc.
6622         (compute_logical_op_length): Likewise.
6623         (compute_logical_op_cc): Likewise.
6624
6625 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
6626
6627         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
6628         HIGH on all variants.
6629
6630 Wed Jan  8 14:06:34 CET 2003  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
6631
6632         * Makefile.in (PARTITION_H): New.
6633         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
6634         * basic-block.h: Include hard-reg-set.h.
6635
6636 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
6637
6638         * arm.h (ENABLE_XF_PATTERNS): Delete.
6639         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
6640         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
6641         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
6642         (cmpxf_trap): Delete.
6643         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
6644
6645 Wed Jan  8 12:10:57 CET 2003  Jan Hubicka  <jh@suse.cz>
6646
6647         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
6648         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
6649         (add??cc): New expanders.
6650         * i386.c (expand_int_addcc): New function.
6651         * i386-protos.h (expand_int_addcc): Declare.
6652
6653         * alias.c (memory_modified_1): New static function.
6654         (memory_modified): New static varaible.
6655         (memory_modified_in_insn_p): New global function.
6656         * rtl.h (memory_modified_in_insn_p): Declare.
6657         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
6658         references.
6659
6660         * expr.h (emit_conditional_add): Declare.
6661
6662 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
6663
6664         PR other/8947
6665         * doc/invoke.texi (-malign-double): Explain that the option breaks
6666         binary compatibility.
6667
6668 2003-01-08  Andreas Schwab  <schwab@suse.de>
6669
6670         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
6671         should come from the generic *-*-linux* entry.
6672
6673 Tue Jan  7 22:29:56 CET 2003  Jan Hubicka  <jh@suse.cz>
6674
6675         * cselib.c (cselib_current_insn_in_libcall): New static variable.
6676         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
6677         we are inside libcall.
6678         * cselib.h (elt_loc_list): Add in_libcall.
6679         * gcse.c (do_local_cprop): Do not copy propagate using insns
6680         in libcalls.
6681
6682 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
6683
6684         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
6685         not normally affect to issue rate.
6686
6687 Tue Jan  7 21:46:57 CET 2003  Jan Hubicka  <jh@suse.cz>
6688
6689         * genopinit.c (optabs): Add addc_optab.
6690         * ifcvt.c (noce_try_store_flag): Rename to ...
6691         (noce_try_addcc): ... this one; handle generic conditional increment.
6692         (noce_process_if_block): Update noce_try_addcc call.
6693         * optabs.c (emit_conditional_add): New.
6694         (init_obtabs): Initialize addc_optab.
6695         * optabs.h (optab_index): Add OTI_addcc.
6696         (addcc_optab): New macro.
6697         * md.texi: Document addMcc
6698
6699         PR target/8322
6700         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
6701         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
6702         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
6703
6704         * reload1.c (delete_output_reload): Avoid repeated attempts
6705         to delete insn.
6706
6707 2003-01-07  Andreas Schwab  <schwab@suse.de>
6708
6709         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
6710         Move --enable-initfini-array check ...
6711         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
6712         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
6713         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
6714         * configure: Rebuild.
6715
6716 2003-01-07  Richard Henderson  <rth@redhat.com>
6717
6718         * alias.c (find_base_value): Only use new_reg_base_value shortcut
6719         if the register is set once.
6720
6721 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
6722
6723         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
6724         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
6725         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
6726
6727 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
6728             Sunil Davasam  <sunil.k.davasam@intel.com>
6729
6730         PR libstdc++/9076
6731         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
6732         DW_CFA_same_value, read next and ignore.
6733
6734 2003-01-07  Richard Henderson  <rth@redhat.com>
6735
6736         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
6737
6738 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
6739
6740         * cfg.c: Include alloc-pool.h
6741         (edge_pool): New pool.
6742         (bb_pool): New pool.
6743         (first_deleted_edge): Remove.
6744         (first_deleted_block): Remove.
6745         (init_flow): Alloc/free the pools.
6746         (free_edge): Use pools.
6747         (alloc_block): Ditto.
6748         (expunge_block): Ditto.
6749         (cached_make_edge): Ditto.
6750
6751         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
6752
6753 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
6754
6755         * et-forest.c: Include alloc-pool.h.
6756         (struct et_forest): Add node_pool and occur_pool.
6757         (et_forest_create): Create the new pools.
6758         (et_forest_delete): Delete them.
6759         (et_forest_add_node): Allocate and free using pools.
6760         (et_forest_add_edge): Ditto.
6761         (et_forest_remove_node): Ditto.
6762         (et_forest_remove_edge): Ditto.
6763
6764         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
6765
6766 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
6767
6768         * config/h8300/h8300.c (output_logical_op): Simplify and
6769         optimize the handling of SImode.
6770         * config/h8300/h8300.c (compute_logical_op_length): Update
6771         accordingly.
6772         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
6773
6774 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
6775
6776         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
6777         big-endian correction to indirect arguments too.
6778
6779 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
6780
6781         Segher Boessenkool  <segher@koffie.nl>
6782
6783         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
6784         (alt_reg_names): Ditto, fix formatting.
6785         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
6786
6787 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
6788
6789         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
6790         (output_logical_op): Constify intval and det.
6791         (compute_logical_length): Likewise.
6792         (compute_logical_cc): Likewise.
6793         (output_a_shift): Constify mask.
6794         (h8300_encode_label): Constify len.
6795
6796 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
6797
6798         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
6799         (h8300_expand_epilogue): Likewise.
6800
6801 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
6802
6803         Segher Boessenkool  <segher@koffie.nl>
6804
6805         * config/rs6000/altivec.md: Remove spaces from assembler
6806         instruction argument lists.
6807
6808 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6809
6810         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
6811         c4x_assembler_function_p.
6812         (c4x_null_epilogue_p): Complement return value, all uses updated.
6813         (c4x_insert_attributes): Add naked.
6814         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
6815         * doc/extend.texi: Update C4x function attributes.
6816
6817 2003-01-06  Richard Henderson  <rth@redhat.com>
6818
6819         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
6820         properly when changing "local-ness".
6821         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
6822
6823 2003-01-06  Dale Johannesen  <dalej@apple.com>
6824
6825         * config/darwin-protos.h:  Add prototypes for new section functions.
6826
6827 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
6828
6829         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
6830         to EABI.
6831
6832 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
6833
6834         * hwint.h: If the current compiler has no 64-bit type at all,
6835         make HOST_WIDEST_INT 32 bits.
6836
6837 2003-01-06  Eric Christopher  <echristo@redhat.com>
6838
6839         * config/mips/mips.md (movdf_internal2): Fix constraints.
6840
6841 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
6842
6843         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
6844
6845 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
6846
6847         * config/mips/mips.md (leadi): Use dla rather than la.
6848
6849 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
6850
6851         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
6852         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
6853
6854 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
6855
6856         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
6857         redefinition.
6858
6859 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
6860
6861         * config/h8300/h8300.md (*extzv_8_23): New.
6862
6863 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6864
6865         * pa64-hpux.h (JCR_SECTION_NAME): Define.
6866         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
6867         USE_EH_FRAME_REGISTRY when defining.
6868
6869 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
6870
6871         * config/h8300/h8300.c (output_a_shift): Do not output a
6872         variable shift.
6873         * config/h8300/h8300.md (two splitters): New.
6874
6875 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
6876
6877         * config/mips/mips.md: Disable the movstrsi define_split.
6878
6879 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6880
6881         * alloc-pool.c: Don't include "libiberty.h".
6882         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
6883         * convert.c (convert_to_real): Hide unused variable.
6884
6885 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6886
6887         * Makefile.in (gtyp-gen.h): Const-ify.
6888         * gcov-dump.c (tag_table): Likewise.
6889
6890 2003-01-04  Bruce Korb  <bkorb@gnu.org>
6891
6892         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
6893         of *both* the file name and the fix name.
6894
6895 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
6896
6897         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
6898         collect2.
6899         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
6900         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
6901         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
6902         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
6903         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
6904         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
6905         elfos.h.
6906         (EH_FRAME_IN_DATA_SECTION): Delete define.
6907         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
6908         (STARTFILE_SPEC): Use crtbegin.o.
6909         (ENDFILE_SPEC): Use crtend.o.
6910         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
6911         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
6912         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
6913         DTOR_LIST_BEGIN): Define.
6914         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
6915         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
6916         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
6917
6918 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
6919
6920         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
6921         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
6922         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
6923         Cleanup handling of replacement text.
6924         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
6925
6926 2003-01-04  Bruce Korb  <bkorb@gnu.org>
6927
6928         * fixinc/tests/base/math.h: removed obsolete results
6929         * fixinc/tests/base/stdlib.h: ditto
6930         * fixinc/tests/base/sys/param.h: ditto
6931         * fixinc/tests/base/sys/stat.h: ditto
6932         * fixinc/tests/base/time.h: ditto
6933         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
6934         * fixinc/tests/base/sys/byteorder.h: ditto
6935         * fixinc/inclhack.def: Remove superfluous backslashes
6936
6937 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
6938
6939         * config/h8300/h8300-protos.h: Add prototypes for
6940         the new functions defined below.
6941         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
6942         define.
6943         (dosize): Emit RTL instead of assembly code.
6944         (push): Likewise.
6945         (pop): Likewise.
6946         (h8300_output_function_prologue): Remove.
6947         (h8300_expand_prologue): New.
6948         (h8300_expand_epilogue): New.
6949         (h8300_output_function_epilogue): Do only the reset of
6950         pragma_saveall.
6951         * config/h8300/h8300.md (push_h8300): New.
6952         (push_h8300hs): Likewise.
6953         (pop_h8300): Likewise.
6954         (pop_h8300hs): Likewise.
6955         (*stm_h8300s_2): Change the name to stm_h8300s_2.
6956         (*stm_h8300s_3): Change the name to stm_h8300s_3.
6957         (*stm_h8300s_4): Change the name to stm_h8300s_4.
6958         (*ldm_h8300s_2): New.
6959         (*ldm_h8300s_3): Likewise.
6960         (*ldm_h8300s_4): Likewise.
6961         (return): Likewise.
6962         (*return_1): Likewise.
6963         (prologue): Likewise.
6964         (epilogue): Likewise.
6965         (monitor_prologue): Likewise.
6966
6967 2003-01-03  Dale Johannesen  <dalej@apple.com>
6968
6969         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
6970           machopic_picsymbol_stub1.
6971           (EXTRA_SECTION_FUNCTIONS):  Ditto.
6972         * rs6000/rs6000.c:  Update copyright.
6973           (machopic_output_stub):  Use them.  Remove an insn from stub code.
6974
6975 2003-01-02  Jason Merrill  <jason@redhat.com>
6976
6977         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
6978
6979         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
6980         static/external decls.
6981
6982         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
6983         outermost scope.
6984         * c-decl.c (c_make_fname_decl): Push the decls there, too.
6985
6986 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
6987
6988         * config/h8300/h8300-protos.h: Add a prototype for
6989         h8300_current_function_interrupt_function_p.
6990         * config/h8300/h8300.c (interrupt_handler): Remove.
6991         (os_task): Likewise.
6992         (monitor): Likewise.
6993         (pragma_interrupt): New.
6994         (WORD_REG_USED): Use
6995         h8300_current_function_interrupt_function_p.
6996         (dosize): Likewise.
6997         (h8300_output_function_prologue): Likewise.
6998         Do not set interrupt_handler, os_task, monitor.
6999         (h8300_output_function_prologue): Use
7000         h8300_current_function_interrupt_function_p.
7001         Do not set interrupt_handler, os_task, monitor.
7002         (h8300_current_function_interrupt_function_p): New.
7003         (h8300_pr_interrupt): Set pragma_interrupt.
7004         (h8300_insert_attributes): Reset pragma_interrupt.
7005
7006 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7007
7008         * doc/install.texi (Configuration): Fix markup for reference to
7009         gcc/config.gcc.
7010
7011 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
7012
7013         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
7014         (*iorhi3_two_qi): Likewise.
7015         (*iorsi3_zexthi): Likewise.
7016         (*xorhi3_zextqi): Likewise.
7017         (*xorsi3_zexthi): Likewise.
7018         (*xorsi3_zextqi): Likewise.
7019
7020 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
7021
7022         * config/h8300/h8300.c (stack_pointer_operand): New.
7023         (const_int_gt_2_operand): Likewise.
7024         (const_int_ge_8_operand): Likewise.
7025         * config/h8300/h8300.md (a splitter): Likewise.
7026         (a peephole2): Likewise.
7027         * config/h8300/h8300-protos.h: Add prototypes for the new
7028         functions above.
7029
7030 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
7031
7032         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
7033         objc/objc-act.h: Fix copyright years.
7034
7035 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
7036
7037         * doc/passes.texi: Fix documentation for -fssa-ccp
7038
7039 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
7040
7041         * gccbug.in: Update for new categories.
7042
7043 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7044
7045         * config/h8300/h8300.md: Reorder some patterns.
7046
7047 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7048
7049         * config/h8300/h8300.c (output_logical_op): Fix a warning.
7050
7051 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7052
7053         * config/darwin-protos.h, config/c4x/c4x-protos.h,
7054         config/cris/cris-protos.h, config/i370/i370-protos.h,
7055         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
7056         config/v850/v850-protos.h: Use struct, and don't conditionally
7057         compile on GCC_C_PRAGMA_H.
7058
7059 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7060
7061         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
7062         * config/h8300/h8300-protos.h: Likewise.
7063         * config/sh/sh-protos.h: Likewise.
7064
7065 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7066
7067         * config/arm/arm-protos.h: Use struct cpp_reader instead of
7068         cpp_reader.
7069         * config/h8300/h8300-protos.h: Likewise.
7070         * config/sh/sh-protos.h: Likewise.
7071
7072 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7073
7074         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
7075         arm_pr_long_calls_off): Use struct.
7076         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
7077         : Similarly.
7078         Don't include cpplib.h.
7079         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
7080         sh_pr_nosave_low_regs): Similarly.
7081
7082 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7083
7084         * config/h8300/h8300.c: Include cpplib.h.
7085
7086 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
7087
7088         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
7089           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
7090           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
7091           "GCC" in the copyright header.
7092
7093 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7094
7095         * c-pragma.c (c_register_pragma): New.
7096         (init_pragma): Use it.
7097         * c-pragma.h (cpp_register_pragma): Don't declare.
7098         (c_register_pragma): New.
7099         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
7100         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
7101         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
7102         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
7103         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
7104         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
7105         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
7106         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
7107         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
7108         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
7109         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
7110         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
7111
7112 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7113
7114         * config/h8300/h8300-protos.h: Update the prototypes.
7115         * config/h8300/h8300.c (const_le_2_operand): Change to
7116         const_int_le_2_operand.
7117         (const_int_le_6_operand): Change to const_int_le_6_operand.
7118         * config/h8300/h8300.md (two peepholes): Update the function
7119         names.
7120
7121 2002-12-31  Tom Tromey  <tromey@redhat.com>
7122
7123         * doc/install.texi (Testing): Fixed typo.
7124
7125 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7126
7127         * config/h8300/h8300.h (TRAMPOLINE_TEMPLATE): Remove.
7128         (TRAMPOLINE_SIZE): Support the normal mode.
7129         (INITIALIZE_TRAMPOLINE): Emit the entire trampoline.
7130
7131 2002-12-31  Mark Mitchell  <mark@codesourcery.com>
7132
7133         * c-common.h (pending_lang_change): Declare.
7134
7135 2002-12-31  Jerry Quinn  <jlquinn@optonline.net>
7136
7137         * gcc/doc/invoke.texi (Optimization Options): Clean up -O flag
7138         descriptions.
7139
7140 2002-12-31  Jerry Quinn  <jlquinn@optonline.net>
7141
7142         * gcc/doc/invoke.texi (Optimization Options): List the options
7143         enabled by each -O flag.
7144
7145 2002-12-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7146
7147         * doc/install.texi (Configuration): Explicitly refer
7148         gcc/config.gcc for a list of cpu models.
7149
7150 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7151
7152         * config/h8300/h8300.h: Fix comment typos.
7153
7154 2002-12-30  David Edelsohn  <edelsohn@gnu.org>
7155
7156         * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
7157
7158 2002-12-30  Tom Tromey  <tromey@redhat.com>
7159
7160         * doc/install.texi (Testing): Mention Jacks.
7161
7162 2002-12-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7163
7164         * doc/gcc.texi, doc/gccint.texi: Update last modification dates.
7165
7166 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7167
7168         * config/h8300/h8300.c (output_logical_op): Use extu.w in more
7169         cases.
7170         (compute_logical_op_length): Update to reflect the change in
7171         output_logical_op.
7172         (compute_logical_op_cc): Likewise.
7173
7174 2002-12-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7175
7176         * doc/service.texi: Uncomment and update FAQ link.
7177
7178 2002-12-30  Andreas Jaeger  <aj@suse.de>
7179
7180         * unwind-dw2-fde.h (last_fde): Add unused attribute for obj.
7181
7182 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7183
7184         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): New.
7185
7186 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7187
7188         * config/h8300/h8300.c (output_logical_op): Use extu.w if we
7189         are clearing the most significant byte.
7190         (compute_logical_op_length): Update to reflect the change in
7191         output_logical_op.
7192         (compute_logical_op_cc): Likewise.
7193
7194 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7195
7196         * config/h8300/h8300.md: Give internal names to anonymous
7197         insns.
7198
7199 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7200
7201         * config/h8300/h8300.md: Reorder some insns.
7202
7203 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7204
7205         * config/h8300/h8300-protos.h: Add prototypes for
7206         const_int_qi_operand and const_int_hi_operand.
7207         * config/h8300/h8300.c (const_int_qi_operand): New.
7208         (const_int_hi_operand): Likewise.
7209         * config/h8300/h8300.md (three peepholes): New.
7210
7211 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
7212
7213         * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
7214         Use @copying.
7215
7216 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
7217
7218         * configure.in: Increase makeinfo version requirement to 4.[2-9].
7219         * configure: Regenerate.
7220         * doc/install.texi: Update Texinfo version requirement.
7221
7222 2002-12-28  Andreas Jaeger  <aj@suse.de>
7223
7224         * config/i386/i386.c (x86_function_profiler): Mark labelno as
7225         possibly unused.
7226
7227         * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
7228         correct format.
7229
7230 2002-12-27  Kazu Hirata  <kazu@cs.umass.edu>
7231
7232         * config/h8300/h8300.md (*iorhi_shift_8): Change the name to
7233         *iorhi_ashift_8.
7234         (*iorhi_lshiftrt_8): New.
7235
7236 2002-12-27  Joseph S. Myers  <jsm@polyomino.org.uk>
7237
7238         * doc/include/texinfo.tex: Update to version 2002-12-26.16.
7239
7240 2002-12-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7241
7242         * doc/contrib.texi (Contributors): Add Abramo and Roberto Bagnara.
7243
7244 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7245
7246         * config/h8300/h8300-protos.h: Fix comment typos.
7247         Update copyright.
7248         * config/h8300/h8300.c: Fix comment typos.
7249
7250 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7251
7252         * config/h8300/h8300.h (IDENT_ASM_OP): End with a tab.
7253
7254 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7255
7256         * config/i386/athlon.md: Fix comment typos.
7257         * config/i386/crtdll.h: Likewise.
7258         * config/i386/djgpp.h: Likewise.
7259         * config/i386/i386-interix.h: Likewise.
7260         * config/i386/i386.c: Likewise.
7261         * config/i386/i386.h: Likewise.
7262         * config/i386/i386.md: Likewise.
7263         * config/i386/k6.md: Likewise.
7264         * config/i386/mingw32.h: Likewise.
7265         * config/i386/pentium.md: Likewise.
7266         * config/i386/sco5.h: Likewise.
7267         * config/i386/winnt.c: Likewise.
7268         * config/i386/xmmintrin.h: Likewise.
7269
7270 2002-12-26  Jose Renau <renau@cs.uiuc.edu>
7271
7272         * ssa-dce.c (EXECUTE_IF_UNNECESSARY): Verify INSN is an
7273         INSN_P before checking to see if it is dead.
7274         (mark_all_insn_unnecessary): Similarly.
7275         (ssa_eliminate_dead_code): Similarly.
7276         * rtl.h (struct rtx_def): Update comments for in_struct usage
7277         in dead code elimination pass.
7278         (INSN_DEAD_CODE_P): Allow JUMP_INSN and CALL_INSN as well.
7279
7280 2002-12-26  Andreas Schwab  <schwab@suse.de>
7281
7282         * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax.
7283
7284 2002-12-25  David Edelsohn  <edelsohn@gnu.org>
7285
7286         * config/rs6000/rs6000.c (rs6000_override_options): Convert to
7287         tartet_flags_explicit.
7288         * config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
7289         Compact target_flags bits.
7290         (TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
7291         (TARGET_SWITCHES): Delete references to *_SET flags.
7292
7293 Wed Dec 25 20:30:53 CET 2002  Jan Hubicka  <jh@suse.cz>
7294
7295         * i386.md (memory attribute): Fix setcc attribute.
7296
7297 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
7298
7299         * output.h: Fix comment typos.
7300         * predict.c: Likewise.
7301         * print-tree.c: Likewise.
7302         * profile.c: Likewise.
7303         * ra-build.c: Likewise.
7304         * ra-colorize.c: Likewise.
7305         * ra-debug.c: Likewise.
7306         * ra-rewrite.c: Likewise.
7307         * ra.c: Likewise.
7308         * ra.h: Likewise.
7309         * real.c: Likewise.
7310         * recog.c: Likewise.
7311         * reg-stack.c: Likewise.
7312         * regclass.c: Likewise.
7313
7314 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
7315
7316         * config/h8300/h8300.c (print_operand_address): Do not negate
7317         a negative number when printing one.
7318
7319 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
7320
7321         * config/h8300/h8300-protos.h: Add prototypes for
7322         output_plussi, compute_plussi_length, and compute_plussi_cc.
7323         * config/h8300/h8300.c (output_plussi): New.
7324         (compute_plussi_length): Likewise.
7325         (compute_plussi_cc): Likewise.
7326         * config/h8300/h8300.md (addsi_h8300h): Call
7327         output_plussi, compute_plussi_length, and compute_plussi_cc.
7328
7329 2002-12-24  Kazu Hirata  <kazu@cs.umass.edu>
7330
7331         * config/h8300/h8300.md (two peepholes): Use match_dup instead
7332         of match_operand in the new patterns.
7333
7334 2002-12-24  Joseph S. Myers  <jsm@polyomino.org.uk>
7335
7336         * doc/include/texinfo.tex: Update to version 2002-11-25.11.
7337
7338 2002-12-24  Nathan Sidwell  <nathan@codesourcery.com>
7339
7340         * configure.in (enable-coverage): Add SELF_COVERAGE.
7341         * profile.c (end_branch_prob): Use SELF_COVERAGE.
7342
7343 2002-12-24  Jim Wilson  <wilson@redhat.com>
7344
7345         * alias.c (record_set): Handle multi-reg hard registers.
7346
7347 2002-12-24  Kazu Hirata  <kazu@cs.umass.edu>
7348
7349         * regmove.c: Fix comment typos.
7350         * reload.c: Likewise.
7351         * reload1.c: Likewise.
7352         * resource.c: Likewise.
7353         * rtl.def: Likewise.
7354         * rtl.h: Likewise.
7355         * rtlanal.c: Likewise.
7356         * sched-deps.c: Likewise.
7357         * sched-rgn.c: Likewise.
7358         * sibcall.c: Likewise.
7359         * simplify-rtx.c: Likewise.
7360         * ssa-ccp.c: Likewise.
7361         * ssa.c: Likewise.
7362         * stmt.c: Likewise.
7363         * stor-layout.c: Likewise.
7364         * system.h: Likewise.
7365         * tlink.c: Likewise.
7366         * toplev.c: Likewise.
7367         * tracer.c: Likewise.
7368         * tree-inline.c: Likewise.
7369         * tree.c: Likewise.
7370         * tree.h: Likewise.
7371         * unroll.c: Likewise.
7372         * varasm.c: Likewise.
7373
7374 2002-12-23  Larin Hennessy  <larin@science.oregonstate.edu>
7375
7376         * doc/install.texi: Remove i386-*-isc, i860-*-bsd,
7377         m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
7378         * doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
7379         DG/UX entries.
7380         * doc/md.texi: Remove AMD 29K entries.
7381         * doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
7382         1.38.1, NewsOS, RT PC, WE32K entries.
7383
7384 2002-12-23  Aldy Hernandez  <aldyh@redhat.com>
7385
7386         PR/8763
7387         * config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
7388         (altivec_vspltisw_v4sf): Name pattern.
7389         (altivec_vslw_v4sf): New pattern.
7390
7391 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
7392
7393         * doc/include/gcc-common.texi: Define DEVELOPMENT.
7394
7395 2002-12-23  Mark Mitchell  <mark@codesourcery.com>
7396
7397         * stor-layout.c (update_alignment_for_field): Correct handling of
7398         unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
7399         * doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
7400         bitfield does not affect alignment.
7401
7402 2002-12-23  David Edelsohn  <edelsohn@gnu.org>
7403
7404         * expr.c (expand_assignment): Apply special treatment to
7405         ARRAY_TYPE.
7406
7407 2002-12-23  Kazu Hirata  <kazu@cs.umass.edu>
7408
7409         * config/h8300/h8300-protos.h: Update the prototype of
7410         expand_a_shift.
7411         * config/h8300/h8300.c (expand_a_shift): Change the return
7412         type to void.
7413         * config/h8300/h8300.md: Update all the uses of
7414         expand_a_shift.
7415
7416 2002-12-22  Nathan Sidwell  <nathan@codesourcery.com>
7417
7418         * tree.c (save_expr): Allow either side of a dyadic operand to be
7419         constant.
7420
7421         * doc/portability.texi (portability): Update portability goals.
7422
7423 2002-12-23  Kazu Hirata  <kazu@cs.umass.edu>
7424
7425         * config/h8300/h8300.c (output_a_shift): Remove unused code.
7426
7427 2002-12-22  Mark Mitchell  <mark@codesourcery.com>
7428
7429         * stor-layout.c (update_alignment_for_field): Guard use of
7430         ADJUST_FIELD_ALIGN with #ifdef.
7431
7432         * stor-layout.c (update_alignment_for_field): Use
7433         ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
7434         bitfield when PCC_BITFIELD_TYPE_MATTERS.
7435
7436 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
7437
7438         * genautomata.c: Fix comment typos.
7439
7440 Sun Dec 22 18:23:44 CET 2002  Jan Hubicka  <jh@suse.cz>
7441
7442         * params.def (tracer-min-branch-probability-feedback): Fix default.
7443         * final.c (compute_alignments): Use profile to avoid code bloat.
7444
7445 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
7446
7447         * config/h8300/h8300.c (get_shift_alg): Make shift insn
7448         sequences end with a valid cc0 whenever possible.
7449
7450 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
7451
7452         * config/h8300/h8300.md (negsf2): New.
7453         (*negsf2_h8300): Likewise.
7454         (*negsf2_h8300hs): Likewise.
7455
7456 2002-12-21  Geoffrey Keating  <geoffk@apple.com>
7457
7458         * integrate.c (output_inline_function): Don't hold private
7459         pointers to 'struct function' over GC calls.
7460
7461 2002-12-21  Kaz kojima  <kkojima@gcc.gnu.org>
7462
7463         * config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with
7464         NO_FPSCR_VALUES.
7465         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Add -DNO_FPSCR_VALUES.
7466
7467 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
7468
7469         * config/h8300/h8300.md (zero_extendqisi2): Correct the
7470         length.
7471
7472 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
7473
7474         * config/h8300/h8300.md (*zero_extendqihi2_h8300): Make the
7475         second alternative "#".
7476         (*zero_extendqihi2_h8300hs): Likewise.
7477         (a define_split): New.
7478
7479 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
7480
7481         * config/h8300/h8300-protos.h: Update the prototype for
7482         split_adds_subs.
7483         Add prototypes for const_le_2_operand and const_le_6_operand.
7484         * config/h8300/h8300.c (split_adds_subs): Add an argument to
7485         specify whether inc/dec should be used when possible.
7486         (const_le_2_operand): New.
7487         (const_le_6_operand): Likewise.
7488         * config/h8300/h8300.md (two peepholes): New.
7489
7490 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
7491
7492         * config/fr30/fr30.md: Fix a comment typo.
7493         * config/i386/i386.c: Likewise.
7494         * config/ip2k/ip2k.h: Likewise.
7495
7496 2002-12-20  Jim Wilson  <wilson@redhat.com>
7497
7498         * config/rs6000/spe.h (__ev_subifw): Reverse arguments.
7499         (__ev_subw, __ev_subiw): New.
7500         (ev_mwlssf, ev_mwlsmf, ev_mwlssfa, ev_mwlsmfa, ev_mwlssfaaw,
7501         ev_mwlsmfaaw, ev_mwlssfanw, ev_mwlsmfanw): Delete.
7502
7503 2002-12-20  John David Anglin  <dave.anglin@nrc.gc.ca>
7504
7505         * pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
7506         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete define.
7507         * pa.c (pa_function_ok_for_sibcall): Allow non indirect sibcalls on
7508         TARGET_ELF32.  Add comment on sibcall issues for TARGET_64BIT.
7509
7510 2002-12-20  Kazu Hirata  <kazu@cs.umass.edu>
7511
7512         * config/h8300/h8300-protos.h: Add prototypes for
7513         incdec_operand and eqne_operator.
7514         * config/h8300/h8300.c (incdec_operand): New.
7515         (eqne_operator): Likewise.
7516         * config/h8300/h8300.h (CONST_OK_FOR_M): Likewise.
7517         (CONST_OK_FOR_O): Likewise.
7518         (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_M and
7519         CONST_OK_FOR_O.
7520         * config/h8300/h8300.md (UNSPEC_INCDEC): New.
7521         (addhi3_incdec): New.
7522         (addsi3_incdec): Likewise.
7523         (two peepholes): Likewise.
7524
7525 2002-12-20  Kazu Hirata  <kazu@cs.umass.edu>
7526
7527         * config/h8300/h8300.c (dosize): Remove warnings.
7528         (print_operand): Likewise.
7529
7530 2002-12-20  Richard Henderson  <rth@redhat.com>
7531
7532         * config/alpha/alpha.c (decl_has_samegp): New.
7533         (samegp_function_operand): Use it.  Rename from
7534         current_file_function_operand.
7535         (direct_call_operand): Handle -msmall-text via symbol->jump.
7536         (tls_symbolic_operand_1): Use T for tprel64, t for smaller tprel.
7537         (tls_symbolic_operand_type): Likewise.
7538         (alpha_encode_section_info): Likewise.  Handle -msmall-text.
7539         (alpha_function_ok_for_sibcall): Use decl_has_samegp.
7540         (alpha_end_function): Set symbol->jump for functions defined in
7541         the text section.
7542         * config/alpha/alpha-protos.h: Update.
7543         * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New.
7544         (TARGET_SWITCHES): Add -msmall-text and -mlarge-text.
7545         (PREDICATE_CODES): Update.
7546         * config/alpha/alpha.md (call patterns): Update for
7547         samegp_function_operand rename; use !samegp reloc if
7548         TARGET_EXPLICIT_RELOCS.
7549         * doc/invoke.text: Document -msmall-text and -mlarge-text.
7550
7551 2002-12-20  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
7552
7553         * config/ns32k/ns32k.md (movdi): Use "l" instead of "f" to match
7554         all registers capable of holding a double float.
7555         (*rcond): change name of "reverse branch" insns to
7556         something more meaningful.
7557         (*rbgt, *rblt, *rbge, *rble): Reverse branches to handle IEEE
7558         comparisons properly.
7559         (*ffs): Change operand 0 from write to read-modify-write.
7560         (*ffsssi2): Drop constraints from define_expand.
7561
7562         * config/ns32k/ns32k.h (STORE_RATIO, STORE_BY_PIECES): Avoid using
7563         MOVE_RATIO as default for store operations.
7564
7565         * config/ns32k/ns32k.h (enum reg_class, REG_CLASS_NAMES): Add
7566         LONG_REGS class.
7567         (CANNOT_CHANGE_MODE_CLASS): Can't subreg LONG_REGS.
7568         (GO_IF_LEGITIMATE_ADDRESS): Remove spurious abort().
7569         * config/ns32k/ns32k.c (regclass_map): Add LONG_REGS class.
7570
7571         * config/ns32k/STATUS: New File
7572         * config/ns32k/NOTES: New file.
7573
7574 2002-12-20  Hartmut Penner  <hpenner@de.ibm.com>
7575
7576         * doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march=
7577         option for S/390 and zSeries.
7578         * config/s390/s390.c (s390_cpu, s390_cpu_string, s390_arch,
7579         s390_arch_string): New variables.
7580         (override_options): Checking for options and setting of
7581         appropriate target_flags, cpu and arch flags.
7582         * config/s390/s390.h: (processor_type): New enum.
7583         (TARGET_SWITCHES): New switches -mesa/zarch.
7584         * config/s390/s390.md: New attribute 'cpu'.
7585
7586 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
7587
7588         * c-pretty-print.h: Fix comment typos.
7589         * integrate.c: Likewise.
7590         * varasm.c: Likewise.
7591         * config/c4x/c4x.h: Likewise.
7592         * config/c4x/c4x.md: Likewise.
7593         * config/fr30/fr30.md: Likewise.
7594         * config/frv/frv.c: Likewise.
7595         * config/h8300/h8300.c: Likewise.
7596         * config/i386/i386.c: Likewise.
7597         * config/i386/i386.h: Likewise.
7598         * config/ia64/ia64.c: Likewise.
7599         * config/ia64/ia64.h: Likewise.
7600         * config/ip2k/ip2k.md: Likewise.
7601         * config/m68hc11/m68hc11-crt0.S: Likewise.
7602         * config/m68hc11/m68hc11.h: Likewise.
7603         * config/m68hc11/m68hc11.md: Likewise.
7604         * config/m68hc11/m68hc12.h: Likewise.
7605         * config/mcore/mcore.md: Likewise.
7606         * config/mips/mips.c: Likewise.
7607         * config/mips/mips.md: Likewise.
7608         * config/mmix/mmix-modes.def: Likewise.
7609         * config/pa/pa.c: Likewise.
7610         * config/rs6000/rs6000.c: Likewise.
7611         * config/rs6000/rs6000.h: Likewise.
7612         * config/rs6000/rs6000.md: Likewise.
7613
7614 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
7615
7616         * config/h8300/h8300.md (output_a_shift): Clean up the code to
7617         output shifts using rotation.
7618
7619 2002-12-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7620
7621         * flow.c (allocate_reg_life_data): Reset REG_FREQ.
7622
7623 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
7624
7625         * config/h8300/h8300.md (pushqi_h8300): Don't push the stack
7626         pointer.
7627         (pushqi_h8300hs): Likewise.
7628         (pushhi_h8300): Likewise.
7629         (pushhi_h8300hs): Likewise.
7630
7631 Thu Dec 19 23:44:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
7632
7633         * sched-rgn.c (init_regions): Update comment.
7634
7635 2002-12-19  David Edelsohn  <edelsohn@gnu.org>
7636
7637         * config/rs6000/rs6000.md (define_attr type): Remove altivec.
7638         * config/rs6000/altivec.md (movv4si_internal): Set correct instruction
7639         attributes.
7640         (movv8hi_internal,movv16qi_internal,movv4sf_internal): Same.
7641         (get_vrsave_internal,set_vrsave_internal): Same.
7642         (altivec_vspltisb,altivec_vspltish,altivec_vspltisw): Same.
7643         (absv16qi2,absv8hi2,absv4si2,absv4sf2): Same
7644         (altivec_abss_v16qi,altivec_abss_v8hi,altivec_abss_v4si): Same.
7645
7646 2002-12-19  Casper S. Hornstrup  <chorns@users.sourceforge.net>
7647             Danny Smith  <dannysmith@users.sourceforge.net>
7648             Eric Kohl  <ekohl@rz-online.de>
7649
7650         * config/i386/i386.c (ix86_handle_cdecl_attribute): Check for
7651         attributes incompatible with fastcall attribute.
7652         (ix86_handle_regparm_attribute): Likewise.
7653
7654         * config/i386/i386.c (ix86_comp_type_attributes): Check for mismatched
7655         fastcall types.
7656
7657         * config/i386/cygwin.h (TARGET_OS_CPP_BUILTINS): Add fastcall
7658         attributes.
7659         (ASM_OUTPUT_LABELREF): Define as i386_pe_output_labelref.
7660         * config/i386/i386-protos.h (i386_pe_output_labelref): Declare.
7661         * config/i386/winnt.c (i386_pe_mark_dllimport). Add __imp_ prefix in
7662         i386_pe_output_labelref rather than here.
7663         (gen_fastcall_suffix): New function. Decorates a label name with the
7664         fastcall prefix (@) and the stdcall suffix.
7665         (i386_pe_encode_section_info): Call gen_fastcall_suffix() if a symbol
7666         has a fastcall attribute.
7667         (i386_pe_output_labelref): New function. Outputs a label reference.
7668         * config/i386/i386.c (ix86_attribute_table): Accept 'fastcall' as a
7669         valid attribute.
7670         (ix86_return_pops_args): Fastcall functions pop the stack.
7671         (init_cumulative_args): Reserve registers ECX and EDX if function has
7672         fastcall attribute.
7673         (function_arg): Use registers ECX and EDX if function has fastcall
7674         attribute.
7675         * config/i386/i386.h (CUMULATIVE_ARGS): Add fastcall attribute flag.
7676         (DLL_IMPORT_EXPORT_PREFIX): Redefine as '#'.
7677         (FASTCALL_PREFIX): Define as '@'.
7678         * config/i386/mingw32.h (TARGET_OS_CPP_BUILTINS): Add fastcall
7679         attributes.
7680         * doc/extend.texi: Add documentation of fastcall attribute.
7681
7682 2002-12-19  Nathanael Nerode  <neroden@gcc.gnu.org>
7683
7684         * configure.in: FORBUILD when build!=host changed from
7685         ../$build-alias to ../build-$build_alias to match change made
7686         in top directory.
7687         * configure: Regenerated.
7688
7689 2002-12-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
7690
7691         PR optimization/8988
7692         * loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
7693         the biv when eliminating.
7694
7695 2002-12-19  Devang Patel  <dpatel@apple.com>
7696         * gcc.c (struct default_compiler): Recognizes input file name with
7697         .CPP extension as C++ source files
7698         * cp/lang-spec.h: Same
7699         * doc/invoke.texi:  Add documentation for .CPP support.
7700
7701 2002-12-19  Aldy Hernandez  <aldyh@redhat.com>
7702
7703         PR 8553
7704         * config/rs6000/altivec.md ("absv8hi2"): Add & to clobbered
7705         registers.
7706         ("absv16qi2"): Same.
7707         ("absv4si2"): Same.
7708         ("absv4sf2"): Same.
7709         ("altivec_abss_v16qi"): Same.
7710         ("altivec_abss_v8hi"): Same.
7711         ("altivec_abss_v4si"): Same.
7712
7713 2002-12-19  Ulrich Weigand  <uweigand@de.ibm.com>
7714
7715         * config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
7716         "*tstqiCCT", "*tstqiCCT_cconly"): New insns.
7717
7718 2002-12-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
7719
7720         PR target/8340
7721         * stmt.c (expand_asm_operands): Produce an error when
7722         the PIC register is clobbered.
7723
7724 2002-12-18  Daniel Berlin  <dberlin@dberlin.org>
7725
7726         * Makefile.in (OBJS): Add alloc-pool.o
7727         (alloc-pool.o): New object.
7728
7729         * alloc-pool.c: New file.
7730         * alloc-pool.h: New file.
7731
7732 2002-12-18  Loren James Rittle  <ljrittle@acm.org>
7733
7734         * gcc.c (validate_switches): Robustify against skipping past '\0'.
7735
7736 2002-12-18  Geoffrey Keating  <geoffk@apple.com>
7737
7738         * config.gcc: Set extra_objs in the generic Darwin rule,
7739         not in the machine-specific rules.
7740
7741 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
7742
7743         * ChangeLog: Follow spelling conventions.
7744         * ChangeLog.2: Likewise.
7745         * ChangeLog.4: Likewise.
7746         * ChangeLog.5: Likewise.
7747         * cppexp.c: Likewise.
7748         * df.c: Likewise.
7749         * gcov.c: Likewise.
7750         * gengtype.c: Likewise.
7751         * reload1.c: Likewise.
7752         * sched-rgn.c: Likewise.
7753         * stmt.c: Likewise.
7754         * stor-layout.c: Likewise.
7755         * timevar.c: Likewise.
7756         * toplev.c: Likewise.
7757         * tree.h: Likewise.
7758         * varasm.c: Likewise.
7759         * config/fr30/fr30.md: Likewise.
7760         * config/i386/i386.c: Likewise.
7761         * config/ia64/ia64.c: Likewise.
7762         * config/pa/pa.c: Likewise.
7763
7764 2002-12-18  Roger Sayle  <roger@eyesopen.com>
7765
7766         * basic-block.h (flow_bb_inside_loop_p): Correct prototype.
7767
7768 2002-12-18  Aldy Hernandez  <aldyh@redhat.com>
7769
7770         PR 8551
7771         * config/rs6000/altivec.h (vec_cmplt macro): Reverse arguments in
7772         macro.
7773         (vec_cmplt C++ functions): Reverse arguments.
7774
7775 2002-12-18  Geoffrey Keating  <geoffk@apple.com>
7776
7777         * config/rs6000/t-rs6000: Move contents to t-fprules,
7778         add rules for dependencies of rs6000.o and to build rs6000-c.o
7779         * config/rs6000/t-fprules: New file from t-rs6000.
7780         * config/rs6000/t-beos: Remove soft-fp rules.
7781         * config/rs6000/t-ppccomm: Likewise.
7782         * config/rs6000/t-newas: Likewise.
7783         * config/rs6000/t-rs6000-c-rule: Delete.
7784         * config.gcc: Use t-fprules for rs6000/ ports when appropriate.
7785         Use t-rs6000 for all rs6000/ ports instead of t-rs6000-c-rule.
7786         Create generic Darwin rules.
7787
7788         * gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.
7789
7790 2002-12-18  Doug Evans  <dje@sebabeach.org>
7791
7792         * m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
7793         and LIT_NAME_P.
7794         (move_src_operand): Remove compile-time warning.
7795         * m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.
7796
7797 2002-12-18  Jason Merrill  <jason@redhat.com>
7798
7799         * unwind-dw2-fde.c (frame_downheap): Split out from...
7800         (frame_heapsort): Here.
7801
7802 2002-12-17  Jason Merrill  <jason@redhat.com>
7803
7804         * tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
7805         (build1): Always set TREE_SIDE_EFFECTS on 's' class nodes.
7806
7807         * gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
7808
7809         * calls.c (expand_call): Don't try to be clever about expanding
7810         the return slot address.
7811
7812 2002-12-18  Kaz kojima  <kkojima@gcc.gnu.org>
7813
7814         * config/sh/linux.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC):
7815         Define.
7816
7817 2002-12-17  Jason Merrill  <jason@redhat.com>
7818
7819         * genmultilib: Use 'cd ./foo'.
7820
7821 2002-12-17  Kazu Hirata  <kazu@cs.umass.edu>
7822
7823         * doc/c-tree.texi: Restore deliberate spelling mistakes.
7824
7825 2002-12-17  Kazu Hirata  <kazu@cs.umass.edu>
7826
7827         * doc/c-tree.texi: Fix typos and follow spelling conventions.
7828         * doc/cpp.texi: Likewise.
7829         * doc/extend.texi: Likewise.
7830         * doc/gty.texi: Likewise.
7831         * doc/install.texi: Likewise.
7832         * doc/invoke.texi: Likewise.
7833         * doc/md.texi: Likewise.
7834         * doc/passes.texi: Likewise.
7835         * doc/rtl.texi: Likewise.
7836         * doc/sourcebuild.texi: Likewise.
7837         * doc/tm.texi: Likewise.
7838
7839 2002-12-17  Jerry Quinn  <jlquinn@optonline.net>
7840
7841         * doc/invoke.texi: Minor spelling and grammar fixes.
7842
7843 2002-12-17  Ulrich Weigand  <uweigand@de.ibm.com>
7844
7845         * config/s390/s390.c (s390_output_constant_pool): Replace
7846         ASM_OUTPUT_INTERNAL_LABEL by (*targetm.asm_out.internal_label).
7847
7848 Tue Dec 17 09:47:57 CET 2002  Jan Hubicka  <jh@suse.cz>
7849
7850         * convert.c (convert_to_real): Disable function transformation for
7851         now.
7852
7853 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
7854
7855         * gcc.c (handle_braces): Allow '@' as a switch name.
7856
7857 2002-12-16  Jason Merrill  <jason@redhat.com>
7858
7859         * calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR
7860         with special struct-return ABIs.
7861
7862         * c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT
7863         doesn't match the begin SCOPE_STMT in partialness.
7864
7865 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
7866
7867         * genmultilib: Create temporary files in unique subdirectory.
7868
7869         * gcc.c (validate_switches): Allow '@' as a switch name.
7870
7871 2002-12-16  Loren J. Rittle  <ljrittle@acm.org>
7872
7873         * Makefile.in (gcov-iov.h): Improve portability.
7874
7875 Mon Dec 16 23:39:19 CET 2002  Jan Hubicka  <jh@suse.cz>
7876
7877         * mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not use qpword on API_N32/not
7878         gas
7879         * mips.md (tablejump insn): Likewise.
7880
7881 2002-12-16  Mark Mitchell  <mark@codesourcery.com>
7882
7883         * doc/include/gcc-common.texi: Change version number to 3.4.
7884
7885 2002-12-16  Bruce Korb  <bkorb@gnu.org>
7886
7887         * fixinc/fixlib.h: add: #include <signal.h>
7888         * fixinc/fixincl.c: remove: #include <signal.h>
7889
7890 Mon Dec 16 17:20:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
7891
7892         * sh.h (EXTRA_CONSTRAINT_Z): New macro.
7893         (EXTRA_CONSTRAINT): Use it.
7894         * sh.md (anddi3): Use 'Z' constraint for alternative 2.
7895
7896 2002-12-15  Zack Weinberg  <zack@codesourcery.com>
7897
7898         * config.gcc (need_64bit_hwint): New variable.
7899         (alpha*-*-*, x86_64-*-*, ia64-*-*, mips*-*-*, powerpc*-*-*,
7900         mmix-knuth-mmixware, rs6000*-*-*, sparc64*-*-*, s390*-*-*,
7901         sh*-*-*, hppa*64*-*-linux, parisc*64*-*-linux, hppa*64*-*-hpux11*,
7902         sparcv9-*-solaris2*, sparc*-*-solaris2.[789], ultrasparc-*-freebsd*):
7903         Set it.
7904         (powerpc*-*-darwin*): Unset it.
7905         (alpha-*-interix, alpha64-dec-*vms*, i?86-*-interix3*,
7906         i?86-*-interix*, sparc64-*-openbsd*): Remove references to
7907         deleted/nonexistent xm-*.h headers.
7908         * configure.in: AC_DEFINE NEED_64BIT_HOST_WIDE_INT if the
7909         target set need_64bit_hwint in config.gcc.
7910         * configure, config.in: Regenerate.
7911
7912         * hwint.h: Overhaul.  Don't bother trying int for
7913         HOST_WIDE_INT.  Do try __int64 if long is not enough.  Base
7914         decision to force 64-bit HOST_WIDE_INT on
7915         NEED_64BIT_HOST_WIDE_INT, not (MAX_)LONG_TYPE_SIZE which is
7916         not visible at this point.  Don't allow prior definition of
7917         any macro defined by this file.
7918
7919         * config/alpha/xm-vms.h: Don't define HOST_WIDE_INT or
7920         HOST_BITS_PER_WIDE_INT.
7921         * config/c4x/c4x.h: Adjust redefinition of
7922         HOST_WIDE_INT_PRINT_HEX to match changes to hwint.h.
7923         * config/alpha/xm-alpha-interix.h, config/alpha/xm-vms64.h,
7924         config/i386/xm-i386-interix.h: Delete file.
7925
7926 2002-12-14  Rodney Brown  <rbrown64@csc.com.au>
7927             John David Anglin  <dave@hiauly1.hia.nrc.ca>
7928
7929         * pa.c (output_millicode_call): Convert ASM_OUTPUT_INTERNAL_LABEL.
7930         * pa64-hpux.h (ASM_OUTPUT_INTERNAL_LABEL): Delete define.
7931
7932 2002-12-14  Zack Weinberg  <zack@codesourcery.com>
7933
7934         * mkconfig.sh: Correct comment.  Add copyright boilerplate.
7935
7936 2002-12-14  Zack Weinberg  <zack@codesourcery.com>
7937
7938         * config/t-darwin, config/arm/t-pe, config/arm/t-strongarm-pe,
7939         config/c4x/t-c4x, config/i370/t-i370, config/i386/t-cygwin,
7940         config/i386/t-interix, config/i960/t-960bare, config/ia64/t-ia64,
7941         config/rs6000/t-rs6000-c-rule, config/sparc/t-sol2,
7942         config/v850/t-v850:  Correct dependencies and normalize
7943         compilation commands for files that include coretypes.h and tm.h.
7944
7945         * config/sparc/gmon-sol2.c: Include tconfig.h and tsystem.h,
7946         not config.h and system.h.
7947
7948 Sat Dec 14 20:43:41 CET 2002  Jan Hubicka  <jh@suse.cz>
7949
7950         * i386.c (flags_reg_operand):  New function.
7951         * i386.h (PREDICATE_CODES): Add flags_reg_operand.
7952         * i386.md (cmov splitter, movqicc): Use new predicate.
7953
7954 Sat Dec 14 17:03:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7955
7956         * i386.md (movqicc splitter): Fix template.
7957
7958 2002-12-13  Jason Merrill  <jason@redhat.com>
7959
7960         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): New macro.
7961         * calls.c (expand_call): Handle it.
7962         * tree-inline.c (struct inline_data): Remove target_exprs field.
7963         (optimize_inline_calls): Don't initialize it.
7964         (expand_call_inline): Don't modify it.  Handle
7965         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
7966         (declare_return_variable): Take return slot addr.
7967         * langhooks.h (copy_res_decl_for_inlining): Change target_exprs parm
7968         to return_slot_addr.
7969         * langhooks-def.h, langhooks.c: Adjust.
7970         * explow.c (maybe_set_unchanging): Don't set RTX_UNCHANGING_P for
7971         a decl with no DECL_INITIAL.
7972
7973         * expr.c (expand_expr): Don't discard the target of a call which
7974         returns in memory.
7975
7976 2002-12-13  Neil Booth  <neil@daikokuya.co.uk>
7977
7978         * cppinit.c (path_include): Take an environment variable name.
7979         Tidy up.
7980         (init_standard_includes): Simplify environment handling, and
7981         move to ...
7982         (cpp_read_main_file): ...here as -nostdinc should not affect
7983         environment variable paths.
7984
7985 2002-12-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7986
7987         * pa.c (output_millicode_call): Correct typo.
7988         (output_call): Likewise.
7989
7990 Fri Dec 13 21:07:18 2002  Alexandre Oliva  <aoliva@redhat.com>
7991
7992         * config/mn10300/mn10300.c (print_operand) <case N>: Check
7993         operand's range.  Print value directly, without aid from
7994         output_address.
7995         <case U>: New.
7996         <case S>: Make sure argument to fprintf has the right type.
7997         * config/mn10300/mn10300.h (OK_FOR_T): New macro.
7998         (EXTRA_CONSTRAINT): Adjust.
7999         * config/mn10300/mn10300.md: Add new all-QImode pattern for
8000         bclr.  Use %U for immediate operands of bset and bclr.
8001         (iorqi3): New expand, with insns for AM33 and mn10300.
8002
8003 Fri Dec 13 16:02:27 2002  J"orn Rennecke <joern.rennecke@superh.com>
8004
8005         * sh.c (sh_register_operand): New function.
8006         (prepare_move_operands): Use it.
8007         * sh.h (PREDICATE_CODES): Add entry for sh_register_operand.
8008         * sh.md (movsi_media, movsi_media_nofpu): Allow stores of 0.
8009         (movqi_media, movhi_media, movdi_media, movdi_media_nofpu): Likewise.
8010         (movdf_media, movdf_media_nofpu, movv4sf_i, movsf_media): Likewise.
8011         (movsf_media_nofpu, movv2hi_i, movv4hi_i, movv8qi_i): Likewise.
8012         (movv2si_i): Likewise.
8013
8014 2002-12-13  Jim Wilson  <wilson@redhat.com>
8015
8016         * doc/extend.texi (Complex Numbers): Update info on debug info.
8017
8018 2002-12-13  Kazu Hirata  <kazu@cs.umass.edu>
8019
8020         * config/h8300/h8300.md (addhi3_h8300): Remove the last
8021         alternative.
8022
8023 2002-12-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8024
8025         * hooks.h (hook_tree_tree_bool_false): Declare
8026         hook_bool_tree_tree_false instead.
8027
8028 2002-12-12  Devang Patel  <dpatel@apple.com>
8029
8030         * doc/invoke.texi: Document Darwin linker options, -bundle
8031         -bind_at_load, -all_load and -arch_errors_fatal
8032
8033 2002-12-12  Jim Wilson  <wilson@redhat.com>
8034
8035         * dbxout.c (dbxout_fptype_value): New.
8036         (dbxout_type, case COMPLEX_TYPE): Call it.  Use 'R' instead of 'r'.
8037
8038 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8039
8040         * c-decl.c: Fix a comment typo.
8041         * cfg.c: Likewise.
8042         * cfgcleanup.c: Likewise.
8043         * cfglayout.c: Likewise.
8044         * cfgrtl.c: Likewise.
8045         * c-typeck.c: Likewise.
8046         * dominance.c: Likewise.
8047         * dwarf2asm.c: Likewise.
8048         * dwarfout.c: Likewise.
8049         * expmed.c: Likewise.
8050         * expr.c: Likewise.
8051         * final.c: Likewise.
8052         * flow.c: Likewise.
8053         * function.c: Likewise.
8054         * gcc.c: Likewise.
8055         * genautomata.c: Likewise.
8056         * integrate.c: Likewise.
8057         * loop.c: Likewise.
8058         * loop.h: Likewise.
8059         * output.h: Likewise.
8060         * profile.c: Likewise.
8061         * ra.h: Likewise.
8062         * reload1.c: Likewise.
8063         * reload.c: Likewise.
8064         * sched-rgn.c: Likewise.
8065         * stmt.c: Likewise.
8066         * tree.h: Likewise.
8067         * vmsdbgout.c: Likewise.
8068
8069 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8070
8071         * config/h8300/h8300.md: Add a new peephole2.
8072
8073 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8074
8075         * config/h8300/h8300.md (a peephole2): Accept a constant
8076         that's accepted by CONST_OK_FOR_J.
8077
8078 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8079
8080         * config/h8300/h8300.h (CONST_OK_FOR_J): New.
8081         (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J.
8082         * config/h8300/h8300.md (*addhi_h8300): Add a new alternative.
8083         (*addhi_h8300hs): Likewise.
8084
8085 Thu Dec 12 16:24:59 2002  J"orn Rennecke <joern.rennecke@superh.com>
8086
8087         * sh.c (reg_class_from_letter): No longer const.  Add 'e' entry.
8088         (sh_register_move_cost): Add clause for SImode fp-fp moves.
8089         Increase cost for moves involving multiple general purpose registers.
8090         * sh.h (OVERRIDE_OPTIONS): Set reg_class_from_letter['e'] according to
8091         TARGET_FMOVD.
8092         (HARD_REGNO_MODE_OK): Allow V2SFmode and V4SFmode in general purpose
8093         registers, and SImode in fp registers, for ! TARGET_SHMEDIA.
8094         (enum reg_class reg_class_from_letter): No longer const.
8095         (SECONDARY_OUTPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG /
8096         REGCLASS_HAS_GENERAL_REG.
8097         Handle SImode moves from/to fp registers.
8098         ! TARGET_SHMEDIA && TARGET_FMOVD.
8099         (SECONDARY_INPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG.
8100         * sh.md (movsi_ie): Add alternatives to move from / to fp regisyters.
8101
8102 2002-12-12  Andreas Schwab  <schwab@suse.de>
8103
8104         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Fix typo in last
8105         change and some warnings.
8106
8107 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8108
8109         * doc/md.texi (pushm): Fix a typo.
8110
8111 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
8112
8113         * config/mips/mips.c (mips_output_conditional_branch): Support
8114         PIC-safe out-of-range branch and branch-likely.
8115         * config/mips/mips.md (attr length): PIC-safe out-of-range
8116         branches are longer.
8117         ("jump"): Support PIC-safe out-of-range-for-branch jumps.  Remove
8118         unused code to support indirect jumps.
8119
8120 2002-12-11  Zack Weinberg  <zack@codesourcery.com>
8121
8122         * Makefile.in (GTFILES): Add $(host_xm_file_list) and
8123         $(tm_file_list).
8124
8125 2002-12-11  David Edelsohn  <edelsohn@gnu.org>
8126
8127         * config/rs6000/t-rs6000-c-rule: Add coretypes.h $(TM_H) dependencies.
8128
8129 Wed Dec 11 15:20:45 CET 2002  Jan Hubicka  <jh@suse.cz>
8130
8131         * i386.md (cmove splitters): Avoid creation of unnecesary subregs.
8132
8133 2002-12-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8134
8135         * pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
8136         (MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
8137         BIGGEST_ALIGNMENT.
8138         (PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
8139         (FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.
8140
8141 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8142
8143         * doc/invoke.texi: Correct dump file names.
8144
8145 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8146
8147         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Don't send stripped
8148         name to globalize_label or assemble_name.
8149
8150 Wed Dec 11 20:15:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
8151
8152         * sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS
8153         if not TARGET_SHMEDIA.
8154
8155 Wed Dec 11 19:05:05 2002  J"orn Rennecke <joern.rennecke@superh.com>
8156
8157         * sh.h (REG_CLASS_HAS_FP_REG): New.
8158         (REGISTER_MOVE_COST) Use it.  Put body into a function and
8159         move it into:
8160         * sh.c (sh_register_move_cost).
8161         * sh-protos.h (sh_register_move_cost): Declare.
8162
8163         * sh.c (sh_expand_builtin): Abort for unexpected nop values.
8164         (sh_adjust_cost): Always return a value.
8165
8166 Wed Dec 11 18:39:52 2002  J"orn Rennecke <joern.rennecke@superh.com>
8167
8168         * sh.h (REG_CLASS_HAS_GENERAL_REG): New.
8169         (REGISTER_MOVE_COST): Use it.
8170
8171 2002-12-11  Richard Henderson  <rth@redhat.com>
8172
8173         * tree.h (MODULE_LOCAL_P): Kill.
8174         * varasm.c (default_binds_local_p_1): Use decl_visibility instead.
8175
8176 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8177
8178         * config/h8300/h8300.md (two define_peephole2): New.
8179
8180 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8181
8182         * config/h8300/h8300.h (CONST_OK_FOR_J): Remove.
8183         (CONST_OK_FOR_K): Likewise.
8184         (CONST_OK_FOR_M): Likewise.
8185         (CONST_OK_FOR_LETTER_P): Do not use the above macros.
8186
8187 2002-12-11  Neil Booth  <neil@daikokuya.co.uk>
8188
8189         * c-common.c (builtin_define_type_max): Handle unsigned
8190         types too.
8191
8192 2002-12-10  David Edelsohn  <edelsohn@gnu.org>
8193
8194         * haifa-sched.c (rank_for_schedule): Correct style.
8195
8196 2002-12-10  Per Bothner  <pbothner@apple.com>
8197
8198         * cpplib.h (struct cpp_hashnode):  Split a non-portably-signed field
8199         directive_index into an unsigned field and a new is_directive field.
8200         * cppinit.c (mark_named_operators):  Update to set new fields.
8201         * cpplex.c (_cpp_lex_direct):  Now directive_field is unsigned.
8202         * cpplib.c [_cpp_handle_directive]:   Test is_directive field.
8203         No longer need to subtract 1 from directive_index.
8204         (_cpp_init_directives):  No longer need to add 1 to directive_index.
8205         * cpptrad.c (scan_out_logical_line):  Use is_directive field.
8206
8207 2002-12-10  Roger Sayle  <roger@eyesopen.com>
8208
8209         * builtins.c (fold_builtin): Remove -funsafe-math-optimizations
8210         check for evaluating sqrt of a constant at compile time.
8211         * simplify-rtx.c (simplify_unary_operation): Likewise.
8212
8213 2002-12-10  Janis Johnson  <janis187@us.ibm.com>
8214
8215         PR other/8882
8216         * doc/tm.texi (PUSH_ARGS): Remove misplaced line.
8217
8218 2002-12-10  Devang Patel  <dpatel@appple.com>
8219
8220         * config/darwin.h(LINK_SPEC): Add darwin specific linker options.
8221         * doc/invoke.texi: Add new "Darwin Options" section.
8222
8223 2002-12-10  Jim Wilson  <wilson@redhat.com>
8224
8225         * rs6000.h (RETURN_IN_MEMORY): If ABI_V4, then TFmode is returned in
8226         memory.
8227
8228 2002-12-10  Andrew Haley  <aph@redhat.com>
8229
8230         * cse.c (cse_insn): Don't cse past a basic block boundary.
8231
8232 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
8233
8234         * config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if
8235         -shared.
8236         * config/alpha/linux-elf.h (LIB_SPEC): Likewise.
8237         * config/alpha/linux.h (LIB_SPEC): Likewise.
8238         * config/arm/linux-elf.h (LIB_SPEC): Likewise.
8239         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8240         * config/sparc/linux.h (LIB_SPEC): Likewise.
8241         * config/sparc/linux64.h (LIB_SPEC): Likewise.
8242
8243 2002-12-09  Larin Hennessy  <larin@science.oregonstate.edu>
8244
8245         * doc/invoke.texi: Document UltraSparc III option.
8246
8247 2002-12-09  Richard Henderson  <rth@redhat.com>
8248
8249         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
8250         __tune_pentium2__ and __tune_pentium3__ as necessary.
8251
8252 2002-12-09  Richard Henderson  <rth@redhat.com>
8253
8254         * target.h (gcc_target): Add cannot_force_const_mem.
8255         * target-def.h (TARGET_CANNOT_FORCE_CONST_MEM): New.
8256         (TARGET_INITIALIZER): Add it.
8257         * varasm.c (force_const_mem): Fail if cannot_force_const_mem.
8258         * expr.c (emit_move_insn): Be prepared for force_const_mem to fail.
8259         * reload1.c (reload): Likewise.
8260         * hooks.c (hook_bool_rtx_false): New.
8261         * hooks.h: Declare it.
8262
8263         * config/i386/i386.c (ix86_cannot_force_const_mem): New.
8264         (TARGET_CANNOT_FORCE_CONST_MEM): New.
8265         (ix86_expand_move): Remove de-const-pooling hack.
8266
8267 Mon Dec  9 21:33:38 CET 2002  Jan Hubicka  <jh@suse.cz>
8268
8269         * toplev.c (dump_file): Fix order to match reality.
8270
8271 2002-12-08  Geoffrey Keating  <geoffk@apple.com>
8272
8273         * config/rs6000/rs6000.md (load_multiple): Use adjust_address_nv.
8274         (store_multiple): Likewise.
8275
8276 2002-12-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8277
8278         * pa/fptr.c (__canonicalize_funcptr_for_compare): Don't canonicalize
8279         function pointers in page 0.
8280
8281 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8282
8283         * config/ia64/hpux.h (TARGET_STRUCT_ARG_REG_LITTLE_ENDIAN): Remove
8284         definition
8285         (MEMBER_TYPE_FORCES_BLK): Move.
8286         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL to pass
8287         aggregate arguments.
8288         (ia64_function_value): Use PARALLEL to return aggregate values.
8289
8290 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8291
8292         * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
8293         * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
8294         * calls.c (store_unaligned_arguments_into_pseudos) Remove
8295         FUNCTION_ARG_REG_LITTLE_ENDIAN.
8296         * stmt.c (expand_return): Ditto.
8297         * expr.c (move_block_from_reg): Ditto.
8298         (copy_blkmode_from_reg): Ditto.
8299         * expmed.c (store_bit_field): Ditto.
8300
8301 2002-12-09  Svein E. Seldal  <Svein.Seldal@solidas.com>
8302
8303         * config.gcc: Added tic4x-* target as an alias to c4x-*
8304
8305 Sun Dec  8 14:57:39 CET 2002  Jan Hubicka  <jh@suse.cz>
8306
8307         * i386.c (ix86_expand_int_movcc): Use force_operand instead of
8308         constructing insn directly.
8309
8310 2002-12-06  Per Bothner  <pbothner@apple.com>
8311
8312         * cpplib.h (struct cpp_hashnode):  Change field directive_index from
8313         char to an int bit-field, for hosts where char is unsigned.
8314
8315 2002-12-07  Roger Sayle  <roger@eyesopen.com>
8316             Richard Henderson <rth@redhat.com>
8317
8318         * real.c (ieee_extended_motorola_format,
8319         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
8320         ieee_quad_format, vax_d_format, vax_g_format, i370_double_format):
8321         Provide appropriate values for new signbit field.
8322
8323 2002-12-07  Roger Sayle  <roger@eyesopen.com>
8324
8325         * real.h (real_format): Add signbit field.
8326         * real.c (ieee_single_format, ieee_double_format,
8327         ieee_extended_motorola_format, ieee_extended_intel_96_format,
8328         ieee_extended_intel_128_format, ibm_extended_format,
8329         ieee_quad_format, vax_f_format, vax_d_format,
8330         vax_g_format, i370_single_format, i370_double_format,
8331         c4x_single_format, c4x_extended_format, real_internal_format):
8332         Provide suitable signbit value, or -1 to avoid bit twiddling.
8333
8334         * optabs.c (expand_unop): Try implementing negation of
8335         floating point modes by flipping the sign bit.
8336         (expand_abs): Try implementing abs of floating point modes
8337         by clearing the sign bit.
8338
8339 Sat Dec  7 22:29:47 CET 2002  Jan Hubicka  <jh@suse.cz>
8340
8341         * i386.c (ix86_expand_int_movcc):  Use force_operand instead
8342         of constructing insn directly.
8343
8344 2002-12-07  Kazu Hirata  <kazu@cs.umass.edu>
8345
8346         * config/h8300/h8300.md (*iorhi_shift_8): New.
8347
8348 2002-12-06  Bernd Schmidt  <bernds@redhat.com>
8349
8350         * doc/invoke.texi: Document FRV port options.
8351         * doc/md.texi: Document FRV register classes.
8352
8353 2002-12-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8354
8355         * doc/install.texi (Configuration): Improve description of cases
8356         where `make distclean` may fail; clarify --with-gnu-as; fix grammar.
8357
8358 2002-12-06  Per Bothner  <pbothner@apple.com>
8359
8360         * cpplib.h (NODE_MACRO_ARG):  New flag.
8361         (struct cpp_hashnode):  Give _cpp_hashnode_value tag to value union.
8362         Remove value.operator field.  Move arg_index field to value union.
8363         (directive_index):  Make signed, since also used for C++ operators.
8364         * cppmacro.c (_cpp_save_parameter):  Use NODE_MACRO_ARG flag to
8365         check for duplicate parameter.  Set NODE_MACRO_ARG flag.
8366         Save node->value, and set node->value.arg_index.
8367         (_cpp_create_definition):  For each paramater, restore node->value.
8368         (lex_expansion_token):  Use NODE_MACRO_ARG flag, and moved arg_index.
8369         * cpptrad.c (scan_out_logical_line): Likewise.
8370         (scan_out_logical_line): Check for directive > 0.
8371         * cpplib.c (cpp_handle_directive):  Likewise.
8372         * cpplex.c (_cpp_lex_direct):  Update as value.operator is replaced
8373         by negative of directive_index.
8374         * cppinit.c (mark_named_operators):  Likewise.
8375
8376         * hashtable.h (struct ht_identifier):  Swap fields, for better packing.
8377
8378 2002-12-06 Dhananjay Deshpande <dhananjayd@kpit.com>
8379
8380         * gcc/config/sh/sh.c (calc_live_regs): Save fpscr only if target has
8381         FPU.
8382         (push): Generate push_fpscr.
8383         (pop): Generate pop_fpscr.
8384         * gcc/config/sh/sh.md : Add define_expand "push_fpscr", "pop_fpscr".
8385         (fpu_switch): Add alternative to push fpscr.  Enable for TARGET_SH3E.
8386
8387 Fri Dec  6 19:36:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
8388
8389         * sh.c (dump_table): DImode pool constants need only 32 bit alignment.
8390         DFmode alignment depends on TARGET_FMOVD && TARGET_ALIGN_DOUBLE.
8391
8392 Fri Dec  6 19:17:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
8393
8394         * sh.md (movdi_i): Name.  Remove inappropriate comment.
8395
8396 Fri Dec  6 15:44:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
8397         Merged from basic improvements branch (excerpt):
8398
8399         2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8400         * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
8401
8402 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
8403
8404         * expr.c (expand_expr) <case COND_EXPR>: Never modify exp in place.
8405
8406 Thu Dec  5 16:58:25 CET 2002  Jan Hubicka  <jh@suse.cz>
8407
8408         * i386.md (dimode peep2s): Re-add "&& 1".
8409
8410 Thu Dec  5 14:10:15 CET 2002  Jan Hubicka  <jh@suse.cz>
8411
8412         * i386.c (ix86_expand_prologue):  Add comment, do not use
8413         fast prologues for cold and normal functions.
8414
8415 Thu Dec  5 00:52:37 CET 2002  Jan Hubicka  <jh@suse.cz>
8416
8417         * i386.c (x86_rep_movl_optimal): New variable.
8418         (ix86_expand_movstr, ix86_expand_clrstr): Use TARGET_REP_MOVL_OPTIMAL
8419         * i386.h (TARGET_REP_MOVL_OPTIMAL): New macro.
8420
8421         * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
8422         absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
8423         neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
8424         generate unnecesary subregs.
8425
8426 2002-12-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8427
8428         * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
8429         * pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.
8430
8431 2002-12-05  Dale Johannesen  <dalej@apple.com>
8432
8433         * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.
8434
8435 2002-12-05  Danny Smith  <dannysmith@users.sourceforge.net>
8436
8437         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
8438         PROFILE_HOOK.
8439         * config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.
8440
8441 2002-12-05  Aldy Hernandez  <aldyh@redhat.com>
8442
8443         * config/rs6000/spe.h (__ev_mwlufi): Remove.
8444         (__ev_mwlufia): Remove.
8445         (__ev_mwlumfaaw): Remove.
8446         (__ev_mwlusfaaw): Remove.
8447         (__ev_mwlumfanw): Remove.
8448         (__ev_mwlusfanw): Remove.
8449
8450 2002-12-05  Kazu Hirata  <kazu@cs.umass.edu>
8451
8452         * config/h8300/h8300.md (*andorsi3_shift_8): New.
8453
8454 2002-12-05  Kazu Hirata  <kazu@cs.umass.edu>
8455
8456         * config/h8300/h8300.c (shift_alg_si): Optimize ashift:HI and
8457         lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.
8458         (get_shift_alg): Return optimal assembly instructions for the
8459         shifts mentioned above.
8460
8461 Wed Dec  4 11:53:07 CET 2002  Jan Hubicka  <jh@suse.cz>
8462
8463         * i386.c (ix86_expand_int_movcc): Force operand into register for QImode
8464         condtiional moves.
8465
8466 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
8467
8468         * config/h8300/h8300.c (h8300_init_once): Do not use loop to
8469         implement ashiftrt:HI by 13 bits on H8S.
8470
8471 2002-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8472
8473         * pa/fptr.c (__canonicalize_funcptr_for_compare): New file and function.
8474         * pa.md (canonicalize_funcptr_for_compare): Output library call to
8475         canonicalize_funcptr_for_compare_libfunc on TARGET_ELF32.
8476         * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL,
8477         CTOR_LIST_BEGIN): New defines.
8478         * pa/t-linux (LIB2FUNCS_EXTRA): New define.
8479         (fptr.c): Add make rules.
8480
8481 2002-12-04  Geoffrey Keating  <geoffk@apple.com>
8482
8483         * combine.c (combine_simplify_rtx): Add new canonicalizations.
8484         * doc/md.texi (Insn Canonicalizations): Document new
8485         canonicalizations for multiply/add combinations.
8486         * config/rs6000/rs6000.md: Add and modify floating add/multiply
8487         patterns to ensure they're used whenever they can be.
8488
8489 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
8490
8491         * config/h8300/h8300.c: Update the comments related to shifts.
8492
8493 2002-12-04  Chris Demetriou  <cgd@broadcom.com>
8494
8495         * config/mips/mips.md (get_fnaddr): Correct length attribute.
8496
8497 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
8498
8499         * config/h8300/h8300.md (*extzv_8_8): New.
8500         (*extzv_8_16): Likewise.
8501
8502 2002-12-04  Jason Merrill  <jason@redhat.com>
8503
8504         PR c++/8461, c++/8625
8505         * integrate.c (copy_decl_for_inlining): Handle explicit invisible
8506         references.
8507         * tree-inline.c (initialize_inlined_parameters): Likewise.
8508
8509         * tree.c (variably_modified_type_p): Just return an error_mark_node.
8510
8511 2002-12-04  Chris Demetriou  <cgd@broadcom.com>
8512
8513         * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
8514         macro instruction in a branch delay slot, to avoid assembler
8515         warnings.
8516
8517 2002-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
8518
8519         PR c/7622
8520         * c-semantics (genrtl_scope_stmt): Do not output inlined
8521         nested functions that contain no code.
8522
8523 Wed Dec  4 15:20:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8524
8525         * cfgrtl.c (force_nonfallthru_and_redirect):  Allow abnormal edge
8526         to be forced into nonfallthru.
8527
8528 2002-12-03  Jason Thorpe  <thorpej@wasabisystems.com>
8529
8530         * config/t-netbsd (USER_H): Set to $(EXTRA_HEADERS).
8531
8532 2002-12-03  Aldy Hernandez  <aldyh@redhat.com>
8533
8534         * config/rs6000/spe.md (*movv1di_const0): New pattern.
8535
8536 2002-12-03  Richard Henderson  <rth@redhat.com>
8537
8538         * libgcc-std.ver: Inherit GCC_3.3 from GCC_3.0.
8539
8540 2002-12-03  Hans-Peter Nilsson  <hp@bitrange.com>
8541
8542         * bitmap.c (bitmap_ior_and_compl, bitmap_union_of_diff):
8543         Initialize tmp.using_obstack to 0.
8544
8545 2002-12-03  Andreas Schwab  <schwab@suse.de>
8546
8547         * config/m68k/m68k.h (EH_RETURN_DATA_REGNO): Define.
8548         (EH_RETURN_STACKADJ_RTX): Define.
8549         (EH_RETURN_HANDLER_RTX): Define.
8550         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8551         * config/m68k/m68k.c (m68k_save_reg): New function.  Handle eh
8552         registers and don't save fixed registers.
8553         (m68k_output_function_prologue): Use it.
8554         (use_return_insn): Likewise.
8555         (m68k_output_function_epilogue): Likewise.
8556
8557 2002-12-03  Kazu Hirata  <kazu@cs.umass.edu>
8558
8559         * config/h8300/h8300.c (single_one_operand): Fix a warning.
8560         (single_zero_operand): Likewise.
8561
8562 2002-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
8563
8564         * Makefile.in configure configure.in dummy-conditions.c fix-header.c
8565         gcov-iov.c gen-protos.c genattr.c genattrtab.c genautomata.c
8566         gencheck.c gencodes.c genconditions.c genconfig.c genconstants.c
8567         genemit.c genextract.c genflags.c gengenrtl.c gengtype-lex.l
8568         gengtype-yacc.y gengtype.c genopinit.c genoutput.c genpeep.c
8569         genpreds.c genrecog.c gensupport.c mkconfig.sh read-rtl.c
8570         scan-decls.c scan.c config/sh/sh.h doc/configfiles.texi
8571         doc/install-old.texi: Replace hconfig.h with bconfig.h.
8572         * Makefile.in: Replace HCONFIG_H with BCONFIG_H.
8573
8574 2002-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
8575
8576         * config/rs6000/rs6000.md (ffssi): Convert to expander.
8577         (ffsdi): Likewise.
8578         (cntlzw2, cntlzd2): New patterns.
8579
8580 2002-12-02  H.J. Lu <hjl@gnu.org>
8581
8582         * config.gcc (mips*-*-netbsd*): Remove mips/t-netbsd.
8583         (mips*-*-linux*): Remove mips/t-linux.
8584
8585 Mon Dec  2 19:26:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8586
8587         * i386.c (ix86_expand_int_movcc):  Avoid overflow.
8588
8589 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
8590
8591         * config/h8300/h8300.c (dosize): Replace argument op with
8592         sign.
8593         (h8300_output_function_prologue): Update the call to dosize.
8594         (h8300_output_function_epilogue): Likewise.
8595
8596 2002-12-02  Bob Wilson  <bob.wilson@acm.org>
8597
8598         * config/xtensa/xtensa.h: Delete ifndefs with nothing inside them.
8599
8600 2002-12-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8601
8602         * configure.in: Use "missing" script to generate warning if
8603         flex or bison programs not found, instead of invoking "false".
8604         * configure: Rebuilt.
8605
8606 Mon Dec  2 20:28:48 CET 2002  Jan Hubicka  <jh@suse.cz>
8607
8608         * unroll.c (copy_loop_body): Copy CONST_OR_PURE_CALL_P.
8609
8610 Mon Dec  2 19:42:52 CET 2002  Jan Hubicka  <jh@suse.cz>
8611
8612         * i386.c (ix86_expand_int_movcc):  Avoid overflow.
8613
8614 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
8615
8616         * config/h8300/h8300.c (dosize): Output r7/er7 instead of sp.
8617         (push): Likewise.
8618         (pop): Likewise.
8619         (h8300_output_function_prologue): Likewise.
8620         (h8300_output_function_epilogue): Likewise.
8621
8622 Mon Dec  2 14:43:22 2002  J"orn Rennecke <joern.rennecke@superh.com>
8623
8624         * expmed.c (store_bit_field): Use int_mode_for_mode to find
8625         corresponding mode of non-integer mode, unless it is VOIDmode.
8626
8627 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
8628
8629         * config/h8300/h8300.md (stm_h8300s_2): New.
8630         (stm_h8300s_3): Likewise.
8631         (stm_h8300s_4): Likewise.
8632         (five define_peephole2): Likewise.
8633
8634 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
8635
8636         * ra-build.c: Fix a comment typo.
8637
8638 Sun Dec  1 16:50:47 CET 2002  Jan Hubicka  <jh@suse.cz>
8639
8640         * i386.c (ix86_expand_int_movcc): fix
8641         reversed BRANCH_COST test; be curefull about infinite recursion.
8642
8643 2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
8644
8645         * config/h8300/h8300.c (h8300_output_function_prologue):
8646         Remove variable idx.
8647         (h8300_output_function_epilogue): Likewise.
8648
8649 2002-12-01  Zack Weinberg  <zack@codesourcery.com>
8650
8651         * config/frv/xm-frv.h: Delete, unnecessary.
8652
8653 2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
8654
8655         * config/h8300/h8300.md: Add comments for define_peephole2.
8656
8657 2002-12-01  Mark Mitchell  <mark@codesourcery.com>
8658
8659         * builtin-types.def (BT_SIZE): Use size_type_node.
8660         * builtins.c (fold_builtin): Make the builtin strlen returns a
8661         size_t, not a sizetype.
8662         * c-common.c (c_sizeof_or_alignof_type): Use size_type_node, not
8663         c_size_type_node.
8664         (c_alignof_expr): Likewise.
8665         (c_common_nodes_and_builtins): Likewise.
8666         * c-common.h (CTI_C_SIZE_TYPE): Remove.
8667         (c_size_type_node): Likewise.
8668         * c-format.c (T_ST): Use size_type_node, not c_size_type_node.
8669         * tree.h (TI_SIZE_TYPE): New enumeral.
8670         (size_type_node): Likewise.
8671
8672 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
8673
8674         * configure.in: Don't put ${tm_file} into host_xm_file,
8675         build_xm_file, or xm_file.  Do put tm-preds.h into tm_p_file.
8676         Take location of tm-preds.h into account when calculating
8677         tm_p_file_list.
8678         * configure: Regenerate.
8679         * mkconfig.sh: No need for separate TM_DEFINES and XM_DEFINES
8680         arguments.  Do not provide rtx, rtvec, tree, or GTY here.
8681         Remove special case code for tm_p.h and *config.h; add new
8682         special case code for tm.h and tconfig.h. Clean up a bit.
8683
8684         * Makefile.in (tm_file, tm_file_list): New variables set from
8685         @-substitutions.
8686         (GCONFIG_H): Deleted.
8687         (GTM_H, TM_H): New.
8688         (CONFIG_H): Is now just config.h $(host_xm_file_list).
8689         (TM_P_H): Move up with the other mkconfig.sh-generated
8690         headers; don't mention tm-preds.h explicitly.
8691         (tm.h, cs-tm.h): New rule.
8692         (cs-config.h, cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): Adjust
8693         invocations of mkconfig.sh for changes to that program.
8694         (mostlyclean): Delete print-rtl1.c.
8695         (clean): Delete tm.h.
8696         Update dependencies for the files listed below.
8697
8698         * mklibgcc.in:  Add 'coretypes.h $(TM_H)' to libgcc2_c_dep.
8699
8700         * coretypes.h: New file.
8701         * system.h: #define malloc to xmalloc and realloc to xrealloc
8702         when FLEX_SCANNER or YYBISON is defined, independent of the
8703         value of GCC_VERSION.
8704         * alias.c, attribs.c, bb-reorder.c, bitmap.c, builtins.c,
8705         c-aux-info.c, c-common.c, c-convert.c, c-decl.c, c-dump.c,
8706         c-errors.c, c-format.c, c-lang.c, c-lex.c, c-objc-common.c,
8707         c-opts.c, c-parse.in, c-pragma.c, c-pretty-print.c,
8708         c-semantics.c, c-typeck.c, caller-save.c, calls.c, cfg.c,
8709         cfganal.c, cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c,
8710         cfgrtl.c, collect2.c, combine.c, conflict.c, convert.c,
8711         cppdefault.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
8712         cppinit.c, cpplex.c, cpplib.c, cppmacro.c, cppmain.c,
8713         cppspec.c, cpptrad.c, crtstuff.c, cse.c, cselib.c, dbxout.c,
8714         debug.c, df.c, diagnostic.c, doloop.c, dominance.c,
8715         dummy-conditions.c, dwarf2asm.c, dwarf2out.c, dwarfout.c,
8716         emit-rtl.c, errors.c, et-forest.c, except.c, explow.c,
8717         expmed.c, expr.c, final.c, fix-header.c, flow.c, fold-const.c,
8718         function.c, gcc.c, gccspec.c, gcov-dump.c, gcov-iov.c, gcov.c,
8719         gcse.c, gen-protos.c, genattr.c, genattrtab.c, genautomata.c,
8720         gencheck.c, gencodes.c, genconditions.c, genconfig.c,
8721         genconstants.c, genemit.c, genextract.c, genflags.c,
8722         gengenrtl.c, gengtype-lex.l, gengtype-yacc.y, gengtype.c,
8723         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
8724         gensupport.c, ggc-common.c, ggc-none.c, ggc-page.c,
8725         ggc-simple.c, global.c, graph.c, haifa-sched.c, hashtable.c,
8726         hooks.c, ifcvt.c, integrate.c, intl.c, jump.c, langhooks.c,
8727         lcm.c, libgcc2.c, line-map.c, lists.c, local-alloc.c, loop.c,
8728         main.c, mbchar.c, mips-tdump.c, mips-tfile.c, mkdeps.c,
8729         optabs.c, params.c, predict.c, prefix.c, print-rtl.c,
8730         print-tree.c, profile.c, protoize.c, ra-build.c,
8731         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, read-rtl.c,
8732         real.c, recog.c, reg-stack.c, regclass.c, regmove.c,
8733         regrename.c, reload.c, reload1.c, reorg.c, resource.c,
8734         rtl-error.c, rtl.c, rtlanal.c, sbitmap.c, scan-decls.c,
8735         scan.c, sched-deps.c, sched-ebb.c, sched-rgn.c, sched-vis.c,
8736         sdbout.c, sibcall.c, simplify-rtx.c, ssa-ccp.c, ssa-dce.c,
8737         ssa.c, stmt.c, stor-layout.c, stringpool.c, timevar.c,
8738         tlink.c, toplev.c, tracer.c, tree-dump.c, tree-inline.c,
8739         tree.c, unroll.c, varasm.c, varray.c, varray.h, vmsdbgout.c,
8740         xcoffout.c, config/darwin-c.c, config/darwin.c,
8741         config/fp-bit.c, config/alpha/alpha.c, config/alpha/vms-cc.c,
8742         config/alpha/vms-ld.c, config/arc/arc.c, config/arm/arm.c,
8743         config/arm/pe.c, config/avr/avr.c, config/c4x/c4x-c.c,
8744         config/c4x/c4x.c, config/cris/cris.c, config/d30v/d30v.c,
8745         config/dsp16xx/dsp16xx.c, config/fr30/fr30.c,
8746         config/frv/frv.c, config/h8300/h8300.c, config/i370/i370-c.c,
8747         config/i370/i370.c, config/i386/i386.c, config/i386/winnt.c,
8748         config/i960/i960-c.c, config/i960/i960.c,
8749         config/ia64/ia64-c.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
8750         config/m32r/m32r.c, config/m68hc11/m68hc11.c,
8751         config/m68k/m68k.c, config/m88k/m88k.c, config/mcore/mcore.c,
8752         config/mips/irix6-libc-compat.c, config/mips/mips.c,
8753         config/mmix/mmix.c, config/mn10200/mn10200.c,
8754         config/mn10300/mn10300.c, config/ns32k/ns32k.c,
8755         config/pa/pa.c, config/pdp11/pdp11.c, config/romp/romp.c,
8756         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
8757         config/s390/s390.c, config/sh/sh.c, config/sparc/gmon-sol2.c,
8758         config/sparc/sparc.c, config/stormy16/stormy16.c,
8759         config/v850/v850-c.c, config/v850/v850.c, config/vax/vax.c,
8760         config/xtensa/xtensa.c, objc/objc-act.c, objc/objc-lang.c:
8761         Include coretypes.h and tm.h.
8762
8763         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
8764         gengenrtl.c, gengtype.c, genopinit.c, genoutput.c, genpeep.c,
8765         genrecog.c: Include coretypes.h and tm.h from the file
8766         generated by this program.
8767
8768         * unwind-dw2-fde-darwin.c, unwind-dw2-fde-glibc.c,
8769         unwind-dw2-fde.c, unwind-dw2.c, unwind-sjlj.c: Include
8770         coretypes.h and tm.h, and tsystem.h when not already included.
8771         No need to include stddef.h nor stdlib.h.
8772
8773         * fixinc/fixlib.h: Include coretypes.h and tm.h.  Do not
8774         include auto-host.h or ansidecl.h/
8775         * fixinc/server.h: Do not include stdio.h, unistd.h, or fixlib.h.
8776         * fixinc/procopen.c: Include server.h after fixlib.h.  Do not
8777         include auto-host.h, ansidecl.h, or system.h.
8778         * fixinc/server.c: Likewise.  Also, do not include signal.h,
8779         and do not redefine volatile.
8780
8781 Sat Nov 30 17:16:46 CET 2002  Jan Hubicka  <jh@suse.cz>
8782
8783         * i386.md (movdf_integer):  Always enable in 64bit.
8784         (movdf_nointeger): Always disable in 64bit.
8785
8786 2002-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8787
8788         * cfg.c (dump_flow_info): Use max_reg_num () to determine the largest
8789         pseudo register number plus 1.
8790
8791 Fri Nov 29 20:10:56 2002  J"orn Rennecke <joern.rennecke@superh.com>
8792
8793         * expmed.c (store_bit_field): Use int_mode_for_mode to find
8794         corresponding mode of non-integer mode, unless it is VOIDmode.
8795
8796 2002-11-29  Hans-Peter Nilsson  <hp@bitrange.com>
8797
8798         * cpplib.c (_cpp_test_assertion): Default *value to 0.
8799
8800         * cppexp.c (num_part_mul): Initialize result.unsignedp, to 1.
8801
8802 2002-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
8803
8804         * config/s390/t-crtstuff: New target makefile fragment.
8805         * config.gcc [s390-*-linux, s390x-*-linux]: Use it.
8806
8807 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
8808
8809         * config/h8300/h8300.md (movsi_h8300hs): Change the order of
8810         alternatives to correct the length when the memory operand is
8811         either pre_dec or post_inc.
8812
8813 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
8814
8815         * config/h8300/h8300.md (an anonymous pattern): Give an
8816         internal name *tst_extzv_bitqi_1_n.
8817         Accept bit_operand instead of bit_memory_operand.
8818         Do not accept bit tests with the MSB.
8819         (*tst_extzv_memqi_1_n): New.
8820
8821 Thu Nov 28 23:56:24 CET 2002  Jan Hubicka  <jh@suse.cz>
8822
8823         * i386.c (ix86_expand_int_movcc): Add copy_rtx to avoid invalid RTX
8824         sharing when operand is SUBREG.
8825
8826 Thu Nov 28 08:57:26 CET 2002  Jan Hubicka  <jh@suse.cz>
8827
8828         * athlon.md (athlon-decodev): New reservation unit.
8829         (athlon-direct0): New reservation.
8830         (athlon-vector): New use athlon-decodev.
8831         (athlon-double, athlon-direct): Better model.
8832         (athlon_imul_k8): Use athlon-direct0.
8833         (athlon_movlpd_load): New insn reservation.
8834
8835 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
8836
8837         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
8838         Fix a comment typo.
8839         (h8300_tiny_constant_address_p): Likewise.
8840
8841 2002-11-28  Michael Matz  <matz@suse.de>
8842
8843         * doc/passes.texi: Mention the other register allocator.
8844
8845 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
8846
8847         * config/h8300/h8300.md (6 new peephole2 patterns): New.
8848
8849 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
8850
8851         * config.gcc (x86_64-*-linux*) [tmake_file]: Remove i386/t-crtstuff.
8852         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
8853         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Define.
8854
8855 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
8856
8857         * config/h8300/h8300.c (h8300_and_costs): New.
8858         * config/h8300/h8300.h (RTX_COSTS): Use h8300_and_costs.
8859         * config/h8300/h8300-protos.h: Add a prototype for
8860         h8300_and_costs.
8861
8862 Wed Nov 27 20:34:13 CET 2002  Jan Hubicka  <jh@suse.cz>
8863
8864         * i386.c (x86_sse_partial_regs_for_cvtsd2ss): New.
8865         * i386.h (x86_sse_partial_regs_for_cvtsd2ss): Declare.
8866         (TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS): New macro.
8867         * i386.md (truncdfsf patterns and splitters): Use
8868         TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS
8869
8870 2002-11-27  Zack Weinberg  <zack@codesourcery.com>
8871
8872         * config/rs6000/rs6000.c (altivec_init_builtins): Make the
8873         pointer argument in the prototypes of the following builtins
8874         be (const TYPE *) rather than (TYPE *):
8875          + __builtin_altivec_ld_internal_4sf
8876          + __builtin_altivec_ld_internal_4si
8877          + __builtin_altivec_ld_internal_8hi
8878          + __builtin_altivec_ld_internal_16qi
8879          + __builtin_altivec_lvsl
8880          + __builtin_altivec_lvsr
8881          + __builtin_altivec_lvebx
8882          + __builtin_altivec_lvehx
8883          + __builtin_altivec_lvewx
8884          + __builtin_altivec_lvxl
8885          + __builtin_altivec_lvx
8886          + __builtin_altivec_dst
8887          + __builtin_altivec_dstt
8888          + __builtin_altivec_dstst
8889          + __builtin_altivec_dststt
8890
8891 2002-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8892
8893         * except.c (default_exception_section): Move variable into the
8894         scope where it is used.
8895
8896 2002-11-27  Krister Walfridsson  <cato@df.lth.se>
8897
8898         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Test for
8899         correct version.
8900
8901 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
8902
8903         * config/h8300/h8300.h (OK_FOR_U): Remove extra parentheses.
8904
8905 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
8906
8907         * config/h8300/h8300.c (h8300_shift_costs): New.
8908         * config/h8300/h8300.h (RTX_COSTS): Use h8300_shift_costs.
8909         * config/h8300/h8300-protos.h: Add a prototype for
8910         h8300_shift_costs.
8911
8912 2002-11-27  Jim Wilson  <wilson@redhat.com>
8913
8914         * config/rs6000/spe.md (spu_evsplatfi, spu_evsplati): Swap operands
8915         in output template.
8916
8917 2002-11-27  Casper S. Hornstrup  <chorns@users.sourceforge.net>
8918
8919         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Define.
8920         * config/i386/winnt.c (i386_pe_dllexport_name_p): Use
8921         DLL_IMPORT_EXPORT_PREFIX, not '@'.
8922         (i386_pe_dllimport_name_p): Likewise.
8923         (i386_pe_mark_dllexport): Likewise.
8924         (i386_pe_mark_dllimport): Likewise.
8925         (i386_pe_encode_section_info): Likewise.
8926         (i386_pe_strip_name_encoding): Likewise.
8927
8928 2002-11-27  Richard Henderson  <rth@redhat.com>
8929
8930         * mkmap-symver.awk (BEGIN): Set sawsymbol false.
8931         (nm && NF == 3): Set sawsymbol true.
8932         (END): Exit if no symbols seen.
8933         (output): Fix map syntax error if no globals for the version.
8934
8935 Wed Nov 27 14:45:46 CET 2002  Jan Hubicka  <jh@suse.cz>
8936
8937         * builtins.def (DEF_C99_BUILTIN): Fix.
8938
8939 2002-11-26  Kaz Kojima  <kkojima@gcc.gnu.org>
8940
8941         * config/sh/lib1funcs.asm (FUNC, ENDFUNC0, ENDFUNC): New macros.
8942         (all): Add .size and .type information.
8943
8944 Tue Nov 26 22:43:50 CET 2002  Jan Hubicka  <jh@suse.cz>
8945
8946         * i386.c (ix86_expand_int_movcc):  Do not emit lea for short mode on
8947         partial_reg_stall target.
8948
8949 Tue Nov 26 22:27:47 CET 2002  Jan Hubicka  <jh@suse.cz>
8950
8951         * i386.md (movhicc): Allow general operand.
8952         (movqicc): New expander.
8953         (movqicc_noc): New pattern.
8954         * i386.c (ix86_expand_carry_flag_compare): New function.
8955         (ix86_expand_int_movcc): Optimize harder using sbb; support more
8956         HImode conversion; support QImode conditional moves
8957
8958 Tue Nov 26 16:30:59 CET 2002  Jan Hubicka  <jh@suse.cz>
8959
8960         * i386.c (FAST_PROLOGUE_INSN_COUNT): Set to 20.
8961         (ix86_expand_prologue): Multiply the count by amount of registers to be
8962         pushed.
8963
8964 Tue Nov 26 15:55:27 CET 2002  Jan Hubicka  <jh@suse.cz>
8965
8966         * i386.c (override_options): Error about wrong -mcpu on x86-64
8967         compilation.
8968
8969 2002-11-26  NIIBE Yutaka  <gniibe@m17n.org>
8970
8971         * config/sh/linux.h (FUNCTION_PROFILER): Implemented.
8972
8973 Tue Nov 26 00:14:20 CET 2002  Jan Hubicka  <jh@suse.cz>
8974
8975         * i386-protos.h (x86_extended_QIreg_mentioned_p,
8976         x86_extended_reg_mentioned_p): Declare.
8977         * i386.c (extended_reg_mentioned_1): New static function.
8978         (x86_extended_QIreg_mentioned_p,
8979         x86_extended_reg_mentioned_p): New global functions.
8980         * i386.h (REX_SSE_REGNO_P): New macro.
8981         * i386.md (prefix_rex): New attribute.
8982         (length attribute): Add rex.
8983
8984 2002-11-26  Andrew Haley  <aph@redhat.com>
8985
8986         * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename
8987         from_Unwind_Find_Enclosing_Function.
8988         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise.
8989         * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise.
8990         * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from
8991         _Unwind_Find_Enclosing_Function, export @@GCC_3.3.
8992         * unwind.h (_Unwind_FindEnclosingFunction): Add.
8993
8994 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
8995
8996         * config/s390/s390.c (390_output_constant_pool): Set alignment
8997         before label in 64 bit mode, behind otherwise.
8998
8999 2002-11-26  Richard Henderson  <rth@redhat.com>
9000
9001         * c-common.c (handle_visibility_attribute): Accept "default".
9002         * tree.h (enum symbol_visibility): New.
9003         (decl_visibility): Declare.
9004         * target.h (gcc_target.visibility): Take visibility arg as integer.
9005         * varasm.c (default_assemble_visibility): Likewise.
9006         (decl_visibility): New.
9007         (maybe_assemble_visibility): Use it.
9008         * output.h (default_assemble_visibility): Update prototype.
9009         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
9010         visibility arg as integer.
9011         * doc/extend.texi: Document default visibility.
9012
9013 2002-11-26  Kazu Hirata  <kazu@cs.umass.edu>
9014
9015         * config/h8300/h8300.c: Adjust spacing.
9016         * config/h8300/h8300.h: Likewise.
9017
9018 2002-11-26  Richard Henderson  <rth@redhat.com>
9019
9020         * hooks.c (hook_bool_void_false, hook_void_tree_int,
9021         hook_void_FILEptr_constcharptr): Rename so that the return
9022         type is first.
9023         (hook_int_tree_tree_1, hook_void_tree, hook_void_tree_treeptr,
9024         hook_bool_tree_false): New.
9025         * hooks.h: Update.
9026         * langhooks-def.h: Update for renames.
9027         * target-def.h: Likewise.
9028         * tree.c (default_comp_type_attributes,
9029         default_set_default_type_attributes, default_insert_attributes,
9030         default_function_attribute_inlinable_p,
9031         default_ms_bitfield_layout_p): Remove.
9032         * tree.h: Update.
9033
9034 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9035
9036         * pa-protos.h (function_value): New prototype.
9037         * pa.c (function_value): Use a PARALLEL to return small aggregates on
9038         TARGET_64BIT.
9039         * pa.h (FUNCTION_VALUE): Use function_value.
9040         * pa.md (call_value_internal_symref, call_value_internal_reg_64bit,
9041         call_value_internal_reg, sibcall_value_internal_symref,
9042         sibcall_value_internal_symref_64bit): Remove =rf constraint on return
9043         value.
9044
9045 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9046
9047         * expr.c (gen_group_rtx, emit_group_move): New functions.
9048         * expr.h (gen_group_rtx, emit_group_move): Prototype.
9049         * function.c (expand_function_start): Use gen_group_rtx to create a
9050         PARALLEL rtx to hold the return value when the real return rtx is a
9051         PARALLEL.
9052         (expand_function_end): Use emit_group_move to move the return value
9053         from a PARALLEL to the real return registers.
9054         * rtl.h (REG_FUNCTION_VALUE_P): Allow function values to be returned
9055         in PARALLELs.
9056
9057 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
9058
9059         * config/t-libc-ok: Fix typo.
9060
9061 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9062
9063         * configure.in: Move AC_CANONICAL_SYSTEM and AC_ARG_PROGRAM back
9064         before AC_PROG_CC.
9065         * configure: Rebuilt.
9066
9067 2002-11-26  Nathan Sidwell  <nathan@codesourcery.com>
9068
9069         * c-decl.c: (start_struct): Commonize flag setting.
9070
9071 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
9072
9073         * config/rs6000/rs6000.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): New.
9074         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Use
9075         RS6000_CPU_CPP_ENDIAN_BUILTINS.
9076         * config/rs6000/netbsd.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): Redefine.
9077
9078 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
9079
9080         * config/s390/s390.md (literal_pool_64, literal_pool_31 ): New
9081         insns.
9082         * config/s390/s390.c (struct machine_function): Introduction of
9083         struct machine_function.
9084         (s390_output_symbolic_const): Use of cfun.
9085         (s390_optimize_prolog): Likewise.
9086         (s390_fixup_clobbered_return_reg): Likewise.
9087         (s390_frame_info): Likewise.
9088         (s390_emit_prologue, s390_emit_epilogue): Likewise.
9089         (s390_init_machine_status): New function.
9090         (override_options): call s390_init_machine_status.
9091         * config/s390/s390-protos.h (s390_output_constant_pool): Changed
9092         prototype.
9093
9094 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9095
9096         * varasm.c (output_constant_pool): For pool constants in mergeable
9097         section ensure each constant is padded to multiple of entity size.
9098
9099 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9100
9101         * varasm.c (default_exception_section): Move to...
9102         * except.c (default_exception_section): ... here. Make
9103         .gcc_except_table read-only if it is not expected to have any
9104         dynamic relocations and linker handles it.
9105         * dwarf2out.c (default_eh_frame_section): Make .eh_frame read-only
9106         if it is not expected to have any dynamic relocations and linker
9107         handles it.
9108         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Check what ld does
9109         when linking read-only and read-write sections together.
9110         * configure, config.in: Rebuilt.
9111         * crtstuff.c (EH_FRAME_SECTION_CONST): Define.
9112         (__EH_FRAME_BEGIN__, __FRAME_END__): Add it.
9113
9114 Mon Nov 25 18:32:37 CET 2002  Jan Hubicka  <jh@suse.cz>
9115
9116         * i386.md (pushsf_rex64): Fix typo.
9117
9118 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
9119
9120         * config/rs6000/spe.h (__ev_create_sfix32_fs): Change macro into
9121         new function.
9122         (__ev_create_ufix32_fs): Same.
9123         (__ev_get_sfix32_fs_internal): New.
9124         (__ev_get_sfix32_fs): Define to use function.
9125         (__ev_get_ufix32_fs_internal): New.
9126         (__ev_get_ufix32_fs): Define to use function.
9127         (__ev_get_upper_ufix32_fs): Call __ev_get_ufix32_fs.
9128         (__ev_get_lower_ufix32_fs): Same.
9129         (__ev_get_upper_sfix32_fs): Call __ev_get_sfix32_fs.
9130         (__ev_get_lower_sfix32_fs): Same.
9131         (__ev_set_sfix32_fs_internal): New.
9132         (__ev_set_ufix32_fs_internal): New.
9133         (__ev_set_sfix32_fs): Call __ev_set_sfix32_fs_internal.
9134         (__ev_set_ufix32_fs): Call __ev_set_ufix32_fs_internal.
9135         (__ev_set_upper_sfix32_fs): Call function.
9136         (__ev_set_lower_sfix32_fs): Same.
9137         (__ev_set_upper_ufix32_fs): Same.
9138         (__ev_set_lower_ufix32_fs): Same.
9139
9140 2002-11-25  Douglas B Rupp  <rupp@gnat.com>
9141
9142         * gcc.c (do_spec_1): Reset delete_this_arg to zero.
9143
9144 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9145
9146         * config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
9147         * config/interix.h (HANDLE_SYSV_PRAGMA): Likewise.
9148         * config/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9149         * config/lynx-ng.h (HANDLE_SYSV_PRAGMA): Likewise.
9150         * config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise.
9151         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
9152         * config/openbsd.h (HANDLE_SYSV_PRAGMA: Likewise.
9153         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise.
9154         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
9155         * config/cris/aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9156         * config/d30v/d30v.h (HANDLE_SYSV_PRAGMA): Likewise.
9157         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise.
9158         * config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise.
9159         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise.
9160         * config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise.
9161         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Likewise.
9162         * config/m88k/m88k.h (HANDLE_SYSV_PRAGMA): Likewise.
9163         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise.
9164         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise.
9165         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Likewise.
9166         * config/sparc/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9167         * config/sparc/vxsparc64.h (HANDLE_SYSV_PRAGMA): Likewise.
9168         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Likewise.
9169         * config/alpha/osf.h (HANDLE_SYSV_PRAGMA): Don't undef before
9170         defining.
9171         * config/i386/sco5.h (HANDLE_SYSV_PRAGMA): Likewise.
9172         * config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.
9173
9174 2002-11-25  Dave Pitts  <dpitts@cozx.com>
9175
9176         * gcc/fixinc/mkfixinc.sh: add i370-*-openedition to bypass fixinc list
9177
9178 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
9179
9180         * config/h8300/h8300.md (an anonymous pattern): New.
9181
9182 2002-11-25  Richard Henderson  <rth@redhat.com>
9183
9184         * alias.c (find_base_value): Use new_reg_base_value if it's live.
9185         (copying_arguments): Make boolean.
9186
9187 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9188
9189         * gcc.c (static_spec_functions): Add if-exists-else spec
9190         function.
9191         (if_exists_else_spec_function): New function.
9192         * doc/invoke.texi: Document the if-exists-else spec function.
9193
9194         * config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
9195         "%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".
9196
9197 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9198
9199         * config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with
9200         "netbsd.h netbsd-elf.h" in tm_file.  Set tmake_file to
9201         "${tmake_file} rs6000/t-netbsd".
9202         * config/rs6000/netbsd.h: Rewrite.
9203         * config/rs6000/t-netbsd: New file.
9204
9205 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
9206
9207         * config/h8300/h8300.md (an anonymous pattern): Relax the
9208         condition for the pattern.
9209
9210 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
9211
9212         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove evmwlssf,
9213         evmwlsmf, evmwlssfa, evmwlsmfa, evmwlssfaaw, evmwlsmfaaw,
9214         evmwlssfanw, evmwlsmfanw.
9215
9216         * config/rs6000/rs6000.c (bdesc_2arg): Same.
9217
9218         * config/rs6000/spe.md: Same for patterns.
9219
9220 2002-11-25  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
9221
9222         PR c/8639
9223         * fold-const.c (extract_muldiv): Don't propagate division unless
9224         both arguments are multiples of C.
9225
9226 2002-11-25  Andrew Haley  <aph@redhat.com>
9227
9228         * libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
9229         * config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
9230         * unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
9231         * unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.
9232
9233 Sun Nov 24 10:38:04 CET 2002  Jan Hubicka  <jh@suse.cz>
9234
9235         * i386.c (x86_use_ffreep): New global variable.
9236         * i386.h (x86_use_frfeep): Declare
9237         (TARGET_USE_FFREEP): New macro
9238         * i386.md  (movs?f*): Use freep when asked for.
9239         (push?f): Remove dead code.
9240
9241 2002-11-24  Kazu Hirata  <kazu@cs.umass.edu>
9242
9243         * config/h8300/h8300.c (h8300_init_once): Fix a typo in the
9244         target help message.
9245
9246 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9247
9248         * config.gcc (*-*-netbsd*1.[7-9]*, *-*-netbsd*[2-9]*): Set
9249         extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o
9250         crtbeginT.o".
9251         (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68k*-*-netbsd*)
9252         (ns32k-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Set extra_parts
9253         to "" for a.out configurations.
9254         * config/t-netbsd (CRTSTUFF_T_CFLAGS): Set to "-fPIC".
9255
9256 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9257
9258         * config/alpha/netbsd.h (CPP_SUBTARGET_SPEC): Just use
9259         NETBSD_CPP_SPEC directly.
9260         (SUBTARGET_EXTRA_SPECS): Remove netbsd_cpp_spec.  Add
9261         netbsd_endfile_spec.
9262         (ENDFILE_SPEC): Use %(netbsd_endfile_spec).
9263
9264 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9265
9266         * config/netbsd-elf.h (STARTFILE_SPEC): Rename to
9267         NETBSD_STARTFILE_SPEC.
9268         (STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
9269         (ENDFILE_SPEC): Likewise.
9270         * config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.
9271
9272 2002-11-24  Andreas Schwab  <schwab@suse.de>
9273
9274         * Makefile.in (install-driver): Remove versioned link before
9275         trying to create it.
9276
9277         * config/m68k/m68k.c: Fix typo in last change defining
9278         TARGET_ASM_CAN_OUTPUT_MI_THUNK.
9279
9280 2002-11-23  H.J. Lu <hjl@gnu.org>
9281
9282         * aclocal.m4: Include ../config/accross.m4.
9283         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
9284         (gcc_AC_C_COMPILE_ENDIAN): Removed.
9285         (gcc_AC_C_FLOAT_FORMAT): Check $ac_cv_c_bigendian
9286         instead of $ac_cv_c_compile_endian.
9287
9288         * configure.in: Replace gcc_AC_COMPILE_CHECK_SIZEOF with
9289         AC_COMPILE_CHECK_SIZEOF.
9290         Replace gcc_AC_C_COMPILE_ENDIAN with AC_C_BIGENDIAN_CROSS.
9291         * configure: Rebuild.
9292
9293 2002-11-23  Kazu Hirata  <kazu@cs.umass.edu>
9294
9295         * config/h8300/h8300.c (print_operand): Update the use of
9296         h8300_tiny_constant_address_p.
9297         (h8300_adjust_insn_length): Likewise.
9298         (h8300_tiny_constant_address_p): Check if the given rtx is a
9299         variable declared with __attribute__ ((tiny_data)).
9300
9301 2002-11-22  Dale Johannesen  <dalej@apple.com>
9302
9303         * toplev.c (rest_of_compilation):  Fix comments.
9304
9305 2002-11-22  Geoffrey Keating  <geoffk@apple.com>
9306
9307         * aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not
9308         allow mmap from /dev/zero.  Don't make decisions for the host
9309         based on presence or absence of /dev/zero on the build machine.
9310         (ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON.
9311         (AC_FUNC_MMAP_FILE): Darwin does have mmap of a file.
9312         * configure: Regenerate.
9313
9314 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
9315
9316         * gcc.c (make_relative_prefix, split_directories)
9317         (free_split_directories): Removed.
9318
9319 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
9320
9321         * configure.in: Set insn=nop for DWARF-2 tests on ARM.
9322         * configure: Regenerated.
9323
9324 2002-11-22  Kazu Hirata  <kazu@cs.umass.edu>
9325
9326         * config/h8300/h8300.c (compute_a_shift_length): Fix the insn
9327         length computation when xor.l is output.
9328
9329 2002-11-21  Douglas B Rupp  <rupp@gnat.com>
9330
9331         * alpha.md (movstrdi, clrstrdi): New VMS patterns.
9332         (call_vms_1, call_value_vms_1): Cleanup syntax.
9333
9334 Thu Nov 21 19:20:27 CET 2002  Jan Hubicka  <jh@suse.cz>
9335
9336         * athlon.md (define_atuomaton): Add athlon_load.
9337         (athlon-double): New reservation.
9338         (athlon-ieu0): New CPU unit.
9339         (athlon-load?): Use athlon_load automaton.
9340         (*_k8 reservations): New.
9341         (other insn revervations): Activate for K8.
9342
9343 Thu Nov 21 15:07:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9344
9345         * cfgrtl.c (verify_flow_info):  Accept EDGE_CAN_FALLTHRU flag.
9346
9347 2002-11-21  Jim Wilson  <wilson@redhat.com>
9348
9349         * config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
9350         vectors to SI.
9351
9352 2002-11-21  Bob Wilson  <bob.wilson@acm.org>
9353
9354         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
9355         * config/xtensa/xtensa.c (struct machine_function): Add
9356         incoming_a7_copied flag.
9357         (xtensa_copy_incoming_a7): Define.
9358         (xtensa_emit_move_sequence): Use xtensa_copy_incoming_a7.
9359         * config/xtensa/xtensa.md (movdi, movsf, movdf): Ditto.
9360
9361 Thu Nov 21 23:52:04 CET 2002  Jan Hubicka  <jH@suse.cz>
9362
9363         * i386-protos.h (x86_64_sign_extended_value): Fix prototype.
9364         * i386.c (x86_64_general_operand, x86_64_szext_general_operand,
9365         x86_64_nonmemory_operand, x86_64_movabs_operand,
9366         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
9367         ix86_expand_int_movcc): Update call of x86_64_sign_extended_value.
9368         (local_symbolic_operand): Do not care the 64bit limits.
9369         (x86_64_sign_extended_value): Remove allow_rip support.
9370         (legitimate_pic_address_disp_p): Handle all cases allowed
9371         with RIP addressing.
9372         (legitimate_address_p): Use legitimate_pic_address_disp_p for PIC.
9373         (legitimize_pic_address): Reorganize.
9374         * i386.h (EXTRA_CONSTRAINT): Update call of x86_64_sign_extended_value.
9375
9376 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
9377
9378         * config.gcc (arm*-*-netbsdelf*): Enable configuration.
9379         * config/arm/netbsd-elf.h: New file.
9380
9381 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
9382
9383         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
9384         subtarget_asm_float_spec.
9385         (SUBTARGET_ASM_FLOAT_SPEC): Define, moving the
9386         defaults from...
9387         (ASM_SPEC): ...here.  Use subtarget_asm_float_spec.
9388
9389 2002-11-21  Nick Clifton  <nickc@redhat.com>
9390
9391         * config/fr30/fr30.md (movsf_constant_store): Move code to
9392         detect 0.0 into fr30.c.
9393         * config/fr30/fr30-protos.h (fr30_const_double_is_zero):
9394         Prototype.
9395         * config/fr30/fr30.c (fr30_const_double_is_zero): New
9396         function.  Return true if the rtx is 0.0.
9397
9398 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
9399
9400         * config/arm/elf.h (ASM_SPEC, LINK_SPEC): Pass -EL
9401         if -mlittle-endian is specified.
9402
9403 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
9404
9405         PR optimization/2903
9406         * arm.md (anddi_notzesidi_di): Operand 2 is inverted not operand 1.
9407         (anddi_notsesidi_di): Likewise.
9408
9409 2002-11-21  Kazu Hirata  <kazu@cs.umass.edu>
9410
9411         * config/h8300/h8300.c (print_operand): Use
9412         h8300_eightbit_constant_address_p and
9413         h8300_tiny_constant_address_p.
9414         (h8300_adjust_insn_length): Likewise.
9415         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Remove.
9416         (TINY_CONSTANT_ADDRESS_P): Likewise.
9417         (OK_FOR_U): Use eightbit_constant_address_p.
9418
9419 2002-11-21  Ulrich Weigand  <uweigand@de.ibm.com>
9420
9421         * config/s390/libgcc-libc.ver: Add multilib support.
9422         * config/s390/linux.h (MULTILIB_DEFAULT): Define.
9423         * config/s390/t-linux64 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9424         MULTILIB_OSDIRNAMES, LIBGCC, INSTALL_LIBGCC,
9425         EXTRA_MULTILIB_PARTS): Define.
9426
9427 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
9428
9429         * arm.c (arm_get_frame_size): A leaf function does not need its
9430         stack padding to an aligned boundary if it has no frame.
9431         (thumb_get_frame_size): Likewise.
9432
9433 Wed Nov 20 22:25:53 CET 2002  Jan Hubicka  <jh@suse.cz>
9434
9435         * x86-64.h (MCOUNT_NAME): Fix typo in my previous patch.
9436         (override_options): Likewise.
9437
9438 Wed Nov 20 19:07:17 CET 2002  Jan Hubicka  <jh@suse.cz>
9439
9440         * config.gcc: Add k8 target alias support
9441         * i386.c (_cost): Declare costs for various variants of divides and
9442         multiplies.
9443         (k8_cost): New.
9444         (m_K8, m_ATHLON_K8): New macros.
9445         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
9446         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_fiop,
9447         x86_promote_QImode, x86_sub_esp_?, x86_add_esp_?,
9448         x86_integer_DFmode_moves, x86_partial_reg_dependency,
9449         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
9450         x86_prologue_using_move, x86_epilogue_using_move,
9451         x86_arch_always_fancy_math_387, x86_sse_partial_regs,
9452         x86_sse_typeless_stores): Set for K8
9453         (override_options): Add k8 support; fix athlon alignment;
9454         complain about non-x86-64 capable CPU being used in x86-64 compilation.
9455         (ix86_issue_rate): Set for K8.
9456         (ix86_adjust_cost, ia32_use_dfa_pipeline_interface,
9457         x86_machine_dependent_reorg): Handle K8 like
9458         * i386.h
9459         (x86_costs):  Change mult_init and divide into array.
9460         (TARGET_K8, TARGET_ATHLON): New macros.
9461         (MODE_INDEX): New macro.
9462         (RTX_COST): Use new costs.
9463         (TARGET_CPU_CPP_BUILTINS):  Define __k8__ and __tune_k8__.
9464         (TARGET_CPU_DEFAULT_NAMES): Add k8
9465         (TARGET_CPU_DEFAULT_k8): New constant
9466         (enum processor_type): Add PROCESSOR_K8.
9467         * i386.md (cpu attribute): Add k8.
9468
9469         * invoke.texi: Document -march=k8.
9470
9471         * i386.md (type attribute): Add leave
9472         (mode attribute): Remove unknownfp.
9473         (length_immediate, modrm, memory attributes): Handle leave correctly.
9474         (fp comparison patterns): Determine FP mode.
9475         (leave, leave_rex64): Remove special cases.
9476         * ppro.md (ppro_uops, ppro_p2): Add leave
9477         * pentiun.md (pent_pop): Handle leave too.
9478         * k6.md (k6_load): Handle leave.
9479         * athlon.md (athlon_leave, athlon_pop): Fix.
9480         (athlon_decode): Handle leave.
9481
9482 2002-11-20  Steve Ellcey  <sje@cup.hp.com>
9483
9484         * emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
9485         to component type using GET_MODE_INNER.
9486         * expr.c (emit_move_insn_1): Ditto.
9487         * optabs.c (expand_binop): Ditto.
9488         (expand_unop): Ditto.
9489         (expand_complex_abs): Ditto.
9490
9491 2002-11-20  Douglas B Rupp  <rupp@gnat.com>
9492
9493         * hwint.h (HAVE___INT64): Fix typo (was HAVE__INT64).
9494
9495 2002-11-20  DJ Delorie  <dj@redhat.com>
9496
9497         * config/stormy16/stormy16.c (s16builtins,
9498         xstormy16_init_builtins, xstormy16_expand_builtin): New.
9499         * config/stormy16/stormy16.md (divmodhi4, sdivlh, udivlh): New.
9500
9501 2002-11-20  Hans-Peter Nilsson  <hp@bitrange.com>
9502
9503         * Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
9504         (DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
9505         (executing gencheck, genconfigs, genconditions, genflags,
9506         gencodes, genconstants, genemit, genrecog, genopinit, genextract,
9507         genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
9508         gengtype, genprotos): Prepend $(RUN_GEN).
9509         * configure.in: Move host compiler tests before --enable-checking
9510         tests.
9511         (--enable-checking=valgrind): New.
9512         * config.in, configure: Regenerate.
9513         * cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
9514         Define as empty.
9515         (read_include_file): When doing the mmap+1 trick,
9516         valgrind-annotate the byte after the mmap:ed area as readable.
9517         (purge_cache): Remove above annotation.
9518         * gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
9519         VALGRIND_PATH -q to each command.
9520
9521         * ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
9522         Define as empty.
9523         (ggc_realloc): Update valgrind annotations.
9524         * ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
9525         Define as empty.
9526         (alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to
9527         valgrind-annotate memory.
9528
9529 2002-11-20  Ulrich Weigand  <uweigand@de.ibm.com>
9530
9531         * recog.c (constrain_operands): Prefer exact match over reloadable
9532         EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.
9533
9534         * reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
9535         operands in Pmode.
9536
9537 2002-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
9538
9539         PR c/8518
9540         * c-decl.c (duplicate_decls): Outline the second definition
9541         of an extern inline function in all cases.
9542
9543 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
9544
9545         * stor-layout.c (place_field): Update rli->offset as well as
9546         rli->bitpos.
9547
9548 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
9549
9550         * sched-deps.c (sched_analyze): Check HARD_REGNO_CALL_PART_CLOBBERED.
9551
9552 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
9553
9554         * config/sh/sh.md (udivsi3): Don't put udivsi3_i4_media instructions
9555         into a libcall block.
9556         (divsi3): Likewise divsi3_i4_media.
9557
9558 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
9559
9560         * global.c (find_reg): Check HARD_REGNO_NREGS before kicking
9561         out another register.
9562
9563 2002-11-20  Jakub Jelinek  <jakub@redhat.com>
9564
9565         * combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
9566         (not just mask) are set in C.
9567
9568 2002-11-19  Steven Bosscher <steven.bosscher@usafa.af.mil>
9569
9570         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %{<mgp32} to %<mgp32.
9571
9572 2002-11-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9573
9574         * profile.c (index_counts_file): Fix obvious mistake.
9575
9576 2002-11-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9577
9578         * Makefile.in (profile.o): Add hashtab.h dependency.
9579         * gcov-io.h (GCOV_SUMMARY_LENGTH): New.
9580         * profile.c: Include hashtab.h.
9581         (htab_counts_index_hash, htab_counts_index_eq, htab_counts_index_del,
9582         cleanup_counts_index, index_counts_file, struct section_reference,
9583         struct da_index_entry, counts_file_name, counts_file_index): New.
9584         (get_exec_counts, init_branch_prob): Modified.
9585
9586 2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9587
9588         * config.gcc (sh*-*-linux*): Add t-slibgcc-elf-ver and t-linux
9589         to tmake_file. Remove setting gas and gnu_ld here.
9590         * config/sh/libgcc-glibc.ver: New file.
9591         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9592         (SHLIB_MAPFILES): New.
9593         * config/sh/linux.h (MD_EXEC_PREFIX): Undefine.
9594         (MD_STARTFILE_PREFIX): Likewise.
9595         (HANDLE_PRAGMA_PACK_PACK_PUSH_POP): Define.
9596         (DWARF2_UNWIND_INFO): Redefine.
9597         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9598         (LINK_EH_SPEC): Redefine.
9599         (MD_FALLBACK_FRAME_STATE_FOR): Define except for SH-media.
9600         (SH_FALLBACK_FRAME_FLOAT_STATE): Define.
9601         (SH_DWARF_FRAME_GP0, SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_XD0,
9602         SH_DWARF_FRAME_BT0, SH_DWARF_FRAME_PR, SH_DWARF_FRAME_PR_MEDIA,
9603         SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_MACL,
9604         SH_DWARF_FRAME_PC, SH_DWARF_FRAME_SR, SH_DWARF_FRAME_FPUL,
9605         SH_DWARF_FRAME_FPSCR): Likewise.
9606         * config/sh/sh-protos.h (sh_set_return_address): Declare.
9607         * config/sh/sh.c (calc_live_regs): Count EH_RETURN_DATA_REGNO
9608         registers if the current function calls EH return.
9609         (sh_expand_epilogue): Handle EH stack adjustments.
9610         (sh_set_return_address): New function.
9611         * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
9612         Don't abort even if the number is mapped to -1.
9613         (EH_RETURN_DATA_REGNO): Define.
9614         (EH_RETURN_STACKADJ_RTX): Define.
9615         * config/sh/sh.md (UNSPEC_EH_RETURN): New.
9616         (eh_return): New pattern.
9617         (eh_set_ra_di, eh_set_ra_si): Likewise.
9618         Add splitter to perform EH return after reload.
9619
9620 Tue Nov 19 12:52:07 2002  J"orn Rennecke <joern.rennecke@superh.com>
9621
9622         * stor-layout.c (excess_unit_span): New function.
9623         (place_field): Use it.
9624
9625 2002-11-19  Andreas Schwab  <schwab@suse.de>
9626
9627         * unwind.h (_Unwind_GetTextRelBase): Revert last change, this is
9628         not valid in C++.
9629
9630 2002-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
9631
9632         * configure.in, Makefile.in: Correct BUILD/HOST confusion.
9633         * configure: Regenerate.
9634
9635 Tue Nov 19 00:11:44 CET 2002  Jan Hubicka  <jh@suse.cz>
9636
9637         * convert.c (strip_float_extensions): New function.
9638         (convert_to_real): Optimize some cases.
9639
9640 2002-11-19  Andreas Jaeger  <aj@suse.de>
9641
9642         * loop.c (record_giv): Initialize not_replaceable.
9643         (check_final_value): Likewise.
9644
9645 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
9646
9647         * config/h8300/h8300.c (h8300_init_once): Replace 1 with
9648         MASK_H8300S.
9649
9650 2002-11-19  Vijay L. Khuspe  <vijayk1@kpit.com>
9651
9652         * config/h8300/h8300.c (h8300_init_once): Allow -mn switch
9653         only if -mh or -ms present.
9654         (h8300_eightbit_constant_address_p): Support the normal mode.
9655         (h8300_tiny_constant_address_p): Likewise.
9656         * config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
9657         (POINTER_SIZE): Add 16 bit pointer for the normal mode.
9658         (Pmode): Evaluate to HImode for the normal mode.
9659         (SIZE_TYPE): Evaluate to unsigned int for normal mode.
9660         (PTRDIFF_TYPE): Evaluate to int for the normal mode.
9661         (ASM_WORD_OP): Evaluate to word for the normal mode.
9662         * config/h8300/h8300.md (tablejump_normal_mode): New.
9663         (indirect_jump_normal_mode): New.
9664         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
9665         directory.
9666         (MULTILIB_DIRNAMES): Create target dependent directory
9667         'normal'.
9668         (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
9669         * doc/invoke.texi (gccoptlist): Describe the new switch -mn.
9670
9671 Tue Nov 19 23:50:56 CET 2002  Jan Hubicka  <jh@suse.cz>
9672
9673         * i386.md (length_immediate): Do not refer to insn address.
9674         (jcc*, jmp patterns):  Compute length explicitly.
9675
9676 2002-11-19 Eric Botcazou <ebotcazou@libertysurf.fr>
9677
9678         PR c/8588
9679         * optabs.c (expand_binop): Convert CONST_INTs in shift
9680         operations too.
9681
9682 2002-11-19  Roger Sayle  <roger@eyesopen.com>
9683
9684         * gcse.c (gcse_emit_move_after): Correct typo in REG_EQUAL note.
9685
9686 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
9687
9688         * config/h8300/h8300.md (an anonymous pattern): Relax the
9689         condition to accept the same operands and/or subregs.
9690
9691 2002-11-19  Daniel Jacobowitz  <drow@mvista.com>
9692
9693         * config/sh/sh.c (gen_shl_and): Revert previous patch.
9694         * config/sh/sh.md (ashrdi3+1, ashrdi3+2): Predicate on
9695         reload_completed.
9696
9697 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
9698
9699         * config/h8300/h8300.c (print_operand): Update the use of
9700         EIGHTBIT_CONSTANT_ADDRESS_P.
9701         (h8300_adjust_insn_length): Likewise.
9702         (h8300_eightbit_constant_address_p): Check if the given rtx is
9703         a variable with __attribute__((eightbit_data)).
9704         * config/h8300/h8300.h (OK_FOR_U): Update the use of
9705         EIGHTBIT_CONSTANT_ADDRESS_P.
9706
9707 2002-11-19  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9708
9709         * doc/contrib.texi (Contributors): Add self as second contact in
9710         addition to Jeff Law.
9711
9712 2002-11-19  Andreas Jaeger  <aj@suse.de>
9713
9714         * tree-inline.c: Move prototpyes of find_alloca_call_1 and
9715         find_alloca_call to right place.
9716
9717 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
9718
9719         * cppfiles.c: Fix formatting.
9720
9721 2002-11-19  Jason Thorpe  <thorpej@wasabisystems.com>
9722
9723         * gcc.c (The Specs Language): Document spec functions.
9724         (static_spec_functions, lookup_spec_function)
9725         (eval_spec_function, handle_spec_function)
9726         (if_exists_spec_function, alloc_args): New.
9727         (execute): Abort if processing_spec_function is true.
9728         (do_spec_1): Hand off spec to handle_spec_function if %:
9729         is encountered.  If processing_spec_function is true,
9730         end any pending argument when the end of the string is reached.
9731         (main): Use alloc_args to allocate the initial argument vector.
9732         * gcc.h (struct spec_function): New.
9733         (lang_specific_spec_functions): New extern.
9734
9735         * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
9736         (ENDFILE_SPEC): Add if-exists(crtn%O%s).
9737         * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
9738
9739         * doc/invoke.texi: Document spec functions.
9740
9741         * cppspec.c (lang_specific_spec_functions): New.
9742         * gccspec.c: Likewise.
9743
9744 2002-11-18  Steve Ellcey  <sje@cup.hp.com>
9745
9746         * config/ia64/hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
9747         (FIXUNS_TRUNCTFDI2_LIBCALL): New.
9748         (fixunstfsi_libfunc): Change.
9749         (fixunstfdi_libfunc): Change.
9750         (sdiv_optab): Don't zero out SImode handler.
9751         (udiv_optab): Don't zero out SImode handler.
9752         (smod_optab): Don't zero out SImode handler.
9753         (umod_optab): Don't zero out SImode handler.
9754
9755 2002-11-18  Neil Booth  <neil@daikokuya.co.uk>
9756
9757         PR preprocessor/8524
9758         * cpplib.c (run_directive): Remove previous kludge to _Pragma.
9759         Add a new one in its place, which hopefully works.
9760         (skip_rest_of_line): Change test for bottom-of-context-stack.
9761
9762 Mon Nov 18 21:29:03 CET 2002  Jan Hubicka  <jh@suse.cz>
9763
9764         * i386.md (addqi_1_slp): Fix output template.
9765         (subqi_1_slp): Fix type.
9766
9767 Sun Nov 17 00:01:28 CET 2002  Jan Hubicka  <jh@suse.cz>
9768
9769         * calls.c (alloca_call_p): New global function.
9770         * tree.h (alloca_call_p): New.
9771         * tree-inline.c (inlinable_function_p):  Do not inline when
9772         function calls alloca.
9773         (find_alloca_call, find_alloca_call_1): New functions.
9774
9775 2002-11-18  Kazu Hirata  <kazu@cs.umass.edu>
9776
9777         * config/h8300/h8300.md (*andorqi3): Use bor between bld and
9778         bst.  Update the insn length.
9779         (*andorhi3): Likewise.
9780         (*andorsi3): Likewise.
9781
9782 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
9783
9784         * config/sh/sh-protos.h (sh_mark_label): Declare.
9785         * config/sh/sh.c (sh_mark_label): New function, taken from
9786         movdi_const, but fixing the case when the address has an addend.
9787         * config/sh/sh.md (movdi_const, movdi_const_32bit): Use it.
9788
9789 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
9790
9791         * config/sh/sh.c (pool_node): New field: part_of_sequence_p.
9792         (add_constant): Set it.
9793         (dump_table): Don't reorder a constant if part_of_sequence_p.
9794         (machine_dependent_reorg): Assume that float constants will
9795         stay in their original order if used as a sequence.
9796
9797 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
9798
9799         * config/sh/sh.c (calc_live_regs): Update check for PIC liveness
9800         in compact code.
9801
9802 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
9803
9804         * config/sh/sh.md (initialize_trampoline): Do not force the
9805         trampoline address into R0_REGS here.
9806
9807 Sun Nov 17 14:01:09 CET 2002  Jan Hubicka  <jh@suse.cz>
9808
9809         * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
9810         absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
9811         (neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
9812         generate unnecesary subregs.
9813
9814 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
9815
9816         * df.c: Fix formatting.
9817
9818 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
9819
9820         * config/h8300/h8300.md (two anonymous patterns): Fix insn
9821         lengths.
9822
9823 2002-11-17  Daniel Jacobowitz  <drow@mvista.com>
9824
9825         * sh.c (gen_shl_and): Don't create a zero_extend if the operand
9826         is not an arith_reg_operand.
9827
9828 2002-11-17  Graham Stott  <graham.stott@btinternet.com>
9829
9830         * real.c (real_to_decimal): Fix buffer overrun when buffer size
9831         is smaller than representation.
9832
9833 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
9834
9835         * builtins.c: Fix formatting.
9836
9837 Sat Nov 16 16:49:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9838
9839         * i386.md (truncdfsf2_1_sse, truncdfsf2_1_sse_nooverlap, truncdfsf2_2,
9840         floats?dff2_i387):
9841         Work around regclass stupidity.
9842         (truncdfsf_2_1_sse splitter):  Accept !TARGET_PARTIAL_SSE_REGS
9843
9844 Sat Nov 16 02:17:48 CET 2002  Jan Hubicka  <jh@suse.cz>
9845
9846         * i386.md (fop_df_6): New pattern.
9847         (fop_xf_4, fop_xf_5): Handle both SF and DFmode extensions.
9848         (fop_xf_6): Rewrite
9849         (fop_xf_7): Delete.
9850         (fop_tf_4, fop_tf_5): Handle both SF and DFmode extensions.
9851         (fop_tf_6): Rewrite
9852         (fop_tf_7): Delete.
9853
9854 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
9855
9856         * config/h8300/h8300.md (two anonymous patterns): Fix typos.
9857
9858 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
9859
9860         * config/h8300/h8300.md: Fix formatting.
9861
9862 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
9863
9864         * config/h8300/h8300.md: Replace spaces with tabs.
9865         * config/h8300/t-h8300: Remove a trailing empty line.
9866
9867 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
9868
9869         * tlink.c: Fix formatting.
9870
9871 2002-11-16  David Edelsohn  <edelsohn@gnu.org>
9872
9873         PR 8362
9874         * config/rs6000/rs6000.c (rs6000_outout_load_multiple): New function.
9875         * config/rs6000/rs6000.md (movti_string): Remove output modifier
9876         when scratch register never needed.
9877         (ldmsi[3-8]): New patterns.
9878
9879 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
9880
9881         * hard-reg-set.h: Follow spelling conventions.
9882         * real.c: Likewise.
9883         * target.h: Likewise.
9884
9885 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
9886
9887         * config/i386/x86-64.h (MCOUNT_NAME): Change into string literal.
9888
9889 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
9890
9891         * optabs.c: Fix formatting.
9892
9893 Sat Nov 16 02:06:02 CET 2002  Jan Hubicka  <jh@suse.cz>
9894
9895         * athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1
9896         * i386.md (attribute type): Add type shift1 and rotate1.
9897         (*_slp): Rewrite to have just two operands to avoid reload problems.
9898
9899 2002-11-15  Kazu Hirata  <kazu@cs.umass.edu>
9900
9901         * config/h8300/h8300.md (4 anonymous patterns): New.
9902
9903 2002-11-15  Geoffrey Keating  <geoffk@apple.com>
9904
9905         * params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem.
9906         * doc/invoke.texi: Correct description of what needs to be done to
9907         force collection at every ggc_collect call.
9908
9909 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
9910
9911         * config/s390/s390.c (optimization_options): Set
9912         flag_asynchronous_unwind_tables to 1 by default.
9913
9914 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
9915
9916         * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9917
9918 Fri Nov 15 14:54:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9919
9920         * i386-protos.h (x86_function_profiler): New function
9921         * i386.h (MCOUNT_NAME): New.
9922         (PROFILE_COUNT_REGISTER): New.
9923         (FUNCTION_PROFILER): Move offline to ...
9924         * i386.c (x86_function_profiler) ... here; fix 64bit support
9925         * beos-elf.h (FUNCTION_PROFILER): Kill.
9926         (MCOUNT_NAME): New.
9927         * freebsd-aout.h (FUNCTION_PROFILER): Kill.
9928         (MCOUNT_NAME): New.
9929         (PROFILE_COUNT_REGISTER): New.
9930         * linux.h (FUNCTION_PROFILER): Kill.
9931         (MCOUNT_NAME): New.
9932         * x86-64.h (FUNCTION_PROFILER): Kill.
9933         (MCOUNT_NAME): New.
9934         * freebsd.h (FUNCTION_PROFILER): Kill.
9935         (MCOUNT_NAME): New.
9936
9937 2002-11-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9938
9939         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG,
9940         FUNCTION_ARG_PASS_BY_REFERENCE): Define.
9941         * config/arm/arm.c (arm_va_arg,
9942         arm_function_arg_pass_by_reference): New.
9943         * config/arm/arm-protos.h: Add prototypes.
9944
9945 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
9946
9947         * gthr-single.h: Fix formatting.
9948
9949 2002-11-14  Zack Weinberg  <zack@codesourcery.com>
9950
9951         * tree.c (tree_vec_elt_check_failed): New function.
9952         * tree.h (TREE_VEC_ELT_CHECK): New checking macro.
9953         (TREE_VEC_ELT): Use it.
9954
9955         * tree-inline.c (optimize_inline_calls): Don't copy a
9956         zero-length vector.
9957
9958 2002-11-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9959
9960         * diagnostic.c (sorry): Don't repeat "sorry, unimplemented" text.
9961
9962 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
9963
9964         * varasm.c (output_addressed_constants) [MINUS_EXPR]: Clear reloc if
9965         both operands contain local relocations.
9966         (categorize_decl_for_section): Don't use mergeable sections if
9967         initializer has any relocations.
9968
9969 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
9970
9971         * gthr-vxworks.h: Fix formatting.
9972
9973 2002-11-13  Janis Johnson  <janis187@us.ibm.com>
9974
9975         * doc/install.texi (Testing): Document extra Java testing.
9976         * doc/sourcebuild.texi (Test Suites): Document libgcj testing.
9977
9978 2002-11-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9979
9980         * pa64-hpux.h (LINK_SPEC): Move "+Accept TypeMismatch" switch to the
9981         beginning of the spec.
9982         (LDD_SUFFIX, PARSE_LDD_OUTPUT): Delete.
9983         (LD_INIT_SWITCH, LD_FINI_SWITCH): Define but don't enable.  Add comment
9984         regarding problems with global constructors when using GNU ld.
9985
9986 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
9987
9988         * gthr-solaris.h: Fix formatting.
9989
9990 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
9991
9992         * gthr-posix.h: Fix formatting.
9993
9994 2002-11-12  Devang Patel <dpatel@apple.com>
9995         * gcc.c (display_help): Two new options -Xpreprocessor and -Xassembler.
9996         (process_command): Same.
9997         * doc/invoke.texi: Info about these two new options.
9998
9999 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10000
10001         * config/h8300/h8300.md (*andorsi3): New.
10002
10003 2002-11-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10004
10005         * doc/install.texi (powerpc-*-linux-gnu*): Update binutils requirement.
10006
10007 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10008
10009         * config/h8300/h8300.c (tiny_constant_address_p): Parenthesize
10010         expressions appropriately.
10011
10012 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10013
10014         * gthr-win32.h: Fix formatting.
10015
10016 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10017
10018         * config/h8300/h8300.c (single_one_operand): Correctly compute
10019         mask when mode is SImode.
10020         (single_zero_operand): Likewise.
10021         * config/h8300/h8300.md (two new anonymous insns): New.
10022
10023 2002-11-12  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10024
10025         * doc/contrib.texi (Contributors): Use GCJ instead of gcj to refer
10026         to that entire project.
10027
10028 2002-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10029
10030         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Restore old
10031         directories.
10032
10033 2002-11-11  Zack Weinberg  <zack@codesourcery.com>
10034
10035         * params.def (ggc-min-expand, ggc-min-heapsize): New parameters.
10036         * doc/invoke.texi: Document them.
10037
10038         * ggc-page.c: Include params.h.  Remove definitions of
10039         GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED.  Replace
10040         GGC_POISON with ENABLE_GC_CHECKING in ifdefs, delete #define.
10041         (init_gcc): Don't set G.allocated_last_gc here.
10042         (ggc_collect): Use PARAM_VALUE (GGC_MIN_HEAPSIZE) and
10043         PARAM_VALUE (GGC_MIN_EXPAND) to decide whether or not to
10044         perform collection.
10045         * ggc-simple.c: Similarly.
10046         * Makefile.in (ggc-common.o, ggc-simple.o): Add $(PARAMS_H) to
10047         dependencies.
10048
10049 2002-11-11  Kazu Hirata  <kazu@cs.umass.edu>
10050
10051         * gthr-dce.h: Fix formatting.
10052
10053 2002-11-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10054
10055         PR c/8467
10056         * stmt.c (tail_recursion_args): Handle DECL_MODE differing from the
10057         mode of DECL_RTL case.
10058
10059 2002-11-11  Janis Johnson  <janis187@us.ibm.com>
10060
10061         * doc/contrib.texi: Merge in the list from the libstdc++ web pages.
10062
10063 Mon Nov 11 12:06:08 CET 2002  Jan Hubicka  <jh@suse.cz>
10064
10065         * i386.c (construct_container): Fix handling of SSE_CLASS.
10066
10067 2002-11-10  Joel Sherrill <joel@gcc.gnu.org>
10068
10069         * config/m68k/t-crtstuff (crti.o): Use this...
10070         ($(T)crti.o): ... instead.
10071         (crtn.o): Use this...
10072         ($(T)crtn.o): ... instead.
10073
10074 2002-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10075
10076         PR c/8439
10077         * recog.c (validate_replace_rtx_1) [PLUS]: Simplify only
10078         if there is something new to be simplified.
10079
10080 2002-11-10  H.J. Lu <hjl@gnu.org>
10081
10082         * calls.c (PUSH_ARGS_REVERSED): Define only if not defined.
10083         * expr.c (PUSH_ARGS_REVERSED): Likewise.
10084
10085         * config/i386/i386.h (PUSH_ARGS_REVERSED): Set to 1.
10086
10087 2002-11-10  Zack Weinberg  <zack@codesourcery.com>
10088
10089         * config/rs6000/sysv4.h: Define NO_IMPLICIT_EXTERN_C here...
10090         * config/rs6000/linux.h, config/rs6000/linux64.h,
10091         config/rs6000/windiss.h: ... not here.
10092
10093 2002-11-10  Jason Thorpe  <thorpej@wasabisystems.com>
10094
10095         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define
10096         __ABICALLS__ if TARGET_ABICALLS.
10097
10098 Sun Nov 10 18:49:21 CET 2002  Jan Hubicka  <jh@suse.cz>
10099
10100         * i386.h (MIN_UNITS_PER_WORD): Define to 8 for x86-64 libgcc.
10101
10102 2002-11-10  Joseph S. Myers  <jsm@polyomino.org.uk>
10103
10104         * c-decl.c (grokdeclarator): Make error for duplicate type
10105         qualifiers into a pedwarn, disabled for C99.
10106
10107 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
10108
10109         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same
10110         as FUNCTION_ARG_PASS_BY_REFERENCE.
10111
10112 2002-11-09  Zack Weinberg  <zack@codesourcery.com>
10113
10114         * doc/install.texi: Add *-*-vxworks* specific installation
10115         instructions.
10116
10117         * config/vxlib.c: Rewrite using generation numbers to identify
10118         valid TSD keys.
10119
10120 Sat Nov  9 00:10:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10121
10122         * i386.c (x86_machine_dependent_reorg): Fix even more side cases.
10123
10124 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10125
10126         * pa.h (STARTING_FRAME_OFFSET): Change offset for TARGET_64BIT to 16.
10127
10128         * config.gcc (hppa*64*-*-linux*): Shorten lines in tm_file define.
10129         (hppa*64*-*-hpux11*): Likewise.  Use elfos.h with gas.
10130         * pa.c (output_millicode_call): Use symbol difference rather than
10131         $PIC_pcrel$0 when using HP assembler.
10132         * pa64-hpux.h (TARGET_GAS): Define to 1 or 0 depending on whether or
10133         not elfos.h (i.e., gas) is being used.
10134         (ASM_FILE_START, STRING_ASM_OP, TEXT_SECTION_ASM_OP,
10135         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_COMMON,
10136         ASM_OUTPUT_ALIGNED_LOCAL, GLOBAL_ASM_OP, ASM_DECLARE_FUNCTION_NAME,
10137         ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL,
10138         ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): Define when
10139         using elfos.h.
10140         (TARGET_ASM_GLOBALIZE_LABEL): Undefine when using elfos.h.
10141         (DWARF2_ASM_LINE_DEBUG_INFO): Delete.
10142         (ASM_FILE_START): Add standard .SPACE and .SUBSPA defines when not
10143         using elfos.h.
10144         (TEXT_SECTION_ASM_OP, READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
10145         BSS_SECTION_ASM_OP): New HP style defines when not using elfos.h.
10146         (TARGET_ASM_NAMED_SECTION, MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL):
10147         Don't define when not using elfos.h.
10148         (ASM_DECLARE_RESULT): Don't define.
10149         * doc/install.texi (hppa*-hp-hpux*): Remove statement that HP assembler
10150         doesn't work on hppa64-hp-hpux11.
10151         (hppa*-hp-hpux11): Update.
10152
10153 2002-11-09  Jason Thorpe  <thorpej@wasabisystems.com>
10154
10155         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
10156         to the assembler if -mno-abicalls was specified.
10157
10158 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10159
10160         * pa-linux.h (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
10161         ASM_OUTPUT_DEF): Delete.
10162
10163 2002-11-09  Neil Booth  <neil@daikokuya.co.uk>
10164
10165         * c-opts.c (COMMAND_LINE_OPTIONS): Fix -Wimplicit.
10166
10167 2002-11-08  Roger Sayle  <roger@eyesopen.com>
10168
10169         * real.c (real_sqrt): Update comment with bibliographic reference.
10170
10171 Fri Nov  8 13:33:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10172
10173         * i386.md (sse_loadss, sse2_loadsd): Fix expander.
10174
10175 Fri Nov  8 13:25:41 CET 2002  Jan Hubicka  <jh@suse.cz>
10176
10177         * i386.c (x86_machine_dependent_reorg): Fix handling of empty functions.
10178
10179 Fri Nov  8 13:01:42 CET 2002  Jan Hubicka  <jh@suse.cz>
10180
10181         * builtins.c (expand_builtin_mathfn): Handle floor/ceil/trunc/round/nearbyint
10182         (expand_builtin): Likewise.
10183         * builtins.def: Add
10184         __builtin_floor, __builtin_floorf, __builtin_floorl
10185         __builtin_ceil, __builtin_ceilf, __builtin_ceill
10186         __builtin_round, __builtin_roundf, __builtin_roundl
10187         __builtin_trunc, __builtin_truncf, __builtin_truncl
10188         __builtin_nearbyint, __builtin_nearbyintf, __builtin_nearbyintl.
10189         * genopinit.c (optabs): Initialize the new optabs.
10190         * optab.c (init_optabs): Likewise.
10191         * optabs.h (optab_index): Add OTI_floor, OTI_ceil, OTI_trunc,
10192         OTI_round, OTI_nearbyint.
10193         (floor_optab, ceil_optab, trunc_optab, round_optab, nearbyint_optab): New.
10194         * doc/md.texi: Document new named patterns.
10195         * doc/extend.texi (builtin functions)  Document
10196         floor, floorf, floorl, ceil, ceilf,
10197         ceill, round, roundf, roundl, trunc,
10198         truncf, truncl, nearbyint, nearbyintf, nearbyintl.
10199
10200 Fri Nov  8 11:36:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10201
10202         * i386.md (sse_movdfcc, sse_movsfcc): Fix typo in previous patch.
10203
10204 2002-11-08  Dale Johannesen  <dalej@apple.com>
10205
10206         * dbxout.c (dbxout_type):  Fix stabs info for vector types.
10207
10208 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
10209
10210         PR preprocessor/8497
10211         PR preprocessor/8501
10212         * cpptrad.c (scan_out_logical_line): A '#' from a macro doesn't
10213         start a directive.  In assembler, #NUM is not a line directive.
10214
10215 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
10216
10217         * cppmain.c (cpp_preprocess_file): Loop to pop any -included
10218         buffers.
10219
10220 2002-11-08  Kazu Hirata  <kazu@cs.umass.edu>
10221
10222         * config/h8300/h8300.md (two anonymous test insns): New.
10223
10224 Fri Nov  8 11:20:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10225
10226         * jump.c (mark_jump_label): Handle subregs of label_refs.
10227
10228 Thu Nov  7 21:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10229
10230         * i386.md (sse_movdfcc, sse_movsfcc): Avoid overactive matching.
10231         * i386.c (ix86_expand_fp_movcc): Match the reversed cases.
10232
10233 2002-11-07  David Mosberger  <davidm@hpl.hp.com>
10234
10235         * config/ia64/crtend.asm: Include "auto-host.h".
10236         [HAVE_INITFINI_ARRAY]: Invoke __do_global_ctors_aux via .init_array.
10237         * config/ia64/crtbegin.asm: Similarly.
10238         * config/ia64/t-ia64 (crtbegin.o): Include from current directory.
10239         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
10240
10241         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): New.
10242         * configure.in: Use it if --enable-initfini-array not specified.
10243         * doc/install.texi (Configuration): Document --enable-initfini-array.
10244         * configure, config.in: Rebuild.
10245
10246 2002-11-07  Jason Thorpe  <thorpej@wasabisystems.com>
10247
10248         * config/arm/arm-protos.h (arm_get_frame_size)
10249         (thumb_get_frame_size): New prototypes.
10250         * config/arm/arm.c (arm_get_frame_size)
10251         (thumb_get_frame_size): New functions.
10252         (use_return_insn, arm_output_epilogue, arm_output_function_epilogue)
10253         (arm_compute_initial_elimination_offset, arm_expand_prologue): Use
10254         arm_get_frame_size.
10255         (thumb_expand_prologue, thumb_expand_epilogue): Use
10256         thumb_get_frame_size.
10257         * config/arm/arm.h (PREFERRED_STACK_BOUNDARY): Define.
10258         (machine_function): Add frame_size member.
10259         (THUMB_INITIAL_ELIMINATION_OFFSET): Use thumb_get_frame_size.
10260
10261 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
10262
10263         * arm.c (bit_count): Make argument unsigned long.  Return unsigned.
10264         Adjust code to use portable unsigned bit manipulation.
10265         (insn_flags, tune_flags): Change type to unsigned.
10266         (struct processors): Make flags unsigned long.
10267         (arm_override_options): Change type of count and current_bit_count
10268         to unsigned.
10269
10270 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
10271
10272         * arm/elf.h (TYPE_OPERAND_FMT): Prefix type with %.
10273
10274 Thu Nov  7 15:50:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
10275
10276         * sh.h (DWARF_FRAME_RETURN_COLUMN): Use DWARF_FRAME_REGNUM.
10277
10278 Thu Nov  7 11:18:01 CET 2002  Jan Hubicka  <jh@suse.cz>
10279
10280         * reg-stack.c (compensate_edge): Fix sanity check.
10281
10282 2002-11-05  Geoffrey Keating  <geoffk@apple.com>
10283
10284         * config.gcc: Don't create crtbegin, crtend on Darwin; do create
10285         crt2.o.  Rearrange t-darwin makefiles.
10286         * crtstuff.c [OBJECT_FORMAT_MACHO]: Delete.
10287         * unwind-dw2-fde-darwin.c: New.
10288         * unwind-dw2-fde-glibc.c: Correct comment.
10289         * unwind-dw2-fde.c (__register_frame_info_bases)
10290         [DWARF2_OBJECT_END_PTR_EXTENSION]: Clear fde_end.
10291         (classify_object_over_fdes): Use last_fde.
10292         (add_fdes): Likewise.
10293         (linear_search_fdes): Likewise.
10294         * unwind-dw2-fde.h (struct object)
10295         [DWARF2_OBJECT_END_PTR_EXTENSION]: Add fde_end field.
10296         (last_fde): New.
10297         * config/darwin.h (STARTFILE_SPEC): Include crt2.o not crtbegin.o.
10298         (ENDFILE_SPEC): No crtend.o.
10299         * config/t-darwin: New.
10300         * config/i386/t-darwin: Delete.
10301         * config/darwin-crt2.c: New.
10302         * config/rs6000/t-darwin: Delete contents duplicated in t-rs6000
10303         or config/t-darwin.
10304
10305 2002-11-06  Douglas B Rupp  <rupp@gnat.com>
10306
10307         * config/i386/i386-interix.h (TARGET_SUBTARGET_DEFAULT): Or
10308         MASK_MS_BITFIELD_LAYOUT
10309         (SUBTARGET_OVERRIDE_OPTIONS): Warn about and turn off
10310         MS bitfields for Objective-C.
10311         (PCC_BIT_FIELD_TYPE_TEST, GROUP_BITFIELDS_BY_ALIGN): Remove
10312         defines.
10313
10314         * config/i386/i386.c (ix86_ms_bitfield_layout): New function.
10315         (TARGET_MS_BITFIELD_LAYOUT_P): Define to above function.
10316         (TARGET_USE_MS_BITFIELD_LAYOUT): Define.
10317
10318         * config/i386/i386.h (MASK_MS_BITFIELD_LAYOUT: New mask.
10319         TARGET_USE_MS_BITFIELD_LAYOUT): New macro.
10320         (TARGET_SWITCHES): Add above mask.
10321
10322         * testsuite/gcc.dg/bf-ms-layout.c: New test case.
10323         * testsuite/gcc.dg/bf-no-ms-layout.c: New test case.
10324         * testsuite/gcc.dg/i386-bitfield1.c (dg-options): Add appropriate
10325         flags for interix.
10326
10327 Wed Nov  6 18:54:47 2002  Alexandre Oliva  <aoliva@redhat.com>
10328
10329         * config/mips/mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output
10330         .gpword/.gpdword for ABI_N32 and ABI_64 too, if using the GNU
10331         assembler.
10332         * config/mips/mips.md (tablejump_internal3): Output .cpadd
10333         before jump on ABI_N32 too.
10334         (tablejump_internal4): Ditto on ABI_64.  Increase maximum
10335         length to match.
10336
10337 Wed Nov  6 17:16:48 CET 2002  Jan Hubicka  <jh@.suse.cz>
10338
10339         * i386.md (negsf splitter): Accept memory operand in second register.
10340         (abssf/absdf splitters): Simplify
10341         (sse_loadss, sse_loadsd): Turn into expander.
10342
10343 2002-11-06  David Edelsohn  <edelsohn@gnu.org>
10344
10345         PR target/8480
10346         * config/rs6000/rs6000.md (movdi_internal64): Discourage
10347         FPR to FPR moves.
10348
10349 2002-11-06  Janis Johnson  <janis187@us.ibm.com>
10350
10351         * doc/contrib.texi: Merge in the list from the Java web pages.
10352
10353 2002-11-06  David O'Brien  <obrien@FreeBSD.org>
10354
10355         * config/sparc/freebsd: Fix typo.
10356
10357 2002-11-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10358
10359         * pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
10360
10361 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
10362
10363         * config/mips/mips.md (call_value_multiple_internal2): Use dla for
10364         non-SImode addresses.
10365
10366 Tue Nov  5 14:34:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10367
10368         * i386.md (float_truncate SSE splitter): Ensure that operand is not
10369         stack register.
10370         (float SSE splitters): Reorder conditional.
10371
10372 2002-11-05  Bob Wilson  <bob.wilson@acm.org>
10373
10374         * config/xtensa/elf.h (LIB_SPEC): Add "-lhal".
10375
10376 2002-11-05  John David Anglin  <dave2hiauly1.hia.nrc.ca>
10377
10378         * pa64-hpux.h (LIB_SPEC): Fix p and pg options.
10379         (STARTFILE_SPEC): Remove p and pg options.
10380
10381 2002-11-05  Andrew Haley  <aph@redhat.com>
10382
10383         * fold-const.c (fold): Don't transform (a0 op compound(a1,a2))
10384         to (compound(a1,a0 op a2)) if a0 or a1 have side effects.
10385
10386 2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
10387
10388         * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Move comment to...
10389         * config/mips/mips.c (mips_cannot_change_mode_class): ...here.
10390
10391 2002-11-04  Zack Weinberg  <zack@codesourcery.com>
10392
10393         * gthr-vxworks.h: Rewritten from scratch.
10394         * config/vxlib.c: New file.
10395         * config/t-vxworks: Add config/vxlib.c to LIB2FUNCS_EXTRA.
10396         * config/rs6000/t-vxworks: Add config/vxlib.c to
10397         LIB2FUNCS_EXTRA here too, because of clash with
10398         config/rs6000/t-ppccomm.
10399
10400 2002-11-04  Dale Johannesen  <dalej@apple.com>
10401
10402         * doloop.c (doloop_modify_runtime):  Fix loop count computation
10403         for unrolled loops.
10404         * loop.c (loop_invariant_p):  Support calling from unroller.
10405
10406 2002-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
10407
10408         * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
10409         for comparison.
10410
10411 2002-11-04  Aldy Hernandez  <aldyh@redhat.com>
10412
10413         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
10414
10415         * config/rs6000/rs6000.h (CLASS_CANNOT_CHANGE_MODE_P): Remove.
10416         (CLASS_CANNOT_CHANGE_MODE): Remove.
10417         (CANNOT_CHANGE_MODE_CLASS): New.
10418
10419         * config/alpha/alpha.h: Same.
10420
10421         * config/ia64/ia64.h: Same.
10422
10423         * config/mips/mips.h: Same.
10424
10425         * config/s390/s390.h: Same.
10426
10427         * config/sh/sh.h: Same.
10428
10429         * config/pa/pa64-regs.h: Same.
10430
10431         * config/sh/sh-protos.h (sh_cannot_change_mode_class): Add prototype.
10432
10433         * config/sh/sh.c (sh_cannot_change_mode_class): New.
10434
10435         * config/mips/mips-protos.h (mips_cannot_change_mode_class): Add
10436         prototype.
10437
10438         * config/mips/mips.c (mips_cannot_change_mode_class): New.
10439
10440         * doc/tm.texi (Register Classes): Remove
10441         CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P.
10442         Document CANNOT_CHANGE_MODE_CLASS.
10443
10444         * reload.c (push_reload): Use CANNOT_CHANGE_MODE_CLASS.
10445         (push_reload): Same.
10446
10447         * simplify-rtx.c (simplify_subreg): Same.
10448
10449         * reload1.c (choose_reload_regs): Same.
10450
10451         * recog.c (register_operand): Same.
10452
10453         * regrename.c (mode_change_ok): Change to use new
10454         CANNOT_CHANGE_MODE_CLASS infrastructure.
10455
10456         * regclass.c (cannot_change_mode_set_regs): New.
10457         Declare subregs_of_mode.
10458         (regclass): Use subregs_of_mode.
10459         Remove references to reg_changes_mode.
10460         (init_reg_sets_1): Remove class_can_change_mode and
10461         reg_changes_mode code.
10462         (invalid_mode_change_p): New.
10463         (dump_regclass): Use invalid_mode_change_p instead of
10464         class_can_change_mode.
10465         (regclass): Same.
10466         (record_operand_costs): Do not set reg_changes_mode.
10467
10468         * local-alloc.c (struct qty): Remove changes_mode field.
10469         (alloc_qty): Remove changes_mode initialization.
10470         (update_qty_class): Remove set of changes_mode.
10471         (find_free_reg): Use subregs_of_mode.
10472
10473         * global.c (find_reg): Use subregs_of_mode info.
10474
10475         * rtl.h (cannot_change_mode_set_regs): New prototype.
10476         (invalid_mode_change_p): Same.
10477         (REG_CANNOT_CHANGE_MODE_P): New macro.
10478
10479         * flow.c (mark_used_regs): Calculate subregs_of_mode.  Remove
10480         REG_CHANGES_MODE.
10481         (life_analysis): Clear subregs_of_mode.
10482
10483         * combine.c (subst): Pass class to CLASS_CANNOT_CHANGE_MODE_P.
10484         Remove use of CLASS_CANNOT_CHANGE_MODE.
10485         (simplify_set): Same.
10486         (gen_lowpart_for_combine): Calculate subregs_of_mode.  Remove
10487         REG_CHANGES_MODE.
10488
10489         * regs.h: Add extern for subregs_of_mode;
10490         Include hard-reg-set and basic-block.
10491         (REG_CHANGES_MODE): Delete.
10492
10493 2002-11-03  Roger Sayle  <roger@eyesopen.com>
10494
10495         * real.c (real_sqrt): New function to calculate square roots.
10496         * real.h (real_sqrt): Add function prototype.
10497         * builtins.c (fold_builtin): Fold sqrt of constant argument.
10498         * simplify-rtx.c (simplify_unary_operation): Simplify sqrt
10499         of constant argument.
10500
10501 2002-11-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10502
10503         * jump.c (never_reached_warning): Don't set contains_insn until the
10504         first line note is seen.
10505
10506 2002-11-03  David Edelsohn  <edelsohn@gnu.org>
10507
10508         * config/rs6000/rs6000.md (movti_string): Use string instructions.
10509
10510 2002-11-03  Roger Sayle  <roger@eyesopen.com>
10511
10512         PR c/7128
10513         * c-typeck.c (c_expand_asm_operands): Defend against
10514         error_mark_nodes in the output argument to avoid ICE.
10515
10516 2002-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
10517
10518         PR middle-end/8408
10519         * genrecog.c (preds): Handle ADDRESSOF.
10520         (validate_pattern): Mark it as an lvalue.
10521
10522 2002-11-02  David Edelsohn  <edelsohn@gnu.org>
10523
10524         * config/rs6000/rs6000.c (rs6000_override_options): Use string
10525         instructions when optimizing for size.
10526
10527 2002-11-02  Kazu Hirata  <kazu@cs.umass.edu>
10528
10529         * config/h8300/h8300.h: Fix comment typos.
10530         * config/h8300/h8300.md: Likewise.
10531         * config/h8300/lib1funcs.asm: Likewise.
10532
10533 2002-11-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10534
10535         Revert this change:
10536
10537         *doc/install.texi (Installing GCC: Configuration): Clarify
10538         the only supported ways to configure gcc.
10539
10540 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
10541
10542         * config/h8300/h8300.md (anonymous and:QI pattern): Use 'n'
10543         instead of 'O' for the constraint for the second operand.
10544
10545 2002-11-01  Mark Mitchell  <mark@codesourcery.com>
10546
10547         PR c++/8391
10548         * toplev.c (rest_of_compilation): Do not refuse to output code for
10549         an inline function in a local class.
10550
10551 2002-11-01  David O'Brien  <obrien@FreeBSD.org>
10552
10553         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
10554         (TRANSFER_FROM_TRAMPOLINE): Reformat.
10555         Add comment.
10556
10557 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
10558
10559         * config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
10560
10561 2002-11-01  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10562
10563         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): New.
10564
10565 2002-11-01  Steve Ellcey  <sje@cup.hp.com>
10566
10567         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): Remove.
10568         (MASK_INLINE_DIV_THR): Remove.
10569         (TARGET_INLINE_DIV_LAT): Remove.
10570         (TARGET_INLINE_DIV_THR): Remove.
10571         (TARGET_INLINE_DIV): Remove.
10572         (MASK_INLINE_FLOAT_DIV_LAT): New macro.
10573         (MASK_INLINE_FLOAT_DIV_THR): New macro.
10574         (MASK_INLINE_INT_DIV_LAT): New macro.
10575         (MASK_INLINE_INT_DIV_THR): New macro.
10576         (TARGET_INLINE_FLOAT_DIV_LAT): New macro.
10577         (TARGET_INLINE_FLOAT_DIV_THR): New macro.
10578         (TARGET_INLINE_INT_DIV_LAT): New macro.
10579         (TARGET_INLINE_INT_DIV_THR): New macro.
10580         (TARGET_INLINE_FLOAT_DIV): New macro.
10581         (TARGET_INLINE_INT_DIV): New macro.
10582         * config/ia64/ia64.md (divsi3): Change to use new macros.
10583         (modsi3): Ditto.
10584         (udivsi3): Ditto.
10585         (umodsi3): Ditto.
10586         (divsi3_internal): Ditto.
10587         (divdi3): Ditto.
10588         (moddi3): Ditto.
10589         (udivdi3): Ditto.
10590         (umoddi3): Ditto.
10591         (divdi3_internal_lat): Ditto.
10592         (divdi3_internal_thr): Ditto.
10593         (divsf3): Ditto.
10594         (divsf3_internal_lat): Ditto.
10595         (divsf3_internal_thr): Ditto.
10596         (divdf3): Ditto.
10597         (divdf3_internal_lat): Ditto.
10598         (divdf3_internal_thr): Ditto.
10599         (divtf3): Ditto.
10600         (divtf3_internal_lat): Ditto.
10601         (divtf3_internal_thr): Ditto.
10602         * config/ia64/ia64.c (ia64_override_options): Change
10603         to check new macros for conflicts in settings.
10604         * doc/invoke.texi (-minline-divide-min-latency): Remove.
10605         (-minline-divide-max-throughput): Remove.
10606         (-minline-float-divide-min-latency): New.
10607         (-minline-float-divide-max-throughput): New.
10608         (-minline-int-divide-min-latency): New.
10609         (-minline-int-divide-max-throughput): New.
10610
10611 2002-11-01  Richard Earnshaw  (rearnsha@arm.com)
10612
10613         PR target/7856
10614         * arm.c (use_return_insn): Don't use a return insn if there are
10615         saved integer regs, but LR is not one of them.
10616
10617 Fri Nov  1 10:33:15 CET 2002  Jan Hubicka  <jh@suse.cz>
10618
10619         * expr.c (emit_move_insn):  Use SCALAR_FLOAT_MODE_P
10620         * machmode.h (SCALAR_FLOAT_MODE_P): New macro.
10621
10622 Thu Oct 31 18:20:50 CET 2002  Jan Hubicka  <jh@suse.cz>
10623
10624         * i386.md (sse_loadss, sse_loadsd):  Canonicalize; add expander
10625         (movps, movpd splitters): Use canonical form.
10626         (movv2di): Fix merge problem.
10627
10628 Thu Oct 31 16:22:31 CET 2002  Jan Hubicka  <jh@suse.cz>
10629
10630         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
10631
10632 2002-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
10633
10634         PR optimization/6162
10635         * doc/md.texi: Document restriction on commutative operand
10636         specification.
10637
10638 2002-10-31  Eric Christopher  <echristo@redhat.com>
10639
10640         * explow.c (convert_memory_address): Use shallow_copy_rtx.
10641
10642 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
10643
10644         * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
10645
10646 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
10647
10648         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
10649
10650 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
10651
10652         * config/rs6000/darwin.h:  Correct formatting in previous.
10653
10654 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
10655
10656         * config/rs6000/darwin.h:  Enable -falign-xxx options.
10657
10658 Thu Oct 31 18:08:00 CET 2002  Jan Hubicka  <jh@suse.cz>
10659
10660         * i386.c (override_options): Set defaults for flag_omit_frame_pointer,
10661         flag_asynchronous_unwind_tables, flag_pcc_struct_return.
10662         * i386.c (optimization_options): Set flag_omit_frame_pointer,
10663         flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
10664         Do not clear -momit-leaf-frame-pointer when profiling.
10665         (ix86_frame_pointer_required): Frame pointer is always required when
10666         profiling.
10667
10668 Thu Oct 31 16:09:44 CET 2002  Jan Hubicka  <jh@suse.cz>
10669
10670         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
10671
10672 Thu Oct 31 12:45:55 2002  J"orn Rennecke <joern.rennecke@superh.com>
10673
10674         * sh.h (binary_logical_operator): Declare.
10675         * sh.c (binary_logical_operator): New function.
10676         * sh.md (xordi3+1): New combiner splitter pattern.
10677
10678 2002-10-31  David O'Brien  <obrien@FreeBSD.org>
10679
10680         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
10681         __enable_execute_stack function.
10682
10683 2002-10-30  Zack Weinberg  <zack@codesourcery.com>
10684
10685         * gthr.h, gthr-dce.h, gthr-posix.h, gthr-rtems.h,
10686         gthr-solaris.h, gthr-win32.h: Remove __gthread_key_dtor.
10687         * unwind-sjlj.c (fc_key_dtor): Delete.
10688         (fc_key_init): Adjust __gthread_key_create call to match.
10689
10690 2002-10-30  Aldy Hernandez  <aldyh@redhat.com>
10691
10692         * c-common.c: Add GTY to vector_type_node_list.
10693
10694 2002-10-30  John David Anglin  <dave@hiauly.hia.nrc.ca>
10695
10696         * pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
10697         * pa-protos.h (attr_length_millicode_call, attr_length_call,
10698         pa_init_machine_status): Declare new global functions.
10699         * pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
10700         implement new functions.
10701         (attr_length_millicode_call, attr_length_call): Implement.
10702         (total_code_bytes): Change type to long.
10703         (pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
10704         Reset counter if flag_function_sections.
10705         (output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
10706         (output_cbranch): Move call to gen_label_rtx.
10707         (output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
10708         delay slot in all variants, shorten pc-relative calls.
10709         (output_call): Rewrite adding long TARGET_64BIT call, improved delay
10710         slot usage and exposure, various new call variants, and shortened
10711         sequences for some variants on TARGET_PA_20.
10712         Miscellaneous format changes.
10713         * pa.h (total_code_bytes): Change type to long.
10714         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
10715         TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
10716         (TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
10717         (EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
10718         LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
10719         stores on TARGET_ELF32.
10720         *pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
10721         (unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
10722         canonicalize_funcptr_for_compare expanders): Calculate attribute length
10723         attr_length_millicode_call().
10724         (call_internal_symref, call_value_internal_symref): Clobber register 1.
10725         Calculate attribute length using attr_length_call().
10726         (call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
10727         to delay slot.
10728         (sibcall, sibcall_value): Rewrite.
10729         (sibcall_internal_symref, sibcall_value_internal_symref): Clobber
10730         register 1.  Use attr_length_call().
10731         (sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
10732         New patterns.
10733         (unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
10734         * som.h (MEMBER_TYPE_FORCES_BLK): Define.
10735         * t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
10736         * doc/invoke.texi (mlong-calls): Document.
10737
10738 2002-10-30  Roger Sayle  <roger@eyesopen.com>
10739
10740         * fold-const.c (fold_binary_op_with_conditional_arg):  Improve
10741         handling of cases where one or both branches of the conditional
10742         have void type, i.e. throw an exception or don't return.
10743         (fold): Only apply (and undo) type conversion to the non-void
10744         branches of a COND_EXPR.
10745
10746 2002-10-30  Mark Mitchell  <mark@codesourcery.com>
10747
10748         PR c++/8333
10749         * varasm.c (asm_output_aligned_bss): Do not call
10750         ASM_GLOBALIZE_LABEL.
10751
10752 2002-10-30  David Edelsohn  <edelsohn@gnu.org>
10753             Torbjorn Granlund  <tege@swox.com>
10754
10755         * config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
10756         for addressibility.
10757         (load_toc_v4_PIC_1b): Same.
10758
10759 2002-10-30  Kazu Hirata  <kazu@cs.umass.edu>
10760
10761         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
10762         Truncate the addresses for H8/300 using HImode.
10763
10764 Tue Oct 29 23:28:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10765
10766         * i386.md (negdf splitter): Fix construction of the constant.
10767
10768 Tue Oct 29 20:47:06 CET 2002  Jan Hubicka  <jh@suse.cz>
10769
10770         * i386.md (negsf, negdf): Reorganize to use vector modes
10771         for SSE variants.
10772         (abssf, absdf): Use force_reg.
10773         (movv4sf, movv2df): New splitters.
10774         * i386.h (PREDICATE_CODES): add zero_extended_scalar_load_operand
10775         * i386.c (zero_extended_scalar_load_operand
10776
10777         * i386-protos.h (ix86_expand_call): Update prototype.
10778         * i386.c (ix86_function_ok_for_sibcall): Handle 64bit
10779         (ix86_expand_call): Use r11 for indirect sibcalls.
10780         * i386.md (call, call_value, untyped_call, call_value_pop):
10781         update x86_expand_call call.
10782         (sibcall, sibcall_value): new patterns
10783         (call_rex64, call_value_rex64): Do not accept sibcalls.
10784         (sibcall_rex64, sibcall_value_rex64,
10785         sibcall_rex64_v, sibcall_value_rex64_v): New.
10786
10787 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10788
10789         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
10790         before final pass.
10791
10792 2002-10-29  Hans-Peter Nilsson  <hp@bitrange.com>
10793
10794         * toplev.c (rest_of_type_compilation): Return early in case of
10795         errors.
10796         (check_global_declarations): Don't call debug_hooks->global_decl
10797         in case of errors.
10798
10799 2002-10-28  Andreas Bauer  <baueran@in.tum.de>
10800
10801         * doc/c-tree.texi (Tree overview): Fix typos.
10802
10803 2002-10-29  Phil Edwards  <pme@gcc.gnu.org>
10804
10805         * Makefile.in (gnucompare*):  Only record bad comparisons
10806         if there really was a bad comparison.
10807
10808 Tue Oct 29 19:32:16 CET 2002  Jan Hubicka  <jh@suse.cz>
10809
10810         * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H'
10811         * i386.md (movsf*, movdf*): Use 'C' instead of 'H'
10812         * md.texi (machine dependent constraints): Document 'C'
10813
10814         * simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.
10815
10816         * i386.c (ix86_expand_vector_move): Fix.
10817
10818         * i386.c (ix86_expand_builtin): Use sse2_maskmovdqu_rex64.
10819         * i386.md (sse2_maskmovdqu_rex64): New pattern
10820
10821         PR target/8322
10822         * xmmintrin.h (_mm_stream_pi, _mm_stream_pd): Fix cast.
10823         (ix86_init_mmx_sse_builtins): Fix type.
10824
10825 2002-10-29  Jason Thorpe  <thorpej@wasabisystems.com>
10826
10827         * gthr-posix.h: Include <unistd.h> for feature tests.
10828         (sched_get_priority_max, sched_get_priority_min)
10829         (pthread_getschedparam, pthread_setschedparam): Only use
10830         if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
10831         (__gthread_objc_thread_set_priority): Don't treat all nonzero
10832         returns from sched_get_priority_max and sched_get_priority_min
10833         as an error.
10834
10835 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
10836
10837         * config/h8300/h8300.h (TARGET_DEFAULT): Make it
10838         MASK_QUICKCALL.
10839
10840 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
10841
10842         * config/h8300/h8300.c (h8300_eightbit_constant_address_p): New.
10843         (h8300_tiny_constant_address_p): Likewise.
10844         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Use
10845         h8300_eightbit_constant_address_p.
10846         (TINY_CONSTANT_ADDRESS_P): Use h8300_tiny_constant_address_p.
10847         * config/h8300/h8300-protos.h: Add the prototypes for the two
10848         new functions.
10849
10850 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
10851
10852         * reload1.c (update_eliminables): Unconditionally check if
10853         frame_pointer_needed has changed.
10854
10855 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10856
10857         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
10858         before final pass.
10859
10860 2002-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
10861
10862         PR optimization/8334
10863         * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
10864         check for zero operands explicitly.
10865
10866 2002-10-29  Richard Sandiford  <rsandifo@redhat.com>
10867
10868         * config/mips/mips.md (extv, extzv, insv): Set size of referenced
10869         memory after adjusting to BLKmode.
10870
10871 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
10872
10873         * config/h8300/h8300.h (MASK_*): New.
10874         (TARGET_*): Use MASK_*.
10875
10876 2002-10-28  Zack Weinberg  <zack@codesourcery.com>
10877
10878         * config.gcc (*-*-vxworks, powerpc-wrs-vxworks*): New stanzas.
10879         * config/t-vxworks, config/vxworks.h, config/rs6000/t-vxworks,
10880         config/rs6000/vxworks.h: New files.
10881         * config/rs6000/sysv4.h: Rip out -mvxworks and all related code.
10882
10883         * config.gcc (alpha*-*-vxworks*, arm-*-vxworks*,
10884         i?86-wrs-vxworks*, i960-wrs-vxworks* [all],
10885         m68k-wrs-vxworks*, mips-wrs-vxworks, powerpc-wrs-vxworks*,
10886         powerpcle-wrs-vxworks*, sparc*-wrs-vxworks* [all],
10887         sparc-*-vxsim*): Delete stanzas.
10888         * gthr-vxworks.h: Rip out all substantive code and just
10889         include gthr-single.h.
10890
10891         * config/alpha/vxworks.h, config/arm/vxarm.h,
10892         config/i386/vxi386.h, config/i960/t-vxworks960,
10893         config/i960/vx960-coff.h, config/i960/vx960.h,
10894         config/m68k/t-vxworks68, config/m68k/vxm68k.h,
10895         config/mips/vxworks.h, config/rs6000/vxppc.h,
10896         config/sparc/t-vxsparc, config/sparc/t-vxsparc64,
10897         config/sparc/vxsim.h, config/sparc/vxsparc.h,
10898         config/sparc/vxsparc64.h: Delete files.
10899
10900 2002-10-28  Jason Thorpe  <thorpej@wasabisystems.com>
10901
10902         * config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to
10903         tm_defines if pthreads are enabled.
10904         * config/netbsd.h (LIB_SPEC): Only support the -pthread option
10905         if NETBSD_ENABLE_PTHREADS is defined.
10906
10907 2002-10-28  Kazu Hirata  <kazu@cs.umass.edu>
10908
10909         * ChangeLog.1: Fix typos.
10910         * cse.c: Fix a comment typo.
10911         * reload1.c: Likewise.
10912
10913 2002-10-27  Hans-Peter Nilsson  <hp@bitrange.com>
10914
10915         * fixinc/inclhack.def (libc1_G_va_list): Correct test_text.
10916         * fixinc/tests/base/_G_config.h: New file.
10917
10918 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
10919
10920         * combine.c: Fix comment formatting.
10921         * loop.c: Likewise.
10922         * real.c: Likewise.
10923         * regclass.c: Likewise.
10924         * regmove.c: Likewise.
10925         * regrename.c: Likewise.
10926         * reg-stack.c: Likewise.
10927         * reload1.c: Likewise.
10928         * reload.c: Likewise.
10929         * reload.h: Likewise.
10930         * unroll.c: Likewise.
10931
10932 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
10933
10934         * reload1.c (reload): Fix a comment typo.
10935
10936 Sun Oct 27 10:15:24 CET 2002  Jan Hubicka  <jh@suse.cz>
10937
10938         * linux64.h (DEFAULT_PCC_STRUCT_RETURN):  Define.
10939
10940 2002-10-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10941
10942         * Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
10943         * dwarf2out.c: Include hashtab.h.
10944         (is_main_source): New static variable.
10945         (attr_checksum, die_checksum): Modified to handle die references.
10946         (same_loc_p, same_dw_val_p, same_attr_p, same_die_p, same_die_p_wrap,
10947         unmark_all_dies, htab_cu_hash, htab_cu_eq, htab_cu_del, check_duplicate_cu,
10948         record_comdat_symbol_number): New static functions.
10949         (output_comp_unit, compute_section_prefix, is_type_die, break_out_includes,
10950         mark_dies, unmark_dies, dwarf2out_start_source_file): Modified.
10951         * toplev.c (rest_of_decl_compilation): Call of dwarf2out_decl for type
10952         declarations added.
10953
10954 2002-10-26  Kazu Hirata  <kazu@cs.umass.edu>
10955
10956         * config/h8300/h8300.c (initial_offset): Change to
10957         h8300_initial_elimination_offset.
10958         * config/h8300/h8300.h (INITIAL_ELIMINATION_OFFSET): Use
10959         h8300_initial_elimination_offset.
10960         * config/h8300/h8300-protos.h: Update the prototype.
10961
10962 2002-10-26  Hans-Peter Nilsson  <hp@bitrange.com>
10963
10964         * config/mmix/mmix.h (LIBCALL_VALUE): Use
10965         MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
10966         (FUNCTION_VALUE_REGNO_P): Similar, but move code to...
10967         * config/mmix/mmix.c (mmix_function_value_regno_p): New.
10968         * config/mmix/mmix-protos.h: Remove needless ifdefs on TREE_CODE
10969         and RTX_CODE.
10970         (mmix_function_value_regno_p): Declare.
10971
10972         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix,
10973         invalid for floating point mode result, with fix.
10974
10975 Fri Oct 25 00:04:21 2002  Alexandre Oliva  <aoliva@redhat.com>
10976
10977         * Makefile.in (GCC_FOR_TARGET): Add -L$(objdir)/../ld.
10978         (STAGE2_FLAGS_TO_PASS): Pass GCC_FOR_TARGET.
10979         (stage1_build): Likewise.
10980
10981 2002-10-25  Mike Stump  <mrs@apple.com>
10982
10983         Fixes gcc.dg/warn-1.c.
10984         * c-typeck.c (warn_for_assignment): Don't print argument number,
10985         if zero.
10986
10987 Sat Oct 26 01:44:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
10988
10989         * toplev.c (dump_file_index): Add DFI_ce3.
10990         (dump_file_info): Likewise.
10991         (rest_of_compilation): Run first ifcvt pass before tracer.
10992
10993 2002-10-25  Steve Ellcey  <sje@cup.hp.com>
10994
10995         * config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.
10996
10997 2002-10-25  Richard Henderson  <rth@redhat.com>
10998
10999         * real.c (real_to_decimal): If the >1 tens reduction loop results
11000         in a negative exponent, fall into the <1 pten computation.
11001
11002 2002-10-25  Zack Weinberg  <zack@codesourcery.com>
11003
11004         PR middle-end/6994
11005         * c-objc-common.c (inline_forbidden_p): Can not inline
11006         functions containing structures or unions containing VLAs.
11007         * tree-inline.c (walk_tree): For all class 't' nodes, walk
11008         TYPE_SIZE and TYPE_SIZE_UNIT.
11009         (copy_tree_r): Copy types if they are variably modified.
11010
11011 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
11012
11013         * config/s390/s390.md: Remove old-style peepholes.
11014
11015 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
11016
11017         * config/s390/s390.c (s390_decompose_address): Do not range check the
11018         displacement if base or index is the argument pointer register.
11019
11020 2002-10-24  Hans-Peter Nilsson  <hp@bitrange.com>
11021
11022         PR other/3337
11023         PR bootstrap/6763
11024         PR bootstrap/8122
11025         * fixinc/inclhack.def (libc1_G_va_list): New fix.
11026         * fixinc/fixincl.x: Regenerate.
11027         * config/i386/linux.h: Move MD_FALLBACK_FRAME_STATE_FOR inside
11028         ifndef IN_LIBGCC2.  Wrap it together with signal.h and
11029         sys/ucontext.h inclusion in ifndef USE_GNULIBC_1.
11030         * configure.in (gcc_AC_CHECK_DECLS): Check vasprintf too.
11031         * config.in, configure: Regenerate.
11032
11033 2002-10-24  Igor Shevlyakov <igor@microunity.com>
11034
11035         * varasm.c (struct rtx_const): Array size 16 for V16QImode.
11036
11037 2002-10-24  Richard Henderson  <rth@redhat.com>
11038
11039         * config/i386/i386.c (x86_output_mi_thunk): Fix x86_64 pic jump.
11040
11041 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11042
11043         * config/h8300/h8300.c (initial_offset): Simplify by using
11044         round_frame_size.
11045
11046 2002-10-24  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11047
11048         * doc/install.texi (avr): Update required binutils version.
11049
11050 2002-10-24  Theodore A. Roth  <troth@openavr.org>
11051
11052         * doc/install.texi: Point avr users at more up-to-date information.
11053
11054 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
11055
11056         * config/s390/s390.md (movdi, movsi, movhi, movqi): Add peepholes2
11057         to pull operands out of the literal pool where possible.
11058
11059 2002-10-24  Denis Chertykov  <denisc@overta.ru>
11060
11061         * config/avr/avr.c (init_cumulative_args): Test fntype for zero.
11062
11063 2002-10-24  Steve Ellcey  <sje@cup.hp.com>
11064
11065         * expr.c (convert_move): If unsignedp is less then zero there
11066         is no equivalent code.
11067
11068 2002-10-24  Zack Weinberg  <zack@codesourcery.com>
11069
11070         * tree.def: Delete mention of nonexistent ARRAY_TYPE fields.
11071
11072 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
11073
11074         * config/s390/s390.h: Rework comments; re-sort target macro definitions
11075         according to the sequence they are defined in the manual.
11076         (POINTER_BOUNDARY): Remove.
11077
11078 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11079
11080         * config/h8300/h8300.c (round_frame_size): Replace 8 with
11081         BITS_PER_UNIT.
11082
11083 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11084
11085         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it
11086         64-bit safe.
11087         (TINY_CONSTANT_ADDRESS_P): Likewise.
11088
11089 2002-10-24  Richard Henderson  <rth@redhat.com>
11090
11091         * config/ia64/ia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
11092         (ia64_output_mi_thunk): Rewrite to use rtl, and to handle the
11093         vcall offset.
11094
11095 2002-10-24  Richard Henderson  <rth@redhat.com>
11096
11097         PR opt/7944
11098         * reload.c (find_reloads_toplev): Mode of X is not important
11099         when simplifying subregs of constants.
11100
11101 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
11102
11103         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Add
11104         MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.
11105         * config/mips/mips.c (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Default to 0.
11106         (override_options): Base default setting of MASK_SOFT_FLOAT on -march
11107         if MIPS_MARCH_CONTROLS_SOFT_FLOAT.
11108
11109 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
11110
11111         * optabs.c (expand_binop): Don't reuse the shift target in the
11112         middle of shift sequences.
11113
11114 Wed Oct 23 22:48:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
11115
11116         * i386.md (abs splitters): Do not produce nested subregs.
11117
11118 Wed Oct 23 12:42:32 CEST 2002  Jan Hubicka  <jh@suse.cz>
11119
11120         * i386.md (movti_rex64): Fix constraints.
11121
11122 Wed Oct 23 12:01:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
11123
11124         * i386.md (abssf,absdf): Use vector operands for SSE
11125         (abssf2_ifs, absdf2_ifs, absdf2_ifs_rex64 and splitters): Update for
11126         vector operand.
11127
11128 2002-10-23  Ziemowit Laski <zlaski@apple.com>
11129
11130         * objc/objc-act.c (get_static_reference): Remove unneeded
11131         TYPE_BINFO initialization.
11132         (get_object-reference): Likewise.
11133         (build_constructor): Tighten precondition check.
11134         (finish_message_expr): Likewise.
11135
11136 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
11137
11138         * config/i386/i386.c (local_symbolic_operand): Move LABEL_REF test
11139         after CONST test.
11140
11141 2002-10-23  Steve Ellcey  <sje@cup.hp.com>
11142
11143         * config/ia64/ia64.c (hfa_element_mode): Don't allow 128 bit floats
11144         in HFAs.
11145
11146 2002-10-23  Richard Henderson  <rth@redhat.com>
11147
11148         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
11149         (alpha_output_mi_thunk_osf): Handle vcall_offset.
11150
11151 2002-10-23  Zack Weinberg  <zack@codesourcery.com>
11152
11153         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11154         var_mod_type_p.
11155         * langhooks-def.h: Default for tree_inlining.var_mod_type_p is
11156         hook_tree_bool_false.
11157
11158         * tree.c (variably_modified_type_p): Moved here from
11159         cp/tree.c.  Use lang_hooks.tree_inlining.var_mod_type_p for
11160         language-specific cases.  Due to this, must weaken some 'if
11161         and only if' checks to merely 'if'.
11162         * tree.h: Prototype variably_modified_type_p.
11163
11164         * tree-inline.c (walk_tree): #undef WALK_SUBTREE_TAIL at end.
11165
11166 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
11167
11168         * config/s390/linux.h (CC1_SPEC, CC1PLUS_SPEC): Remove.
11169         * config/s390/s390.c (optimization_options): Disable -fcaller-saves.
11170
11171         * config/s390/s390-protos.h (fp_operand): Remove.
11172         * config/s390/s390.c (fp_operand): Remove.
11173         * config/s390/s390.md ("movdi"): Replace fp_operand by FP_REG_P.
11174         ("*movdi_lhi", "*movdi_lli", "*movdi_larl"): Likewise.
11175         ("movsi", "*movsi_lhi", "*movsi_lli"): Likewise.
11176         (movdi_31, movdf_31 splitters): Likewise.
11177
11178         * config/s390/s390.h (IEEE_FLOAT): Remove.
11179         (TARGET_FLOAT_FORMAT): Define in terms of TARGET_IEEE_FLOAT.
11180         (INT_REGNO_P): Rename to ...
11181         (GENERAL_REGNO_P): ... this.
11182         (FLOAT_REGNO_P): Rename to ...
11183         (FP_REGNO_P): ... this.
11184         (ADDR_REGNO_P): New macro.
11185         (GENERAL_REG_P, ADDR_REG_P, FP_REG_P, CC_REG_P): New macros.
11186         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
11187         (DATA_REG_P, FP_REG_P, ADDRESS_REG_P): Likewise.
11188         (HARD_REGNO_NREGS): Adapt to macro renaming.
11189         (HARD_REGNO_MODE_OK): Likewise.
11190
11191 2002-10-23  David Edelsohn  <edelsohn@gnu.org>
11192             Geoff Keating  <geoffk@apple.com>
11193
11194         * config/rs6000/rs6000.c (rs6000_register_move_cost): New function.
11195         (rs6000_memory_move_cost): New function.
11196         * config/rs6000/rs6000-protos.h: Declare them.
11197         * config/rs6000/rs6000.h: Use them.
11198
11199 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
11200
11201         * libgcc2.c (__udiv_w_sdiv): Use attribute ((always_inline)) when
11202         inlining it into other libgcc2 routines.
11203         (__udivmoddi4): Likewise.
11204
11205 2002-10-22  Nathanael Nerode  <neroden@gcc.gnu.org>
11206
11207         * doc/sourcebuild.texi (Test Suites): Improve.
11208
11209 2002-10-22  Stan Shebs  <shebs@apple.com>
11210
11211         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Add missing
11212         case for Darwin.
11213
11214 2002-10-22  Jim Wilson  <wilson@redhat.com>
11215
11216         * config/i386/i386.md (subdi3_1): Add call to ix86_binary_operator_ok.
11217
11218 Wed Oct 23 01:52:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
11219
11220         PR other/8289
11221         * xmmintrin.h: Add const to the argument of loads.
11222
11223         * i386.md (pushv2di): New pattern.
11224         PR target/6890
11225         * xmmintrin.h (_MM_TRANSPOSE4_PS): New.
11226
11227 2002-10-22  Richard Henderson  <rth@redhat.com>
11228
11229         * target.h (gcc_target.asm_out): Merge output_mi_thunk and
11230         output_mi_vcall_thunk into a single hook.  Add can_output_mi_thunk.
11231         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Don't conditionalize.
11232         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
11233         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11234         (TARGET_ASM_OUT): Update.
11235         * hooks.c (hook_bool_tree_hwi_hwi_tree_false): New.
11236         (hook_bool_tree_hwi_hwi_tree_true): New.
11237         (default_can_output_mi_thunk_no_vcall): New.
11238         * hooks.h: Declare them.
11239         * system.h (ASM_OUTPUT_MI_THUNK): Poison.
11240
11241         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11242         (alpha_output_mi_thunk_osf): Add VCALL_OFFSET parameter.
11243         * config/arm/arm.c, config/cris/cris.c, config/frv/frv.c,
11244         config/i960/i960.c, config/ia64/ia64.c, config/m68k/m68k.c,
11245         config/mmix/mmix.c, config/pa/pa.c, config/sparc/sparc.c,
11246         config/stormy16/stormy16.c: Similarly.
11247
11248         * config/i386/i386.c (x86_output_mi_thunk): Merge vcall_offset code.
11249         Handle 64-bit properly.  Streamline.
11250         (x86_output_mi_vcall_thunk): Remove.
11251         (x86_this_parameter): Rename from ia32_this_parameter; handle 64-bit.
11252         (x86_can_output_mi_thunk): New.
11253         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
11254         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11255         (override_options): Don't zap targetm.asm_out.output_mi_vcall_thunk.
11256
11257         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Rename from
11258         output_mi_thunk; make static; always use function_section.
11259         (TARGET_ASM_OUTPUT_MI_THUNK): New.
11260         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11261         (rs6000_ra_ever_killed): Test no_new_pseudos not
11262         targetm.asm_out.output_mi_thunk in conjunction with thunks.
11263         * config/rs6000/rs6000-protos.h: Update.
11264         * config/rs6000/sysv4.h (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
11265         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't call
11266         xcoffout_declare_function when using rs6000_output_mi_thunk.
11267
11268         * config/s390/s390.c (s390_output_mi_thunk): Rename from
11269         s390_output_mi_vcall_thunk.
11270         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
11271         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11272
11273         * config/vax/vax.c (vax_output_mi_thunk): Static; add vcall_offset.
11274         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11275         * config/vax/vax-protos.h: Update.
11276         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.
11277
11278 Wed Oct 23 00:33:11 CEST 2002  Jan Hubicka  <jh@suse,cz>
11279
11280         * i386.c (standard_sse_constant_p): Accept vector and integer zeros too.
11281         * i386.h (EXTRA_CONSTRAINT): Recognize 'C'
11282         * i386.md (movti_internal): Use 'C'
11283
11284         * xmmintrin.h (_mm_cmplt_epi*): New.
11285
11286 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
11287
11288         * config/s390/s390.md ("*movdi_64"): Fix op_type attribute.
11289         ("*movdf_64"): Likewise.
11290         ("*lshrdi3_64"): Likewise.
11291         ("blockage"): Add length attribute.
11292         ("lit"): Likewise.
11293
11294 Tue Oct 22 23:51:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
11295
11296         * i386.md: FIx typo.
11297         (sse2_cvtsi2sd, sse2_pslrdq): Fix template.
11298         (sse2_umulv2siv2di3): Fix predicate.
11299         (sse2_psadbw, ashrv8hi3, ashrv4si3, lshrv8hi3 lshrv4si3,
11300         lshrv2di3, ashlv8hi3, ashlv4si3, ashlv2di3): Likewise.
11301         * xmmintrin.h (_mm_mul_epu16): Rename to...
11302         (_mm_mul_epu32): This one.
11303         (_mm_cvtsi32_si128, _mm_cvtsi128_si32): New.
11304
11305         (contains_128bit_aligned_vector_p): Undo accidental checkin.
11306
11307 2002-10-22  Eric Christopher  <echristo@redhat.com>
11308
11309         * config/sparc/sparc.h: Add #error.
11310
11311 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
11312
11313         * config.gcc [s390-*-linux]: Remove s390/t-linux from tmake_file.
11314         [s390x-*-linux*]: Likewise.
11315         * config/s390/t-linux: Remove.
11316         * config/s390/s390.h: Include fixdfdi.h when building libgcc2.
11317
11318 Tue Oct 22 19:07:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
11319
11320         * i386.c (builtin_description): Add IX86_BUILTIN_PUNPCKHQDQ128.
11321         (ix86_expand_builtin): Fix MASKMOVDQU expasion.
11322         * i386.h (ix86_builtins): Add IX86_BUILTIN_PUNPCKHQDQ128.
11323         * i386.md (mmx_punpck?dq): Simplify.
11324         (sse2_pubpcklqdq): Fix.
11325         (sse2_pubpckhqdq): New.
11326         * xmmintrin.h (_mm_unpackhi_epi32): New.
11327
11328         * xmmintrin.h (_mm_cvt*, _mm_stream_pd): Fix prototypes.
11329         (_mm_shufflehi_epi16, _mm_shufflelo_epi16): Fix typo.
11330
11331 2002-10-22  Nathan Sidwell  <nathan@codesourcery.com>
11332
11333         PR c++/7209
11334         * fold_const.c (fold_binary_op_with_conditional_arg): Always
11335         build compound_expr if we used save_expr.
11336
11337 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
11338
11339         * output.h (SECTION_NOTYPE): Define.
11340         * varasm.c (default_section_type_flags_1): Set SECTION_NOTYPE for
11341         init array sections.
11342         (default_elf_asm_named_section): Mind SECTION_NOTYPE.
11343         * config/arm/arm.c (arm_elf_asm_named_section): Likewise.  Also
11344         merge TLS support.
11345
11346 2002-10-21  Richard Henderson  <rth@redhat.com>
11347
11348         * config/i386/i386.c (ix86_function_ok_for_sibcall): Look at
11349         the function type, not the return type.
11350
11351 2002-10-21  Richard Henderson  <rth@redhat.com>
11352
11353         * real.c (sticky_rshift_significand): Return inexact, don't
11354         or it in immediately.
11355         (sub_significands): Accept incomming carry.
11356         (div_significands, rtd_divmod): Update for sub_significands change.
11357         (round_for_format): Update for sticky_rshift_significand change.
11358         (do_add): Don't involve the inexact bit in addition, do give the
11359         inexact bit as the subtraction carry-in.
11360         (encode_internal, decode_internal, real_internal_format): New.
11361         * real.h (real_internal_format): Declare.
11362
11363 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11364
11365         * libgcc2.c: Fix __udiv_w_sdiv breakage on platforms that
11366         don't define sdiv_qrnnd.
11367
11368 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
11369
11370         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify
11371         using IN_RANGE.
11372         (TINY_CONSTANT_ADDRESS_P): Likewise.
11373
11374 Tue Oct 22 00:04:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
11375
11376         * i386.c (builtin_description): Add punpcklqdq and movdq2q
11377         (ix86_init_mmx_sse_builtins): Add v2di_ftype_void, di_ftype_v2di,
11378         v16qi_ftype_pchar, void_ftype_pchar_v16qi, v4si_ftype_pchar,
11379         void_ftype_pchar_v4si; Initialize __builtin_ia32_movdq2q,
11380         __builtin_ia32_loaddqa, __builtin_ia32_loaddqu, __builtin_ia32_loadd
11381         __builtin_ia32_storedqa, __builtin_ia32_storedqu, __builtin_ia32_stored
11382         __builtin_ia32_setzero128.
11383         (ix86_expand_builtin): Handle IX86_BUILTIN_CLRTI, IX86_BUILTIN_LOADDQA,
11384         IX86_BUILTIN_LOADDQU, IX86_BUILTIN_LOADD, IX86_BUILTIN_STOREDQA,
11385         IX86_BUILTIN_STOREDQU, IX86_BUILTIN_STORED, Ix86_BUILTIN_MOVQ.
11386         * i386.h (ix86_builtins): Add IX86_BUILTIN_LOADDQA, IX86_BUILTIN_LOADDQU,
11387         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_STOREDQU, IX86_BUILTIN_LOADD,
11388         IX86_BUILTIN_STORED, IX86_BUILTIN_CLRTI, IX86_BUILTIN_MOVDQ2Q,
11389         IX86_BUILTIN_PUNPCKLQDQ128, Ix86_BUILTIN_MOVQ.
11390         * i386.md (sse2_punpcklqdq, sse2_movqsse2_loadd, sse2_stored,
11391         sse2_movq): New patterns.
11392         (sse2_movdqa, sse2_movdqu, sse2_movdq2q): Fix.
11393         * xmmintrin.h (_mm_load_si128, _mm_loadu_si128, _mm_loadl_epi64,
11394         _mm_store_si128, _mm_storeu_si128, _mm_storel_epi64,
11395         _mm_setzero_si128, _mm_set_epi64, _mm_set_epi32, _mm_set_epi16,
11396         _mm_set_epi8, _mm_set1_epi64, _mm_set1_epi32, _mm_set1_epi16,
11397         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
11398         _mm_setr_epi8, _mm_unpacklo_epi64,_mm_set_moveq): New functions.
11399         (_mm_insert_epi16): Fix.
11400
11401 2002-10-21  Dale Johannesen  <dalej@apple.com>
11402
11403         * config/rs6000/rs6000.c (rs6000_reverse_condition): Handle
11404             unsafe math reversals correctly for RTL generation.
11405           (output_cbranch):  Replace rs6000_reverse_condition call
11406             by its former definition.
11407
11408 2002-10-21  Jakub Jelinek  <jakub@redhat.com>
11409
11410         * config/i386/i386.c (x86_64_sign_extended_value): Add allow_rip
11411         argument.  In CM_SMALL_PIC model consider SYMBOL_REFs binding locally or
11412         from constant pool or LABEL_REFs as sign extended if allow_rip.
11413         Change all +-1GB limits to +-16MB.
11414         (x86_64_general_operand, x86_64_szext_general_operand,
11415         x86_64_nonmemory_operand, x86_64_movabs_operand,
11416         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
11417         legitimate_address_p, ix86_expand_int_movcc): Update callers.
11418         (local_symbolic_operand): Don't allow offsets bigger than +-16MB
11419         in CM_SMALL_PIC model.
11420         (legitimate_pic_address_disp_p): Don't check offsets before
11421         calling local_symbolic_operand.
11422         (legitimize_pic_address): Force offsets bigger than +-16MB into
11423         register.
11424         * config/i386/i386.h (EXTRA_CONSTRAINT, CONST_COSTS): Likewise.
11425         * config/i386/i386-protos.h (x86_64_sign_extended_value): Update
11426         prototype.
11427
11428         * configure.in: Test for @GOTNTPOFF and @INDNTPOFF on IA-32 too.
11429         Add x86-64 test.  Set tls_first_minor to 14 on IA-32 and x86-64.
11430         * configure: Rebuilt.
11431         * config/i386/i386.c (x86_64_sign_extended_value): Don't allow TLS
11432         SYMBOL_REFs unless enclosed in UNSPEC.  Handle UNSPEC_DTPOFF,
11433         UNSPEC_GOTNTPOFF and UNSPEC_NTPOFF.
11434         (legitimate_address_p): Allow foo@dtpoff(base) even on TARGET_64BIT
11435         -fpic.
11436         (ix86_encode_section_info): Don't ever generate TLSGD or TLSLD for
11437         non-pic code if TARGET_64BIT.
11438         (legitimize_address): Generate 64-bit TLS sequences.
11439         (output_pic_addr_const): Support x86-64 TLS operators.
11440         (i386_output_dwarf_dtprel): Output 64-bit DTPOFF as .long f@DTPOFF, 0.
11441         (print_operand_address): Use %fs instead of %gs on TARGET_64BIT.
11442         Don't append (%rip) in 64-bit TLSGD and TLSLD sequences.
11443         (output_addr_const_extra): Support x86-64 TLS operators.
11444         (maybe_get_pool_constant): Handle TARGET_64BIT -fpic.
11445         (ix86_tls_get_addr): Use __tls_get_addr on TARGET_64BIT
11446         unconditionally.
11447         * config/i386/i386.md (*tls_global_dynamic_gnu): Renamed to...
11448         (*tls_global_dynamic_32_gnu): ..., add !TARGET_64BIT.
11449         (*tls_global_dynamic_sun): Renamed to...
11450         (*tls_global_dynamic_32_sun): ..., add !TARGET_64BIT.
11451         (tls_global_dynamic): Renamed to...
11452         (tls_global_dynamic_32): ... this.
11453         (tls_global_dynamic_64, *tls_global_dynamic_64): New.
11454         (*tls_local_dynamic_base_dynamic_gnu): Renamed to...
11455         (*tls_local_dynamic_base_dynamic_32_gnu): ..., add !TARGET_64BIT.
11456         (*tls_local_dynamic_base_dynamic_sun): Renamed to...
11457         (*tls_local_dynamic_base_dynamic_32_sun): ..., add !TARGET_64BIT.
11458         (tls_local_dynamic_base_dynamic): Renamed to...
11459         (tls_local_dynamic_base_dynamic_32): ... this.
11460         (tls_local_dynamic_base_dynamic_64,
11461         *tls_local_dynamic_base_dynamic_64): New.
11462         (*tls_local_dynamic_once): Renamed to...
11463         (*tls_local_dynamic_32_once): ... this.
11464
11465 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11466
11467         * libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
11468         __divdi3, __umoddi3, or __moddi3.
11469
11470 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11471
11472         * c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
11473         instead of just opt_index as switch expression.
11474
11475         * calls.c (store_one_arg): Change type of 'excess_align'
11476         to unsigned int.
11477
11478         * profile.c (output_gcov_string): Change type of 'temp'
11479         to size_t.
11480
11481 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11482
11483         * config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes.
11484         (__fixunssfdi, __fixsfdi): Likewise.
11485         * config/s390/s390.c (s390_single_hi): Initialize 'value'.
11486         (s390_single_qi): Likewise.
11487         (s390_emit_epilogue): Initialize 'offset'.  Remove signed vs.
11488         unsigned comparison warning.
11489         (s390_return_addr_rtx): New function.
11490         * config/s390/s390-protos.h (s390_return_addr_rtx): Declare it.
11491         * config/s390/s390.h (RETURN_ADDR_RTX): Use it.
11492         (HARD_REGNO_MODE_OK): Rewrite condition to silence warnings.
11493
11494 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11495
11496         * config/s390/s390.c (s390_output_mi_vcall_thunk): New function.
11497         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define target hook.
11498         (s390_output_mi_thunk): Remove.
11499         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
11500
11501 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
11502
11503         * config/h8300/h8300.h (N_REG_CLASSES): Parenthesize.
11504
11505 2002-10-20  Zack Weinberg  <zack@codesourcery.com>
11506
11507         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix an
11508         inverted test in the conditional determining the possibility
11509         of sibcalls in PIC mode.
11510
11511 2002-10-20  Richard Henderson  <rth@redhat.com>
11512
11513         * target.h (struct gcc_target): Line wrap.
11514
11515         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Static.
11516         (TARGET_ASM_OUTPUT_MI_THUNK): Define here...
11517         * config/alpha/alpha.h: ... not here.
11518         * config/alpha/alpha-protos.h: Update.
11519
11520         * config/arm/arm.c, config/arm/arm.h, config/arm/arm-protos.h
11521         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11522         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
11523         config/i386/i386-protos.h, config/i386/i386.c, config/i386/openbsd.h,
11524         config/i386/unix.h, config/i960/i960-protos.h, config/i960/i960.c,
11525         config/i960/i960.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
11526         config/ia64/ia64.h, config/m68k/linux.h, config/m68k/m68k-protos.h,
11527         config/m68k/m68k.c, config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
11528         config/mmix/mmix-protos.h, config/mmix/mmix.c, config/mmix/mmix.h,
11529         config/pa/pa-protos.h, config/pa/pa.c, config/pa/pa.h,
11530         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
11531         config/sparc/openbsd.h, config/sparc/sparc-protos.h,
11532         config/sparc/sparc.c, config/sparc/sparc.h,
11533         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11534         config/stormy16/stormy16.h: Similarly.
11535
11536         * config/m68k/m68k.c (m68k_output_mi_thunk): Replicate mnemonic
11537         selection logic from call patterns.
11538
11539 2002-10-20  Mark Mitchell  <mark@codesourcery.com>
11540
11541         * config/m68k/m68k.c (m68k_output_mi_thunk): Fix typo.
11542
11543 2002-10-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11544
11545         PR other/8202
11546         * i386.c (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Define and
11547         expand __builtin_ia32_pslldqi128 and __builtin_ia32_psrldqi128.
11548         * i386.h (IX86_BUILTIN_PSLLDQI128, IX86_BUILTIN_PSRLDQI128): New.
11549         * xmmintrin.h (_mm_srli_si128, _mm_slli_si128): New.
11550
11551 2002-10-20  Roger Sayle  <roger@eyesopen.com>
11552
11553         PR c/761
11554         * toplev.c (flag_unsafe_profile_arcs): Remove.
11555         (flag_bounded_pointers): Remove.
11556         (flag_bounds_check): Correct comments.
11557         (lang_independent_options): Remove -funsafe-profile-arcs and
11558         -fbounded-pointers.  Correct -fbounds-check comments.
11559
11560         * flags.h: Correct flag_schedule_interblock comments.
11561         (flag_bounded_pointers): Remove prototype.
11562         (flag_bounds_check): Correct comments.
11563
11564         * c-opts.c (c_common_init_options): No need to mark
11565         flag_bounds_check as unspecified.
11566         (c_common_post_options): And no need to set it from
11567         flag_bounded_pointers if its still unspecified.
11568
11569         * doc/invoke.texi: Fix some overfull hboxes in "make dvi".
11570         Document --version, -feliminate-dwarf-2-dups, -fno-sched-interblock,
11571         -fno-sched-spec, -fsched-spec-load, -fsched-spec-load-dangerous,
11572         -fsched-verbose=n, -fno-branch-count-reg and -fbounds-check.
11573
11574 Sat Oct 19 22:02:28 2002  Alexandre Oliva  <aoliva@redhat.com>
11575         Angela Marie Thomas  <angela@releasedominatrix.com>
11576         Brendan Kehoe  <brendan@zen.org>
11577         Nick Clifton  <nickc@redhat.com>
11578         Andrew Haley  <aph@redhat.com>
11579
11580         * configure.in (--with-sysroot): New.  Don't inhibit libc if
11581         given.  AC_SUBST TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE
11582         and CROSS_SYSTEM_HEADER_DIR.
11583         * configure: Rebuilt.
11584         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): Set in configure.
11585         (TARGET_SYSTEM_ROOT): New.
11586         (DRIVER_DEFINES): Define CROSS_INCLUDE_DIR from
11587         CROSS_SYSTEM_HEADER_DIR.
11588         (install-gcc-tooldir): New target.
11589         (stmp-fixinc): Do not create $(libsubdir), but rather bail out
11590         if SYSTEM_HEADER_DIR does not exist and it's not the default
11591         sys-include directory.
11592         (deduced.h, stmp-fixproto): Quote SYSTEM_HEADER_DIR properly.
11593         (install-mkheaders): Likewise.
11594         * gcc.c (target_system_root): New variable.
11595         (add_sysrooted_prefix): New function.
11596         (process_command): Recompute run-time target_system_root from
11597         gcc_exec_prefix, keeping it unchanged if the relocated sysroot
11598         does not exist.
11599         (do_spec_1): Process 'R' spec.
11600         (main): Add md_exec_prefix to exec_prefixes regardless of
11601         startfile_prefix_spec.  Use add_sysrooted_prefix for
11602         startfile_prefixes, and don't skip the default ones when cross
11603         compiling with sysroot enabled.  Removed unused case of
11604         non-absolute standard_startfile_prefix.
11605         * config/interix.h: Remove the only potential, yet disabled,
11606         occurrence of non-absolute (empty) standard_startfile_prefix.
11607         * config/sh/linux.h (LIB_SPEC): Add -rpath-link in non-static
11608         linking.
11609         * config/mips/linux.h (LIB_SPEC): Define as in sh/linux.h.
11610         * doc/install.texi (--with-sysroot): Document.
11611         (--with-headers, --with-libs): Deprecate.
11612
11613 2002-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11614             Mark Mitchell  <mark@codesourcery.com>
11615
11616         * alpha-protos.h (alpha_output_mi_thunk_osf): Update signature to
11617         match target.h.
11618         * arm-protos.h, arm.c (arm_output_mi_thunk): Likewise.
11619         * cris-protos.h, cris.c (cris_asm_output_mi_thunk): Likewise.
11620         * frv-protos.h, frv.c (frv_asm_output_mi_thunk): Likewise.
11621         * i386-protos.h, i386.c (x86_output_mi_vcall_thunk,
11622         x86_output_mi_thunk): Likewise.
11623         * i960-protos.h, i960.c (i960_output_mi_thunk): Likewise.
11624         * ia64-protos.h, ia64.c (ia64_output_mi_thunk): Likewise.
11625         * m68k-protos.h, m68k.c (m68k_output_mi_thunk): Likewise.
11626         * mmix-protos.h, mmix.c (mmix_asm_output_mi_thunk): Likewise.
11627         * rs6000-protos.h, rs6000.c (output_mi_thunk): Likewise.
11628         * s390-protos.h, s390.c (s390_output_mi_thunk): Likewise.
11629         * stormy16-protos.h, stormy16.c (xstormy16_asm_output_mi_thunk):
11630         Likewise.
11631         * vax-protos.h, vax.c (vax_output_mi_thunk): Likewise.
11632
11633         * target.h (gcc_target): Update output_mi_thunk and
11634         output_mi_vcall_thunk to take a HOST_WIDE_INT delta and
11635         vcall_index.
11636
11637         * config/alpha/alpha.c: Replace ASM_OUTPUT_MI_THUNK with
11638         TARGET_ASM_OUTPUT_MI_THUNK in comments.
11639         * config/alpha/vms.h (ASM_OUTPUT_MI_THUNK): Don't #undef it.
11640         (TARGET_ASM_OUTPUT_MI_THUNK): #undef it.
11641         * config/frv/frv.h (DEFAULT_VTABLE_THUNKS): Remove definition.
11642         * config/i386/i386-protos.h (x86_output_mi_vcall_thunk): Update
11643         signature.
11644         * config/i386/i386.c (x86_output_mi_vcall_thunk): Likewise.
11645         * config/i386/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
11646         TARGET_ASM_OUTPUT_MI_THUNK in comments.
11647         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Don't define.
11648         (TARGET_ASM_OUTPUT_MI_THUNK): Do define.
11649         * config/m68k/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
11650         TARGET_ASM_OUTPUT_MI_THUNK in comments.
11651         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Remove #ifdef
11652         ASM_OUTPUT_MI_THUNK and replace with check of targetm.
11653
11654         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Update signature.
11655         (TARGET_ASM_OUTPU_MI_VCALL_THUNK): Likewise.
11656
11657 2002-10-19  Brad Lucier  <lucier@math.purdue.edu>
11658
11659         * real.c (do_add): Fix 0+0 sign corner case.
11660         (do_divide): Fix Inf/0 corner case.
11661
11662 Sun Oct 20 00:31:31 CEST 2002  Jan Hubicka  <jh@suse.cz>
11663
11664         * i386.c (classify_argument): Pass MMX arguments in memory
11665         (ix86_expand_builtin): Expand proper address mode for cflush.
11666         * i386.md (movdqa): Fix typo.
11667         (sse2_cflush): Accept DImode addresses.
11668
11669         * xmmintrin.h (_mm_sqrt_sd): Accept two arguments.
11670         (_mm_max_sd): Fix pasto.
11671         (_mm_storeh_pd, _mm_storel_pd): Fix.
11672
11673         * i386.c (bdesc_comi): Fix to match specification.
11674         (ix86_expand_sse_comi): Emit the comparison properly.
11675         * i386.md (sse_comi, sse2_comi, sse_ucomi, sse2_ucomi):
11676         Do not use comparison operator.
11677         (vnmaskcmp): Fix template.
11678
11679         * xmmintrin.h (_mm_cvtps_pi16): Fix.
11680
11681 2002-10-19  Sebastian Pop  <s.pop@laposte.net>
11682
11683         * dependence.c : Removed.
11684         * Makefile.in : Remove dependence.o.
11685
11686 Sat Oct 19 10:46:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
11687
11688         * mmintrin.h (__m64): typedef it to v2si.
11689         (_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
11690         _mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
11691         _mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
11692         _mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
11693         _mm_or_si64, _mm_xor_si64): Add neccesary casts.
11694         * xmmintrin.h (_mm_setzero_si64): Likewise.
11695
11696         * i386.h (ALIGN_MODE_128): Update comment; add missing modes
11697         (SSE_REG_MODE_P, MMX_REG_MODE_P): New macros.
11698
11699         PR target/7693
11700         Patch by Shawn Wagner
11701         * mmintrin.h: Replace pi64 by si64.
11702
11703 2002-10-18  David Edelsohn  <edelsohn@gnu.org>
11704
11705         * rs6000.md (movdf_hardfloat32): Order alternatives consistently.
11706         Use length of 4 not *.
11707         (movdf_hardfloat64): Same.  Support DFmode moves to/from CTR/LR.
11708         (movdf_softfloat64): Likewise.
11709         (movdi_internal32): Use length of 4 not *.
11710         (movti_power): Same.
11711         (ctrsi, ctrdi): Same.
11712
11713 2002-10-18  Zack Weinberg  <zack@codesourcery.com>
11714
11715         * c-decl.c (start_decl): Point users of the old initialized-
11716         typedef extension at __typeof__.
11717
11718 2002-10-18  Richard Henderson  <rth@redhat.com>
11719
11720         * real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New.
11721         (real_to_decimal): Re-implement using the logic from the
11722         gcc 3.2 etoasc.  Comment heavily.
11723         (div_significands): Simplify loop startup and comparison logic.
11724
11725 2002-10-18  Mark Mitchell  <mark@codesourcery.com>
11726
11727         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Default to NULL.
11728         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Likewise.
11729         (TARGET_ASM_OUT): Add them.
11730         * target.h (asm_out): Add output_mi_thunk and
11731         output_mi_vcall_thunk.
11732         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11733         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11734         * config/arm/arm-protos.h (arm_output_mi_thunk): Declare.
11735         * config/arm/arm.c (arm_output_mi_thunk): Define.
11736         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11737         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11738         * config/cris/cris.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11739         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11740         * config/frv/frv.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11741         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11742         * config/i386/i386-protos.h (x86_output_mi_thunk): Adjust
11743         prototype.
11744         (x86_output_mi_vcall_thunk): Declare.
11745         * config/i386/i386.c (override_options): Clear
11746         output_mi_vcall_thunk in 64-bit mode.
11747         (ix86_fntype_regparm): New function.
11748         (ix86_return_pops_args): Use it.
11749         (ia32_this_parameter): New function.
11750         (x86_output_mi_vcall_thunk): New function.
11751         (x86_output_mi_thunk): Use it
11752         * config/i386/unix.h (TARGET_ASM_OUTPUT_MI_THUNK): Adjust.
11753         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define.
11754         * config/i960/i960-protos.h (i960_output_mi_thunk): Declare.
11755         * config/i960/i960.c (i960_output_mi_thunk): New function.
11756         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Adjust.
11757         * config/ia64/ia64-protos.h (ia64_output_mi_thunk): Declare.
11758         * config/ia64/ia64.c (ia64_output_mi_thunk): Define.
11759         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11760         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11761         * config/m68k/m68k-protos.h (m68k_output_mi_thunk): New function.
11762         * config/m68k/linux.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11763         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11764         * config/m68k/netbsd-elf.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11765         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11766         * config/mmix/mmix.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11767         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11768         * config/pa/pa.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11769         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11770         * config/rs6000/sysv4.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11771         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11772         * config/s390/s390-protos.h (s390_output_mi_thunk): Declare.
11773         * config/s390/s390.c (s390_output_mi_thunk): Define.
11774         * config/s390/s390.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11775         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11776         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11777         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11778         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11779         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11780         * config/vax/vax-protos.h (vax_output_mi_thunk): Declare.
11781         * config/vax/vax.c (vax_output_mi_thunk): Define.
11782         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ...
11783         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
11784         * doc/tm.texi: Adjust documentation.
11785
11786 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
11787
11788         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define
11789         __enable_execute_stack function.
11790         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
11791         as NETBSD_ENABLE_EXECUTE_STACK.
11792         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
11793         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
11794         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
11795         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
11796         * config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
11797
11798 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
11799
11800         * config/i386/i386.c (x86_initialize_trampoline): Emit a call
11801         to __enable_execute_stack with the address of the trampoline
11802         if TRANSFER_FROM_TRAMPOLINE is defined.
11803         * config/i386/i386.h (TARGET_64BIT): Expand to a compile-time
11804         constant if building libgcc2.
11805
11806 Thu Oct 17 17:40:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
11807
11808         * i386.c (pentium4_cost): Fix according to Intel recommendations.
11809         (ix86_memory_move_cost): Fix for 64bit compilation.
11810
11811 2002-10-17  Roger Sayle  <roger@eyesopen.com>
11812
11813         * doc/c-tree.texi: Update description of COND_EXPR tree nodes.
11814
11815 2002-10-17  Geoffrey Keating  <geoffk@apple.com>
11816
11817         * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Allow arbitrary modes
11818         in CTR/LR/MQ.
11819         * config/rs6000/rs6000.md (movcc_internal1): Support CCmode moves
11820         to/from CTR/LR/MQ.
11821         (movsf_hardfloat): Support SFmode moves to/from CTR/LR/MQ.
11822         (movsf_softfloat): Likewise.
11823
11824 2002-10-17  Janis Johnson  <janis187@us.ibm.com>
11825
11826         * Makefile.in (site.exp): Add ALT_CXX_UNDER_TEST and COMPAT_OPTIONS.
11827
11828 2002-10-17  Jason Thorpe  <thorpej@wasabisystems.com>
11829
11830         * config/alpha/alpha.c (alpha_initialize_trampoline): Use
11831         tramp, not addr, to pass the trampoline address to
11832         __enable_execute_stack.
11833
11834 Thu Oct 17 18:40:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
11835
11836         * mmintrin.h: Guard by __MMX__
11837         * xmmintrin.h: Guard by __SSE__
11838
11839         PR other/8062
11840         * xmmintrin.h (_MM_SHUFFLE2): New macro.
11841         (_mm_load*_?d): New functions.
11842         (_mm_set*_?d): New functions.
11843         (_mm_store*_?d): New functions.
11844
11845 Wed Oct 16 15:01:29 CEST 2002  Jan Hubicka  <jh@suse.cz>
11846
11847         Really commit patch announced at Oct 14
11848         PR c/7344
11849         * predict.c (can_predict_insn_p): New function.
11850         (estimate_probability): Avoid unnecesary work.
11851         (process_note_prediction): Likewise.
11852         * toplev.c (rest_of_compilation): Account early branch prediction pass
11853         as TV_BRANCH_PROB.
11854
11855         PR other/8048
11856         Found by Ian Ollmann
11857         * xmmintrin.h (_mm_shuffle_pd): Fix typo.
11858         (_mm_load?_pd): Likewise.
11859         (_mm_store?_pd): Likewise.
11860
11861         PR target/7386
11862         * i386.c (builtin_description):Drop cmpg[te]s[sd].
11863         * xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
11864         swapped alternative.
11865
11866         PR opt/7630
11867         * reload1.c (reload_inner_reg_of_subreg): New argument output;
11868         (push_reload): Update call.
11869
11870 2002-10-17  Richard Sandiford  <rsandifo@redhat.com>
11871
11872         * config.gcc (mips*-*-*): Add OBJECT_FORMAT_ELF to $tm_defines
11873         if using mips/elf.h or mips/elf64.h.
11874         * config/mips/elf.h (OBJECT_FORMAT_ELF): Remove.
11875         * config/mips/elf64.h (OBJECT_FORMAT_ELF): Remove.
11876
11877 2002-10-16  Aldy Hernandez  <aldyh@redhat.com>
11878
11879         * config/rs6000/rs6000.c (function_arg): Set inner mode of V1DI to
11880         SI.
11881
11882 2002-10-16  Ulrich Weigand  <uweigand@de.ibm.com>
11883
11884         * config/s390/linux.h (ASM_DOUBLE, _ASM_OUTPUT_LONG): Remove.
11885         (LPREFIX): Likewise.
11886         (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, ASM_FORMAT_PRIVATE_NAME,
11887         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT,
11888         ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_BSS,
11889         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
11890         GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h.
11891
11892         * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX,
11893         ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP,
11894         ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
11895         BSS_SECTION_ASM_OP): Move from linux.h.
11896         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11897         Also, use ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
11898
11899         * config/s390/s390.c (s390_function_profiler): Use
11900         ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
11901
11902 2002-10-15  Eric Christopher  <echristo@redhat.com>
11903
11904         * stor-layout.c (layout_type): Call GET_MODE_BITSIZE once.
11905         * java/parse.y (obtain_incomplete_type): Make pointer
11906         ptr_mode.
11907
11908 2002-10-15  Richard Henderson  <rth@redhat.com>
11909
11910         * real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
11911         as arguments.  Bound DIGITS by the available buffer size.
11912         (real_to_hexadecimal): Likewise.
11913         * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
11914         (REAL_VALUE_TO_DECIMAL): Remove.
11915         * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
11916         sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
11917         config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
11918         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
11919         config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
11920         config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
11921         config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
11922         use real_to_decimal directly, and with the proper arguments.
11923         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
11924
11925 2002-10-15  Jim Wilson  <wilson@redhat.com>
11926
11927         * reload1.c (merge_assigned_reloads): After converting overlapping
11928         reloads to RELOAD_OTHER, abort if there are now conflicting reloads.
11929
11930         * config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
11931
11932 Tue Oct 15 22:08:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
11933
11934         * expr.c (do_tablejump): Fix typo in my previous commit.
11935
11936 2002-10-15  Richard Sandiford  <rsandifo@redhat.com>
11937
11938         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %<mgp32 to %{<mgp32}.
11939
11940 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
11941
11942         * config/s390/s390.c (s390_split_branches): Add return
11943         value.  Add parameters TEMP_REG and TEMP_USED.  Use unspec 104.
11944
11945         (find_base_register_in_addr): New function.
11946         (find_base_register_ref): New function.
11947         (replace_base_register_ref): New function.
11948
11949         (struct constant_pool): Add members pool_insn, insns, and anchor.
11950         Remove member last_insn.
11951         (s390_start_pool): Initialize them.
11952         (s390_end_pool): Emit pool placeholder insn.
11953         (s390_add_pool_insn): New function.
11954         (s390_find_pool): Use insns bitmap instead of addresses.
11955         (s390_dump_pool): Replace placeholder insn.  Emit anchor.
11956         Replace unspec 104 by local-pool-relative references.
11957         (s390_output_constant_pool): Output anchor label if required.
11958         (s390_output_symbolic_const): Handle unspec 104 and 105.
11959         (s390_add_pool): Remove, replace by ...
11960         (s390_add_constant, s390_find_constant): ... these new functions.
11961         (s390_add_anchor): New function.
11962
11963         (s390_chunkify_pool): Delete, replace by ...
11964         (s390_chunkify_start, s390_chunkify_finish,
11965         s390_chunkify_cancel): ... these new functions.
11966         (s390_optimize_prolog): Add parameter TEMP_REGNO.
11967         Recompute register live data for special registers.
11968         (s390_fixup_clobbered_return_reg): New function.
11969         (s390_machine_dependent_reorg): Rewrite to use new
11970         s390_chunkify_... routines.
11971
11972         config/s390/s390.md ("reload_base"): Rename to ...
11973         ("reload_base_31"): ... this.
11974         ("reload_base_64"): New insn.
11975         ("reload_base2"): Remove.
11976         ("reload_anchor"): New insn.
11977         ("pool"): New insn.
11978
11979         s390.c (s390_pool_overflow): Remove.
11980         s390.h (s390_pool_overflow): Likewise.
11981         s390.md ("cjump", "icjump", "doloop_si"): Remove s390_pool_overflow.
11982
11983 Tue Oct 15 16:51:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
11984
11985         * sh.md (movv8qi_i+2): Don't split if source is -1.
11986
11987 2002-10-15  Janis Johnson  <janis187@us.ibm.com>
11988
11989         * doc/install.texi: Formatting changes for conformance to HTML 4.01.
11990
11991 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
11992
11993         PR opt/7409
11994         * loop.c (loop_regs_scan): Mark registers used for function
11995         argument passing as MAY_NOT_OPTIMIZE.
11996
11997 Mon Oct 14 19:22:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
11998
11999         * gcov-io.h (gcov_info): Fix type.
12000         * profile.c (create_profiler): Fix type mismatch.
12001
12002 Mon Oct 14 20:33:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
12003
12004         * i386.md (movv2di_internal): New pattern.
12005         (movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate.
12006         (movv2di): New expander.
12007         * i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands.
12008
12009         * i386.c (ix86_expand_timode_binop_builtin): Delete.
12010         (builtin_description): Add SSE1 logicals; rename SSE2 logicals.
12011         (ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
12012         (ix86_expand_builtin): Likewise.
12013         * i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
12014         sse_andti3,
12015         sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
12016         sse_andnti3,
12017         sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
12018         sse_orti3,
12019         sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
12020         sse_xorti3): Kill.
12021         (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
12022          sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
12023         (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
12024          *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns.
12025         (*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3,
12026          *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns.
12027
12028         * xmmintrin.h (__m128i): Define as __v2di.
12029
12030         PR c++/6419
12031         (expand_expr): Use DECL_RTL_SET_P.
12032
12033 2002-10-14  Roger Sayle  <roger@eyesopen.com>
12034
12035         * combine.c (simplify_set):  Treat MODE_CC registers like cc0.
12036
12037 2002-10-14  Roger Sayle  <roger@eyesopen.com>
12038             Zack Weinberg <zack@codesourcery.com>
12039
12040         * config/i386/i386.c (k6_cost): Correct typo.
12041
12042 2002-10-14  Mark Mitchell  <mark@codesourcery.com>
12043
12044         PR optimization/6631
12045         * alias.c (objects_must_conflict_p): Check honor_readonly when
12046         examining TYPE_READONLY.
12047         * function.c (assign_stack_temp_for_type): Likewise.
12048
12049 2002-10-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
12050
12051         * config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix):
12052         Swap zero extension arguments.
12053         (umaxhi3): Fix instruction class.
12054         PR target/7211
12055         (prefetch): Fix prefetch instructions.
12056         PR target/7238
12057         (pkwb): Fix output constraint.
12058
12059 2002-10-14  Alexandre Oliva  <aoliva@redhat.com>
12060
12061         * config/mips/mips.c (print_operand): Increase buffer size for
12062         real numbers.
12063
12064 2002-10-14  Richard Henderson  <rth@redhat.com>
12065
12066         PR opt/8165
12067         * gcse.c (adjust_libcall_notes): Revert last change.
12068         * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM.
12069
12070 2002-10-14  Andrew Haley  <aph@redhat.com>
12071
12072         * tree-inline.c (remap_block): All local class initialization
12073         flags go in the outermost scope.
12074         (expand_call_inline): Call java_inlining_map_static_initializers.
12075         (expand_call_inline): Call java_inlining_merge_static_initializers.
12076         * java/lang.c (merge_init_test_initialization): New.
12077         (java_inlining_merge_static_initializers): New.
12078         (inline_init_test_initialization): New.
12079         (java_inlining_map_static_initializers): New.
12080
12081         * tree-inline.c (expand_call_inline): Convert retvar to expected
12082         type.
12083
12084 2002-10-14  Graham Stott  <graham.stott@btinternet.com>
12085
12086         * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
12087
12088 2002-10-14  Aldy Hernandez  <aldyh@redhat.com>
12089
12090         * stmt.c: Fix typo in comment.
12091
12092 Mon Oct 14 11:35:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
12093
12094         * c-common.c (c_common_type_for_mode): Add V2HImode case.
12095         * tree.c (build_common_tree_nodes_2): Initialize
12096         unsigned_V2HI_type_node and V2HI_type_node.
12097         * tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE.
12098         (unsigned_V2HI_type_node, V2HI_type_node): Define.
12099
12100 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
12101
12102         * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
12103         Handle TARGET_64BIT.
12104
12105 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
12106
12107         * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
12108         * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
12109         (MULTILIB_DIRNAMES): Remove long32.
12110         (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
12111         (MULTILIB_REDUNDANT_DIRS): Remove.
12112
12113 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
12114
12115         * doc/tm.texi (DRIVER_SELF_SPECS): Document.
12116         * gcc.c (driver_self_specs): New variable.
12117         (do_self_spec): New function.
12118         (main): Use it to process driver_self_specs.
12119
12120 2002-10-13  Richard Henderson  <rth@redhat.com>
12121
12122         * config/i386/i386.c (ix86_function_ok_for_sibcall): Reject
12123         indirect sibcalls when regparm >= 3.
12124
12125         * config/i386/i386.c (sibcall_insn_operand): New.
12126         * config/i386/i386.h (PREDICATE_CODES): Update.
12127         * config/i386/i386-protos.h: Update.
12128         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12129
12130         * rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
12131
12132 2002-10-12  Roger Sayle  <roger@eyesopen.com>
12133
12134         * simplify-rtx.c (simplify_binary_operation) [ASHIFTRT]: Optimize
12135         arithmetic right shifts of ~0 during RTL simplifications.
12136
12137 2002-10-12  Neil Booth  <neil@daikokuya.co.uk>
12138
12139         PR preprocessor/7862
12140         PR preprocessor/8190
12141         * gcc.c (cpp_unique_options): Don't delete .d files.
12142         Remove stray whitespace.
12143
12144 2002-10-12  Naohiko Shimizu  <pshimizu@fa2.so-net.ne.jp>
12145
12146         * pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant.
12147         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
12148         * pdp11.c (pdp11_output_function_prologue): 0%o -> %#o.
12149         (pdp11_output_function_epilogue, output_ascii): Likewise.
12150         (output_addr_const_pdp11): Likewise.
12151         * pdp11.md (movdi): Use offsetable memory for floating store.
12152         (lshrsi3, negsi2): Delete irrelevant comment.
12153
12154 2002-10-11  Andreas Bauer  <baueran@in.tum.de>
12155
12156         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12157         indirect calls to be sibcall optimized.
12158         * config/i386/i386.md (sibcall_1): New.
12159         (call_1): Add no-sibcalls condition.
12160         (sibcall_value_1): New.
12161         (call_value_1): Add no-sibcalls condition.
12162
12163 2002-10-11  Eric Christopher  <echristo@redhat.com>
12164
12165        * output.h (default_valid_pointer_mode): Declare.
12166        * varasm.c (default_valid_pointer_mode): Define.
12167        * target-def.h (TARGET_VALID_POINTER_MODE): Use.
12168        * target.h: Ditto.
12169        * tree.c (build_pointer_type_for_mode): New function.
12170        (build_pointer_type): Use.
12171        (build_reference_type_for_mode): New function.
12172        (build_reference_type): Use.
12173        * tree.h: Declare new functions.
12174        * c-common.c (handle_mode_attribute): Use new functions, check
12175        for type.
12176        * stor-layout.c (layout_type): Depend on machine mode for
12177        REFERENCE_TYPE and POINTER_TYPE.
12178        * dwarf2out.c (simple_type_size_in_bits): Move upward in file.
12179        (modified_type_die): Use instead of PTR_SIZE for POINTER_TYPE
12180        and REFERENCE_TYPE.
12181        * config/mips/mips.c (mips_valid_pointer_mode): New function.
12182        (TARGET_VALID_POINTER_MODE): Use and define.
12183        * config/mips/mips-protos.h (mips_valid_pointer_mode): Declare.
12184
12185 2002-10-11  Geoffrey Keating  <geoffk@apple.com>
12186
12187         * cse.c (mention_regs): Set SUBREG_TICKED to the register number,
12188         not the address of the REG.
12189         (struct cse_reg_info): Make subreg_ticked unsigned.
12190
12191 2002-10-11  Janis Johnson  <janis187@us.ibm.com>
12192
12193         * doc/compat.texi: Add info about C++ libraries.
12194
12195 2002-10-11  Richard Henderson  <rth@redhat.com>
12196
12197         PR opt/8165
12198         * gcse.c (adjust_libcall_notes): Also adjust notes for INSN.
12199
12200 2002-10-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12201
12202         * cfganal.c (dfs_enumerate_from): Use PARAMS.
12203         * genautomata.c (output_insn_code_cases): Likewise.
12204         * real.c (real_format): Likewise.
12205         * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
12206         ensure value is promoted before doing subtraction.
12207
12208 Fri Oct 11 22:22:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
12209
12210         * calls.c (expand_call): Simplify noreturn call.
12211
12212         PR c/7344
12213         * cfgbuild.c (make_edges): Create edge cache when we do have
12214         large jumptable.
12215         * expr.c (do_tablejump): Note size of maximal jumptable.
12216         * function.c (prepare_function_start): Zero out size.
12217         * function.h (function): Add max_jumptable_ents.
12218
12219         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
12220
12221 Fri Oct 11 12:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
12222
12223         * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI
12224         register for mperm_w operation.
12225
12226 Fri Oct 11 10:56:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
12227
12228         * emit-rtl.c (gen_lowpart_common): When asked to make a vector from
12229         an integer, use simplify_gen_subreg.
12230
12231 2002-10-10  Diego Novillo  <dnovillo@redhat.com>
12232
12233         * calls.c (flags_from_decl_or_type): Make extern.
12234         (ECF_*): Move ...
12235         * rtl.h (ECF_*): ... here.
12236         (flags_from_decl_or_type): Declare.
12237
12238 2002-10-10  Roger Sayle  <roger@eyesopen.com>
12239             Nathan Sidwell <nathan@codesourcery.com>
12240
12241         * fold-const.c (fold) [RSHIFT_EXPR]: Optimize arithmetic right
12242         shifts of the form -1 >> x.
12243
12244 Thu Oct 10 16:52:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
12245
12246         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
12247
12248 2002-10-10  Aldy Hernandez  <aldyh@redhat.com>
12249
12250         * extend.texi (Vector Extensions): Remove comment about single
12251         element vectors.
12252
12253 2002-10-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12254
12255         * fold-const.c (size_htab_hash): Use htab_hash_pointer.
12256         * function.c (insns_for_mem_hash): Likewise.
12257         * varasm.c (STRHASH): Likewise.
12258
12259 2002-10-10  Stuart Hastings  <stuart@apple.com>
12260
12261         * cse.c (struct cse_reg_info): Add subreg_ticked.
12262         (SUBREG_TICKED): New.
12263         (get_cse_reg_info): Initialize SUBREG_TICKED.
12264         (mention_regs): Use it.
12265         (invalidate): Set SUBREG_TICKED.
12266         (invalidate_for_call): Likewise.
12267         (addr_affects_sp_p): Likewise.
12268
12269 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
12270
12271         * config/i386/i386.md (tls_local_dynamic_base): Put pic reg
12272         into proper operand.
12273
12274 2002-10-10  Denis Chertykov  <denisc@overta.ru>
12275
12276         * config/ip2k/ip2k.c (function_epilogue): Optimize stack
12277         deallocation.
12278         * config/ip2k/libgcc.S: Combine routines used by function
12279         epilogue.
12280
12281 2002-10-10  Jim Wilson  <wilson@redhat.com>
12282
12283         * cse.c (fold_rtx): Don't perform associative optimization for DIV and
12284         UDIV.
12285
12286 2002-10-10  David Edelsohn  <edelsohn@gnu.org>
12287
12288         * config/rs6000/aix52.h: New file.
12289         * config/rs6000/t-aix52: New File.
12290         * config.gcc (rs6000-ibm-aix5.1.*): New entry.
12291         (rs6000-ibm-aix[56789].*): Default to AIX 5.2.
12292
12293 Thu Oct 10 19:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
12294
12295         PR target/5610
12296         * invoke.texi (-msse-math): Kill
12297         (-msse): Add note to mfpmath=sse.
12298
12299 Thu Oct 10 17:08:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
12300
12301         PR target/7723
12302         * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves.
12303
12304 2002-10-10  Neil Booth  <neil@daikokuya.co.uk>
12305
12306         PR preprocessor/8179
12307         * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location
12308         as cc1_options.
12309         (default_compilers): Pass debug options when preprocessing
12310         stdin.
12311
12312 2002-10-06  Richard Henderson  <rth@redhat.com>
12313
12314         * toplev.c (rest_of_compilation): Revert opt/2960 change.
12315
12316 Wed Oct  9 21:18:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
12317
12318         * i386.c (*_cost): Add branch costs.
12319         (override_options): set ix86_branch_cost.
12320         (ix86_expand_int_movcc): Use BRANCH_COST.
12321         * i386.h (costs): Add branch_cost.
12322
12323 2002-10-09  Zack Weinberg  <zack@codesourcery.com>
12324
12325         PR c/7353
12326         * c-decl.c (start_decl): Unconditionally issue error for
12327         'typedef foo = bar'.
12328         (finish_decl): Remove special case for TYPE_DECL with initializer.
12329
12330         * doc/extend.texi: Delete "Naming Types" section.  Change all
12331         cross-references to that section to refer to "Typeof" instead.
12332         Add the useful safe-max()-macro example from "Naming Types" to
12333         "Typeof", rewritten using that extension.  Add some compatibility
12334         notes to "Typeof."
12335
12336 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12337
12338         * loop.c: Revert 2002-08-15 change.
12339         (LOOP_REGNO_NREGS): Ensure type is int.
12340
12341 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
12342
12343         * config/rs6000/rs6000.md (extenddftf2): Change to define_insn
12344         which copies first FPR and clears second.
12345         (extendsftf2): Same.
12346         (floatditf2): Fix typo.
12347         (floatsitf2): Same.
12348         (fix_trunctfdi2): Same.
12349         (fix_trunctfsi2): Same.
12350
12351 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12352
12353         * conflict.c (arc_hash): Change return type to hashval_t.
12354         * cselib.c (get_value_hash): Likewise.
12355         * genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash,
12356         state_hash, automata_list_hash): Likewise.
12357         * read-rtl.c (def_hash): Likewise.
12358         * tree.c (type_hash_hash): Likewise.
12359
12360 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
12361
12362         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call
12363         prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.
12364
12365 Wed Oct  9 15:54:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
12366
12367         * sh.md (ffssi2): Fix emitted code.
12368
12369 2002-10-09  Ulrich Weigand  <uweigand@de.ibm.com>
12370
12371         * cse.c (insn_live_p): Pass insn pattern, not full insn
12372         to may_trap_p.
12373
12374 2002-10-09  Neil Booth  <neil@daikokuya.co.uk>
12375
12376         * cppmacro.c (paste_tokens): Only allow / to paste with =.
12377
12378 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
12379
12380         * config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
12381         64-bit hosts.
12382         (movtf_internal): Reference correct displacement for second value
12383         in memory.
12384         (movtf splitter): Correct generation of constants in 64-bit mode.
12385
12386 2002-10-09  Alan Modra  <amodra@bigpond.net.au>
12387
12388         * libgcc2.c (__floatdisf): Properly cure double rounding.
12389
12390 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12391
12392         * c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
12393         * doc/cpp.texi (Common Predefined Macros): Document.
12394
12395 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12396
12397         PR doc/7484
12398         * doc/invoke.texi (Option Summary): List
12399         -Wmissing-declarations as a C only option.
12400
12401 2002-10-08  Roger Sayle  <roger@eyesopen.com>
12402
12403         * fold-const.c (fold) [LROTATE_EXPR, RROTATE_EXPR]: Optimize
12404         left and right rotates of ~0, i.e. integer_all_onesp (arg0).
12405         [LSHIFT_EXPR, RSHIFT_EXPR]: Optimize shifts and rotates of zero.
12406
12407 Tue Oct  8 01:24:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
12408
12409         * i386.c (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
12410         x86_sse_typeless_stores, x86_sse_load0_by_pxor): New global
12411         variables.
12412         (safe_vector_operand): Update sse_clrv4sf call.
12413         (ix86_expand_buildin): Likewise
12414         * i386.h (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
12415         x86_sse_typeless_stores, x86_sse_load0_by_pxor): Declare.
12416         (TARGET_SSE_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REGS,
12417         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_TYPELESS_LOAD0): New
12418         macros.
12419         * i386.md (movsf*, movdf*, movti, movv4sf, movv2df, movv16qi, movv8hi,
12420         movv4si):  Obey the new flags.
12421         (floatsi2sf, floatdi2sf, truncatedf2sf): Emit extra load of 0 to avoid
12422         reformating penalty.
12423         (anddf, cmov patterns): Avoid reformating by first converting.
12424         (sse_cvtsd2ss): Fix predicate.
12425         (sse2_clrti): Fix mode,
12426         (sse_clrv4sf): Avoid unspec.
12427
12428 2002-10-08  Jakub Jelinek  <jakub@redhat.com>
12429
12430         * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
12431         mno-app-regs|mcmodel=medany.
12432         (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
12433         (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
12434         (CRTSTUFF_T_CFLAGS): Define.
12435
12436 2002-10-08  Roger Sayle  <roger@eyesopen.com>
12437
12438         PR target/8087
12439         * simplify-rtx.c (avoid_constant_pool_reference):  Allow constant
12440         pool references that are constructed using LO_SUM.
12441
12442 2002-10-08  Nathan Sidwell  <nathan@codesourcery.com>
12443
12444         * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
12445         -Wall.
12446         * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
12447         message.
12448         * flags.h (warn_strict_aliasing): Declare.
12449         * toplev.c (warn_strict_aliasing): Define.
12450         (lang_independent_options): Add it.
12451         * doc/invoke.texi (-Wstrict-aliasing): Document it.
12452
12453 2002-10-08  Zack Weinberg  <zack@codesourcery.com>
12454
12455         * system.h (GCCBUGURL): Delete.
12456         * version.c (bug_report_url): New.  Add commentary about
12457         modifying both these strings in modified distributions.
12458         * version.h: Declare bug_report_url.
12459
12460         * diagnostic.c, gcc.c, gcov.c: Globally replace GCCBUGURL with
12461         bug_report_url.
12462
12463 2002-10-08  Nick Clifton  <nickc@redhat.com>
12464
12465         * config/rs6000/spe.h (__ev_set_acc_u64): Use __ev_create_u64 to
12466         convert uint64_t into __ev64_opaque__.
12467         (__ev_set_acc_s64): Likewise, but using signed types.
12468
12469 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
12470
12471         * config/s390/s390.md ("*doloop_si_long"): Add missing operand.
12472         ("*doloop_di_long"): Likewise.
12473
12474 Tue Oct  8 16:50:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
12475
12476         * print-rtl.c (print_rtx): Increase buffer size for real numbers.
12477
12478 2002-10-08  Richard Sandiford  <rsandifo@redhat.com>
12479
12480         * config/mips/mips.md (define_attr cpu): Add r4111.
12481
12482 2002-10-08  Anthony Green  <green@redhat.com>
12483
12484         * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields.
12485
12486 2002-10-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12487
12488         * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
12489         for REAL_VALUE_TO_DECIMAL output.
12490
12491 2002-10-07  Richard Henderson  <rth@redhat.com>
12492
12493         * cse.c (fixed_base_plus_p): Turn FIXED_BASE_PLUS_P into a
12494         function; cleanup PLUS case by using recursion.  Update all users.
12495         (NONZERO_BASE_PLUS_P): Remove.
12496         (find_comparison_args): Use rtx_addr_can_trap_p instead.
12497         (fold_rtx): Use nonzero_address_p.
12498         * rtl.h (nonzero_address_p): Declare.
12499         * rtlanal.c (rtx_varies_p): Handle ADDRESSOF.
12500         (rtx_addr_can_trap_p): Likewise.
12501         (nonzero_address_p): New.
12502         * simplify-rtx.c (NONZERO_BASE_PLUS_P): Remove.
12503         (simplify_relational_operation): Use nonzero_address_p.
12504
12505 2002-10-07  David Edelsohn  <edelsohn@gnu.org>
12506
12507         * config/rs6000/rs6000.c (rs6000_override_options): Set
12508         real_format_for_mode for IBM extended format, if enabled.
12509         (easy_fp_constant): Add TFmode.
12510         (rs6000_legitimize_address): Add TFmode.
12511         (rs6000_legitimate_address): Same.
12512         (function_arg_advance): TFmode uses two FPRs.
12513         (rs6000_emit_prologue): Fix warning.
12514         (rs6000_output_function_epilogue): Add TFmode.
12515         (output_toc): Add TFmode.
12516         * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
12517         (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
12518         * rs6000.md (movtf splitter): Load TFmode constant.
12519
12520 2002-10-07  Dale Johannesen  <dalej@apple.com>
12521
12522         * rtl.h:  Add NOTE_PRECONDITIONED.
12523         * unroll.c:  Set it.
12524         * loop.c:  Set loop_info->preconditioned from it.
12525         * doloop.c:  Permit doloop treatment when loop_info->preconditoned.
12526
12527 2002-10-07  Richard Henderson  <rth@redhat.com>
12528
12529         * config/i960/i960.c (i960_setup_incoming_varargs): Create a
12530         new rtx for comparing the argument pointer against zero.
12531         (i960_va_start): Similarly.
12532
12533 2002-10-07  Richard Henderson  <rth@redhat.com>
12534
12535         * config/i960/i960.md (*): Use TFmode, not XFmode.
12536         * config/i960/i960.c (*): Likewise.
12537         (i960_arg_size_and_align): Remove XFmode alignment hack.
12538         (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
12539         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
12540         (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
12541         (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
12542
12543 2002-10-07  Richard Henderson  <rth@redhat.com>
12544
12545         * config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
12546         entry points; use void return value and argument list.
12547
12548 2002-10-06  Andreas Bauer  <baueran@in.tum.de>
12549
12550         * calls.c (expand_call): Fix function-is-volatile check.
12551
12552 2002-10-05  Naohiko Shimizu <nshimizu@keyaki.cc.u-tokai.ac.jp>
12553
12554         * t-pdp11: Add MULTILIB support for msoft-float.
12555         * pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
12556
12557         * t-pdp11: Add LIB2FUNCS_EXTRA.
12558         * pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
12559         add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
12560         'fldd' to 'ldd', rename 'fstd' to 'std'.
12561         (pdp11_output_function_epilogue): Likewise.
12562         (output_move_quad): Make the comment gas compatible.
12563         (output_ascii): Add preceding 0 to the octal constant.
12564         (print_operand_address): Add pre_modify, post_modify.
12565         (output_addr_const_pdp11): Add preceding 0 to the octal constant.
12566         * pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
12567         with the indication of Paul Koning.
12568         (PRINT_OPERAND): Fix floating constant.
12569         * pdp11.md (movdi): Restrict matching pattern.
12570         (movqi): Generalize the matching pattern.
12571         (movdf): Restrict matching pattern.
12572         (zero_extendqihi2): Change constant representation.
12573         (floatsidf2): Fix wrong operands.
12574         (addqi3): Fix wrong instruction name.
12575         (subqi3): Fix wrong instruction name.
12576         (andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
12577         (xorsi3): Fix wrong insn.
12578         (one_cmplqi2): Add two operand pattern.
12579         (lsrsi3): New.
12580         (negsi2): New.
12581         (call): Add register indirect case.
12582         (mod): Fix wrong subreg.
12583
12584 2002-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
12585             Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12586
12587         PR c/7411
12588         * expr.c (expand_expr) [PLUS]: Simplify after the operands
12589         have been expanded in EXPAND_NORMAL mode.
12590
12591 2002-10-06  Richard Henderson  <rth@redhat.com>
12592
12593         * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
12594
12595 2002-10-06  Richard Henderson  <rth@redhat.com>
12596
12597         PR optimization/2960
12598         * toplev.c (rest_of_compilation): Don't copy_loop_headers if
12599         optimize_size.
12600
12601 2002-10-06  Alexandre Oliva  <aoliva@redhat.com>
12602
12603         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
12604         previously definitions.
12605
12606 2002-10-06  Frank Ch. Eigler  <fche@redhat.com>
12607
12608         * cppinit.c (init_standard_includes, parse_option): Use strncmp.
12609         * c-opts.c (find_opt): Similarly.
12610
12611 Sat Oct  5 22:48:06 CEST 2002  Jan Hubicka  <jh@suse.cz>
12612
12613         * athlon.md: rewrite to DFA.
12614         * i386 (ix86_adjust_cost): Drop memory latency code.
12615         (ia32_use_dfa_pipeline_interface): Return true for Athlon.
12616
12617 2002-10-05  Jakub Jelinek  <jakub@redhat.com>
12618
12619         * gcc.c (set_multilib_dir): Don't access *end.
12620         Use memcpy instead of strncpy.  Don't write beyond malloced buffer.
12621         (print_multilib_info): Don't show paths starting with ".:".
12622         * genmultilib: Add new option, "yes" if multilibs are enabled.
12623         Update comments.  If multilibs not enabled, print .:${osdirout}
12624         for each directory.  If multilibs are enabled, always print
12625         ${dirout}:${osdirout}, even if the two are the same.
12626         * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
12627         Pass all MULTILIB_* variables to genmultilib even if
12628         --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
12629
12630 2002-10-04  Zack Weinberg  <zack@codesourcery.com>
12631
12632         * gcc.c (process_command): Set .validated for -pipe.  Correct
12633         grammar in comment.
12634
12635 2002-10-04  Bruce Korb  <bkorb@gnu.org>
12636
12637         * fixinc/inclhack.def(hpux11_abs):  use format fix
12638         * fixinc/fixincl.x: regenerate
12639         * fixinc/tests/base/stdlib.h: accommodate new fix test
12640
12641 Sat Oct  5 19:42:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
12642
12643         * c-common.c (cb_register_builtins):  Use really_no_inline.
12644
12645 2002-10-04  David Edelsohn  <edelsohn@gnu.org>
12646
12647         * unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
12648         copied instruction if the note is not loop invariant.
12649
12650 2002-10-04  Loren J. Rittle  <ljrittle@acm.org>
12651
12652         * gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
12653
12654 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
12655
12656         * doc/invoke.texi (HPPA):  Add -mlinker-opt, -mgnu-ld,
12657         and -mhp-ld options to list of options.  Add -mgnu-ld
12658         and -mhp-ld option descriptions.
12659
12660 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
12661
12662         * fixinc/inclhack.def (hpux11_abs):  New.
12663         (stdio_va_list): change __va_list__ to __gnuc_va_list.
12664         * fixinc/fixincl.x: Rebuild.
12665
12666 2002-10-04  Roger Sayle  <roger@eyesopen.com>
12667
12668         * config/i386/i386.h (processor_costs): Add new fields fadd,
12669         fmul, fdiv, fabs, fchs and fsqrt to costs structure.
12670         (RTX_COSTS): Use these fields to determine the RTX costs
12671         of floating point addition/subtraction, multiplication,
12672         division, fabs, negation and square root respectively.
12673         * config/i386/i386.c (size_cost): Provide instruction sizes
12674         for these new fields.
12675         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
12676         k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
12677         counts for these new fields for all x86 processor variants.
12678
12679 2002-10-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12680
12681         * mips.c (mips_const_double_ok): Delete unused variable.
12682
12683         * gengtype.c (rtx_next): Change type to int.
12684
12685 2002-10-04  Andreas Jaeger  <aj@suse.de>
12686
12687         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
12688
12689 2002-10-04  Richard Henderson  <rth@redhat.com>
12690
12691         * real.h (SIGNIFICAND_BITS): Add one more word.
12692         (CONST_DOUBLE_FORMAT): Accomodate 6 words.
12693         * real.c (times_pten): New.
12694         (real_to_decimal, real_from_string): Use it.
12695         (sticky_rshift_significand): Use & to find modulus.
12696         (rshift_significand, lshift_significand): Likewise.
12697         (do_divide): Apply sticky bit after normalization.
12698         (real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
12699
12700 2002-10-03  Andreas Bauer  <baueran@in.tum.de>
12701
12702         * doc/tm.texi (FUNCTION_OK_FOR_SIBCALL): Remove.
12703         (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
12704
12705 2002-10-03  Andreas Jaeger  <aj@suse.de>
12706
12707         * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
12708         to unsigned long, adjust printf format string.
12709         (output_mangled_typename): Likewise.
12710
12711 2002-10-03  Jason Thorpe  <thorpej@wasabisystems.com>
12712
12713         * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
12714         * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
12715         (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
12716         assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
12717         (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
12718         (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
12719         * config/vax/elf.h (FUNCTION_PROFILER): Remove.
12720         (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
12721
12722 2002-10-03  Mark Mitchell  <mark@codesourcery.com>
12723
12724         * doc/invoke.texi (-Wabi): Document mangling bug.
12725
12726 2002-10-04  Alan Modra  <amodra@bigpond.net.au>
12727
12728         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
12729         name for the tbtab label that depends on the function asm name.
12730         Don't output tbtab label unless optional_tbtab.
12731         (output_mi_thunk): Formatting.
12732
12733 2002-10-03  Richard Henderson  <rth@redhat.com>
12734
12735         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
12736         * config/m68k/m68k.c (override_options): ... here.
12737         * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
12738         * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
12739         * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12740         * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12741
12742 2002-10-03  Richard Henderson  <rth@redhat.com>
12743
12744         * real.h (struct real_value): Use ENUM_BITFIELD.
12745
12746 2002-10-03  Richard Henderson  <rth@redhat.com>
12747
12748         * config/i960/i960.md (call, call_value): Use emit_call_insn.
12749
12750 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
12751
12752         * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
12753
12754 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
12755
12756         * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
12757         * config/pa/pa.h (MASK_GNU_LD): New.
12758         (TARGET_GNU_LD): New.
12759         * config/pa/pa64-hpux.h (LINK_SPEC): Set based
12760         on gnu-ld and MASK_GNU_LD.
12761         (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
12762
12763 Thu Oct  3 23:35:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
12764
12765         * i386.c (athlon_cost): Fix the move costs.
12766
12767 Thu Oct  3 23:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
12768
12769         * final.c (final): Use symbol name as function name for profiling.
12770         * profile.c (get_exec_counts): Likewise.
12771         (branch_prob): Likewise.
12772
12773 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
12774
12775         * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
12776
12777 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
12778
12779         * gcc.c (print_multi_os_directory): New variable.
12780         (option_map): Support --print-multi-os-directory.
12781         (struct prefix_list): Add os_multilib field.
12782         (multilib_os_dir): New variable.
12783         (static_specs): Add multilib_options.
12784         (find_a_file): Add multilib argument.  Search in GCC or OS multilib
12785         subdirs if nonzero.
12786         (read_specs, execute): Update callers.
12787         (find_file): Likewise.  Don't prefix name with multilib_dir, instead
12788         pass 1 as multilib option.
12789         (display_help): Include --print-multi-os-directory.
12790         (add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
12791         (process_command): Update callers.  Handle --print-multi-os-directory.
12792         (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
12793         set.
12794         (main): Update find_a_file and add_prefix callers.
12795         Handle print_multi_os_directory.
12796         (struct mdswitchstr): New.
12797         (mdswitches, n_mdswitches): New variables.
12798         (used_arg): Add MULTILIB_DEFAULT switches too if they are not
12799         present on the command line nor their mutually incompatible
12800         switches.
12801         (default_arg): Optimize.
12802         (set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
12803         array.
12804         (print_multilib_info): Only print GCC multilib dir name, not OS
12805         multilib dirname.
12806         * genmultilib: Add osdirnames parameter.  Output multilib_options
12807         variable.  If osdirnames is specified, output dirnames as
12808         dirname:osdirname.
12809         * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
12810         and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
12811         to compute libgcc_s soname and install path.
12812         * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
12813         SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
12814         (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
12815         argument.
12816
12817         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
12818         (SHLIB_SLIBDIR_SUFFIXES): Remove.
12819         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
12820         ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
12821         (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
12822         and -m64.
12823         * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
12824         (SHLIB_SLIBDIR_SUFFIXES): Remove.
12825         * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
12826         (STARTFILE_ARCH_SPEC): Remove.
12827         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
12828         (SHLIB_SLIBDIR_SUFFIXES): Remove.
12829         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
12830         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
12831         (SHLIB_SLIBDIR_SUFFIXES): Remove.
12832
12833 Thu Oct  3 21:42:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
12834
12835         * predict.c (choose_function_section): Avoid choice for linkonce functions.
12836
12837 Thu Oct  3 15:15:00 CEST 2002  Jan Hubicka  <jh@suse.cz>
12838
12839         * i386.md (lea to mul peep2): Fix condition.
12840
12841 2002-10-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12842
12843         * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
12844         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
12845
12846 2002-10-02  David Mosberger-Tang  <David.Mosberger@acm.org>
12847
12848         * unwind.h (_Unwind_GetTextRelBase): Mark _C argument with
12849         attribute "unused".
12850
12851         * config/t-libunwind: Mention unwind-sjlj.c.
12852         * unwind-libunwind.c: Change #ifdef __USING_LIBUNWIND_EXCEPTIONS__
12853         to #ifndef __USING_SJLJ_EXCEPTIONS__.
12854
12855         * configure.in: Move sjlj-exceptions and --enable-libunwind-exceptions
12856         before inclusion of config.gcc, but after configuring the compiler etc.
12857         Determine default value for --enable-libunwind-exceptions based on
12858         whether the host has a libunwind library (not guaranteed to be correct,
12859         but it's a reasonable first guess and can always be overridden with an
12860         explicit --enable/disable-libunwind-exceptions.
12861         * config.gcc: For target ia64*-*-linux*, mention t-libunwind as a
12862         tmake_file when $use_libunwind_exceptions is enabled.
12863         * Makefile.in: Update comment: LIB2ADDEH is updated not just by
12864         ia64 (e.g., config/t-linux also updates it).
12865         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS]: Mention -lunwind
12866         along with the shared version of libgcc since the latter requires
12867         the former.
12868         * unwind-libunwind.c: New file.
12869         * config/t-libunwind: Ditto.
12870
12871 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
12872
12873         * config.gcc: Remove support for vax-*-vms*.
12874         * config/vax/vms.h: Remove.
12875         * config/vax/xm-vms.h: Remove.
12876         * config/vax/vax-protos.h: Remove VMS-specific code.
12877         * config/vax/vax.c: Remove VMS-specific code.
12878
12879 2002-10-02  Richard Henderson  <rth@redhat.com>
12880
12881         PR opt/7124
12882         * config/i386/i386.c (ix86_register_move_cost): Increase cost
12883         for secondary_memory_needed pairs.
12884
12885 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
12886
12887         * doc/vms.texi: Blow away false include file section.
12888
12889 2002-10-02  Roger Sayle  <roger@eyesopen.com>
12890
12891         PR optimization/6627
12892         * toplev.c (force_align_functions_log): New global variable.
12893         * flags.h (force_align_functions_log): Add extern prototype.
12894         * varasm.c (assemble_start_function): Use it to force minimum
12895         function alignment.
12896         * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
12897         minimum function alignment to one byte.
12898         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
12899         the least significant bit of vtable member function pointers.
12900         * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
12901         here from cp/cp-tree.h.
12902
12903 Wed Oct  2 17:01:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
12904
12905         * i386.c (print_operand_address): Use RIP addressing for offsetted
12906         label refs too.
12907
12908 2002-09-30  David S. Miller  <davem@redhat.com>
12909
12910         PR middle-end/7151
12911         * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
12912         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
12913
12914 2002-10-01  Andreas Bauer  <baueran@in.tum.de>
12915
12916         * calls.c (expand_call): Remove the `no indirect check'
12917         for sibcall optimization; use function_ok_for_sibcall
12918         target hook; refine check for `function is volatile'.
12919         (FUNCTION_OK_FOR_SIBCALL): Remove the redefinition.
12920         * hooks.c (hook_tree_tree_bool_false): New.
12921         * hooks.h (hook_tree_tree_bool_false): Declare.
12922         * target-def.h (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
12923         (TARGET_INITIALIZER): Add it.
12924         * target.h (struct gcc_target): Add function_ok_for_sibcall.
12925         * config/alpha/alpha.c: (alpha_function_ok_for_sibcall): New.
12926         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
12927         * config/alpha/alpha.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12928         * config/arm/arm-protos.h: (arm_function_ok_for_sibcall):
12929         Remove function declaration.
12930         * config/arm/arm.c: (arm_function_ok_for_sibcall): Make
12931         function static and accept another argument of type `tree'.
12932         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
12933         * config/arm/arm.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12934         * config/frv/frv.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12935         * config/i386/i386.c: (ix86_function_ok_for_sibcall): New.
12936         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
12937         * config/i386/i386.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12938         * config/pa/pa-linux.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12939         (TARGET_HAS_STUBS_AND_ELF_SECTIONS): New definition.
12940         * config/pa/pa.c: (pa_function_ok_for_sibcall): New.
12941         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
12942         * config/pa/pa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12943         * config/rs6000/rs6000-protos.h: (function_ok_for_sibcall):
12944         Remove function declaration.
12945         * config/rs6000/rs6000.c: (rs6000_function_ok_for_sibcall):
12946         Rename function_ok_for_sibcall to rs6000_function_ok_for_sibcall;
12947         rename first argument to `decl'; accept another argument
12948         of type `tree'; make static.
12949         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
12950         * config/rs6000/rs6000.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12951         * config/sh/sh.c: (sh_function_ok_for_sibcall): New.
12952         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
12953         * config/sh/sh.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12954         * config/sparc/sparc.c: (sparc_function_ok_for_sibcall): New.
12955         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
12956         * config/sparc/sparc.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12957         * config/xtensa/xtensa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
12958
12959 2002-10-01  Roger Sayle  <roger@eyesopen.com>
12960
12961         * unroll.c (loop_iterations): Revert 2002-09-08 change.
12962
12963 2002-10-01  Richard Henderson  <rth@redhat.com>
12964
12965         * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
12966         (real_to_hexadecimal): Likewise.
12967         * print-rtl.c (print_rtx): If we are linked with real.c, don't
12968         dump the XWINT fields of a floating point CONST_DOUBLE.
12969
12970 2002-10-01  Jason Thorpe  <thorpej@wasabisystems.com>
12971
12972         * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
12973
12974 2002-10-01  Richard Henderson  <rth@redhat.com>
12975
12976         * calls.c (precompute_register_parameters): Force non-legitimate
12977         constants into pseudos.
12978
12979 2002-10-01  Nick Clifton  <nickc@redhat.com>
12980
12981         * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
12982         to assembler template.
12983
12984 2002-10-01  Richard Henderson  <rth@redhat.com>
12985
12986         * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
12987         for TLS debug info to !DECL_EXTERNAL.
12988
12989 2002-10-01  Matt Thomas  <matt@3am-software.com>
12990             Jason Thorpe  <thorpej@wasabisystems.com>
12991
12992         * config.gcc (vax-*-netbsdelf*): Enable configuration.
12993         * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
12994         if not already defined.
12995         * config/vax/elf.h: New file.
12996         * config/vax/netbsd-elf.h: New file.
12997         * config/vax/vax.c: Include "debug.h".
12998         (vax_output_function_prologue): Add dwarf2 support.  Use
12999         MAIN_NAME_P when checking for VMS_TARGET stack adjust.
13000         * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
13001         'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
13002         'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
13003         (VAX_ISTREAM_SYNC): Remove.
13004         (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
13005         (JUMP_TABLES_IN_TEXT_SECTION): Define.
13006         (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
13007         (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
13008         and assemble_name.
13009         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13010         (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
13011         (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
13012         (INCOMING_RETURN_ADDR_RTX): Define.
13013         * config/vax/vax.md (VUNSPEC_BLOCKAGE)
13014         (VUNSPEC_SYNC_ISTREAM): Define.
13015         (blockage): Use VUNSPEC_BLOCKAGE.
13016         (sync_istream): New insn.
13017
13018 2002-10-01  Richard Henderson  <rth@redhat.com>
13019
13020         * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
13021         (*call_value_pop, call, call_value): Add dwarf2 EH support.
13022         (*call): New insn.
13023
13024 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13025
13026         PR c/8083
13027         * c-typeck.c (build_c_cast): Warn about type punning which breaks
13028         type based aliasing.
13029
13030 2002-10-01  Mark Mitchell  <mark@codesourcery.com>
13031
13032         * stor-layout.c (update_alignment_for_field): New function.
13033         (place_union_field): Use it.
13034         (place_field): Likewise.
13035
13036 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13037
13038         PR other/8077
13039         * gcc.c (cc1_options): Add space on -auxbase-strip.
13040
13041 2002-10-01  Jim Wilson  <wilson@redhat.com>
13042
13043         * config/v850/v850.h (EPILOGUE_USES): Define.
13044
13045 2002-09-30  Andrew Haley  <aph@redhat.com>
13046
13047         * flow.c (insn_dead_p): When using non-call-exceptions, don't
13048         eliminate insns that may trap.
13049         * cse.c (insn_live_p): Likewise.
13050
13051 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13052
13053         * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
13054         (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
13055         * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
13056         * config/mips/mips.md: Apply same renaming here.
13057
13058 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13059
13060         * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
13061         (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
13062         * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
13063         * config/mips/mips.md (define_attr cpu): Remove r4320.
13064         Remove vr4320 scheduler and uses of TARGET_MIPS4320.
13065
13066 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13067
13068         * config/mips/mips.c (mips16_strings): New variable.
13069         (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
13070         symbol in mips16_strings.  Free the list.
13071         (mips_encode_section_info): Keep track of local strings.
13072
13073 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13074
13075         * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
13076         (sordered_df, sordered_sf): Remove.
13077         * config/mips/mips.c (get_float_compare_codes): New fn.
13078         (gen_int_relational, gen_conditional_move): Use it.
13079
13080 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13081
13082         * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
13083         * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
13084         * config/mips/mips.c (fcc_register_operand): New function.
13085         (mips_emit_fcc_reload): New function, extracted from reload_incc.
13086         (override_options): Allow TFmode values in float registers
13087         if ISA_HAS_8CC.
13088         * cnfig/mips/mips.md (reload_incc): Change destination prediate
13089         to fcc_register_operand.  Remove misleading source constraint.
13090         Use mips_emit_fcc_reload.
13091         (reload_outcc): Duplicate reload_incc.
13092
13093 2002-09-30  Zack Weinberg  <zack@codesourcery.com>
13094
13095         * gcc.c (validate_switches): Handle all new forms of spec
13096         syntax introduced recently.  Now returns a char *.
13097         (validate_all_switches): Repetitive logic broken out to...
13098         (validate_switches_from_spec): ...here.
13099         * mklibgcc.in: Don't @-flag commands to generate .oS files.
13100
13101 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
13102
13103         * longlong.h: Partially synchronize with GMP-4.1 version:
13104         Use i370 definitions also for s390.
13105         Add generic definition of umul_ppmm in terms of smul_ppmm.
13106         [s390] (umul_ppmm): Remove.
13107         [s390] (smul_ppmm): Fix incorrect assembler constraints.
13108         [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
13109
13110 2002-09-30  Bob Wilson  <bob.wilson@acm.org>
13111
13112         * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
13113         Add new RL_REGS register class.
13114         (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
13115         Call xtensa_preferred_reload_class for both input and output reloads.
13116         * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
13117         (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
13118         instead of either AR_REGS or GR_REGS classes.
13119         (xtensa_secondary_reload_class): Use new RL_REGS class.
13120         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
13121
13122 2002-09-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13123
13124         * pa.c (hppa_encode_label): Don't drop '*' from function labels.
13125         (pa_strip_name_encoding): Strip '@' and '*', in that order.
13126         * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
13127         there is a '*' prefix in NAME.
13128
13129 Mon Sep 30 21:33:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
13130
13131         * reload.c (push_reload): Handle subregs and secondary memory.
13132         * reload1.c (gen_reload): Likewise.
13133
13134         * jump.c (reg_or_subregno): New function.
13135         * rtl.h (reg_or_subregno): Declare
13136         * unroll.c (find_splittable_givs): Handle subregs.
13137
13138 2002-09-30  Mark Mitchell  <mark@codesourcery.com>
13139
13140         * store-layout.c (finish_record_layout): Add free_p parameter.
13141         (layout_type): Pass it.
13142         * tree.h (finish_record_layout): Update prototype.
13143
13144 Mon Sep 30 14:57:18 CEST 2002  Jan Hubicka  <jh@suse.cz>
13145
13146         * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
13147
13148         * gcse.c (cprop_jump): Check that the register has not
13149         been modified
13150         (cprop_jump): Likewise.
13151
13152 2002-09-30  Richard Earnshaw  <rearnsha@arm.com>
13153
13154         * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
13155         (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
13156         that we have a SImode access, and only then if reload hasn't completed;
13157         for all other cases, use LO_REGS.
13158
13159 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13160
13161         * openbsd.h: Fix typo in last change.
13162
13163 2002-09-29  Richard Henderson  <rth@redhat.com>
13164
13165         * real.c (real_from_string): Apply sign last.  Tidy exponent handling.
13166
13167 2002-09-29  Richard Henderson  <rth@redhat.com>
13168
13169         PR c/8002
13170         * combine.c (force_to_mode): Handle FLOAT_MODE destinations
13171         for CONST_INT.
13172
13173 2002-09-29  David Edelsohn  <edelsohn@gnu.org>
13174
13175         * real.h (ibm_extended_format): Declare.
13176         * real.c (encode_ibm_extended, decode_ibm_extended): New
13177         functions.
13178
13179 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13180
13181         * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
13182
13183         * ia64.c (ia64_hpux_asm_file_end): Const-ify.
13184
13185 2002-09-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13186
13187         * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
13188
13189 2002-09-29  Kazu Hirata  <kazu@cs.umass.edu>
13190
13191         * builtins.def: Fix comment formatting.
13192         * c-common.def: Likewise.
13193         * cfgcleanup.c: Likewise.
13194         * combine.c: Likewise.
13195         * gengtype.c: Likewise.
13196         * params.def: Likewise.
13197         * predict.def: Likewise.
13198         * rtl.def: Likewise.
13199         * stab.def: Likewise.
13200         * stor-layout.c: Likewise.
13201         * tree.def: Likewise.
13202         * config/darwin.c: Likewise.
13203         * config/darwin.h: Likewise.
13204         * config/dbxcoff.h: Likewise.
13205         * config/elfos.h: Likewise.
13206         * config/fp-bit.c: Likewise.
13207         * config/freebsd-spec.h: Likewise.
13208         * config/interix.h: Likewise.
13209         * config/libgloss.h: Likewise.
13210         * config/linux-aout.h: Likewise.
13211         * config/linux.h: Likewise.
13212         * config/lynx-ng.h: Likewise.
13213         * config/lynx.h: Likewise.
13214         * config/netbsd-aout.h: Likewise.
13215         * config/netbsd.h: Likewise.
13216         * config/netware.h: Likewise.
13217         * config/psos.h: Likewise.
13218         * config/ptx4.h: Likewise.
13219
13220 2002-09-28  Kazu Hirata  <kazu@cs.umass.edu>
13221
13222         * ChangeLog.4: Fix typos.
13223         * ChangeLog.6: Likewise.
13224         * FSFChangeLog.10: Likewise.
13225         * genattrtab.c: Fix comment typos.
13226         * haifa-sched.c: Likewise.
13227         * real.c: Likewise.
13228         * tree.h: Likewise.
13229         * config/arm/arm.c: Likewise.
13230         * config/arm/crti.asm: Likewise.
13231         * config/arm/crtn.asm: Likewise.
13232         * config/frv/frv.c: Likewise.
13233         * config/frv/frv.md: Likewise.
13234         * config/h8300/h8300.md: Likewise.
13235         * config/i386/rtemself.h: Likewise.
13236         * config/ia64/unwind-ia64.c: Likewise.
13237         * config/ip2k/ip2k.h: Likewise.
13238         * config/m88k/m88k.c: Likewise.
13239         * config/m88k/m88k.md: Likewise.
13240         * config/mips/sr71k.md: Likewise.
13241         * config/mmix/mmix.c: Likewise.
13242         * config/rs6000/rs6000.c: Likewise.
13243         * config/sh/sh.md: Likewise.
13244
13245 2002-09-26  Theodore A. Roth  <troth@verinet.com>
13246
13247         * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
13248         * config/avr/avr.md: Ditto.
13249
13250 2002-09-27  Alexander N. Kabaev <ak03@gte.com>
13251
13252         PR preprocessor/8055
13253         * cppmacro.c (stringify_arg): Do not overflow the buffer
13254         with the terminating NUL when the argument to be stringified
13255         has no tokens.
13256
13257 2002-09-27  Richard Henderson  <rth@redhat.com>
13258
13259         * unroll.c (simplify_cmp_and_jump_insns): New.
13260         (unroll_loop): Use it.  Use simplify_gen_foo+force_operand
13261         instead of expand_simple_foo.
13262
13263 2002-09-27  Richard Henderson  <rth@redhat.com>
13264
13265         PR optimization/7520
13266         * cfganal.c (flow_active_insn_p): New.
13267         (forwarder_block_p): Use it.
13268
13269 2002-09-27  Richard Henderson  <rth@redhat.com>
13270
13271         * emit-rtl.c (active_insn_p): Revert last change.
13272
13273 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
13274
13275         * doc/extend.texi (tls_model): Document.
13276         * varasm.c (decl_tls_model): New.
13277         * c-common.c (handle_tls_model_attribute): New.
13278         (c_common_attribute_table): Add tls_model.
13279         * config/alpha/alpha.c (alpha_encode_section_info): Use
13280         decl_tls_model.
13281         * flags.h (enum tls_model, flag_tls_default): Move...
13282         * tree.h (enum tls_model, flag_tls_default): ...here.
13283         (decl_tls_model): New prototype.
13284         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
13285         * config/i386/i386.c (ix86_encode_section_info): Likewise.
13286         * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
13287         Allow !flag_pic.
13288
13289 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
13290
13291         * LANGUAGES: Follow spelling conventions.
13292         * rtl.def: Likewise.
13293         * sbitmap.c: Likewise.
13294         * sched-int.h: Likewise.
13295         * sched-rgn.c: Likewise.
13296         * sibcall.c: Likewise.
13297         * simplify-rtx.c: Likewise.
13298         * ssa.c: Likewise.
13299         * stab.def: Likewise.
13300         * stmt.c: Likewise.
13301         * stor-layout.c: Likewise.
13302         * target.h: Likewise.
13303         * timevar.c: Likewise.
13304         * toplev.c: Likewise.
13305         * tree-dump.c: Likewise.
13306         * tree-inline.c: Likewise.
13307         * tree.c: Likewise.
13308         * tree.def: Likewise.
13309         * tree.h: Likewise.
13310         * unroll.c: Likewise.
13311         * varasm.c: Likewise.
13312         * vmsdbgout.c: Likewise.
13313         * treelang/treelang.texi: Likewise.
13314         * treelang/treetree.c: Likewise.
13315
13316 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
13317
13318         * config/h8300/h8300.c (compute_saved_regs): Use a macro
13319         instead of a hard register number.
13320         (get_shift_alg): Use an enumerated type instead of numbers.
13321         (h8300_shift_needs_scratch_p): Likewise.
13322
13323 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
13324
13325         * varasm.c (force_data_section): Remove.
13326         (assemble_constant_align): Likewise.
13327         * output.h: Remove corresponding prototypes.
13328
13329 2002-09-26  Roger Sayle  <roger@eyesopen.com>
13330
13331         * stmt.c (expand_exit_loop_if_false): Expand a simple conditional
13332         jump, if the loop to exit is the top of the current nesting stack.
13333
13334 2002-09-26  Torbjorn Granlund  <tege@swox.com>
13335
13336         * libgcc2.c (fixunsdfdi, fixunssfdi): Rewrite, avoiding `long long'
13337         arithmetic.
13338
13339 2002-09-26  David S. Miller  <davem@redhat.com>
13340
13341         PR optimization/7335
13342         * calls.c (emit_library_call_value_1): Passing args by reference
13343         converts a CONST function into a PURE one.
13344
13345 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
13346
13347         * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
13348         text_section.
13349         * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
13350         text section.
13351         * config/rs6000/rs6000.c (rs6000_override_options): Allow
13352         function-sections and data-sections functionality on AIX.
13353
13354 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
13355             Dale Johannesen  <dalej@apple.com>
13356
13357         * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
13358         in RTL for sub-word loads from memory.
13359
13360 2002-09-26  Richard Henderson  <rth@redhat.com>
13361
13362         PR c/7160
13363         * sched-deps.c (sched_analyze_insn): Make clobber insns depend
13364         on call insns.
13365
13366 2002-09-26  Richard Henderson  <rth@redhat.com>
13367
13368         * emit-rtl.c (const_double_htab_eq): Remove unused variable.
13369
13370 2002-09-26  Chris Lattner  <sabre@nondot.org>
13371
13372         * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
13373         handling undefined values.
13374
13375 2002-09-26  Richard Henderson  <rth@redhat.com>
13376
13377         PR opt/7520
13378         * emit-rtl.c (active_insn_p): Consider a clobber of the
13379         function return value to be active even after reload.
13380
13381 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
13382
13383         * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
13384         by absolute loop increment, not loop increment.
13385
13386 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
13387
13388         * c-common.h: Follow spelling conventions.
13389         * cpplex.c: Likewise.
13390         * cpplib.h: Likewise.
13391         * gthr-dce.h: Likewise.
13392         * gthr-posix.h: Likewise.
13393         * optabs.c: Likewise.
13394         * output.h: Likewise.
13395         * profile.c: Likewise.
13396         * protoize.c: Likewise.
13397         * ra-rewrite.c: Likewise.
13398         * real.c: Likewise.
13399         * recog.c: Likewise.
13400         * reg-stack.c: Likewise.
13401         * regclass.c: Likewise.
13402         * regmove.c: Likewise.
13403         * reload.c: Likewise.
13404         * reload.h: Likewise.
13405         * reload1.c: Likewise.
13406         * reorg.c: Likewise.
13407         * resource.c: Likewise.
13408         * rtl.h: Likewise.
13409         * rtlanal.c: Likewise.
13410
13411 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
13412
13413         * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
13414         for symbol address.
13415
13416 2002-09-24  Eric Christopher  <echristo@redhat.com>
13417
13418         * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
13419         * config/mips/elf64.h: Ditto.
13420
13421 2002-09-24  Eric Christopher  <echristo@redhat.com>
13422
13423         * except.c (expand_builtin_extract_return_address): Handle case
13424         where Pmode != ptr_mode.
13425
13426 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
13427
13428         * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
13429
13430 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
13431
13432         * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
13433
13434 2002-09-26  Igor Shevlyakov <igor@microunity.com>
13435
13436         * combine.c (simplify_set): Don't call to force_to_mode if size
13437         of integer type is larger than HOST_BITS_PER_WIDE_INT.
13438
13439 2002-09-26  Janis Johnson  <janis187@us.ibm.com>
13440
13441         * Makefile.in (qmtest-g++): Fix file path.
13442
13443 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
13444
13445         * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
13446         A + (-const) on RTX level, even for unsigned types.
13447
13448 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
13449
13450         * reload.c (dup_replacements): New function.
13451         (find_reloads): Use it to duplicate replacements at the top level
13452         of match_dup operands.
13453
13454 2002-09-26  Miles Bader  <miles@gnu.org>
13455
13456         * v850.md ("length"): Change default value to 4.
13457
13458 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
13459
13460         * ChangeLog.1: Follow spelling conventions.
13461         * ChangeLog.4: Likewise.
13462         * ChangeLog.6: Likewise.
13463         * FSFChangeLog.11: Likewise.
13464         * doc/cpp.texi: Likewise.
13465         * doc/invoke.texi: Likewise.
13466         * doc/tm.texi: Likewise.
13467
13468 2002-09-26  Nick Clifton  <nickc@redhat.com>
13469
13470         * config.gcc: Add x prefix to v850e case for handling
13471         --with-cpu=v850e.
13472
13473 2002-09-25  Zack Weinberg  <zack@codesourcery.com>
13474
13475         * gcc.c (input_suffix_matches, switch_matches,
13476         mark_matching_switches, process_marked_switches,
13477         process_brace_body): New functions - split from handle_braces.
13478         (handle_braces): Rewrite; handle %{S:X;T:Y;:D} syntax; accept
13479         and ignore whitespace in more places.
13480         (specs documentation comment): Document %{S:X;T:Y;:D}.
13481         Clarify other %{...} docs.
13482         * doc/invoke.texi: Document %{S:X;T:Y;:D}.  Clarify other
13483         %{...} docs.
13484
13485         * config/arm/aof.h (LINK_SPEC): Change %{ov*,*} to %{ov*}.
13486         * config/rs6000/sysv4.h: Use N-way choice spec syntax.
13487
13488 2002-09-25  David S. Miller  <davem@redhat.com>
13489
13490         PR target/7842
13491         * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
13492         extend.
13493
13494 2002-09-25  Richard Henderson  <rth@redhat.com>
13495
13496         * emit-rtl.c (const_double_htab_eq): Distinguish integer and
13497         fp CONST_DOUBLE; use real_identical.
13498
13499 2002-09-25  Mark Mitchell  <mark@codesourcery.com>
13500
13501         * doc/invoke.texi: Add more -Wabi examples.
13502
13503 2002-09-25  Richard Sandiford  <rsandifo@redhat.com>
13504
13505         * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
13506
13507 2002-09-24  Nathan Sidwell  <nathan@codesourcery.com>
13508
13509         * profile.c (end_branch_prob): Only look for __gcov_init on
13510         weak-enabled native compilers.
13511
13512 2002-09-24  Denis Chertykov  <denisc@overta.ru>
13513
13514         * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
13515         cases of optimizing "add sp,w" to "inc sp".
13516
13517 2002-09-24  Adam Nemet  <anemet@lnxw.com>
13518
13519         * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
13520         epilogue for naked functions.
13521
13522 2002-09-24  Adam Nemet  <anemet@lnxw.com>
13523             Nick Clifton  <nickc@redhat.com>
13524
13525         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
13526         (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
13527         is defined.
13528
13529 2002-09-24  Ulrich Weigand  <uweigand@de.ibm.com>
13530
13531         * config/s390/s390.c (preferred_la_operand_p): New function.
13532         * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
13533         * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
13534         ("*la_64_cc", "*la_31_cc", splitters): ... these.
13535         ("*la_31"): Deactivate for TARGET_64BIT.
13536         ("*la_31_and", "*la_31_and_cc"): New.
13537
13538 2002-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13539
13540         * real.h (real_value): Make `exp' explicitly signed.
13541
13542 2002-09-24  Kazu Hirata  <kazu@cs.umass.edu>
13543
13544         * config/elfos.h: Follow spelling conventions.
13545         * config/alpha/alpha.h: Likewise.
13546         * config/arc/arc.h: Likewise.
13547         * config/arm/arm.md: Likewise.
13548         * config/avr/avr.h: Likewise.
13549         * config/cris/cris.md: Likewise.
13550         * config/d30v/d30v.h: Likewise.
13551         * config/frv/frv.c: Likewise.
13552         * config/frv/frv.h: Likewise.
13553         * config/h8300/h8300.c: Likewise.
13554         * config/h8300/h8300.h: Likewise.
13555         * config/h8300/h8300.md: Likewise.
13556         * config/i386/cygwin.h: Likewise.
13557         * config/i386/i386.h: Likewise.
13558         * config/i386/sysv3.h: Likewise.
13559         * config/i960/i960.h: Likewise.
13560         * config/ia64/ia64.h: Likewise.
13561         * config/ia64/ia64.md: Likewise.
13562         * config/ip2k/ip2k.h: Likewise.
13563         * config/m32r/m32r.h: Likewise.
13564         * config/m68k/m68k.h: Likewise.
13565         * config/m88k/m88k.h: Likewise.
13566         * config/mcore/mcore.c: Likewise.
13567         * config/mcore/mcore.h: Likewise.
13568         * config/mcore/mcore.md: Likewise.
13569         * config/mips/mips.h: Likewise.
13570         * config/mmix/mmix.h: Likewise.
13571         * config/mmix/mmix.md: Likewise.
13572         * config/ns32k/netbsd.h: Likewise.
13573         * config/ns32k/ns32k.h: Likewise.
13574         * config/ns32k/ns32k.md: Likewise.
13575         * config/pa/pa.h: Likewise.
13576         * config/romp/romp.h: Likewise.
13577         * config/rs6000/rs6000.h: Likewise.
13578         * config/rs6000/rs6000.md: Likewise.
13579         * config/sparc/sparc.h: Likewise.
13580         * config/stormy16/stormy-abi: Likewise.
13581         * config/stormy16/stormy16.h: Likewise.
13582         * config/vax/vax.h: Likewise.
13583
13584 2002-09-23  Kazu Hirata  <kazu@cs.umass.edu>
13585
13586         * config/alpha/alpha.h: Remove commented-out macro
13587         definitions of HAVE_{POST|PRE}_{INC|DEC}REMENT.
13588         * config/avr/avr.h: Likewise.
13589         * config/d30v/d30v.h: Likewise.
13590         * config/dsp16xx/dsp16xx.h: Likewise.
13591         * config/i370/i370.h: Likewise.
13592         * config/i386/i386.h: Likewise.
13593         * config/i960/i960.h: Likewise.
13594         * config/m68k/m68k.h: Likewise.
13595         * config/m88k/m88k.h: Likewise.
13596         * config/mips/mips.h: Likewise.
13597         * config/ns32k/ns32k.h: Likewise.
13598         * config/pdp11/pdp11.h: Likewise.
13599         * config/romp/romp.h: Likewise.
13600         * config/rs6000/rs6000.h: Likewise.
13601         * config/s390/s390.h: Likewise.
13602         * config/sh/sh.h: Likewise.
13603         * config/sparc/sparc.h: Likewise.
13604         * config/stormy16/stormy16.h: Likewise.
13605         * config/vax/vax.h: Likewise.
13606
13607 2002-09-23  Kazu Hirata  <kazu@cs.umass.edu>
13608
13609         * function.c (push_temp_slots_for_block): Remove.
13610         (push_temp_slots_for_target): Likewise.
13611         (get_target_temp_slot_level): Likewise.
13612         (set_target_temp_slot_level): Likewise.
13613         (get_first_block_beg): Likewise.
13614         * function.h: Remove corresponding prototypes.
13615
13616 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
13617
13618         * version.c (version_string): Now const char[].
13619         * version.h: Update to match.
13620
13621 2002-09-23  Richard Henderson  <rth@redhat.com>
13622
13623         * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
13624         MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
13625         (TARGET_SWITCHES): Don't reference them.
13626         * config/i386/i386.c (override_options): Use target_flags_explicit
13627         to examine bits set by the user.
13628
13629 2002-09-23  Dale Johannesen  <dalej@apple.com>
13630
13631         * dbxout.c (dbxout_parms):  Set current_sym_code for params
13632         passed on stack by invisible reference.
13633
13634 2002-09-23  Richard Earnshaw  <rearnsha@arm.com>
13635
13636         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
13637         at least one byte of space.
13638
13639 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
13640
13641         * c-common.h (flag_abi_version): Fix typo in comment.
13642         * doc/invoke.texi (flag_abi_version): Document default value.
13643
13644 2002-09-23  Hans-Peter Nilsson  <hp@axis.com>
13645
13646         * doc/extend.texi (Extended Asm): Clarify that overlap between
13647         asm-declared register variables used in an asm and the asm clobber
13648         list is not allowed.
13649         * stmt.c (decl_conflicts_with_clobbers_p): New function.
13650         (expand_asm_operands): Keep track of clobbered registers.  Call
13651         decl_conflicts_with_clobbers_p for each input and output operand.
13652         If no conflicts found before, also do conflict sanity check when
13653         emitting clobbers.
13654
13655 2002-09-23  Richard Henderson  <rth@redhat.com>
13656
13657         * c-common.c (cpp_define_data_format): Remove.
13658         (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
13659         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
13660         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
13661         * doc/cpp.texi: Don't document them either.
13662         (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
13663         __LONG_LONG_MAX__): Document.
13664         (__TARGET_FLOAT_FORMAT__): Remove.
13665
13666 2002-09-23  Richard Henderson  <rth@redhat.com>
13667
13668         * real.c (do_multiply): Normalize U before addition.
13669
13670 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
13671
13672         * c-common.c (flag_abi_version): New variable.
13673         * c-common.h (flag_abi_version): Declare it.
13674         * c-opts.c (missing_arg): Add -fabi-version.
13675         (c_common_decode_option): Process -fabi-version.
13676         * doc/invoke.texi (-fabi-version): Document it.
13677         (-Wabi): Add information about bit-fields in unions.
13678
13679 2002-09-22  Roger Sayle  <roger@eyesopen.com>
13680
13681         * expr.c (STORE_BY_PIECES_P): New target macro.
13682         (can_store_by_pieces, store_by_pieces): Use STORE_BY_PIECES_P
13683         instead of MOVE_BY_PIECES_P.
13684         * doc/tm.texi: Document this new macro.
13685
13686 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
13687
13688         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
13689         unless -fno-pic or -fno-PIC is specified.
13690
13691 2002-09-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13692
13693         * c-common.c (preprocessing_trad_p): Define.
13694         * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
13695         (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
13696         * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
13697         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
13698         * pa-linux.h (CPP_PREDEFINES): Delete.
13699         (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
13700         * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
13701         * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
13702         (TARGET_OS_CPP_BUILTINS): Define.
13703         * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
13704         (TARGET_SWITCHES): Reformat.  Use N_() macro.  Add SUBTARGET_SWITCHES.
13705         (SUBTARGET_SWITCHES): Provide default definition.
13706         (TARGET_OPTIONS): Reformat.  Use N_() macro.
13707         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
13708         CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
13709         EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
13710         (TARGET_CPU_CPP_BUILTINS): Define.
13711         (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
13712         * doc/invoke.texi (msio, mwsio): Document new hppa options.
13713         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
13714         preprocessing_trad_p().
13715
13716 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
13717
13718         * doc/install.texi: Document behavior of --with-headers and
13719         --with-libs when arguments are omitted.
13720
13721 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>
13722
13723         * dbxout.c: Follow spelling conventions.
13724         * defaults.h: Likewise.
13725         * df.c: Likewise.
13726         * diagnostic.h: Likewise.
13727         * doloop.c: Likewise.
13728         * dwarf2out.c: Likewise.
13729         * dwarfout.c: Likewise.
13730         * emit-rtl.c: Likewise.
13731         * except.c: Likewise.
13732         * explow.c: Likewise.
13733         * expmed.c: Likewise.
13734         * expr.c: Likewise.
13735         * expr.h: Likewise.
13736         * flags.h: Likewise.
13737         * flow.c: Likewise.
13738         * fold-const.c: Likewise.
13739         * function.c: Likewise.
13740         * function.h: Likewise.
13741         * gcc.c: Likewise.
13742         * gcov-io.h: Likewise.
13743         * gcov.c: Likewise.
13744         * gcse.c: Likewise.
13745         * genattrtab.c: Likewise.
13746         * genconfig.c: Likewise.
13747         * genrecog.c: Likewise.
13748         * ggc-page.c: Likewise.
13749         * ggc.h: Likewise.
13750         * global.c: Likewise.
13751         * gthr-win32.h: Likewise.
13752         * integrate.c: Likewise.
13753         * jump.c: Likewise.
13754         * langhooks.c: Likewise.
13755         * langhooks.h: Likewise.
13756         * line-map.h: Likewise.
13757         * local-alloc.c: Likewise.
13758         * longlong.h: Likewise.
13759         * loop.c: Likewise.
13760         * loop.h: Likewise.
13761
13762 Tue Aug 27 22:26:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
13763
13764         * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
13765
13766 Tue Aug 27 20:07:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
13767
13768         * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
13769         for -Os/TARGET_64BIT too.
13770
13771 2002-09-21  Kazu Hirata  <kazu@cs.umass.edu>
13772
13773         * ChangeLog: Follow spelling conventions.
13774         * ChangeLog.0: Likewise.
13775         * ChangeLog.1: Likewise.
13776         * ChangeLog.2: Likewise.
13777         * ChangeLog.3: Likewise.
13778         * ChangeLog.4: Likewise.
13779         * ChangeLog.5: Likewise.
13780         * ChangeLog.6: Likewise.
13781         * FSFChangeLog.10: Likewise.
13782         * FSFChangeLog.11: Likewise.
13783         * alias.c: Likewise.
13784         * basic-block.h: Likewise.
13785         * c-aux-info.c: Likewise.
13786         * c-common.c: Likewise.
13787         * c-common.h: Likewise.
13788         * c-decl.c: Likewise.
13789         * c-format.c: Likewise.
13790         * c-semantics.c: Likewise.
13791         * c-typeck.c: Likewise.
13792         * calls.c: Likewise.
13793         * cfganal.c: Likewise.
13794         * cfgloop.c: Likewise.
13795         * collect2.c: Likewise.
13796         * combine.c: Likewise.
13797         * conflict.c: Likewise.
13798         * cppexp.c: Likewise.
13799         * cppfiles.c: Likewise.
13800         * cpphash.h: Likewise.
13801         * cppinit.c: Likewise.
13802         * cpplex.c: Likewise.
13803         * cpplib.c: Likewise.
13804         * cpplib.h: Likewise.
13805         * cppmacro.c: Likewise.
13806         * cse.c: Likewise.
13807
13808 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
13809
13810         * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
13811         LINK_SPEC.
13812         (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
13813         * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
13814         (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
13815
13816 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
13817
13818         PR opt/7930
13819         * cse.c (fold_rtx): Calculate old_cost before we fold each
13820         operand.
13821
13822 2002-09-21  Richard Henderson  <rth@redhat.com>
13823
13824         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
13825         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
13826         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
13827         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
13828         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
13829         * doc/cpp.texi: Don't document them.
13830
13831 2002-09-21  Richard Henderson  <rth@redhat.com>
13832
13833         * c-common.c (builtin_define_float_constants): Use real_format
13834         to get the floating-point parameters.
13835
13836 2002-09-21  Richard Henderson  <rth@redhat.com>
13837
13838         * real.c (struct real_format): Move to real.h.
13839         (real_format_for_mode): Rename from fmt_for_mode; update all users;
13840         initialize with ieee defaults.
13841         (real_to_target_fmt, real_from_target_fmt): New.
13842         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
13843         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
13844         ieee_quad_format, i370_single_format, i370_double_format,
13845         c4x_single_format, c4x_extended_format): Rename from s/_format//.
13846         (ieee_quad_format): Fix emin.
13847         (format_for_size, init_real_once): Remove.
13848         * real.h (struct real_format): Move from real.c.
13849         (real_format_for_mode): Declare.
13850         (real_to_target_fmt, real_from_target_fmt): Declare.
13851         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
13852         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
13853         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
13854         i370_single_format, i370_double_format, c4x_single_format,
13855         c4x_extended_format): Declare.
13856         * toplev.c (do_compile): Don't call init_real_once.
13857
13858         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
13859         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
13860
13861         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
13862         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
13863         * config/alpha/alpha.c (override_options): Set real_format_for_mode
13864         for VAX, if enabled.
13865
13866         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
13867         for C4X.
13868
13869         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
13870         * config/i370/i370.c (override_options): New.
13871         * config/i370/i370-protos.h: Update.
13872
13873         * config/i386/i386.c (override_options): Set real_format_for_mode
13874         for Intel 80-bit extended.
13875         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
13876
13877         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
13878         (OVERRIDE_OPTIONS): Move code...
13879         * config/i960/i960.c (i960_initialize): ... here.  Set
13880         real_format_for_mode for Intel 80-bit extended.
13881
13882         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
13883         for Intel 80-bit extended, if enabled.
13884
13885         * config/m68k/m68k.c (override_options): Set real_format_for_mode
13886         for Motorola 96-bit extended.
13887
13888         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
13889         * config/vax/vax.c (override_options): New.
13890         * config/vax/vax-protos.h: Update.
13891
13892 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
13893
13894         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
13895         #if TARGET_MACHO.
13896
13897         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
13898         insns.  Supply missing clobber of scratch reg.
13899
13900 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
13901
13902         * config/m32r/m32r.c: Follow spelling conventions.
13903         * config/m32r/m32r.h: Likewise.
13904         * config/m32r/m32r.md: Likewise.
13905         * config/m68k/m68k.c: Likewise.
13906         * config/m88k/m88k.c: Likewise.
13907         * config/mcore/mcore.c: Likewise.
13908         * config/mips/mips.c: Likewise.
13909         * config/mips/mips.h: Likewise.
13910         * config/mmix/mmix.c: Likewise.
13911         * config/mn10200/mn10200.c: Likewise.
13912         * config/ns32k/ns32k.h: Likewise.
13913         * config/pa/pa.c: Likewise.
13914         * config/pa/pa64-linux.h: Likewise.
13915         * config/pdp11/pdp11.h: Likewise.
13916         * config/romp/romp.c: Likewise.
13917         * config/romp/romp.h: Likewise.
13918         * config/rs6000/eabi.asm: Likewise.
13919         * config/rs6000/linux64.h: Likewise.
13920         * config/rs6000/rs6000.c: Likewise.
13921         * config/rs6000/rs6000.h: Likewise.
13922         * config/rs6000/rs6000.md: Likewise.
13923         * config/rs6000/sysv4.h: Likewise.
13924         * config/rs6000/xcoff.h: Likewise.
13925
13926 2002-09-20  Jim Wilson  <wilson@redhat.com>
13927
13928         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
13929
13930 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
13931
13932         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
13933         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
13934         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
13935         (legitimate_address_p): Likewise.
13936         (legitimize_address): Use @gotntpoff and @indntpoff.
13937         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
13938         (output_addr_const_extra): Likewise.
13939
13940 2002-09-20  Jim Wilson  <wilson@redhat.com>
13941
13942         * combine.c (try_combine): When split an instruction pair, where the
13943         first has a sign_extend src, verify that the src and dest modes match.
13944
13945 2002-09-20  Richard Henderson  <rth@redhat.com>
13946
13947         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
13948         (override_options): Do not initialize them.
13949         (mips_const_double_ok): Allow no fp constants except zero,
13950         and not even that for mips16.
13951         (const_float_1_operand): Use dconst1.
13952         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
13953         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
13954         Don't allow arbitrary constants; fix predicates and C constraint.
13955
13956 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
13957
13958         * cppmacro.c: Don't warn about function-like macros without
13959         '(' during pre-expansion.
13960
13961 2002-09-20  Jim Wilson  <wilson@redhat.com>
13962
13963         * config/v850/v850.c (current_function_anonymous_args): Delete.
13964         (expand_prologue): Use current_function_args_info.anonymous_args.
13965         (expand_epilogue): Delete use of current_function_anonymous_args.
13966         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
13967         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
13968         (current_function_anonymous_args): Delete extern declaration.
13969         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
13970
13971 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
13972
13973         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
13974         to load_macho_picbase.
13975         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
13976         (load_macho_picbase): Take the symbol to use as a parameter.
13977         (macho_correct_pic): New insn.
13978         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
13979
13980         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
13981         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
13982         (CAN_ELIMINATE): Likewise.
13983         (INITIAL_ELIMINATION_OFFSET): Likewise.
13984         (TOC_REGISTER): Likewise.
13985
13986 2002-09-20  Richard Henderson  <rth@redhat.com>
13987
13988         * real.c (real_hash): New.
13989         * real.h: Declare it.
13990         * cse.c (canon_hash): Use it.
13991         * cselib.c (hash_rtx): Likewise.
13992         * emit-rtl.c (const_double_htab_hash): Likewise.
13993         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
13994         * varasm.c (struct rtx_const): Reduce vector size; separate
13995         integer and fp vectors.
13996         (HASHBITS): Remove.
13997         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
13998         take modulus MAX_HASH_TABLE.
13999         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
14000         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
14001         (SYMHASH): Don't use HASHBITS.
14002         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
14003         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
14004         (simplify_subtraction): Fix kind comparison.
14005         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
14006         Use a union to pun integer array.
14007         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
14008         only hash two words of integral CONST_DOUBLE.
14009
14010 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
14011
14012         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
14013         (STARTFILE_PREFIX_SPEC): New.
14014         (LINK_SPEC): Modify.
14015         (LIB_SPEC): Modify.
14016         (LIBGCC_SPEC): New.
14017
14018 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
14019
14020         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14021         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
14022
14023 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
14024
14025         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
14026         Add clobber of the condition code register.
14027
14028 2002-09-20  Richard Henderson  <rth@redhat.com>
14029
14030         * real.c (do_fix_trunc): Static.
14031         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
14032         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
14033         encode_i370_single, encode_i370_double, encode_c4x_single,
14034         encode_c4x_extended): Add default abort case.
14035
14036 2002-09-20  Richard Henderson  <rth@redhat.com>
14037
14038         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
14039         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
14040         (struct realvaluetype): Remove.
14041         (REAL_VALUE_TYPE): Use struct real_value.
14042         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
14043         (test_real_width): New.
14044         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
14045         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
14046         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
14047         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
14048         real_to_integer, real_to_integer2, real_to_decimal,
14049         real_to_hexadecimal, real_from_string, real_from_integer,
14050         real_inf, real_nan, real_2expN, real_convert, real_to_target,
14051         real_from_target): Likewise.
14052         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
14053         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
14054
14055 2002-09-20  Richard Henderson  <rth@redhat.com>
14056
14057         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
14058         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
14059         * defaults.h: ... here.
14060         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
14061         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
14062         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
14063         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
14064
14065 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
14066
14067         * config/mmix/mmix.md ("negdf2"): Rewrite.
14068         ("*expanded_negdf2"): New.
14069
14070 2002-09-19  Jim Wilson  <wilson@redhat.com>
14071
14072         * combine.c (simplify_set): When optimizing a subreg src with a
14073         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
14074
14075 2002-09-19  Dale Johannesen <dalej@apple.com>
14076         * combine.c (make_extraction): Don't create
14077         invalid subreg.
14078
14079 2002-09-19  Roger Sayle  <roger@eyesopen.com>
14080
14081         * tree.c (integer_nonzerop): New predicate for nonzero integers.
14082         * tree.h (integer_nonzerop): Add function prototype.
14083         * stmt.c (expand_end_loop):  Don't rotate the loop when there
14084         are no instructions in the test, i.e. the loop is unconditional.
14085         (expand_exit_loop_if_false):  Optimize RTL generation of loop
14086         tests when the condition is always true or always false.
14087         * c-semantics.c (genrtl_do_stmt):  Optimize RTL generation of
14088         do-loops when the condition is always true.
14089         (genrtl_for_stmt):  Optimize RTL generation of for-loops when
14090         the for-expression is empty.
14091
14092 2002-09-19  Zack Weinberg  <zack@codesourcery.com>
14093
14094         * gcc.c (use_pipes): New flag.
14095         (process_command): Set it.  Adjust check for -pipe conflicting
14096         with -time or -save-temps.
14097         (do_spec_1): Use it.  Handle %|SUFFIX, %mSUFFIX, and
14098         %<SWITCH.  Drop %| (without a SUFFIX).
14099         (handle_braces): Drop %{<SWITCH}, %{^SWITCH}, %{|...}.
14100         (give_switch): Third argument eliminated.
14101         (invoke_as, @assembler_with_cpp spec): Use %|.s or %m.s
14102         depending on AS_NEEDS_DASH_FOR_PIPED_INPUT.
14103         (specs documentation comment): Update.
14104
14105         * config/netbsd-aout.h, config/openbsd.h, config/ptx4.h,
14106         config/svr4.h, config/i386/freebsd-aout.h,
14107         config/m68k/netbsd-elf.h, config/m68k/netbsd.h,
14108         config/m68k/openbsd.h, config/mips/openbsd.h,
14109         config/sparc/sparc.h: Define AS_NEEDS_DASH_FOR_PIPED_INPUT
14110         instead of putting %| into ASM_SPEC and/or ASM_FINAL_SPEC.
14111         * config/avr/avr.h: Delete do-nothing ASM_FINAL_SPEC.
14112         * config/cris/cris.h: Update comment.
14113
14114         * ada/lang-specs.h: Use %(invoke_as).  Straighten out
14115         error messages.  Don't use %{^SWITCH}.
14116         * ada/misc.c (gnat_decode_option): Handle -I with a
14117         separate argument.
14118
14119         * f/lang-specs.h: Use %| and %m.
14120         * java/jvspec.c: Use %m and %(invoke_as).  Change all
14121         uses of %{<SWITCH} to %<SWITCH.
14122
14123         * doc/invoke.texi: Update documentation of specs.
14124         * doc/tm.texi: Document AS_NEEDS_DASH_FOR_PIPED_INPUT.
14125
14126 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
14127
14128         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
14129         and STRICT_LOW_PART within SET_DEST.
14130         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
14131         splitters, replacing pre-reload splitters.
14132         ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
14133         "*zero_extendqihi2_31"): New insns.
14134         ("*zero_extendqihi2_64"): Do not clobber CC.
14135
14136 2002-09-18  Devang Patel  <dpatel@apple.com>
14137
14138         * cp/cp-tree.h: New prototype for walk_vtables().
14139         * cp/decl.c (walk_vtables_r): New function.
14140         (struct cp_binding_level): Add new members, namespaces,
14141         names_size and vtables.
14142         (add_decl_to_level): Add decl in namespaces or vtables
14143         chain, if conditions match.
14144         (walk_vtables): New function.
14145         (walk_namespaces_r): Travers separate namespace chain
14146         for namespace decls.
14147         (wrapup_globals_for_namespace): Use names_size instead
14148         of list_length().
14149         * cp/decl2.c (finish_file): Use walk_vtables() instead of
14150         walk_globals() to walk vtable decls.
14151
14152 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
14153
14154         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
14155         (DTORS_SECTION_ASM_OP): Ditto.
14156         (READONLY_DATA_SECTION_ASM_OP): Moved.
14157         (DATA_SECTION_ASM_OP): New.
14158         (SDATA_SECTION_ASM_OP): New.
14159         (BSS_SECTION_ASM_OP): New.
14160         (SBSS_SECTION_ASM_OP): New.
14161         (TEXT_SECTION_ASM_OP): New.
14162
14163 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
14164
14165         * config/fp-bit.c: Follow spelling conventions.
14166         * config/d30v/d30v.c: Likewise.
14167         * config/d30v/d30v.h: Likewise.
14168         * config/fr30/fr30.c: Likewise.
14169         * config/fr30/fr30.h: Likewise.
14170         * config/fr30/fr30.md: Likewise.
14171         * config/frv/frv.c: Likewise.
14172         * config/frv/frv.h: Likewise.
14173         * config/h8300/h8300.c: Likewise.
14174         * config/h8300/lib1funcs.asm: Likewise.
14175         * config/i370/i370.c: Likewise.
14176         * config/i386/i386.h: Likewise.
14177         * config/i386/i386.md: Likewise.
14178         * config/i386/pentium.md: Likewise.
14179         * config/i386/winnt.c: Likewise.
14180         * config/i960/i960.c: Likewise.
14181         * config/ia64/ia64.h: Likewise.
14182         * config/ip2k/ip2k.c: Likewise.
14183         * config/ip2k/ip2k.h: Likewise.
14184         * config/ip2k/ip2k.md: Likewise.
14185         * config/ip2k/libgcc.S: Likewise.
14186
14187 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
14188
14189         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
14190         (GOTOFF_P): Extend to allow gotoff plus constant.
14191
14192 2002-09-18  Richard Henderson  <rth@redhat.com>
14193
14194         * ifcvt.c (noce_process_if_block): Correctly detect X modified
14195         with INSN_B before COND_EARLIEST.  Don't check A and B for
14196         modification in condition range.  Reorder INSN_B for A==B properly.
14197         (if_convert): Iterate until no matches for a block.
14198
14199 2002-09-18  Richard Henderson  <rth@redhat.com>
14200
14201         * calls.c (store_one_arg): Rename default_align to parm_align;
14202         always adjust parm_align for downward padding.
14203
14204 2002-09-18  Richard Henderson  <rth@redhat.com>
14205
14206         * toplev.c (backend_init): Move init_real_once invocation ...
14207         (do_compile): ... here.
14208
14209 2002-09-18  Richard Henderson  <rth@redhat.com>
14210
14211         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
14212         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
14213
14214 2002-09-18  Richard Henderson  <rth@redhat.com>
14215
14216         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
14217
14218 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
14219
14220         * config/rs6000/rs6000.md: (floatdisf2): Rename to
14221         floatdisf2_internal1.
14222         (floatdisf2): New define_expand.
14223         (floatdisf2_internal2): Likewise.
14224
14225 2002-09-18  Richard Henderson  <rth@redhat.com>
14226
14227         * real.c (sticky_rshift_significand): Collect sticky as
14228         unsigned long, not bool.
14229
14230 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
14231
14232         * config/s390/s390.c (s390_address_cost): New function.
14233         config/s390/s390-protos.h (s390_address_cost): Add prototype.
14234         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
14235         (RTX_COST): Use COSTS_N_INSNS.
14236
14237 2002-09-18  Douglas Rupp  <rupp@gnat.com>
14238             Donn Terry  <donnte@microsoft.com>
14239
14240         * stor-layout.c (place_field): Handle alignment of whole
14241         structures when MSVC compatible bitfields are involved.
14242         Change method of computing location of MS bitfields to
14243         be compatible with #pragma pack(n).
14244
14245         * tree.h (record_layout_info): Add new field
14246         remaining_in_alignment.
14247
14248         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
14249         (pragma pack): Add paragraph on MSVC bitfield packing.
14250
14251 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
14252
14253         PR optimization/7967
14254         * arm.md (ne_zeroextractsi): Add clobber of the condition code
14255         register.
14256
14257 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
14258
14259         * config/s390/s390.c: Follow spelling conventions.
14260         * config/sh/lib1funcs.asm: Likewise.
14261         * config/sh/sh.c: Likewise.
14262         * config/sh/sh.h: Likewise.
14263         * config/sparc/sparc.c: Likewise.
14264         * config/sparc/sparc.h: Likewise.
14265         * config/sparc/sparc.md: Likewise.
14266         * config/stormy16/stormy16.c: Likewise.
14267         * config/stormy16/stormy16.h: Likewise.
14268         * config/v850/v850.c: Likewise.
14269         * config/v850/v850.h: Likewise.
14270         * config/vax/vax.c: Likewise.
14271         * config/vax/vax.h: Likewise.
14272
14273 2002-09-18  Nick Clifton  <nickc@redhat.com>
14274
14275         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
14276         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
14277         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
14278
14279 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
14280
14281         * function.c (max_parm_reg_num): Remove.
14282         * stmt.c (in_control_zone_p, stmt_loop_nest_empty,
14283         drop_through_at_end_p, move_cleanups_up,
14284         expand_end_case_dummy, case_index_expr_type): Likewise.
14285         * stor-layout.c (pos_from_byte): Likewise.
14286         * tree.c (chain_member_value, chain_member_purpose, listify,
14287         tree_int_cst_msb, index_type_equal): Likewise.
14288         * tree.h: Remove prototypes for unused functions.
14289
14290 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
14291
14292         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
14293         statement that the only translation is to en_UK.
14294
14295 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
14296
14297         * config/alpha/alpha.c: Follow spelling conventions.
14298         * config/alpha/alpha.h: Likewise.
14299         * config/alpha/alpha.md: Likewise.
14300         * config/arc/arc.h: Likewise.
14301         * config/arm/arm.c: Likewise.
14302         * config/arm/arm.h: Likewise.
14303         * config/arm/arm.md: Likewise.
14304         * config/arm/pe.c: Likewise.
14305         * config/arm/unknown-elf.h: Likewise.
14306         * config/avr/avr.c: Likewise.
14307         * config/avr/avr.h: Likewise.
14308         * config/c4x/c4x.c: Likewise.
14309         * config/cris/cris.c: Likewise.
14310         * config/cris/cris.h: Likewise.
14311
14312 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
14313
14314         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
14315         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
14316         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
14317
14318 2002-09-17  Dale Johannesen  <dalej@apple.com>
14319
14320         * cfgcleanup.c (try_forward_edges):  Do not forward a
14321         branch to just after a loop exit before loop optimization;
14322         this interfered with doloop detection.
14323
14324 2002-09-17  Nick Clifton  <nickc@redhat.com>
14325
14326         * config/arm/arm.c (output_return_instruction): Do not
14327         writeback the stack pointer when it is being loaded.
14328         (arm_output_epilogue): Likewise.
14329
14330 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
14331
14332         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
14333         generate a pseudo reg that receives the result of a libcall.
14334         (prepare_float_lib_cmp): Likewise.
14335
14336 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
14337
14338         * config/ia64/elf.h: Remove CPP_PREDEFINES.
14339
14340 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
14341
14342         Fix PR/7014 and related objc bugs:
14343         * c-typeck.c (comp_target_types): Added a reflexive argument.
14344         Pass it to ObjC when/if calling objc_comptypes().  Updated all
14345         callers to provide the appropriate reflexive argument.
14346         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
14347         typechecking for all cases of comparisons and assignments,
14348         particularly the obscure and less common ones involving protocols.
14349
14350 2002-09-17  Nick Clifton  <nickc@redhat.com>
14351
14352         * machmode.def (V1DImode): New mode.  A single element vector.
14353         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
14354         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
14355         * tree.c (build_common_tree_nodes_2): Build
14356         unsigned_V1DI_type_node and V1D1_type_node.
14357         * c-common.c (c_common_type_for_mode): Return
14358         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
14359         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
14360
14361 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
14362
14363         * doc/objc.texi (Constant string objects): Extended documentation
14364         to make clear that the constant string class ivar layout is
14365         completely fixed.
14366
14367 2002-09-17  Roger Sayle  <roger@eyesopen.com>
14368
14369         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
14370         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
14371
14372 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14373
14374         * config/mips/mips.c (save_restore_insns): Remove unused variable.
14375         * gcc.c (make_relative_prefix): Likewise.
14376         * loop.c (check_final_value): Likewise.
14377         * jump.c (init_label_info): Remove return value.
14378         * cse.c (prev_insn): Move variable between #ifdef HAVE_cc0 ... #endif.
14379
14380 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14381
14382         * dsp16xx.h (ASM_FORMAT_PRIVATE_NAME): Delete.
14383         (ASM_PN_FORMAT): Define.
14384
14385 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14386
14387         * alpha.h, alpha/vms.h, arc.h, arm/aof.h, arm/aout.h, avr.h,
14388         c4x.h, cris.h, d30v.h, fr30.h, frv.h, h8300.h, i370.h, i386.h,
14389         i960.h, ia64.h, ip2k.h, m32r.h, m68hc11.h, m68k/3b1.h,
14390         m68k/hp320.h, m68k.h, m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h,
14391         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14392         pa.h, pdp11.h, romp.h, rs6000.h, s390/linux.h, sh.h, sparc.h,
14393         stormy16.h, v850.h, vax.h, xtensa.h (ASM_FORMAT_PRIVATE_NAME):
14394         Delete.
14395         * alpha/vms.h, h8300.h, i370.h, ia64.h, m68k/3b1.h, m68k/hp320.h,
14396         m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h, mmix.h, mn10200.h,
14397         mn10300.h, pa.h, v850.h (ASM_PN_FORMAT): Define.
14398
14399         * defaults.h (ASM_PN_FORMAT, ASM_FORMAT_PRIVATE_NAME): Define.
14400         * doc/tm.texi (ASM_FORMAT_PRIVATE_NAME): Update documentation.
14401
14402 2002-09-16  Richard Henderson  <rth@redhat.com>
14403
14404         * expr.c (emit_block_move): Set memory block size as appropriate
14405         for the copy.
14406
14407 2002-09-16  Richard Henderson  <rth@redhat.com>
14408
14409         PR fortran/3924
14410         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
14411
14412 2002-09-16  Richard Henderson  <rth@redhat.com>
14413
14414         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
14415         as well as OFFSET for BITPOS.
14416
14417 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
14418
14419         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
14420         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
14421         winchip2 and c3.
14422         * doc/invoke.texi: Mention new aliases.
14423
14424 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14425
14426         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
14427         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
14428         downward.
14429         * function.c (pad_below):  Always compile.
14430         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
14431         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
14432         Pad below when the argument is not in a register and the padding
14433         direction is downward.
14434
14435         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
14436         (PAD_VARARGS_DOWN): Define.
14437         * pa.c (function_arg_padding): Revise padding directions to make them
14438         compatible with the 32 and 64-bit runtime architecture documentation.
14439         (hppa_va_arg):  Add code to handle variable and size zero arguments
14440         passed by reference on TARGET_64BIT.  Reformat.
14441         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
14442         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
14443         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
14444         Add comments.
14445         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
14446         (RETURN_IN_MEMORY): Return size zero types in memory.
14447         (FUNCTION_VALUE): Return TFmode in general registers.
14448         (MUST_PASS_IN_STACK): Define.
14449         (FUNCTION_ARG_BOUNDARY): Simplify.
14450         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
14451         by reference.
14452         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
14453
14454 2002-09-16  Richard Henderson  <rth@redhat.com>
14455
14456         * real.c (do_fix_trunc): New.
14457         (real_arithmetic): Call it.
14458         * simplify-rtx.c (simplify_unary_operation): Handle FIX
14459         with a floating-point result mode.
14460
14461 2002-09-16  Richard Henderson  <rth@redhat.com>
14462
14463         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
14464         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
14465         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
14466         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
14467         * builtins.c (fold_builtin_nan): New.
14468         (fold_builtin): Call it.
14469         * real.c (real_nan): Parse a non-empty string.
14470         (round_for_format): Fix NaN significand truncation.
14471         * real.h (real_nan): Return bool.
14472         * doc/extend.texi: Document new builtins.
14473
14474 2002-09-16  Jason Merrill  <jason@redhat.com>
14475             Danny Smith  <dannysmith@users.sourceforge.net>
14476
14477         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
14478         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
14479         (i386_pe_mark_dllimport): Not here.
14480
14481 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
14482
14483         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
14484
14485 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
14486
14487         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
14488         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
14489         < 64.
14490         (rs6000_emit_cmove): Use real_isinf not target_isinf.
14491
14492 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
14493
14494         * calls.c (emit_library_call_value_1): Don't refer to
14495         hard_libcall_value.
14496         * optabs.c (prepare_float_lib_cmp): Likewise.
14497
14498 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
14499
14500         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
14501         mangling.
14502
14503         The following changes are merged from pch-branch:
14504
14505         * doc/gty.texi (GTY Options): Document %a.
14506         * gengtype.c (do_scalar_typedef): New function.
14507         (process_gc_options): Handle `length' option.
14508         (set_gc_used_type): A pointer to an array of structures doesn't
14509         qualify as a pointer to a structure.
14510         (output_escaped_param): Add `%a' escape.
14511         (write_gc_structure_fields): Allow 'desc' on array of unions.
14512         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
14513         do_scalar_typedef.
14514
14515         * gengtype.c (enum rtx_code): Make global.
14516         (rtx_format): Make global.
14517         (rtx_next): New.
14518         (gen_rtx_next): New.
14519         (write_rtx_next): New.
14520         (adjust_field_rtx_def): Skip fields marked by chain_next.
14521         (open_base_files): Delete redundant prototype.
14522         (write_enum_defn): New.
14523         (output_mangled_typename): Correct abort call.
14524         (write_gc_marker_routine_for_structure): Handle chain_next and
14525         chain_prev options.
14526         (finish_root_table): Don't output redundant \n.
14527         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
14528         * c-tree.h (union lang_tree_node): Add chain_next option.
14529
14530         * gengtype.h (NUM_PARAM): New definition.
14531         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
14532         * gengtype.c (find_param_structure): New.
14533         (adjust_field_type): Handle param<n>_is option.
14534         (process_gc_options): Detect use_params option.  Update callers.
14535         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
14536         'use_params' option.
14537         (open_base_files): Add splay-tree.h to list of files included.
14538         (output_mangled_typename): New.
14539         (write_gc_structure_fields): Update 'param' parameter to support
14540         multiple parameters.  Change name mangling.  Allow parameterized
14541         fields to have an apparent scalar type.  Handle param<n>_is options,
14542         use_param option.
14543         (write_gc_marker_routine_for_structure): Update for change to name
14544         mangling.  Better guess the output file for parameterized types.
14545         (write_gc_types): Update for change to name mangling.
14546         (write_gc_root): Update for change to name mangling.  Handle (ignore)
14547         param<n>_is options.
14548         * doc/gty.texi (GTY Options): Add description of param<n>_is
14549         options, use_params option.
14550         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
14551         * gengtype-lex.l: Produce token for param<n>_is.
14552         * gengtype-yacc.y: Parse param<n>_is.
14553
14554         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
14555
14556         * rtl.c: Update comment describing rtx_format.
14557         * rtl.h (union rtunion): Separate definition and typedef.
14558         (struct rtx_def): Use gengtype to mark.
14559         * Makefile.in (gengtype.o): Also depend on rtl.def.
14560         * ggc.h (ggc_mark_rtx_children): Delete prototype.
14561         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
14562         * ggc-common.c (ggc_mark_rtx_children): Delete.
14563         (ggc_mark_rtx_children_1): Delete.
14564         (gt_ggc_m_rtx_def): Delete.
14565         * gengtype.c (adjust_field_rtx_def): New.
14566         (adjust_field_type): Call adjust_field_rtx_def.
14567         (write_gc_structure_fields): Add 'default' case to switch if none
14568         is specified; remove unused code.
14569
14570         * tree.h (struct tree_exp): Update for change to meaning
14571         of special.
14572         * gengtype.c (adjust_field_tree_exp): New function.
14573         (adjust_field_type): Handle `tree_exp' special here.
14574         (write_gc_structure_fields): Don't handle `tree_exp' special here.
14575         Handle new `dot' option.
14576
14577         * gengtype.h: Make `info' a pointer-to-const.
14578         * gengtype-yacc.y (yacc_ids): Use xasprintf.
14579
14580         * gengtype.c (write_gc_structure_fields): Remove implementation
14581         of `always' option, add `default' option.
14582         * doc/gty.texi (GTY Options): Remove documentation of `always',
14583         add `default'.
14584
14585 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
14586
14587         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
14588
14589 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14590
14591         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
14592
14593         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
14594         instead of the *-protos.h file directly.
14595         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
14596         * darwin.c (machopic_output_stub): Move prototype ...
14597         * darwin-protos.h (machopic_output_stub): ... here.
14598         * rs6000-protos.h (machopic_output_stub): Don't declare.
14599
14600 2002-09-16  Richard Henderson  <rth@redhat.com>
14601
14602         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
14603
14604 2002-09-16  Richard Henderson  <rth@redhat.com>
14605
14606         * real.c, real.h: Rewrite from scratch.
14607
14608         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
14609         (paranoia): New target.
14610         * builtins.c (fold_builtin_inf): Use new real.h interface.
14611         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
14612         * c-lex.c (interpret_float): Likewise.
14613         * emit-rtl.c (gen_lowpart_common): Likewise.
14614         * optabs.c (expand_float): Use real_2expN.
14615         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
14616         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
14617         (FLOAT_WORDS_BIG_ENDIAN): New.
14618         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
14619         directly to REAL_VALUE_NEGATIVE.
14620         * loop.c (canonicalize_condition): Likewise.
14621         * simplify-rtx.c: Include tree.h.
14622         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
14623         with floating-point result modes.
14624         * toplev.c (backend_init): Call init_real_once.
14625
14626         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
14627         * tree.c (build_real): Likewise.
14628         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
14629         float_values, inited_float_values, check_float_value): Remove.
14630         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
14631         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
14632         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
14633         (VAX_HALFWORD_ORDER): Remove.
14634
14635 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
14636
14637         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
14638         (s390_load_address): ... this new function.
14639         (s390_decompose_address): Allow the argument pointer and all
14640         virtual registers as 'pointer' registers.
14641         (s390_expand_plus_operand): Use s390_load_address.
14642         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
14643         ("force_la_31"): New insn pattern.
14644         config/s390/s390-protos.h (legitimize_la_operand): Remove.
14645         (s390_load_address): Add prototype.
14646
14647         * config/s390/s390.c: Include "optabs.h".
14648         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
14649         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
14650         s390_expand_cmpstr): Add prototypes.
14651         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
14652         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
14653         for operands 0 and 1 to "memory_operand".  Add type attribute.
14654         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
14655         for operands 0 and 1 to "memory_operand".  Add type attribute.
14656         ("movstrdi_long", "movstrsi_long"): Remove.
14657         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
14658         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
14659         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
14660         ("clrstrsico"): Remove, replace by ...
14661         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
14662         ("clrstrsi_64"): Rename to "clrstr_long_64".
14663         ("clrstrsi_31"): Rename to "clrstr_long_31".
14664         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
14665         ("cmpstr_const"): Remove, replace by ...
14666         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
14667         ("cmpstr_64"): Rename to "cmpstr_long_64".
14668         ("cmpstr_31"): Rename to "cmpstr_long_31".
14669
14670 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
14671
14672         * ABOUT-NLS: Follow spelling conventions.
14673         * ChangeLog: Likewise.
14674         * ChangeLog.1: Likewise.
14675         * ChangeLog.2: Likewise.
14676         * ChangeLog.3: Likewise.
14677         * ChangeLog.4: Likewise.
14678         * ChangeLog.5: Likewise.
14679         * ChangeLog.6: Likewise.
14680         * FSFChangeLog.10: Likewise.
14681         * FSFChangeLog.11: Likewise.
14682         * c-common.c: Likewise.
14683         * c-lex.c: Likewise.
14684         * c-objc-common.c: Likewise.
14685         * cppexp.c: Likewise.
14686         * cppinit.c: Likewise.
14687         * cpplex.c: Likewise.
14688         * doloop.c: Likewise.
14689         * flow.c: Likewise.
14690         * function.c: Likewise.
14691         * integrate.c: Likewise.
14692         * loop.c: Likewise.
14693         * reg-stack.c: Likewise.
14694         * reload.h: Likewise.
14695         * ssa.c: Likewise.
14696
14697 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14698
14699         * Makefile.in (vmsdbgout.o): Depend on $(TARGET_H)
14700         * vmsdbgout.c: Include "target.h".
14701
14702 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
14703
14704         * ChangeLog: Follow spelling conventions.
14705         * ChangeLog.0: Likewise.
14706         * ChangeLog.1: Likewise.
14707         * ChangeLog.2: Likewise.
14708         * ChangeLog.4: Likewise.
14709         * ChangeLog.6: Likewise.
14710         * config.gcc: Likewise.
14711         * dwarfout.c: Likewise.
14712         * reload1.c: Likewise.
14713         * simplify-rtx.c: Likewise.
14714         * unwind-sjlj.c: Likewise.
14715         * config/avr/avr.h: Likewise.
14716         * config/d30v/d30v.h: Likewise.
14717         * config/frv/frv.c: Likewise.
14718         * config/frv/frv.h: Likewise.
14719         * config/ip2k/ip2k.h: Likewise.
14720         * config/m88k/m88k-move.sh: Likewise.
14721         * config/stormy16/stormy16.c: Likewise.
14722         * config/stormy16/stormy16.h: Likewise.
14723         * doc/extend.texi: Likewise.
14724         * doc/interface.texi: Likewise.
14725         * doc/invoke.texi: Likewise.
14726         * doc/md.texi: Likewise.
14727         * doc/rtl.texi: Likewise.
14728         * doc/tm.texi: Likewise.
14729         * doc/trouble.texi: Likewise.
14730         * ginclude/float.h: Likewise.
14731         * treelang/treelang.texi: Likewise.
14732
14733 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14734
14735         * i386-protos.h (i386_pe_dllexport_name_p,
14736         i386_pe_dllimport_name_p, i386_pe_unique_section,
14737         i386_pe_declare_function_type, i386_pe_record_external_function,
14738         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
14739         prototype.
14740         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
14741         * i386/t-interix (winnt.o): Likewise.
14742
14743         * v850-protos.h (v850_output_addr_const_extra): Prototype.
14744
14745 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
14746
14747         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
14748         MIPS ABI CPP macros.
14749         (TARGET_CPU_CPP_BUILTINS): Redefine.
14750         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
14751         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
14752
14753 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14754
14755         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
14756
14757 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
14758
14759         * ChangeLog: Follow spelling conventions.
14760         * ChangeLog.0: Likewise.
14761         * ChangeLog.1: Likewise.
14762         * ChangeLog.2: Likewise.
14763         * ChangeLog.3: Likewise.
14764         * ChangeLog.4: Likewise.
14765         * ChangeLog.5: Likewise.
14766         * ChangeLog.6: Likewise.
14767         * FSFChangeLog.10: Likewise.
14768         * FSFChangeLog.11: Likewise.
14769         * c-common.c: Likewise.
14770         * c-common.h: Likewise.
14771         * c-format.c: Likewise.
14772         * c-opts.c: Likewise.
14773         * cpplib.c: Likewise.
14774         * langhooks.h: Likewise.
14775         * real.c: Likewise.
14776         * reg-stack.c: Likewise.
14777         * toplev.c: Likewise.
14778         * config/arm/arm.c: Likewise.
14779         * config/arm/arm.md: Likewise.
14780         * config/arm/linux-gas.h: Likewise.
14781         * config/arm/netbsd.h: Likewise.
14782         * config/c4x/c4x.c: Likewise.
14783         * config/c4x/c4x.h: Likewise.
14784         * config/c4x/c4x.md: Likewise.
14785         * config/c4x/libgcc.S: Likewise.
14786         * config/fr30/fr30.md: Likewise.
14787         * config/frv/frv.md: Likewise.
14788         * config/ia64/ia64.md: Likewise.
14789         * config/mips/mips.h: Likewise.
14790         * config/mn10300/mn10300.c: Likewise.
14791         * config/stormy16/stormy16.c: Likewise.
14792         * config/v850/v850.md: Likewise.
14793         * doc/extend.texi: Likewise.
14794         * doc/invoke.texi: Likewise.
14795         * doc/md.texi: Likewise.
14796
14797 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
14798
14799         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
14800         library if -pthread is specified.
14801
14802 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
14803
14804         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
14805         for --enable-threads=yes and --enable-threads=posix.
14806
14807 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
14808
14809         * config/sparc/cypress.md: Replace Sparc with SPARC.
14810         * config/sparc/freebsd.h: Likewise.
14811         * config/sparc/gmon-sol2.c: Likewise.
14812         * config/sparc/hypersparc.md: Likewise.
14813         * config/sparc/lb1spc.asm: Likewise.
14814         * config/sparc/lb1spl.asm: Likewise.
14815         * config/sparc/linux.h: Likewise.
14816         * config/sparc/linux64.h: Likewise.
14817         * config/sparc/lynx.h: Likewise.
14818         * config/sparc/sol2.h: Likewise.
14819         * config/sparc/sparc-modes.def: Likewise.
14820         * config/sparc/sparc.c: Likewise.
14821         * config/sparc/sparc.h: Likewise.
14822         * config/sparc/sparc.md: Likewise.
14823         * config/sparc/sparclet.md: Likewise.
14824         * config/sparc/supersparc.md: Likewise.
14825         * config/sparc/sysv4.h: Likewise.
14826         * config/sparc/vxsim.h: Likewise.
14827         * config/sparc/vxsparc64.h: Likewise.
14828
14829 2002-09-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14830
14831         * c-lex.c (cb_ident): Mark variable with ATTRIBUTE_UNUSED.
14832         * collect2.c (ignore_library, aix_std_libs): Move into the context
14833         where it is used.
14834         * m68hc11.c (m68hc11_autoinc_compatible_p): Delete prototype.
14835         (autoinc_mode, m68hc11_make_autoinc_notes): Add prototypes.
14836         * m88k.c (output_call): Wrap variables with macro controlling use.
14837         * rs6000.md: Likewise.  Const-ify variable.
14838         * sh.h (ASM_OUTPUT_LABELREF): Likewise.
14839         * final.c (only_leaf_regs_used): Likewise.
14840         * regrename.c (maybe_mode_change): Mark parameter with
14841         ATTRIBUTE_UNUSED.
14842         * reload.c (find_valid_class): Likewise.  Likewise for variable.
14843         (find_reloads_address_1): Likewise.
14844         * varasm.c (weak_finish): Wrap variable with macro controlling use.
14845
14846 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14847
14848         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
14849
14850 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
14851
14852         * ChangeLog: Follow spelling conventions.
14853         * ChangeLog.0: Likewise.
14854         * ChangeLog.2: Likewise.
14855         * ChangeLog.3: Likewise.
14856         * ChangeLog.4: Likewise.
14857         * ChangeLog.5: Likewise.
14858         * ChangeLog.6: Likewise.
14859         * cppfiles.c: Likewise.
14860         * cppinit.c: Likewise.
14861         * cpplib.h: Likewise.
14862         * cse.c: Likewise.
14863         * debug.h: Likewise.
14864         * df.c: Likewise.
14865         * dominance.c: Likewise.
14866         * hashtable.c: Likewise.
14867         * hashtable.h: Likewise.
14868         * loop.c: Likewise.
14869         * config/arm/README-interworking: Likewise.
14870         * config/arm/arm.c: Likewise.
14871         * config/arm/arm.h: Likewise.
14872         * config/arm/arm.md: Likewise.
14873         * config/dsp16xx/dsp16xx.h: Likewise.
14874         * config/frv/frv.c: Likewise.
14875         * config/frv/frv.h: Likewise.
14876         * config/ip2k/ip2k.h: Likewise.
14877         * config/rs6000/rs6000.c: Likewise.
14878         * config/stormy16/stormy-abi: Likewise.
14879         * config/stormy16/stormy16.h: Likewise.
14880         * config/v850/v850.c: Likewise.
14881
14882 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
14883
14884         * loop.c: Fix a comment typo.
14885
14886 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
14887
14888         * config/fr30/fr30.h: Fix comment typos.
14889         * config/frv/frv.c: Likewise.
14890         * config/i386/xmmintrin.h: Likewise.
14891         * config/mips/mips.c: Likewise.
14892         * config/sh/sh.c: Likewise.
14893
14894 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
14895
14896         * haifa-sched.c: Follow spelling conventions.
14897         * regclass.c: Likewise.
14898         * regrename.c: Likewise.
14899         * config/fp-bit.c: Likewise.
14900         * config/frv/frv.h: Likewise.
14901         * config/m88k/m88k.c: Likewise.
14902         * config/mcore/mcore.c: Likewise.
14903         * config/rs6000/darwin.h: Likewise.
14904         * config/rs6000/gnu.h: Likewise.
14905         * config/rs6000/linux.h: Likewise.
14906         * config/rs6000/linux64.h: Likewise.
14907         * config/rs6000/rs6000.c: Likewise.
14908         * config/rs6000/rs6000.h: Likewise.
14909         * config/sh/sh.c: Likewise.
14910         * config/sparc/sparc.c: Likewise.
14911         * config/sparc/ultra1_2.md: Likewise.
14912
14913 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
14914
14915         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
14916         memory operand when source is 0 (K constraint).
14917         ("movsi_internal"): Likewise.
14918         ("movdf_internal"): Likewise.
14919         ("movsf_internal"): Likewise.
14920
14921 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
14922
14923         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
14924         targetm.binds_local_p to set SYMBOL_REF_FLAG.
14925         (rs6000_xcoff_encode_section_info): Likewise.
14926         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14927
14928 2002-09-10  Theodore A. Roth  <troth@verinet.com>
14929
14930         * gcc/config/avr/avr.h: Set default options for C++ for avr.
14931
14932 2002-09-13  Roger Sayle  <roger@eyesopen.com>
14933
14934         * stmt.c (struct nexting): Remove unused alt_end_label field.
14935         (expand_start_loop): Delete initialization of alt_end_label.
14936         (expand_start_null_loop): Likewise.
14937         (expand_exit_loop_if_false): Delete updating of alt_end_label.
14938
14939 2002-09-13  Richard Henderson  <rth@redhat.com>
14940
14941         * Makefile.in (toplev.o): Depend on real.h.
14942         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
14943
14944 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
14945
14946         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
14947         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
14948         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
14949
14950 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
14951
14952         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
14953
14954 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
14955
14956         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
14957         ia64*-*-linux*): Set extra_parts.
14958         * config/ia64/t-aix (EXTRA_PARTS): Remove.
14959         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
14960
14961 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
14962
14963         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
14964         * config/h8300/h8300.c: Likewise.
14965         * config/h8300/h8300.h: Likewise.
14966         * config/h8300/h8300.md: Likewise.
14967         * doc/invoke.texi: Likewise.
14968
14969 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
14970
14971         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
14972
14973 2002-09-13  Richard Henderson  <rth@redhat.com>
14974
14975         * config/alpha/alpha.md (attr type): Add callpal.
14976         (imb, trap, load_tp, set_tp): Use it.
14977         * config/alpha/ev4.md (ev4_callpal): New.
14978         * config/alpha/ev5.md (ev5_callpal): New.
14979         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
14980         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
14981         (alphaev5_insn_pipe): Likewise.
14982
14983 2002-09-13  Andreas Jaeger  <aj@suse.de>
14984
14985         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
14986
14987 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
14988
14989         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
14990         LIB2ADDEH): New, set to NULL.
14991         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
14992
14993 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
14994
14995         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
14996         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
14997         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
14998         Add declarations.
14999         (_U_Qfneg): Remove.
15000
15001 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
15002
15003         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
15004         for H8/300, H8S aa:8 mode.
15005         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
15006         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
15007         for H8/300 aa:8 mode.
15008
15009 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
15010
15011         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
15012         insns.
15013
15014 2002-09-12  Richard Henderson  <rth@redhat.com>
15015
15016         * Makefile.in (HOST_PRINT): Use print-rtl1.o
15017         (print-rtl.o): Don't define GENERATOR_FILE.
15018         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
15019         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
15020         unless GENERATOR_FILE.
15021
15022 2002-09-12  Stan Shebs  <shebs@apple.com>
15023
15024         * config/darwin.h (USER_LABEL_PREFIX): Define here...
15025         * config/i386/darwin.h: ... instead of here.
15026
15027         * target.h (struct gcc_target): New field
15028         terminate_dw2_eh_frame_info.
15029         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
15030         (TARGET_INITIALIZER): Add it.
15031         * dwarf2out.c (output_call_frame_info): Use target hook.
15032         * dwarf2asm.c (dw2_asm_output_delta): Use macro
15033         ASM_OUTPUT_DWARF_DELTA if defined.
15034         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
15035         (ASM_OUTPUT_DWARF_DELTA): Ditto.
15036         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
15037         (ASM_OUTPUT_DWARF_PCREL): Ditto.
15038         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
15039         (powerpc-*-darwin*): Ditto.
15040         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
15041         to work correctly for Darwin.
15042         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
15043         (STARTFILE_SPEC): Add crtbegin.o.
15044         (ENDFILE_SPEC): Define.
15045         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
15046         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
15047         (ASM_OUTPUT_DWARF_DELTA): Define.
15048         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
15049         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
15050
15051 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
15052
15053         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
15054         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
15055         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
15056
15057 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
15058
15059         * toplev.c: Move default definition of USER_LABEL_PREFIX...
15060         * defaults.h: ... here.
15061
15062 2002-09-12  Richard Henderson  <rth@redhat.com>
15063
15064         * vax.c: Include tree.h earlier.
15065
15066 2002-09-12  Stan Shebs  <shebs@apple.com>
15067
15068         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
15069         (machopic_operand_p): Ditto.
15070
15071 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15072
15073         * config/arm/arm.c (arm_compute_initial_elimination_offset):
15074         Fix a comment typo.
15075
15076 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15077
15078         * toplev.c (do_abort): Fix a comment typo.
15079
15080 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15081
15082         * cselib.c: Fix comment formatting.
15083         * gengtype.c: Likewise.
15084
15085 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15086
15087         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
15088         (udivmodhi4): Likewise.
15089
15090 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
15091             Roger Sayle  <roger@eyesopen.com>
15092
15093         * i386.c (any_fp_register_operand, fp_register_operand,
15094         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
15095         New predicate functions.
15096         * i386-protos.h:  Add their prototypes.
15097         * i386.h: Add them to PREDICATE_CODES.
15098         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
15099         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
15100         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
15101         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
15102         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
15103         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
15104         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
15105         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
15106         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
15107         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
15108         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
15109         Use these new predicates to simplify and correct the use of
15110         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
15111
15112 2002-09-12  Jason Merrill  <jason@redhat.com>
15113
15114         * diagnostic.c (output_add_identifier): New fn.
15115         * diagnostic.h: Declare it.
15116
15117         * calls.c (store_one_arg): Use size_in_bytes to determine the
15118         amount of space to push.
15119
15120 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
15121
15122         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
15123
15124 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
15125
15126         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
15127         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
15128         (s390_select_ccmode): Likewise.
15129         (s390_branch_condition_mask): Likewise.
15130         (optimization_options): Do not set flag_branch_on_count.
15131         (s390_split_branches): Handle doloop branches.
15132         (s390_chunkify_pool): Likewise.
15133         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
15134         ("doloop_end"): New expander.
15135         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
15136         associated splitters): New.
15137
15138 2002-09-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15139
15140         * genattrtab.c (simplify_cond): Remove unused variable(s).
15141         * global.c (record_conflicts): Likewise.
15142         * jump.c (rebuild_jump_labels): Likewise.
15143         * loop.c (scan_loop, check_final_value): Likewise.
15144         * ra-colorize.c (colorize_one_web, assign_colors): Likewise.
15145         * reload1.c (eliminate_regs_in_insn, do_input_reload): Likewise.
15146         * rtlanal.c (reg_set_p): Likewise.
15147         * stmt.c (expand_asm_operands, expand_decl): Likewise.
15148         * genautomata.c (empty_reserv): Remove.
15149         * loop.c (max_luid): Likewise.
15150         * sched-rgn.c (bitlst_table_size): Likewise.
15151
15152 2002-09-11  Nathan Sidwell  <nathan@codesourcery.com>
15153
15154         Reimplement gcov format.
15155         * gcov-io.h: Replace.
15156         * gcov.c: Reimplement.
15157         * gcov-iov.c: New file.
15158         * gcov-dump.c: New file.
15159         * libgcc2.c (L_bb): Replace with ...
15160         (L_gcov): ... this.
15161         (struct bb_function_info, struct bb): Remove.
15162         (inhibit_libc): Never inhibit.
15163         (gcov_list, gcov_crc): New static variables.
15164         (gcov_version_mismatch): New static function.
15165         (__bb_exit_func): Renamed to ...
15166         (__gcov_exit): ... here. Made static. Reimplement.
15167         (__gcov_init_func): Rename to ...
15168         (__gcov_init): ... here. Check version, update crc.
15169         (__bb_fork_func): Rename to ...
15170         (__gcov_flush): ... here.
15171         * libgcc2.h (struct bb, __bb_exit_func, __bb_init_func,
15172         __bb_fork_func, gcov_type, __bb_find_arc_counters): Remove.
15173         * calls.c (expand_call): Call __gcov_flush.
15174         * profile.c (bb_file, last_bb_file_name): Remove.
15175         (bbg_file_name): New global variable.
15176         (output_gcov_string): Remove.
15177         (get_exec_counts): Reimplement.
15178         (branch_prob): Reimplement gcov file writing.
15179         (init_branch_prob): Create bbg_file_name, don't create
15180         bb_file_name.
15181         (end_branch_prob): Adjust. Don't remove counter file when
15182         instrumenting ourselves.
15183         (create_profiler): Adjust.
15184         * doc/gcov.texi (Gcov Data Files): Remove detailed specification,
15185         point to gcov-io.h.
15186         * Makefile.in (LANGUAGES): Add gcov-dump.
15187         (coverageexts): Remove .bb.
15188         (STAGESTUFF): Add gcov-dump.
15189         (LIB2FUNCS_ST): Replace _bb with _gcov.
15190         (profile.o): Depend on gcov-iov.h.
15191         (final.o): Don't depend on profile.h, gcov.h.
15192         (gcov.o): Depend on gcov-iov.h.
15193         (gcov-iov.o): New target.
15194         (gcov-iov): New target.
15195         (gcov-iov.h): New target.
15196         (gcov-dump.o): New target.
15197         (GCOV_DUMP_OBJS): New variable.
15198         (gcov-dump): New target.
15199         (distclean): Remove coverageexts.
15200         (stage1): Remove coverageexts.
15201
15202 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
15203
15204         * fold-const.c (make_range): Only narrow to signed range if
15205         the signed range is smaller than the unsigned range.
15206
15207 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
15208
15209         * emit-rtl.c (set_mem_size): New function.
15210         * expr.h (set_mem_size): Declare.
15211         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
15212         (expand_block_move): Instead, use adjust_address and
15213         replace_equiv_address to generate proper aliasing info.
15214         Move common code out of conditionals.  Localize vars.
15215
15216 2002-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
15217
15218         * optabs.c (expand_binop): Minor cleanup.
15219         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
15220
15221 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
15222
15223         * print-tree.c (print_node): Print the restrict qualifier.
15224
15225 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
15226
15227         * doc/install.texi: Fix typos.
15228
15229 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
15230
15231         * Makefile.in: Remove all references to s-under and underscore.c.
15232         * collect2.c, tlink.c: Change all uses of prepends_underscore
15233         to look directly at USER_LABEL_PREFIX.
15234
15235 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
15236
15237         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
15238         alignment to csect.
15239         (rs6000_xcoff_unique_section): Only set section name for public
15240         data.
15241         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
15242         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
15243         duplicate definition.
15244
15245 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15246
15247         * pa.md (extzv): Check predicates before emitting extzv_32.
15248         (insv): Likewise.
15249
15250 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
15251
15252         * config/s390/s390.h (MOVE_MAX): Define to correct value.
15253         (MAX_MOVE_MAX): Define.
15254         (MOVE_BY_PIECES_P): Define.
15255         (CLEAR_BY_PIECES_P): Define.
15256
15257 2002-09-10  Denis Chertykov  <denisc@overta.ru>
15258
15259         * config/avr/avr.md (movstrhi): Use right operands for conversion.
15260
15261 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
15262
15263         PR c/7873
15264         * arm.md (insv): Use reg_or_int_operand for operand[3].
15265
15266 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
15267
15268         * rs6000.c (rs6000_assemble_visibility): Protect declaration
15269         inside macro.  Correct function definition typo.
15270         (rs6000_xcoff_section_type_flags): New function.
15271         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
15272         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
15273         with appropriate PIC test.
15274         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
15275         determine readonly.
15276         (rs6000_binds_local_p): Combine PIC flags.
15277         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
15278         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
15279
15280 2002-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15281
15282         * h8300.md: Fix signed/unsigned warnings.
15283         * mcore.md: Likewise.
15284         * mn10300.c (mask_ok_for_mem_btst): Likewise.
15285
15286 2002-09-09  Per Bothner  <per@bothner.com>
15287
15288         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
15289         characters, and only print TREE_STRING_LENGTH chars.
15290
15291 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
15292
15293         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
15294         (ASM_FILE_END) New.
15295         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
15296         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
15297         * config/ia64/ia64.c (ia64_asm_output_external): Create list
15298         of external functions if TARGET_HPUX_LD is true.
15299         (ia64_hpux_add_extern_decl): New, routine to put names on
15300         list of external functions.
15301         (ia64_hpux_asm_file_end): Put out declarations for external
15302         functions if and only if they are used.
15303
15304 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15305
15306         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
15307         on TARGET_64BIT before pic register restore.
15308
15309 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
15310
15311         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
15312         (TARGET_HAVE_TLS): New description.
15313
15314 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
15315
15316         * doc/extend.texi (Statement Exprs): Fix broken link.
15317
15318 2002-09-09  Denis Chertykov  <denisc@overta.ru>
15319
15320         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
15321         right conversion of operands[1].
15322
15323 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
15324
15325         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
15326         commutative.  Use "nonimmediate_operand" instead of "register_operand"
15327         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
15328
15329         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
15330         as commutative.
15331
15332         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
15333         mark as commutative.  Use "nonimmediate_operand" instead of
15334         "register_operand" as predicate for operand 1.
15335
15336         ("movstrictsi"): Fix typo in insn name.
15337
15338 2002-09-09  Jan Hubicka  <jh@suse.cz>
15339
15340         * i386.c (index_register_operand): New.
15341         * i386.h (predicate_codes): Add new predicate.
15342         * i386.md (lea_general_*): Use index_register_operand
15343         (ashift to lea splitter): Do not produce invalid leas
15344         (ashift to mov+ashift split): New.
15345
15346 2002-09-09  Nick Clifton  <nickc@redhat.com>
15347
15348         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
15349         Fix folding marks.
15350
15351 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15352             J"orn Rennecke <joern.rennecke@superh.com>
15353
15354         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
15355
15356 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
15357
15358         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
15359         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
15360         attributes.
15361
15362 2002-09-08  Nathan Sidwell  <nathan@codesourcery.com>
15363
15364         * basic_block.h (gcov_type): Explain why it is signed.
15365         * final.c: Don't include profile.h.
15366         (struct function_list, functions_head, functions_tail,
15367         end_final): Moved to profile.c
15368         (final): Move arc chaining code to profile.c.
15369         * function.c (prepare_function_start): Remove duplicate line.
15370         * output.h (end_final): Remove prototype.
15371         * predict.c (estimate_loops_at_level): Use gcov_type.
15372         * profile.c (struct function_list, functions_head,
15373         functions_tail): Moved from final.c
15374         (need_func_profiler): Remove.
15375         (instrument_edges): Don't set need_func_profiler.
15376         (get_exec_counts): Avoid signed/unsigned warning.
15377         (compute_checksum): Use crc32.
15378         (branch_prob): Adjust. Chain onto functions_head.
15379         (init_branch_prob): Absorb init_edge_profiler.
15380         (init_edge_profiler): Remove.
15381         (create_profiler): Moved and renamed from final.c:end_final.
15382         Emit data and constructor.
15383         (output_func_start_profiler): Remove.
15384         * profile.h (struct profile_info): checksum is unsigned.
15385         * rtl.h (output_func_start_profiler): Remove prototype.
15386         (create_profiler): Declare.
15387         * toplev.c (compile_file): Call create_profiler, if instrumenting
15388         arcs. Don't call end_final.
15389
15390 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15391
15392         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
15393
15394 2002-09-08  Richard Henderson  <rth@redhat.com>
15395
15396         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
15397         (DW_OP_GNU_push_tls_address): New.
15398         (DW_OP_lo_user): Fix.
15399         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
15400         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
15401         (size_of_loc_descr): Likewise.
15402         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
15403         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
15404         (loc_descriptor_from_tree): Handle TLS variables.
15405         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
15406         (add_location_or_const_value_attribute): ... not here.  Defer
15407         to loc_descriptor_from_tree for TLS variables.
15408
15409         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
15410         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
15411         * config/i386/i386-protos.h: Update.
15412
15413 2002-09-08  Roger Sayle  <roger@eyesopen.com>
15414
15415         PR optimization/6405
15416         * unroll.c (loop_iterations): last_loop_insn should be the previous
15417         non-note instruction before loop->end.
15418         * loop.c (strength_reduce): The conditional jump is the last
15419         non-note instruction before loop->end (as above).
15420
15421 2002-09-08  Roger Sayle  <roger@eyesopen.com>
15422
15423         * combine.c (try_combine): Handle the case that undobuf.other_insn
15424         has been turned into a return or unconditional jump, by inserting
15425         a BARRIER if necessary.
15426         (simplify_set):  Test if a condition code setter has a constant
15427         comparison at compile time, if so convert this insn to a no-op move
15428         and update/simplify the condition code user (undobuf.other_insn).
15429
15430 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
15431
15432         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
15433         (CLEAR_INSN_CACHE): Define.
15434
15435 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
15436
15437         * basic-block.h: Fix comment formatting.
15438         * c-common.c: Likewise.
15439         * c-common.h: Likewise.
15440         * c-lex.c: Likewise.
15441         * c-pretty-print.c: Likewise.
15442         * cfglayout.c: Likewise.
15443         * cfgloop.c: Likewise.
15444         * defaults.h: Likewise.
15445         * et-forest.c: Likewise.
15446         * explow.c: Likewise.
15447         * function.h: Likewise.
15448         * gcov.c: Likewise.
15449         * genattrtab.c: Likewise.
15450         * gengtype.c: Likewise.
15451         * ifcvt.c: Likewise.
15452         * libgcc2.c: Likewise.
15453         * loop.c: Likewise.
15454         * profile.c: Likewise.
15455         * ra-build.c: Likewise.
15456         * real.c: Likewise.
15457         * rtl.h: Likewise.
15458         * tracer.c: Likewise.
15459         * tree-inline.c: Likewise.
15460         * varasm.c: Likewise.
15461
15462 2002-09-08  Jan Hubicka  <jh@suse.cz>
15463
15464         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
15465         handling.
15466
15467         * loop.c (loop_givs_reduce):  Emit addition after.
15468
15469 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
15470
15471         * varasm.c (default_assemble_visibility): Rename from
15472         assemble_visibility.
15473         * output.h: Here too.
15474         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
15475         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
15476
15477 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
15478
15479         * reload.c (find_reloads <p constraint>): Pass operand_mode to
15480         find_reloads_address.
15481
15482 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
15483
15484         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
15485         (anonymous pattern): Likewise.
15486
15487 2002-09-07  Igor Shevlyakov <igor@microunity.com>
15488
15489         * machmode.def: Add modes for half-float vectors.
15490
15491 2002-09-07  Scott Snyder  <snyder@fnal.gov>
15492
15493         PR target/7374
15494         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
15495
15496 2002-09-07  Roger Sayle  <roger@eyesopen.com>
15497
15498         * basic-block.h (struct loop): Remove unused cont_dominator field.
15499
15500 2002-09-07  Igor Shevlyakov <igor@microunity.com>
15501
15502         * varasm.c (decode_rtx_const): Don't check undefined field for
15503         CONST_VECTOR.
15504
15505 2002-09-07  Glen Nakamura  <glen@imodulo.com>
15506
15507         PR opt/7814
15508         * sched-deps.c (sched_analyze_insn): Make sure to add insn
15509         to reg_last->sets after flushing the dependency lists to guarantee
15510         that subsequent clobbers will be dependent on it.
15511
15512 2002-09-07  Igor Shevlyakov <igor@microunity.com>
15513
15514         * combine.c (simplify_shift_const): Calculate rotate count
15515         correctly for vector operands.
15516
15517 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
15518
15519         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
15520         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
15521         tree_expr_nonnegative_p.
15522         (build_conditional_expr): Likewise.
15523         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
15524
15525 2002-09-07  Richard Henderson  <rth@redhat.com>
15526
15527         * builtins.def (inf, inff, infl): Mark const.
15528         (huge_val, huge_valf, huge_vall): Likewise.
15529         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
15530
15531         * real.c (ereal_inf): Clear E before use.
15532
15533 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
15534
15535         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
15536         an expander and an anonymous pattern.  Zero out the upper half
15537         of the dividend in the expander.
15538         (udivmodqi4): Likewise.
15539
15540 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
15541
15542         * config/h8300/h8300.c: Fix formatting.
15543         * config/h8300/h8300.h: Likewise.
15544         * config/h8300/h8300.md: Likewise.
15545
15546 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15547
15548         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
15549         information.
15550
15551 2002-09-07  Graham Stott  <graham.stott@btinternet.com>
15552
15553        * rtlanal.c (dead_or_set_regno_p): Fix typo.
15554
15555 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
15556
15557         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15558
15559         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
15560         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
15561         (TARGET_ASM_OUT): Add the above here.
15562         * target.h (struct gcc_target): Add "visibility" field.
15563         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
15564         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
15565         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
15566         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
15567
15568 2002-09-06  Ziemowit Laski <zlaski@apple.com>
15569
15570         * c-lang.c (objc_is_id): New stub.
15571         * c-tree.h (objc_is_id): New forward declaration.
15572         * c-typeck.c (build_c_cast): Do not strip protocol
15573         qualifiers from 'id' type.
15574         * objc/objc-act.c (objc_comptypes): Correct handling
15575         of protocol qualifiers.
15576         (objc_is_id): New.
15577
15578 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
15579
15580         * pentium.md (pentium-firstvboth): Fix typo.
15581
15582 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
15583
15584         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
15585         (enum shift_type, enum h8_cpu): Likewise.
15586         (INL, ROT, LOP, SPC macros): Likewise.
15587         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
15588         const designator.
15589         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
15590         space efficient algorithms when optimize for codesize.
15591
15592 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15593
15594         Fix PR/1727 and long-standing failing testcase
15595         objc/formal-protocol-6.m.
15596         * objc-act.c (build_protocol_expr): If compiling for the GNU
15597         runtime, create a list of Protocol statically allocated instances
15598         if it doesn't exist, then add the Protocol object to this same
15599         list.
15600         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
15601         instead of TREE_CHAIN.
15602
15603 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15604
15605         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
15606         10k.  Fixed category dumping - print out category names with the
15607         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
15608         interface.
15609         (finish_objc): Fixed the -gen-decls option.  It was printing out
15610         only the last class.  Dump an interface declaration of all classes
15611         being compiled instead.
15612
15613 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
15614
15615         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
15616         prototype.
15617         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
15618         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
15619         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
15620         rather than GEN_INT.
15621         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
15622         (return_addr_mask, *check_arch2): New.
15623
15624 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
15625
15626         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
15627         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
15628         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
15629         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
15630         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
15631         "adddf3", "*adddf3", "*adddf3_ibm",
15632         "addsf3", "*addsf3", "*addsf3_ibm",
15633         "muldi3", "mulsi3", "mulsidi3",
15634         "muldf3", "*muldf3", "*muldf3_ibm",
15635         "mulsf3", "*mulsf3", "*mulsf3_ibm",
15636         "*anddi3_cc", "*anddi3_cconly", "anddi3",
15637         "*andsi3_cc", "*andsi3_cconly", "andsi3",
15638         "*iordi3_cc", "*iordi3_cconly", "iordi3",
15639         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
15640         "*xordi3_cc", "*xordi3_cconly", "xordi3",
15641         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
15642         instead of "register_operand" as predicate for "%0" operand.
15643
15644 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
15645
15646         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
15647         unconditionally when gcc_cv_as_flags64 checks are gone.
15648         * configure: Rebuilt.
15649
15650 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
15651
15652         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
15653         2002-07-26 change.  Comment.
15654
15655 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15656
15657         * frv.c (frv_unique_section, frv_select_section,
15658         frv_select_rtx_section): Delete.
15659         (frv_in_small_data_p): New.
15660         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
15661         TARGET_ASM_SELECT_RTX_SECTION): Delete.
15662         (TARGET_IN_SMALL_DATA_P): Define.
15663
15664 2002-09-05  Dale Johannesen  <dalej@apple.com>
15665
15666         * reload1.c (reload):  Retain only those memory clobbers
15667         added for variable-array handling.
15668
15669 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
15670
15671         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
15672         return-in-memory rules.
15673         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
15674
15675 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
15676
15677         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
15678         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
15679
15680 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
15681
15682         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
15683         not a compile-time constant for the non-IBM case.
15684         * config/arm/arm-protos.h (arm_float_words_big_endian): New
15685         prototype.
15686         * config/arm/arm.c (arm_float_words_big_endian): New function.
15687         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
15688         if TARGET_VFP  and not TARGET_HARD_FLOAT.
15689         (ARM_FLAG_VFP, TARGET_VFP): Define.
15690         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
15691
15692 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
15693
15694         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
15695         URLs.  Fix AIX wording.
15696
15697 2002-09-05  Stan Shebs  <shebs@apple.com>
15698
15699         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
15700         -fPIC equivalent on Darwin.
15701
15702 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
15703
15704         * sh.c (sh_expand_builtin): Return early if encountering an
15705         error_mark for a type.
15706
15707 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
15708
15709         * config/s390/s390.c (s390_expand_plus_operand): Do not require
15710         double-word scratch register.
15711         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
15712
15713         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
15714         "*cli"): Replace s_operand by memory_operand.
15715         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
15716
15717 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
15718
15719         * config/h8300/h8300.c (asm_file_start): Add a missing
15720         semicolon.
15721
15722 2002-09-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15723
15724         * c-typeck.c (build_function_call): Remove unused variable(s).
15725         (build_c_cast): Likewise.
15726         * calls.c (rtx_for_function_call): Likewise.
15727         * cfglayout.c (duplicate_insn_chain): Likewise.
15728         * cfgloop.c (flow_loop_nodes_find): Likewise.
15729         * cfgrtl.c (split_edge): Likewise.
15730         * df.c (df_ref_create): Likewise.
15731         * except.c (expand_end_catch): Likewise.
15732         * expr.c (emit_push_insn, store_constructor, expand_expr): Likewise.
15733         * function.c (emit_return_into_block): Likewise.
15734         (reposition_prologue_and_epilogue_notes): Likewise.
15735         * gengtype.c (get_file_basename, write_gc_structure_fields): Likewise.
15736         * combine.c (subst_prev_insn, need_refresh): Remove.
15737         * dwarf2out.c (primary_filename): Remove.
15738         * final.c (new_block): Remove.
15739         * gcse.c (orig_bb_count): Remove.
15740
15741 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15742
15743         * dsp16xx-protos.h (dsp16xx_compare_gen): Change to bool.
15744         * dsp16xx.c (dsp16xx_compare_gen): Likewise.
15745         * dsp16xx.md: Treat dsp16xx_compare_gen as a bool.  Call functions
15746         directly instead of using a function pointer.
15747
15748 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
15749
15750         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
15751         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
15752         (ix86_output_addr_diff_elt) Likewise.
15753         (x86_output_mi_thunk) Likewise.
15754         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
15755
15756 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15757
15758         * frv.c (frv_encode_section_info): Fix error in last change.
15759
15760 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
15761
15762         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
15763         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
15764         (TARGET_BINDS_LOCAL_P): Define.
15765         (rs6000_override_options): Save original flag_pic value.
15766         (rs6000_elf_select_section): Call default_elf_select_section_1.
15767         (rs6000_elf_unique_section): Call default_unique_section_1.
15768         (rs6000_elf_in_small_data_p): New function.
15769         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
15770         (rs6000_xcoff_select_section): Update based on defaults.
15771         (rs6000_xcoff_unique_section): Set to basic name if not common.
15772         (rs6000_binds_local_p): New function.
15773         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
15774         targetm.have_srodata_section if SDATA_EABI.
15775         (TARGET_IN_SMALL_DATA_P): Define.
15776
15777 2002-09-04  Dale Johannesen  <dalej@apple.com>
15778
15779         * varasm.c (struct rtx_const, decode_rtx_const):
15780         Make veclo and vechi fields not share storage.
15781
15782 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
15783
15784         * loop.c (scan_loop): Don't mark separate insns out of a libcall
15785         for moving.
15786         (move_movables): Abort if we see the first insn of a libcall.
15787
15788 2002-09-04  Richard Henderson  <rth@redhat.com>
15789
15790         * builtin-types.def (BT_FN_FLOAT): New.
15791         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
15792         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
15793         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
15794         * builtins.c (fold_builtin_inf): New.
15795         (fold_builtin): Call it.
15796         * real.c (ereal_inf): New.
15797         * real.h: Declare it.
15798         * doc/extend.texi: Document new builtins.
15799
15800 2002-09-04  Richard Henderson  <rth@redhat.com>
15801
15802         * cse.c (cse_insn): Avoid subreg games if the equivalence
15803         is already in the proper mode.
15804
15805 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
15806
15807         PR c/7102
15808         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
15809
15810 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15811
15812         * pa.md (setccfp0, setccfp1): New patterns.
15813
15814 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15815
15816         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
15817         frv_select_section, frv_select_rtx_section,
15818         frv_encode_section_info, frv_unique_section): Delete.
15819         * frv.c: Update for target hooks.
15820         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
15821         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
15822         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
15823
15824 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15825
15826         * ip2k-protos.h (function_prologue, function_epilogue,
15827         encode_section_info): Update to match target hook specification.
15828         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
15829         (function_prologue, function_epilogue, encode_section_info):
15830         Update to match target hook specification.
15831         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
15832         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
15833         (NOTICE_UPDATE_CC): Cast to void.
15834         * ip2k.md: Add defaults in switch statements.
15835
15836 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
15837
15838         * doc/trouble.texi (Interoperation): Update information about C++ ABI
15839         issues.
15840
15841 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
15842
15843         * config/sparc/t-netbsd64: Disable multilib for now.
15844
15845 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
15846
15847         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
15848         * target.h (gcc_target): Add have_srodata_section member.
15849         * varasm.c (section_category): Add SECCAT_SRODATA.
15850         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
15851         READONLY_SDATA_SECTION defined.
15852         (decl_readonly_section_1): True for SECCAT_SRODATA also.
15853         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
15854         (default_unique_section_1): Likewise.
15855
15856 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15857
15858         * expr.c (emit_group_load): Revise to allow splitting TCmode source
15859         into DImode pieces.
15860
15861         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
15862         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
15863         for floating-point register class.
15864         * pa.c (function_arg): Fix handling of modes wider than one word for
15865         TARGET_64BIT.
15866
15867 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
15868
15869         * combine.c (make_compound_operation): Don't generate zero / sign
15870         extensions in floating point modes.
15871
15872 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
15873
15874         * doc/c-tree.texi: Fix overfull hboxes.
15875         * doc/cppopts.texi: Ditto.
15876         * doc/extend.texi: Ditto.
15877         * doc/gty.texi: Ditto.
15878         * doc/invoke.texi: Ditto.
15879         * doc/makefile.texi: Ditto.
15880         * doc/rtl.texi: Ditto.
15881         * doc/standards.texi: Ditto.
15882         * doc/tm.texi: Ditto.
15883
15884 2002-09-04  Richard Henderson  <rth@redhat.com>
15885
15886         * c-common.c (builtin_define_with_hex_fp_value): New.
15887         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
15888
15889 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
15890
15891         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
15892         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
15893         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
15894         Warn that these options can break ABI compatibility.
15895
15896 2002-09-04  Richard Henderson  <rth@redhat.com>
15897
15898         * real.c (ereal_to_decimal): Add digits parameter.
15899         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
15900         * c-pretty-print.c (pp_c_real_literal): Update call.
15901         * print-rtl.c (print_rtx): Likewise.
15902         * print-tree.c (print_node_brief, print_node): Likewise.
15903         * sched-vis.c (print_value): Likewise.
15904         * config/arc/arc.c (arc_print_operand): Likewise.
15905         * config/c4x/c4x.c (c4x_print_operand): Likewise.
15906         * config/i370/i370.h (PRINT_OPERAND): Likewise.
15907         * config/i386/i386.c (print_operand): Likewise.
15908         * config/i960/i960.c (i960_print_operand): Likewise.
15909         * config/ip2k/ip2k.c (asm_output_float): Likewise.
15910         * config/m32r/m32r.c (m32r_print_operand): Likewise.
15911         * config/m68hc11/m68hc11.c (print_operand): Likewise.
15912         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
15913         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
15914         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
15915         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
15916         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
15917         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
15918         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
15919         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
15920         * config/mips/mips.c (print_operand): Likewise.
15921         * config/ns32k/ns32k.c (print_operand): Likewise.
15922         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
15923         * config/vax/vax.h (PRINT_OPERAND): Likewise.
15924         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
15925
15926 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
15927
15928         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
15929         xtensa_multibss_section_type_flags.
15930         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
15931
15932 2002-09-04  Richard Henderson  <rth@redhat.com>
15933
15934         * doc/install-old.texi: Don't mention enquire.
15935         * doc/sourcebuild.texi: Update float.h description.
15936
15937 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
15938
15939         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
15940
15941 2002-09-03  Roger Sayle  <roger@eyesopen.com>
15942
15943         * builtins.c (build_function_call_expr): Remove prototype, export
15944         as non-static and add a comment above function definition.
15945         (builtin_mathfn_code): New function to check for math builtins.
15946         (fold_builtin): Optimize sqrt(0.0) as 0.0, sqrt(1.0) as 1.0,
15947         exp(0.0) as 1.0, and log(1.0) as 0.0.  Optimize exp(log(x)) and
15948         log(exp(x)) as x.  Optimize sqrt(exp(x)) as exp(x/2.0) and
15949         log(sqrt(x)) as log(x)/2.0.
15950
15951         * tree.h: Prototype build_function_call_expr and builtin_mathfn_code
15952         in new "builtins.c" section.  Place the build_range_type prototype
15953         with the other prototypes from "tree.c".
15954
15955         * fold-const.c (fold) [ABS_EXPR]: Fold fabs(sqrt(x)) as sqrt(x)
15956         and fabs(exp(x)) as exp(x).  [MULT_EXPR]: Fold sqrt(x)*sqrt(y)
15957         as sqrt(x*y) and exp(x)*exp(y) as exp(x+y). [RDIV_EXPR]: Fold
15958         x/exp(y) as x*exp(-y).
15959
15960 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
15961
15962         * varasm.c (default_section_type_flags): Append _1 to name with
15963         shlib parameter.  Use original name to call new function with
15964         implicit flag_pic.
15965         (decl_readonly_section): Likewise.
15966         (default_elf_select_section): Likewise.
15967         (default_unique_section): Likewise.
15968         (default_bind_local_p): Likewise.
15969         (categorize_decl_for_section): Add shlib parameter to use in place
15970         of implicit flag_pic.
15971         * output.h: Declare new functions with _1 and shlib argument.
15972
15973 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
15974
15975         * doc/install.texi: Fix typos, formatting problems, and obvious
15976         overfull/underfull boxes.
15977
15978         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
15979         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
15980         include its file, compat.texi.
15981         * doc/compat.texi: New file with new chapter, Binary Compatibility.
15982
15983 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
15984
15985         Debian BTS Bug #157416
15986         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
15987         * cpplib.c (destringize_and_run): Kludge around getting
15988         tokens from in-progress macros.
15989         (_cpp_do__Pragma): Simplify.
15990
15991 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
15992
15993         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
15994         (CPP_CPU_SPEC): Remove.
15995         (TARGET_CPU_CPP_BUILTINS): New.
15996         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
15997         (CPP_SPEC): Remove.
15998         (TARGET_OS_CPP_BUILTINS): New.
15999         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
16000         (TARGET_OS_CPP_BUILTINS): New.
16001         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
16002         TARGET_OS_CPP_BUILTINS.
16003         (CPP_PREDEFINES): Remove.
16004         (CPLUSPLUS_CPP_SPEC): Remove.
16005         (TARGET_OS_CPP_BUILTINS): New.
16006
16007 2002-09-03  Richard Henderson  <rth@redhat.com>
16008
16009         * Makefile.in (USER_H): Add ginclude/float.h.
16010         (FLOAT_H): Remove.
16011         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
16012         (mostlyclean): Don't remove float.h intermediate files.
16013         (distclean): Don't remove float.h.
16014         * config.gcc: Remove all float_format references.
16015         * configure.in (float_format, float_h_file): Remove.
16016
16017         * c-common.c: Include tree-inline.h.
16018         (builtin_define_with_int_value): New.
16019         (builtin_define_type_precision): Use it.
16020         (builtin_define_float_constants): New.
16021         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
16022         __FLT_EVAL_METHOD__.
16023         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
16024         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
16025         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
16026         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
16027         (TARGET_FLT_EVAL_METHOD): New.
16028
16029         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
16030         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
16031         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
16032         * ginclude/float.h: New.
16033
16034 2002-09-03  Stan Shebs  <shebs@apple.com>
16035
16036         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
16037         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
16038         (PREFERRED_DEBUGGING_TYPE): Ditto.
16039         (ASM_OUTPUT_IDENT): Remove empty definition.
16040
16041 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
16042
16043         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
16044         cxx_target.
16045         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
16046         handling routine for builtin pragma.
16047         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
16048         Registered pragma handling routine.
16049         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
16050         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
16051         If builtin pragma seen for math routine and C89 conformance is
16052         requested use different math function in order to set errno.
16053         * t-ia64 (ia64-c.o): Add new rule for new file.
16054
16055 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
16056
16057         * config/s390/s390.md ("movti"): Add Q->Q alternative.
16058         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
16059         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
16060
16061         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
16062         "*movsf_ss"): Remove.
16063
16064 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16065
16066         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
16067         Delete macros.
16068
16069 2002-09-03   Arati Dikey  <aratid@kpit.com>
16070
16071         * h8300.c (asm_file_start): Corrected optimization comment.
16072
16073 2002-09-03  Stan Shebs  <shebs@apple.com>
16074
16075         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
16076         * c-tree.h (recognize_objc_keyword): Remove decl.
16077         * c-typeck.c (comp_target_types): Update a comment.
16078
16079 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
16080
16081         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
16082         and register validity checks.
16083         (general_s_operand): Adapt to s390_decompose_address interface change.
16084         (q_constraint): Likewise.
16085         (s390_expand_plus_operand): Likewise.
16086         (legitimiate_address_p): Likewise.
16087         (legitimate_la_operand_p): Likewise.
16088         (legitimize_la_operand): Likewise.
16089         (print_operand_address): Likewise.
16090         (print_operand): Likewise.
16091
16092 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16093
16094         PR objc/5956:
16095         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
16096         was causing the new selector never to match the existing ones
16097         (Patch by Alexander Malmberg <alexander@malmberg.org>).
16098
16099 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
16100
16101         * config/i386/i386.md ("femms"): Add "memory" attr "none".
16102
16103 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
16104
16105         * expr.c (expand_expr): Remove extraneous comment and code.
16106
16107 2002-09-02  Nathan Sidwell  <nathan@codesourcery.com>
16108
16109         * stor-layout (finish_builtin_struct): Renamed and moved from c++
16110         frontend. Take chain of fields. Allow NULL alignment type.
16111         * tree.h (finish_builtin_struct): Declare.
16112
16113 2002-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16114
16115         * config/alpha/alpha.c config/alpha/alpha.h config/alpha/alpha.md
16116         config/alpha/elf.h config/alpha/unicosmk.h config/alpha/vms.h
16117         config/arc/arc.c config/arc/arc.h config/arm/aout.h
16118         config/arm/arm.c config/arm/arm.h config/arm/arm.md
16119         config/avr/avr.h config/d30v/d30v.h config/dbxcoff.h
16120         config/dbxelf.h config/elfos.h config/fr30/fr30.h config/frv/frv.h
16121         config/i386/i386.c config/i386/i386.md config/i386/sco5.h
16122         config/ia64/ia64.h config/ip2k/ip2k.h config/m68hc11/m68hc11.md
16123         config/m68k/hp320.h config/m68k/m68k.c config/m68k/m68k.md
16124         config/m68k/mot3300.h config/m68k/sgs.h config/m68k/tower-as.h
16125         config/m88k/m88k.c config/m88k/m88k.h config/mcore/mcore-pe.h
16126         config/mcore/mcore.c config/mips/mips.c config/mips/mips.h
16127         config/ns32k/ns32k.md config/pa/pa-linux.h config/pa/pa.c
16128         config/pa/pa.h config/pa/pa.md config/romp/romp.h
16129         config/rs6000/linux64.h config/rs6000/lynx.h
16130         config/rs6000/rs6000.c config/rs6000/sysv4.h config/rs6000/xcoff.h
16131         config/s390/s390.c config/s390/s390.md config/sh/sh.c
16132         config/sparc/sparc.c config/sparc/sysv4.h
16133         config/stormy16/stormy16.h dbxout.c defaults.h dwarf2out.c
16134         dwarfout.c except.c final.c varasm.c vmsdbgout.c: Replace
16135         ASM_OUTPUT_INTERNAL_LABEL macro with a call to the target hook.
16136
16137         * doc/tm.texi: Update docs.
16138         * default.h (ASM_OUTPUT_INTERNAL_LABEL): Don't define.
16139         * system.h (ASM_OUTPUT_INTERNAL_LABEL): Poison.
16140
16141 2002-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16142
16143         * Makefile.in (sdbout.o, insn-output.o): Depend on $(TARGET_H).
16144         * arc.c (arc_internal_label): New function.
16145         (TARGET_ASM_INTERNAL_LABEL): Set.
16146         * arc.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16147         * arm.c (arm_internal_label): New function.
16148         (TARGET_ASM_INTERNAL_LABEL): Set.
16149         * arm.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16150         * arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16151         * i370.c (i370_internal_label): New function.
16152         (TARGET_ASM_INTERNAL_LABEL): Set.
16153         * i370.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16154         * m68k/hp320.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16155         * m68k.c (m68k_hp320_internal_label): New function.
16156         (TARGET_ASM_INTERNAL_LABEL): Set.
16157         * m88k.c (m88k_internal_label): New function.
16158         (TARGET_ASM_INTERNAL_LABEL): Set.
16159         * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16160         * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Set to target hook.
16161         * genoutput.c (output_prologue): Include target.h in output file.
16162         * output.h (default_internal_label): Declare.
16163         * sdbout.c: Include target.h.
16164         * target-def.h (TARGET_ASM_INTERNAL_LABEL): Set and add to
16165         TARGET_ASM_OUT.
16166         * target.h (internal_label): Add to struct gcc_target.
16167         * varasm.c (default_internal_label): New function.
16168
16169 2002-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16170
16171         * alpha.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16172         * avr.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16173         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16174         * cris.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16175         * d30v.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16176         * darwin.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16177         * dsp16xx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16178         * elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16179         * h8300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16180         * i386/att.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16181         * i386/bsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16182         * i386/i386-coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16183         * i386/lynx-ng.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16184         * i386/lynx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16185         * i386/sco5.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16186         * i960/i960.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16187         * m68k/3b1.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16188         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16189         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16190         * m68k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16191         * m68k/mot3300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16192         * m68k/tower-as.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16193         * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16194         * mcore.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16195         * mips.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16196         * mmix-protos.h (mmix_asm_output_internal_label): Likewise.
16197         * mmix.c (mmix_asm_output_internal_label): Likewise.
16198         * mmix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16199         * ns32k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16200         * pa.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16201         * pdp11.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16202         * romp.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16203         * rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16204         * sh/coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16205         * sh/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16206         * sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16207         * sparc/linux.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16208         * sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16209         * sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16210         * sparc/pbd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16211         * sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16212         * sparc.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16213         * sparc/vxsim.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16214         * stormy16.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16215         * svr3.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16216         * vax.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16217
16218         * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Define.
16219
16220 2002-08-31  Richard Henderson  <rth@redhat.com>
16221
16222         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
16223
16224 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16225
16226         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
16227
16228 2002-08-30  Richard Henderson  <rth@redhat.com>
16229
16230         PR opt/7515
16231         * c-objc-common.c: Include target.h.
16232         (c_cannot_inline_tree_fn): Don't auto-inline functions that
16233         don't bind locally.  Factor setting DECL_UNINLINABLE.
16234         * Makefile.in (c-objc-common.o): Update.
16235
16236 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
16237
16238         * doc/install.texi (Configuration, Building): Fix a typo and
16239         some formatting directives.
16240
16241 2002-08-30  Paul Koning <pkoning@equallogic.com>
16242
16243         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
16244         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
16245         implemented" note.
16246         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
16247         for alphabetic order.
16248         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
16249         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
16250         (VAX_HALFWORD_ORDER): Document.
16251         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
16252         IEEE float format.
16253         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
16254         (ASM_OUTPUT_LABEL_REF): Fix font.
16255         (CASE_VECTOR_SHORTEN_MODE): Ditto.
16256
16257 2002-08-30  Denis Chertykov  <denisc@overta.ru>
16258
16259         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
16260         stuff.
16261         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
16262         CONST_DOUBLE constants.
16263
16264 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
16265
16266         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
16267         related defines to...
16268         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
16269         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
16270         as a no-op.
16271
16272 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
16273
16274         * config/arm/arm.c (arm_asm_output_labelref): New function.
16275         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
16276         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
16277
16278 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
16279
16280         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
16281         memory exhausted" workarounds.
16282
16283 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16284
16285         * diagnostic.c (fancy_abort): Don't repeat "internal error".
16286         * toplev.c (crash_signal): Likewise.
16287
16288 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16289
16290         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
16291         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
16292         Extended, updated documentation.
16293         (-Wundeclared-selector): Documented.
16294
16295 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
16296
16297         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
16298         the value 1.  Do not undef before defining.
16299         * config/darwin.h: Likewise.
16300         * config/dbx.h: Likewise.
16301         * config/dbxcoff.h: Likewise.
16302         * config/dbxelf.h: Likewise.
16303         * config/elfos.h: Likewise.
16304         * config/interix.h: Likewise.
16305         * config/lynx-ng.h: Likewise.
16306         * config/lynx.h: Likewise.
16307         * config/netware.h: Likewise.
16308         * config/psos.h: Likewise.
16309         * config/svr3.h: Likewise.
16310         * config/alpha/alpha.h: Likewise.
16311         * config/alpha/elf.h: Likewise.
16312         * config/alpha/vms.h: Likewise.
16313         * config/arc/arc.h: Likewise.
16314         * config/arm/aout.h: Likewise.
16315         * config/arm/coff.h: Likewise.
16316         * config/c4x/c4x.h: Likewise.
16317         * config/h8300/h8300.h: Likewise.
16318         * config/i386/cygwin.h: Likewise.
16319         * config/i386/djgpp.h: Likewise.
16320         * config/i386/gas.h: Likewise.
16321         * config/i386/gstabs.h: Likewise.
16322         * config/i386/i386-coff.h: Likewise.
16323         * config/i386/i386-interix.h: Likewise.
16324         * config/i386/sco5.h: Likewise.
16325         * config/i386/svr3dbx.h: Likewise.
16326         * config/i386/sysv3.h: Likewise.
16327         * config/i386/win32.h: Likewise.
16328         * config/i386/x86-64.h: Likewise.
16329         * config/i960/i960.h: Likewise.
16330         * config/ia64/ia64.h: Likewise.
16331         * config/ip2k/ip2k.h: Likewise.
16332         * config/m32r/m32r.h: Likewise.
16333         * config/m68k/3b1.h: Likewise.
16334         * config/m68k/3b1g.h: Likewise.
16335         * config/m68k/ccur-GAS.h: Likewise.
16336         * config/m68k/coff.h: Likewise.
16337         * config/m68k/hp2bsd.h: Likewise.
16338         * config/m68k/hp310g.h: Likewise.
16339         * config/m68k/hp320g.h: Likewise.
16340         * config/m68k/hp3bsd.h: Likewise.
16341         * config/m68k/hp3bsd44.h: Likewise.
16342         * config/m68k/linux-aout.h: Likewise.
16343         * config/m68k/m68k-aout.h: Likewise.
16344         * config/m68k/mot3300.h: Likewise.
16345         * config/m68k/netbsd.h: Likewise.
16346         * config/m68k/openbsd.h: Likewise.
16347         * config/m68k/pbb.h: Likewise.
16348         * config/m68k/plexus.h: Likewise.
16349         * config/m68k/sun2.h: Likewise.
16350         * config/m68k/sun3.h: Likewise.
16351         * config/m68k/tower-as.h: Likewise.
16352         * config/m68k/vxm68k.h: Likewise.
16353         * config/m88k/aout-dbx.h: Likewise.
16354         * config/m88k/m88k-aout.h: Likewise.
16355         * config/mcore/mcore-elf.h: Likewise.
16356         * config/mcore/mcore-pe.h: Likewise.
16357         * config/mips/elf.h: Likewise.
16358         * config/mips/elf64.h: Likewise.
16359         * config/mips/iris5gas.h: Likewise.
16360         * config/mips/iris6.h: Likewise.
16361         * config/mips/mips.h: Likewise.
16362         * config/mips/sni-gas.h: Likewise.
16363         * config/mmix/mmix.h: Likewise.
16364         * config/ns32k/netbsd.h: Likewise.
16365         * config/pa/pa64-hpux.h: Likewise.
16366         * config/romp/romp.h: Likewise.
16367         * config/rs6000/sysv4.h: Likewise.
16368         * config/rs6000/xcoff.h: Likewise.
16369         * config/sh/coff.h: Likewise.
16370         * config/sh/elf.h: Likewise.
16371         * config/sparc/linux64.h: Likewise.
16372         * config/sparc/liteelf.h: Likewise.
16373         * config/sparc/netbsd.h: Likewise.
16374         * config/sparc/openbsd.h: Likewise.
16375         * config/sparc/pbd.h: Likewise.
16376         * config/sparc/sp64-elf.h: Likewise.
16377         * config/sparc/sp86x-elf.h: Likewise.
16378         * config/sparc/sparc.h: Likewise.
16379         * config/vax/vax.h: Likewise.
16380         * config/vax/vaxv.h: Likewise.
16381
16382 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
16383
16384         * h8300.c (shift_alg_hi): Various tweaks to improve performance
16385         of HImode shifts.
16386         (get_shift_alg): Corresponding changes.
16387
16388 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16389
16390         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
16391
16392 2002-08-29  Richard Henderson  <rth@redhat.com>
16393
16394         * expr.h (enum block_op_methods): New.
16395         (emit_block_move): Update prototype.
16396         * expr.c (block_move_libcall_safe_for_call_parm): New.
16397         (emit_block_move_via_loop): New.
16398         (emit_block_move): Use them.  New argument METHOD.
16399         (emit_push_insn): Always respect the given alignment.
16400         (expand_assignment): Update call to emit_block_move.
16401         (store_expr, store_field, expand_expr): Likewise.
16402         * builtins.c (expand_builtin_apply): Likewise.
16403         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
16404         * function.c (expand_function_end): Likewise.
16405         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
16406         * config/sparc/sparc.c (sparc_va_arg): Likewise.
16407         * calls.c (expand_call, emit_library_call_value_1): Likewise.
16408         (save_fixed_argument_area): Use emit_block_move with
16409         BLOCK_OP_CALL_PARM instead of move_by_pieces.
16410         (restore_fixed_argument_area): Likewise.
16411         (store_one_arg): Fix alignment parameter to emit_push_insn.
16412
16413 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16414
16415         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
16416
16417 2002-08-29  Catherine Moore  <clm@redhat.com>
16418
16419         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
16420         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
16421         (PREDICATE_CODES): Include new predicates.
16422         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
16423         (TARGET_SWITCHES):  Add strict-align.
16424         (TARGET_STRICT_ALIGN): New.
16425         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
16426         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
16427         Define.
16428         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
16429         v850_muldi3.
16430         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
16431         L_callt_save_r2_r31, L_return_r2_r31,
16432         L_save_all_interrupt): Change addi to add.
16433         (L_save_interrupt, L_return_interrupt): Rework.
16434         (__return_r31):  Correct .size directive.
16435         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
16436         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
16437         New routines.
16438         * config/v850/v850.c (expand_prologue): Call
16439         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
16440         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
16441         (reg_or_int9_operand): New predicate.
16442         (reg_or_const_operand): New routine.
16443         * config/v850/v850.md (return_interrupt): Changed from
16444         restore_interrupt.
16445         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
16446         (callt_save_interrupt): Change save sequence.
16447         (callt_return_interrupt): New.
16448         (save_interrupt): Don't use runtime function for LONG_CALLS
16449         and TARGET_PROLOG_FUNCTION.
16450         (save_all_interrupt): Likewise.
16451         (mulsi3): Use new predicate.
16452         (moviscc): Disallow some combination of constants.
16453         Fix define_split for sasf insns, so that it will not generate bad
16454         code if operand0 and operand5 are the same.
16455         * config/v850/v850-protos.h: Prototype new predicates.
16456
16457 2002-08-29  Zack Weinberg  <zack@codesourcery.com>
16458
16459         * config/rs6000/rs6000.c (processor_target_table): Add 405f.
16460         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Likewise.
16461
16462 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16463
16464         * c-common.c (builtin_define_type_precision): New function.
16465         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
16466         wchar_t is unsigned in C++.
16467         * doc/cpp.texi (Common Predefined Macros): Document
16468         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
16469         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
16470         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
16471
16472 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
16473
16474         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
16475         section.  Mention that it is enabled by -Wall.
16476         (-Wall): Mention that there can be language-specific warnings as well.
16477         (-Wctor-dtor-privacy): Mention that it is enabled by default.
16478         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
16479
16480 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
16481
16482         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
16483         if it is ever live.
16484
16485         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
16486         attribute for SHCOMPACT.
16487
16488         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
16489         appropriately.
16490         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
16491         by the ABI.
16492
16493         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
16494
16495 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
16496
16497         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
16498         "MASK_GAS|MASK_ABICALLS".
16499         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
16500         (TARGET_DEFAULT): Remove.
16501         (MACHINE_TYPE): Undefine before defining.
16502         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
16503
16504 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
16505
16506         * c-common.c (warn_abi): New variable.
16507         * c-common.h (warn_abi): Likewise.
16508         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
16509         (c_common_decode_option): Handle it.
16510         * doc/invoke.texi: Document -Wabi.
16511
16512 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16513
16514         * c-common.c (warn_undeclared_selector): New variable.
16515         * c-common.h (warn_undeclared_selector): Idem.
16516         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
16517         to on when -Wundeclared-selector is found.
16518         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
16519         * objc/objc-act.c (build_selector_expr): If
16520         warn_undeclared_selector is set, check that the selector has
16521         already been defined, and emit a warning if not.
16522
16523 2002-08-27  Nick Clifton  <nickc@redhat.com>
16524             Catherine Moore  <clm@redhat.com>
16525             Jim Wilson  <wilson@cygnus.com>
16526
16527         * config.gcc: Add v850e-*-* target.
16528         Add --with-cpu= support for v850.
16529         * config/v850/lib1funcs.asm: Add v850e callt functions.
16530         * config/v850/v850.h: Add support for v850e target.
16531         * config/v850/v850.c: Add functions to support v850e target.
16532         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
16533         * config/v850/v850.md: Add patterns for v850e instructions.
16534         * doc/invoke.texi: Document new v850e command line switches.
16535
16536 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
16537                           Aldy Hernandez <aldyh at redhat dot com>
16538
16539         * doc/tm.texi: Applied numerous fixes to the automaton based
16540         scheduler descrition.
16541
16542 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
16543
16544         * i386.c (classify_argument): Handle variable sized objects.
16545
16546 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
16547
16548         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
16549
16550 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
16551
16552         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
16553
16554 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
16555
16556         * i386.c (classify_argument): Properly compute word size of the analyzed object.
16557
16558 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
16559
16560         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
16561         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
16562         accordingly.
16563         (attribute insn_class): Provide default definitions based on type.
16564         Remove all insn-specific settings.
16565         (various function units): Remove old SH4 scheduling.
16566         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
16567         New attributes.  Set them where appropriate.
16568         (cpu unit FS): Don't define / use.
16569         (F3, load_store): New cpu units.
16570         (F01): New reservation.
16571         (all insn_reservations): Make dependent on sh4 pipeline model.
16572         Fix latencies.
16573         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
16574         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
16575         (mt insn_reservation): Use type mt_group.
16576         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
16577         sh4_fload and sh4_store.
16578         (insn_reservation branch_zero and branch): Replace with sh4_branch.
16579         (insn_reservation branch_far): Replace with sh4_return.
16580         (insn_reservation return_from_exp): Rename to:
16581         (sh4_return_from_exp).  Change to be just d_lock*5.
16582         (insn_reservation lds_to_pr): Rename to:
16583         (sh4_lds_to_pr).  Change to be just d_lock*2.
16584         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
16585         d_lock*2.
16586         (insn_reservation prload_mem): Rename to:
16587         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
16588         (insn_reservation fpscr_store): Rename to:
16589         (fpscr_load).  Change to d_lock,nothing,F1*3.
16590         (insn_reservation fpscr_store_mem): Rename to:
16591         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
16592         (insn_reservation multi): Change to
16593         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
16594         (insn_reservation fp_arith): Change to issue,F01,F2.
16595         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
16596         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
16597         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
16598         (insn_reservation fp_double_cmp): Change to
16599         d_lock,(d_lock+F01),F1+F2,F2.
16600         (insn_reservation dp_div): Change to
16601         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
16602         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
16603         (sh_adjust_cost, SHcompact): Differentiate between different
16604         kinds of dependencies.  Drop factor of ten for superscalar.
16605         Use new instruction types.  Add new exception rules.
16606
16607         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
16608
16609         * sh.md (mperm_w): Add DONE.
16610
16611 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
16612
16613         * longlong.h: Import current PowerPC defintion from GMP-4.1.
16614
16615         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
16616
16617         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
16618
16619 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
16620
16621         * sh.h (MAX_FIXED_MODE_SIZE): Define.
16622
16623 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
16624
16625         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
16626         delimiter.
16627
16628 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16629
16630         * c-common.c (cpp_define_data_format): New function.
16631         (cb_register_builtins): Call it.
16632
16633         * doc/cpp.texi (Common Predefined Macros): Document
16634         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
16635         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
16636         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
16637         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
16638         __TARGET_USES_VAX_H_FLOAT__.
16639
16640 2002-08-26  Ziemowit Laski <zlaski@apple.com>
16641
16642         * objc/objc-act.c (get_super_receiver): If inside a class method
16643         of a category, cast the receiver to 'id' before accessing the 'isa'
16644         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
16645
16646 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
16647
16648         * config/s390/s390-protos.h (s390_function_prologue,
16649         s390_function_epilogue): Remove.
16650         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
16651         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
16652
16653         config/s390/s390.c (s390_machine_dependent_recorg): New function.
16654         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
16655         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
16656         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
16657         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
16658
16659         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
16660         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
16661         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
16662         function is not a leaf function.  Use save_gprs and restore_gprs.
16663         (s390_emit_epilogue): Likewise.
16664         (save_gprs, restore_gprs): New functions.
16665         (struct s390_frame): Remove return_reg_saved_p member.
16666         (save_fprs_p): Remove.
16667         (s390_optimize_prolog): New function.
16668         (s390_legitimate_reload_constant): Remove now unnecessary check.
16669
16670         (s390_function_count): Remove.
16671         (s390_output_symbolic_const): Replace s390_function_count by
16672         current_function_funcdef_no.
16673         (s390_output_constant_pool): Likewise.
16674
16675         (legitimize_pic_address): Use regs_ever_live to track PIC register
16676         instead of current_function_uses_pic_offset_table.
16677         (s390_emit_prologue): Likewise.
16678         config/s390/s390.md ("call", "call_value"): Likewise.
16679
16680 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
16681
16682         * c-opts.c (find_opt): Don't complain about wrong languages
16683         here.  Return exact matches even for wrong language.
16684         (c_common_decode_option): Complain about wrong languages
16685         here.
16686
16687 2002-08-24  Stuart Hastings  <stuart@apple.com>
16688
16689         * function.h (struct function): Add flag
16690         all_throwers_are_sibcalls.
16691         * except.c (set_nothrow_function_flags): Replaces
16692         nothrow_function_p. Set new flag.
16693         * except.h (set_nothrow_function_flags): Replaces
16694         nothrow_function_p.
16695         * dwarf2out.c (struct dw_fde_struct): Add flag
16696         all_throwers_are_sibcalls.
16697         (output_call_frame_info): Test it.
16698         (dwarf2out_begin_prologue) Propagate it from cfun to
16699         dw_fde_struct.
16700         * toplev.c (rest_of_compilation): Update calls to
16701         nothrow_function_p.
16702
16703 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
16704
16705         * ggc-page.c (compute_inverse): Short circuit calculation for
16706         object sizes larger than half a page.
16707
16708 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
16709
16710         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
16711         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
16712         default.
16713         (rs6000_elf_unique_section): Likewise.
16714
16715 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16716
16717         * ns32k.c (ns32k_globalize_label): Delete.
16718         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
16719
16720 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
16721
16722         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
16723         for loading delta with num_insns_constant_wide.  Calculate
16724         delta_low, delta_high without using a conditional.
16725
16726 2002-08-22  Jason Merrill  <jason@redhat.com>
16727
16728         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
16729         * c-common.def: Adjust.
16730         * c-dump.c (c_dump_tree): Adjust.
16731         * c-semantics.c (genrtl_return_stmt): Adjust.
16732         * c-pretty-print.c (pp_c_statement): Adjust.
16733         * tree-inline.c (copy_body_r): Adjust.
16734
16735 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
16736
16737         * ggc-page.c: Avoid division in ggc_set_mark.
16738         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
16739         compute_inverse): New.
16740         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
16741         (init_ggc): Initialize inverse_table.
16742
16743 2002-08-22  Tom Tromey  <tromey@redhat.com>
16744
16745         * doc/install.texi (Configuration): Document --datadir.
16746
16747 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
16748
16749         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
16750
16751 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
16752
16753         * gengtype-lex.l (ID): Allow underscore as first character.
16754
16755 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
16756
16757         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
16758         function.
16759         (rs6000_xcoff_asm_named_section): Rename.
16760         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
16761
16762 2002-08-21  Tom Tromey  <tromey@redhat.com>
16763
16764         For PR java/6005 and PR java/7611:
16765         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
16766         (fold): Likewise.
16767         * langhooks.c (lhd_can_use_bit_fields_p): New function.
16768         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
16769         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
16770         (LANG_HOOKS_INITIALIZER): Use it.
16771         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
16772         field.
16773
16774 2002-08-21  Stan Shebs  <shebs@apple.com>
16775
16776         * tree.c (finish_vector_type): Fix a typo in a comment.
16777         * Makefile.in: Fix "the the" stutters in comments.
16778         * genautomata.c: Ditto.
16779         * ifcvt.c: Ditto.
16780         * regrename.c: Ditto.
16781         * config/alpha/alpha.c: Ditto.
16782         * config/alpha/vms-crt0-64.c: Ditto.
16783         * config/alpha/vms-crt0.c: Ditto.
16784         * config/alpha/vms-psxcrt0-64.c: Ditto.
16785         * config/alpha/vms-psxcrt0.c: Ditto.
16786         * config/d30v/d30v.h: Ditto.
16787         * config/fr30/fr30.h: Ditto.
16788         * config/rs6000/rs6000.c: Ditto.
16789         * config/stormy16/stormy16.h: Ditto.
16790         * doc/md.texi: Ditto.
16791
16792 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16793
16794         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
16795
16796 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
16797
16798         * c-decl.c (grokdeclarator): Make invalid combinations with long,
16799         short, signed or unsigned into hard errors.  Fixes PR c/4319.
16800         Also make duplicate modifiers such as "short short" into hard
16801         errors.
16802
16803 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
16804             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16805
16806         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
16807         to the actual end.  Add '@end table' and '@table @code'.
16808
16809 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
16810
16811         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
16812
16813         * unroll.c (biv_total_increment): Don't try to compute the total
16814         increment for FP BIVs.
16815
16816 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16817
16818         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
16819         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
16820         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
16821         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
16822         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
16823         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
16824         (GLOBAL_ASM_OP): Define.
16825         * arm.c (aof_globalize_label): New function.
16826         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
16827         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
16828         * c4x.c (c4x_globalize_label): New function.
16829         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
16830         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
16831         (GLOBAL_ASM_OP): Define.
16832         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
16833         * darwin-protos.h (darwin_globalize_label): Declare.
16834         * darwin.c (darwin_globalize_label): New function.
16835         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
16836         (ASM_GLOBALIZE_LABEL): Delete.
16837         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
16838         * dsp16xx.c (asm_output_common): Use target hook.
16839         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16840         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
16841         (GLOBAL_ASM_OP): Define.
16842         * i370.c (i370_globalize_label): New function.
16843         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
16844         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
16845         * i386.c (ix86_asm_file_end): Use target hook.
16846         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
16847         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
16848         * ia64.c (ia64_asm_output_external): Likewise.
16849         * ia64/sysv4.h: Update comment.
16850         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
16851         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
16852         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
16853         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
16854         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
16855         * mmix-protos.h (mmix_asm_globalize_label): Delete.
16856         * mmix.c (mmix_asm_globalize_label): Likewise.
16857         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
16858         (GLOBAL_ASM_OP): Define.
16859         * ns32k.c (ns32k_globalize_label): New function.
16860         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
16861         (ASM_GLOBALIZE_LABEL): Delete.
16862         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
16863         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
16864         * pa.c (pa_globalize_label): New function.
16865         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
16866         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
16867         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
16868         (GLOBAL_ASM_OP): Define.
16869         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
16870         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
16871         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
16872         (GLOBAL_ASM_OP): Define.
16873         * v850.c (v850_output_aligned_bss): Use target hook.
16874         * vax.c (vms_globalize_label): New function.
16875         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
16876         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
16877         (GLOBAL_ASM_OP): Define.
16878         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
16879         * doc/tm.texi: Update docs.
16880         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
16881         target hook.
16882         * final.c (output_alternate_entry_point): Likewise.
16883         * hooks.c (hook_FILEptr_constcharptr_void): New function.
16884         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
16885         * output.h (assemble_global): Delete.
16886         (default_globalize_label): Declare.
16887         * system.h (ASM_GLOBALIZE_LABEL): Poison.
16888         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
16889         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
16890         * target.h (gcc_target): Add globalize_label member.
16891         * varasm.c (asm_output_bss, asm_output_aligned_bss,
16892         globalize_decl): Use target hook.
16893         (assemble_global): Delete.
16894         (default_globalize_label): New function.
16895
16896 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16897
16898         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
16899
16900 2002-08-20  Devang Patel  <dpatel@apple.com>
16901         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
16902
16903 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16904
16905         * arc.c (output_shift): Use stdio instead of asm_fprintf.
16906         * arm.c (thumb_output_function_prologue): Likewise.
16907         * avr.c (print_operand): Likewise.
16908         * c4x.c (c4x_print_operand): Likewise.
16909         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
16910         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
16911         * cris.c (cris_target_asm_function_prologue,
16912         cris_asm_output_mi_thunk): Likewise.
16913         * h8300.c (print_operand): Likewise.
16914         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
16915         * ip2k.c (print_operand): Likewise.  Fix format specifier.
16916         * m68hc11.c (asm_print_register, print_operand,
16917         print_operand_address): Use stdio instead of asm_fprintf.
16918         (print_operand_address): Fix format specifier.
16919         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
16920         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
16921         asm_fprintf.
16922         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16923         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16924         * m68k.c (m68k_output_function_prologue,
16925         m68k_output_function_epilogue, print_operand): Likewise.
16926         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
16927         Likewise.  Fix format specifier.
16928         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
16929         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
16930         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
16931
16932 2002-08-15  Eric Christopher  <echristo@redhat.com>
16933             Jeff Knaggs  <jknaggs@redhat.com>
16934
16935         * config.gcc (mipsisa64sr71k-elf): New target.
16936         * config/mips/sr71k.md: New file.
16937         * config/mips/mips.md: Use it.
16938         (rot*): Add sr71k specifics.
16939         * config/mips/t-sr71k: New file.
16940         * config/mips/mips.h (sr71k): New cpu.
16941         (TARGET_SR71K): Use it.
16942         (TUNE_SR71K): Ditto.
16943         (GENERATE_BRANCHLIKELY): Ditto.
16944         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
16945         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
16946         * config/mips/mips.c (sr71k): New cpu.
16947         (mips_use_dfa_pipeline_interface): Use.
16948
16949 2002-08-15  Eric Christopher  <echristo@redhat.com>
16950             Richard Sandiford <rsandifo@redhat.com>
16951             Aldy Hernandez  <aldyh@redhat.com>
16952             Graham Stott    <grahams@redhat.com>
16953             Michael Meissner  <meissner@redhat.com>
16954             Gavin Romig-Koch  <gavin@redhat.com>
16955             Ken Raeburn  <raeburn@cygnus.com>
16956             Alexandre Oliva <aoliva@redhat.com>
16957
16958         * config.gcc (mips64vr-elf): New target.
16959         * config/mips/5400.md: New file.
16960         * config/mips/5500.md: Ditto.
16961         * config/mips/mips.md: Use them.
16962         (frsqrt): New.
16963         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
16964         cpus.
16965         (mips_issue_rate): Use them.
16966         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
16967         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
16968         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
16969         cpus.
16970         (TARGET_MIPSx): Use them.
16971         (TUNE_MIPSx): Ditto.
16972         (GETNATE_MULT3_SI): Ditto.
16973         (ISA_HAS_BRANCHLIKELY): Ditto.
16974         (ISA_HAS_CONDMOVE): Ditto.
16975         (ISA_HAS_NMADD_NMSUB): Ditto.
16976         (ISA_HAS_MULHI): New. Ditto.
16977         (ISA_HAS_MULS): Ditto.
16978         (ISA_HAS_MSAC): Ditto.
16979         (ISA_HAS_MACC): Ditto.
16980         (ISA_HAS_ROTR_SI): Ditto.
16981         (ISA_HAS_ROTR_DI): Ditto.
16982         (RTX_COSTS): Use.
16983
16984 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16985
16986         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
16987         at head.
16988         (remove_dup_nonsys_dirs): New function.
16989         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
16990         (merge_include_chains): Remove non-system include directories from
16991         quote and bracket include chains when they duplicate equivalent system
16992         directories.
16993         * doc/cpp.texi (-I): Update.
16994         * doc/cppopts.texi (-I): Update.
16995         * doc/install.texi (--with-local-prefix): Further document usage of
16996         this option.
16997         * doc/invoke.texi (-I): Update.
16998
16999 2002-08-20  Richard Henderson  <rth@redhat.com>
17000
17001         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
17002         (emit_block_move): Split out subroutines.
17003         (emit_block_move_via_movstr): New.
17004         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
17005         (emit_block_move_libcall_fn): New.  Construct function prototype for
17006         bcopy as well.
17007         (clear_storage): Split out subroutines.
17008         (clear_storage_via_clrstr): New.
17009         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
17010         (clear_storage_libcall_fn): New.  Construct function prototype for
17011         bzero as well.
17012         (emit_push_insn): Use emit_block_move.
17013         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
17014         (store_constructor): Likewise.
17015
17016 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
17017
17018         * objc/objc-act.c (building_objc_message_expr): Rename to
17019         current_objc_message_selector.
17020
17021 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
17022
17023         * objc/objc-act.c (build_ivar_chain): Remove.
17024         (objc_copy_list): Likewise.
17025         (get_class_ivars): Inline call to removed build_ivar_chain
17026         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
17027         slot; use that slot (rather than CLASS_IVARS) when accessing
17028         ivars for base classes.  Call copy_list and chainon instead of
17029         objc_copy_list.
17030         (build_private_template): Call get_class_ivars instead of
17031         build_ivar_chain.
17032         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
17033         (continue_class): Call get_class_ivars instead of
17034         build_ivar_chain.
17035         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
17036         of DECL_BIT_FIELD (which may have been cleared).
17037         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
17038
17039 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17040
17041         * genautomata.c (output_translate_vect, output_state_ainsn_table,
17042         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
17043         in output file.
17044         (output_internal_min_issue_delay_func): Initialize variable in
17045         output file.
17046
17047 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
17048
17049         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
17050         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
17051
17052 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
17053             Steve Ellcey  <sje@cup.hp.com>
17054
17055         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
17056         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
17057         * explow.c (trunc_int_for_mode): Abort when the mode is not
17058         a scaler integer mode.
17059         * combine.c (expand_compound_operation): Don't expand Vector
17060         or Complex modes into shifts.
17061         (expand_field_assignment): Don't do bitwise arithmatic and
17062         shifts on Vector or Complex modes.
17063         (simplify_comparison): Don't call trunc_int_for_mode
17064         for VOIDmode.
17065         * recog.c (general_operand): Likewise.
17066         (immediate_operand): Likewise.
17067         (nonmemory_operand): Likewise.
17068
17069 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
17070
17071         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
17072         multi-instruction SImode constant.  Add REG_EQUAL note.
17073         * config/rs6000/rs6000.md (movsi splitter): Use
17074         rs6000_emit_set_const.
17075
17076 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17077
17078         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
17079         the macro test controlling its use.
17080
17081 2002-08-18  H.J. Lu  (hjl@gnu.org)
17082
17083         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
17084         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
17085         gnu_ld=yes.
17086         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
17087         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
17088         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
17089         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
17090         here.
17091         (cris-*-linux*): Remove setting thread_file here.
17092
17093 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
17094
17095         PR preprocessor/7602
17096         * cppinit.c (path_include): Treat the system environment
17097         variables as being cxx_aware.
17098
17099 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
17100
17101         * c-decl.c (flexible_array_type_p): New function.
17102         (grokdeclarator, finish_struct): Use it.
17103         * doc/extend.texi: Document constraints on use of structures with
17104         flexible array members.
17105
17106 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
17107
17108         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
17109         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
17110         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
17111
17112 2002-08-16  Stan Shebs  <shebs@apple.com>
17113
17114         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
17115         for ObjC with -fnext-runtime.
17116         * doc/cpp.texi: Document it.
17117
17118 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
17119
17120         * doc/install.texi (Final installation): Replace links to individual
17121         build status pages with a link to a common page that lists them all.
17122
17123 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
17124
17125         * doc/invoke.texi: Fix typo.
17126
17127 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
17128
17129         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
17130
17131 2002-08-16  Andrew Haley  <aph@redhat.com>
17132
17133         * tree-inline.c: Add includes for Java inliner.
17134         (remap_decl): Don't handle anonymous types for Java.
17135         (remap_block): Add handling for Java trees.
17136         (copy_scope_stmt): Conditionalize for non-Java use only.
17137         (copy_body_r): Handle Java trees.  Add handling for
17138         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
17139         (initialize_inlined_parameters):  Handle Java trees.
17140         (declare_return_variable): Likewise.
17141         (expand_call_inline): Handle Java trees.
17142         (walk_tree): Likewise.
17143         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
17144         (add_stmt_to_compound): New function.
17145
17146 2002-08-15  Richard Henderson  <rth@redhat.com>
17147
17148         * Makefile.in (LOOSE_WARN): Remove -fno-common.
17149         (NOCOMMON_FLAG): New substitution point.
17150         (GCC_WARN_CFLAGS): Include it.
17151         * configure.in (ac_checking): Set nocommon_flag.
17152         (nocommon_flag): New substitution point.
17153
17154 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
17155
17156         * c-tree.h (skip_evaluation): Move declaration...
17157         * c-common.h: ... here.
17158         * c-typeck.c (build_external_ref): Don't assemble_external nor
17159         mark a tree as used if skip_evaluation is set.
17160         * c-parse.in (typeof): New non-terminal to set skip_evaluation
17161         around TYPEOF.
17162         (typespec_nonreserved_nonattr): Use it.
17163
17164 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
17165
17166         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
17167         (xcoff_debug_hooks): Update end_prologue.
17168         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
17169         * debug.h (end_prologue): Add file arg.
17170         (end_epilogue): Add line and file args.
17171         (dwarf2out_end_epilogue): Add line and file args.
17172         (vmsdbgout_after_prologue): Remove.
17173         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
17174         (dwarf2_debug_hooks): Update end_prologue.
17175         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
17176         (dwarfout_end_prologue): Add file arg.
17177         * final.c (vmsdbgout_after_prologue): Remove
17178         (final_end_function): Update end_epilogue call.
17179         (final_scan_insn): Update end_prologue call.
17180         * sdbout.c (sdbout_end_epilogue): Add line and file args.
17181         (sdbout_end_prologue): Add file arg.
17182         (sdb_debug_hooks): Update end_prologue.
17183         (sdb_begin_prologue): Update sdbout_end_prologue call.
17184         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
17185         vmsdbgout_end_function.
17186         (vmsdbgout_end_prologue): New function renamed from
17187         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
17188         (vmsdbgout_end_function): New function.
17189         (vmsdbgout_end_epilogue): Add line and file args. Call
17190         vmsdbgout_source_line.
17191         (write_pclines): Write only valid line numbers.
17192         (write_srccorr): Don't write source correlation records if 0 lines.
17193         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
17194
17195 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
17196
17197         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
17198         (_Unwind_Internal_Ptr): 32 bit version for use in
17199         read_encoded_value_with_base.
17200         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
17201         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
17202         right size.
17203
17204 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17205
17206         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
17207         signed/unsigned warnings.
17208
17209         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
17210         record_reg_classes): Likewise.
17211
17212         * reload.c (reload_inner_reg_of_subreg, push_reload,
17213         find_reloads_address_1): Likewise.
17214
17215 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
17216
17217         * rs6000.c (output_mi_thunk): Return to function section on
17218         TARGET_ELF.
17219
17220         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
17221
17222 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
17223
17224         * config/s390/s390.c (legitimize_address): Optimize loading
17225         of large displacements.
17226
17227 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
17228
17229         * config/alpha/alpha-protos.h: Update.
17230
17231         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
17232         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
17233         (alpha_linkage_symbol_p): New static function.
17234         (print_operand_address): Print linkage operand.
17235
17236         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
17237         variables.
17238         (reloc_kind): New enum.
17239         (struct alpha_funcs): New struct.
17240         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
17241
17242         (alpha_need_linkage): Rewrite.
17243         (alpha_use_linkage): New global function.
17244         (alpha_write_linkage): Rewrite and make static.
17245         (alpha_write_one_linkage): Rewrite
17246
17247         (alpha_start_function): Remove procedure descriptor output.
17248         (alpha_end_function): Write linkages at end of each function.
17249
17250         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
17251         (call_vms_1, call_value_vms_1): Rewrite.
17252
17253         * config/alpha/vms.h (ASM_FILE_END): Remove.
17254
17255 2002-08-14  Richard Henderson  <rth@redhat.com>
17256
17257         * ggc-page.c (RTL_SIZE): New.
17258         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
17259         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
17260
17261 2002-08-14  Richard Henderson  <rth@redhat.com>
17262
17263         * calls.c: Include target.h.
17264         * Makefile.in (calls.o): Update.
17265
17266         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
17267         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
17268
17269 2002-08-14  Richard Henderson  <rth@redhat.com>
17270
17271         * Makefile.in (LOOSE_WARN): Add -fno-common.
17272         * c-common.h (constant_string_class_name): Add missing extern.
17273
17274 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
17275
17276         PR preprocessor/7358
17277         * c-opts.c (check_deps_environment_vars): Ignore main file
17278         for SUNPRO_DEPENDENCIES.
17279         * cppfiles.c (stack_include_file): Ignore main file if
17280         appropriate.
17281         * cpplib.h (struct cpp_options): New member in deps.
17282         * doc/cppenv.texi: Update.
17283
17284 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
17285
17286         PR preprocessor/7526
17287         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
17288
17289 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
17290
17291         * doc/invoke.texi (-a): Remove documentation.
17292         (-fprofile-arcs): Remove reference to -a, -ax options.
17293         * doc/gcov.texi (Gcov Data Files): Data might be merged.
17294
17295 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
17296
17297         Fix PR/7566
17298         * c-semantics.c (genrtl_case_label): Don't (mis)use
17299         warning_with_decl.
17300
17301 2002-08-14  Dale Johannesen  <dalej@apple.com>
17302
17303         * explow.c (emit_stack_restore):  Emit memory clobbers
17304         preceding the stack pop, to prevent the scheduler from
17305         moving refs to variable arrays below this pop.
17306         * reload1.c (reload):  Preserve these clobbers for sched2.
17307         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
17308
17309 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
17310
17311         * c-opts.c (c_common_post_options): Correct test.
17312
17313 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17314
17315         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
17316         order in call to fprintf.
17317
17318 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17319
17320         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
17321
17322 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
17323
17324         * reload.c (find_reloads): Handle constraint letters marked by
17325         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
17326         (alternative_allows_memconst): Likewise.
17327         * reload1.c (maybe_fix_stack_asms): Likewise.
17328         * recog.c (asm_operand_ok, preprocess_constraints,
17329         constrain_operands): Likewise.
17330         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
17331         * local-alloc.c (block_alloc, requires_inout): Likewise.
17332         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17333
17334         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
17335         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
17336         * doc/tm.texi: Document these two new target macros.
17337
17338         * config/s390/s390.c (s390_expand_plus_operand): Accept already
17339         valid operands.
17340         (q_constraint): New function.
17341         config/s390/s390-protos.h (q_constraint): Declare it.
17342         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
17343         (EXTRA_MEMORY_CONSTRAINT): New macro.
17344
17345         * config/s390/s390.md: Throughout the machine description,
17346         replace all instances of the constraint combinations 'Qo'
17347         or 'oQ' with simply 'Q'.
17348
17349 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
17350
17351         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
17352         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
17353         (LIBGCC2_CFLAGS): Compile with -mrelax.
17354
17355 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
17356
17357         * doc/invoke.texi: Document -minmax for 68HC12.
17358
17359         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
17360         ("uminqi3"): Likewise.
17361         ("uminhi3", "umaxhi3"): Likewise.
17362
17363         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
17364         (TARGET_MIN_MAX): Define.
17365         (TARGET_SWITCHES): New option -minmax/-mnominmax.
17366
17367 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
17368
17369         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
17370         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
17371
17372         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
17373         (ret, declare, farsym): New gas macros.
17374         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
17375         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
17376         and declare the symbol far when compiled with -mlong-calls.
17377         (__far_trampoline): New for 68HC12 trampoline code to invoke a
17378         far handler using jsr/bsr.
17379
17380         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
17381         (jsr): New macro to transform a 'jsr' into a 'call'.
17382
17383 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
17384
17385         * doc/invoke.texi: Document -mlong-calls for 68HC12.
17386
17387         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
17388         -mlong-calls is specified.
17389         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
17390         assembler directives.
17391         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
17392         (TARGET_SWITCHES): Add -mlong-calls options.
17393         (current_function_far): Declare.
17394
17395         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
17396         into account the page register saved on the stack.
17397         (m68hc11_override_options): Take into account -mlong-calls option.
17398         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
17399
17400         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
17401         if the function is going to be in 68HC12 banked memory (-mlong-calls).
17402         ("*return_16bit"): Likewise.
17403         ("*return_void"): Likewise.
17404         ("call", "call_value"): Use call for a far function call.
17405
17406 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
17407
17408         * toplev.c (parse_options_and_default_flags): Don't call
17409         post_options here.
17410         (general_init): Initialize GC, pools and tree hash here,
17411         instead of lang_independent_init.
17412         (lang_independent_init): Rename backend_init.
17413         (do_compile): Call post_options hook; exit early if there
17414         have been errors after switch processing.
17415         (toplev_main): Update.
17416
17417 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
17418
17419         * c-pretty-print.h: Guard against multiple inclusion.
17420         Robustify macros.
17421         (pp_c_attributes): Declare.
17422         * c-pretty-print.c (pp_c_attributes): New function.
17423
17424 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17425
17426         * m68k.c (m68k_output_function_prologue,
17427         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
17428         and NEWS/MOTOROLA.
17429         * genattrtab.c: Remove dpx2 comment.
17430         * libgcc2.c (__enable_execute_stack): Delete versions for
17431         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
17432         sony_news/SYSTYPE_BSD.
17433         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
17434         __gmicro__, __i860__, __NeXT__ and __pyr__.
17435         * rtl.h: Remove convex comment.
17436         * varasm.c: Likewise.
17437
17438 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17439
17440         * c-opts.c (lang_flags): Const-ify.
17441         * ra-build.c (undef_table): Likewise.
17442         * ra.c (eliminables): Likewise.
17443
17444 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
17445
17446         * tree.h: Guard against multiple inclusion.
17447
17448 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
17449
17450         * reload1.c (reload_cse_simplify): Before checking
17451         REG_FUNCTION_VALUE_P, check REG_P.
17452
17453 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
17454
17455         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
17456
17457 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
17458
17459         * c-opts.c (c_common_init_options): Extra braces needed.
17460
17461 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
17462
17463         * sh.c (sh_init_builtins): Add PARAMS to declaration.
17464         (sh_media_init_builtins, sh_expand_builtin): Likewise.
17465         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
17466         (sh_expand_binop_v2sf): Likewise.
17467         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
17468         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
17469         (sh_initialize_trampoline): Likewise.
17470
17471 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
17472
17473         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
17474         new condition code modes.
17475         s390.c (s390_match_ccmode_set): Handle those new CC modes.
17476         (s390_select_ccmode): Likewise.
17477         (s390_branch_condition_mask): Likewise.
17478
17479         * s390-protos.h (s390_tm_ccmode): Declare.
17480         s390.c (s390_tm_ccmode): New function.
17481         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
17482
17483         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
17484         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
17485         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
17486
17487         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
17488         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
17489         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
17490         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
17491         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
17492
17493         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
17494         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
17495         "*cmpqi_ccs_0"): Remove, replace by ...
17496         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
17497         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
17498         "*tstqi", "*tstqi_cconly"): ... these new patterns.
17499
17500         ("*cmpsidi_ccs"): Remove, replace by ...
17501         ("*cmpsi_ccs_sign"): ... this new pattern.
17502         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
17503
17504         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
17505         ("*cli"): ... this new pattern.
17506
17507         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
17508         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
17509         New patterns.
17510         ("adddi3_64"): Rename to "*adddi3_64".
17511         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
17512         ("adddi3"): Adapt expander.
17513
17514         ("*addsi3_cc"): Allow "general_operand" for operand 2.
17515         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
17516         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
17517
17518         ("addhi3", "addqi3"): Remove, replace by ...
17519         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
17520
17521         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
17522         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
17523         ("subdi3"): Replace by insn and splitter "*subdi3_31".
17524         ("subdi3"): New expander.
17525
17526         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
17527
17528         ("subhi3", "subqi3"): Remove, replace by ...
17529         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
17530
17531         ("*muldi3_sign"): New pattern.
17532         ("muldi3"): Do not clobber CC.
17533         ("mulsi3"): Likewise.
17534         ("mulsi_6432"): Likewise.
17535
17536 2002-08-13  Denis Chertykov  <denisc@overta.ru>
17537
17538         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
17539         which can change CC0.
17540
17541 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
17542
17543         * gcse.c (adjust_libcall_notes): New function.
17544         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
17545
17546 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
17547
17548         * libgcc2.c (L_bb): Remove unneeded #includes.
17549         (__global_counters, __gthreads_active): Remove unused globals.
17550         (__bb_exit_func): Merge counts into files rather than appending.
17551         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
17552         (ALL_CFLAGS): ... to here.
17553
17554 2002-08-13  Denis Chertykov  <denisc@overta.ru>
17555
17556         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
17557         (function_epilogue): Don't calculate function size.
17558         (ip2k_set_compare): Don't use lookup_const_double.
17559         (asm_file_start): Initialization of commands_in_file removed.
17560         (asm_file_end): Output of commands_in_file removed.
17561
17562         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
17563         __INT_MAX__.
17564
17565 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
17566
17567         * c-opts.c (c_common_init_options): Check option array is
17568         sorted if checking enabled.
17569
17570 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
17571
17572         * c-pretty-print.c: #include "c-tree.h".
17573         (pp_c_simple_type_specifier): Tweak.
17574         (pp_c_storage_class_specifier): New.
17575         (pp_c_function_specifier): Likewise.
17576         (pp_c_declaration_specifiers): Likewise.
17577         (pp_c_init_declarator): Likewise.
17578         (pp_c_declaration): Likewise.
17579         (pp_c_direct_declarator): Stub.
17580         (pp_c_declarator): Likewise.
17581         (pp_c_parameter_declaration): Likewise.
17582
17583 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
17584
17585         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
17586         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
17587         struct deferred_opt): New.
17588         (COMMAND_LINE_OPTIONS): Add -M*.
17589         (missing_arg): Update.
17590         (c_common_decode_option): Handle -M*.
17591         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
17592         don't call cpp_post_options.
17593         (c_common_finish, check_deps_environment_vars): Update.
17594         * cppfiles.c (stack_include_file, handle_missing_header): Update.
17595         * cpphash.h (CPP_PRINT_DEPS): Remove.
17596         * cppinit.c: Don't include version.h.
17597         (cpp_create_reader): Don't call deps_init.  Initialize
17598         warn_long_long.
17599         (cpp_read_main_file): Init deps if necessary.
17600         (cpp_destroy): Conditionally free deps.
17601         (cpp_finish): Update.
17602         (no_tgt): Remove.
17603         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
17604         (cpp_post_options): Rename post_options.
17605         * cpplib.h (struct cpp_options): Remove some dependency options;
17606         move others to a new structure.
17607         (cpp_post_options): Remove.
17608         (cpp_finish): Comment.
17609         * fix-header.c (read_scan_file): Don't call cpp_post_options.
17610
17611 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
17612
17613         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
17614         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
17615         MMIX_rR_REGNUM as clobbered.
17616         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
17617
17618 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
17619
17620         * diagnostic.h (output_formatted_scalar): Rename from
17621         output_formatted_integer.
17622         * diagnostic.def: Add DK_DEBUG.
17623         * diagnostic.c (output_decimal): Adjust.
17624         (output_long_decimal): Likewise.
17625         (output_unsigned_decimal): Likewise.
17626         (output_octal): Likewise.
17627         (output_long_octal): Likewise.
17628         (output_hexadecimal): Likewise.
17629         (output_long_hexadecimal): Likewise.
17630         * c-pretty-print.c (pp_c_type_specifier): New function.
17631         (pp_c_specifier_qualifier_list): Likewise.
17632         (pp_c_abstract_declarator): Likewise.
17633         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
17634
17635 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
17636
17637         * doc/trouble.texi (Disappointments): Add static constructor and
17638         destructor dependency information for AIX.
17639
17640 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
17641
17642         * cpphash.h (struct printer): New from cppmain.c.
17643         (cpp_reader): New member.
17644         * cppmain.c (struct printer): Move to cpphash.h.
17645         (options, print): Remove.
17646         (account_for_newlines, print_line, maybe_print_line,
17647         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
17648         scan_translation_unit_trad, cb_line_change, cb_ident,
17649         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
17650         cb_def_pragma): Make reentrant.
17651
17652 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17653
17654         * real.c (ieee_64): Always define.
17655         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
17656         (dec_h): Not used yet, hide it.
17657         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
17658         macro controlling use.
17659         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
17660
17661 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
17662
17663         * i386.md (tablejump): Sign extend the operand.
17664         * i386.c (classify_argument): Fix missed case from previous patch.
17665
17666 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
17667
17668         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
17669         to c-copts.c.
17670         (warn_multichar): Die.
17671         (cb_register_builtins): Export.
17672         * c-common.h (warn_multichar, preprocess_file): Remove.
17673         (cb_register_builtins): New.
17674         * c-lang.c (c_init): Remove.
17675         (LANG_HOOKS_INIT): Use c_objc_common_init.
17676         * c-lex.c (init_c_lex): Don't canonicalize filename.
17677         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
17678         (preprocess_file): Make static.  Update for cpplib.
17679         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
17680         (c_common_post_options): Set some cpp options here.
17681         (c_common_init): Move from c-common.c.
17682         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
17683         * cpplib.h (struct cpp_options): Remove in_fname.
17684         (cpp_preprocess_file): Update.
17685         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
17686
17687 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17688
17689         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
17690
17691 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17692
17693         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
17694         backslash in comment preceeding macro definition.
17695         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
17696         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
17697         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
17698
17699 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
17700
17701         * expr.c (store_expr): In condition for checking if value is
17702         generated in TARGET, move call to expr_size last.
17703
17704 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
17705
17706         * c-common.c (c_common_init): Call preprocess_file instead.
17707         (c_common_finish): Move to c-opts.c.
17708         * c-common.h (preprocess_file): new.
17709         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
17710         check_deps_environment_vars, c_common_finish): New.
17711         (c_common_decode_option): Update for out_fname and dependencies.
17712         * cppinit.c (init_dependency_output, output_deps): Remove.
17713         (cpp_destroy): Update prototype.
17714         (cpp_add_dependency_target): New.
17715         (cpp_read_main_file): Don't overlay a buffer.
17716         (cpp_finish): Take a deps output stream and write deps to it.
17717         Return the error count.
17718         (cpp_post_options): Don't canonicalize out_fname, or do anything
17719         with dependencies.
17720         * cpplib.h (struct cpp_options): Remove out_fname and
17721         preprocess_only.
17722         (cpp_add_dependency_target): New.
17723         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
17724         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
17725         set preprocess_only.  Don't handle the output stream directly.
17726
17727 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17728
17729         * dsp16xx.c (print_operand): Fix format specifier.
17730         * dsp16xx.md: Avoid automatic aggregate initialization.
17731         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
17732         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
17733         integer constant modifier.
17734         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
17735         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
17736         guards.
17737         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
17738         * v850.c (v850_select_section): Mark parameter with
17739         ATTRIBUTE_UNUSED.
17740         * global.c (global_alloc): Const-ify.
17741         * ra-colorize.c (hardregset_to_string): Fix format specifier.
17742
17743 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17744
17745         * darwin-c.c (darwin_pragma_options): Const-ify.
17746         * darwin.c (machopic_non_lazy_ptr_name,
17747         machopic_validate_stub_or_non_lazy_ptr): Likewise.
17748         (machopic_indirect_data_reference): Wrap variables in macros
17749         controlling their use.
17750         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
17751         (machopic_select_section): Use parentheses around && within ||.
17752         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
17753
17754 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17755
17756         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
17757         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
17758         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
17759         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
17760         mdr_try_remove_redundant_insns, track_w_reload,
17761         mdr_try_wreg_elim): Make function static to match prototype.
17762         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
17763         parameter with ATTRIBUTE_UNUSED.
17764
17765 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17766
17767         * arc.c (arc_init): Don't use ISO C style function definitions.
17768         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
17769         arm_get_strip_length, arm_strip_name_encoding): Likewise.
17770         * avr.h (progmem_section): Likewise.
17771         * h8300.c h8300_asm_insn_count): Likewise.
17772         * m32r.c (init_idents): Likewise.
17773         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
17774         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
17775         * xtensa.c (xtensa_build_va_list): Likewise.
17776
17777 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
17778
17779         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
17780         * c-opts.c (parse_option): Rename find_opt.
17781         (set_std_c99): New function.
17782         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
17783         (missing_arg): Remove OPT_std_bad.  Handle -o.
17784         (c_common_decode_option): Handle input and output file names,
17785         -o and -remap.  Clean up -std= handling.
17786         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
17787         (cpp_handle_option): Similarly.  Don't handle filenames.
17788
17789 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
17790
17791         * i386.c (classify_argument): Fix computing of field's offsets.
17792
17793 2002-08-11  Andreas Jaeger  <aj@suse.de>
17794
17795         PR target/7531:
17796         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
17797
17798 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
17799
17800         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
17801         reference to clk_objective_c with flag_objc.
17802         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
17803         Likewise.
17804         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17805
17806 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
17807
17808         * c-opts.c (set_std_cxx98, set_std_c89): New.
17809         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
17810         (c_common_decode_option): Handle new switches from cppinit.c.
17811         Add -std=gnu++98.
17812         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
17813         (no_arg, no_num): Remove.
17814         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
17815         switches apart from -lang-objc and lang-asm.
17816         (cpp_handle_option): Similarly.
17817         * cpplib.h (cpp_set_lang): New.
17818         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
17819         -std=gnu++98.
17820         * objc/lang-specs.h: Remove -ansi.
17821
17822 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
17823                                Graham Stott
17824
17825         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
17826         errors.
17827
17828 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17829
17830         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
17831         emit_jump_insn): Fix uninitialized variable.
17832         * gcov.c (init_line_info): Likewise.
17833         * genautomata.c (transform_3): Add braces around ambiguous
17834         else.
17835         * ifcvt.c (cond_exec_process_insns): Mark parameter with
17836         ATTRIBUTE_UNUSED.
17837         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
17838         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
17839         variable.
17840
17841         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
17842         warnings in output files.
17843
17844 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
17845
17846         * c-common.c (flag_objc): New.
17847         * c-common.h (c_language_kind): Get rid of clk_objective_c
17848         enum value.
17849         (flag_objc): New extern declaration.
17850         * c-decl.c (implicitly_declare): Call objc_check_decl
17851         instead of maybe_objc_check_decl.
17852         (finish_decl): Likewise.
17853         (grokfield): Likewise.
17854         (finish_struct): Likewise.
17855         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
17856         (maybe_objc_comptypes): Rename to objc_comptypes.
17857         (maybe_building_objc_message_expr): Rename to
17858         objc_message_selector.
17859         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
17860         replace with flag_objc as needed.
17861         * c-opts.c (c_common_init_options): Likewise.
17862         (c_common_decode_option): Likewise.
17863         * c-parse.in (init_reswords): Likewise.
17864         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
17865         (maybe_objc_comptypes): Rename to objc_comptypes.
17866         (maybe_building_objc_message_expr): Rename to
17867         objc_message_selector.
17868         * c-typeck.c (comptypes): Call objc_comptypes instead of
17869         maybe_objc_comptypes, and/or objc_message_selector instead of
17870         maybe_building_objc_message_expr.
17871         (comp_target_types): Likewise.
17872         (convert_for_assignment): Likewise.
17873         (warn_for_assignment): Likewise.
17874         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
17875         independently of those for other languages.
17876         * objc/objc-act.c (maybe_objc_comptypes): Delete.
17877         (maybe_objc_check_decl): Delete.
17878         (maybe_building_objc_message_expr): Rename to
17879         objc_message_selector.
17880         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
17881         clk_objective_c; set flag_objc flag.
17882
17883 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
17884
17885         * ifcvt.c (find_if_case_2): Test correct basic block for size.
17886
17887 2002-08-09  Dale Johannesen  <dalej@apple.com>
17888
17889         * config/rs6000/rs6000.md: Add sibcall patterns.
17890         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
17891         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
17892         Rewritten to handle sibcalls.
17893         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
17894         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
17895
17896 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
17897
17898         * profile.c (da_file_name): New static var.
17899         (init_branch_prob): Initialize it.
17900         (end_branch_prob): Remove da file.
17901
17902         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
17903         * configure.in (coverage_flags): Default to nothing.
17904         * configure: Rebuilt.
17905
17906 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
17907
17908         * Makefile.in (c-opts.o): Update
17909         * c-opts.c: Include intl.h.
17910         (print_help): Move from cppinit.c.  Remove unused options.
17911         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
17912         (missing_arg): Complain for switches without an argument.
17913         (c_common_decode_option): Reject missing joined arguments.
17914         Handle new switches from cppinit.c.
17915         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
17916         (cpp_handle_option): Similarly.
17917         (print_help): Moved to c-opts.c.
17918         * cpplib.h (struct cpp_options): Remove help_only.
17919         * gcc.c (cpp_unique_options): Remove -$.
17920         * doc/cppopts.texi: Undocument -h.
17921
17922 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
17923
17924         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
17925         legitimate constant.
17926         (legitimate_pic_operand_p): Neither pic operand.
17927         (legitimate_address_p): But legitimate address.
17928         (get_thread_pointer): Generate MEM/u instead of CONST around
17929         UNSPEC_TP.
17930         (print_operand): Remove printing of UNSPEC_TP.
17931         (print_operand_address): And print it here.
17932
17933 2002-08-08  Devang Patel  <dpatel@apple.com>
17934
17935         * objc/objc-act.c (build_selector_translation_table): Issue warning,
17936         when  -Wselector is used,if method for which selector is being
17937         created does not exist.
17938
17939 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
17940
17941         * config/sh/sh.c (prepare_move_operands): Only call
17942         target_reg_operand if TARGET_SHMEDIA.
17943
17944 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
17945
17946         * config/rs6000/rs6000.h, config/rs6000/aix.h,
17947         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
17948         two patches.
17949         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
17950
17951 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
17952             Richard Henderson  <rth@redhat.com>
17953
17954         * emit-rtl.c (gen_rtx_REG): After reload, only return
17955         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
17956
17957 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
17958
17959         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
17960         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
17961         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
17962         macro.
17963
17964 2002-08-08  Adam Nemet  <anemet@lnxw.com>
17965
17966         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
17967         register.
17968         (thumb_expand_prologue): Likewise.
17969         (thumb_output_function_prologue): Likewise.
17970         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
17971         the additional push of the PIC register.
17972
17973 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
17974
17975         * configure.in (enable_coverage): New enable switch.
17976         * configure: Rebuilt.
17977         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
17978         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
17979         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
17980         (mostlyclean): Remove coverage files.
17981         * doc/install.texi: Document enable_coverage.
17982
17983         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
17984         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
17985         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
17986         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
17987         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
17988         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
17989         files.
17990
17991 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
17992
17993         * c-opts.c (cpp_opts): New.
17994         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
17995         (c_common_decode_options): Handle cpplib switches.
17996         (c_common_init_options): Set cpp_opts.
17997         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
17998         (cpp_handle_option): Similarly.
17999
18000 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
18001
18002         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
18003         (TARGET_ALTIVEC_ABI): Same.
18004         (TARGET_ALTIVEC_VRSAVE): Same.
18005
18006         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
18007         icode not CODE_FOR_nothing.  Change switch to if.
18008
18009 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
18010
18011         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
18012
18013 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18014
18015         * stor-layout.c (place_union_field): For bitfields if
18016         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
18017         TYPE_USER_ALIGN.
18018
18019 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18020
18021         * pa.c (struct deferred_plabel): Constify name field.
18022
18023 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
18024
18025         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
18026
18027 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18028
18029         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
18030         local_prefix are the same.
18031         * configure: Rebuilt.
18032
18033 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
18034             Richard Henderson  <rth@redhat.com>
18035
18036         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
18037         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
18038         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
18039         (place_field): Likewise.
18040         * config/i386/i386.c (x86_field_alignment): Don't check
18041         DECL_USER_ALIGN here.
18042         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
18043         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
18044         prototype.
18045         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
18046         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
18047         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
18048         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
18049         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
18050         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
18051
18052 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
18053
18054         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
18055         * c-common.c: Don't include tree-inline.h.
18056         (c_common_init_options, c_common_post_options): Move to c-opts.c.
18057         * c-common.h (c_common_decode_option): New.
18058         * c-decl.c (c_decode_option): Remove.
18059         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
18060         * c-opts.c: New file.
18061         * c-tree.h (c_decode_option): Remove.
18062         * doc/passes.texi: Update.
18063         * objc/objc-act.c (objc_decode_option): Remove.
18064         * objc/objc-act.h (objc_decode_option): Remove.
18065         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
18066         c_common_decode_option.
18067
18068 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
18069
18070         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
18071         dependency on TARGET_DOUBLE_FLOAT.
18072
18073 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
18074
18075         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
18076         overwrite callee-save registers.  Fix comment.
18077
18078 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
18079
18080         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
18081         in target_flags based on ISA, if it was not set on the command
18082         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
18083         support Branch Likely instructions.
18084         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
18085         (TARGET_BRANCHLIKELY): Likewise.
18086         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
18087         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
18088         ISA_HAS_BRANCHLIKELY.
18089         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
18090         * doc/invoke.texi: Document new MIPS -mbranch-likely and
18091         -mno-branch-likely options.
18092
18093 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18094
18095         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
18096
18097         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
18098         $(GCONFIG_H).
18099
18100 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
18101
18102         * c-decl.c (duplicate_decls): Error out for incompatible TLS
18103         declarations.
18104
18105         * testsuite/gcc.dg/tls/diag-3.c: New.
18106
18107 2002-08-06  Dale Johannesen  <dalej@apple.com>
18108
18109         * c-common.c (fname_decl): Use line number 0 for
18110         __func__, to avoid confusing debuggers.
18111
18112 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
18113
18114         * gcov.c: Tidy.
18115         (struct line_info, struct coverage): New structures.
18116         (gcov_file_name, gcov_file): Remove globals.
18117         (output_data): Take source file parameter. Fix memory leak. Break
18118         up into ...
18119         (init_line_info, output_line_info, make_gcov_file_name,
18120         accumulate_branch_counts): ... here.
18121         (calculate_branch_probs, function_summary): Adjust.
18122         (main): Adjust.
18123         (function_*): Remove global variables.
18124
18125 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18126
18127         * dwarf2out.c: Remove unused macros.
18128
18129 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18130
18131         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
18132
18133 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18134
18135         * cppinit.c (struct lang_flags): Rename trigraphs std.
18136         (set_lang): Update.
18137         * cpplib.h (struct cpp_options): New member std.
18138         * cppmacro.c (_cpp_builtin_macro_text): Use std.
18139         (collect_args): Flag whether to swallow a possible future
18140         comma pasted with varargs.
18141         (replace_args): Use this flag.
18142         * doc/cpp.texi: Update varargs extension documentation.
18143
18144 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18145
18146         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
18147
18148 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18149
18150         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
18151         and MODE_CLASS_INT modes.
18152
18153 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18154
18155         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
18156         --{enable,disable}-threads is given to configure.
18157         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
18158         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
18159         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
18160         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
18161         Remove thread_file setting here.
18162
18163 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
18164
18165         * doc/install.texi (Binaries): Update Bull Freeware URL.
18166
18167 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18168
18169         * doc/gcc.texi (Top): Rename Index to Keyword Index.
18170
18171 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
18172
18173         * gcov.c (output_data): Round to % to nearest, tweak formatting.
18174
18175 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
18176
18177         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
18178         of the operands into MINUS_EXPR if code is PLUS_EXPR.
18179
18180 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
18181
18182         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
18183         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
18184         drectve_section): Define.
18185         * config/i386/t-interix: Replace interix.o rule with winnt.o.
18186         * config/i386/interix.c: Remove.
18187
18188 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
18189
18190         * attribs.c: Don't include obstack.h.
18191         * builtins.c: Likewise.
18192         * cfganal.c: Likewise.
18193         * cfgbuild.c: Likewise.
18194         * cfgcleanup.c: Likewise.
18195         * emit-rtl.c: Likewise.
18196         * loop.c: Likewise.
18197         * stmt.c: Likewise.
18198
18199         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
18200
18201 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
18202
18203         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
18204
18205 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
18206
18207         * doc/invoke.texi: Remove duplicated paragraph describing
18208         TARGET_SWITCHES.
18209
18210 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
18211
18212         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
18213         * collect2.h (permanent_obstack): Delete declaration.
18214         * collect2.c (permanent_obstack): Delete definition.
18215         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
18216         * expr.c: Don't include obstack.h.
18217         (permanent_obstack): Delete declaration.
18218         * function.c: Don't include obstack.h.
18219         (permanent_obstack): Delete declaration.
18220         * integrate.c: Don't include obstack.h.
18221         (function_maybepermanent_obstack): Delete declaration.
18222         * print-tree.c (debug_tree): Use x*alloc not permalloc.
18223         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
18224         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
18225         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
18226         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
18227         of permalloc, expralloc, perm_calloc.
18228         * tree.c (permanent_obstack): Delete definition.
18229         (init_ttree): Rename from init_obstacks.
18230         (permalloc): Delete.
18231         (perm_calloc): Delete.
18232         (dump_tree_statistics): Don't print information about
18233         permanent_obstack.
18234         * varasm.c (assemble_start_function): Use xstrdup instead of
18235         permalloc/strcpy.
18236         (assemble_variable): Likewise.
18237         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
18238         permalloc.
18239         (unicosmk_add_extern): Likewise.
18240         * config/c4x/c4x.c (c4x_external_ref): Likewise.
18241         (c4x_global_label): Likewise.
18242         * config/frv/frv.c (frv_encode_section_info): Likewise.
18243         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18244         (i386_pe_record_exported_symbol): Likewise.
18245         * config/mips/mips.c (mips_output_external): Likewise.
18246         (mips_output_external_libcall): Likewise.
18247         * config/pa/pa.c: (permanent_obstack): Delete declaration.
18248         (output_call): Use ggc_strdup instead of allocating on
18249         permanent_obstack.
18250         * config/romp/romp.c: Include ggc.h.
18251         (get_symref): Don't declare permanent_obstack, use ggc_strdup
18252         intead of permanent_obstack.
18253         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
18254         instead of permalloc.
18255         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
18256         instead of permalloc
18257         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
18258         instead of permalloc.
18259         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
18260         permalloc.
18261
18262 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
18263
18264         Contribute a port developed primarily by Michael Meissner,
18265         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
18266         * config.gcc: Add frv-elf target.
18267         * config/frv/cmovd.c: New file.
18268         * config/frv/cmovh.c: New file.
18269         * config/frv/cmovw.c: New file.
18270         * config/frv/frv-abi.h: New file.
18271         * config/frv/frv-asm.h: New file.
18272         * config/frv/frv-modes.def: New file.
18273         * config/frv/frv-protos.h: New file.
18274         * config/frv/frv.c: New file.
18275         * config/frv/frv.h: New file.
18276         * config/frv/frv.md: New file.
18277         * config/frv/frvbegin.c: New file.
18278         * config/frv/frvend.c: New file.
18279         * config/frv/lib1funcs.asm: New file.
18280         * config/frv/media.h: New file.
18281         * config/frv/modi.c: New file.
18282         * config/frv/t-frv: New file.
18283         * config/frv/uitod.c: New file.
18284         * config/frv/uitof.c: New file.
18285         * config/frv/ulltod.c: New file.
18286         * config/frv/ulltof.c: New file.
18287         * config/frv/umodi.c: New file.
18288         * config/frv/xm-frv.h: New file.
18289
18290         * config/frv/media.h: Removed again.
18291
18292 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18293
18294         * gcov.c (bb_file_time): New static variable.
18295         (object_directory): May also be object file.
18296         (preserve_paths): New static variable.
18297         (print_usage): Adjust.
18298         (options): Adjust.
18299         (process_args): Adjust.
18300         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
18301         file. Find modification date on bb file.
18302         (read_profile): Don't rewind a NULL file.
18303         (format_hwint): New static function.
18304         (function_summary): Use format_hwint.
18305         (output_data): SOURCE_FILE_NAME is never relative to
18306         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
18307         mangling. Adjust output format to make it more machine readable.
18308         * doc/gcov.texi: Document & clarify semantics.
18309
18310 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
18311
18312         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
18313
18314 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18315
18316         * gcc.c (cc1_options): Pass output file as auxbase when
18317         appropriate.
18318         * profile.c (init_branch_prob): FILENAME has already had ending
18319         stripped.
18320         * final.c (end_final): Likewise.
18321         * toplev.c (aux_base_name): New global.
18322         (compile_file): Pass aux_base_name to init init_branch_prob and
18323         end_final.
18324         (independent_decode_option, case 'a'): New auxinfo options.
18325         (case 'd'): Protect against mising basename.
18326         (do_compile): Initialize aux_base_name.
18327         * toplev.h (aux_base_name): New global.
18328         * doc/invoke.texi: Adjust documentation.
18329
18330 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18331
18332         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
18333         of TARGET_ALIGN_DOUBLE.
18334
18335 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
18336
18337         * diagnostic.c (inform): New function.
18338         * diagnostic.h (inform): Declare.
18339
18340 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
18341
18342         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
18343         (movhi_internal): Same.
18344         (movqi_internal): Same.
18345         (movdi_internal64): Same.
18346
18347         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
18348
18349         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
18350         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
18351         (COMMON_ASM_OP): Define.
18352         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
18353         Use ALIGN parameter.
18354         (LOCAL_COMMON_ASM_OP): Define.
18355         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
18356
18357 2002-08-03  Roger Sayle  <roger@eyesopen.com>
18358
18359         * builtins.def: Define new builtin functions exp, expf, expl,
18360         log, logf and logl (and their __builtin_* variants).
18361         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
18362         Define exp_optab and log_optab.
18363         * optabs.c (init_optans): Initialize exp_optab and log_optab.
18364         * genopinit.c (optabs): Implement exp_optab and log_optab
18365         using exp?f2 and log?f2 patterns.
18366         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
18367         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
18368         (expand_builtin): Ignore the new builtins (and all cos and
18369         sin variants) when not optimizing.  Expand new builtins via
18370         expand_builtin_mathfn when flag_unsafe_math_optimizations.
18371
18372         * doc/extend.texi: Document new exp and log builtins.
18373         * doc/md.texi: Document new exp?f2 and log?f2 patterns
18374         (and previously undocumented cos?f2 and sin?f2 patterns).
18375
18376 2002-08-03  Jason Merrill  <jason@redhat.com>
18377
18378         * explow.c (int_expr_size): New fn.
18379         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
18380         * expr.h: Declare it.
18381
18382 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
18383
18384         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
18385         gengtype-* dependencies.
18386
18387 2002-08-02  Eric Christopher  <echristo@redhat.com>
18388
18389         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
18390         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
18391         #ifndef to #undef.
18392         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
18393
18394 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
18395
18396         PR optimize/7067
18397         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
18398         small if optimizing for size.
18399
18400 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
18401
18402         * configure.in (FORBUILD): Use $build_alias.
18403         * configure: Regenerated.
18404
18405 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
18406
18407         * config.gcc: Don't include mips/abi64.h in $tm_file.
18408         * hard-reg-set.h (call_really_used_regs): Declare.
18409         * config/mips/abi64.h: Remove file.
18410         * config/mips/linux.h,
18411         * config/mips/iris6.h: Don't include it.
18412         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
18413         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
18414         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
18415         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
18416         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
18417         Bring across definitions from abi64.h.
18418         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
18419         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
18420         (struct mips_args): Use it.
18421         * config/mips/mips.c (mips_conditional_register_usage): Define.
18422
18423 2002-08-02  Jason Merrill  <jason@redhat.com>
18424
18425         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
18426         * langhooks.c (lhd_expr_size): Define default.
18427         * langhooks.h (struct lang_hooks): Add expr_size.
18428         * explow.c (expr_size): Call it.
18429         * expr.c (store_expr): Don't copy an expression of size zero.
18430         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
18431         to store.
18432         * Makefile.in (builtins.o): Depend on langhooks.h.
18433
18434 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18435
18436         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
18437         * ra-debug.c: Include "tm_p.h".
18438         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
18439
18440 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
18441
18442         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
18443         when not honoring signalling NaNs.
18444         (simplify_ternary_operation): a == b has a definite value
18445         when not honoring NaNs.
18446
18447 2002-08-02  Jason Merrill  <jason@redhat.com>
18448
18449         * gdbinit.in (pct): New macro.
18450
18451 2002-08-01  Stan Shebs  <shebs@apple.com>
18452             Andreas Tobler  <toa@pop.agri.ch>
18453
18454         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
18455         plays nice with Darwin headers.
18456         (_BSD_RUNE_T_DEFINED_): Likewise.
18457
18458 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
18459
18460         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
18461         * cppinit.c (cpp_post_options): Likewise.
18462
18463         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
18464         warning about 'LL' suffix (but not 'ULL' etc) when
18465         -Wno-long-long is in effect.
18466
18467         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
18468         Check for failing time()/localtime(), issue a warning, and
18469         make __TIME__ and __DATE__ expand to fallback strings.
18470
18471         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
18472         and __TIME__ when the date and time cannot be determined.
18473
18474 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
18475
18476         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
18477
18478 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
18479
18480         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
18481
18482 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
18483
18484         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
18485         (mipsisa64sb1el-*-elf*): Likewise.
18486         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
18487         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
18488         (TARGET_SB1, TUNE_SB1): New macros.
18489         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
18490         -mtune flags.
18491
18492 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
18493
18494         * varasm.c (asm_emit_uninitialized): Return false if global BSS
18495         and ASM_EMIT_BSS not supported by target.
18496         (assemble_variable): Do not duplicate uninitialized logic.
18497         Fall through if asm_emit_uninitialized failed.
18498
18499 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
18500
18501         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
18502
18503 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
18504
18505         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
18506         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
18507
18508         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
18509         HOST_BITS_PER_WIDE_INT == 64.
18510
18511 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18512
18513         * df.c (df_insn_table_realloc): Change parameter to unsigned.
18514         * optabs.c (expand_binop): Make variable unsigned.
18515         * simplify-rtx.c (simplify_subreg): Likewise.
18516         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
18517
18518 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18519
18520         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
18521
18522 2002-08-01  Richard Henderson  <rth@redhat.com>
18523
18524         * toplev.c (parse_options_and_default_flags): Don't set
18525         flag_reorder_blocks for -Os.
18526
18527         * config/avr/avr.c (avr_optimization_options): Remove.
18528         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
18529         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
18530         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
18531
18532 2002-08-01  H.J. Lu <hjl@gnu.org>
18533             Richard Henderson  <rth@redhat.com>
18534
18535         * output.h (DECL_READONLY_SECTION): Remove.
18536         (decl_readonly_section): Declare.
18537         * varasm.c (decl_readonly_section): New.
18538         (default_section_type_flags, default_select_section): Use it.
18539         * config/arm/pe.c (arm_pe_unique_section): Likewise.
18540         * config/i386/interix.c (i386_pe_unique_section): Likewise.
18541         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
18542         * config/mcore/mcore.c (mcore_unique_section): Likewise.
18543         * config/mips/mips.c (mips_unique_section): Likewise.
18544
18545 2002-08-01  Richard Henderson  <rth@redhat.com>
18546
18547         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
18548         refers to a subroutine parameter.
18549
18550 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
18551
18552         * varasm.c (assemble_visibility): Strip name encoding.
18553
18554 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
18555
18556         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
18557         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
18558         when there is no frame pointer.
18559         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
18560         registers properly.
18561         * config/ns32k/__unorddf2.c: New file.
18562         * config/ns32k/__unordsf2.c: New file.
18563         * config/ns32k/t-ns32k: New file.
18564         * config.gcc (ns32k-*-netbsd*): Use it.
18565
18566 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
18567
18568         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
18569
18570 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
18571
18572         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
18573
18574 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
18575
18576         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
18577
18578 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
18579
18580         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
18581
18582 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18583
18584         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
18585         n_sets): Removed.
18586         (expr_hash_table, set_hash_table): Type changed to ...
18587         (struct hash_table): New type.
18588         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
18589         insert_expr_in_table, insert_set_in_table, compute_hash_table,
18590         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
18591         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
18592         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
18593         (alloc_hash_table): New.
18594         (free_set_hash_table, free_expr_hash_table): Merged to ...
18595         (free_hash_table): New.
18596         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
18597         (compute_hash_table_work): New.
18598         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
18599         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
18600         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
18601         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
18602         hoist_code, one_code_hoisting_pass,
18603         trim_ld_motion_mems): Altered due to changed type of hash tables.
18604
18605 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
18606
18607         * final.c (output_alternate_entry_point):
18608         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
18609
18610 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18611
18612         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
18613         avoid ISO C style function definition.
18614
18615         * expr.c (expand_assignment): Delete unused variable.
18616
18617 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
18618
18619         * c-common.c (cb_register_builtins): Set
18620         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
18621         is given, and to 0 otherwise.
18622         * combine.c (simplify_if_then_else): HONOR_NANS
18623         implies FLOAT_MODE_P.
18624
18625 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
18626
18627         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
18628         (cpp_handle_option): Don't handle it.
18629         (print_help): Update.
18630         * doc/cppopts.texi: Update.
18631
18632 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
18633
18634         * c-common.c (cb_register_builtins): If C++, define
18635         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
18636         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
18637 cp:
18638         * lang-specs.h: Simplify in accordance with new code in
18639         c-common.c.
18640
18641 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
18642
18643         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
18644         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
18645         * c-decl.c: Move all warning and flag variables to c-common.c.
18646         * c-format.c: Move all warning variables to c-common.c.
18647         * c-tree.h: Move all warning and flag declarations to c-common.h.
18648         * objc/objc-act.c: Move all warning variables to c-common.c.
18649         (flag_warn_protocol): Rename warn_protocol.
18650
18651 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18652
18653         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
18654
18655 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
18656
18657         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
18658         .section prefix.
18659
18660 2002-07-31  Stan Shebs  <shebs@apple.com>
18661
18662         * config.gcc (i[34567]86-*-darwin*): New configuration.
18663         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
18664         defining.
18665         (TARGET_ENCODE_SECTION_INFO): Ditto.
18666         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
18667         * config/darwin.c (machopic_indirect_data_reference): Remove
18668         setting of RTX_UNCHANGING_P.
18669         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
18670         not to be applied to sums.
18671         * config/i386/t-darwin: New file.
18672         * config/i386/darwin.h: New file.
18673         * config/i386/i386.h (TARGET_MACHO): Add default definition.
18674         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
18675         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
18676         label and not the GOT add.
18677         (constant_address_p): For Mach-O, seeing a CONST is enough.
18678         (legitimate_pic_address_disp_p): Add a Mach-O case.
18679         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
18680         (legitimize_pic_address): Use generic Mach-O code to legitimize.
18681         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
18682         if outputting a difference.
18683         (ix86_output_addr_diff_elt): Add Mach-O case.
18684         (ix86_expand_move): Similarly.
18685         (ix86_expand_call): Similarly.
18686         (current_machopic_label_num): New global.
18687         (machopic_output_stub): New function.
18688         (ix86_value_regno): New function.
18689         (ix86_function_value): Use it instead of VALUE_REGNO.
18690         (ix86_libcall_value): Ditto.
18691         * config/i386/unix.h (VALUE_REGNO): Remove.
18692
18693 2002-07-31  Graham Stott  <grahas@btinternet.com>
18694
18695         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
18696         hash for LABEL_REF's.
18697
18698 2002-07-31  Graham Stott  <grahams@btinternet.com>
18699
18700         * config/rs6000/rs6000.c (spe_init_builtins,
18701         altivec_init_builtins, rs6000_common_init_builtins):
18702         Replace ANSI with K&R function def.
18703
18704 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
18705
18706         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
18707         for CCFPmode.
18708
18709 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
18710
18711         * config/mips/crtn.asm: Don't use __mips16 to determine the
18712         return-address offset.  Define RA to a suitable temporary
18713         register for the return address.
18714
18715 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
18716
18717         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
18718         constraints to 'd'.
18719
18720 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
18721
18722         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
18723         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
18724         patch on 2002-07-29.)
18725         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
18726
18727 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18728
18729         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
18730         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
18731         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
18732         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
18733         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
18734         (ASM_GLOBALIZE_LABEL): Delete.
18735         (GLOBAL_ASM_OP): Define.
18736
18737         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
18738
18739         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
18740         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
18741
18742 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
18743
18744         * doc/extend.texi (Hints implementation): Document that GCC
18745         mostly ignores `register'.
18746
18747 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
18748
18749         * flags.h: Declare flag_finite_math_only.
18750         Use it in definition of HONOR_NANS and
18751         HONOR_INFINITIES.
18752         * c-common.c (cb_register_builtins): Emit
18753         __FINITE_MATH_ONLY__ when flag_finite_math_only
18754         is set.
18755         * combine.c (simplify_if_then_else): If
18756         flag_finite_math_only is set, a == b has a
18757         definite value.
18758         * toplev.c: Initialize flag_finite_math_only.
18759         (set_flags_fast_math): Set it on -ffast-math.
18760         (flag_fast_math_set_p): Test it.
18761         * doc/invoke.texi: Document -ffinite-math-only.
18762
18763 2002-07-30  Richard Henderson  <rth@redhat.com>
18764
18765         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
18766         (noce_process_if_block): Likewise.
18767
18768 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
18769
18770         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
18771         Bail out early if false_expr is NULL and we'd crash due to this.
18772         * genemit.c (gen_expand): Recognize return insns even if the return
18773         appears in a parallel.
18774         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
18775         * config/fp-bit.c: Likewise.
18776         * doc/tm.texi: Document it.
18777
18778 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
18779             Zack Weinberg  <zack@codesourcery.com>
18780
18781         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
18782         CODE_FOR_nothing.  Change switch to if.
18783         (rs6000_expand_binop_builtin): Same.
18784         (rs6000_expand_builtin): Expand builtin if target support enabled.
18785         (rs6000_init_builtins): Init builtin if target support enabled.
18786         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
18787
18788 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18789
18790         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
18791
18792 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
18793
18794         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
18795
18796 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
18797
18798         * sh.md (cond_delay_slot): New attribute.
18799         (cbranch delay): Use it for anulled-true case.
18800         (stuff_delay_slot): New pattern.
18801         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
18802         delay slot insn.
18803         (gen_far_branch): Emit stuff_delay_slot pattern.
18804
18805 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
18806
18807         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
18808
18809 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
18810
18811         * fold-const.c: Fix comment typos.
18812         * gcse.c: Likewise.
18813         * reload1.c: Likewise.
18814
18815 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
18816
18817         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
18818         for TARGET_SPE.
18819
18820 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
18821
18822         * c-pretty-print.h (pp_c_statement): Declare.
18823         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
18824         (pp_c_statement): Define.
18825
18826 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18827
18828         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
18829         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
18830         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
18831         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
18832         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
18833         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
18834
18835         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
18836         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
18837
18838 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
18839
18840         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
18841         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
18842         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
18843         (pp_c_expression): Update.
18844
18845 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18846
18847         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
18848         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
18849         * alpha/vms-ld.c (main): Likewise.
18850         * dsp16xx.c (double_reg_to_memory): Likewise.
18851         * mcore.c (mcore_expand_prolog): Likewise.
18852         * cppfiles.c (read_name_map): Likewise.
18853         * gensupport.c (process_rtx, identify_predicable_attribute,
18854         alter_test_for_insn): Likewise.
18855         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
18856
18857 2002-07-29  Roger Sayle  <roger@eyesopen.com>
18858
18859         * builtins.c (expand_builtin):  Change the default behavior to
18860         only issue an error if the builtin function doesn't have a
18861         fallback library call.  Remove several cases handled by the
18862         new default.
18863
18864 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
18865
18866         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
18867         floating point format of the target is IEEE.
18868         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
18869         format of the target is DEC.
18870
18871 2002-07-29  Richard Henderson  <rth@redhat.com>
18872
18873         * unroll.c (verify_addresses): Remove.
18874         (find_splittable_givs): Never split DEST_ADDR givs.
18875
18876 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
18877
18878         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
18879         is exhaustive.
18880         (Files): Improve documentation on generated source files.
18881
18882         * doc/extend.texi (Translation implementation): Document what
18883         diagnostics look like.
18884         (Identifiers implementation): Document that there's normally no
18885         limit on identifier names.
18886         (Integers implementation): Document two's complement.
18887         (Hints implementation): Document that GCC honors 'inline', mostly.
18888         (Preprocessing directives implementation): Document that GCC
18889         requires the current time.
18890
18891 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
18892
18893         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
18894         (pp_initializer): New macro.
18895         (pp_c_initializer): Declare.
18896         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
18897         (pp_c_initializer): Define.
18898         (pp_c_initializer_list): New function.
18899         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
18900         VECTOR_CST, CONSTRUCTOR.
18901         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
18902         IMAGPART_EXPR.
18903         (pp_c_cast_expression): Handle FLOAT_EXPR.
18904         (pp_c_assignment_expression): Handle INIT_EXPR.
18905         (pp_c_expression): Update.
18906
18907 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
18908
18909         * objc/objc-act.c (objc_init): Return immediately if filename
18910         is NULL.
18911
18912 2002-07-29  Eric Christopher  <echristo@redhat.com>
18913
18914         * config/mips/elf.h: Remove ecoff.h and gofast includes.
18915         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
18916         (SDB_DEBUGGING_INFO): Undefine.
18917         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
18918         (PUT_SDB_SIZE): Remove.
18919         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
18920         (STARTFILE_SPEC): Add isa3264 define.
18921         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
18922         * config/mips/ecoff.h: Remove. and here...
18923         * config/mips/iris3.h: and here...
18924         * config/mips/sni-svr4.h: and here...
18925         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
18926         Add assembler -mmdebug options for non-dwarf debugging.
18927         * config/mips/r3900.h: Remove debug info defines.
18928         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
18929         * config/mips/isa3264.h: Ditto.
18930         * config/mips/t-isa3264: Fix up for file removal and gofast configure
18931         change.
18932         * config/mips/t-elf: Ditto.
18933         * config/mips/t-ecoff: Ditto.
18934         * config/mips/t-r3900: Ditto.
18935         * config/mips/t-iris5-6: Ditto.
18936         * config/mips/t-isa3264: Ditto.
18937         * config/mips/t-linux: Remove.
18938         * config/mips/t-netbsd: Remove.
18939         * config/mips/t-mips: New file.
18940         * config/mips/t-gofast: Ditto.
18941         * config/mips/netbsd.h: Remove unnecessary undefines.
18942         * config/mips/linux.h: Remove #include of mips.h.
18943         * config.gcc: Add mips.h include for elf targets. Remove tm_file
18944         for ecoff. Add gofast configure option for mips.
18945
18946 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
18947
18948         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
18949         linker scripts use STARTUP directives consistently.
18950         * configure: Regenerate.
18951         * config.in: Regenerate.
18952         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
18953         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
18954         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
18955         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
18956         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
18957         will be the same.
18958
18959 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
18960
18961         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
18962
18963 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
18964
18965         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
18966
18967 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
18968
18969         * config/rs6000/rs6000.md: Move altivec patterns from here...
18970
18971         * config/rs6000/altivec.md: ...to here.
18972
18973 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
18974
18975         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
18976
18977 2002-07-29  Richard Henderson  <rth@redhat.com>
18978
18979         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
18980         set_mem_attributes and add BITPOS argument.  Subtract it from
18981         OFFSET when same is adjusted.
18982         (set_mem_attributes): New wrapper function.
18983         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
18984         remove offset adjustment hack.
18985         * expr.h (set_mem_attributes_minus_bitpos): Declare.
18986
18987 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
18988
18989         * Makefile.in (C_OBJS): Include c-pretty-print.o
18990         (c-pretty-print.o): Add depency rule.
18991         * pretty-print.h: Add more macros.
18992         * c-pretty-print.c: New file.
18993         * c-pretty-print.h: Likewise.
18994
18995 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
18996
18997         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
18998         constants to __ev64_s32__.
18999         (__internal_ev_mwhgsmian): Same.
19000         (__internal_ev_mwhgsmfan): Same.
19001         (__internal_ev_mwhgssfan): Same.
19002         (__internal_ev_mwhgumiaa): Same.
19003         (__internal_ev_mwhgsmiaa): Same.
19004         (__internal_ev_mwhgsmfaa): Same.
19005         (__internal_ev_mwhgssfaa): Same.
19006
19007 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
19008
19009         * varasm.c (assemble_variable): Narrow test for uninitialized
19010         without BSS target support.
19011
19012 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
19013
19014         * profile.c: Add file comment describing the overall algorithm and
19015         structures.
19016         (struct edge_info): Add comments.
19017         (struct bb_info): Add comments.
19018         * basic-block.h (EDGE_*): Add comments.
19019         * doc/gcov.texi (Gcov Data Files): Document bit flags.
19020
19021 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
19022
19023         * config/xtensa/elf.h, config/xtensa/linux.h
19024         (TARGET_OS_CPP_BUILTINS): Define.
19025         (CPP_PREDEFINES): Remove.
19026         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
19027         (CPP_SPEC): Remove.
19028
19029 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
19030
19031         * gensupport.c: Include hashtab.h.
19032         (insn_elision, condition_table, hash_c_test, cmp_c_test,
19033         maybe_eval_c_test): New routines and data structures to
19034         support insn elision.
19035         (init_md_reader): Read and initialize the condition_table.
19036         (read_md_rtx): Discard insn patterns whose C test is provably
19037         always false.
19038         * gensupport.h: Declare new functions and data structures.
19039
19040         * genconditions.c, dummy-conditions.c: New files.
19041         * Makefile.in: Build genconditions; run it to construct
19042         insn-conditions.c; build that and link it into most gen*
19043         programs.
19044         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
19045         (GEN): Delete, unused.
19046         (STAGESTUFF): Update.
19047
19048         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
19049         CODE_FOR_nothing for all elided patterns.
19050         (main): Tweaked to support this.
19051         * genflags.c (gen_proto): Emit a static inline generator
19052         function here for all elided patterns, which simply returns
19053         NULL_RTX.
19054         (gen_insn): Do not define HAVE_xxx for elided patterns.
19055         (main): Tweaked to support this.  No need to forward-declare
19056         struct rtx_def.
19057         * genrecog.c: Do not bother emitting the C test if it's known
19058         to be true at compile time.
19059
19060 2002-07-29  Mike Stump  <mrs@apple.com>
19061
19062         * config.gcc (target_gtfiles): Initialize, as otherwise cross
19063         compilers hosted on powerpc-apple-darwin6.0 won't even build.
19064
19065 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
19066
19067         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
19068         remove clobber of LR.
19069         (sibcall_insn, sibcall_value_insn): Update accordingly.
19070         (sibcall_epilogue): Remove debugging comment from assembler stream.
19071
19072 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
19073
19074         * pretty-print.h: Define more macros.
19075         * diagnostic.h (output_formatted_integer): Moved from...
19076         * diagnostic.c: ... here.
19077
19078 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19079
19080         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
19081
19082 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
19083
19084         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
19085         arguments.  Always use ".-symbol" as expression argument.
19086         * doc/tm.texi: Update to match.  Document requirement for
19087         ".size symbol, .-symbol" to be acceptable to assembler.
19088
19089         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
19090         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
19091         config/i386/freebsd-aout.h, config/i386/sco5.h,
19092         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
19093         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
19094
19095 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19096
19097         * Makefile.in (gengtype-lex.c): Fix error in last change.
19098
19099         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
19100         backslash.
19101
19102         * Makefile.in (vmsdbgout.o): Depend on function.h.
19103
19104         * vmsdbgout.c: Include function.h.
19105
19106 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
19107
19108         * prefix.c (update_path): Don't strip single `.' path components
19109         unless stripping a later `..' component.  Exit loop as soon as
19110         a valid path is found.
19111
19112 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19113
19114         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
19115         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
19116         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
19117         floating point unordered comparisons (e.g. __builtin_isgreater)
19118         as const, and leave the remaining GCC_BUILTINs unchanged.
19119
19120         * c-decl.c (builtin_function): No need to explicitly mark
19121         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
19122
19123 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19124
19125         * Makefile.in: rtlanal.o now depends upon real.h.
19126
19127         * flags.h [flag_signaling_nans]: New flag.
19128         [HONOR_SNANS]: New macro.
19129
19130         * toplev.c [flag_signaling_nans]: Initialize to false.
19131         (f_options): Add processing for "-fsignaling-nans".
19132         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
19133         (process_options): flag_signaling_nans implies flag_trapping_math.
19134
19135         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
19136         when -fsignaling-nans.  First step to implementing WG14's N965.
19137
19138         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
19139         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
19140         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
19141
19142         * simplify-rtx.c (simplify_relational_operation): Conditionalize
19143         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
19144
19145         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
19146         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
19147         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
19148         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
19149         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
19150
19151         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
19152
19153 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19154
19155         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
19156         * gengtype-lex.l (YY_USE_PROTOS): Undef.
19157         (YY_DECL): Define.
19158
19159 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19160
19161         * doc/invoke.texi: Document that both -fno-builtin-foo and
19162         -fno-builtin are supported by the g++ front-end.
19163
19164 2002-07-27  Stan Shebs  <shebs@apple.com>
19165
19166         * configure.in: Rename config_gtfiles to target_gtfiles.
19167         * configure: Regenerate.
19168         * doc/gty.texi: Update reference.
19169         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
19170         instead of appending to it.
19171
19172 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
19173
19174         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
19175         vectors are split into two registers.
19176         (function_arg): Same.
19177
19178 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
19179
19180         * pa.md (extv): Check predicates before emitting extv_32.
19181
19182 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
19183
19184         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
19185         (rs6000_traceback): New var.
19186         (rs6000_override_options): Set rs6000_traceback.
19187         (rs6000_output_function_epilogue): Implement traceback options.
19188         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
19189         (rs6000_traceback_name): Declare.
19190
19191         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
19192         label reference when NO_PROFILE_COUNTERS.
19193
19194 2002-07-26  Jason Merrill  <jason@redhat.com>
19195
19196         * function.c (assign_parms): Handle frontend-directed pass by
19197         invisible reference.
19198
19199 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19200
19201         * doc/cppopts.texi: Update.
19202
19203 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19204
19205         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
19206         warnings on assertions.
19207
19208 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19209
19210         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
19211         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
19212         RID_COMPL): Remove.
19213         * c-parse.in (rid_to_yy): Similarly.
19214
19215 2002-07-26  Jason Merrill  <jason@redhat.com>
19216
19217         * c-dump.c: Resurrect.
19218         * tree-dump.c: Move C-specific stuff to c-dump.c.
19219         * c-common.h: Declare c_dump_tree.
19220         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
19221         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
19222         (c-dump.o): New rule.
19223
19224 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
19225
19226         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
19227         PowerPC64.  Replace "T" and "S" constraints with "n" when the
19228         predicate will do.  Formatting fixes.
19229         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
19230         as for extzvsi_internal1.
19231
19232 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19233
19234         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
19235         DERIV_END_LABEL_FMT): Remove.
19236         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
19237
19238 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19239
19240         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
19241         Remove.
19242
19243 2002-07-25  Stan Shebs  <shebs@apple.com>
19244
19245         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
19246         local var dwarfp.
19247         (output_compiler_stub): Remove unused locals.
19248         (output_call): Always initialize line number.
19249
19250 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
19251
19252         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
19253         * sh.md (truncdiqi2, movqi_media): Likewise.
19254
19255 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19256
19257         * gcse.c (obstack_chunk_alloc): Remove.
19258         (gcse_alloc): Fix to count allocated bytes.
19259         * collect2.c (SYMBOL__MAIN): Remove.
19260
19261 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19262
19263         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
19264         HAVE_TARGET_EXECUTABLE_SUFFIX.
19265
19266 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
19267
19268         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
19269         SIZE, EXPR and OFFSET.
19270
19271 2002-07-25  Richard Henderson  <rth@redhat.com>
19272
19273         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
19274         in ARRAY_REF of DECL_P case.
19275
19276 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
19277
19278         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
19279         description.  Document -mips32, -mips64, and the associated -march
19280         values.  Describe the "mipsN" arguments to -march.  Say that the
19281         -mipsN options are equivalent to -march.  Reword the description
19282         of default type sizes.
19283         * toplev.h (target_flags_explicit): Declare.
19284         * toplev.c (target_flags_explicit): New var.
19285         (set_target_switch): Update target_flags_explicit.
19286         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
19287         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
19288         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
19289         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
19290         * config/mips/mips.h (mips_cpu_info): New struct.
19291         (mips_cpu_string, mips_explicit_type_size_string): Remove.
19292         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
19293         (MIPS_CPP_SET_PROCESSOR): New macro.
19294         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
19295         Define _MIPS_ARCH and _MIPS_TUNE.
19296         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
19297         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
19298         MIPS_ISA_DEFAULT were already defined.
19299         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
19300         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
19301         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
19302         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
19303         (ABI_GAS_ASM_SPEC): Remove.
19304         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
19305         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
19306         Invoke %(asm_abi_default_spec) if no ABI was specified.
19307         (CC1_SPEC): Remove ISA -> register-size rules.
19308         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
19309         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
19310         (mips_cpu_string, mips_explicit_type_size_string): Remove.
19311         (mips_cpu_info_table): New array.
19312         (mips_set_architecture, mips_set_tune): New fns.
19313         (override_options): Rework to make -mipsN equivalent to -march.
19314         Detect more erroneous cases, including those removed from CC1_SPEC.
19315         Don't change the ABI based on architecture, or vice versa.
19316         Unify logic with GAS.
19317         (mips_asm_file_start): Get architecture name from mips_arch_info.
19318         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
19319         (mips_parse_cpu): Take the name of the option as argument.  Handle
19320         'from-abi'.  Raise an error if the option is wrong.
19321         (mips_cpu_info_from_isa): New fn.
19322
19323 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
19324
19325         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
19326         (tablejump_mips162): Likewise.
19327
19328 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
19329
19330         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
19331         int_mode_for_mode.
19332
19333 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
19334
19335         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
19336         complaining.
19337         * c-common.h (c_sizeof): Adjust definition.
19338         (c_alignof): Likewise.
19339         * c-tree.h (c_sizeof_nowarn): Now macro.
19340         * c-typeck.c (c_sizeof_nowarn): Remove definition.
19341
19342 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19343
19344         * c-decl.c (c_decode_option): No need to handle switches
19345         cpplib handles.
19346
19347 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
19348
19349         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
19350         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
19351         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
19352         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
19353
19354         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
19355         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
19356         config/cris/aout.h, config/i386/freebsd-aout.h,
19357         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
19358         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
19359         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
19360         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
19361         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
19362         config/xtensa/elf.h, config/xtensa/linux.h:
19363         Use the new macros.
19364         Where possible, remove redundant definitions of SIZE_ASM_OP,
19365         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
19366
19367 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
19368
19369         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
19370         TARGET_ISEL, and TARGET_FPRS.
19371
19372         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
19373         -mabi=spe, -mabi=no-spe, and -misel=.
19374
19375         * config/rs6000/rs6000-protos.h: Add output_isel.
19376         Move vrsave_operation prototype here.
19377
19378         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
19379         (smaxsi3): Same.
19380         (uminsi3): Same.
19381         (umaxsi3): Same.
19382         (abssi2_nopower): Disallow when TARGET_ISEL.
19383         (*ne0): Same.
19384         (negsf2): Change to expand and rename old pattern to *negsf2.
19385         (abssf2): Change to expand and rename old pattern to *abssf2.
19386
19387         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
19388         fixunssfsi2.
19389
19390         Change patterns that check for TARGET_HARD_FLOAT or
19391         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
19392
19393         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
19394         rs6000_isel, rs6000_fprs, rs6000_isel_string.
19395         (rs6000_override_options): Add 8540 case to
19396         processor_target_table.
19397         Set rs6000_isel for the 8540.
19398         Call rs6000_parse_isel_option.
19399         (enable_mask_for_builtins): New.
19400         (rs6000_parse_isel_option): New.
19401         (rs6000_parse_abi_options): Add spe and no-spe.
19402         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
19403         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
19404         for TARGET_HARD_FLOAT.
19405         Add case for SPE_VECTOR_MODE.
19406         (rs6000_legitimize_reload_address): Handle SPE vector modes.
19407         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
19408         vector modes.
19409         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
19410         (rs6000_emit_move): Check for TARGET_FPRS.
19411         Add cases for SPE vector modes.
19412         (function_arg_boundary): Return 64 for SPE vector modes.
19413         (function_arg_advance): Check for TARGET_FPRS and
19414         Handle SPE vectors.
19415         (function_arg): Same.
19416         (setup_incoming_varargs): Check for TARGET_FPRS.
19417         (rs6000_va_arg): Same.
19418         (struct builtin_description): Un-constify mask field.  Move up in
19419         file.
19420         (bdesc_2arg): Un-constify and add SPE builtins.
19421         (bdesc_1arg): Same.
19422         (bdesc_spe_predicates): New.
19423         (bdesc_spe_evsel): New.
19424         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
19425         (rs6000_expand_binop_builtin): Same.
19426         (bdesc_2arg_spe): New.
19427         (spe_expand_builtin): New.
19428         (spe_expand_predicate_builtin): New.
19429         (spe_expand_evsel_builtin): New.
19430         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
19431         (rs6000_init_builtins): Initialize SPE builtins.  Call
19432         rs6000_common_init_builtins.
19433         (altivec_init_builtins): Move all non-altivec builtin code to...
19434         (rs6000_common_init_builtins): ...here.  New function.
19435         (branch_positive_comparison_operator): Allow NE code for SPE.
19436         (ccr_bit): Return correct ccr bit for SPE fp.
19437         (print_operand): Emit crnor in 'D' case for SPE.
19438         New case 't'.
19439         Add SPE code for 'y' case.
19440         (rs6000_generate_compare): Generate rtl for SPE fp.
19441         (output_cbranch): Handle SPE hard floats.
19442         (rs6000_emit_cmove): Handle isel.
19443         (rs6000_emit_int_cmove): New.
19444         (output_isel): New.
19445         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
19446         64-bits for SPE.
19447         (debug_stack_info): Add SPE info.
19448         (gen_frame_mem_offset): New.
19449         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
19450         Change mode of frame pointer, when saving it, to Pmode.
19451         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
19452         Misc cleanups and use gen_frame_mem_offset when appropriate.
19453
19454         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
19455         (TARGET_SPE_ABI): New.
19456         (TARGET_SPE): New.
19457         (TARGET_ISEL): New.
19458         (TARGET_FPRS): New.
19459         (FIXED_SCRATCH): New.
19460         (RTX_COSTS): Add PROCESSOR_PPC8540.
19461         (ASM_CPU_SPEC): Add case for 8540.
19462         (TARGET_OPTIONS): Add isel= case.
19463         (rs6000_spe_abi): New.
19464         (rs6000_isel): New.
19465         (rs6000_fprs): New.
19466         (rs6000_isel_string): New.
19467         (UNITS_PER_SPE_WORD): New.
19468         (LOCAL_ALIGNMENT): Adjust for SPE.
19469         (HARD_REGNO_MODE_OK): Same.
19470         (DATA_ALIGNMENT): Same.
19471         (MEMBER_TYPE_FORCES_BLK): New.
19472         (FIRST_PSEUDO_REGISTER): Set to 113.
19473         (FIXED_REGISTERS): Add SPE registers.
19474         (reg_class): Same.
19475         (REG_CLASS_NAMES): Same.
19476         (REG_CLASS_CONTENTS): Same.
19477         (REGNO_REG_CLASS): Same.
19478         (REGISTER_NAMES): Same.
19479         (DEBUG_REGISTER_NAMES): Same.
19480         (ADDITIONAL_REGISTER_NAMES): Same.
19481         (CALL_USED_REGISTERS): Same.
19482         (CALL_REALLY_USED_REGISTERS): Same.
19483         (SPE_ACC_REGNO): New.
19484         (SPEFSCR_REGNO): New.
19485         (SPE_SIMD_REGNO_P): New.
19486         (HARD_REGNO_NREGS): Adjust for SPE.
19487         (VECTOR_MODE_SUPPORTED_P): Same.
19488         (REGNO_REG_CLASS): Same.
19489         (FUNCTION_VALUE): Same.
19490         (LIBCALL_VALUE): Same.
19491         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
19492         (SPE_VECTOR_MODE): New.
19493         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
19494         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
19495         (rs6000_stack): Add spe_gp_size, spe_padding_size,
19496         spe_gp_save_offset.
19497         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
19498         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
19499         (SPE_CONST_OFFSET_OK): New.
19500         (rs6000_builtins): Add SPE builtins.
19501
19502         * testsuite/gcc.dg/ppc-spe.c: New.
19503
19504         * config/rs6000/eabispe.h: New.
19505
19506         * config/rs6000/spe.h: New.
19507
19508         * config/rs600/spe.md: New.
19509
19510         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
19511         __SIMD__ for TARGET_SPE.
19512
19513         * config.gcc: Add powerpc-*-eabispe* case.
19514         Add spe.h to user headers for powerpc.
19515
19516 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
19517
19518         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
19519         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19520         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
19521
19522 2002-07-24  Richard Henderson  <rth@redhat.com>
19523
19524         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
19525         form when not optimizing.
19526
19527 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
19528
19529         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
19530         thread_pointer_rtx as unchanging.
19531
19532 2002-07-24  Michael Matz  <matz@suse.de>
19533
19534         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
19535         (free_reg): Use it.
19536
19537 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
19538
19539         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
19540         pattern.
19541         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
19542         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
19543
19544 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
19545
19546         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
19547         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19548         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
19549
19550 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
19551
19552         * toplev.c (rest_of_compilation): Dump loops before clobbering
19553         the structure.
19554
19555 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
19556
19557         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
19558
19559 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
19560
19561         PR optimization/7291
19562         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
19563         problem on x86_64.
19564
19565 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
19566
19567         * pretty-print.h: Add macros from cp/error.c
19568
19569 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
19570
19571         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
19572         (mask64_2_operand): Declare.
19573         (build_mask64_2_operands): Declare.
19574         (and64_2_operand): Declare.
19575         (extract_MB): Declare.
19576         (extract_ME): Declare.
19577         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
19578         CONST_DOUBLE code.
19579         (mask_operand_wrap): New insn predicate.
19580         (mask64_2_operand): Likewise.
19581         (and64_2_operand): Likewise.
19582         (build_mask64_2_operands): New function.
19583         (extract_MB): New function.
19584         (extract_ME): New function.
19585         (print_operand <case m,M>): Use extract_MB and extract_ME.
19586         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
19587         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
19588         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
19589         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
19590         * config/rs6000/rs6000.md (andsi3_internal3): New
19591         (andsi3_internal3+1): Enable split for powerpc64.
19592         (andsi3_internal3+2): New split.
19593         (andsi3_internal4): Renamed old andsi3_internal3.
19594         (andsi3_internal5): New.
19595         (andsi3_internal5+1): Enable split for powerpc64.
19596         (andsi3_internal5+2): New split.
19597         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
19598         (anddi3): Handle 't' constraint.
19599         (anddi3+1): New split.
19600         (anddi3_internal2): Handle 't' constraint.
19601         (anddi3_internal2+1): New split.
19602         (anddi3_internal3): Handle 't' constraint.
19603         (anddi3_internal3+1): New split.
19604
19605 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
19606
19607         * config/rs6000/rs6000.md: Remove scratch reg on insns using
19608         addze and similar (plus (comparison r1 r2) r3) insns.  Add
19609         missing scratch reg in one case.  Formatting fixes.
19610
19611 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
19612
19613         * cppexp.c (parse_defined): Mark macro used.
19614         * cpphash.h (struct cpp_macro): New member "used".
19615         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
19616         (struct cpp_reader): New member.
19617         * cppinit.c (cpp_finish_options): Set first_unused_line.
19618         (cpp_finish): Warn of unused macros if requested.
19619         (OPT_TABLE): New switches.
19620         (cpp_handle_option): Handle them.
19621         * cpplib.c (do_undef): Warn if macro unused.
19622         (do_ifdef, do_ifndef): Mark macro used.
19623         * cpplib.h (struct cpp_options): New member.
19624         * cppmacro.c (_cpp_warn_if_unused_macro): New.
19625         (enter_macro_context): Mark macro used.
19626         (_cpp_create_definition): Mark macro unused; warn if unused
19627         when redefined.
19628         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
19629         Mark macros used.
19630         * doc/cppopts.texi: Update.
19631
19632 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
19633
19634         * dwarf2out.c (SECTION_ASM_OP,
19635         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
19636         * system.h (SECTION_ASM_OP): Poison.
19637         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
19638         * config/alpha/alpha-interix.h, config/mips/linux.h
19639         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
19640         * config/mmix/mmix-protos.h, config/mmix/mmix.c
19641         (mmix_asm_output_define_label_difference_symbol): Remove.
19642         * config/mmix/mmix.h
19643         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
19644         * doc/tm.texi: Remove documentation.
19645
19646 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
19647
19648         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
19649         (constrain_operands): Likewise.
19650         * regclass.c (record_reg_classes): Likewise.
19651         * reload.c (find_reloads): Likewise.
19652         * doc/md.texi: Likewise.
19653
19654         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
19655         * simplify-rtx.c (simplify_subreg): When converting to a non-int
19656         mode, try to convert to an integer mode of matching size first.
19657
19658         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
19659         from individual subregs, check that each subreg has been generated
19660         sucessfully.
19661
19662 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
19663
19664         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
19665         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
19666         FOR_EACH_BB_IN_SBITMAP): Remove.
19667         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
19668         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
19669         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
19670         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
19671         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
19672         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
19673
19674 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
19675
19676         * pretty-print.h: New file.
19677
19678 2002-07-23      Paul Koning     <pkoning@equallogic.com>
19679
19680         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
19681         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
19682         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
19683         (TARGET_G_FLOAT): Default to 0 if not defined.
19684         (ieeetoe): New, common routine to convert target format floats
19685         to internal form.
19686         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
19687         vs. others.
19688         (e113toe): Change to use ieeetoe.
19689
19690 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
19691
19692         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
19693         IBM.
19694         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
19695         (e64toe): Remove special cases for DEC and IBM. Remove support for
19696         ARM_EXTENDED_IEEE_FORMAT.
19697         (e24toe): Remove special cases for DEC.
19698         (significand_size): Simplify. Indent.
19699         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
19700         (etoieee, toieee): New.
19701         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
19702         etoieee and toieee for IEEE arithmetic.
19703
19704 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
19705
19706         * doc/extend.texi: Say ISO C90, not ISO C89.
19707         * doc/invoke.texi: Likewise.
19708         * doc/standards.texi: Likewise.
19709
19710 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
19711
19712         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
19713         Fix permutation of conversion and plus/mult.
19714         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
19715         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
19716         (expand_builtin_strncpy) Ditto.
19717         (expand_builtin_memset) Ditto.
19718
19719 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
19720
19721         Fix PR/7363:
19722         * c-common.c (c_sizeof_or_alignof_type): New function.
19723         (c_alignof): Remove definition.
19724         * c-common.h (c_sizeof, c_alignof): Define as macros.
19725         (c_sizeof_or_alignof_type): Declare.
19726         (my_friendly_assert): Moved from cp/cp-tree.h
19727         * c-typeck.c (c_sizeof): Remove definition.
19728
19729 2002-07-23  Jan Hubicka  <jh@suse.cz>
19730
19731         * gcse.c (try_replace_reg): Use num_changes_pending.
19732         * recog.c (num_changes_pending): New function.
19733         (validate_replace_src): Use validate_repalce_src_group.
19734         (validate_replace_src_group): New.
19735         * recog.h (validate_repalce_src_group): New.
19736         (num_changes_pending): Likewise.
19737
19738 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
19739
19740         * calls.c (emit_library_call_value_1): If
19741         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
19742         libcall, const call nor pure call.
19743
19744 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
19745
19746         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
19747
19748 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
19749
19750         * vmsdbgout.c (SECTION_ASM_OP): Remove.
19751
19752 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
19753
19754         * config/i386/i386.c (AT_BP): Remove.
19755
19756 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
19757
19758         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
19759         Default definition.
19760         * gcse.c: Don't define obstack_chunk_free.
19761         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
19762         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
19763         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
19764         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
19765         Don't define obstack macros.
19766
19767 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
19768
19769         PR target/6744
19770         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
19771         ASM_OPERANDS instructions.
19772
19773 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
19774
19775         PR target/7361
19776         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
19777         constant addresses only on 68HC12.
19778
19779 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
19780
19781         * cppfiles.c (stack_include_file): Correct test of whether
19782         a dependency should be output.
19783
19784 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
19785
19786         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
19787
19788 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
19789
19790         * arm.md (movqi): If optimizing and we can create pseudos, use
19791         a ZERO_EXTEND to load from memory, then copy the result into the
19792         target.
19793         (movhi): Likewise, but only for ARMv4.
19794
19795 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
19796
19797         * ssa-ccp.c (PHI_PARMS): Remove.
19798
19799 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
19800
19801         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
19802         on big-endian targets.
19803
19804 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19805
19806         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
19807         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
19808         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
19809         New formatting macros.
19810
19811         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
19812
19813 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
19814
19815         * rtlanal.c (subreg_regno_offset): Return correct offset for
19816         big endian paradoxical subregs.
19817
19818         * optabs.c (expand_vector_unop): Don't expand using sub_optab
19819         if we got the wrong mode.
19820
19821         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
19822         * genrecog.c (write_switch, write_cond): Use it.
19823         * genemit.c (gen_exp): Likewise.
19824
19825 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
19826
19827         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
19828
19829 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
19830
19831         * c-decl.c (build_compound_literal): Defer compound literal decls
19832         until until file end to emit them only if they are actually used.
19833
19834 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19835
19836         * ra-build.c (check_conflict_numbers): Hide unused function.
19837         (livethrough_conflicts_bb): Avoid automatic aggregate
19838         initialization.
19839         (parts_to_webs_1): Avoid `U' integer constant modifier.
19840         (conflicts_between_webs): Wrap a variable in the macro controlling
19841         its usage.
19842         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
19843         (dump_igraph, dump_graph_cost): Avoid string concatenation
19844         (dump_static_insn_cost): Avoid automatic aggregate
19845         initialization.
19846         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
19847         initialization.
19848         (dump_cost): Avoid string concatenation
19849
19850 2002-07-21  Richard Henderson  <rth@redhat.com>
19851
19852         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
19853         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
19854
19855 2002-07-21  Richard Henderson  <rth@redhat.com>
19856
19857         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
19858         that are not unrolled completely.
19859
19860 2002-07-21  Richard Henderson  <rth@redhat.com>
19861
19862         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
19863         * loop.c (strength_reduce): Update.
19864         * toplev.c (rest_of_compilation): Do unrolling in the first
19865         loop pass, not the second.
19866
19867 2002-07-21  Richard Henderson  <rth@redhat.com>
19868
19869         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
19870         when flag_argument_noalias == 2.
19871         * alias.c (nonoverlapping_memrefs_p): Handle that.
19872         * print-rtl.c (print_mem_expr): Likewise.
19873
19874 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
19875
19876         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
19877         instead of __negdi2 directly.
19878
19879 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
19880
19881         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
19882         * function.c (SYMBOL__MAIN): Remove definition.
19883         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
19884         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
19885         * profile.c (GCOV_INDEX_TO_BB): Remove.
19886         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
19887         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
19888
19889 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
19890
19891         * c-lex.c (GET_ENVIRONMENT): Remove.
19892         * collect2.c (GET_ENV_PATH_LIST): Remove.
19893         (prefix_from_env): Use GET_ENVIRONMENT.
19894         * cppinit.c (GET_ENV_PATH_LIST): Remove.
19895         (init_standard_includes): Use GET_ENVIRONMENT.
19896         * defaults.h (GET_ENVIRONMENT): Define here if not already.
19897         * gcc.c (GET_ENV_PATH_LIST): Remove.
19898         (make_relative_prefix, process_command): Update.
19899         * protoize.c (GET_ENV_PATH_LIST): Remove.
19900         (do_processing): Update.
19901
19902 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
19903
19904         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
19905         (grokdeclarator): Likewise.
19906         * c-format.c (C_STD_NAME): Likewise.
19907         * c-lex.c (interpret_integer): Likewise.
19908         * c-typeck.c (build_array_ref): Likewise.
19909         * cpplex.c (_cpp_lex_direct): Likewise.
19910         * toplev.c (documented_lang_options): Likewise.
19911
19912 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
19913
19914         * c-format.c (T99_I, T99_UI): Remove.
19915
19916 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
19917
19918         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
19919
19920 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
19921
19922         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
19923         do_local_cprop.
19924
19925 2002-07-21  Andreas Jaeger  <aj@suse.de>
19926
19927         * reload1.c (fixup_abnormal_edges): Remove unused variable.
19928
19929 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
19930
19931         Improvements for the ifcvt pass from Michael Meissner, with patches
19932         by Richard Sandiford <rsandifo@redhat.com>
19933         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
19934         * ifcvt.c (cond_exec_changed_p): New static variable.
19935         (last_active_insn): New function, renamed from last_active_insn_p
19936         and changed to return the last active insn in a basic block. All
19937         callers updated.
19938         (block_fallthru): New function.
19939         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
19940         IFCVT_MODIFY_INSN.  All callers updated.
19941         Return false if START or END are NULL.
19942         Handle case where we're processing an insn that is already
19943         conditional.
19944
19945         (noce_process_if_block): CE_INFO argument rather than
19946         multiple args containing the involved basic blocks.  All callers
19947         changed.
19948         (process_if_block, merge_if_block, find_if_block,
19949         cond_exec_process_if_block): Likewise.
19950
19951         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
19952         changed.
19953         Use new function last_active_insn to simplify some code.
19954         New code to handle multiple tests.
19955         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
19956         cond_exec_changed_p to TRUE.
19957
19958         (process_if_block): New code to handle multiple tests.
19959         (merge_if_block): Likewise.
19960         (find_if_header): New arg PASS.  Changed to return the currently
19961         processed basic block or NULL instead of true/false. All callers
19962         changed.
19963         Call IFCVT_INIT_EXTRA_FIELDS.
19964         (block_jumps_and_fallthru_p): New function.
19965         (find_if_block): Discover opportunities to convert multiple tests.
19966         Add additional debugging output.
19967         Update the ce_info structure before returning.
19968
19969         (if_convert): Run multiple passes of if-conversion.
19970         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
19971         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
19972         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
19973         these macros.
19974
19975 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
19976
19977         * gcse.c: Include cselib.h
19978         (constptop_register): Break out from ...
19979         (cprop_insn): ... here; kill basic_block argument.
19980         (do_local_cprop, local_cprop_pass): New functions.
19981         (one_cprop_pass): Call local_cprop_pass.
19982
19983 2002-07-20  Roger Sayle  <roger@eyesopen.com>
19984
19985         * simplify-rtx.c (simplify_relational_operation): Optimize
19986         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
19987
19988 2002-07-20  Michae Matz  <matz@suse.de>
19989
19990         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
19991
19992 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
19993
19994         * cppexp.c (struct op): Add token pointer.
19995         (check_promotion, CHECK_PROMOTION): New.
19996         (optab): Update.
19997         (_cpp_parse_expr): Update, use token pointer of struct op.
19998         (reduce): Warn about change of sign owing to promotion.
19999         * cppinit.c (cpp_handle_option): New warning if -Wall.
20000         * cpplib.h (struct cpp_options): New member.
20001
20002 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
20003
20004         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
20005         fpu list.  Separate Power4 compare and delayed_compare.  Correct
20006         Power4 fpcompare.
20007         (fix_truncdfsi2_internal): Restore FPR preference.
20008         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
20009         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
20010
20011 2002-07-19  Momchil Velikov <velco@fadata.bg>
20012
20013         * reload1.c (reload_as_needed): Duplicate oldpat.
20014
20015 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
20016
20017         PR optimization/7130
20018         * loop.h (struct loop_info): Add "preconditioned".
20019         * unroll.c (unroll_loop): Set it.
20020         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
20021
20022 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
20023
20024         * rtl.def (CODE_LABEL): Remove slot 8.
20025         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
20026         (LABEL_ALTERNATE_NAME): Delete.
20027         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
20028         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
20029
20030         * final.c (output_alternate_entry_point): New.
20031         (final_scan_insn): Use it instead of
20032         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
20033         of a case label being an alternate entry point.
20034
20035         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
20036         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
20037         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
20038         (field deleted).
20039         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
20040
20041         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
20042         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
20043         * doc/tm.texi: Delete documentation of
20044         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
20045
20046 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20047
20048         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
20049         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
20050         (LINK_SPEC): Define.
20051         (STARTFILE_SPEC): Define.
20052         (ENDFILE_SPEC): Define.
20053
20054         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
20055         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
20056
20057         * config/mips/iris6-o32-gas.h: New file.
20058         * config.gcc (mips-sgi-irix6*o32): Use it.
20059
20060         * config/mips/t-iris5-gas: New file.
20061         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
20062
20063 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
20064
20065         * cppexp.c (ALWAYS_EVAL): Remove.
20066         (optab, reduce): Always evaluate.
20067         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
20068         only if not skipping evaluation.
20069
20070 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20071
20072         * config/avr/avr.c (debug_hard_reg_set): Remove.
20073
20074 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
20075
20076         * gcc.c (cpp_options): Include "%1" (cc1_spec).
20077
20078 2002-07-19  Richard Henderson  <rth@redhat.com>
20079
20080         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
20081
20082 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
20083
20084         * prefix.c (update_path): Don't zap single `.' path components
20085         unless followed by another `.' and fix typo last patch.
20086
20087 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
20088
20089         * cppexp.c (cpp_num_mul): Remove unused parameter.
20090         (UNARY, BINARY, OTHER, binary_handler): Remove.
20091         (ALWAYS_EVAL): New.
20092         (optab): Update.
20093         (reduce): Refactor to a large switch, don't use a function
20094         pointer.
20095
20096 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
20097
20098         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
20099
20100 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
20101
20102         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
20103         (sh_expand_binop_v2sf): Likewise.
20104         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
20105         (int_gpr_dest, trunc_hi_operand): New functions.
20106         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
20107         trunc_hi_operand.
20108         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
20109         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
20110         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
20111         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
20112         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
20113         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
20114         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
20115         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
20116         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
20117         (movsf_ie+1): Likewise.
20118         (loaddi_trunc): Use int_gpr_dest predicate.
20119         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
20120         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
20121         (casesi_worker_0+[12], casesi_worker): Likewise.
20122         (shcompact_preserve_incoming_args): Likewise.
20123         (mov_nop): Use any_register_operand predicate.
20124         (mperm_w0): Use trunc_hi_operand predicate.
20125
20126 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20127
20128         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
20129         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
20130         numbering.
20131
20132 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20133
20134         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
20135
20136 2002-07-18  Richard Henderson  <rth@redhat.com>
20137
20138         PR optimization/7147
20139         * ifcvt.c (noce_get_condition): Make certain that the condition
20140         is valid at JUMP.
20141
20142 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
20143
20144         * sh.c (barrier_align, push): Shut up compiler warnings.
20145         (initial_elimination_offset,sh_media_init_builtins): Likewise.
20146         (reg_no_subreg_operand): Delete.
20147
20148 2002-07-17  Bo Thorsen  <bo@suse.de>
20149
20150         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
20151         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
20152         (STARTFILE_SPEC): Remove hardcoded library paths.
20153         (ENDFILE_SPEC): Likewise.
20154
20155 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
20156
20157         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
20158
20159         * gcse.c (try_replace_reg): Do not return false positives.
20160
20161 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
20162
20163         * prefix.c: (update_path): Strip ".." components when prior dir
20164         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
20165
20166         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
20167         (ASM_OUTPUT_REG_POP): Likewise.
20168
20169 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
20170
20171         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
20172         adjustments to first_reg for profiling case.
20173         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
20174         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
20175         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
20176         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
20177         (ASM_OUTPUT_REG_POP): Define.
20178         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
20179         (ASM_OUTPUT_REG_POP): Undef.
20180
20181 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
20182
20183         * cpplib.c (do_sccs): Handle #sccs on all systems.
20184         * system.h (SCCS_DIRECTIVE): Poison.
20185         * config/darwin.h, config/freebsd.h, config/netbsd.h,
20186         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
20187         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
20188         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
20189         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
20190         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
20191         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
20192         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
20193         Remove all references to SCCS_DIRECTIVE.
20194         * doc/cpp.texi, doc/tm.texi: Update.
20195
20196 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
20197
20198         * regrename.c (maybe_mode_change): New function.
20199         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
20200
20201 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
20202
20203         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
20204         suppress addition when either ct or cf are zero.
20205
20206 2002-07-17  Eric Botcazou <ebotcazou@multimania.com>
20207             Glen Nakamura <glen@imodulo.com>
20208
20209         PR optimization/6713
20210         * loop.c (loop_givs_rescan): Explicitly delete the insn that
20211         sets a non-replaceable giv after issuing the new one.
20212
20213 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
20214
20215         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
20216         eval_token): Clarify and correct use of "bool" variables.
20217         * cpplib.h (struct cpp_options): Similarly.
20218         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
20219         * cpptrad.c (recursive_macro): Similarly.
20220
20221 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
20222
20223         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
20224         SHmedia code.
20225
20226         * sh.md (cmpgtudi_media): Remove spurious @.
20227
20228         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
20229         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
20230
20231         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
20232         * sh-protos.h (sh_initialize_trampoline): Declare.
20233         * sh.c (sh_initialize_trampoline): New function.
20234         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
20235         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
20236         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
20237         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
20238         * sh.md (initialize_trampoline, double_shori): New patterns.
20239         (initialize_trampoline_compact): Likewise.
20240         (shmedia32_initialize_trampoline_big): Remove.
20241         (shmedia32_initialize_trampoline_little): Likewise.
20242
20243         * sh-protos.h (binary_float_operator): Remove declaration.
20244         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
20245         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
20246         (unary_float_operator, sh_expand_unop_v2sf): New functions.
20247         (sh_expand_binop_v2sf): Likewise.
20248         (zero_vec_operand): Delete.
20249         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
20250         all non-shared ones.
20251         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
20252         Enable nsb and byterev.
20253         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
20254         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
20255         in general regs.
20256         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
20257         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
20258         immediate operands.
20259         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
20260         Add DF_HI_REGS.
20261         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
20262         lowpart fp regs - only for big endian for now.
20263         (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
20264         when FPU is in use.
20265         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
20266         (LOAD_EXTEND_OP): NIL for SImode.
20267         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
20268         general and fp registers is 4.
20269         PREDICATE_CODES: Amend binary_float_operator entry.
20270         Remove zero_vec_operand.  Add unary_float_operator.
20271         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
20272         subreg SET_DEST.
20273         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
20274         (truncdiqi2): Do sign extension.
20275         (movsi_media, movdi_media): Allow to use r63 to an fp register.
20276         (movdf_media, movsf_media): Likewise.
20277         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
20278         Collapse to one define_insn_and_split.  Allow immediate sources.
20279         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
20280         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
20281         (movv4sf): Allow immediate sources.
20282         (movsf_media_nofpu+1): Don't split moves to FP registers.
20283         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
20284         (movv8qi_i+3): Check against CONST0_RTX.
20285         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
20286         for input and output operands.  Fix argument 3 to gen_mextr_rl.
20287         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
20288         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
20289         (mshf0_w, fipr, ftrv): Likewise.
20290         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
20291
20292 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
20293
20294         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
20295         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
20296         * arm.c: Similarly.
20297
20298 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
20299
20300         * config/mips/mips-protos.h (mips_sign_extend): Declare.
20301         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
20302         (TARGET_SWITCHES): Remove debugh.
20303         (ISA_HAS_TRUNC_W): New macro.
20304         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
20305         (PREDICATE_CODES): Remove se_nonimmediate_operand.
20306         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
20307         any SImode move_operand.
20308         (se_nonimmediate_operand): Remove.
20309         (mips_sign_extend): New.
20310         (mips_move_2words): Use it for sign-extended source operands.
20311         (override_options): Allow integers to be put into single FPRs.
20312         (mips_secondary_reload_class): Handle integers in float registers.
20313         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
20314         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
20315         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
20316         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
20317         (fix_truncdfdi2): Provide only a single alternative, in which the
20318         integer is in a float register.  Depend on TARGET_FLOAT64 rather
20319         than TARGET_64BIT.
20320         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
20321         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
20322         (movdi_internal2): Don't allow the source operand to be sign-extended.
20323         Add alternatives for float registers.
20324         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
20325         allows sign-extension.
20326         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
20327         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
20328         float registers.  Remove TARGET_DEBUG_H_MODE test.
20329         (movhi_internal1): Rename to movhi_internal.  Don't check
20330         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
20331         (movqi_internal1): Rename to movqi_internal and remove
20332         TARGET_DEBUG_H_MODE dependency.
20333         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
20334
20335 2002-07-16  Jim Wilson  <wilson@redhat.com>
20336
20337         * toplev.c (lang_dependent_init): Create function context for
20338         init_expr_once.
20339
20340 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
20341
20342         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
20343         --gc-sections if -r.
20344         * config/cris/cris.h: Ditto.
20345
20346 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
20347
20348         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
20349         the comparison directly gives a mask suppress addition when cf is
20350         zero by complementing the mask.
20351
20352 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
20353
20354         * Makefile.in: Delete references to enquire.
20355         * enquire.c: Move to contrib.
20356
20357 2002-07-16  Stan Shebs  <shebs@apple.com>
20358
20359         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
20360         config/rs6000/darwin.h.
20361         (ASM_OUTPUT_SKIP): Ditto.
20362         (TEXT_SECTION_ASM_OP): Ditto.
20363         (DATA_SECTION_ASM_OP): Ditto.
20364         (ASM_APP_ON): Define.
20365         (ASM_APP_OFF): Define.
20366         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
20367         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
20368
20369         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
20370         (machopic_function_base_name): Declare result to be const.
20371         (machopic_non_lazy_ptr_name): Ditto.
20372         (machopic_stub_name): Ditto.
20373         * config/darwin-protos.h: Ditto for the prototypes.
20374
20375 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
20376
20377         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
20378
20379 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
20380
20381         * i386.md (prefetch): Fix for 64bit mode.
20382         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
20383
20384 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
20385
20386         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
20387         * i386.c (x86_machine_dependent_reorg): New function.
20388         * i386-protos.h (x86_machine_dependent_reorg): Declare.
20389
20390 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
20391
20392         * builtins.c (std_expand_builtin_va_start): Remove unused
20393         first argument.
20394         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
20395         std_expand_builtin_va_start with just two arguments.
20396         * expr.h: Update prototypes.
20397
20398         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
20399         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
20400         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
20401         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
20402         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
20403         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
20404         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
20405         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
20406         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
20407         argument from all implementations of EXPAND_BUILTIN_VA_START
20408         and all uses of std_expand_builtin_va_start.
20409
20410 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
20411
20412         * regrename.c (copy_value): Don't record high part copies.
20413
20414 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
20415
20416         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
20417         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
20418         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
20419
20420 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
20421
20422         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
20423
20424         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
20425         into addsi3 using register class "x" and "y".
20426
20427         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
20428         "earlyclobber" constraint modifier for some alternative.
20429
20430         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
20431         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
20432         unordered.
20433         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
20434
20435         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
20436         (TARGET_SWITCHES): Add -mieee-compare option.
20437         (OVERRIDE_OPTIONS): 32332 is a subset of
20438         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
20439         (TARGET_SWITCHES): Fix description of bitfield option.
20440         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
20441         -mieee-compare option. Remove 32332 flag.
20442
20443 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
20444
20445         * explow.c (convert_memory_address): Remove special handling
20446         when POINTERS_EXTEND_UNSIGNED < 0.
20447         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
20448         (movedi_symbolic): Fix typo.
20449         (load_fptr): Remove mode restriction so it works for SI and DI.
20450         (load_fptr_internal1): Ditto.
20451         (load_gprel): Ditto.
20452         (load_symptr_internal1): Ditto.
20453         (call_pic): Ditto.
20454         * config/ia64.c (call_operand): Modify mode check.
20455         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
20456         (ia64_expand_move): Ditto.
20457         (ia64_assemble_integer): Handle SImode function pointers.
20458         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
20459         (ia64_expand_op_and_fetch): Ditto.
20460         (ia64_expand_compare_and_swap): Ditto.
20461         (ia64_expand_lock_test_and_set): Ditto.
20462         (ia64_expand_lock_release): Ditto.
20463
20464 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
20465
20466         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
20467
20468 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
20469             Richard Earnshaw  <rearnsha@arm.com>
20470
20471         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
20472         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
20473
20474 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
20475
20476         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
20477         understands to be a memory clobber.
20478         * arm.c (arm_expand_prologue): Use it.
20479
20480 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
20481
20482         * ra-rewrite.c: #include reload.h, insn-config.h
20483         * ra-build.c: #include reload.h
20484         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
20485         depend on reload.h, insn-config.h.
20486
20487 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
20488
20489         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
20490         the same size as a word.
20491
20492         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
20493         BYTES_BIG_ENDIAN into account.
20494
20495 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
20496
20497         * i386.md (prefetch): Fix for 64bit mode.
20498         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
20499
20500         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
20501
20502 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20503
20504         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
20505
20506 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
20507
20508         * ginclude/varargs.h: Replace with stub which issues #error.
20509         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
20510         __builtin_va_start.
20511
20512         * builtins.def (BUILT_IN_VARARGS_START): Delete.
20513         (BUILT_IN_VA_START): New.
20514         * builtins.c (expand_builtin_va_start): Eliminate first
20515         argument and code to implement pre-ISO varargs.
20516         (std_expand_builtin_va_start): Ignore first argument; it is
20517         always 1.
20518         (expand_builtin): Handle BUILT_IN_VA_START and
20519         BUILT_IN_STDARG_START identically.  Delete
20520         BUILT_IN_VARARGS_START case.
20521
20522         * function.c (assign_parms): Delete hide_last_arg and all
20523         its uses.
20524         (mark_varargs): Delete function.
20525         * function.h (struct function): Delete 'varargs' bit.
20526         (current_function_varargs): Delete macro.
20527         * tree.h: Don't declare mark_varargs.
20528
20529         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
20530         (c_expand_body): Don't call mark_varargs.
20531         * c-objc-common.c: Handle BUILT_IN_VA_START and
20532         BUILT_IN_STDARG_START identically.  Delete
20533         BUILT_IN_VARARGS_START case.
20534         * c-tree.h: Don't declare c_mark_varargs.
20535         * c-parse.in: Remove grammar rules for '&...' (which has been
20536         commented out since before 2.7.2) and for '...' in K+R
20537         argument declarations.
20538
20539         * builtins.c, function.c, integrate.c, sibcall.c,
20540         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
20541         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
20542         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
20543         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
20544         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
20545         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
20546         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
20547         config/stormy16/stormy16.c: Delete all references to
20548         current_function_varargs, and code predicated on that flag.
20549
20550         * config/alpha/alpha.c (alpha_va_start),
20551         config/arc/arc.c (arc_va_start),
20552         config/i386/i386.c (ix86_va_start),
20553         config/mips/mips.c (mips_va_start),
20554         config/mn10300/mn10300.c (mn10300_va_start),
20555         config/rs6000/rs6000.c (rs6000_va_start),
20556         config/s390/s390.c (s390_va_start),
20557         config/sh/sh.c (sh_va_start),
20558         Ignore first argument; it is always 1.
20559
20560         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
20561         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
20562         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
20563         Delete m68hc11_va_start.
20564         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
20565         No need to define EXPAND_BUILTIN_VA_START.
20566
20567         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
20568         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
20569
20570 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
20571
20572         PR optimization/7153
20573         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
20574         dies in more than one insn.
20575
20576 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
20577
20578         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
20579
20580 2002-07-15  Michael Matz  <matz@suse.de>,
20581             Daniel Berlin  <dberlin@dberlin.org>,
20582             Denis Chertykov  <denisc@overta.ru>
20583
20584         Add a new register allocator.
20585
20586         * ra.c: New file.
20587         * ra.h: New file.
20588         * ra-build.c: New file.
20589         * ra-colorize.c: New file.
20590         * ra-debug.c: New file.
20591         * ra-rewrite.c: New file.
20592
20593         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
20594         (ra-rewrite.o): New .o files for libbackend.a.
20595         (GTFILES): Add basic-block.h.
20596
20597         * toplev.c (flag_new_regalloc): New.
20598         (f_options): New option "new-ra".
20599         (rest_of_compilation): Call initialize_uninitialized_subregs()
20600         only for the old allocator.  If flag_new_regalloc is set, call
20601         new allocator, instead of local_alloc(), global_alloc() and
20602         friends.
20603
20604         * doc/invoke.texi: Document -fnew-ra.
20605         * basic-block.h (FOR_ALL_BB): New.
20606         * config/rs6000/rs6000.c (print_operand): Write small constants
20607         as @l+80.
20608
20609         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
20610         (df_reg_table_realloc): Make size at least as large as max_reg_num().
20611         (df_insn_table_realloc): Size argument now is absolute, not relative.
20612         Changed all callers.
20613
20614         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
20615         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
20616
20617         2002-06-20  Michael Matz  <matz@suse.de>
20618
20619         * df.h (struct ref.id): Make unsigned.
20620         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
20621
20622         2002-06-13  Michael Matz  <matz@suse.de>
20623
20624         * df.h (DF_REF_MODE_CHANGE): New flag.
20625         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
20626         involving subregs with invalid mode changes, when
20627         CLASS_CANNOT_CHANGE_MODE is defined.
20628
20629         2002-05-07  Michael Matz  <matz@suse.de>
20630
20631         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
20632
20633         2002-05-03  Michael Matz  <matz@suse.de>
20634
20635         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
20636
20637         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
20638
20639         * regclass.c (regclass): Work with all regs which have sets or
20640         refs.
20641         (reg_scan_mark_refs): Count regs inside (clobber ...).
20642
20643         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
20644
20645         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
20646         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
20647         add new refs.
20648         (df_bb_refs_update): Don't clear insns_modified here, ...
20649         (df_analyse): ... but here.
20650
20651         * sbitmap.c (dump_sbitmap_file): New.
20652         (debug_sbitmap): Use it.
20653
20654         * sbitmap.h (dump_sbitmap_file): Add prototype.
20655
20656         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
20657
20658         * df.c (df_insn_modify): Grow the UID table if necessary, rather
20659         than assume all emits go through df_insns_modify.
20660
20661         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
20662
20663         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
20664         increase REG_N_REFS (like flow does), so that regclass doesn't
20665         think a reg is useless, and thus, not calculate a class, when it
20666         really should have.
20667
20668         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
20669
20670         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
20671         dataflow analysis.
20672
20673 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
20674
20675         PR middle-end/7245
20676         * config/i386/i386.c (const_int_1_31_operand): New.
20677         * config/i386/i386.h (PREDICATE_CODES): Add it.
20678         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
20679         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
20680         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
20681
20682 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
20683
20684         PR target/7282
20685         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
20686         (floatunssidf2): Likewise.
20687         (floatsidf_ppc64): New insn_and_split.
20688         (floatunssidf_ppc64): Likewise.
20689
20690 2002-07-14  Andreas Jaeger  <aj@suse.de>
20691
20692         * config.gcc (sh64): Remove unused
20693         target_requires_64bit_host_wide_int.
20694
20695 2002-07-12  Roger Sayle  <roger@eyesopen.com>
20696
20697         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
20698         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
20699         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
20700         whether clear_by_pieces should be used to clear storage.
20701         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
20702
20703         * doc/tm.texi: Document these two new target macros.
20704
20705 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
20706
20707         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
20708         the scratch register.
20709         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
20710         of it, forbid reload to use it.
20711
20712 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20713
20714         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
20715         usage on 64-bit hosts, return value was truncated to 32 bits.
20716
20717 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
20718
20719         * simplify-rtx.c (simplify_subreg): Handle floating point
20720         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
20721         the element mode is requested, compute a subreg with an
20722         integer mode of the same size as the element mode first.
20723
20724 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
20725
20726         * combine.c (try_combine): When converting a paradoxical subreg
20727         to an extension, take LOAD_EXTEND_OP into account.
20728
20729 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20730
20731         * config.gcc (mips-sgi-irix6*o32): New configuration.
20732
20733         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
20734         configurations.
20735         * configure: Regenerate.
20736
20737         * config/mips/iris6-o32-as.h: New file.
20738         * config/mips/iris6-o32.h: New file.
20739
20740         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
20741         (NM_FLAGS): Define.
20742         (HAVE_AS_SHF_MERGE): Undefine.
20743
20744         * config/mips/t-iris5-as: New file.
20745         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
20746
20747         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
20748         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
20749         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
20750         dp-bit.c, fp-bit.c): Move ...
20751         * config/mips/t-iris5-6: ... here.
20752         New file, shared by IRIX 5 and IRIX 6.
20753         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
20754         mips-sgi-irix5*): Use it.
20755
20756         * config/mips/iris6.h: Remove duplicate comment.
20757
20758         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
20759         !TARGET_IRIX6]: Define.
20760         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
20761
20762         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
20763
20764 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20765
20766         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
20767         and delete code to force constant to register.
20768         * pa-protos.h (adddi3_operand): Add prototype.
20769         * pa.c (adddi3_operand): New function.
20770
20771 2002-07-11  Roger Sayle  <roger@eyesopen.com>
20772
20773         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
20774         non-ANSI builtin functions.
20775
20776 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
20777
20778         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
20779         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
20780         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
20781         (gen_const_vector_0): Use it.
20782
20783 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20784
20785         * pa.md (adddi3): For 32-bit targets, force constants to a register
20786         if they don't fit in an 11-bit immediate.  Change insn predicate to
20787         arith11_operand.  Remove comment.
20788         * pa.c (cint_ok_for_move): Fix comment.
20789         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
20790         targets.
20791
20792 2002-07-11  Tim Josling  <tej@melbpc.org.au>
20793
20794         Remove front end hard coding from gengtype.c.
20795
20796         * Makefile.in
20797         (STAGESTUFF): add gtyp-gen.h
20798         (GTFILES): Remove front end specific files.
20799         (GTFILES_FILES_LANGS): New, from configure..
20800         (GTFILES_FILES_FILES): Likewise.
20801         (GTFILES_LANG_DIR_NAMES): Likewise.
20802         (GTFILES_SRCDIR): Likewise.
20803         (gtyp-gen.h): Build from configure information.
20804         (s-gtype): Remove command line parameters from gengtype.
20805         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
20806         (mostlyclean): Delete files generated by and for gengtype.
20807
20808         * c-config-lang.in: New file.
20809
20810         * configure.in (all_gtfiles_files_langs): New. Accumulate files
20811         for each language.
20812         (all_gtfiles_files_files): New. Accumulate language for each file
20813         accumulated.
20814         (gtfiles): Pick up value for C.
20815         (srcdir): AC-SUBST this variable.
20816         (all_gtfiles_files_langs): AC-SUBST this variable.
20817         (all_gtfiles_files_files): AC-SUBST this variable.
20818
20819         * configure: Regenerate.
20820
20821         * gengtype-lex.l (parse_file): Make parameter const.
20822
20823         * gengtype.c (toplevel): include gtyp-gen.h.
20824         (BASE_FILE_<language> unnamed enum): Delete.
20825         (lang_names): Delete (replaced by gtyp-gen.h)
20826         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
20827         all references.
20828         (NUM_GT_FILES): New.
20829         (NUM_LANG_FILES): New.
20830         (srcdir_len): New.
20831         (NUM_BASE_FILES): Change calculation.
20832         (open_base_files): Change prototype to avoid warning.
20833         (startswith): Delete.
20834         (get_file_basename): Iterate through generated language list not
20835         hard coded list.
20836         (get_base_file_bitmap): Use generated list of files and languages.
20837         (close_output_files): Add prototype to rmove warning.
20838         (main): Iterate through list of generated files from gtyp-gen.h
20839         rather than command line paramaters.  Ignore duplicated file
20840         names.
20841
20842         * gengtype.h (parse_file): Amend prototype for const parameter.
20843
20844         * doc/sourcebuild.texi: Document gtfiles variable.
20845
20846         * doc/gty.texi: Document changes to gtfiles variable for front
20847         ends.
20848
20849         * objc/config-lang.in (gtfiles): Add files needed for objc front
20850         end.
20851
20852 2002-07-10  Roger Sayle  <roger@eyesopen.com>
20853
20854         PR c/2454
20855         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
20856         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
20857
20858 2002-07-10  Roger Sayle  <roger@eyesopen.com>
20859             Zack Weinberg <zack@codesourcery.com>
20860
20861         * builtins.def: Make the argument types of abort and exit
20862         independent of the front-end.
20863
20864 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
20865
20866         * config/rs6000/linux64.h (ASM_SPEC): Define.
20867
20868 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
20869
20870         * config/rs6000/rs6000.c (emit_frame_save): New.
20871         (rs6000_frame_related): Replace reg2 before reg.
20872         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
20873         and eh_return registers.
20874
20875 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
20876
20877         Revert all patches for optimization of Complex .op. Real.
20878         * complex_part_zero_p: Remove
20879         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
20880         with x.
20881         * expand_cmplxdiv_wide: Ditto.
20882         * expand_binop: Ditto.
20883
20884 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20885
20886         * config/avr/avr.md: Fix two 0x80000000 constants to make them
20887         negative also on 64-bit hosts.
20888
20889         Default to -fno-reorder-blocks when optimizing for size.
20890         * config/avr/avr-protos.h (avr_optimization_options): Declare.
20891         * config/avr/avr.c (avr_optimization_options): New function.
20892         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
20893
20894         Optimize returning from simple functions.
20895         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
20896         * config/avr/avr.c (avr_simple_epilogue): New function.
20897         * config/avr/avr.md (return): New insn.
20898
20899 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
20900
20901         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
20902         HAS_INIT_SECTION to protection.
20903
20904 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
20905
20906         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
20907         deprecated.
20908
20909 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
20910
20911         * combine.c (gen_lowpart_for_combine): Handle vector modes.
20912         Supply non-VOID mode to simplify_gen_subreg.
20913
20914 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
20915
20916         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
20917
20918 2002-07-10  Jeffrey A Law  <law@redhat.com>
20919
20920         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
20921         as appropriate.
20922
20923         * mn10200.c (expand_epilogue): Fix test to determine which scratch
20924         register to use.
20925
20926 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
20927
20928         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
20929         Get mode from dest.
20930         If simplify_gen_subreg fails, try next equivalent.
20931
20932 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
20933
20934         * diagnostic.h: #include location.h
20935         (location_t): Move definition to..
20936         * location.h: ... here.  New file.
20937         * tree.h: #include location.h
20938         (DECL_SOURCE_LOCATION): New macro.
20939         (DECL_SOURCE_FILE): Use.
20940         (DECL_SOURCE_LINE): Likewise.
20941         (struct tree_decl): REplace filename and linenum with locus.
20942         * Makefile.in (TREE_H): add location.h
20943         (diagnostic.o): Depends on gt-location.h
20944         (gt-location.h): Depends on s-gtype
20945
20946 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
20947
20948         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
20949         TARGET_OS_CPP_BUILTINS.
20950         * config/rs6000/aix31.h: Likewise.
20951         * config/rs6000/aix41.h: Likewise.
20952         * config/rs6000/aix43.h: Likewise.
20953         * config/rs6000/aix51.h: Likewise.
20954         * config/rs6000/beos.h: Likewise.
20955         * config/rs6000/darwin.h: Likewise.
20956         * config/rs6000/eabi.h: Likewise.
20957         * config/rs6000/eabisim.h: Likewise.
20958         * config/rs6000/linux.h: Likewise.
20959         * config/rs6000/linux64.h: Likewise.
20960         * config/rs6000/lynx.h: Likewise.
20961         * config/rs6000/mach.h: Likewise.
20962         * config/rs6000/rtems.h: Likewise.
20963         * config/rs6000/sysv4.h: Likewise.
20964         * config/rs6000/vxppc.h: Likewise.
20965
20966 2002-07-09 Devang Patel <dpatel@apple.com>
20967         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
20968         Do not allow ObjC objects as a parameter type for Objective-C methods.
20969         My previous patch restricted  'struct' also.
20970
20971 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
20972
20973         * cpperror.c (cpp_error): Default to directive_line within
20974         directives here.
20975         * cppexp.c (cpp_interpret_integer): Only use traditional
20976         number semantics in directives.
20977         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
20978         (do_include_common): Similarly.
20979         * cpptrad.c (scan_out_logical_line): Implement accurate
20980         quoting of <> in #include.
20981         * doc/cpp.texi: Update.
20982
20983 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
20984                           J"orn Rennecke <joern.rennecke@superh.com>
20985
20986         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
20987         * sh.md (attribute issues): Replace with:
20988         (attribute pipe_model).  All users changed.
20989         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
20990         All users changed.
20991         (function units sh5issue, sh5fds): New.
20992         (attribute is_mac_media): New.
20993         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
20994         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
20995         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
20996         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
20997         (call_media, call_value_media, sibcall_media): Likewise.
20998         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
20999         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
21000         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
21001         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
21002         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
21003         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
21004         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
21005         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
21006         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
21007         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
21008         (truncdfsf2_media): Likewise.
21009         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
21010         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
21011
21012 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
21013
21014         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
21015         * sh.c (general_extend_operand, inqhi_operand): New functions.
21016         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
21017         alternatives using 'N' modifier.  Add type.
21018         (adddi3z_media): Likewise.  Enable generator function generation.
21019         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
21020         exact predicates / constraints.  Add type.
21021         (subsi3): Allow 0 for SHMEDIA.
21022         (udivsi3_i4_media): Use match_operand for input values
21023         rather than hard registers.
21024         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
21025         unnecessarily through hard registers.  Keep copies of pseudo
21026         registers outside of the libcall sequence.
21027         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
21028         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
21029         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
21030         (extendhidi2, extendqidi2): Likewise.
21031         (andsi3_compact): Name.
21032         (andcdi3): Enable generator function generation.
21033         (zero_extendhisi2, zero_extendqisi2): Rename to
21034         (zero_extendhisi2_compact, zero_extendqisi2_compact).
21035         (extendhisi2, extendqisi2): Rename to
21036         (extendhisi2_compact, extendqisi2_compact).
21037         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
21038         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
21039         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
21040         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
21041         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
21042         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
21043         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
21044         (shmedia32_initialize_trampoline_big): Likewise.
21045         (shmedia32_initialize_trampoline_little): Likewise.
21046         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
21047         (negdi2): Remove spurious T clobber.
21048         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
21049         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
21050         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
21051         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
21052         (ic_invalidate_line_media): Write back data cache before invalidating
21053         instruction cache.  Add type.
21054         (movsf_media): Sign-extend when the destination is a general
21055         purpose register.  Add type.
21056         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
21057         (casesi_worker_0+1): Only increment ref count for proper label.
21058         (casesi_worker_0+2): Likewise.
21059
21060 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
21061
21062         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
21063
21064 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
21065
21066         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
21067         from Pmode to ptr_mode.
21068         (get_exception_pointer): Ditto.
21069         (connect_post_landing_pads): Ditto.
21070         (dw2_build_landing_pads): Ditto.
21071
21072 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
21073         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
21074         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
21075         (handle_pragma_redefine_extname): Change to use new function.
21076
21077 2002-07-08  Roger Sayle  <roger@eyesopen.com>
21078
21079         * combine.c (combine_simplify_rtx): Add an explicit cast
21080         to avoid signed/unsigned comparison warning.
21081         (simplify_if_then_else): Likewise.
21082         (extended_count): Likewise.
21083         (simplify_shift_const): Likewise.
21084         (simplify_comparison): Likewise.
21085
21086 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
21087
21088         * config/mips/mips.md: Add imadd type.  Update scheduler description
21089         to use imadd as well as imul.
21090         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
21091         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
21092         (*mul_sub_si): Likewise for first alternative.  Change second
21093         alternative from imul to multi.
21094
21095 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
21096
21097         * c-common.c (c_common_post_options): Update prototype;
21098         don't init backends if preprocessing only.
21099         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
21100         * langhooks.h (struct lang_hooks): Update post_options to
21101         return a boolean.
21102         * toplev.c (parse_options_and_default_flags, do_compile,
21103         lang_independent_init): Update prototypes.  Allow the
21104         front end to specify that there is no need to initialize
21105         the back end.
21106         (general_init): Move call to hex_init here...
21107         (toplev_main): ...from here.  Pass flag for back end init
21108         suppression.
21109
21110 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
21111
21112         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
21113         (PREDICATE_CODES): Add entries for equality_comparison_operator,
21114         greater_comparison_operator and less_comparison_operator.
21115         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
21116         more operators.
21117         (equality_comparison_operator): New function.
21118         (greater_comparison_operator, less_comparison_operator): Likewise.
21119         * sh.md (beq_media_i): Disable generator function generation.
21120         Use match_operator to handle a whole class of comparisons.  Add
21121         modifier in output template to provide branch prediction.  Add type.
21122         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
21123         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
21124         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
21125         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
21126
21127 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
21128
21129         Emit MMIX function prologue and epilogue as rtl.
21130         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
21131         not unprototyped get_hard_reg_initial_val.
21132         ("call_value", "nonlocal_goto_receiver"): Ditto.
21133         ("return"): Make define_expand.  Move real insn to...
21134         ("*expanded_return"): New pattern.
21135         ("prologue", "epilogue"): New define_expands.
21136         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
21137         (struct machine_function): New member in_prologue.
21138         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
21139         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
21140         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
21141         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
21142         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
21143         (LOCAL_REGNO): Define.  Adjust comment.
21144         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
21145         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
21146         leaf_function_p.
21147         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
21148         the prologue.
21149         (mmix_target_asm_function_prologue): Make static.  Just mark that
21150         the prologue is being emitted.  Move guts to...
21151         (mmix_expand_prologue): New function.  Adjust for emitting
21152         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
21153         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
21154         \n.  Move guts to...
21155         (mmix_expand_epilogue): New function.  Adjust for emitting
21156         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
21157         (mmix_target_asm_function_end_prologue): Mark that the prologue
21158         has ended.
21159         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
21160         (mmix_conditional_register_usage): Improve comments.
21161         (mmix_local_regno): New function.
21162         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
21163         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
21164         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
21165         (mmix_get_hard_reg_initial_val): Ditto.
21166
21167 2002-07-06  Andreas Jaeger  <aj@suse.de>
21168
21169         * toplev.c (set_fast_math_flags): Don't use ISO C style function
21170         definitions.
21171         * gengtype.c (open_base_files): Likewise.
21172         (close_output_files): Likewise.
21173         * tracer.c (find_best_predecessor): Likewise.
21174         (find_best_successor): Likewise.
21175         (ignore_bb_p): Likewise.
21176
21177 2002-07-05  Roger Sayle  <roger@eyesopen.com>
21178
21179         PR c++/7099
21180         * builtin-attrs.def: Define new attribute lists for use in
21181         builtins.def.
21182         * builtins.def [DEF_BUILTIN]: Modify to take an additional
21183         ATTRS argument, an enumerated value defined in builtin-attrs.def
21184         that represents the attribute list for the builtins.  Modify
21185         all builtin functions to pass an appropriate attribute list.
21186         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
21187         their required noreturn attributes.
21188         * tree.h (enum_builtin_function): Ignore the additional parameter
21189         to DEF_BUILTIN.
21190         * builtins.c (built_in_names): Likewise.
21191         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
21192         argument with a tree representing the functions attribute list.
21193         Pass this "attrs" argument to builtin_function.  No longer handle
21194         the noreturn_p processing manually.
21195         (built_in_attributes): Move the definitions from builtin-attrs.def
21196         before c_common_nodes_and_builtins.
21197         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
21198         DEF_BUILTIN, passing it to both builtin_function and the changed
21199         builtin_function_2.
21200
21201         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
21202         __builtin__exit and __builtin__Exit.
21203
21204 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21205
21206         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
21207         QI mode registers in soft registers.
21208         ("zero_extendqihi2"): Do not take into account soft registers
21209         for register allocation (use '*' constraint).
21210
21211 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21212
21213         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
21214         it is dead.
21215         ("*ashrsi3"): Likewise.
21216         ("*lshrsi3"): Likewise.
21217
21218 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
21219
21220         * genautomata.c (output_max_insn_queue_index_def): Take latencies
21221         into account.
21222
21223 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21224
21225         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
21226         address computation and memory moves.
21227
21228 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
21229
21230         PR c++/6706
21231         * dwarfout.c (output_reg_number): Fix warning message.
21232         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
21233         before using it.
21234
21235 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21236
21237         * gcc/gcc.c (asm_debug): Move initialization ...
21238         (init_spec): ... here.
21239
21240 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
21241
21242         * c-parse.in (extdef): Append ';'.
21243         (old_style_parm_decls): Append ';'.
21244
21245 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
21246
21247         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
21248         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
21249         to gcc_cv_as_gstabs_flag.
21250         * configure: Rebuilt.
21251
21252 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
21253
21254         * ggc.h (ggc_add_root): Document as obsolete.
21255
21256 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
21257
21258         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
21259         (mshflo_w): Likewise.
21260
21261 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
21262
21263         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
21264         vector mode subregs of constants to finding integer mode
21265         subregs of constants.
21266         * cse.c (cse_insn): Use simplify_gen_subreg.
21267         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
21268         From a vector mode expression of different size than the
21269         target mode.
21270
21271 2002-07-03  Eric Christopher  <echristo@redhat.com>
21272
21273         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
21274         * config/mips/mips.h: Remove deprecated -m<processor> options
21275         and cc1_cpu_spec associated.
21276         (CONSTANT_ADDRESS_P): Fix last patch.
21277         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
21278         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
21279         sunge_sf): Remove.
21280
21281 2002-07-03  Stan Shebs  <shebs@apple.com>
21282
21283         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
21284         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
21285         (CPP_SPEC): Remove insertion of APPLE_CC definition.
21286
21287 2002-07-03  Roger Sayle  <roger@eyesopen.com>
21288
21289         * combine.c (struct_undo): Change types of recorded substitutions
21290         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
21291         (do_SUBST_INT): Change types of the substitution from unsigned int
21292         to int, to avoid compilation warning from SUBST_INT's only caller.
21293
21294         (make_extraction): Add cast to avoid compilation warning.
21295         (force_to_mode): Remove cast to avoid compilation warning.
21296
21297 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
21298             Jeff Law  <law@redhat.com>
21299
21300         * i386.md (length_immediate attribute): Fix typo.
21301         (length_address attribute): Likewise.
21302         (modrm attribute): Set it to 0 for immediate call instructions.
21303         (jcc_1 pattern): Set modrm attribute to 0.
21304         (jcc_2 pattern ): Likewise.
21305         (jump pattern): Likewise.
21306         (doloop_end_internal pattern): Explicitly set length.
21307         (leave pattern): Fix typo.
21308         (leave_rex64 pattern): Likewise.
21309
21310 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
21311
21312         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
21313         in FPR as preference.
21314         (fctiwz): Same.
21315         (floatdidf2, fix_truncdfdi2): Same.
21316         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
21317         (floatditf2): Same.
21318         (floatsitf2, fix_trunctfsi2): SImode in GPR.
21319         (ctrdi): Remove FPR alternative and splitter.
21320
21321 2002-07-03  Will Cohen  <wcohen@redhat.com>
21322
21323         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
21324
21325 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
21326
21327         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
21328         than UNITS_PER_WORD, unless this is little endian and the first unit
21329         in this word.  Let extract_bit_field decide how to load an element.
21330         Force arguments to matching mode.
21331         (expand_vector_unop): Likewise.
21332
21333         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
21334         consist of word_mode elements.
21335         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
21336         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
21337         (build_unary_op): Allow vector types for BIT_NOT_EPR.
21338         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
21339         CONST_VECTOR.
21340         * optabs.c (expand_vector_binop): Try to perform operation in
21341         smaller vector modes with same inner size.  Add handling of AND, IOR
21342         and XOR.  Reject expansion to inner-mode sized scalars when using
21343         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
21344         (expand_vector_unop): Try to perform operation in smaller vector
21345         modes with same inner size.  Add handling of one's complement.
21346         When there is no vector negate operation, try a vector subtract
21347         operation.  Use simplify_gen_subreg on constants.
21348         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
21349         constants into smaller vectors with same inner mode, and to
21350         integer CONST_DOUBLEs.
21351
21352 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21353
21354         * c-parse.in (parsing_iso_function_signature): New variable.
21355         (extdef_1): New, copied from...
21356         (extdef): ... here.  Reset parsing_iso_function_signature.
21357         (old_style_parm_decls):  Reset parsing_iso_function_signature.
21358         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
21359         Warn about ISO C style function definitions.
21360         (nested_function, notype_nested_function): Reset
21361         parsing_iso_function_signature.
21362         (parmlist_2): Set parsing_iso_function_signature.
21363
21364         * doc/invoke.texi (-Wtraditional): Document new behavior.
21365
21366 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
21367
21368         * config.gcc (mips*el-*-*): Use tm_defines to set
21369         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
21370         * config/mips/little.h: Remove.
21371
21372 2002-07-02 Devang Patel <dpatel@apple.com>
21373
21374         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
21375         object as parameter. Prevent something like 'NSObject' to be
21376         used as the type for a method argument.
21377
21378 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
21379
21380         * cpptrad.c: Update comment.
21381
21382 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
21383
21384         * doc/cpp.texi: Update for traditional preprocessing changes.
21385         * goc/cppopts.texi: Similarly.
21386
21387 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
21388
21389         * c-parse.in (designator): Enable designated initializers if ObjC.
21390         (objcmessageexpr): Remove references to objc_receiver_context.
21391         * objc/objc-act.h (objc_receiver_context): Remove decl.
21392         * objc/objc-act.c (objc_receiver_context): Remove.
21393         (lookup_objc_ivar): Test objc_method_context instead of
21394         objc_receiver_context.
21395
21396 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
21397
21398         * sh.c (print_operand, case 'N'): Allow zero vector.
21399         (arith_reg_or_0_operand): Likewise.
21400         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
21401         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
21402         IOR, XOR, PLUS and SET and take their respective constant
21403         ranges into account.
21404         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
21405         * sh.md (subdi3, subdi3_media): Allow zero operand.
21406         (movv8qi_i+3): Only vector that is not split is the zero vector.
21407         Fix operand 3 to simplify_subreg.
21408         (movv2si_i): Split alternative 1.
21409         (mshfhi_l_di_rev+1): New splitter.
21410
21411 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
21412
21413         PR preprocessor/7029
21414         * cppinit.c (cpp_handle_option):  Suppress warnings with an
21415         implicit "-w" for "-M" and "-MM".
21416         * doc/cppopts.texi: Update.
21417
21418 2002-07-01  Roger Sayle  <roger@eyesopen.com>
21419
21420         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
21421         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
21422         builtin_function.
21423
21424 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
21425
21426         * README.Portability: Fix typos.
21427
21428 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
21429
21430         PR target/7177
21431         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
21432         of indirections for register inside sign-extended mem part.
21433
21434 2002-07-01  Roger Sayle  <roger@eyesopen.com>
21435
21436         * tree.h:  Modify builtin_function interface to take an extra
21437         argument ATTRS, which is a tree representing an attribute list.
21438
21439         * c-decl.c (builtin_function): Accept additional parameter.
21440         * objc/objc-act.c (builtin_function): Likewise.
21441         * f/com.c (builtin_function): Likewise.
21442         * java/decl.c (builtin_function): Likewise.
21443         * ada/utils.c (builtin_function): Likewise.
21444         * cp/decl.c (builtin_function): Likewise.
21445         (builtin_function_1): Likewise.
21446
21447         * c-common.c (c_common_nodes_and_builtins): Pass an additional
21448         NULL_TREE argument to builtin_function.  (builtin_function_2):
21449         Likewise.
21450         * cp/call.c (build_java_interface_fn_ref): Likewise.
21451         * objc/objc-act.c (synth_module_prologue): Likewise.
21452         * java/decl.c (java_init_decl_processing): Likewise.
21453         * f/com.c (ffe_com_init_0): Likewise.
21454
21455         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
21456         NULL_TREE argument to builtin_function.
21457         * config/arm/arm.c (def_builtin): Likewise.
21458         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
21459         * config/i386/i386.c (def_builtin): Likewise.
21460         * config/ia64/ia64.c (def_builtin): Likewise.
21461         * config/rs6000/rs6000.c (def_builtin): Likewise.
21462
21463 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
21464
21465         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
21466         * config/mips/t-isa3264: Likewise.
21467         * config/mmix/t-mmix: Likewise.
21468
21469 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21470
21471         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
21472
21473 2002-07-01  Roger Sayle  <roger@eyesopen.com>
21474
21475         PR opt/4046
21476         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
21477         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
21478         B are truth values.
21479
21480 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
21481
21482         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
21483
21484 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
21485
21486         * README.Portability (Function prototypes): Give an example of
21487         declaring and defining a function with no arguments.
21488
21489         * README.Portability (Function prototypes): Document new
21490         variable-argument function macros.
21491
21492 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
21493
21494         * sh.c (langhooks.h): Include.
21495         (sh_init_builtins, sh_media_init_builtins): New functions.
21496         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
21497         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
21498         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
21499         (builtin_description): New struct tag.
21500         (signature_args, bdesc): New arrays.
21501         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
21502         (print_operand): Add 'N' modifier.
21503         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
21504         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
21505         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
21506         (CONST_COSTS): Add special case for SHmedia AND.
21507         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
21508         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
21509         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
21510         target_operand can also be const or unspec.
21511         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
21512         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
21513         (attribute type): Add new types.
21514         (anddi3): Add splitter.
21515         (movdi_const_16bit+1): Add code to handle vector constants and
21516         bitmasks efficiently.
21517         (shori_media): Have generator function made.
21518         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
21519         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
21520         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
21521         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
21522         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
21523         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
21524         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
21525         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
21526         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
21527         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
21528         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
21529         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
21530         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
21531         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
21532         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
21533         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
21534         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
21535         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
21536         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
21537         (ftrv): Likewise.
21538
21539         (fpu_switch+1, fpu_switch+2): Remove constraint.
21540
21541 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
21542
21543         * tree.c (build_function_type_list): Update function comment.
21544         Rename first argument to return_type.
21545
21546 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
21547
21548         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
21549         tradcif.y and related files.
21550
21551 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
21552
21553         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
21554
21555 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21556
21557         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
21558
21559 See ChangeLog.7 for earlier changes.