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