OSDN Git Service

* config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-03-02  Richard Henderson  <rth@redhat.com>
2
3         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4         load if "internal" visibility.
5         * doc/extend.texi: Document visibility meanings.
6
7 2002-03-02  Richard Henderson  <rth@redhat.com>
8
9         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10         to functions as well.
11
12 2002-03-02  Richard Henderson  <rth@redhat.com>
13
14         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
15         (handle_visibility_attribute): Don't call assemble_visibility.
16         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
17         without asmspec.  Invoke assemble_alias when needed.
18         * varasm.c (maybe_assemble_visibility): New.
19         (assemble_start_function, assemble_variable, assemble_alias): Use it.
20
21 2002-03-02  Richard Henderson  <rth@redhat.com>
22
23         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
24         invoke ENCODE_SECTION_INFO with first call flag.
25
26         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
27         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
28         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h, 
29         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
30         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
31         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
32         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
33         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
34         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
35         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
36         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
37         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
38         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c, 
39         config/m68hc11/m68hc11.h, config/m88k/m88k.h, 
40         config/mcore/mcore-protos.h, config/mcore/mcore.c,
41         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
42         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
43         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c, 
44         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
45         config/sh/sh.h, config/sparc/sparc.h,
46         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
47         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
48         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
49         FIRST argument.  As needed, examine it and do nothing.
50
51         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h, 
52         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
53         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
54
55         * config/arm/t-pe (pe.o): Add dependencies.
56
57 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
58
59         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
60         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
61         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
62         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
63         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
64         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
65         * defaults.h (BITS_PER_UNIT): Define.
66         * doc/tm.texi (BITS_PER_UNIT): Document default value.
67
68 2002-03-02  Kazu Hirata  <kazu@hxi.com>
69
70         * config/h8300/h8300-protos.h: Add a prototype for
71         compute_a_shift_length.
72         * config/h8300/h8300.c (h8300_asm_insn_count): New.
73         (compute_a_shift_length): Likewise.
74         (h8300_adjust_insn_length): Do not adjust insn length of shift
75         insns.
76         * config/h8300/h8300.md (anonymous shift patterns): Use
77         compute_a_shift_length.
78
79 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
80
81         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
82         trunc_int_for_mode.
83
84         * emit-rtl.c (offset_address): Call update_temp_slot_address.
85
86 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
87
88         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
89         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
90         * flags.h (flag_zero_initialized_in_bss): Declare.
91         * toplev.c (flag_zero_initialized_in_bss): New flag.
92         (lang_independent_options): Add flag_zero_initialized_in_bss.
93         * tree.c (initializer_zerop): New function.
94         * tree.h (initializer_zerop): Declare.
95         * varasm.c (assemble_variable): If we can emit bss, put zero
96         initializers in the bss section.
97
98 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
99
100         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
101         like more than one symbol per .weak directive.
102
103 2002-03-01  Richard Henderson  <rth@redhat.com>
104
105         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
106         adjust argument_pointer by pretend_args_size.
107         (ia64_va_start): Adjust va_start address by -pretend_args_size.
108
109 2002-03-01  Kazu Hirata  <kazu@hxi.com>
110
111         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
112
113 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
114
115         * toplev.c (rest_of_compilation): Delete dead jumptables before
116         loop.
117         * flow.c (delete_dead_jumptables): Make global.
118         * rtl.h (delete_dead_jumptables): Declare.
119
120 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
121
122         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
123         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
124         * config/rs6000/xcoff.h (COLLET_EXPORT_LIST): Delete.
125
126 2002-03-01  Kazu Hirata  <kazu@hxi.com>
127
128         * config/h8300/h8300-protos.h: Fix formatting.
129         * config/h8300/h8300.c: Likewise.
130         * config/h8300/h8300.h: Likewise.
131
132 2002-03-01  Kazu Hirata  <kazu@hxi.com>
133
134         * config/h8300/h8300.c (print_operand): Support 16-bit
135         constant addresses.
136         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
137
138 2002-02-28  Richard Henderson  <rth@redhat.com>
139
140         * expmed.c (store_bit_field): Prevent generation of CONCATs;
141         pun complex values as integers; use gen_lowpart instead of
142         gen_rtx_SUBREG.
143         (extract_bit_field): Likewise.
144
145 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
146             David Edelsohn  <edelsohn@gnu.org>
147
148         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
149         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
150         (SUPPORTS_WEAK): Likewise.
151         * output.h (add_weak): Add tree param.
152         * varasm.c (add_weak): Likewise.  Save decl.
153         (struct weak_syms): Add decl field.
154         (mark_weak_decls): New function.
155         (init_varasm_once): ggc_add_root mark_weak_decls.
156         (assemble_start_function): Use ASM_WEAKEN_DECL.
157         (assemble_variable): Likewise.
158         (assemble_alias): Likewise.
159         (declare_weak): Pass decl to add_weak.
160         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
161         (remove_from_pending_weak_list): Declare and define for
162         ASM_WEAKEN_DECL.
163         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
164         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
165         * defaults.h (SUPPORTS_WEAK): Likewise.
166         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
167         .weak for code sym.  Do emit .size for descriptor sym.
168         (ASM_DECLARE_FUNCTION_SIZE): Define.
169         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
170         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
171         .lglobl unless TARGET_XCOFF.  Formatting fixes.
172         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
173         .weak for code sym.
174         (HANDLE_PRAGMA_WEAK): Remove.
175         (ASM_WEAKEN_LABEL): Remove.
176         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
177
178 2002-03-01  Jason Merrill  <jason@redhat.com>
179
180         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
181         (TARGET_EXPR_CLEANUP): New macro.
182
183 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
184
185         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
186         to take ptr_extend into account as third type of extension.
187         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
188         fields used by SUBREG_PROMOTED_UNSIGNED_P.
189         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
190         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
191         * calls.c (precompute_arguments): Use new macro.
192         (expand_call): Ditto.
193         * combine.c (nonzero_bits): Ditto.
194         (record_promoted_value): Ditto.
195         * expr.c (store_expr): Ditto.
196         (expand_expr): Ditto.
197         * function.c (assign_parms): Ditto.
198
199 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
200
201         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
202         override -shared and -shared-libgcc.
203
204 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
205
206         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
207         of "ultrasparc".
208         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
209         to be broken.
210
211 2002-02-28  Richard Henderson  <rth@redhat.com>
212
213         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
214         4 cycle latency from MM producers.
215         (ia64_internal_sched_reorder): Likewise with pipeline flush.
216
217 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
218
219         * mklibgcc.in: Don't use GNU make extension.
220
221 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
222
223         * c-parse.in (STATIC): New terminal.
224         (scspec): New non-terminal.  Update productions accordingly.
225         (program): Remove bogus ifc / end ifc.
226         (array_declarator): Simplify production using STATIC.
227
228 2002-02-28  Jim Meyering  <meyering@lucent.com>
229
230         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
231         \a still means TARGET_BELL.
232
233 2002-02-28  Richard Henderson  <rth@redhat.com>
234
235         * haifa-sched.c (sched_emit_insn): New.
236         (schedule_block): Use last_scheduled_insn to track last insn.
237         * sched-int.h (sched_emit_insn): Prototype.
238         * config/ia64/ia64.c (last_issued): Remove.
239         (ia64_variable_issue): Don't set it.
240         (nop_cycles_until): Use sched_emit_insn.
241
242 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
243
244         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
245         extended constants.
246
247 2002-02-28  Kazu Hirata  <kazu@hxi.com>
248
249         * config/h8300/h8300.c: Fix formatting.
250         * config/h8300/h8300.h: Likewise.
251
252 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
253
254         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
255         which may overwrite the high byte of the frame pointer.
256
257 2002-02-28  Bo Thorsen  <bo@suse.de>
258
259         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
260         (STARTFILE_SPEC): Add 64 bit files.
261         (ENDFILE_SPEC): Likewise.
262
263 2002-02-28  Jason Merrill  <jason@redhat.com>
264
265         * c-decl.c (finish_function): Only warn about missing return
266         statement with -Wreturn-type.
267
268 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
269
270         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
271
272         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
273         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
274
275 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
276
277         * basic-block.h (BB_REACHABLE): Renumber.
278         (BB_DIRTY, BB_NEW): New flags.
279         (clear_bb_flags): Declare.
280         (update_life_info_in_dirty_blocks): Declare.
281         * cfg.c (clear_bb_flags): New function.
282         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
283         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
284         reorder_insns, emit_insn_after): Mark block as dirty.
285         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
286         (update_life_info_in_dirty_blocks): New function.
287         * recog.c (apply_change_group): Dirtify block.
288
289         * cse.c (cse_insn): Reorder emitting of jump insn to keep
290         cfg consistent.
291         * gcse.c (delete_null_pointer_checks): Likewise.
292
293         * toplev.c (dump_file_index): Move cse2 after bp,
294         add DFI_null
295         (dump_file_info): Similary.
296         (rest_of_compilation): Avoid most of CFG rebuilds;
297         do first if converision after null pointer checks, do cse2
298         after branch prediction; avoid full liveness rebuild after
299         initializing subregs.
300         * invoke.texi (-d options): Document -du, renumber.
301
302         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
303         (notice_new_block): Do not set BB_UPDATE_LIFE.
304         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
305          merge_blocks_move_successor_nojumps, merge_blocks,
306          try_crossjump_to_edge): Likewise.
307         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
308         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
309         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
310         (merge_of_block): Do not use life_data_ok.
311         (find_if_case_1): Do not use SET_UPDATE_LIFE.
312         (if_convert): Use BB_DIRTY mechanizm to update life.
313         * lcm.c (optimize_mode_switching): Update
314         update_life_info_in_dirty_blocks
315
316 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
317
318         * Makefile.in (integrate.o): Update.
319         * c-decl.c (copy_lang_decl): Rename.
320         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
321         * integrate.c: Include langhooks.h.
322         (copy_decl_for_inlining): Update to use langhook.
323         * langhooks-def.h (lhd_do_nothing_t,
324         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
325         (LANG_HOOKS_INITIALIZER): Update.
326         * langhooks.c (lhd_do_nothing_t): New.
327         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
328         * tree.h (copy_lang_decl): Remove.
329 objc:
330         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
331
332 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
333
334         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC, 
335         POST_DEC, and POST_MODIFY.
336
337 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
338
339         * c-typeck.c (digest_init): Remove unused parameter; all
340         callers changed.
341
342 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
343
344         * expmed.c (expand_shift): Correctly test for low part of a
345         subreg.
346
347 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
348
349         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
350         insn UIDs with insn addresses.
351
352 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
353
354         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
355         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
356         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
357         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
358         gcc.c, toplev.c: Delete code implementing -traditional mode.
359
360         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
361         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
362         Document removal of -traditional mode for compilation, and
363         remove documentation only relevant to that mode.
364
365         * config/nextstep.h, config/ptx4.h, config/svr4.h,
366         config/convex/convex.h, config/d30v/d30v.h,
367         config/i386/dgux.h, config/i386/osf1elf.h,
368         config/i386/osfelf.h, config/i386/osfrose.h,
369         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
370         config/m68k/hp310.h, config/m88k/dgux.h,
371         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
372         config/m88k/m88k.h, config/m88k/openbsd.h,
373         config/mips/abi64.h, config/mips/osfrose.h,
374         config/mips/svr4-5.h, config/mips/svr4-t.h,
375         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
376         config/stormy16/stormy16.h: Remove all references to
377         -traditional from target specs.  Delete all mention of the
378         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
379         delete a couple of commented-out definitions of
380         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
381         to -traditional.
382
383         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
384         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
385
386 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
387
388         * mklibgcc.in: Don't use \n in a line subject to
389         interpretation by echo.
390
391 2002-02-27  Graham Stott  <grahams@redhat.com>
392
393         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
394         Constify NAME.
395
396         * loop.c (prescan_loop): Handle PARALLEL.
397
398         * unroll.c (loop_iterations): Return 0 if the add_val for
399         a BIV is REG.
400
401         * final.c (output_operand_lossage): Constify PFX_STR.
402
403         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
404
405 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
406
407         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
408         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
409
410 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
411
412         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
413
414 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
415
416         * cpplex.c (_cpp_lex_token): Handle directives in macro
417         arguments.
418         * cpplib.c (_cpp_handle_directive): Save and restore state
419         if parsing macro args when entering a directive.
420         * cppmacro.c (collect_args): No need to handle directives
421         in macro arguments.
422         (enter_macro_context, replace_args): Use the original macro
423         definition in case it was redefined whilst collecting arguments.
424 doc:
425         * cpp.texi: Update.
426
427 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
428
429         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
430         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
431         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
432         method on AIX.
433         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
434         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
435         (load_toc_v4_PIC_2): Same.
436
437 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
438
439         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
440
441 2002-02-26  Richard Henderson  <rth@redhat.com>
442
443         * config/alpha/alpha.md (ashldi_se): Re-enable.
444
445 2002-02-26  Richard Henderson  <rth@redhat.com>
446
447         * config/alpha/alpha.c (alpha_encode_section_info): Examine
448         MODULE_LOCAL_P; improve commentary.
449
450 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
451
452         * doc/cpp.texi: Clarify documentation of relationship between
453         #line and #include.
454
455 2002-02-26  Kazu Hirata  <kazu@hxi.com>
456
457         * config/h8300/h8300-protos.h: Update the prototype for
458         compute_logical_op_length.  Add the prototype for
459         compute_logical_op_cc.
460         * config/h8300/h8300.c (compute_logical_op_length): Figure out
461         code from operands.
462         (compute_logical_op_cc): New.
463         * config/h8300/h8300.md: Combine all the logical op patterns
464         in HImode and SImode.  Use compute_logical_op_cc.
465
466 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
467
468         * config/i386/i386.c (print_operand): Don't append ATT-style
469         length suffixs to x87 opcodes when in Intel mode.
470
471 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
472
473         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
474         (init_emit_once): Update calls.
475         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
476         (init_syntax_once): Prototype.
477
478 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
479
480         * pa-linux.h (LIB_SPEC): Update definition.
481         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
482
483 2002-02-26  Richard Henderson  <rth@redhat.com>
484
485         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
486         if we emitted a stop bit.
487
488 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
489
490         * configure.in (libgcc_visibility): Substitute.
491         * configure: Rebuilt.
492         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
493         defined symbols .hidden.
494
495 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
496
497         * attribs.c (c_common_attribute_table): Add visibility.
498         (handle_visibility_attribute): New function.
499         * varasm.c (assemble_visibility): New function.
500         * output.h (assemble_visibility): Add prototype.
501         * tree.h (MODULE_LOCAL_P): Define.
502         * crtstuff.c (__dso_handle): Use visibility attribute.
503         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
504         for MODULE_LOCAL_P symbols too.
505         * config/ia64/ia64.c (ia64_encode_section_info): Handle
506         MODULE_LOCAL_P symbols the same way as local symbols.
507         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
508         into .sdata/.sbss by the user.
509         * doc/extend.texi (Function Attributes): Document visibility
510         attribute.
511
512 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
513
514         PR debug/5770
515         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
516         STRING_CST initializer spanning the whole variable without
517         embedded zeros.
518         If expand_expr returned MEM, don't use it.
519
520 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
521
522         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
523         generate a die for the lexical block.
524
525 2002-02-26  Kazu Hirata  <kazu@hxi.com>
526
527         * config/h8300/h8300-protos.h: Add a prototype for
528         compute_logical_op_length.
529         * config/h8300/h8300.c (compute_logical_op_length): New.
530         * config/h8300/h8300.md (anonymous logical patterns): Use
531         compute_logical_op_length for length.
532
533 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
534
535         * dwarf2out.c (modified_type_die): Do not call type_main_variant
536         for vectors.
537         (gen_type_die): Same.
538
539         * attribs.c (handle_vector_size_attribute): Set debug information.
540
541 2002-02-26  Daniel Egger  <degger@fhm.edu>
542
543         * config/rs6000/rs6000.md: Swap define_insn attributes to
544         fix incorrect generation of merge high instructions instead
545         of merge low.
546
547 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
548
549         * c-typeck.c (really_start_incremental_init): Use
550         bitsize_zero_node for vectors.
551
552 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
553
554         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
555         ("*set_vrsave_internal"): Same.
556
557 2002-02-25  Richard Henderson  <rth@redhat.com>
558
559         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
560         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
561
562 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
563
564         PR target/5755
565         * config/i386/i386.c (ix86_return_pops_args): Only pop
566         fake structure return argument if it was passed on the stack.
567
568 2002-02-25  Jason Merrill  <jason@redhat.com>
569
570         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
571         RESULT_DECL.
572
573 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
574
575         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
576         link with shared_name only.
577         * doc/invoke.texi (Link Options): Document new behavior.
578
579 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
580
581         * c-typeck.c (push_init_level): Handle vectors.
582
583 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
584
585         * config/sparc/sparc.c (const64_high_operand): Zero-extend
586         operands of SPARC_SETHI_P.
587         (input_operand): Likewise.
588         (sparc_emit_set_const32): Likewise.
589         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
590         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
591         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
592         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
593         (movdi_insn_sp64_vis): Likewise.
594         (movdi split, movdf split): Use SETHI32.
595         * doc/md.texi: Document SPARC constraints L, M and N.
596
597 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
598
599         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
600         ("*set_vrsave_internal"): use mfspr for Darwin.
601
602         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
603         gen_get_vrsave_internal.
604
605 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
606
607         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
608
609 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
610
611         * cpplex.c (cpp_interpret_charconst): Get signedness or
612         otherwise of wide character constants correct.
613         * cppexp.c (lex): Get signedness of wide charconsts correct.
614
615 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
616
617         * optabs.c (widen_operand): Only call convert_modes for
618         promoted SUBREG if signedness matches.
619         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
620
621 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
622
623         * cpplib.c (glue_header_name): Use local buffer to build up
624         header name.
625
626 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
627
628         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
629
630 2002-02-23  Kazu Hirata  <kazu@hxi.com>
631
632         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
633         H8/300[HS] separately.
634         * config/h8300/h8300.md: Remove the early clobber constraint
635         from bit field patterns.
636
637 2002-02-23  Kazu Hirata  <kazu@hxi.com>
638
639         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
640         register_operand.
641         (mulhisi3): Likewise.
642         (umulqisi3): Likewise.
643         (umulhisi3): Likewise.
644
645 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
646
647         * cppinit.c (output_deps): Correct test for stdout output.
648         (init_dependency_output): Cure warning.
649
650 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
651
652         * expr.c (store_expr): When converting expression to promoted
653         equivalent type, allow using SUBREG_REG of TARGET as the target
654         of the expansion of EXP.
655         * loop.c (basic_induction_var, case SUBREG): Always look inside.
656         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
657         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
658         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
659         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
660
661 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
662
663         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
664         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
665         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
666
667 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
668
669         PR optimization/5747
670         * loop.c (scan_loop): Update reg info if move_movables created new
671         pseudos.
672
673 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
674
675         * gcc.c (init_gcc_spec): Revert last change.
676
677 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
678
679         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
680         gpc_reg_operand constraint.
681
682 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
683
684         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
685         Simplify comparison of `low'.
686         (add_operand): Fix formatting.
687         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
688         (mask_operand): Disallow mask to wrap in 64-bit mode.
689         (rs6000_stack_info): Remove redundant test setting push_p.
690         (output_toc): Fix formatting.
691         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
692         cc_reg_not_cr0_operand constraint.
693         (booldi3, boolcdi3 splitters): Same.
694
695 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
696
697         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
698
699 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
700
701         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
702         gcc invoked with -shared-libgcc.
703
704 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
705
706         PR c++/5748
707         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
708         decl if any of elements was TREE_USED.
709
710 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
711
712         * config/sparc/sol2.h: Don't include sys/mman.h.
713         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
714         (arith_4096_operand): Don't throw high bits away.
715         (const64_operand): Take sign extension of CONST_INTs into account.
716         (const64_high_operand, sparc_emit_set_const32): Likewise.
717         (GEN_HIGHINT64): Likewise.
718         (sparc_emit_set_const64_quick1): Likewise.
719         (const64_is_2insns): Likewise.
720         (print_operand): Use trunc_int_for_mode for sign extension.
721         * config/sparc/sparc.h (SMALL_INT32): Likewise.
722         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
723         chars.  Assume CONST_INT is already properly sign-extended.
724         (movdi split): Sign-extend each SImode part.
725         (andsi3 split): Don't mask high bits off, so that result
726         remains properly sign-extend.
727         (iorsi3 split): Likewise.
728         (xorsi3 split): Likewise.
729
730 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
731
732         * fold-const.c (fold): Fix typo in comments.
733
734 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
735
736         * Makefile.in (langhooks.o): Update dependencies.
737
738 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
739
740         * langhooks.c: Include flags.h.
741
742 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
743
744         * testsuite/gcc.dg/attr-alwaysinline.c: New.
745
746         * c-common.c (c_common_post_options): Set inline trees by
747         default.
748
749         * doc/extend.texi (Function Attributes): Document always_inline
750         attribute.
751         Update documentation about inlining when not optimizing.
752
753         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
754
755         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
756         unless DECL_ALWAYS_INLINE.
757
758         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
759         unless DECL_ALWAYS_INLINE.
760         (c_disregard_inline_limits): Disregard if always_inline set.
761
762         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
763         Disregard if always_inline set.
764         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
765         unless DECL_ALWAYS_INLINE.
766
767         * attribs.c (handle_always_inline_attribute): New.
768         (c_common_attribute_table): Add always_inline.
769
770         * config/rs6000/altivec.h: Add prototypes for builtins
771         requiring the always_inline attribute.
772
773 2002-02-21  Eric Christopher  <echristo@redhat.com>
774
775         * expmed.c (store_bit_field): Try to simplify the subreg
776         before generating a new one when when the mode size of
777         value is less than maxmode.
778
779 2002-02-21  Richard Henderson  <rth@redhat.com>
780
781         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
782         than gen_rtx_PLUS to form the sum.
783         * explow.c (force_reg): Rearrange to not allocate new pseudo
784         when force_operand returns a register.
785         * expr.c (expand_assignment): Allow offset_rtx expansion to
786         return a sum.  Do not force addresses into registers.
787         (expand_expr): Likewise.
788         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
789         to canonicalize arithmetic that didn't simpify.
790         (simplify_plus_minus): New argument force; update
791         all callers.  Don't split CONST unless we can do something with it,
792         and wouldn't lose the constness of the operands.
793
794         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
795         that we generated earlier.
796
797 2002-02-21  Tom Tromey  <tromey@redhat.com>
798
799         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
800         (output_line_info): Use constant `1', with a long explanatory
801         comment.
802         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
803
804 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
805
806         * jump.c (redirect_jump): If old label has no UID, don't try to
807         delete it.
808
809 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
810
811         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
812         If input is constant, do shifts at compile time.
813
814 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
815
816         * doc/extend.texi: Fix some more overfull hboxes.
817
818 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
819
820         PR optimization/4994
821         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
822         register moves.
823
824 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
825
826         PR c++/4574
827         * expr.h (expand_and): Add mode argument.
828         * expmed.c (expand_and): Add mode argument.
829         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
830         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
831         * except.c (expand_builtin_extract_return_addr): Likewise.
832         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
833         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
834         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
835         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
836         * config/c4x/c4x.md: Use GEN_INT (x) instead of
837         gen_rtx (CONST_INT, VOIDmode, x).
838
839 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
840
841         PR c/4697:
842         * stmt.c (warn_if_unused_value): Move side effects test once more.
843
844 2002-02-20  Torbjorn Granlund  <tege@swox.com>
845
846         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
847         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
848
849 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
850
851         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
852         SUBREG or ZERO_EXTEND.
853
854 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
855
856         * sh.h (current_function_anonymous_args): Remove.
857         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
858         of current_function_varargs and current_function_stdarg is set.
859         * sh.c (sh_expand_prologue): Check current_function_varargs /
860         current_function_stdarg / TARGET_SH5 instead of
861         current_function_anonymous_args.
862
863         * sh64.h (TARGET_VERSION): Define.
864
865 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
866
867         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
868         VRSAVE_REGNO on TARGET_ALTIVEC.
869
870 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
871
872         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
873         bits of SImode const_int.
874         (includes_rshift_p): Likewise.
875         (print_operand): Call mask_operand and mask64_operand with correct
876         mode.
877         (rs6000_output_function_epilogue): Pad traceback table to word.
878         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
879         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
880         mask64_operand with correct mode.
881         (FUNCTION_ARG_REGNO_P): Correct parentheses.
882
883 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
884
885         PR debug/4461
886         * varasm.c (get_pool_constant_mark): New.
887         * rtl.h (get_pool_constant_mark): Add prototype.
888         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
889         be represented if it has not been output.
890
891 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
892
893         * combine.c (do_SUBST): Sanity check substitutions of
894         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
895         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
896         CONST_INT into its operand.
897         (known_cond): Likewise, for ZERO_EXTEND.
898         * simplify-rtx.c (simplify_unary_operation): Fix condition to
899         allow for simplification of wide modes.  Reject CONST_INTs in
900         ZERO_EXTEND when their actual mode is not given.
901
902 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
903
904         * c-decl.c (pushdecl): If no global declaration is found for an
905         extern declaration in block scope, try a limbo one.
906
907 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
908
909         PR c++/4401
910         * c-common.c (pointer_int_sum): Moved from...
911         * c-typeck.c (pointer_int_sum): ...here.
912         * c-common.h (pointer_int_sum): Add prototype.
913
914 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
915
916         PR c++/5713
917         * c-decl.c (duplicate_decls): Return 0 if issued error about
918         redeclaration.
919
920 2002-02-20  Roger Sayle  <roger@eyesopen.com>
921             Jakub Jelinek  <jakub@redhat.com>
922
923         PR c/4389
924         * tree.c (host_integerp): Ensure that the constant integer is
925         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
926         when pos is zero or non-zero respectively.  Clarify comment.
927         * c-format.c (check_format_info_recurse): Fix host_integerp
928         usage; the pos argument should be zero when assigning to a
929         signed HOST_WIDE_INT.
930
931 2002-02-20  Richard Henderson  <rth@redhat.com>
932
933         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
934         of the operand, rather than assuming TImode.
935         (ix86_expand_binop_builtin): Cope with commutative patterns
936         using nonimmediate_operand for both operands.
937         (ix86_expand_timode_binop_builtin): Likewise.
938         (ix86_expand_store_builtin): Validate operand 1.
939         (ix86_expand_unop1_builtin): Likewise.
940
941 2002-02-20  Philip Blundell  <philb@gnu.org>
942
943         PR 5705
944         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
945
946 2002-02-20  Richard Henderson  <rth@redhat.com>
947
948         PR c/5615
949         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
950
951 2002-02-20  Tom Tromey  <tromey@redhat.com>
952
953         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
954         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
955         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
956         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
957         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
958         unconditionally.
959
960 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
961
962         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
963           for (const_int 0) in X not just INTVAL.
964
965 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
966
967         * doc/extend.texi: Avoid or reduce overfull hboxes.
968
969 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
970
971         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
972         operations if the field does not start at a mode boundary.
973
974 2001-02-20      Joel Sherrill <joel@OARcorp.com>
975
976         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
977         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
978         Also done for -Acpu and -Amachine.
979
980 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
981
982         * cppinit.c (init_dependency_output): Take deps output file
983         from -o if none given with -MF.  Suppress normal output.
984         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
985         * doc/cpp.texi, doc/invoke.texi: Update.
986
987 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
988
989         * toplev.c (output_quoted_string): Write unprintable
990         characters with octal escapes.
991
992 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
993
994         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
995         really_call_used[VRSAVE_REGNO] if not Altivec.
996
997 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
998
999         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
1000         MODE_MASK.
1001         (constant_pool_expr_1): Fix formatting.
1002         (rs6000_legitimize_reload_address): Likewise.
1003
1004 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1005
1006         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
1007         now that we have one.
1008
1009 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
1010
1011         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
1012         end of first block of bitfields (which was only seven bits);
1013         rename dummy to unused_1; remove comment which is no longer true.
1014
1015 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
1016
1017         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
1018
1019 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
1020
1021         PR 5399
1022         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
1023         if generating PIC.
1024
1025         PR 5054
1026         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
1027         arm_is_longcall_p rather than inspecting call-type cookie
1028         directly.
1029         (call_value_insn) [TARGET_THUMB]: Likewise.
1030
1031 2002-02-19  Graham Stott  <grahams@redhat.com>
1032
1033         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
1034
1035 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
1036
1037         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
1038         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
1039         (FP_SAVE_INLINE): Delete.
1040
1041         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
1042         * config/rs6000/eabi.asm: Remove ABI save restore routines.
1043         * config/rs6000/t-ppccomm: Build crtsavres.o.
1044         * config/rs6000/crtsavres.asm: New file.
1045
1046 2002-02-19  Philip Blundell  <philb@gnu.org>
1047
1048         * config/arm/arm.c (use_return_insn): Don't reject interrupt
1049         functions.
1050         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
1051         (output_return_instruction): Allow interrupt functions to return with
1052         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
1053         (arm_expand_prologue): Subtract 4 before stacking LR in an
1054         interrupt function.
1055
1056 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
1057
1058         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
1059         decl, not just FUNCTION_DECL.
1060         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
1061         (arm_assemble_integer): Likewise.
1062         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
1063         marked local.
1064
1065 2002-02-19  matthew green  <mrg@eterna.com.au>
1066
1067         * config.gcc (sparc-*-netbsdelf*): Enable target.
1068         (sparc64-*-netbsd*): New target.
1069         * config/sparc/netbsd-elf.h: New file.
1070         * config/sparc/t-netbsd64: New file.
1071
1072 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
1073
1074         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
1075
1076 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
1077
1078         * doc/invoke.texi: explicitly list the style guidelines that
1079         -Weffc++ checks for.
1080
1081 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
1082
1083         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
1084
1085 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1086
1087         PR other/5718
1088         * gcc.c (cpp_unique_options): Treat -o as indicating object file
1089         only if not -E.  If -E, pass -o through to the preprocessor.
1090
1091 2002-02-19  Kazu Hirata  <kazu@hxi.com>
1092
1093         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
1094         register number with an appropriate macro.
1095
1096 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1097
1098         * doc/rtl.texi (Constants): Close @code tag.
1099
1100 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
1101
1102         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
1103         ("mmx_uavgv4hi3"): Same.
1104         ("pmulhrwv4hi3"): Same.
1105
1106         * tree-inline.c (walk_tree): Handle vectors.
1107
1108         * c-common.c (constant_expression_warning): Handle vectors.
1109         (overflow_warning): Same.
1110
1111         * sched-deps.c (sched_analyze_2): Handle vectors.
1112
1113         * rtlanal.c (rtx_unstable_p): Handle vectors.
1114         (rtx_varies_p): Same.
1115         (count_occurrences): Same.
1116         (regs_set_between_p): Same.
1117         (modified_between_p): Same.
1118         (modified_in_p): Same.
1119         (volatile_insn_p): Same.
1120         (volatile_refs_p): Same.
1121         (side_effects_p): Same.
1122         (may_trap_p): Same.
1123         (inequality_comparisons_p): Same.
1124         (replace_regs): Same.
1125         (computed_jump_p_1): Same.
1126
1127         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
1128         argument.
1129         (inner_mode_array): New.
1130         (copy_rtx): Handle vectors.
1131         (copy_most_rtx): Same.
1132         (rtx_equal_p): Same.
1133         (get_mode_alignment): Adjust for vectors.
1134
1135         * resource.c (mark_referenced_resources): Handle vectors.
1136         (mark_set_resources): Same.
1137
1138         * reload1.c (eliminate_regs): Handle vectors.
1139         (elimination_effects): Same.
1140         (scan_paradoxical_subregs): Same.
1141
1142         * reload.c (subst_reg_equivs): Handle vectors.
1143
1144         * regrename.c (scan_rtx): Handle vectors.
1145
1146         * regclass.c (reg_scan_mark_refs): Handle vectors.
1147
1148         * recog.c (find_single_use_1): Handle vectors.
1149
1150         * local-alloc.c (equiv_init_varies_p): Handle vectors.
1151         (contains_replace_regs): Same.
1152         (memref_referenced_p): Same.
1153
1154         * integrate.c (copy_rtx_and_substitute): Handle vectors.
1155         (subst_constants): Same.
1156
1157         * genattrtab.c (attr_copy_rtx): Handle vectors.
1158         (encode_units_mask): Same.
1159         (clear_struct_flag): Same.
1160         (count_sub_rtxs): Same.
1161
1162         * gcse.c (want_to_gcse_p): Handle vectors.
1163         (oprs_unchanged_p): Same.
1164         (hash_expr_1): Same.
1165         (oprs_not_set_p): Same.
1166         (expr_killed_p): Same.
1167         (compute_transp): Same.
1168         (store_ops_ok): Same.
1169
1170         * function.c (purge_addressof_1): Do not allow paradoxical subregs
1171         of vectors.
1172         (fixup_var_refs_1): Same.
1173         (instantiate_virtual_regs_1): Same.
1174
1175         * fold-const.c (operand_equal_p): Handle vectors.
1176         (fold): Same.
1177         (rtl_expr_nonnegative_p): Same.
1178
1179         * flow.c (mark_used_regs): Handle vectors.
1180
1181         * df.c (df_uses_record): Handle vectors.
1182
1183         * cselib.c (cselib_subst_to_values): Handle vectors.
1184         (cselib_mem_conflict_p): Same.
1185         (hash_rtx): Same.
1186
1187         * cse.c (canon_reg): Handle vectors.
1188         (fold_rt): Same.
1189         (cse_process_notes): Same.
1190         (count_reg_usage): Same.
1191         (canon_hash): Same.
1192
1193         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
1194
1195         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
1196
1197         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
1198         (gen_rtx): Handle CONST_VECTOR.
1199         (gen_const_vector_0): New.
1200         (copy_rtx_if_shared): CONST_VECTORs can be shared.
1201         (reset_used_flags): Same.
1202         (copy_insn_1): Same.
1203         (initializer_constant_valid_p): Handle VECTOR_CST.
1204
1205         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
1206
1207         * doc/rtl.texi (Constants): Document const_vector.
1208         (CONST0_RTX): Update for vectors.
1209         (RTL sharing): Same.
1210
1211         * print-tree.c (print_node): Add case for VECTOR_CST.
1212
1213         * tree.h (TREE_VECTOR_CST_ELTS): New.
1214         (struct tree_vector): New.
1215         (union tree_node): Add vector node.
1216         (build_vector): Add prototype.
1217
1218         * tree.def (VECTOR_CST): New.
1219
1220         * tree.c (build_vector): New.
1221
1222         * expmed.c (make_tree): Handle CONST_VECTOR.
1223
1224         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
1225         (CONST_VECTOR_ELT): New.
1226         (CONST_VECTOR_NUNITS): New.
1227
1228         * machmode.h (GET_MODE_INNER): New.
1229         (DEF_MACHMODE): Accept 8th arg.
1230
1231         * machmode.def: Add 8th argument for vector inner mode.
1232         Add inner vector modes for vectors.
1233
1234         * rtl.def (VEC_CONST): Remove.
1235         (CONST_VECTOR): New.
1236
1237         * expr.c (clear_storage): Allow vectors.
1238         (is_zeros_p): Handle VECTOR_CST.
1239
1240         * varasm.c (output_constant_pool): Handle vectors.
1241         (rtx_const): Add veclo and vechi fields.
1242         (kind): Add RTX_VECTOR.
1243         (decode_rtx_const): Add case for vector.
1244
1245         * config/rs6000/rs6000-protos.h: Add zero_constant.
1246
1247         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
1248         constants.  Force easy vector constants into memory.
1249         (easy_vector_constant): New.
1250         (emit_easy_vector_constant): New.
1251         (rs6000_legitimize_reload_address): Do not generate bad reloads on
1252         darwin.
1253
1254         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
1255         instruction does.
1256         ("altivec_lvxl"): Same.
1257         (altivec_lvebx): Same.
1258         (altivec_lvehx): Same.
1259         (altivec_lvewx): Same.
1260         ("*movv4si_const0"): New.
1261         ("*movv4sf_const0"): New.
1262         ("*movv8hi_const0"): New.
1263         ("*movv16qi_const0"): New.
1264
1265 2002-02-18  Kazu Hirata  <kazu@hxi.com>
1266
1267         * config/h8300/h8300.c (notice_update_cc): Use
1268         cc_status.value2.
1269
1270 2002-02-18  Kazu Hirata  <kazu@hxi.com>
1271
1272         * config/h8300/h8300.md (divmod patterns): Change the
1273         constraints for operands[1] to register_operand.
1274
1275 2002-02-18  Kazu Hirata  <kazu@hxi.com>
1276
1277         * config/h8300/h8300-protos.h: Remove the prototype for
1278         p_operand.
1279         * config/h8300/h8300.c (p_operand): Remove.
1280         * config/h8300/h8300.md: Replace p_operand with
1281         const_int_operand.
1282
1283 2002-02-18 Philip Blundell <pb@nexus.co.uk>
1284
1285         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
1286         comment.
1287         (output_return_instruction): Allow use of LDR to unstack
1288         return addresss even for interrupt handlers or when
1289         interworking.  If compiling for ARMv5, use interworking-safe
1290         return instructions by default.  Remove duplicated code and
1291         lengthy "strcat" sequences.
1292
1293 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1294
1295         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1296         (LINK_EH_SPEC): Define.
1297         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
1298
1299 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
1300
1301         * config/s390/s390.c (s390_emit_prologue): Do not set the
1302         frame_related flag for call-clobbered registers.
1303
1304 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
1305
1306         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
1307         (construct_container): Fix handling of SSE operands.
1308         (ix86_expand_builtin): Fix handling of 64bit pointers.
1309         (mmx_maskmovq_rex): New pattern.
1310
1311 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1312
1313         * regrename.c (kill_set_value): Handle subregs properly.
1314
1315 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
1316
1317         * objc/objc-act.c (handle_impent): Remove leading '*'
1318         from objc_class_name.
1319
1320 2002-02-17  Richard Henderson  <rth@redhat.com>
1321
1322         * config/alpha/alpha.c (some_small_symbolic_operand,
1323         some_small_symbolic_operand_1, split_small_symbolic_operand,
1324         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
1325         Handle small SYMBOL_REFs anywhere, not just inside memories.
1326         * config/alpha/alpha-protos.h: Update.
1327         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1328         * config/alpha/alpha.md (small symbolic operand splitter): Update.
1329
1330 2002-02-17  Roland McGrath  <roland@frob.com>
1331
1332         * config.gcc (powerpc-*-gnu-gnualtivec*,
1333         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
1334         * config/rs6000/gnu.h: New file.
1335         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
1336         Grok "gnu" in rs6000_abi_name.
1337         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
1338         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
1339         Grok -mcall-gnu analogous to -mcall-linux et al.
1340         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1341         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
1342         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
1343
1344 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
1345
1346         PR c/3444:
1347         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
1348         shortening.
1349
1350 2002-02-17  Philipp Thomas  <pthomas@suse.de>
1351
1352         * config/cris/cris.h: Undefine STARTFILE_SPEC and
1353         ENDFILE_SPEC before (re)defining them.
1354
1355 2002-02-17  Kazu Hirata  <kazu@hxi.com>
1356
1357         * config/h8300/h8300.c: Fix formatting.
1358         * config/h8300/h8300.h: Likewise.
1359
1360 2002-02-17  Philipp Thomas  <pthomas@suse.de>
1361
1362         * doc/tm.texi: Explain why empty strings should not be
1363         marked for translation.
1364
1365 2002-02-17  Philipp Thomas  <pthomas@suse.de>
1366
1367         * final.c (output_operand_lossage): Changed to accept
1368         printf style arguments. Change calls where necessary.
1369         * output.h (output_operand_lossage): Change declaration
1370         accordingly. Update copyright.
1371         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
1372         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
1373         Update copyright date where necessary.
1374
1375         * config/i386/i386.c (print_operand): Likewise. Remove use of
1376         sprintf.
1377
1378         * config/cris/cris.c (cris_operand_lossage): Likewise.
1379         Rename parameter so that exgettext recognizes it as
1380         translatable message.
1381         (LOSE_AND_RETURN): Rename parameter to msgid.
1382
1383 2002-02-17  Kazu Hirata  <kazu@hxi.com>
1384
1385         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
1386         hard coded register number with an appropriate macro.
1387         (HARD_REGNO_MODE_OK): Likewise.
1388         (ARG_POINTER_REGNUM): Likewise.
1389         (STATIC_CHAIN_REGNUM): Likewise.
1390         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
1391         * config/h8300/h8300.md (define_constants): Define more
1392         register numbers.
1393
1394 2002-02-17  Philipp Thomas  <pthomas@suse.de>
1395
1396         * config/i386/i386.h: Don't mark empty strings for translation.
1397
1398 2002-02-16  H.J. Lu <hjl@gnu.org>
1399
1400         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
1401
1402 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
1403
1404         * cppinit.c (merge_include_chains): Check for brack being
1405         NULL before attempting to merge it with qtail.
1406
1407 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
1408
1409         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
1410         DBX_DEBUG.
1411
1412 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1413
1414         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
1415
1416 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1417
1418         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
1419         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
1420         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
1421
1422 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1423
1424         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1425         now only if !TARGET_FIX.
1426         (*movsi_nt_vms_fix): New pattern.
1427
1428 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
1429
1430         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
1431         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
1432         (alpha_sa_mask, alpha_sa_size): Reflect above change.
1433         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
1434         (alpha_start_function, alpha_expand_epilogue): Likewise.
1435         (unicosmk_gen_dsib): Likewise.
1436
1437 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1438
1439         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
1440
1441 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
1442
1443         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
1444         check_and_change_labels, s390_final_chunkify): Delete.
1445         (s390_split_branches, s390_chunkify_pool): New functions.
1446         (s390_function_prologue): Call them.
1447
1448         * config/s390/s390.h (S390_REL_MAX): Delete.
1449         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
1450
1451         * config/s390/s390.md (cjump, icjump, jump): Fix length
1452         attribute calculation.
1453
1454
1455 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
1456
1457         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
1458         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
1459
1460 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1461
1462         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
1463         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
1464         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
1465
1466 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
1467
1468         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
1469
1470 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
1471
1472         * reload.c (find_dummy_reload): Check that an output register
1473         is valid for its mode.
1474
1475 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
1476
1477         * combine.c (known_cond): After replacing the REG of a SUBREG, try
1478         to simplify it.
1479
1480         * function.c (assign_parms): Demote promoted argument passed by
1481         transparent reference.
1482
1483 2001-02-14      Joel Sherrill <joel@OARcorp.com>
1484
1485         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
1486         -Acpu() and -Amachine() to eliminate warnings.
1487
1488 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
1489
1490         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
1491
1492 2002-02-14  Kazu Hirata  <kazu@hxi.com>
1493
1494         * config/h8300/h8300-protos.h: Update the prototype for
1495         const_costs.
1496         * config/h8300/h8300.c (const_costs): Treat SET as a little
1497         more expensive operation.
1498         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
1499         reference to const_costs.
1500
1501 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
1502
1503         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
1504
1505 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
1506
1507         PR c/5503:
1508         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
1509         use arguments from newtype.
1510
1511 2002-02-13  Eric Christopher  <echristo@redhat.com>
1512
1513         * config/mips/mips.c (override_options): Add check for march/mipsX
1514         on the same command line. Fix error message in cpu processing.
1515         Remove architecture and ISA checks.
1516
1517 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
1518
1519         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
1520
1521         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
1522
1523 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
1524
1525         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
1526         alternatives.
1527         ("*movv8hi_internal1"): Same.
1528         ("*movv16qi_internal1"): Same.
1529         ("*movv4sf_internal1"): Same.
1530
1531         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1532         not push_reload for altivec modes.
1533
1534 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
1535
1536         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
1537         all RTEMS targets including removal of #includes from config/*/rtems*.h
1538         file and adding them to tm_file setting. Added xm_defines=POSIX to
1539         many targets.
1540         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
1541         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
1542         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
1543         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
1544         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
1545         config/m68k/rtemself.h: Ditto.
1546         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
1547         config/mips/rtems64.h: Ditto.
1548         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
1549         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
1550         Ditto.
1551         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
1552         config/sparc/rtemself.h: Ditto.
1553         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
1554         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
1555         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
1556         more like arm-elf.
1557         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
1558         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
1559         target made more similar to i386-elf.
1560         * config/i386/t-rtems-i386: Added soft float support and multilibs.
1561         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
1562         be similar to config/m68k/t-m68kelf.
1563         * gthr-rtems.h: Encapsulate with extern "C" for C++.
1564
1565 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
1566
1567         * regmove.c (kill_value): Handle subregs.
1568
1569 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
1570
1571         * i386.md (mul patterns): Allow memory operand to be first;
1572         add expanders where needed; fix constraints.
1573         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
1574         Allow memory operand to be the first.
1575
1576         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
1577         operands.
1578
1579 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
1580
1581         PR c/5681:
1582         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
1583         GET_MODE (x).
1584
1585 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
1586
1587         PR optimization/5547:
1588         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
1589         all valid IA-32 address modes involving non-scaled %ebx and
1590         GOT/GOTOFF as displacement.
1591
1592 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
1593
1594         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
1595         after emitting ltorg insns.
1596
1597         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
1598         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
1599         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
1600         *abssf2): Fix "op_type" attribute.
1601
1602 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
1603
1604         * mkconfig.sh: Avoid using a subshell redirect.
1605         ($output.T): Change to $(output)T.
1606         (ENABLE_NLS): Remove unneeded undef.
1607
1608         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1609         * config/alpha/x-vms (libsubdir): Define.
1610
1611         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
1612         register frame procedures. Optimize retrieving context.
1613
1614         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
1615         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
1616         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
1617
1618 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1619
1620         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1621         Make same change as for find_base_value.
1622
1623 2002-02-13  Kazu Hirata  <kazu@hxi.com>
1624
1625         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1626         of QImode and SImode.
1627
1628 2002-02-13  Kazu Hirata  <kazu@hxi.com>
1629
1630         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1631         length computation of movsi.
1632         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1633
1634 2002-02-13  Kazu Hirata  <kazu@hxi.com>
1635
1636         * config/h8300/h8300.md (subqi3): Tighten the predicate for
1637         operands[2] to register_operand.
1638
1639 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
1640
1641         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1642
1643 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
1644
1645         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1646         for altivec_lvx* and altivec_stvx*.
1647         ("*movv4si_internal"): Add constraint for loading from GPRs.
1648         ("*movv8hi_internal1"): Same.
1649         ("*movv16qi_internal1"): Same.
1650         ("*movv4sf_internal1"): Same.
1651
1652         * config/rs6000/rs6000.c (altivec_register_operand): New.
1653
1654         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1655         altivec_register_operand.
1656
1657 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
1658
1659         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1660         handle SYMBOL_REF.
1661
1662 2002-02-13  Stan Shebs  <shebs@apple.com>
1663
1664         * c-typeck.c (digest_init): Handle vectors.
1665         (really_start_incremental_init): Same.
1666         (pop_init_level): Same.
1667         (process_init_element): Same.
1668
1669         * varasm.c (output_constant): Same.
1670
1671         * expr.c (clear_storage): Same.
1672         (store_constructor): Same.
1673
1674 2002-02-12  Eric Christopher  <echristo@redhat.com>
1675
1676         * explow.c (hard_function_value): Add comment explaining
1677         signed/unsigned comparison.
1678
1679 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1680
1681         * jump.c (never_reached_warning): Add finish argument.
1682         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1683         real insn after end.
1684         * rtl.h (never_reached_warning): Adjust prototype.
1685         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1686         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1687         never_reached_warning.
1688
1689 2002-02-12  Graham Stott  <grahams@redhat.com>
1690
1691         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1692
1693 2002-02-12  Kazu Hirata  <kazu@hxi.com>
1694
1695         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1696         logical shifts on H8/300.
1697         (shift_alg_si): Improve several shifts on H8/300.
1698         (get_shift_alg): Likewise.
1699
1700 2002-02-12  Graham Stott  <grahams@redhat.com>
1701
1702         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1703
1704 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1705
1706         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
1707         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
1708
1709 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
1710
1711         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
1712         non-CONST_INT through default_assemble_integer.
1713         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
1714         <case 8>: Abort for CONST_DOUBLE.
1715
1716 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1717
1718         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
1719         is specified.
1720         * config/pa/pa-linux.h (LIB_SPEC): Delete.
1721         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1722
1723 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
1724
1725         * config/stormy16/stormy16.md (zero_extendqihi2): New.
1726
1727 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
1728
1729         * regrename.c (regrename_optimize): Don't accept a
1730         part-clobbered register if the replaced register is not part
1731         clobbered.
1732
1733         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
1734         take padding into account when computing the argument value.
1735
1736         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
1737
1738         * combine.c (try_combine): Apply substitutions in
1739         CALL_INSN_FUNCTION_USAGE too.
1740
1741 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
1742
1743         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
1744         __builtin_altivec_abs*.
1745         (bdesc_abs): New.
1746
1747         * config/rs6000/rs6000.h (rs6000_builtins): Add
1748         ALTIVEC_BUILTIN_ABS*.
1749
1750         * config/rs6000/altivec.h: Use const char for builtins expecting
1751         literals.
1752         (vec_abs): New versions for C and C++.
1753         (vec_abss): Same.
1754
1755 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1756
1757         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
1758         using Pmode.
1759
1760 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1761
1762         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
1763         constant definition from h8300.md.
1764         (FRAME_POINTER_REGNUM): Likewise.
1765         * config/h8300/h8300.md (define_constants): Add FP_REG.
1766
1767 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1768
1769         * config/h8300/h8300.c (print_operand): Remove redundant code.
1770
1771 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1772
1773         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
1774         * config/h8300/h8300.c (byte_reg): Make it static.
1775
1776 2002-02-10  Richard Henderson  <rth@redhat.com>
1777
1778         PR c/5623
1779         * c-typeck.c (incomplete_type_error): Handle flexible array members.
1780
1781 2002-02-10  Richard Henderson  <rth@redhat.com>
1782
1783         PR c++/5624
1784         * tree.c (append_random_chars): Don't abort if main_input_filename
1785         does not exist.
1786
1787 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
1788
1789         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
1790
1791 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1792
1793         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
1794         (pushhi1): Likewise.
1795
1796 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1797
1798         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
1799         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
1800
1801 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
1802
1803         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
1804         remove MASK_VIS.
1805         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
1806
1807 2002-02-09  Kazu Hirata  <kazu@hxi.com>
1808
1809         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
1810         a half of an SImode register on H8/300.
1811
1812 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
1813
1814         * i386.md (movdi_2): Add missing '!'.
1815
1816 2002-02-09  Kazu Hirata  <kazu@hxi.com>
1817
1818         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
1819         definitions.
1820
1821 2002-02-09  Kazu Hirata  <kazu@hxi.com>
1822
1823         * config/h8300/h8300.md (length): Correct the distance valid
1824         for the short branch.
1825
1826 2002-02-09  Kazu Hirata  <kazu@hxi.com>
1827
1828         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
1829
1830 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
1831
1832         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
1833         registers in SImode.
1834         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
1835         part-clobbered.
1836
1837         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
1838         patch.
1839
1840         Contribute sh64-elf.
1841         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
1842         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
1843         (sh_cannot_modify_jumps_p): New function.
1844         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
1845         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
1846         (sh_ms_bitfield_layout_p): New function.
1847         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
1848                     Zack Weinberg  <zack@codesourcery.com>
1849         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
1850         expand_simple_binop instead of expand_binop.
1851         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
1852         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
1853         use of .quad and .uaquad.
1854         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
1855         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
1856         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1857         * config/sh/sh.md (movdi_const, movdi_const_32bit,
1858         movdi_const_16bit): Make sure all CONSTs have modes.
1859         (sym2PIC): Ditto, but by adjusting all callers.
1860         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
1861         if the prologue calls the SHmedia argument decoder or register
1862         saver.
1863         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1864         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
1865         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1866         (sh_expand_epilogue): Don't emit USE of return target register.
1867         (prepare_move_operands): Legitimize DImode PIC addresses.
1868         (sh_media_register_for_return): Skip tr0, used to initialize the
1869         PIC register.
1870         (sh_expand_prologue): Remove explicit USE of return register.
1871         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
1872         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
1873         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
1874         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
1875         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
1876         EXTRA_CONSTRAINT_T.
1877         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
1878         (MOVI_SHORI_BASE_OPERAND_P): New.
1879         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
1880         (EXTRA_CONSTRAINT_T): Define in terms of them.
1881         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
1882         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
1883         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
1884         alternatives supporting TARGET_REGS.
1885         (UNSPEC_GOTPLT): New constant.
1886         (movdi split): Move incrementing of LABEL_NUSES...
1887         (movdi_const, movdi_const_32bit): Here.  Use
1888         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
1889         (movdi_const_16bit): New.
1890         (call, call_value) [flag_pic]: Use GOTPLT.
1891         (call_pop, call_value_pop): New expands.
1892         (call_pop_compact, call_pop_rettramp): New insns.
1893         (call_value_pop_compact, call_value_pop_rettramp): New insns.
1894         (sibcall) [flag_pic]: Use GOT.
1895         (builtint_setjmp_receiver): Remove bogus, unused expand.
1896         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
1897         (*pt, *ptb, ptrel): New insns.
1898         (sym2GOT): Handle DImode GOT.
1899         (sym2GOTPLT, symGOTPLT2reg): New expands.
1900         (sym2PIC): New expand.
1901         (shcompact_return_tramp): Use GOTPLT to return trampoline.
1902         (shcompact_return_tramp_i): Use return register explicitly.
1903         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
1904         disable flag_reorder_blocks.
1905         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
1906         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
1907         clobbers, for clarity.
1908         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
1909         restoring of r0 in macl as MAYBE_DEAD.
1910         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1911         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
1912         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
1913         alter_subreg all over.
1914         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
1915         reload, instead of emitting instructions that would require
1916         reloading.
1917         (casesi_load_media): Add missing modes.
1918         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
1919         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
1920         as used if the argument decoder is called.
1921         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
1922         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
1923         Pmode, then extend it to DImode if necessary.
1924         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
1925         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
1926         constants in FPU-enabled SHmedia, let them be loaded from memory.
1927         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
1928         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
1929         Adjust whitespace in assembly output templates.
1930         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
1931         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
1932         mode of if_then_else.
1933         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
1934         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
1935         sh.h.
1936         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
1937                     Joern Rennecke <amylaar@redhat.com>
1938         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
1939         (SUBTARGET_CPP_PTR_SPEC): New.
1940         (SUBTARGET_CPP_SPEC): Remove.
1941         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
1942         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1943         Fix typo in previous checkin.
1944         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
1945         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
1946         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
1947                     Alexandre Oliva  <aoliva@redhat.com>
1948         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
1949         what single FP register can hold for SHmedia target.
1950         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
1951                     Alexandre Oliva  <aoliva@redhat.com>
1952         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1953         Do not split into SUBREG.
1954         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
1955         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
1956         and added new functions as specified in SH5 ABI r9.
1957         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
1958         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1959         8-byte boundary.
1960         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
1961         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1962         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
1963         and consttable_window_ends.
1964         2001-06-03  Graham Stott  <grahams@redhat,com>
1965         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1966         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
1967         * config/sh/sh.c (print_operand): Handle floating-point pair,
1968         vector and matrix registers.
1969         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1970         vector modes into account.
1971         * config/sh/sh.md (movv2sf): Split move between registers into
1972         movdf.
1973         (movv4sf, movv16sf): Introduce insns that get split only after
1974         reload.
1975         * config/sh/shmedia.h: Fix Copyright dates.
1976         * config/sh/ushmedia.h: Likewise.  Move loop counter
1977         declarations into conditionals that uses them.
1978         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1979         loop boundary.
1980         * config/sh/sshmedia.h: Fix Copyright dates.
1981         (sh_media_PUTCFG): Fix constraints.
1982         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
1983         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1984         ptrmemfunc_vbit_in_delta for SH5.
1985         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
1986         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1987         * invoke.texi: Likewise.
1988         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1989         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1990         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1991         GCC_pop_shmedia_regs_nofpu): New global symbols.
1992         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1993         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1994         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1995         compact function with nonlocal labels.
1996         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1997         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1998         (initial_elimination_offset): Account for their stack space.
1999         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
2000         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
2001         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
2002         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
2003         least one of the operands to be a register.
2004         (movv2sf): Likewise.  Renamed to movv2sf_i.
2005         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
2006         prepare_move_operands() before emitting SHmedia insns.
2007         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
2008         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
2009         Don't save nor initialize r12.  Don't mis-align the stack.
2010         Pad the code with a nop.
2011         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
2012         stack.
2013         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
2014         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
2015         [__SHMEDIA__]: Implement.
2016         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
2017         * config/sh/sh.md: Set latency of `pt' closer to reality.
2018         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
2019         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
2020         Set move, load and store type attributes.
2021         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
2022         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
2023         profiling.
2024         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
2025         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
2026         * config/sh/sh.c (sh_media_register_for_return): New function.
2027         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
2028         branch-target register.
2029         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
2030         * config/sh/sh.md (return_media_i): Use any call-clobbered
2031         branch-target register.
2032         (return_media): If r18 wasn't copied in the prologue, copy it
2033         here.
2034         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
2035         Clear class FP0_REGS.
2036         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
2037         from elf.h.
2038         2001-03-08  DJ Delorie  <dj@redhat.com>
2039         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
2040         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
2041         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
2042         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
2043         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
2044         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
2045         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
2046         return value correctly for call_cookie.
2047         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
2048         * config/sh/crt1.asm (start): Modified so as to call
2049         ___setup_argv_and_call_main.
2050         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
2051         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
2052         SHmedia mode.
2053         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
2054         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
2055         (STRIP_NAME_ENCODING): Use it.
2056         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
2057         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
2058         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
2059         prepare_scc_operands().
2060         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
2061         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
2062         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
2063         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
2064         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
2065         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
2066         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
2067         used in shcompact_incoming_args.
2068         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
2069         change.
2070         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
2071         mode.
2072         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
2073         Adjust accordingly.
2074         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
2075         Simplify.  Adjust.  Add sanity check.
2076         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
2077         FPU_SINGLE_BIT.
2078         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
2079         TARGET_SHCOMPACT.
2080         (udivsi3, divsi3): Use them.
2081         (force_mode_for_call): New insn.
2082         (call, call_value, sibcall_value): Emit it before SHcompact
2083         calls.
2084         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
2085         * config/sh/sh.md (call, call_value, sibcall): Make sure the
2086         call cookie is non-NULL before taking its value.
2087         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
2088         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
2089         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
2090         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
2091         block.
2092         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
2093         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
2094         temporary for stack adjusts.  Use MACL and MACH to pass
2095         arguments to shcompact_incoming_args.
2096         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
2097         clobber r1.
2098         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
2099         (nested_trampoline): Load static chain address into r1.
2100         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
2101         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
2102         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
2103         fp_arith_reg_operand().
2104         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
2105         * config/sh/sh.md (casesi): Sign-extend the first two operands,
2106         and use signed compares for them.
2107         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
2108         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
2109         ones properly aligned.
2110         (find_barrier): Account for extra alignment needed for 8-byte wide
2111         constants.
2112         (machine_dependent_reorg): Require a label for the second 4-byte
2113         constant after an 8-byte one.
2114         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
2115         change.
2116         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
2117         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
2118         last_float when switching float modes.
2119         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
2120         auto-increment for general-purpose registers.
2121         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
2122         result.
2123         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
2124         for stack adjust.
2125         * config/sh/sh.c (sh_builtin_saveregs): Support using all
2126         registers for varargs.
2127         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
2128         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
2129         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
2130         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
2131         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
2132         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
2133         call_cookie accordingly.
2134         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
2135         (SHCOMPACT_BYREF): Likewise.
2136         (SHCOMPACT_FORCE_ON_STACK): New macro.
2137         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
2138         (sh_builtin_saveregs): Likewise.
2139         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2140         shcompact_incoming_args): Use new shift values.  Support
2141         sequences of consecutive and non-consecutive pushes/pops.
2142         * config/sh/sh.md (return): Don't explicitly use PR_REG.
2143         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
2144         * config/sh/sh.h (TEXT_SECTION): Define.
2145         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
2146         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
2147         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2148         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
2149         return values on FPU-enabled SHmedia.
2150         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
2151         FPU-enabled SHmedia.
2152         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
2153         value is returned in a non-FP reg and is not returned by
2154         reference.
2155         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
2156         jump_ind.
2157         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
2158         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
2159         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
2160         quad-aligned to be passed by callee-copy reference.
2161         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
2162         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
2163         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
2164         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
2165         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
2166         copying low-numbered FP regs to r7 and r8.
2167         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
2168         FP regs to general-purpose regs only if the copy was passed on the
2169         stack.
2170         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
2171         copying FP reg to r9.
2172         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
2173         copy FP regs to general-purpose regs only in outgoing calls.
2174         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
2175         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
2176         HOST_WIDE_INT.
2177         * config/sh/sh.h (struct sh_args): Document all fields.
2178         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
2179         passed partially on the stack should not consider making
2180         sibcalls.
2181         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
2182         stack_regs only for incoming calls.  When passing FP args,
2183         make sure there are FP regs available before modifying
2184         call_cookie.
2185         (SHCOMPACT_BYREF): Pass double args in general-purpose
2186         registers by reference.
2187         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
2188         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
2189         attempt to generate sibcalls if the caller got any arguments
2190         by reference.
2191         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
2192         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
2193         to 8-byte boundaries.
2194         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
2195         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
2196         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
2197         stored in the stack.
2198         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
2199         for the offsets to have the ISA bit set.
2200         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
2201         invocation.  Use beq instead of bgt to mark end of sequence of
2202         loads.
2203         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
2204         bgt to mark end of sequence of stores.
2205         * config/sh/sh.c (arith_operand): Don't check whether
2206         CONST_OK_FOR_J for now.
2207         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
2208         instead of long for conversion.
2209         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
2210         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
2211         before passing it to fprintf.
2212         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
2213         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
2214         Call set_fpscr before reading/writing SR.
2215         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
2216         Call set_fpscr.
2217         * config/sh/lib1funcs.asm: Add `.align 2' directives before
2218         SHmedia code.
2219         (FMOVD_WORKS): Define on SH5 with FPU.
2220         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
2221         setting.
2222         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
2223         _fpscr_values.
2224         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
2225         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
2226         address.
2227         (ia_main_table): Ditto.
2228         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
2229         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2230         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
2231         the definitions from sh.h.
2232         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
2233         TARGET_SH5.
2234         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
2235         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
2236         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2237         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
2238         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
2239         Increment LABEL_NUSES.
2240
2241         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
2242         TARGET_SH5.
2243         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
2244         defined.
2245         * config/sh/elf.h (SIZE_TYPE): Likewise.
2246         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2247         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2248         shcompact_incoming_args): Load switch table addresses using
2249         datalabel.
2250         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2251         (NO_BUILTIN_SIZE_TYPE): Define.
2252         (SIZE_TYPE): Don't define.
2253         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2254         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
2255         definition of __SH5__=32 for -m5-compact-nofpu.
2256         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
2257         ADDR_DIFF_VEC.
2258         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
2259         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
2260         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
2261         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
2262         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
2263         (INSN_LENGTH_ALIGNMENT): Likewise.
2264         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
2265         * config/sh/sh.md (call, call_value, sibcall): Simplify
2266         copying of non-branch-target register.
2267         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
2268         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
2269         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
2270         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
2271         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
2272         floating-point values as structs.
2273         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
2274         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
2275         general-purpose register.
2276         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
2277         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
2278         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
2279         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
2280         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
2281         (ENCODE_SECTION_INFO): Enclose variables and constants in
2282         DATALABEL unspecs.
2283         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
2284         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
2285         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
2286         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
2287         only for LABEL_REFs.  For SYMBOL_REFs, prepend
2288         SH_DATALABEL_ENCODING to the symbol name.
2289         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
2290         convert_mode().
2291         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
2292         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
2293         UNSPEC_DATALABEL.
2294         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
2295         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
2296         (DATALABEL_REF_P): Don't require CONST.
2297         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
2298         REL label.
2299         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
2300         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
2301         right.
2302         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
2303         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
2304         Use shallow_copy_rtx and PUT_MODE to change the mode of
2305         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
2306         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
2307         on SHmedia using GENERAL_REGs.
2308         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2309         bltu_media_i): Fix reversion of conditions.
2310         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
2311         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
2312         * config/sh/sh.c (output_far_jump): Save r13 in macl.
2313         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
2314         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
2315         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
2316         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
2317         (GCC_nested_trampoline): Likewise.
2318         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
2319         * config/sh/sh.c (gen_datalabel_ref): Define.
2320         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
2321         (INITIALIZE_TRAMPOLINE): Likewise.
2322         (TRAMPOLINE_ADJUST_ADDRESS): Define.
2323         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
2324         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
2325         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
2326         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
2327         (ic_invalidate): Adjust for SH5.
2328         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
2329         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
2330         _nested_trampoline.
2331         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
2332         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
2333         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
2334         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
2335         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
2336         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
2337         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
2338         * config/sh/sh.c (target_reg_operand): Match only target-branch
2339         registers and pseudos that aren't virtual registers.
2340         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2341         Copy operands that don't match target_reg_operand to pseudos.
2342         (call_media, call_value_media, sibcall_media): Use
2343         target_reg_operand instead of target_operand.
2344         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
2345         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
2346         * config/sh/sh.c (target_reg_operand): Match hardware registers
2347         other than branch-target registers.
2348         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
2349         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
2350         (fpscr_values) [SH5 == 32]: Define.
2351         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
2352         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2353         Handle function addresses coming in SUBREGs.
2354         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
2355         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2356         shcompact_return_trampoline): Use datalabel where appropriate.
2357         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
2358         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
2359         general-purpose register to copy one branch-target register to
2360         another.
2361         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
2362         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
2363         SYMBOL_REFs with VOIDmode.
2364         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2365         bltu_media_i): New insns.
2366         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
2367         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
2368         (INIT_CUMULATIVE_ARGS): Likewise.
2369         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
2370         * machmode.def (V16SFmode): New mode.
2371         * c-common.c (type_for_mode): Support V2SF and V16SF.
2372         * tree.c (build_common_tree_nodes_2): Likewise.
2373         * tree.h (tree_index): Likewise.
2374         * calls.c (emit_call_1): Take args_so_far.  Adjust all
2375         callers.  Introduce CALL_POPS_ARGS.
2376         * tm.texi (CALL_POPS_ARGS): Document.
2377         * config/sh/crt1.asm: Implement in SHmedia mode.
2378         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
2379         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
2380         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
2381         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
2382         Implement divsi and udivsi in SHmedia mode.  Introduce
2383         SHcompact trampolines.
2384         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
2385         only in SHmedia64.
2386         (regno_reg_class): Rewrite.
2387         (fp_reg_names): Remove.
2388         (sh_register_names, sh_additional_register_names): New.
2389         (print_operand): Added `u'.  Support SUBREGs in addresses.
2390         Add parentheses around shifted CONSTs.
2391         (output_file_start): Output .mode and .abi directives.
2392         (shiftcosts, addsubcosts, multcosts): Adjust.
2393         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
2394         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
2395         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
2396         bytes, not registers.  Take into account the need for the
2397         SHcompact incoming args trampoline.  Adjust all callers.
2398         (sh_expand_prologue): Take stack_regs into account.  Call
2399         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
2400         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
2401         stack aligned as per SH5 ABI.
2402         (sh_builtin_saveregs): Support SH5 ABI.
2403         (sh_build_va_list, sh_va_start): Likewise.
2404         (initial_elimination_offset): Take alignment into account.
2405         Compute location of PR according to the SH5 stack frame.
2406         (arith_reg_operand): Reject branch-target registers.
2407         (shmedia_6bit_operand): New.
2408         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
2409         (target_reg_operand): Match DImode only.  Accept SUBREGs.
2410         (target_operand): New.
2411         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
2412         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
2413         SIBCALL_REGS for SHmedia.
2414         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
2415         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
2416         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
2417         (TARGET_SWITCHES): New SH5 flags.
2418         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
2419         VALID_REGISTER_P to disable unsupported registers.
2420         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
2421         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
2422         (FUNCTION_ARG_PADDING): Define.
2423         (FASTEST_ALIGNMENT): Adjust.
2424         (SH_REGISTER_NAMES_INITIALIZER): New.
2425         (sh_register_names): Declare.
2426         (DEBUG_REGISTER_NAMES): Define.
2427         (REGISTER_NAMES): Define based on sh_register_names.
2428         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
2429         (sh_additional_register_names): Declare.
2430         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
2431         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
2432         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
2433         (REGISTER_NATURAL_MODE): Define.
2434         (FIRST_PSEUDO_REGISTER): Adjust.
2435         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
2436         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2437         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
2438         (VECTOR_MODE_SUPPORTED_P): Define.
2439         (REG_CLASS_CONTENTS): Adjust.
2440         (SMALL_REGISTER_CLASSES): Adjust.
2441         (REG_ALLOC_ORDER): Adjust.
2442         (INDEX_REG_CLASS): Adjust.
2443         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
2444         (CONST_OK_FOR_LETTER_P): Adjust.
2445         (PREFERRED_RELOAD_CLASS): Adjust.
2446         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
2447         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
2448         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
2449         (FIRST_FP_PARM_REG): Adjust.
2450         (CALL_POPS_ARGS): Define.
2451         (FUNCTION_ARG_REGNO_P): Adjust.
2452         (struct sh_args): New fields.
2453         (GET_SH_ARG_CLASS): Adjust.
2454         (INIT_CUMULATIVE_ARGS): Adjust.
2455         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
2456         (FUNCTION_ARG_ADVANCE): Adjust.
2457         (FUNCTION_ARG): Adjust.
2458         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
2459         (FUNCTION_ARG_CALLEE_COPIES): Define.
2460         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
2461         (STRICT_ARGUMENT_NAMING): Define.
2462         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
2463         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
2464         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
2465         (SETUP_INCOMING_VARARGS): Adjust.
2466         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
2467         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
2468         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
2469         (SUBREG_OK_FOR_INDEX_P): Adjust.
2470         (EXTRA_CONSTRAINT_S): Update.
2471         (EXTRA_CONSTRAINT_T): New.
2472         (EXTRA_CONSTRAINT): Adjust.
2473         (GO_IF_LEGITIMATE_INDEX): Adjust.
2474         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
2475         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
2476         (MOVE_MAX): Adjust.
2477         (MAX_MOVE_MAX): Define.
2478         (Pmode): Adjust.
2479         (CONST_COSTS): Adjust.
2480         (REGISTER_MOVE_COST): Adjust.
2481         (BRANCH_COST): Adjust.
2482         (TEXT_SECTION_ASM_OP): Adjust.
2483         (DBX_REGISTER_NUMBER): Adjust.
2484         (ASM_OUTPUT_DOUBLE_INT): New.
2485         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
2486         (PREDICATE_CODES): Adjust.
2487         (PROMOTE_MODE): Adjust.
2488         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
2489         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
2490         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
2491         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
2492         (DR0_REG, DR2_REG, DR4_REG): Renumber.
2493         (TR0_REG, TR1_REG, TR2_REG): New.
2494         (XD0_REG): Renumber.
2495         (UNSPEC_COMPACT_ARGS): New.
2496         (type): Added pt and ptabs.
2497         (length): Default to 4 on SHmedia.  Default pt length to 12
2498         and     20 on SHmedia32 and SHmedia64, respectively.
2499         (pt): New function unit.
2500         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
2501         Add whitespace between operands of SHmedia instructions.
2502         (movdicc): Fix.
2503         (adddi3_media, addsi3_media): Adjust constraints.
2504         (subsi3) [SHmedia]: Force operand 1 into a register.
2505         (udivsi3_i1_media, udivsi3_i4_media): New.
2506         (udivsi3): Support SHmedia.
2507         (divsi3_i1_media, divsi3_i4_media): New.
2508         (divsi3): Support SHmedia.
2509         (anddi3, iordi3, xordi3): Adjust constraints.
2510         (zero_extendhidi2, zero_extendqidi2): New.
2511         (extendsidi2, extendhidi2, extendqidi2): New.
2512         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
2513         (pop_e, pop_fpul, pop_4): Likewise.
2514         (movsi_media): Support FP and BT registers.
2515         (movsi_media_nofpu): New.  Adjust splits to DImode.
2516         (lduw, ldub): Renamed to zero_extend* above.
2517         (movqi_media): Fix typo.
2518         (movdi_media): Support FP and BT registers.
2519         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
2520         (movdi_const_32bit): New.
2521         (shori_media): Require immediate operand.  Use `u' for output.
2522         (movdf_media, movsf_media): Simplified.
2523         (movdf_media_nofpu, movsf_media_nofpu): New.
2524         (movdf, movsf): Adjust
2525         (movv2sf, movv2sf, movv16sf): New.
2526         (beq_media, beq_media_i): Adjust constraints.  Don't use
2527         scratch BT register.
2528         (bne_media, bne_media_i): Likewise.
2529         (bgt_media, bgt_media_i): Likewise.
2530         (bge_media, bge_media_i): Likewise.
2531         (bgtu_media, bgtu_media_i): Likewise.
2532         (bgeu_media, bgeu_media_i): Likewise.
2533         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
2534         bunordered): Emit jump insn.  Force operands to registers when
2535         needed.
2536         (jump_media, jump): Simplify.
2537         (call_compact, call_compact_rettramp): New.
2538         (call_value_compact, call_value_compact_rettramp): New.
2539         (call_media, call_value_media): Simplify.
2540         (sibcall_compact, sibcall_media): New.
2541         (call, call_value): Adjust for SHmedia and SHcompact.
2542         (sibcall, sibcall_value, untyped_call): Likewise.
2543         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
2544         (indirect_jump): Adjust for SHmedia.
2545         (casesi_jump_media): New.
2546         (nop): Re-enable for SHmedia.
2547         (call_site): Restrict to SH1.
2548         (casesi): Adjust for SHmedia.
2549         (casesi_shift_media, casesi_load_media): New.
2550         (return): Explicitly use PR register.  Call return trampoline
2551         on SHcompact.
2552         (return_i): Explicitly use PR register.
2553         (shcompact_return_tramp, shcompact_return_tramp_i): New.
2554         (return_media): Adjust.
2555         (shcompact_incoming_args): New.
2556         (epilogue): Adjust.
2557         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2558         (movstrsi): Disable on SH5.
2559         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
2560         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
2561         (subsf3, subsf3_media): Likewise.
2562         (mulsf3, mulsf3_media, mac_media): Likewise.
2563         (divsf3, divsf3_media): Likewise.
2564         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
2565         (floatsisf2, fux_truncsfsi2): Likewise.
2566         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
2567         constraints.
2568         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
2569         (cmpunsf_media, cmpsf): Likewise.
2570         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
2571         (abssf2, abssf2_media): Likewise.
2572         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
2573         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
2574         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
2575         (floatsidf2, fix_truncdfsi2): Likewise.
2576         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
2577         constraints.
2578         (cmpeqdf_media, cmpgtdf_media): Likewise.
2579         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
2580         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
2581         (absdf2, absdf2_media): Likewise.
2582         (extendsfdf2, extendsfdf2_media): Likewise.
2583         (truncsfdf2, truncsfdf2_media): Likewise.
2584         * config/sh/sh64.h: New file.
2585         * config/sh/t-sh64: New file.
2586         * config/sh/shmedia.h: New file.
2587         * config/sh/ushmedia.h: New file.
2588         * config/sh/sshmedia.h: New file.
2589         * configure.in: Added sh64-*-elf.
2590         * configure: Rebuilt.
2591         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
2592         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
2593         (reg_class_from_letter): Use `b' for TARGET_REGS.
2594         (print_operand): Support `%M', `%m', `AND' and
2595         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
2596         (andcosts): Adjust for SHmedia.
2597         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
2598         Likewise.
2599         (target_reg_operand): New function.
2600         * config/sh/sh-protos.h (target_reg_operand): Declare.
2601         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
2602         FP registers on SH5.
2603         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
2604         on SH4.
2605         (TARGET_REGISTER_P): New macro.
2606         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
2607         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
2608         (EXTRA_CONSTRAINT_S): New macro.
2609         (EXTRA_CONSTRAINT): Adjust.
2610         (FLOAT_TYPE_SIZE): Define to 32.
2611         (Pmode): DImode on SHmedia.
2612         (CONST_COSTS): Adjust for SHmedia literals.
2613         (PREDICATE_CODES): Added target_reg_operand.
2614         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
2615         * config/sh/sh.md: Remove all attrs from SHmedia insns.
2616         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
2617         (cmpdi): Accept SHmedia.
2618         (movdicc_false, movdicc_true): New insns.
2619         (movdicc): New expand.
2620         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2621         no_new_pseudos.
2622         (addsi3_media): Match `S' constraint.
2623         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2624         (negdi2): Expand for SHmedia.
2625         (one_cmpldi2): New expand.
2626         (zero_extendsidi2): Change from expand to insn.
2627         (extendsidi2): Add constraints.
2628         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
2629         LD/ST address.  Fix SI immediate loading split.
2630         (movhi_media, movqi_media, lduw, ldub): New insns.
2631         (movhi, movqi): Accept SHmedia.
2632         (shori_media, movdi_media): Relax input constraints.  Split
2633         symbolic constants.
2634         (movdf_media, movsf_media): New insn.  New split to movdi.
2635         (movdf, movsf): Match on SHmedia.
2636         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2637         bgeu_media): New insns and splits.  New insns with `_i' suffix.
2638         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2639         (bunordered): New expand.
2640         (jump_compact): Renamed from `jump'.
2641         (jump_media): New insn.
2642         (jump): New expand.
2643         (call_media, call_value_media): New insns.
2644         (call, call_value): Adjust.
2645         (indirect_jump_compact): Renamed from `indirect_jump'.
2646         (indirect_jump_media): New insn.
2647         (indirect_jump): New expand.
2648         (untyped_call, return): Accept SHmedia.
2649         (return_media): New insn.
2650         (prologue, epilogue, blockage): Accept SHmedia.
2651         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2652         (sunordered): New expand.
2653         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2654         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2655         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2656         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2657         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2658         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2659         abssf2_media): New insns.
2660         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2661         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2662         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2663         floatdidf2, floatsidf2_media, fix_truncdfdi2,
2664         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2665         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2666         absdf2_media): New insns.
2667         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2668         (extendsfdf2_media, truncdfsf2_media): New insns.
2669         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2670         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2671         * config/sh/sh.h (CONST_OK_FOR_J): Document.
2672         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2673         * config/sh/sh.md (adddi3): New expand.
2674         (adddi3_media, adddi3z_media): New insns.
2675         (adddi3_compact): Renamed from adddi3.
2676         (addsi3_media): Use add.l r63 to add constant zero.
2677         (subdi3): New expand.
2678         (subdi3_media): New insn.
2679         (subdi3_compact): Renamed from subdi3.
2680         (mulsidi3): New expand.
2681         (mulsidi3_media): New insn.
2682         (mulsidi3_compact): Renamed from mulsidi3.
2683         (umulsidi3): New expand.
2684         (umulsidi3_media): New insn.
2685         (umulsidi3_compact): Renamed from umulsidi3.
2686         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2687         (ashlsi3, ashrsi3, lshrsi3): Use them.
2688         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2689         (ashldi3, ashrdi3, lshrdi3): Use them.
2690         (zero_extendsidi2): New expand.
2691         (extendsidi2): New insn.
2692         (movsi_media): New insn.  Split to movdi to load constants.
2693         (movsi): Enable for shmedia.
2694         (movdi_media): New insn.  Use shori_media to load wide constants.
2695         (short_media): New insn.
2696         (movdi): Enable for shmedia.
2697         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
2698         * config/sh/sh.h (CPP_SPEC): Added `m5'.
2699         (SUBTARGET_CPP_SPEC): Added `!m5'.
2700         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2701         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
2702         to all other SH variants.
2703         (TARGET_DEFAULT): Set to SH1_BIT.
2704         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2705         (BITS_PER_WORD): Raise to 64 on shmedia.
2706         (MAX_BITS_PER_WORD): Change to 64.
2707         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
2708         (INT_TYPE_SIZE): Keep as 32.
2709         (UNITS_PER_WORD): Raise to 8 on shmedia.
2710         (MIN_UNITS_PER_WORD): Keep as 4.
2711         (POINTER_SIZE): Raise to 64 on shmedia.
2712         (CONST_OK_FOR_J): New macro.
2713         (CONST_OK_FOR_LETTER_P): Use it.
2714         (processor_type): Add PROCESSOR_SH5.
2715         * config/sh/sh.md: Conditionalize all expands, insns and
2716         splits to TARGET_SH1.
2717         (cpu): Added sh5.
2718         (addsi3_compact): Renamed from...
2719         (addsi3): Now an expand.
2720         (addsi3_media, subsi3_media): New insns.
2721         (subsi3): Don't negate constants with SHmedia.
2722
2723         * hooks.c: New file.
2724         * hooks.h: New file.
2725         * Makefile.in (HOOKS_H): New.
2726         (TARGET_DEF_H): Added $(HOOKS_H).
2727         (OBJS): Added hooks.o.
2728         (cfgcleanup.o, bb-reorder.o): Added target.h.
2729         (hooks.o): Added dependencies.
2730         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
2731         (TARGET_INITIALIZER): this.
2732         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
2733         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
2734         * bb-reorder.c: Include target.h.
2735         (reorder_basic_blocks): Skip if cannot modify jumps.
2736         * cfgcleanup.c: Include target.h.
2737         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
2738
2739 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
2740
2741         * config/mips/mips.md (casesi_internal, casesi_internal_di):
2742         Protect jump delay slot instructions with .set noreorder and
2743         .set nomacro.
2744
2745 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
2746
2747         * config/mips/mips.md (casesi_internal_di): Calculate
2748         the index into the target offset table correctly.
2749
2750 2002-02-08  Richard Henderson  <rth@redhat.com>
2751
2752         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
2753         * final.c (output_addr_const): Accept and discard SUBREG.
2754         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
2755         mark them unknown instead.
2756         (simplify_subtraction): Handle RTX_UNKNOWN.
2757         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
2758
2759 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
2760
2761         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
2762
2763 2002-02-08  Richard Henderson  <rth@redhat.com>
2764
2765         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
2766
2767 2002-02-08  Andreas Jaeger  <aj@suse.de>
2768
2769         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
2770         * config/i386/t-linux64: New file.
2771
2772 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
2773
2774         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
2775         * c-parse.in (compstmt): Clear last_expr_type.
2776
2777 2002-02-07  Richard Henderson  <rth@redhat.com>
2778
2779         * loop.c (strength_reduce): Sink final_value when not
2780         eliminating a biv.
2781
2782 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
2783
2784         * config/sparc/freebsd.h: Fix mismatched spec {.
2785
2786 2002-02-07  Richard Henderson  <rth@redhat.com>
2787
2788         * cfgrtl.c: Include recog.h and insn-config.h.
2789         (keep_with_call_p): Fix general_operand invocation.
2790         * Makefile.in (cfgrtl.o): Update dependencies.
2791
2792 2002-02-07  Kazu Hirata  <kazu@hxi.com>
2793
2794         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
2795         comment.  Accept HImode only if TARGET_H8300.
2796
2797 2002-02-07  Eric Christopher  <echristo@redhat.com>
2798
2799         * config/mips/crtn.asm: Cleanup #ifdefs.
2800
2801 2002-02-07  Eric Christopher  <echristo@redhat.com>
2802
2803         * config/mips/crti.asm: Add changes for mips16. mips16 uses
2804         register 7 as RA instead of $31.
2805         * config/mips/crtn.asm: Ditto.
2806         * config/mips/mips.c (mips_move_2words): Add case for
2807         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
2808         (compute_frame_size): Fix typo.
2809         (save_restore_insns): Ditto.  Make documentation about using
2810         register $7 as return register more precise.
2811         (mips_expand_epilogue): Fix comment. Add code to work around not
2812         being able to add to the stack pointer directly.
2813         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
2814         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
2815         epilogue.
2816
2817 2002-02-07  Tom Rix  <trix@redhat.com>
2818
2819         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
2820         immediates in ldu and stdu DS opcode field.
2821         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
2822         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
2823         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
2824
2825 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
2826
2827         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
2828         offset for stack bias.
2829
2830 2002-02-07  H.J. Lu <hjl@gnu.org>
2831
2832         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
2833
2834 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
2835
2836         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
2837
2838 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
2839
2840         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
2841         * i386.c (x86_order_regs_for_local_alloc): New global function.
2842         * i386.h (REG_ALLOC_ORDER): CLeanup.
2843         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
2844
2845 2002-02-07  Richard Henderson  <rth@redhat.com>
2846
2847         PR optimization/2463
2848         * alias.c (find_base_value): Recall base values for fixed hard regs.
2849         * loop.c (loop_regs_update): Don't use single_set on non-insns.
2850
2851 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
2852
2853         * config/mips/mips.md (define_delay) [mips16]: Adjust required
2854         length.
2855
2856 2002-02-06  Richard Henderson  <rth@redhat.com>
2857
2858         PR c/5609
2859         * stmt.c (resolve_operand_name_1): Take more care with mixed
2860         named and unnamed operands.
2861
2862 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
2863             Jan Hubicka  <jh@suse.cz>
2864
2865         * loop.c (remove_constant_addition): Avoid clobbering a shared
2866         CONST expression.
2867
2868 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
2869
2870         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
2871         * config/s390/t-linux64: New file.
2872         * config/s390/libgcc-glibc.ver: New file.
2873
2874 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
2875
2876         * config/s390/linux64.h: Delete file.
2877         * config/s390/s390x.h: New file.
2878         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
2879         as target header file.
2880         * config/s390/linux.h (TARGET_VERSION): Define depending on
2881         DEFAULT_TARGET_64BIT.
2882         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
2883         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
2884         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
2885         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
2886         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
2887         (EXTRA_SPEC): New define.
2888         * config/s390/s390.h (TARGET_VERSION): Define depending on
2889         DEFAULT_TARGET_64BIT.
2890         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
2891
2892 2002-02-06  Jason Merrill  <jason@redhat.com>
2893
2894         * c-decl.c (finish_function): Warn about a non-void function with
2895         no return statement and no abnormal exit.
2896         (current_function_returns_abnormally): New variable.
2897         (start_function): Clear it.
2898         (struct c_language_function): Add returns_abnormally.
2899         (push_c_function_context): Save it.
2900         (pop_c_function_context): Restore it.
2901         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
2902         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
2903         an explicit return type.
2904         * c-tree.h: Declare current_function_returns_abnormally.
2905         (C_FUNCTION_IMPLICIT_INT): New macro.
2906         * c-typeck.c (build_function_call): Set it.
2907         (c_expand_return): Set current_function_returns_value even if the
2908         value is erroneous.
2909
2910 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
2911
2912         PR c/5420:
2913         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
2914         unsafe for reevaluation.
2915
2916 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
2917
2918         PR c/5482:
2919         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
2920         EXPR_STMT, but COMPOUND_STMT, recurse into it.
2921
2922 2002-02-06  Richard Henderson  <rth@redhat.com>
2923
2924         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
2925         be a general_operand.  Dest for function value must be a pseudo.
2926
2927 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
2928
2929         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
2930         as SYMBOL_REFs from the constant pool.
2931
2932 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
2933
2934         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
2935         passed by invisible reference.
2936
2937 2002-02-05  Richard Henderson  <rth@redhat.com>
2938
2939         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
2940
2941 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
2942
2943         Implement using "base addresses" in insn operands as default.
2944         * config/mmix/mmix.c (mmix_conditional_register_usage): if
2945         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
2946         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
2947         used to read the rtx value.
2948         (mmix_target_asm_function_epilogue): Fix spacing.
2949         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
2950         (mmix_legitimate_address): Ditto.
2951         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
2952         should be loaded with a GETA insn.  Don't allocate needless extra
2953         char for nul termination and fix misleading comment.
2954         (mmix_print_operand_address): Handle constants if
2955         TARGET_BASE_ADDRESSES.
2956         (mmix_output_register_setting): Use base addressing if
2957         TARGET_BASE_ADDRESSES and the number of insns is 3.
2958         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2959         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2960         to use R as constraint, add LDA to match s.
2961         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2962         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2963         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2964         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2965         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2966         order with other fixed registers.
2967         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2968         other parameter/call-clobbered registers.
2969         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2970         -mbase-addresses, -mno-base-addresses.
2971         (MMIX Options): Ditto.
2972
2973 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2974
2975         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2976
2977 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
2978
2979         * config/rs6000/altivec.h: Change elem to _S_elem.
2980
2981 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
2982
2983         * config/netbsd.h (WCHAR_TYPE): Define.
2984         (WCHAR_TYPE_SIZE): Ditto.
2985         (WINT_TYPE): Ditto.
2986         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2987         (WCHAR_UNSIGNED): Ditto.
2988         (WCHAR_TYPE_SIZE): Ditto.
2989         (WINT_TYPE): Ditto.
2990         * config/arm/netbsd.h: Likewise.
2991         * config/i386/netbsd-elf.h: Likewise.
2992         * config/i386/netbsd.h: Likewise.
2993         * config/m68k/netbsd-elf.h: Likewise.
2994         * config/m68k/netbsd.h: Likewise.
2995         * config/ns32k/netbsd.h: Likewise.
2996         * config/sparc/netbsd.h: Likewise.
2997         * config/vax/netbsd.: Likewise.
2998
2999 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
3000
3001         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
3002         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
3003         (TARGET_INITIALIZER): this.
3004         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
3005         (BITFIELD_NBYTES_LIMITED): Markup fix.
3006         * tree.h (default_ms_bitfield_layout_p): Declare.
3007         (record_layout_info): Added prev_field.
3008         * tree.c (default_ms_bitfield_layout_p): New fn.
3009         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
3010         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
3011         * stor-layout.c: Include target.h.
3012         (start_record_layout): Initialize prev_field.
3013         (place_field): Handle MS bit-field layout, and disregard
3014         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
3015         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
3016         * Makefile.in (stor-layout.o): Adjust dependencies.
3017
3018 2002-02-05  Jason Merrill  <jason@redhat.com>
3019
3020         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
3021
3022 2002-02-05  Andreas Jaeger  <aj@suse.de>
3023
3024         * crtstuff.c: Fix comments.
3025
3026 2002-02-05  Richard Henderson  <rth@redhat.com>
3027
3028         PR fortran/3393
3029         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
3030         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3031
3032         PR fortran/3392
3033         * config/mips/mips.c (function_arg): Handle TImode.
3034         (function_arg_advance): Likewise.
3035
3036 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
3037
3038         * config/rs6000/altivec.h (vec_step_help): Rename to
3039         __vec_step_help.
3040
3041 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
3042
3043         * config/rs6000/altivec.h: Fix typos.
3044
3045 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
3046
3047         * config/arm/netbsd.h: Correct a comment.
3048
3049 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
3050
3051         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
3052         building void typed builtins.
3053
3054         * config/rs6000/altivec.h (vec_ld*): Fix typos.
3055         (vec_step): Implement for C++.
3056
3057 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3058
3059         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
3060
3061 2002-02-04  Richard Henderson  <rth@redhat.com>
3062
3063         * combine.c (nonzero_bits): Re-introduce special case for
3064         sp/fp/ap wrt REGNO_POINTER_ALIGN.
3065
3066 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
3067
3068         * doc/extend.texi: Warn about unsupported usage of altivec
3069         builtins.
3070
3071         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
3072         (altivec_predicate_*): New.
3073
3074         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
3075         Add C++ version of vec_*() functions.
3076
3077         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
3078         (bdesc_2arg): Remove altivec predicates.
3079         (altivec_expand_builtin): Handle predicates.
3080         (altivec_init_builtins): Handle predicates.
3081         (altivec_expand_predicate_builtin): New.
3082
3083 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3084
3085         * pa.c (DO_FRAME_NOTES): Move forward.
3086         (store_reg): Revise handling of frame notes.
3087         (load_reg): Likewise.
3088         (set_reg_plus_d): Likewise.
3089         (hppa_expand_prologue): Likewise.
3090         (hppa_expand_epilogue): Likewise.
3091
3092 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3093
3094         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
3095
3096 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
3097
3098         PR c/4475, c++/3780:
3099         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
3100         * c-common.h (SWITCH_TYPE): Define.
3101         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
3102         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
3103         Rename spareness variable to sparseness.
3104         (expand_end_case_type): Renamed from expand_end_case, use orig_type
3105         if non-NULL instead of TREE_TYPE (orig_index).
3106         * tree.h (expand_end_case_type): Renamed from expand_end_case.
3107         (expand_end_case): Define using expand_end_case_type.
3108         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
3109         to expand_end_case_type.
3110         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
3111
3112 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3113
3114         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
3115         (BIGGEST_ALIGNMENT): Change to 128.
3116
3117 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3118
3119         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
3120
3121 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3122
3123         * pa.md (call_internal_reg_64bit): Remove unused variable.
3124
3125 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
3126
3127         * config/arm/arm.h (machine_function): Add uses_anonymous_args
3128         field.
3129         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3130         * config/arm/arm.c (current_function_anonymous_args): Delete,
3131         replace uses with cfun->machine->uses_anonymous_args.
3132         (arm_reorg): Do not reset uses_anonymous_args.
3133
3134         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
3135         any geenral register.
3136
3137 2001-02-04  Bernd Schmidt  <bernds@redhat.com>
3138
3139         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
3140         the entry block.
3141
3142 2002-02-04  Richard Henderson  <rth@redhat.com>
3143
3144         * combine.c (force_to_mode): Remove STACK_BIAS code.
3145         (nonzero_bits): Likewise.  Replace sp/fp special case with
3146         REGNO_POINTER_ALIGN.
3147
3148         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
3149         (HARD_FRAME_POINTER_REGNUM): New.
3150         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
3151         (FIXED_REGS, CALL_USED_REGS): Update.
3152         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
3153         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
3154         (HARD_REGNO_NREGS): Update for SFP.
3155         (STACK_POINTER_OFFSET): Include bias here ...
3156         (FIRST_PARM_OFFSET): ... not here.
3157         (STACK_BIAS): Remove.
3158         (INIT_EXPANDERS): New.
3159         (STARTING_FRAME_OFFSET): Do not include bias.
3160         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
3161         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
3162         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
3163         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
3164         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
3165         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
3166         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
3167         (MUST_SAVE_REGISTER): Likewise.
3168         (sparc_flat_function_prologue): Likewise.
3169         (sparc_flat_function_epilogue): Likewise.
3170         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
3171         (sparc_init_modes): SFP is GENERAL_REGS.
3172         (sparc_builtin_saveregs): SFP does not have bias applied.
3173
3174 2002-02-04  Richard Henderson  <rth@redhat.com>
3175
3176         * config/alpha/alpha.c (current_function_is_thunk): Don't check
3177         current_function_is_thunk.
3178         (alpha_sa_mask): Distinguish between current_function_is_thunk
3179         called from ASM_OUTPUT_MI_THUNK and not.
3180         (alpha_does_function_need_gp): Thunks always need gp.
3181         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3182         (alpha_output_mi_thunk_osf): New.
3183         * config/alpha/alpha-protos.h: Update.
3184         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
3185
3186 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
3187
3188         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
3189         function types, not when they're taken away.
3190
3191 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
3192
3193         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
3194         CODE_LABEL and jump table when replacing a table jump with a
3195         simple jump.
3196
3197 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
3198
3199         * config/s390/s390-protos.h (legitimize_la_operand,
3200         s390_secondary_input_reload_class, s390_plus_operand,
3201         s390_expand_plus_operand): Add prototypes.
3202
3203         config/s390/s390.c (s390_secondary_input_reload_class,
3204         s390_plus_operand, s390_expand_plus_operand): New functions.
3205
3206         (struct s390_address): New member 'pointer'.
3207         (s390_decompose_address): Compute it.
3208         (legitimate_la_operand_p): Use it.
3209         (legitimize_la_operand): New function.
3210         (movti, movdi, movdf splitters): Call it.
3211
3212         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
3213         (PREDICATE_CODES): Add s390_plus_operand.
3214
3215         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
3216         (la_ccclobber): Allow GENERAL_REGS as output operand.
3217
3218         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
3219         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
3220         (*la_64, *la_31, reload_indi, reload_insi): ... these.
3221
3222 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
3223
3224         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
3225         register names for regular asm () construct.
3226
3227 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
3228
3229         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
3230         registers.
3231
3232 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
3233
3234         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
3235         pat for recog.
3236
3237 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
3238
3239         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
3240         constant pool to be identical by string address and index.
3241
3242 2002-02-04  Anthony Green  <green@redhat.com>
3243
3244         * output.h (SECTION_OVERRIDE): Define.
3245         * varasm.c (named_section): Obey SECTION_OVERRIDE.
3246
3247 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
3248
3249         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
3250         by existing arm*-*-netbsd* (a.out) target.
3251         (ns32k-*-netbsdelf*): Likewise.
3252         (sparc-*-netbsdelf*): Likewise.
3253         (vax-*-netbsdelf*): Likewise.
3254
3255 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
3256
3257         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
3258         headers and libobjc headers.
3259
3260 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
3261
3262         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
3263         (_mingw.h): Remove duplicate include.
3264
3265 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
3266
3267         * config.gcc: Set cpu_type to m68k for 68010, as well.
3268         (m68010-*-netbsdelf*): New...
3269         (m68k*-*-netbsdelf*): ...targets.
3270         * config/m68k/netbsd-elf.h: New file.
3271
3272 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3273
3274         * config/h8300/h8300.c (hand_list): Move inside function_arg.
3275
3276 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3277
3278         * config/h8300/h8300.c (h8_push_ops): Move inside
3279         h8300_init_once.
3280         (h8_pop_ops): Likewise.
3281         (h8_move_ops): Likewise.
3282
3283 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3284
3285         * config/h8300/h8300.c (os_task): Make it static.
3286         (monitor): Likewise.
3287         (pragma_saveall): Likewise.
3288
3289 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
3290
3291         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
3292         constant is a valid sign-extension for Pmode.
3293
3294 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3295
3296         * config/h8300/h8300.c: Fix formatting.
3297
3298 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3299
3300         * config/h8300/h8300.md: Fix formatting.
3301
3302 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3303
3304         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
3305         predicates of operands[1].  Split the patterns for each
3306         processor variant.
3307
3308 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3309
3310         * config/h8300/h8300.md (xor patterns): Tighten the predicates
3311         of operands[1] to register_operand.
3312
3313 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3314
3315         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
3316         * cpphash.c (_cpp_init_hashtable): Similarly.
3317         * cppinit.c (cpp_create_reader): Default the signed_char flag.
3318         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
3319         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
3320         (cpp_handle_option): Handle the new options.
3321         * cpplex.c (cpp_interpret_charconst): Use new flag.
3322         * cpplib.h (struct cpp_options): New member signed_char.
3323         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
3324         (cpp_options): Handle -fsigned-char and -funsigned-char.
3325         (static_specs): Remove signed_char_spec.
3326         (do_spec1): Don't handle %c.
3327         * system.h: Poison SIGNED_CHAR_SPEC.
3328         * tradcif.y (yylex): Use flag_signed_char.
3329         * tradcpp.h (flag_signed_char): New.
3330         * tradcpp.c (flag_signed_char): New.
3331         (main): Handle new command-line options.
3332         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
3333 config:
3334         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
3335         * avr/avr.h: Remove old comments.
3336         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
3337         (CC1_SPEC): Pass -fsigned-char if -mic*.
3338         (SIGNED_CHAR_SPEC): Remove.
3339 doc:
3340         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
3341
3342 2002-02-01  Eric Christopher  <echristo@redhat.com>
3343
3344         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
3345         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
3346         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
3347         (ASM_OUTPUT_REG_POP): Ditto.
3348
3349 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3350
3351         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
3352         patch.
3353
3354 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
3355
3356         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
3357
3358 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
3359
3360         PR c/5304:
3361         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
3362         unconditionally.
3363
3364 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
3365
3366         * cfganal.c: Include tm_p.h.
3367         (keep_with_call_p): Fix the test that determines if a register holds
3368         the return value of a call.
3369
3370 2002-02-01  DJ Delorie  <dj@redhat.com>
3371
3372         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
3373         we are given conflicting registers, switch to the other one we
3374         had allocated for us.
3375         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
3376         as TImode so we know when the "other" register is available.
3377
3378 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
3379
3380         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
3381         sparc/sparc_bi.h.
3382
3383 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
3384
3385         * cfganal.c (keep_with_call_p): New function.
3386         (flow_call_edges_add): Prevent splitting a block between a call and
3387         a single-set instruction that should be kept in the same block.
3388
3389 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3390
3391         * doc/install.texi (avr): Update outdated URL.
3392
3393 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
3394
3395         * config/stormy16/stormy16.md (pushqi): New.
3396         (popqi): New.
3397         (pushhi): New.
3398         (pophi): New.
3399         (movhi): Remove stack operands.
3400         (movqi): Likewise.
3401         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
3402         nonimmediate_nonstack_operand.
3403         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
3404         New.
3405         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
3406         New.
3407
3408 2002-01-31  Jason Merrill  <jason@redhat.com>
3409
3410         * Makefile.in (c-parse.c): Handle .output file.
3411         * objc/Make-lang.in (objc-parse.c): Likewise.
3412
3413 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
3414
3415         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
3416         the -me[lb] option is given.  Don't output the default flag
3417         twice.
3418
3419 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
3420
3421         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
3422         the primary source file; this has not been done yet.
3423         * c-decl.c (c_expand_body): Reset input_filename from
3424         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
3425
3426 2002-01-31  Kazu Hirata  <kazu@hxi.com>
3427
3428         * rtlanal.c (subreg_regno_offset): Do not use
3429         SUBREG_REGNO_OFFSET.
3430         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
3431         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
3432
3433 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
3434
3435         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
3436         version rather than GNATS version in --version output.
3437
3438 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
3439
3440         * ifcvt.c (noce_process_if_block): Make a copy of the destination
3441         when copying back from a temporary.
3442
3443 2002-01-30  Richard Henderson  <rth@redhat.com>
3444
3445         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
3446         and new_dest are the same.
3447
3448 2002-01-30  Richard Henderson  <rth@redhat.com>
3449
3450         PR opt/5076
3451         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
3452         * rtl.c (note_insn_name): Update.
3453         * emit-rtl.c (remove_unnecessary_notes): Kill it.
3454         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
3455         to perform loop rotation.
3456         (expand_exit_loop_top_cond): New.
3457         * tree.h (expand_exit_loop_top_cond): Declare it.
3458         * c-semantics.c (genrtl_while_stmt): Use it.
3459         (genrtl_for_stmt): Likewise.
3460
3461 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
3462
3463         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
3464         arguments to 64-bit boundaries on 64-bit ABIs.
3465
3466 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
3467
3468         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
3469
3470 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
3471
3472         * c-decl.c (grokdeclarator): Handle type being a typedef for an
3473         invalid type.
3474
3475 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
3476
3477         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
3478         * config/sparc/sparc_bi.h: Remove file.
3479         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
3480
3481 2002-01-30  Richard Henderson  <rth@redhat.com>
3482
3483         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
3484
3485 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
3486
3487         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
3488
3489 2002-01-30  Jason Merrill  <jason@redhat.com>
3490
3491         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
3492         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
3493         (reg_save): Use DW_CFA_offset_extended_sf instead.
3494
3495         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
3496
3497 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
3498
3499         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
3500         in cselib_lookup.
3501
3502 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
3503
3504         * rs6000.md ("*call_value_local32"): Remove constraints.
3505         ("*call_value_local64"): Same.
3506         ("*call_value_indirect_nonlocal_aix32"): Same.
3507         ("*call_value_nonlocal_aix32"): Same.
3508         ("*call_value_indirect_nonlocal_aix64"): Same.
3509         ("*call_value_nonlocal_aix64"): Same.
3510         ("*call_value_nonlocal_sysv"): Same.
3511
3512 2002-01-29  Richard Henderson  <rth@redhat.com>
3513
3514         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
3515
3516 2002-01-29  Richard Henderson  <rth@redhat.com>
3517
3518         * expr.c (force_operand): Ignore flag_pic for detecting pic
3519         address loads.
3520         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
3521         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
3522         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
3523         instead of open-coded loop.
3524         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
3525         be fixed when in use.
3526
3527 2002-01-29  Richard Henderson  <rth@redhat.com>
3528
3529         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
3530         * sched-rgn.c (propagate_deps): Update them.
3531         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
3532         clobbers list when either gets too long.
3533
3534 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
3535
3536         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
3537         and INDEX_REGS the same as GENERAL_REGS.
3538         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3539
3540 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3541
3542         * tree.c (build_nonstandard_integer_type): Correct prototype.
3543
3544 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
3545
3546         * config/s390/s390.md (movstrsico, movstrdix_64,
3547         movstrsix_31): Remove, replace by ...
3548         (movstrdi_short, movstrsi_short, movstrdi_long,
3549         movstrsi_long): ... these.  New.
3550         (movstrdi, movstrsi): Adapt.
3551
3552         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
3553         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
3554         Remove unnecessary CC clobber.
3555         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
3556         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
3557
3558         (divmoddi4): Don't partially initialize TImode register.
3559
3560 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
3561
3562         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
3563
3564 2002-01-29  Richard Henderson  <rth@redhat.com>
3565
3566         * flow.c (print_rtl_and_abort): Remove.
3567         (print_rtl_and_abort_fcn): Remove.
3568         (verify_local_live_at_start): Use dump_bb instead.
3569         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
3570         (verify_wide_reg_1): Return 2 on mode test failure.
3571
3572 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3573
3574         PR c/3325, c/3326, c/2511, c/3347
3575         * c-decl.c (enum_decl_context): Remove BITFIELD.
3576         (grokdeclarator): Take bitfield width as an input.
3577         Ensure bitfields are given the correct type.  Perform
3578         bitfield width validation with build_bitfield_integer_type
3579         rather than waiting for finish_struct.
3580         (grok_typename, grok_typename_in_parm_context, start_decl,
3581         push_parmdecl, grokfield, start_function): Update calls to
3582         grokdeclarator.
3583         (build_bitfield_integer_type): New function.
3584         (finish_struct): Move bitfield validation to grokdeclarator
3585         and build_bitfield_integer_type.
3586         * tree.c (build_nonstandard_integer_type): New function.
3587         * tree.h (build_nonstandard_integer_type): New prototype.
3588 objc:
3589         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
3590
3591 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
3592
3593         PR other/1502:
3594         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
3595         don't ignore unrecognized -W* options.
3596         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
3597         * cpplib.h (cpp_handle_option): Adjust prototype.
3598         * c-decl.c (c_decode_options): Pass 0 as last argument to
3599         cpp_handle_option.
3600
3601         PR c/2896:
3602         * gcc.c (cpp_unique_options): Split from cpp_options.
3603         (cpp_options): Source cpp_unique_options.
3604         (default_compilers): Use cpp_unique_options instead of cpp_options
3605         when used together with cc1_options.
3606         (static_specs): Add cpp_unique_options.
3607         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
3608         when used together with cc1_options.
3609
3610 2002-01-29  Kazu Hirata  <kazu@hxi.com>
3611
3612         * config/h8300/h8300-protos.h: Update the prototype of
3613         output_a_shift.
3614         * config/h8300/h8300.c (output_a_shift): Remove an unused
3615         argument 'insn'.  Remove redundant code.
3616         * config/h8300/h8300.md: Adust to the new prototype of
3617         output_a_shift.
3618
3619 2002-01-29  Kazu Hirata  <kazu@hxi.com>
3620
3621         * config/h8300/h8300-protos.h: Update the prototypes of
3622         emit_a_rotate and expand_a_rotate.
3623         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3624         first argument to 'enum rtx_code'.
3625         (expand_a_rotate): Likewise.
3626
3627 2002-01-28  Kazu Hirata  <kazu@hxi.com>
3628
3629         * config/h8300/h8300-protos.h: Update the prototype of
3630         output_simode_bld.
3631         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3632         'log2'.
3633         * config/h8300/h8300.md: Adjust to the new prototype.
3634
3635 2002-01-28  Kazu Hirata  <kazu@hxi.com>
3636
3637         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3638         redundant code.
3639
3640 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3641
3642         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3643         is a fixed register before returning pic_offset_table_rtx.
3644         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3645         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3646
3647 2002-01-28  Jason Merrill  <jason@redhat.com>
3648
3649         * dwarf2.h: Sync with src version.
3650
3651 2002-01-28  Paul Koning  <pkoning@equallogic.com>
3652
3653         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3654         BT_FN_VOID_PTR_VAR.
3655         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3656         * doc/extend.texi (__builtin_prefetch): Update documentation:
3657         first argument is now const void ptr.
3658
3659 2002-01-28  Kazu Hirata  <kazu@hxi.com>
3660
3661         * config/h8300/h8300-protos.h: Remove an unused prototype.
3662
3663 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
3664
3665         * toplev.c (lang_independent_init): Round up identifier size.
3666
3667 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
3668
3669         * config.gcc: Revert previous change.
3670
3671 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
3672
3673         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3674
3675 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
3676
3677         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3678         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
3679         other non-elf netbsd config frags.
3680         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3681         collect2 will does that.
3682         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3683         shared-lib frobbing will work.
3684
3685 2002-01-28  Kazu Hirata  <kazu@hxi.com>
3686
3687         * config/h8300/h8300.h: Fix formatting.
3688         * config/h8300/h8300.md: Likewise.
3689
3690 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
3691
3692         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3693         the old, removed AAA_standards fix.
3694         * fixinc/fixincl.x: Rebuilt.
3695
3696 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
3697
3698         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3699         atexit call in crtbegin, hooked in after call to frame_dummy;
3700         register EH before registering __fini__start.
3701
3702 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
3703
3704         * config/rs6000/altivec.h: Remove spurious semicolons.
3705
3706 2002-01-27  Kazu Hirata  <kazu@hxi.com>
3707
3708         * config/h8300/h8300.md: Replace dead bit extraction patterns
3709         with ones that work.
3710
3711 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3712
3713         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
3714         if not STRICT_ALIGNMENT.
3715         * rtl.h (MEM_ALIGN): Likewise.
3716
3717 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3718
3719         * doc/invoke.texi (-fdump-translation-unit): Revert this
3720         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3721
3722 2002-01-27  Kazu Hirata  <kazu@hxi.com>
3723
3724         * config/h8300/h8300.md (define_constants): New.
3725         (anonymous patterns) Use defined constants appropriately.
3726
3727 2002-01-27  Kazu Hirata  <kazu@hxi.com>
3728
3729         * config/h8300/h8300.c (function_arg): Remove redundant code.
3730
3731 2002-01-26  Richard Henderson  <rth@redhat.com>
3732
3733         * sched-deps.c (reg_pending_uses_head): New.
3734         (reg_pending_barrier): Rename from reg_pending_sets_all.
3735         (find_insn_list): Don't mark inline.
3736         (find_insn_mem_list): Remove.
3737         (add_dependence_list, add_dependence_list_and_free): New.
3738         (flush_pending_lists): Replace only_write param with separate
3739         for_read and for_write parameters.  Update all callers.  Use
3740         add_dependence_list_and_free.
3741         (sched_analyze_1): Do not add reg dependencies here; just set
3742         the pending bits.  Use add_dependence_list.
3743         (sched_analyze_2): Likewise.
3744         (sched_analyze_insn): Replace schedule_barrier_found with
3745         reg_pending_barrier.  Add all dependencies for pending reg
3746         uses, sets, and clobbers.
3747         (sched_analyze): Don't add reg dependencies for calls, just
3748         set pending bits.  Use regs_invalidated_by_call.  Treat
3749         sched_before_next_call as a normal list, not a fake insn.
3750         (init_deps): No funny init for sched_before_next_call.
3751         (free_deps): Free pending mems lists.  Don't zero reg_last.
3752         (init_deps_global): Init reg_pending_uses.
3753         (finish_deps_global): Free it.
3754         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
3755         (find_insn_mem_list): Remove.
3756         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
3757         (propagate_deps): Use them.  Zero temp mem lists.
3758
3759 2002-01-26  Richard Henderson  <rth@redhat.com>
3760
3761         * Makefile.in (CRTSTUFF_CFLAGS): New.
3762         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
3763         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
3764         crtstuff.c instead of alpha assembly version.
3765         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
3766         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
3767         not FORCE_{INIT,FINI}_SECTION_ALIGN.
3768         (__do_global_dtors_aux): Mark used.
3769         (frame_dummy, __do_global_ctors_aux): Mark used.
3770         (fini_dummy, init_dummy): Remove.
3771
3772         * config/alpha/crtbegin.asm: Remove file.
3773         * config/alpha/crtend.asm: Remove file.
3774         * config/alpha/t-crtbe: Remove file.
3775         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
3776         (LINK_EH_SPEC): New.
3777
3778         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
3779         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
3780         calling constructors.
3781         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
3782
3783         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
3784         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
3785         CRT_END_INIT_DUMMY hack.
3786         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
3787         FORCE_{INIT,FINI}_SECTION_ALIGN.
3788
3789         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
3790         FORCE_{INIT,FINI}_SECTION_ALIGN.
3791
3792         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
3793         invocation sequence.
3794         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3795
3796         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
3797         (FORCE_CODE_SECTION_ALIGN): New.
3798
3799 2002-01-26  Richard Henderson  <rth@redhat.com>
3800
3801         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
3802
3803 2002-01-26  Richard Henderson  <rth@redhat.com>
3804
3805         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
3806         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
3807
3808 2002-01-26  Kazu Hirata  <kazu@hxi.com>
3809
3810         * config/h8300/h8300.md: Remove bit extraction patterns that
3811         cannot be triggered.
3812         Restrict each bit extraction pattern to a variant on which the
3813         pattern is tested.
3814
3815 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
3816
3817         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
3818
3819 2002-01-26  Kazu Hirata  <kazu@hxi.com>
3820
3821         * config/h8300/h8300.md: Remove bit test patterns that cannot
3822         be triggered.
3823         Restrict each bit test pattern to a variant on which the
3824         pattern is tested.
3825
3826 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3827
3828         * builtins.c (expand_builtin_strncat): Remove redundant check for
3829         INTEGER_CST.
3830
3831 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
3832
3833         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
3834         default setting.
3835         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
3836         existing setting.
3837
3838 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
3839
3840         * dbxout.c (dbxout_init): Use assemble_name rather than just
3841         stripping off the first character.
3842         (dbxout_source_file): Likewise.
3843
3844 2002-01-25  DJ Delorie  <dj@redhat.com>
3845
3846         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
3847         using rtx_equal_p, not by comparing pointers.
3848
3849 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
3850
3851         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
3852         for PIC_OFFSET_TABLE_REGNUM.
3853         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
3854
3855 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
3856
3857         * config.gcc (x86_64-*-freebsd*): New target.
3858         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
3859         value.
3860         (i[34567]86-*-freebsd*): Don't include svr4.h.
3861         * config/i386/freebsd64.h: New file.
3862
3863 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
3864
3865         * config/alpha/x-vms (version): Make static.
3866
3867         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
3868         in previous checkin.
3869
3870         * Makefile.in (install-headers-cp): New target.
3871         * config.gcc (alpha-dec-*vms*): Install headers with
3872         install-headers-cp
3873
3874 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
3875
3876         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
3877         avoid it's copies.
3878
3879 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3880
3881         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
3882         of compare_tree_int.
3883         (expand_builtin_strncat): Likewise.
3884         * c-decl.c (finish_struct): Use tree_low_cst.
3885         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
3886         * tree.c (compare_tree_int): Likewise.
3887
3888 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
3889
3890         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
3891         adjustments even if they are implemented by more than two insns.
3892
3893 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
3894
3895         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
3896         * df.h (struct ref): Kill B.
3897         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
3898
3899         * basic-block.h (PROP_EQUAL_NOTES): New flag.
3900         * flow.c (propagate_one_insn): Use it.
3901         (mark_used_regs): Handle NIL.
3902
3903 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
3904
3905         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
3906         to help folding.
3907
3908 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
3909
3910         * rs6000.md (prefetch): Make address V4SI mode so that the address
3911         is restricted to legitimate form for instruction.
3912
3913 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
3914
3915         * doc/install.texi (xtensa-*-elf): New target.
3916         (xtensa-*-linux*): New target.
3917         * doc/contrib.texi: Add myself.
3918
3919 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
3920
3921         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
3922         purpose register to hold an SImode (or smaller) value.
3923
3924 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
3925
3926         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
3927         registry only.
3928         * crtstuff.c: Likewise.
3929
3930 2002-01-25  Kazu Hirata  <kazu@hxi.com>
3931
3932         * config/h8300/h8300.md (negation patterns): Tighten
3933         predicates to register_operand.
3934
3935 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
3936
3937         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
3938         mode, not Pmode.
3939
3940         * builtins.c (expand_builtin_prefetch): Same.
3941
3942 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3943
3944         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
3945         modes.
3946
3947 2002-01-24  Kazu Hirata  <kazu@hxi.com>
3948
3949         * config/h8300/h8300.c (print_operand): Remove support for
3950         operand character 'A'.
3951         * config/h8300/h8300.md (three anonymous patterns): Replace
3952         operand character 'A' with either 'T' or 'S'.
3953
3954 2002-01-24  Kazu Hirata  <kazu@hxi.com>
3955
3956         * config/h8300/h8300.c (print_operand): Remove support for
3957         operand character 'U'.
3958
3959 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
3960
3961         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3962
3963 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
3964
3965         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3966         values to be assigned to the stack pointer.
3967
3968 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
3969
3970         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3971         to const_double needs to be done right for big-endian systems.
3972
3973 2002-01-24  Jason Merrill  <jason@redhat.com>
3974
3975         PR c++/2432
3976         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3977         to can_throw_internal.
3978
3979 2002-01-23  Richard Henderson  <rth@redhat.com>
3980
3981         * fold-const.c (fold): Change UINT_MAX test to check vs precision
3982         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
3983
3984 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3985
3986         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3987         (symGOT2reg): Use them, then set as GOT value as unchanging.
3988         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
3989         as a temporary, if possible.
3990         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
3991         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3992
3993 2002-01-23  Kazu Hirata  <kazu@hxi.com>
3994
3995         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3996         accept to accept 0x80 as operands[2].
3997
3998 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3999
4000         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
4001
4002 2002-01-23  Richard Henderson  <rth@redhat.com>
4003
4004         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
4005
4006 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
4007
4008         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
4009         (parmlist_or_identifiers_1): Verify that only a parmlist follows
4010         an attribute.
4011
4012 2002-01-23  Richard Henderson  <rth@redhat.com>
4013
4014         * expr.c (move_by_pieces_1): Extend size before negation.
4015
4016         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
4017         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
4018         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
4019         * config/m68k/t-m68kelf: Likewise.
4020
4021 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
4022
4023         * config/xtensa/elf.h: New file.
4024         * config/xtensa/lib1funcs.asm: New file.
4025         * config/xtensa/lib2funcs.S: New file.
4026         * config/xtensa/linux.h: New file.
4027         * config/xtensa/t-xtensa: New file.
4028         * config/xtensa/xtensa-config.h: New file.
4029         * config/xtensa/xtensa-protos.h: New file.
4030         * config/xtensa/xtensa.c: New file.
4031         * config/xtensa/xtensa.h: New file.
4032         * config/xtensa/xtensa.md: New file.
4033         * config.gcc (xtensa-*-elf*): New target.
4034         (xtensa-*-linux*): New target.
4035         * cse.c (canon_hash): Compare rtx pointers instead of register
4036         numbers.  This is required for the Xtensa port.
4037         * integrate.c (copy_insn_list): Handle case where the static
4038         chain is in memory and the memory address has to be copied to
4039         a register.
4040         * doc/invoke.texi (Option Summary): Add Xtensa options.
4041         (Xtensa Options): New node.
4042         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
4043
4044 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
4045
4046         * diagnostic.c (internal_error): Do ICE suppression only
4047         when ENABLE_CHECKING is not defined.
4048
4049         * c-typeck.c (require_complete_type): Return error_mark_node
4050         if type is error_mark_node.
4051
4052 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
4053
4054         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
4055         -Os and issue a warning.
4056
4057 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
4058
4059         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
4060         current (lack of) need for host configuration by hand.
4061
4062         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
4063         references.  Documentation of some target macros moved from
4064         hostconfig.texi to tm.texi.
4065
4066 2002-01-23  Will Cohen  <wcohen@redhat.com>
4067
4068         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
4069         defined.
4070
4071 2002-01-23  Kazu Hirata  <kazu@hxi.com>
4072
4073         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
4074         operand[3].
4075
4076 2002-01-23  Jason Merrill  <jason@redhat.com>
4077
4078         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
4079
4080         * function.c (assign_parms): Don't put args of inline functions
4081         into registers when not optimizing.
4082
4083 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
4084
4085         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
4086         (prologue_use): New pattern.
4087         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
4088         preference to gen_rtx_USE.
4089         (thumb_expand_prologue): Use gen_prologue_use in preference to
4090         gen_rtx_USE.
4091         (thumb_expand_epilogue): Use gen_prologue_use in preference to
4092         gen_rtx_USE.
4093
4094 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
4095
4096         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
4097
4098 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4099
4100         PR c/3504
4101         * doc/extend.texi: Correct documentation of __alignof__.
4102
4103 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
4104
4105         * params.h: Rename arguments of DEFPARAM so that it will be
4106         recognized as a translation keyword.
4107
4108 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
4109
4110         * extend.texi: Document altivec functions.
4111         Fix N-bit adjectives in X86 builtin documentation.
4112
4113 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
4114
4115         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
4116         auto_inc_dec values.
4117
4118 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
4119
4120         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
4121         after backslash.
4122         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
4123
4124 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
4125
4126         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
4127
4128 2002-01-22  Richard Henderson  <rth@redhat.com>
4129
4130         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
4131         copy_insn not copy_rtx.
4132
4133 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
4134
4135         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
4136         "nonzero" as that might add "1" bits.  Ensure "constop" is
4137         properly sign extened.
4138         (force_to_mode): Tweak for sign extended constop.
4139
4140 2002-01-22  Richard Henderson  <rth@redhat.com>
4141
4142         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
4143         for_each_rtx instead of assuming we're already looking at the MEM.
4144         (split_small_symbolic_mem_operand): Likewise.
4145         * config/alpha/alpha.h (PREDICATE_CODES): Update.
4146         * config/alpha/alpha.md (small symbolic memory splitters): Update.
4147
4148 2002-01-22  Richard Henderson  <rth@redhat.com>
4149
4150         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
4151         sequence number for the literal.
4152         (divmoddi_internal_er): Likewise.
4153
4154 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4155
4156         PR java/4972
4157         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
4158         in LIBICONV variable.
4159         * configure: Regenerated.
4160
4161 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
4162
4163         * dependence.c (build_def_use): Remove array_idx.
4164
4165         * dwarfout.c (last_filename): Remove.
4166         (output_compile_unit_die): Remove last_filename.
4167
4168 2002-01-22  Roger Sayle  <roger@eyesopen.com>
4169             Richard Henderson  <rth@redhat.com>
4170
4171         PR opt/3640
4172         * fold-const.c (fold): Optimize unsigned comparisons against
4173         UINT_MAX (and similar unsigned constants).
4174
4175 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
4176
4177         * Makefile.in (loop.o): Depend on OPTABS_H.
4178         * loop.c (emit_prefetch_instructions): Check the prefetch operand
4179         against the predicate.
4180
4181         PR target/5379
4182         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
4183         for the address operand.
4184
4185 2002-01-22  Richard Henderson  <rth@redhat.com>
4186
4187         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
4188
4189 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4190
4191         PR other/5450
4192         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
4193         preprocessor flags.
4194
4195 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
4196
4197         * config.gcc (x86_64-*-netbsd*): New target.
4198         * config/i386/netbsd64.h: New file.
4199
4200 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
4201
4202         * regrename.c (kill_value): Fix typo.
4203
4204 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
4205
4206         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
4207
4208         * config/rs6000/rs6000.h: Same.
4209
4210         * function.c (instantiate_virtual_regs): Remove
4211         STARTING_FRAME_PHASE.
4212         (assign_stack_local_1): Same.
4213         Calculate frame phase.
4214
4215 2002-01-22  Nick Clifton  <nickc@redhat.com>
4216
4217         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
4218         variable declaration to outer scope in order to simplify
4219         future extensions.
4220         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
4221         arm_hard_regno_mode_ok.
4222         * config/arm/arm-protos.h: Add a prototype for
4223         arm_hard_regno_mode_ok.
4224         * config/arm/arm.c (soft_df_operand): Remove now redundant
4225         check for DImode values using IP_REGNUM.
4226         (nonimmediate_soft_df_operand): Remove now redundant check for
4227         DImode values using IP_REGNUM.
4228         (arm_hard_regno_mode_ok): New function. New check: make sure
4229         that DImode values are not stored in IP_REGNUM.
4230
4231         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
4232         note with a USE.
4233         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
4234
4235 2002-01-22  Jason Merrill  <jason@redhat.com>
4236
4237         * c-semantics.c (genrtl_compound_stmt): Only check nesting
4238         consistency if this COMPOUND_STMT is scoped.
4239
4240 2002-01-22  Kazu Hirata  <kazu@hxi.com>
4241
4242         * predict.c: Fix formatting.
4243         * print-tree.c: Likewise.
4244         * protoize.c: Likewise.
4245         * real.h: Likewise.
4246         * rtl.h: Likewise.
4247         * sbitmap.h: Likewise.
4248         * scan.c: Likewise.
4249         * sched-deps.c: Likewise.
4250         * sched-vis.c: Likewise.
4251         * sdbout.c: Likewise.
4252         * sibcall.c: Likewise.
4253         * ssa.c: Likewise.
4254         * ssa-ccp.c: Likewise.
4255         * ssa-dce.c: Likewise.
4256         * stmt.c: Likewise.
4257         * stor-layout.c: Likewise.
4258         * system.h: Likewise.
4259
4260 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4261
4262         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
4263         if fits in bounds of base type.
4264
4265         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
4266         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
4267         (add_bound_info, default): If can't find a context, make a
4268         SAVE_EXPR.
4269         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
4270
4271 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
4272
4273         * c-typeck.c (parser_build_binary_op): If result from
4274         build_binary_op is ERROR_MARK just return error_mark_node without
4275         further processing.
4276
4277 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
4278
4279         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
4280         Split a.out-specific bits into...
4281         * config/netbsd-aout.h: ...this.
4282         * config/netbsd-elf.h: New file.
4283         * config/alpha/netbsd-elf.h: Remove.
4284         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
4285         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
4286         (STARTFILE_SPEC): Remove redundant definition.
4287         (ENDFILE_SPEC): Likewise.
4288         (LINK_SPEC): Likewise.
4289         (CPP_SPEC): Likewise.
4290         (ASM_SPEC): Likewise.
4291         (LIB_SPEC): Likewise.
4292         (SWITCH_TAKES_ARG): Likewise.
4293         (TARGET_MEM_FUNCTIONS): Likewise.
4294         (CPP_PREDEFINES): Redefine.
4295         (ASM_FINAL_SPEC): Remove redefinition.
4296         (ASM_COMMENT_START): Redefine.
4297         (FUNCTION_PROFILER): Define.
4298         (TARGET_VERSION): Redefine.
4299         Comment and formatting cleanup.
4300         * config/i386/netbsd.h: Include <netbsd-aout.h>.
4301         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
4302         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
4303         big- or little-endian.
4304         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
4305         * config.gcc (*-*-netbsd*): Add definitions common to all
4306         NetBSD configs.
4307         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
4308         gnu_ld definitions.  Add netbsd-elf.h to and remove
4309         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
4310         tmake_file, and don't lose previous tmake_file contents.
4311         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
4312         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
4313         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
4314         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
4315         (mipsel-*-netbsd*): Rename this to...
4316         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
4317         mips/little.h to tm_file for mips*el-*.
4318         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
4319         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
4320         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
4321
4322 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4323
4324         * pa-protos.h (reg_before_reload_operand): New function prototype.
4325         * pa.c (reg_before_reload_operand): New function implementation.
4326         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
4327         contraints to "*m".
4328
4329 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4330
4331         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
4332
4333 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4334
4335         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
4336         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
4337         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
4338         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
4339         (ENDFILE_SPEC): Undefine.
4340         (STARTFILE_SPEC): Redefine for PA.
4341
4342 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4343
4344         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
4345
4346 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
4347
4348         * config.gcc: Add entries to supported PowerPC --with-cpu
4349         types.
4350
4351 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
4352
4353         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
4354         true for 64-bit mode only SSE registers in 32-bit mode.
4355
4356 2002-01-21  Kazu Hirata  <kazu@hxi.com>
4357
4358         * unwind-dw2.c: Fix formatting.
4359         * unwind-dw2-fde.c: Likewise.
4360         * unwind-dw2-fde.h: Likewise.
4361         * unwind-pe.h: Likewise.
4362         * varasm.c: Likewise.
4363         * varray.h: Likewise.
4364
4365 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
4366
4367         Remove workaround for register stack overwrite bug in mmix.
4368         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
4369         support for TARGET_REG_STACK_FILL_BUG.
4370         * config/mmix/mmix.h: Remove member has_call_without_parameters.
4371         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
4372         Delete.
4373         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
4374         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
4375         -mno-reg-stack-fill-bug-workaround.
4376         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
4377         machine member has_call_without_parameters.
4378         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
4379         -mreg-stack-fill-bug-workaround and
4380         -mno-reg-stack-fill-bug-workaround.
4381         (MMIX Options): Ditto.
4382
4383 2002-01-21  Kazu Hirata  <kazu@hxi.com>
4384
4385         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
4386         as appropriate.
4387         Remove redundant code.
4388
4389 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4390
4391         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
4392         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4393         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4394         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
4395         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
4396         out target macro definitions and non-target-specific comments
4397         mostly taken from old versions of the manual.
4398
4399 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4400
4401         * config/h8300/h8300.h: Fix comment formatting.
4402         * config/ia64/aix.h: Likewise.
4403         * config/ia64/ia64-protos.h: Likewise.
4404         * config/ia64/ia64.c: Likewise.
4405         * config/ia64/ia64.h: Likewise.
4406         * config/ia64/ia64intrin.h: Likewise.
4407         * config/ia64/linux.h: Likewise.
4408         * config/ia64/unwind-aix.c: Likewise.
4409         * config/ia64/unwind-ia64.c: Likewise.
4410
4411 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4412
4413         * config/h8300/h8300.c: Revise comments about shift code.
4414
4415 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4416
4417         * config/h8300/h8300.c (function_arg): Update a comment.
4418
4419 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4420
4421         * config/h8300/h8300.md: Update the comments at the beginning
4422         of the file.
4423
4424 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4425
4426         * config/i370/i370.c: Fix comment formatting.
4427         * config/i370/i370.h: Likewise.
4428         * config/i370/i370.md: Likewise.
4429         * config/i370/linux.h: Likewise.
4430
4431 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4432
4433         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
4434
4435         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
4436         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
4437         in incomplete case.
4438
4439 2002-01-20  Graham Stott  <grahams@redhat.com>
4440
4441         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
4442
4443 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4444
4445         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
4446
4447 2002-01-19  Tom Rix  <trix@redhat.com>
4448
4449         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
4450
4451 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
4452
4453         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
4454
4455         * function.c (assign_stack_local_1): Adjust x_frame_offset with
4456         STARTING_FRAME_PHASE.
4457         (STARTING_FRAME_PHASE): New.
4458         (instantiate_virtual_regs): Check saneness of
4459         STARTING_FRAME_PHASE.
4460
4461         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
4462
4463 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
4464
4465         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
4466
4467 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4468
4469         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
4470         be used for bootstrapping GCC 3.0.
4471
4472 2002-01-18  Kazu Hirata  <kazu@hxi.com>
4473
4474         * config/h8300/h8300.md: Fix an insn length.
4475
4476 2002-01-18  Kazu Hirata  <kazu@hxi.com>
4477
4478         * bitmap.h: Fix comment formatting.
4479         * combine.c: Likewise.
4480         * cppfiles.c: Likewise.
4481         * c-pragma.h: Likewise.
4482         * c-typeck.c: Likewise.
4483         * df.c: Likewise.
4484         * dwarf2out.c: Likewise.
4485         * function.c: Likewise.
4486         * gcc.c: Likewise.
4487         * genattrtab.c: Likewise.
4488         * gthr-win32.h: Likewise.
4489         * haifa-sched.c: Likewise.
4490         * predict.c: Likewise.
4491         * rtlanal.c: Likewise.
4492         * rtl.h: Likewise.
4493         * unwind-dw2-fde.h: Likewise.
4494         * unwind-pe.h: Likewise.
4495         * vmsdbgout.c: Likewise.
4496
4497 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4498
4499         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
4500         if type_required and passed decl.
4501
4502 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
4503
4504         * config.gcc (cpu_type): Include altivec.h in powerpc
4505         extra_headers.
4506         Same for darwin.
4507
4508         * config/rs6000/altivec.h: New.
4509
4510 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
4511
4512         * doc/install.texi (*-ibm-aix*): Update assembler and exception
4513         handling information.
4514         * doc/trouble.texi (Interoperation): Add libstdc++ information
4515         for AIX.
4516         (Misunderstandings): Add template instantiation and static template
4517         member information for AIX.
4518
4519 2002-01-17  Jason Merrill  <jason@redhat.com>
4520
4521         * dbxout.c (dbxout_type): Support const and volatile.
4522
4523         * except.c (add_partial_entry): Remove backwards compatibility code.
4524         (end_protect_partials): Likewise.
4525
4526 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
4527
4528         * config/ia64/ia64.md (prologue_use): New.
4529         * config/ia64/ia64.c (ia64_expand_prologue): Use
4530         gen_prologue_use instead of gen_rtx_USE.
4531         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
4532         as CODE_FOR_pred_rel_mutex.
4533         (ia64_sched_reorder2): Likewise.
4534
4535 2002-01-16  Eric Christopher  <echristo@redhat.com>
4536
4537         * config/mips/r3900.h: Reformat.
4538         (SUBTARGET_CPP_SIZE_SPEC): Remove.
4539         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
4540         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
4541         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
4542         * config/mips/t-elf: Remove mips3 multilib.
4543
4544 2002-01-16  H.J. Lu <hjl@gnu.org>
4545
4546         * config/mips/linux.h: Include "mips/abi64.h".
4547
4548 2002-01-16  H.J. Lu <hjl@gnu.org>
4549
4550         * config/mips/t-linux: New.
4551
4552         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
4553
4554         * config/mips/linux.h: Don't include "gofast.h".
4555         (INIT_SUBTARGET_OPTABS): Removed.
4556
4557 2002-01-16  Kazu Hirata  <kazu@hxi.com>
4558
4559         * config/h8300/h8300-protos.h: Replace emit_a_shift with
4560         output_a_shift.
4561         * config/h8300/h8300.c: Likewise.
4562         * config/h8300/h8300.md: Likewise.
4563
4564 2002-01-16  Kazu Hirata  <kazu@hxi.com>
4565
4566         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
4567         spaces after an opcode name.
4568         (pushqi1_h8300hs): Likewise.
4569         (pushhi1_h8300hs): Likewise.
4570
4571 2002-01-16  Kazu Hirata  <kazu@hxi.com>
4572
4573         * doc/extend.texi: Replace "option" with "attribute"
4574         appropriately.
4575
4576 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
4577
4578         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
4579         (and:DI () (const_int -8)).
4580         (split_small_symbolic_mem_operand): Split
4581         (mem (and:DI () (const_int -8)).
4582
4583 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
4584
4585         PR target/5309:
4586         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
4587         same way as TYPE_IMUL.
4588         (ultrasparc_sched_reorder): Likewise.
4589         * config/sparc/sparc.md (type): Add comment to update
4590         ultrasparc_sched_reorder when making changes.
4591
4592 2002-01-16  Kazu Hirata  <kazu@hxi.com>
4593
4594         * doc/invoke.texi: Change the dump file name of block
4595         reordering pass from 28.bbro to 29.bbro.
4596         Mention -dk option.
4597
4598 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
4599
4600         * i386.md (minsf splitter): Fix pasto.
4601
4602 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
4603
4604         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
4605         to frame pointer initialisation instruction.
4606         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
4607         initialisation instruction.
4608         (soft_df_operand): Do not accept the IP register.
4609         (nonimmediate_soft_df_operand): Do not accept the IP register.
4610
4611 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
4612
4613         PR target/5357:
4614         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
4615         MASK_V8 being both set.
4616
4617 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
4618
4619         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4620         insn for GOT register; add REG_MAYBE_DEAD notes instead.
4621         config/s390/s390.md (call, call_value): Add GOT register to
4622         CALL_INSN_FUNCTION_USAGE where needed.
4623         (call_exp, call_value_exp): New.
4624
4625 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
4626
4627         * config/arm/arm.c: General formatting tidy up.
4628
4629 2002-01-16  Graham Stott  <grahams@redhat.com>
4630
4631         * calls.c (try_to_integrate): Use "(size_t)" intermediate
4632         cast and when casting an integer literal to "rtx" pointer.
4633         (expand_call): Likewise.
4634         * flow.c (try_pre_increment): Likewise.
4635         (find_use_as_address): Likewise.
4636         * integrate.c (expand_iline_function): Likewise.
4637         * regmove.c (try_auto_increment): Likewise.
4638
4639 2002-01-16  Graham Stott  <grahams@redhat.com>
4640
4641         * sched-rgn.c (passed): Use sbitmap_free.
4642         (header): Likewise.
4643         (inner): Likewise.
4644         (in_queue): Likewise.
4645         (in_stack): Likewise.
4646
4647 2002-01-15  Eric Christopher  <echristo@redhat.com>
4648
4649         * flow.c (propagate_one_insn): Change to use fatal_insn.
4650
4651 2002-01-15  Kazu Hirata  <kazu@hxi.com>
4652
4653         * expmed.c (extract_fixed_bit_field): Remove unused code.
4654         * system.h: Poison SLOW_ZERO_EXTEND.
4655         * doc/tm.texi: Remove.
4656         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4657         * config/arm/arm.h: Likewise.
4658         * config/avr/avr.h: Likewise.
4659         * config/clipper/clipper.h: Likewise.
4660         * config/convex/convex.h: Likewise.
4661         * config/d30v/d30v.h: Likewise.
4662         * config/dsp16xx/dsp16xx.h: Likewise.
4663         * config/elxsi/elxsi.h: Likewise.
4664         * config/fr30/fr30.h: Likewise.
4665         * config/h8300/h8300.h: Likewise.
4666         * config/i370/i370.h: Likewise.
4667         * config/i386/i386.h: Likewise.
4668         * config/m68k/m68k.h: Likewise.
4669         * config/mips/mips.h: Likewise.
4670         * config/ns32k/ns32k.h: Likewise.
4671         * config/pdp11/pdp11.h: Likewise.
4672         * config/pj/pj.h: Likewise.
4673         * config/s390/s390.h: Likewise.
4674         * config/sh/sh.h: Likewise.
4675         * config/stormy16/stormy16.h: Likewise.
4676         * config/v850/v850.h: Likewise.
4677         * config/vax/vax.h: Likewise.
4678         * config/we32k/we32k.h: Likewise.
4679
4680 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
4681
4682         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4683         (altivec_lvsl): Change constraint to b.
4684         (altivec_lvsr): Same.
4685         (altivec_lvebx): Same.
4686         (altivec_lvehx): Same.
4687         (altivec_lvewx): Same.
4688         (altivec_lvxl): Same.
4689         (altivec_lvx): Same.
4690         (altivec_stvx): Add parallel.
4691         (altivec_stvxl): Same.
4692         (altivec_stvehx): Same.
4693         (altivec_stvebx): Same.
4694         (altivec_stvebx): Same.
4695
4696 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
4697
4698         * config.gcc: Change altivec.h to altivec-defs.h.
4699
4700         * config/rs6000/altivec.h: Delete.
4701
4702         * config/rs6000/altivec-defs.h: Add.
4703
4704 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4705
4706         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
4707         and UMOD modes.
4708
4709         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
4710         less than or equal to eight bytes.
4711
4712         * vax.md (andsi3): Remove constraints and change SET destination
4713         operand type to nonimmediate_operand.
4714         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
4715         when it is a CONST_INT.
4716
4717 2002-01-15  Jason Merrill  <jason@redhat.com>
4718
4719         * c-common.def (FILE_STMT): New code.
4720         * c-common.c (statement_code_p): It's a statement.
4721         * c-common.h (stmt_tree_s): Add x_last_filename.
4722         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
4723         (last_expr_filename): New macro.
4724         * c-semantics.c (begin_stmt_tree): Initialize it.
4725         (add_stmt): If the filename changed, also insert a
4726         FILE_STMT.
4727         (expand_stmt): Handle seeing one.
4728
4729 2002-01-15  Eric Christopher  <echristo@redhat.com>
4730
4731         * flow.c (propagate_one_insn): Add error message and print out
4732         insn for debugging.
4733
4734 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
4735
4736         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
4737         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
4738         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
4739         TRAMPOLINE_ALIGNMENT.
4740         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
4741         to be in bits.
4742         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
4743         PCC_BITFIELD_TYPE_MATTERS.
4744         * config/interix.h (STDC_VALUE): Remove.  Use
4745         STDC_0_IN_SYSTEM_HEADERS.
4746         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
4747         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
4748         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
4749
4750 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4751
4752         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
4753         not work on this platform currently.
4754
4755 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
4756
4757         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
4758         readonly_warning in _().
4759
4760 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
4761
4762         * gcc.c (delete_if_ordinary): Backout previous change.
4763
4764 2002-01-15  Kazu Hirata  <kazu@hxi.com>
4765
4766         * config/h8300/h8300.c (print_operand): Remove support for
4767         unused operand characters.
4768
4769         * read-rtl.c: Fix formatting.
4770         * real.c: Likewise.
4771         * recog.c: Likewise.
4772         * regclass.c: Likewise.
4773         * regmove.c: Likewise.
4774         * reg-stack.c: Likewise.
4775         * reload1.c: Likewise.
4776         * rtlanal.c: Likewise.
4777
4778 2002-01-15  Kazu Hirata  <kazu@hxi.com>
4779
4780         * config/i386/i386.c: Fix formatting.
4781
4782 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
4783
4784         * c-typeck.c (process_init_element): Don't save_expr
4785         COMPOUND_LITERAL_EXPR if just its initializer will be used.
4786
4787 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
4788
4789         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
4790         emit optional traceback table if optimize_size or TARGET_ELF.
4791         * config/rs6000/rs6000.md (prefetch): New.
4792
4793 2002-01-15  Andreas Jaeger  <aj@suse.de>
4794
4795         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
4796
4797 2002-01-15  Kazu Hirata  <kazu@hxi.com>
4798
4799         * mips-tfile.c: Fix formatting.
4800
4801 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
4802
4803         * unroll.c (final_reg_note_copy): Fix previous commit.
4804
4805 2002-01-14  Kazu Hirata  <kazu@hxi.com>
4806
4807         * config/h8300/h8300-protos.h: Remove the prototype for
4808         eq_operator.
4809         * config/h8300/h8300.c (eq_operator): Remove.
4810
4811 2002-01-14  Richard Henderson  <rth@redhat.com>
4812
4813         * config/i386/i386.md (prefetch): Tidy.
4814         (prefetch_3dnow): Fix locality operand.
4815
4816 2002-01-14  Richard Henderson  <rth@redhat.com>
4817
4818         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
4819         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
4820
4821 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
4822
4823         * reload1.c (reload_combine): Pass reg_sum replacement through
4824         copy_rtx in loop performing multiple changes.
4825
4826 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
4827
4828         * except.c (remove_unreachable_regions): New.
4829         (free_eh_status): Clear exception_handler_labels.
4830         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
4831         (find_exception_handler_labels): Don't add the same label more than
4832         once.
4833         (remove_exception_handler_label): Don't die if
4834         find_exception_handler_labels hasn't been called for the current
4835         function yet.
4836
4837 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
4838
4839         * toplev.c (rest_of_compilation): Rebuild jump labels after
4840         gcse.
4841
4842 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
4843
4844         * doc/extend.texi: Move documentation of X86 built-in functions
4845         here.
4846         * doc/invoke.texi: From here.
4847         * doc/sourcebuild.texi: Document location of documentation for
4848         machine built-in functions.
4849
4850 2002-01-13  Christopher Faylor  <cgf@redhat.com>
4851
4852         * cppfiles.c (TEST_THRESHOLD): New macro.
4853         (SHOULD_MMAP): Ditto.
4854         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
4855         be used.
4856
4857 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
4858
4859         * unroll.c (final_reg_note_copy): Properly handle
4860         REG_LABEL
4861         (unroll_loops): Fix LOOP_CONDITION heuristics.
4862
4863 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
4864
4865         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
4866         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
4867
4868 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4869
4870         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
4871         threaded loop.
4872
4873 2002-01-14  Tom Rix  <trix@redhat.com>
4874
4875         * config/rs6000/rs6000.md: Fix typo with sradi.
4876
4877 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
4878
4879         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
4880         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
4881         (clrstrdi, clrstrsi): Adapt callers.
4882
4883         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
4884
4885         (movti splitter): Never use register 0 as base register.
4886
4887 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
4888
4889         * combine.c (simplify_shift_const): Always generate new rtx
4890         for shift expression instead of reusing given expression.
4891
4892 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4893
4894         * config/alpha/alpha.c (alpha_expand_mov): Don't call
4895         alpha_legitimize_address unless mode is Pmode.
4896
4897 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
4898
4899         * doc/md.texi (Modifiers): Document the '*' constraint for the
4900         user.
4901
4902         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
4903         * doc/extend.texi (Function Attributes): 'interrupt' is valid
4904         for xstormy16 too.
4905
4906 2002-01-13  Richard Henderson  <rth@redhat.com>
4907
4908         * reload.c (find_reloads): Use a hard reg destination as reload reg
4909         for an input reload of the source.
4910
4911 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4912
4913         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
4914         more generic.
4915
4916 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
4917
4918         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4919         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4920
4921         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
4922
4923 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4924
4925         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
4926
4927 2002-01-12  Tom Rix  <trix@redhat.com>
4928
4929         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
4930         TARGET_POWERPC64.
4931
4932 2002-01-12  Richard Henderson  <rth@redhat.com>
4933
4934         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
4935
4936         * doc/invoke.texi: Update Alpha options.
4937
4938         * doc/invoke.texi: Update i386 built-in function lists.
4939
4940 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
4941
4942         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
4943         referencing outside.
4944
4945 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4946
4947         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
4948         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
4949         offsets, and change line folding.
4950         * optabs.c (expand_binop): Remove warnings.
4951         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
4952
4953 2002-01-12  Graham Stott <grahams@redhat.com>
4954
4955         * attribs.c (handle_deprecated_attribute): constify WHAT.
4956         * diagnostic.c (warn_deprecated_use): Add braces, fixes
4957         dangling else warning and constify WHAT.
4958         * except.h (struct function, struct inline_remap): Move
4959         struct tag forward defs before all prototypes.
4960         (duplicate_eh_regions): Whitespace.
4961
4962 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
4963
4964         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4965         MODE_BASE_REG_CLASS.
4966         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4967
4968 2002-01-12  Richard Henderson  <rth@redhat.com>
4969
4970         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4971         (ix86_expand_vector_move): New.
4972         (bdesc_2arg): Remove andps, andnps, orps, xorps.
4973         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
4974         Remove old prefetch builtins.  Special case the logicals removed above.
4975         (ix86_expand_builtin): Likewise.
4976         (safe_vector_operand): Use V4SFmode, not TImode.
4977         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
4978         (ix86_expand_timode_binop_builtin): New.
4979         * config/i386/i386-protos.h: Update.
4980         * config/i386/i386.h (enum ix86_builtins): Update.
4981         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4982         Use ix86_expand_vector_move in vector move expanders.
4983         (movti_internal, movti_rex64): Add xorps alternative.
4984         (sse_clrv4sf): Rename and adjust from sse_clrti.
4985         (prefetch): Don't work so hard.
4986         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4987         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4988         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4989
4990 2002-01-11  Richard Henderson  <rth@redhat.com>
4991
4992         * config/i386/mmintrin.h: New file.
4993         * config/i386/xmmintrin.h: New file.
4994         * config.gcc (i?86-*-*): Add extra_headers.
4995         * simplify-rtx.c (simplify_unary_operation): Handle saturating
4996         truncation codes.
4997         (simplify_binary_operation): Handle saturating arithmetic codes.
4998         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4999         not the lowpart subreg.
5000         (ix86_expand_builtin): Return a TImode dummy register instead of 0
5001         on error.
5002         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
5003
5004 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5005
5006         * conflict.c (conflict_graph_compute): Free regsets when finished.
5007         * ssa.c (compute_coalesced_reg_partition): Likewise.
5008
5009 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5010
5011         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
5012         every where we allocate a register.
5013
5014 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5015
5016         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
5017         * lcm.c (compute_earliest, compute_farthest): Likewise.
5018
5019 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
5020
5021         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
5022
5023 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
5024
5025         * doc/rtl.texi (Insns): Fix 2 typos.
5026
5027 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5028
5029         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
5030         options.  Use @table @gcctabopt for MMIX options.  Add index
5031         entries for MMIX options.  Start new paragraph with first
5032         heading of the machine-dependent options.
5033
5034 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5035
5036         PR other/5299
5037         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
5038         * combine.c (force_to_mode): Same.
5039         * reload1.c (clear_reload_reg_in_use): Same.
5040
5041 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
5042
5043         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
5044         and 'subtargets'.
5045
5046 2002-01-11  Andreas Jaeger  <aj@suse.de>,
5047             Brad Lucier <lucier@math.purdue.edu>
5048
5049         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
5050         mcpu.
5051
5052 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
5053
5054         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
5055         Protect with IN_LIBGCC.
5056         (LINK_EH_SPEC): Add required trailing space.
5057
5058 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
5059
5060         * c-tree.h: Move function declarations so that they are listed
5061         under the filename which contains them.
5062         (check_identifier, finish_decl_top_level,
5063         lookup_name_current_level_global, shadow_record_fields): Remove.
5064
5065 2002-01-11  Andreas Jaeger  <aj@suse.de>
5066
5067         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
5068         march.
5069
5070 2002-01-10  Richard Henderson  <rth@redhat.com>
5071
5072         * config/alpha/alpha.c (print_operand): Add 'J'.
5073         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
5074         new operand with the sequence number for the lituse.  When splitting
5075         the insns, use gen_movdi_er_high_g and generate a sequence number.
5076         (gen_movdi_er_high_g): Print the sequence number if non-zero.
5077
5078 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
5079
5080         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
5081         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
5082         stvxl.
5083         (altivec_expand_builtin): Same.
5084         (altivec_expand_stv_builtin): New.
5085
5086         * config/rs6000/rs6000.h (rs6000_builtins): Same.
5087
5088         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
5089         ("altivec_lvehx"): New.
5090         ("altivec_lvewx"): New.
5091         ("altivec_lvxl"): New.
5092         ("altivec_lvx"): New.
5093         ("altivec_stvx"): New.
5094         ("altivec_stvebx"): New.
5095         ("altivec_stvehx"): New.
5096         ("altivec_stvewx"): New.
5097         ("altivec_stvxl"): New.
5098
5099 2002-01-10  Richard Henderson  <rth@redhat.com>
5100
5101         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
5102         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
5103         care not to delete instructions twice.
5104
5105 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
5106
5107         * toplev.c: Don't declare environ (it's not used anywhere).
5108         * configure.in: Don't check for declaration of environ.
5109         * config/i386/xm-mingw32.h: Don't #define environ.
5110         * config.in, configure: Regenerate.
5111
5112 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
5113
5114         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
5115         * configure: Regenerate.
5116
5117         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
5118         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
5119         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
5120         alpha/xm-vms.h.
5121         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
5122         LIMITS_H_TEST here, not in m68k/x-next.
5123         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
5124         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
5125
5126         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
5127         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
5128         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
5129
5130         * config/i386/x-djgpp: Renamed i386/t-djgpp.
5131         * config/m88k/x-dolph: Renamed m88k/t-dolph.
5132         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
5133         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
5134         replacement of quadlib.asm with quadlib.c.
5135
5136         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
5137         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
5138         config/rs6000/xm-beos.h: Delete file.
5139
5140         * config.gcc: Update to match above changes.
5141
5142 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5143
5144         * config/h8300/h8300.h: Fix comment typos.
5145         * config/h8300/h8300.md: Likewise.
5146         * config/h8300/lib1funcs.asm: Likewise.
5147
5148 2002-01-10  Dale Johannesen  <dalej@apple.com>
5149
5150         PR optimization/5269
5151         * unroll.c (precondition_loop_p): Make *increment be the correct
5152         sign when n_iterations known, to avoid confusing caller.
5153
5154 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5155
5156         * doc/extend.texi (deprecated): Fix a typo.
5157
5158 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5159
5160         * basic-block.h (update_br_prob_note): Declare.
5161         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
5162         (try_forward_edges): Care negative frequencies and update note.
5163         (outgoing_edges_match): Tweek conditional merging heuristics.
5164         (try_crossjump_to_edge): use update_br_prob_note.
5165         * cfglayout.c (fixup_reorder_chain): Likewise.
5166         * cfrtl.c (update_br_prob_note): New.
5167         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
5168
5169         * i386.c (ix86_decompose_address): Return -1 if address contains
5170         shift.
5171         (legitimate_address_p): Require ix86_decompose_address to return 1.
5172
5173         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
5174         (cprop_insn): Likewise.
5175
5176 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5177
5178         * toplev.c: Fix formatting.
5179         * tree.c: Likewise.
5180         * tree-dump.c: Likewise.
5181         * unroll.c: Likewise.
5182         * unwind-dw2.c: Likewise.
5183         * unwind-dw2-fde.c: Likewise.
5184         * unwind-dw2-fde-glibc.c: Likewise.
5185         * unwind-sjlj.c: Likewise.
5186
5187 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5188
5189         * doc/invoke.texi: Document PDP-11 options.
5190
5191 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5192
5193         * config/h8300/h8300.h: Fix formatting.
5194
5195 2002-01-10  Ira Ruben   <ira@apple.com>
5196
5197         Add __attribute__ ((deprecated)).
5198         * extend.texi: Document __attribute__ ((deprecated)).
5199         * invoke.texi: Document -Wno-deprecated-declarations.
5200         * testsuite/g++.dg/other/deprecated.C: New C++ test.
5201         * testsuite/gcc.dg/deprecated.c: New C test.
5202         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
5203         (c_common_attribute_table): Add "deprecated" entry.
5204         (handle_deprecated_attribute): New function.
5205         * c-decl.c (deprecated_states): New enum.
5206         deprecated_state: State of "deprecated" handling.
5207         (start_decl): Set deprecated_state based on attributes.
5208         (grokdeclarator): Test for deprecated uses, propagate attribute.
5209         * c-typeck.c (build_component_ref): Test for deprecated fields.
5210         (build_external_ref): Test for deprecated primaries.
5211         * diagnostic.c (warn_deprecated_use) New function to issue
5212         warnings about __attribute__ ((depricated)) references.
5213         * flags.h (warn_deprecated_decl): Extern declared for
5214         -W[no-]deprecated-declarations option.
5215         * print-tree.c (print_node): Show deprecated flag status.
5216         * toplev.c (warn_deprecated_decl): Defined.
5217         (W_options): Added "deprecated-declaration".
5218         * toplev.h (warn_deprecated_use): Extern declared.
5219         * tree.h (struct tree_common): Define deprecated_flag.
5220         (TREE_DEPRECATED): New macro to access flag.
5221         * cp/call.c (build_call): Test for deprecated calls.
5222         * cp/class.c (add_implicitly_declared_members): Set global
5223         flag to tell grokdeclarator to not issue deprecated warnings.
5224         * cp/cp-tree.h: Add extern for adding_implicit_members.
5225         * cp/decl.c (deprecated_states): New enum.
5226         (start_decl): Set deprecated_state based on attributes.
5227         (grokdeclarator): Test for deprecated uses, propagate attribute.
5228         * cp/lex.c (do_identifier): Test for deprecated primaries.
5229         * cp/typeck.c (build_component_ref): Test for deprecated fields.
5230
5231 2002-01-10  Ira Ruben   <ira@apple.com>
5232
5233         Fix to assign attributes to inline member functions.
5234         * cp/decl.c (start_method): Handle attrlist.
5235
5236 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5237
5238         * combine.c (expand_field_assignment): Use subreg_lsb().
5239
5240 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
5241
5242         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
5243         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
5244         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
5245         Recurse for any operand of AND as long as constant is non-zero.
5246
5247 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5248
5249         * config/h8300/h8300.md: Remove constraints from expanders.
5250
5251 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5252
5253         * varasm.c: Fix formatting.
5254         * varray.c: Likewise.
5255         * vmsdbgout.c: Likewise.
5256         * xcoffout.c: Likewise.
5257
5258 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5259
5260         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
5261         update edge probabilities to match.
5262
5263 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5264
5265         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
5266         dependencies.
5267         * doc/languages.texi, doc/sourcebuild.texi: New files.
5268         * doc/configfiles.texi: Make a subsubsection.  Update.
5269         * doc/configterms.texi: Add @node.  Remove warning that this isn't
5270         instructions for building GCC.
5271         * doc/makefile.texi: Make a subsection.
5272         * doc/gccint.texi: Update.
5273
5274 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
5275
5276         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
5277
5278 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
5279
5280         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
5281
5282 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
5283
5284         * optabs.c (expand_fix): Look for wider integer modes first.
5285
5286         * i386.md (mov?f): Avoid the fake const double trick for medium
5287         memory model.
5288         (min?f*/max?f*): Prohibit memory operands for i387 variant.
5289         (fop_df_4): Disable for SSE compilation.
5290
5291 2002-01-10  Graham Stott  <grahams@redhat.com>
5292
5293         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
5294         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
5295
5296 2002-01-10  Richard Henderson  <rth@redhat.com>
5297
5298         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
5299
5300 2002-01-10  Richard Henderson  <rth@redhat.com>
5301
5302         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
5303         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
5304
5305 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5306
5307         * combine.c (can_combine_p): Fix a comment typo.
5308
5309 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
5310
5311         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
5312         empty list correctly.  Change loop index $t to $f for
5313         consistency with rest of Makefile.
5314
5315 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
5316
5317         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
5318         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5319
5320         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
5321         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
5322         (altivec_init_builtins): Same.
5323         (altivec_expand_unop_builtin): Return NULL_RTX on error.
5324         (altivec_expand_binop_builtin): Same.
5325         (altivec_expand_ternop_builtin): Same.
5326         (bdesc_dst): New.
5327
5328         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
5329         ("altivec_vctuxs"): Fix typo.
5330         ("altivec_vnmsubfp"): Same.
5331         ("altivec_dssall"): New.
5332         ("altivec_mfvscr"): New.
5333         ("altivec_dss"): New.
5334         ("altivec_lvsl"): New.
5335         ("altivec_lvsr"): New.
5336         ("altivec_dstt"): New.
5337         ("altivec_dstst"): New.
5338         ("altivec_dststt"): New.
5339         ("altivec_dst"): New.
5340
5341         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
5342         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5343
5344 2002-01-09  Richard Henderson  <rth@redhat.com>
5345
5346         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
5347
5348 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
5349
5350         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
5351         function.
5352         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
5353         prototype.
5354         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
5355
5356 2002-01-09  Kazu Hirata  <kazu@hxi.com>
5357
5358         * read-rtl.c: Fix formatting.
5359         * real.c: Likewise.
5360         * regclass.c: Likewise.
5361         * regrename.c: Likewise.
5362         * reg-stack.c: Likewise.
5363         * reload1.c: Likewise.
5364         * reload.c: Likewise.
5365         * rtl.c: Likewise.
5366
5367 2002-01-09  Kazu Hirata  <kazu@hxi.com>
5368
5369         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
5370         to extract items in the expr_list chain.
5371
5372 2002-01-09  Richard Henderson  <rth@redhat.com>
5373
5374         * config/vax/vax.c (vax_rtx_cost): Never abort.
5375
5376         * config/vax/vax.h (REAL_ARITHMETIC): Define.
5377
5378 2002-01-09  Jan Hubicka  <jh@suse.cz>
5379
5380         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
5381
5382 2002-01-09  Richard Henderson  <rth@redhat.com>
5383
5384         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
5385         Unify code from various alternatives.
5386
5387 2002-01-09  Richard Henderson  <rth@redhat.com>
5388
5389         * regrename.c (copy_value): Ignore the copy if the source register
5390         is present in the value chain with a narrower mode.
5391
5392 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
5393
5394         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
5395         for the c4x target. Also improve layout.
5396
5397 2002-01-09  Richard Henderson  <rth@redhat.com>
5398
5399         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
5400         * config/m32r/m32r.md (and ior xor splitters): Swap operands
5401         to match insn patterns.
5402
5403 2002-01-09  Richard Henderson  <rth@redhat.com>
5404
5405         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
5406         (copyprop_hardreg_forward_1): Likewise.
5407
5408 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5409
5410         * pa.md (decrement_and_branch_until_zero): Change predicate for
5411         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
5412
5413 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5414
5415         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
5416         gets undefined. For Darwin.
5417
5418 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5419
5420         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
5421
5422 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5423
5424         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
5425
5426 2002-01-08  Richard Henderson  <rth@redhat.com>
5427
5428         * regrename.c (copy_value): Ignore overlapping copies.
5429
5430 2002-01-08  Richard Henderson  <rth@redhat.com>
5431
5432         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
5433         as needed to avoid shared structure.
5434
5435 2002-01-08  Kazu Hirata  <kazu@hxi.com>
5436
5437         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
5438         H8/300H and H8/S.
5439
5440 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5441
5442         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
5443         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
5444         documentation of obsolete macros.
5445         * system.h: Poison these macros.
5446         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
5447         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
5448         config/c4x/c4x.h, config/clipper/clipper.h,
5449         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
5450         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
5451         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
5452         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
5453         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
5454         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
5455         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5456         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
5457         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
5458         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5459         config/sparc/sparc.h, config/stormy16/stormy16.h,
5460         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
5461         definitions and commented out definitions of obsolete macros.
5462         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
5463         of MAX_INT_TYPE_SIZE.
5464
5465 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
5466
5467         * config/s390/s390.c (s390_preferred_reload_class): Never
5468         return ADDR_REGS if it isn't a subset of the given class.
5469         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
5470         FP_REGS, but all superclasses as well.
5471
5472         * config/s390/s390.c (s390_function_profiler): Fix thinko.
5473
5474         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
5475         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
5476         must not be a const_int.
5477
5478 2002-01-08  Richard Henderson  <rth@redhat.com>
5479
5480         * Makefile.in (toplev.o): Depend on options.h.
5481         (gcc.o): Depend on specs.h.
5482
5483 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
5484
5485         * expr.c (store_expr): Convert VOIDmode constants back to target's
5486         mode.
5487
5488 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5489
5490         * doc/invoke.texi: Markup gcc as @command.  Refer to
5491         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
5492         of http://gcc.gnu.org/thanks.html.
5493
5494 2002-01-08  Dale Johannesen  <dalej@apple.com>
5495
5496         * config/rs6000/rs6000.md: Add missing int register
5497         target case to movdf_low.
5498
5499 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
5500
5501         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
5502         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
5503         (cppinit.o): Depend on except.h.
5504         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
5505         s-specs): New rules.
5506
5507         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
5508         Don't create specs.h/options.h/gencheck.h here.  Remove
5509         unnecessary variable settings from last argument of AC_OUTPUT.
5510         * config.in, configure: Regenerate.
5511         * intl.c: Hardcode package name as "gcc".
5512
5513         * cppinit.c: Include except.h.
5514         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
5515         appropriate.
5516         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
5517         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
5518         (!)USING_SJLJ_EXCEPTIONS.
5519         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
5520
5521 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5522
5523         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
5524         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
5525         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
5526         documentation of obsolete macros.
5527         * system.h: Poison these macros.
5528         * config/d30v/d30v.h, config/ns32k/encore.h,
5529         config/stormy16/stormy16.h: Remove definitions and commented out
5530         definitions of obsolete macros.
5531
5532 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
5533
5534         * objc/objc-act.c (handle_class_ref): Mark the declaration of
5535         %sobjc_class_ref_%s as used - to prevent unwanted compiler
5536         warnings.
5537
5538 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
5539
5540         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
5541         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
5542         to insn adjusting stack/frame pointer.
5543         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
5544         accept operands that cause the insn to be non-splittable.
5545
5546 2002-01-08  Graham Stott  <grahams@redhat.com>
5547
5548         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
5549         (C_TYPE_FIELDS_VOLATILE): Likewise.
5550         (C_TYPE_BEING_DEFINED): Likewise.
5551         (C_IS_RESERVED_WORD): Likewise.
5552         (C_TYPE_VARIABLE_SIZE): Likewise.
5553         (C_DECL_VARIABLE_SIZE): Likewise.
5554         (C_MISSING_PROTOTYPE_WARNED): Likewise.
5555         (C_SET_EXP_ORIGINAL_CODE): Likewise.
5556         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
5557         parenthesis.
5558         (C_DECL_ANTICIPATED): Likewise.
5559         (c_build_type_variant): Add parenthesis.
5560
5561 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5562
5563         * gcc.c (option_map): Remove --version.
5564         (process_command): Handle -fversion following the GNU Coding
5565         Standards.  Partially addresses PR other/704.
5566
5567 2002-01-08  Graham Stott  <grahams@redhat.com>
5568
5569         * combine.c (combine_instructions): Fix typo.
5570
5571 2002-01-08  Graham Stott  <grahams@redhat.com>
5572
5573         * debug.h: Use "tree" and "rtx" throughout.
5574
5575         * debug.c: Likewise.
5576
5577 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
5578
5579         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
5580         constant pool, use the pool's version of the symbol instead.
5581
5582 2002-01-07  Richard Henderson  <rth@redhat.com>
5583
5584         * regrename.c (find_oldest_value_reg): Ignore the value chain if
5585         the original register was copied in a mode with a fewer number of
5586         hard registers than the desired mode.
5587         (copyprop_hardreg_forward_1): Likewise.
5588         (debug_value_data): Fix loop test.
5589         * toplev.c (parse_options_and_default_flags): Reenable
5590         -fcprop-registers at -O1.
5591
5592 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
5593
5594         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
5595         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
5596
5597         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
5598         predicates.
5599
5600         * config/rs6000/rs6000.md: Add altivec predicate patterns.
5601
5602 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5603
5604         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
5605         (pa_output_function_prologue): Output local label at the beginning of
5606         the prologue when profiling.
5607         (hppa_profile_hook): Use the local label rather than the function label.
5608         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
5609
5610 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
5611
5612         * config/rs6000/rs6000.c (print_operand): Remove extra space.
5613         (altivec_expand_unop_builtin): Fix thinko.
5614         (altivec_expand_binop_builtin): Same.
5615         (altivec_expand_ternop_builtin): Same.
5616         (altivec_expand_builtin): Same.
5617
5618 2002-01-07  Richard Henderson  <rth@redhat.com>
5619
5620         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5621
5622 2002-01-07  Jason Merrill  <jason@redhat.com>
5623
5624         * unwind-dw2.c (execute_cfa_program): Use < again.
5625
5626 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
5627
5628         * predict.c (combine_predictions_for_insn): Avoid division by zero.
5629
5630 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
5631
5632         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5633         Don't allow -1 - x -> ~x simplifications in the first pass.
5634
5635 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
5636
5637         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5638         arguments.
5639         (altivec_expand_binop_builtin): Same.
5640         (altivec_expand_unop_builtin): Same.
5641         (print_operand): Fix typo.
5642         (bdesc_1arg): Add vupk* variants.
5643
5644         * rs6000.h (rs6000_builtins): Add vupk* enums.
5645
5646         * rs6000.md: Add altivec_vupk* variants.
5647
5648 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5649
5650         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5651         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5652         and last update dates.
5653
5654 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
5655
5656         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5657
5658 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5659
5660         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5661         * config/avr/avr.h (CPP_SPEC): Likewise.
5662         (LINK_SPEC): Likewise.
5663         (CRT_BINUTILS_SPECS): Likewise.
5664         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5665         * doc/invoke.texi (AVR Options): Document them.
5666
5667 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
5668
5669         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5670         LABEL_NUSES.
5671
5672 2002-01-07  Graham Stott  <grahams@redhat.com>
5673
5674         * config/i386/i386.h: Update copyright date.
5675         (HALF_PIC_PTR): Add parenthesis.
5676         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5677         (CONSTANT_ALIGNMENT): Add parenthesis.
5678         (DATA_ALIGNMENT): Likewise.
5679         (LOCAL_ALIGNMENT): Likewise.
5680         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5681         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5682         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5683         (HARD_REGNO_NREGS): Add paranethesis.
5684         (VALID_SSE_REG_MODE): Whitespace.
5685         (VALID_MMX_REG_MODE): Whitespace.
5686         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5687         (ix86_hard_regno_mode_ok): Add parenthesis.
5688         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5689         (RETURN_IN_MEMORY): Whitespace.
5690         (N_REG_CLASSES): Add parenthesis.
5691         (INTEGER_CLASS_P): Add parenthesis and wrap.
5692         (FLOAT_CLASS_P): Likewise.
5693         (SSE_CLASS_P): Likewise.
5694         (MMX_CLASS_P): Likewise.
5695         (MAYBE_INTEGER_CLASS_P): Likewise.
5696         (MAYBE_FLOAT_CLASS_P): Likewise.
5697         (MAYBE_SSE_CLASS_P): Likewise.
5698         (MAYBE_MMX_CLASS_P): Likewise.
5699         (Q_CLASS_P): Likewise.
5700         (GENERAL_REGNO_P): Uppercase macro parameter.
5701         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5702         (FP_REGNO_P): Likewise.
5703         (ANY_FP_REGNO_P): Uppercase macro parameter.
5704         (SSE_REGNO_P): Likewise.
5705         (SSE_REGNO): Likewise.
5706         (SSE_REG_P): Likewise.
5707         (SSE_FLOAT_MODE_P): Likewise.
5708         (MMX_REGNO_P): Likewise.
5709         (MMX_REG_P):Likewise.
5710         (STACK_REG_P): Likewise.
5711         (NON_STACK_REG_P): Likewise.
5712         (STACK_TOP_P): Likewise.
5713         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
5714         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
5715         (SECONDARY_MEMORY_NEEDED): Likewise.
5716         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
5717         (MD_ASM_CLOBBERS): Whitespace and wrap.
5718         (MUST_PASS_IN_STACK): Whitespace and wrap.
5719         (RETURN_POPS_ARGS): Add parenthesis.
5720         (INIT_CUMULATIVE_ARGS): Likewise.
5721         (FUNCTION_ARG): Likewise.
5722         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
5723         (SETUP_INCOMING_VARARGS): Likewise.
5724         (BUILD_VA_LIST_TYPE):  Add parenthesis.
5725         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
5726         parenthsis.
5727         (EXPAND_BUILTIN_VA_ARG): Likewise.
5728         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
5729         (INITIALIZE_TRAMPOLINE): Add parenthesis.
5730         (INITIAL_ELIMINATION_OFFSET): Likewise.
5731         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
5732         (REGNO_OK_FOR_BASE_P): Likewise.
5733         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
5734         (REGNO_OK_FOR_DIREG_P): Likewise.
5735         (REG_OK_FOR_INDEX_P): Whitespace.
5736         (REG_OK_FOR_BASE_P): Whitespace.
5737         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
5738         parenthesis.
5739         (FIND_BASE_TERM): Fix typo.
5740         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
5741         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
5742         (SYMBOLIC_CONST; Whitespace.
5743         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
5744         (ENCODE_SECTION_INFO): Whitespace.
5745         (FINALIZE_PIC): Remove do { ... } while (0).
5746         (PROMOTE_MODE): Wrap in do { ... } while (0).
5747         (CONST_COSTS): Whitespace.
5748         (RTX_COSTS): Add paramethesis, whitespace and wrap.
5749         (REGISTER_MOVE_COST): Add parenthesis.
5750         (MEMORY_MOVE_COST): Likewise.
5751         (EXTRA_CC_MODES): Whitespace.
5752         (SELECT_CC_MODE): Add parenthesis and whitespace.
5753         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
5754         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
5755         (ASM_OUTPUT_LABEL): Add paramethesis.
5756         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
5757         (ASM_OUTPUT_REG_POP): Likewise.
5758         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
5759         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5760
5761         * config/i386/i386.c: Update copyright.
5762         (CHECK_STACK_LIMIT): Add parenthesis.
5763         (AT_BP): Uppercase macro parameter.
5764         (x86_64_int_parameter_registers): Constify.
5765         (x86_64_int_return_registers): Likewise.
5766         (ix86_compare_op0): Use rtx.
5767         (construct_container): Constify INTREG parameter.
5768         (function_arg): Use rtx.
5769
5770         * diagnostic.h: Update copyright date.
5771         (output_buffer_state): Add parenthesis.
5772         (output_buffer_format_args): Likewise.
5773
5774         * combine.c (combine_instructions): Replace XEXP (links, 0)
5775         with link.
5776
5777 2002-01-06  H.J. Lu <hjl@gnu.org>
5778
5779         * cfgcleanup.c (thread_jump): Fix 2 typos.
5780
5781 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
5782
5783         * config.gcc: Add support for --enable-altivec.
5784
5785 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5786
5787         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
5788
5789 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
5790
5791         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
5792         __objc_class_name_*.
5793
5794 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5795
5796         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
5797
5798 2002-01-06  Richard Henderson  <rth@redhat.com>
5799
5800         * reorg.c (emit_delay_sequence): Remove death notes, not merely
5801         nop them out.  Increment label reference count for REG_LABEL.
5802         (fill_slots_from_thread): Frob label reference count around
5803         delete_related_insns.
5804
5805 2002-01-05  Richard Henderson  <rth@redhat.com>
5806
5807         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
5808         jump threading.
5809
5810 2002-01-05  Richard Henderson  <rth@redhat.com>
5811
5812         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
5813         * integrate.c (output_inline_function): Likewise.
5814         * toplev.c (rest_of_compilation): Do it here instead.  Move call
5815         to remove_unnecessary_notes after emitting abstract instance.
5816         Force an emitted nested function to have its parent emited as well.
5817         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
5818         for null.
5819         (rtl_for_decl_location): Do not look at reload data structures
5820         before reload has run.
5821
5822 2002-01-05  Kazu Hirata  <kazu@hxi.com>
5823
5824         * cse.c: Fix formatting.
5825         * dwarf2asm.c: Likewise.
5826         * dwarf2out.c: Likewise.
5827         * explow.c: Likewise.
5828         * expmed.c: Likewise.
5829         * function.c: Likewise.
5830         * gcov.c: Likewise.
5831         * gencheck.c: Likewise.
5832         * genrecog.c: Likewise.
5833         * ggc-common.c: Likewise.
5834         * ggc-page.c: Likewise.
5835         * global.c: Likewise.
5836
5837 2002-01-05  Kazu Hirata  <kazu@hxi.com>
5838
5839         * combine.c: Fix formatting.
5840
5841 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
5842
5843         PR middle-end/1557
5844         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
5845
5846 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
5847
5848         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
5849         as 1 for __powerpc64__ as well.
5850
5851         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
5852
5853         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
5854         return it.
5855
5856 2002-01-05  Daniel Berlin  <dan@dberlin.org>
5857
5858         * lcm.c: Revert change, due to performance regression it causes on
5859         SPEC because it's slightly more conservative (sigh, I hate
5860         edge-based LCM).
5861
5862 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
5863
5864         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
5865
5866 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5867
5868         * doc/cppinternals.texi: Update.
5869
5870 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
5871
5872         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
5873         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
5874         negatives.
5875         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
5876         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
5877         kludge for pre-october-14th mmix versions to handle new-found bug
5878         with PUSHJ/PUSHGO and the register stack.
5879         * config/mmix/mmix.h (struct machine_function): Rename member
5880         has_call_value_without_parameters to has_call_without_parameters.
5881         All referers changed.
5882         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
5883         TARGET_MASK_BRANCH_PREDICT): New macros.
5884         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
5885         -mno-reg-stack-fill-bug-workaround.
5886         * config/mmix/mmix.md ("call"): Set struct machine member
5887         has_call_without_parameters.
5888
5889 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
5890
5891         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
5892
5893 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5894
5895         * cfgcleanup.c: Include tm_p.h
5896         (mark_effect): Fix handling of hard register; fix handling of SET
5897
5898 2002-01-04  Kazu Hirata  <kazu@hxi.com>
5899
5900         * config/h8300/h8300.md (anonymous patterns): Check that
5901         operands are registers before using REGNO on them.
5902
5903 2002-01-03  Roland McGrath  <roland@frob.com>
5904
5905         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
5906
5907 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
5908
5909         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
5910         * c-common.h (genrtl_expr_stmt_value): Likewise.
5911         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
5912         (expand_expr_stmt_value): Add maybe_last argument.
5913         Don't warn about statement with no effect if it is the last statement
5914         in expression statement.
5915         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
5916         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
5917         expand_expr_stmt_value.
5918         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
5919         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
5920         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
5921         as maybe_last to expand_expr_stmt_value.
5922
5923 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
5924
5925         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
5926         be passed in, do not build it.
5927         (c_begin_if_stmt): New function.
5928         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5929         * c-common.h (c_expand_start_cond): Update prototype.
5930         (c_begin_if_stmt): Prototype new function.
5931         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5932         * c-parse.in (if_prefix): Use c_begin_if_stmt,
5933         c_begin_while_stmt and c_finish_while_stmt_cond.
5934
5935 2002-01-04  William Cohen  <wcohen@redhat.com>
5936
5937         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
5938         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5939         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5940         * config/pa/som.h (ASM_FILE_START): Likewise.
5941
5942 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
5943
5944         * lcm.c: Include df.h.
5945         Add available_transfer_function prototype.
5946         (compute_available): Rework to use iterative dataflow framework.
5947         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
5948         with bb_info in df.h
5949         (available_transfer_function): New function.
5950
5951         * Makefile.in (lcm.o): add df.h to dependencies.
5952
5953 2002-01-04  Richard Henderson  <rth@redhat.com>
5954
5955         * config/alpha/alpha.c (some_operand): Accept HIGH.
5956         (input_operand): Likewise; accept simple references to globals.
5957         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
5958         (alpha_const_double_ok_for_letter_p): Likewise.
5959         (alpha_extra_constraint): Likewise.
5960         (alpha_preferred_reload_class): Likewise.  Do not force
5961         symbolic constants to memory.
5962         (alpha_legitimate_address_p): Accept simple references
5963         to small_symbolic_operand.
5964         (alpha_legitimize_address): New arg scratch.  Be prepared to be
5965         called when no_new_pseudos.  Emit simple symbolic references.
5966         Split integers into low, high, and rest.
5967         (alpha_expand_mov): Use alpha_legitimize_address.
5968         (some_small_symbolic_mem_operand): New.
5969         (split_small_symbolic_mem_operand): New.
5970         * config/alpha/alpha-protos.h: Update.
5971         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5972         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5973         (EXTRA_CONSTRAINT): Likewise.
5974         (PREFERRED_RELOAD_CLASS): Likewise.
5975         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5976         (PREDICATE_CODES): Update.
5977         * config/alpha/alpha.md: New post-reload splitters to convert
5978         simplfied symbolic operands to the form that references $29.
5979         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5980         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5981
5982 2002-01-03  Richard Henderson  <rth@redhat.com>
5983
5984         * local-alloc.c (function_invariant_p): Update commentary.
5985
5986 2002-01-04  H.J. Lu <hjl@gnu.org>
5987
5988         * toplev.c (rest_of_compilation): Fix a typo when calling
5989         cleanup_cfg.
5990
5991 2002-01-03  Kazu Hirata  <kazu@hxi.com>
5992
5993         * c-common.c: Fix formatting.
5994         * diagnostic.c: Likewise.
5995         * doloop.c: Likewise.
5996         * dwarf2out.c: Likewise.
5997
5998 2002-01-03  Kazu Hirata  <kazu@hxi.com>
5999
6000         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
6001         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
6002
6003 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
6004
6005         * cpperror.c: Update comments and copyright.
6006         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
6007         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
6008
6009 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6010
6011         * collect2.c (main): Use strcmp when testing for "-shared".
6012
6013 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
6014
6015         * cppmacro.c: Don't include intl.h.  Update comments.
6016         (new_number_token): Allocate enough buffer for 64-bit unsigned
6017         integers; update prototype.
6018         * cppmain.c: Update comments.
6019
6020 2002-01-03  William Cohen  <wcohen@redhat.com>
6021
6022         * function.h (struct function): Add profile.
6023         (current_function_profile): New.
6024         doc/extend.texi: Update documentation.
6025         * final.c (final_start_function): Use current_function_profile
6026         instead of profile_flag.
6027         (profile_after_prologue): Likewise.
6028         * function.c (expand_function_start): Likewise.
6029         (expand_function_start): Likewise.
6030         * config/alpha/alpha.c (direct_call_operand):
6031         (alpha_does_function_need_gp): Likewise.
6032         (alpha_expand_prologue): Likewise.
6033         * config/arm/arm.c (arm_expand_prologue): Likewise.
6034         thumb_expand_prologue: Likewise.
6035         * config/d30v/d30v.c (d30v_stack_info): Likewise.
6036         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
6037         (fr30_expand_prologue): Likewise.
6038         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
6039         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
6040         * config/i386/i386.h (FINALIZE_PIC): Likewise.
6041         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
6042         * config/i960/i960.c (i960_output_function_prologue): Likewise.
6043         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
6044         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
6045         (m32r_expand_prologue): Likewise.
6046         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
6047         (m88k_expand_prologue): Likewise.
6048         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
6049         * config/mips/mips.c (compute_frame_size): Likewise.
6050         (mips_expand_prologue): Likewise.
6051         (mips_can_use_return_insn): Likewise.
6052         * config/pa/elf.h (ASM_FILE_START): Likewise.
6053         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
6054         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
6055         * config/pa/som.h (ASM_FILE_START): Likewise.
6056         * config/romp/romp.c (romp_using_r14): Likewise.
6057         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
6058         (rs6000_stack_info): Likewise.
6059         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6060         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
6061         * config/v850/v850.c (compute_register_save_size): Likewise.
6062
6063 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
6064
6065         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
6066         gen_lowpart_common fails, use gen_lowpart_SUBREG.
6067
6068 2002-01-03  Turly O'Connor  <turly@apple.com>
6069
6070         * darwin.c (machopic_output_possible_stub_label): Don't generate
6071         stub routines for pseudo-stubs which we've just defined.
6072
6073 2002-01-03  Kazu Hirata  <kazu@hxi.com>
6074
6075         * builtins.c: Fix formatting.
6076         * c-typeck.c: Likewise.
6077         * combine.c: Likewise.
6078         * expr.c: Likewise.
6079         * loop.c: Likewise.
6080
6081 2002-01-03  Andreas Schwab  <schwab@suse.de>
6082
6083         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
6084         and return true if _cpp_push_next_buffer pushed a new include
6085         file.
6086         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
6087         _cpp_pop_file_buffer did not push a new file.
6088         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
6089
6090 2002-01-02  Eric Christopher  <echristo@redhat.com>
6091
6092         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
6093         FIND_REG_INC_NOTE call. Update copyright.
6094         * loop.c (canonicalize_condition): Ditto.
6095         * reorg.c (delete_scheduled_jump): Ditto.
6096
6097 2002-01-03  Kazu Hirata  <kazu@hxi.com>
6098
6099         * gcse.c: Fix formatting.
6100
6101 2002-01-03  Graham Stott  <grahams@redhat.com>
6102
6103         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
6104         forward defs for struct tags rtx_def, union_tree, rtvec_def
6105         also output corresponding typedefs for rtx, tree, and rtvec.
6106
6107         * system.h: Move forward defs for struct tags rtx_def, union_tree,
6108         rtvec_def along with corresponding typedefs for rtx, tree, and
6109         rtvec to config.h, hconfig.h, tconfig.h.
6110
6111 2002-01-03  Graham Stott  <grahams@redhat.com>
6112
6113         * tree.h: Update copyright date.
6114         (IS_EXPR_CODE_CLASS): Add parenthesis.
6115         (TREE_SET_CODE): Add whitespace.
6116         (TREE_CHECK): Add parenthesis.
6117         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
6118         (CST_OR_CONSTRUCTOR_CHECK):
6119         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
6120         (TREE_SYMBOL_REFERENCED): Whitespace.
6121         (INT_CST_LT): Likewise.
6122         (INT_CST_LT_UNSIGNED): Likewise.
6123         (tree_real_cst): Unwrap comment.
6124         (tree_string): Likewise.
6125         (tree_complex): Likewise.
6126         (IDENTIFIER_POINTER): correct cast.
6127         (SAVE_EXPR_CONTEXT): Whitespace.
6128         (EXPR_WFL_FILENAME_NODE): Likewise.
6129         (EXPR_WFL_FILENAME): Remove parenthesis.
6130         (DECL_ORIGIN): Add parenthesis.
6131         (DECL_FROM_INLINE): Use NULL_TREE.
6132         (build_int_2): Whitespace.
6133         (build_type_variant): Add parenthesis.
6134
6135         * gcc/jcf-parse.c: Update copyright date.
6136         (yyparse): Constify resource_filename.
6137
6138 2002-01-03  Graham Stott  <grahams@redhat.com>
6139
6140         * rtl.h: Update copyright date.
6141         (RTL_CHECK1): Wrap long line.
6142         (RTL_CHECK2): Likewise.
6143         (RTL_CHECKC1): Wrap long line and whitespace.
6144         (RTL_CHECKC2): Likewise.
6145         (XWINT): Whitespace.
6146         (XINT): Likewise.
6147         (XSTR): Likewise.
6148         (XEXP): Likewise.
6149         (XVEC): Likewise.
6150         (XMODE): Likewise.
6151         (XBITMAP): Likewise.
6152         (XTREE): Likewise.
6153         (XBBDEF): Likewise.
6154         (XTMPL): Likewise.
6155         (X0WINT): Likewise.
6156         (X0INT):Likewise.
6157         (X0UINT): Likewise.
6158         (X0STR): Likewise.
6159         (X0EXP): Likewise.
6160         (X0VEC): Likewise.
6161         (X0MODE): Likewise.
6162         (X0BITMAP): Likewise.
6163         (X0TREE): Likewise.
6164         (X0BBDEF): Likewise.
6165         (X0ADVFLAGS): Likewise.
6166         (X0CSELIB): Likewise.
6167         (X0MEMATTR): Likewise.
6168         (XCWINT): Likewise.
6169         (XCINT): Likewise.
6170         (XCUINT): Likewise.
6171         (XCSTR): Likewise.
6172         (XCEXP): Likewise.
6173         (XCVEC): Likewise.
6174         (XCMODE): Likewise.
6175         (XCBITMAP): Likewise.
6176         (XCTREE): Likewise.
6177         (XCBBDEF): Likewise.
6178         (XCADVFLAGS): Likewise.
6179         (XCCSELIB): Likewise.
6180         (XC2EXP): Likewise.
6181         (INSN_UID): Likewise.
6182         (PREV_INSN): Likewise.
6183         (PATTERN): Likewise.
6184         (INSN_CODE): Likewise.
6185         (PUT_REG_NOTE_KIND): Likewise.
6186         (CODE_LABEL_NUMBER): Likewise.
6187         (NOTE_SOURCE_FILE): Likewise.
6188         (NOTE_BLOCK): Likewise.
6189         (NOTE_EH_HANDLER): Likewise.
6190         (NOTE_RANGE_INFO): Likewise.
6191         (NOTE_LIVE_INFO): Likewise.
6192         (NOTE_BASIC_BLOCK): Likewise.
6193         (NOTE_EXPECTED_VALUE): Likewise.
6194         (NOTE_LINE_NUMBER): Likewise.
6195         (LABEL_NAME): Likewise.
6196         (LABEL_NUSES): Likewise.
6197         (LABEL_ALTERNATE_NAME): Likewise.
6198         (ADDRESSOF_DECL): Likewise.
6199         (JUMP_LABEL): Likewise.
6200         (LABEL_NEXTREF): Likewise.
6201         (REGNO): Likewise.
6202         (ORIGINAL_REGNO: Likewise.
6203         (HARD_REGISTER_NUM_P): Add parenthesis.
6204         (SUBREG_REG): Whitespace.
6205         (SUBREG_BYTE): Likewise.
6206         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
6207         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
6208         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
6209         (ASM_OPERANDS_INPUT_VEC): Likewise.
6210         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
6211         (ASM_OPERANDS_INPUT): Likewise.
6212         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
6213         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
6214         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
6215         (ASM_OPERANDS_INPUT_MODE): Likewise.
6216         (ASM_OPERANDS_SOURCE_FILE): Likewise.
6217         (ASM_OPERANDS_SOURCE_LINE): Likewise.
6218         (MEM_SET_IN_STRUCT_P): Minor reformat.
6219         (TRAP_CONDITION): Whitespace.
6220         (TRAP_CODE): Likewise.
6221         (COND_EXEC_TEST): Likewise.
6222         (COND_EXEC_CODE): Likewise.
6223         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
6224         (PHI_NODE_P): Add parenthesis.
6225         (plus_constant): Whitespace and add parenthesis.
6226
6227 2002-01-03  Kazu Hirata  <kazu@hxi.com>
6228
6229         * config/avr/avr.c: Fix comment typos.
6230         * config/c4x/c4x.md: Likewise.
6231         * config/dsp16xx/dsp16xx.h: Likewise.
6232         * config/dsp16xx/dsp16xx.md: Likewise.
6233         * config/i386/i386.md: Likewise.
6234         * config/ia64/ia64.c: Likewise.
6235         * config/m32r/m32r.h: Likewise.
6236         * config/m68hc11/m68hc11.md: Likewise.
6237         * config/mmix/mmix.c: Likewise.
6238         * config/mn10200/mn10200.c: Likewise.
6239         * config/romp/romp.c: Likewise.
6240         * config/sh/sh.c: Likewise.
6241         * config/stormy16/stormy16.c: Likewise.
6242         * config/stormy16/stormy16.h: Likewise.
6243         * config/stormy16/stormy16.md: Likewise.
6244
6245 2002-01-03  Graham Stott  <grahams@redhat.com>
6246
6247         * loop.h: Update copyright date.
6248         (LOOP_MOVABLES): Fix typo.
6249         (LOOP_REGS): Likewise.
6250         (LOOP_IVS): Likewise.
6251
6252 2002-01-03  Graham Stott  <grahams@redhat.com>
6253
6254         * cppinit.c: Update copyright date.
6255         Don't include output.h
6256         * Makefile.in: Update copyright date.
6257         Update dependency.
6258
6259 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6260
6261         PR c/5226
6262         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
6263         (-pthread) Add to RS/6000 options.
6264
6265 2002-01-02  Kazu Hirata  <kazu@hxi.com>
6266
6267         * except.c: Fix comment typos.
6268         * loop.c: Likewise.
6269         * varasm.c: Likewise.
6270         * doc/tm.texi: Fix a typo.
6271
6272 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
6273
6274         * c-typeck.c (output_init_element): Allow initializing static storage
6275         duration objects with compound literals.
6276
6277 2002-01-02  Richard Henderson  <rth@redhat.com>
6278
6279         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
6280         after abusing it.
6281
6282 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6283
6284         * gcc.c (default_compilers): Const-ify.
6285         * mips-tdump.c (stab_names): Likewise.
6286         * mips-tfile.c (map_coff_types, map_coff_storage,
6287         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
6288         pseudo_ops_t, pseudo_ops): Likewise.
6289         * protoize.c (default_include): Likewise
6290
6291         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
6292         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
6293         Add array size in declaration.
6294         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
6295         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
6296         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
6297         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
6298         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
6299         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
6300         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
6301         emtens, make_nan): Const-ify.
6302         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
6303         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
6304
6305 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6306
6307         * config.gcc (ia64-*-*): Set extra_headers.
6308         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
6309         * config/alpha/t-osf: Remove.
6310         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
6311
6312 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
6313
6314         * config/rs6000/t-aix43: Revert previous change.
6315
6316 2002-01-02  Jason Merrill  <jason@redhat.com>
6317
6318         * c-decl.c (c_expand_body): Call outlining_inline_function when
6319         emitting an inline function out of line.
6320
6321 2002-01-02  Richard Henderson  <rth@redhat.com>
6322
6323         * dwarf2out.c (limbo_die_node): Add created_for member.
6324         (new_die): New argument created_for.  Update all callers.
6325         (mark_limbo_die_list): New.
6326         (dwarf2out_init): Register limbo_die_list as a root.
6327         (dwarf2out_finish): Force insert limbo dies into their function
6328         context.
6329
6330 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
6331
6332         PR c++/5089
6333         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
6334
6335 2002-01-02  Kazu Hirata  <kazu@hxi.com>
6336
6337         * config/h8300/fixunssfsi.c: Update copyright.
6338         Fix comment typos.
6339         Fix formatting.
6340         * config/h8300/h8300.c: Update copyright.
6341         Eliminate warnings.
6342
6343 2002-01-02  Kazu Hirata  <kazu@hxi.com>
6344
6345         * config/romp/romp.c: Fix comment formatting.
6346         * config/romp/romp.h: Likewise.
6347         * config/romp/romp.md: Likewise.
6348         * config/s390/s390.c: Likewise.
6349         * config/stormy16/stormy16.c: Likewise.
6350         * config/stormy16/stormy16.h: Likewise.
6351
6352 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
6353
6354         * c-common.h (genrtl_expr_stmt_value): Declare.
6355         * c-semantics.c (genrtl_goto_stmt): Redirect to...
6356         (genrtl_goto_stmt_value): ... this new function.  Pass new
6357         argument down to expand_expr_stmt_value, taking
6358         TREE_ADDRESSABLE into account.
6359         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
6360         STMT_EXPR as addressable, i.e., one whose result we want.
6361         * expr.c (expand_expr): Don't save expression statement value
6362         of labeled_blocks or loop_exprs.
6363         * stmt.c (expand_expr_stmt): Redirect to...
6364         (expand_expr_stmt_value): ... this new function.  Use new
6365         argument to tell whether to save expression value.
6366         (expand_end_stmt_expr): Reset last_expr_type and
6367         last_expr_value if we don't have either.
6368         * tree-inline.c (declare_return_variable): Mark its use
6369         statement as addressable.
6370         * tree.h: Document new use of TREE_ADDRESSABLE.
6371         (expand_expr_stmt_value): Declare.
6372
6373 2002-01-01  Tom Rix  <trix@redhat.com>
6374
6375         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
6376         rs6000_emit_allocate_stack.
6377
6378 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
6379
6380         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
6381         ${srcdir}/ginclude/ to every entry in extra_headers.
6382         * configure: Regenerate.
6383         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
6384         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
6385         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
6386         * ginclude/proto.h: Rename to config/convex/proto.h.
6387
6388 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6389
6390         * attribs.c (handle_vector_size_attribute): Use host_integerp
6391         and tree_int_cst; remove warnings.
6392         * caller-save.c (insert_restore): Add cast to get rid of warning.
6393         (insert_save): Likewise.
6394         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
6395         * regmove.c (find_matches): Add temporary var to kill a warning.
6396
6397 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
6398
6399         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
6400         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
6401         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
6402         (vms-dwarf2eh.o): Add Makefile rule.
6403         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
6404         * config/alpha/vms-dwarf2eh.asm: New file.
6405
6406         * gcc.c (delete_if_ordinary): Delete all versions.
6407
6408 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
6409
6410         * config/mmix/mmix.md: Update FIXME to not mention
6411         define_constants.
6412         (MMIX_rJ_REGNUM): New define_constants constant.
6413         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
6414         "*movdicc_real"): Adjust contraints formatting.
6415         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
6416         for branch prediction.
6417         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
6418         output template.
6419         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
6420         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
6421         number.  Delete related FIXMEs.
6422         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
6423         from number to MMIX_rJ_REGNUM.
6424         (TARGET_MASK_BRANCH_PREDICT): New.
6425         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
6426         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
6427         value.  Add -mbranch-predict and -mno-branch-predict.
6428         (TARGET_VERSION): Drop date.
6429         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
6430         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
6431         for finding out global symbols.
6432         (mmix_asm_output_labelref): Revert condition for global symbol.
6433         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
6434         (mmix_print_operand_punct_valid_p): A '+' is valid.
6435
6436 See ChangeLog.6 for earlier changes.