OSDN Git Service

d669773d99f703f0dcd5efe6518a1582ff0479d3
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
2
3         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
4
5         * combine.c (try_combine): Apply substitutions in
6         CALL_INSN_FUNCTION_USAGE too.
7
8 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
9
10         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
11         __builtin_altivec_abs*.
12         (bdesc_abs): New.
13
14         * config/rs6000/rs6000.h (rs6000_builtins): Add
15         ALTIVEC_BUILTIN_ABS*.
16
17         * config/rs6000/altivec.h: Use const char for builtins expecting
18         literals.
19         (vec_abs): New versions for C and C++.
20         (vec_abss): Same.
21
22 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23
24         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
25         using Pmode.
26
27 2002-02-10  Kazu Hirata  <kazu@hxi.com>
28
29         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
30         constant definition from h8300.md.
31         (FRAME_POINTER_REGNUM): Likewise.
32         * config/h8300/h8300.md (define_constants): Add FP_REG.
33
34 2002-02-10  Kazu Hirata  <kazu@hxi.com>
35
36         * config/h8300/h8300.c (print_operand): Remove redundant code.
37
38 2002-02-10  Kazu Hirata  <kazu@hxi.com>
39
40         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
41         * config/h8300/h8300.c (byte_reg): Make it static.
42
43 2002-02-10  Richard Henderson  <rth@redhat.com>
44
45         PR c/5623
46         * c-typeck.c (incomplete_type_error): Handle flexible array members.
47
48 2002-02-10  Richard Henderson  <rth@redhat.com>
49
50         PR c++/5624
51         * tree.c (append_random_chars): Don't abort if main_input_filename
52         does not exist.
53
54 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
55
56         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
57
58 2002-02-10  Kazu Hirata  <kazu@hxi.com>
59
60         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
61         (pushhi1): Likewise.
62
63 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
64
65         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
66         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
67
68 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
69
70         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
71         remove MASK_VIS.
72         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
73
74 2002-02-09  Kazu Hirata  <kazu@hxi.com>
75
76         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
77         a half of an SImode register on H8/300.
78
79 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
80
81         * i386.md (movdi_2): Add missing '!'.
82
83 2002-02-09  Kazu Hirata  <kazu@hxi.com>
84
85         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
86         definitions.
87
88 2002-02-09  Kazu Hirata  <kazu@hxi.com>
89
90         * config/h8300/h8300.md (length): Correct the distance valid
91         for the short branch.
92
93 2002-02-09  Kazu Hirata  <kazu@hxi.com>
94
95         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
96
97 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
98
99         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
100         registers in SImode.
101         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
102         part-clobbered.
103
104         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
105         patch.
106         
107         Contribute sh64-elf.
108         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
109         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
110         (sh_cannot_modify_jumps_p): New function.
111         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
112         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
113         (sh_ms_bitfield_layout_p): New function.
114         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
115                     Zack Weinberg  <zack@codesourcery.com>
116         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
117         expand_simple_binop instead of expand_binop.
118         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
119         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
120         use of .quad and .uaquad.
121         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
122         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
123         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
124         * config/sh/sh.md (movdi_const, movdi_const_32bit,
125         movdi_const_16bit): Make sure all CONSTs have modes.
126         (sym2PIC): Ditto, but by adjusting all callers.
127         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
128         if the prologue calls the SHmedia argument decoder or register
129         saver.
130         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
131         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
132         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
133         (sh_expand_epilogue): Don't emit USE of return target register.
134         (prepare_move_operands): Legitimize DImode PIC addresses.
135         (sh_media_register_for_return): Skip tr0, used to initialize the
136         PIC register.
137         (sh_expand_prologue): Remove explicit USE of return register.
138         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
139         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
140         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
141         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
142         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
143         EXTRA_CONSTRAINT_T.
144         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
145         (MOVI_SHORI_BASE_OPERAND_P): New.
146         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
147         (EXTRA_CONSTRAINT_T): Define in terms of them.
148         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
149         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
150         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
151         alternatives supporting TARGET_REGS.
152         (UNSPEC_GOTPLT): New constant.
153         (movdi split): Move incrementing of LABEL_NUSES...
154         (movdi_const, movdi_const_32bit): Here.  Use
155         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
156         (movdi_const_16bit): New.
157         (call, call_value) [flag_pic]: Use GOTPLT.
158         (call_pop, call_value_pop): New expands.
159         (call_pop_compact, call_pop_rettramp): New insns.
160         (call_value_pop_compact, call_value_pop_rettramp): New insns.
161         (sibcall) [flag_pic]: Use GOT.
162         (builtint_setjmp_receiver): Remove bogus, unused expand.
163         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
164         (*pt, *ptb, ptrel): New insns.
165         (sym2GOT): Handle DImode GOT.
166         (sym2GOTPLT, symGOTPLT2reg): New expands.
167         (sym2PIC): New expand.
168         (shcompact_return_tramp): Use GOTPLT to return trampoline.
169         (shcompact_return_tramp_i): Use return register explicitly.
170         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
171         disable flag_reorder_blocks.
172         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
173         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
174         clobbers, for clarity.
175         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
176         restoring of r0 in macl as MAYBE_DEAD.
177         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
178         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
179         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
180         alter_subreg all over.
181         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
182         reload, instead of emitting instructions that would require
183         reloading.
184         (casesi_load_media): Add missing modes.
185         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
186         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
187         as used if the argument decoder is called.
188         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
189         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
190         Pmode, then extend it to DImode if necessary.
191         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
192         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
193         constants in FPU-enabled SHmedia, let them be loaded from memory.
194         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
195         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
196         Adjust whitespace in assembly output templates.
197         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
198         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
199         mode of if_then_else.
200         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
201         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
202         sh.h.
203         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
204                     Joern Rennecke <amylaar@redhat.com>
205         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
206         (SUBTARGET_CPP_PTR_SPEC): New.
207         (SUBTARGET_CPP_SPEC): Remove.
208         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
209         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
210         Fix typo in previous checkin.
211         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
212         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
213         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
214                     Alexandre Oliva  <aoliva@redhat.com>
215         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
216         what single FP register can hold for SHmedia target.
217         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
218                     Alexandre Oliva  <aoliva@redhat.com>
219         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
220         Do not split into SUBREG.
221         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
222         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
223         and added new functions as specified in SH5 ABI r9.
224         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
225         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
226         8-byte boundary.
227         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
228         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
229         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
230         and consttable_window_ends.
231         2001-06-03  Graham Stott  <grahams@redhat,com>
232         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
233         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
234         * config/sh/sh.c (print_operand): Handle floating-point pair,
235         vector and matrix registers.
236         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
237         vector modes into account.
238         * config/sh/sh.md (movv2sf): Split move between registers into
239         movdf.
240         (movv4sf, movv16sf): Introduce insns that get split only after
241         reload.
242         * config/sh/shmedia.h: Fix Copyright dates.
243         * config/sh/ushmedia.h: Likewise.  Move loop counter
244         declarations into conditionals that uses them.
245         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
246         loop boundary.
247         * config/sh/sshmedia.h: Fix Copyright dates.
248         (sh_media_PUTCFG): Fix constraints.
249         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
250         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
251         ptrmemfunc_vbit_in_delta for SH5.
252         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
253         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
254         * invoke.texi: Likewise.
255         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
256         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
257         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
258         GCC_pop_shmedia_regs_nofpu): New global symbols.
259         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
260         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
261         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
262         compact function with nonlocal labels.
263         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
264         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
265         (initial_elimination_offset): Account for their stack space.
266         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
267         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
268         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
269         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
270         least one of the operands to be a register.
271         (movv2sf): Likewise.  Renamed to movv2sf_i.
272         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
273         prepare_move_operands() before emitting SHmedia insns.
274         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
275         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
276         Don't save nor initialize r12.  Don't mis-align the stack.
277         Pad the code with a nop.
278         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
279         stack.
280         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
281         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
282         [__SHMEDIA__]: Implement.
283         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
284         * config/sh/sh.md: Set latency of `pt' closer to reality.
285         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
286         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
287         Set move, load and store type attributes.
288         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
289         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
290         profiling.
291         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
292         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
293         * config/sh/sh.c (sh_media_register_for_return): New function.
294         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
295         branch-target register.
296         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
297         * config/sh/sh.md (return_media_i): Use any call-clobbered
298         branch-target register.
299         (return_media): If r18 wasn't copied in the prologue, copy it
300         here.
301         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
302         Clear class FP0_REGS.
303         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
304         from elf.h.
305         2001-03-08  DJ Delorie  <dj@redhat.com>
306         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
307         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
308         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
309         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
310         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
311         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
312         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
313         return value correctly for call_cookie.
314         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
315         * config/sh/crt1.asm (start): Modified so as to call
316         ___setup_argv_and_call_main.
317         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
318         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
319         SHmedia mode.
320         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
321         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
322         (STRIP_NAME_ENCODING): Use it.
323         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
324         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
325         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
326         prepare_scc_operands().
327         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
328         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
329         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
330         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
331         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
332         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
333         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
334         used in shcompact_incoming_args.
335         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
336         change.
337         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
338         mode.
339         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
340         Adjust accordingly.
341         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
342         Simplify.  Adjust.  Add sanity check.
343         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
344         FPU_SINGLE_BIT.
345         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
346         TARGET_SHCOMPACT.
347         (udivsi3, divsi3): Use them.
348         (force_mode_for_call): New insn.
349         (call, call_value, sibcall_value): Emit it before SHcompact
350         calls.
351         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
352         * config/sh/sh.md (call, call_value, sibcall): Make sure the
353         call cookie is non-NULL before taking its value.
354         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
355         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
356         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
357         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
358         block.
359         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
360         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
361         temporary for stack adjusts.  Use MACL and MACH to pass
362         arguments to shcompact_incoming_args.
363         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
364         clobber r1.
365         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
366         (nested_trampoline): Load static chain address into r1.
367         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
368         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
369         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
370         fp_arith_reg_operand().
371         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
372         * config/sh/sh.md (casesi): Sign-extend the first two operands,
373         and use signed compares for them.
374         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
375         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
376         ones properly aligned.
377         (find_barrier): Account for extra alignment needed for 8-byte wide
378         constants.
379         (machine_dependent_reorg): Require a label for the second 4-byte
380         constant after an 8-byte one.
381         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
382         change.
383         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
384         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
385         last_float when switching float modes.
386         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
387         auto-increment for general-purpose registers.
388         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
389         result.
390         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
391         for stack adjust.
392         * config/sh/sh.c (sh_builtin_saveregs): Support using all
393         registers for varargs.
394         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
395         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
396         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
397         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
398         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
399         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
400         call_cookie accordingly.
401         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
402         (SHCOMPACT_BYREF): Likewise.
403         (SHCOMPACT_FORCE_ON_STACK): New macro.
404         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
405         (sh_builtin_saveregs): Likewise.
406         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
407         shcompact_incoming_args): Use new shift values.  Support
408         sequences of consecutive and non-consecutive pushes/pops.
409         * config/sh/sh.md (return): Don't explicitly use PR_REG.
410         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
411         * config/sh/sh.h (TEXT_SECTION): Define.
412         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
413         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
414         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
415         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
416         return values on FPU-enabled SHmedia.
417         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
418         FPU-enabled SHmedia.
419         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
420         value is returned in a non-FP reg and is not returned by
421         reference.
422         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
423         jump_ind.
424         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
425         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
426         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
427         quad-aligned to be passed by callee-copy reference.
428         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
429         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
430         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
431         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
432         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
433         copying low-numbered FP regs to r7 and r8.
434         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
435         FP regs to general-purpose regs only if the copy was passed on the
436         stack.
437         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
438         copying FP reg to r9.
439         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
440         copy FP regs to general-purpose regs only in outgoing calls.
441         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
442         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
443         HOST_WIDE_INT.
444         * config/sh/sh.h (struct sh_args): Document all fields.
445         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
446         passed partially on the stack should not consider making
447         sibcalls.
448         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
449         stack_regs only for incoming calls.  When passing FP args,
450         make sure there are FP regs available before modifying
451         call_cookie.
452         (SHCOMPACT_BYREF): Pass double args in general-purpose
453         registers by reference.
454         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
455         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
456         attempt to generate sibcalls if the caller got any arguments
457         by reference.
458         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
459         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
460         to 8-byte boundaries.
461         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
462         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
463         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
464         stored in the stack.
465         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
466         for the offsets to have the ISA bit set.
467         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
468         invocation.  Use beq instead of bgt to mark end of sequence of
469         loads.
470         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
471         bgt to mark end of sequence of stores.
472         * config/sh/sh.c (arith_operand): Don't check whether
473         CONST_OK_FOR_J for now.
474         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
475         instead of long for conversion.
476         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
477         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
478         before passing it to fprintf.
479         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
480         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
481         Call set_fpscr before reading/writing SR.
482         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
483         Call set_fpscr.
484         * config/sh/lib1funcs.asm: Add `.align 2' directives before
485         SHmedia code.
486         (FMOVD_WORKS): Define on SH5 with FPU.
487         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
488         setting.
489         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
490         _fpscr_values.
491         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
492         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
493         address.
494         (ia_main_table): Ditto.
495         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
496         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
497         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
498         the definitions from sh.h.
499         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
500         TARGET_SH5.
501         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
502         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
503         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
504         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
505         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
506         Increment LABEL_NUSES.
507         
508         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
509         TARGET_SH5.
510         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
511         defined.
512         * config/sh/elf.h (SIZE_TYPE): Likewise.
513         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
514         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
515         shcompact_incoming_args): Load switch table addresses using
516         datalabel.
517         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
518         (NO_BUILTIN_SIZE_TYPE): Define.
519         (SIZE_TYPE): Don't define.
520         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
521         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
522         definition of __SH5__=32 for -m5-compact-nofpu.
523         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
524         ADDR_DIFF_VEC.
525         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
526         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
527         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
528         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
529         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
530         (INSN_LENGTH_ALIGNMENT): Likewise.
531         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
532         * config/sh/sh.md (call, call_value, sibcall): Simplify
533         copying of non-branch-target register.
534         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
535         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
536         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
537         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
538         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
539         floating-point values as structs.
540         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
541         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
542         general-purpose register.
543         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
544         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
545         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
546         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
547         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
548         (ENCODE_SECTION_INFO): Enclose variables and constants in
549         DATALABEL unspecs.
550         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
551         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
552         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
553         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
554         only for LABEL_REFs.  For SYMBOL_REFs, prepend
555         SH_DATALABEL_ENCODING to the symbol name.
556         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
557         convert_mode().
558         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
559         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
560         UNSPEC_DATALABEL.
561         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
562         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
563         (DATALABEL_REF_P): Don't require CONST.
564         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
565         REL label.
566         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
567         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
568         right.
569         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
570         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
571         Use shallow_copy_rtx and PUT_MODE to change the mode of
572         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
573         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
574         on SHmedia using GENERAL_REGs.
575         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
576         bltu_media_i): Fix reversion of conditions.
577         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
578         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
579         * config/sh/sh.c (output_far_jump): Save r13 in macl.
580         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
581         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
582         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
583         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
584         (GCC_nested_trampoline): Likewise.
585         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
586         * config/sh/sh.c (gen_datalabel_ref): Define.
587         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
588         (INITIALIZE_TRAMPOLINE): Likewise.
589         (TRAMPOLINE_ADJUST_ADDRESS): Define.
590         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
591         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
592         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
593         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
594         (ic_invalidate): Adjust for SH5.
595         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
596         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
597         _nested_trampoline.
598         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
599         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
600         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
601         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
602         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
603         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
604         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
605         * config/sh/sh.c (target_reg_operand): Match only target-branch
606         registers and pseudos that aren't virtual registers.
607         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
608         Copy operands that don't match target_reg_operand to pseudos.
609         (call_media, call_value_media, sibcall_media): Use
610         target_reg_operand instead of target_operand.
611         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
612         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits. 
613         * config/sh/sh.c (target_reg_operand): Match hardware registers
614         other than branch-target registers.
615         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
616         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
617         (fpscr_values) [SH5 == 32]: Define.
618         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
619         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
620         Handle function addresses coming in SUBREGs.
621         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
622         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
623         shcompact_return_trampoline): Use datalabel where appropriate.
624         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
625         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
626         general-purpose register to copy one branch-target register to
627         another.
628         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
629         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
630         SYMBOL_REFs with VOIDmode.
631         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
632         bltu_media_i): New insns.
633         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
634         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
635         (INIT_CUMULATIVE_ARGS): Likewise.
636         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
637         * machmode.def (V16SFmode): New mode.
638         * c-common.c (type_for_mode): Support V2SF and V16SF.
639         * tree.c (build_common_tree_nodes_2): Likewise.
640         * tree.h (tree_index): Likewise.
641         * calls.c (emit_call_1): Take args_so_far.  Adjust all
642         callers.  Introduce CALL_POPS_ARGS.
643         * tm.texi (CALL_POPS_ARGS): Document.
644         * config/sh/crt1.asm: Implement in SHmedia mode.
645         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
646         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
647         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
648         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
649         Implement divsi and udivsi in SHmedia mode.  Introduce
650         SHcompact trampolines.
651         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
652         only in SHmedia64.
653         (regno_reg_class): Rewrite.
654         (fp_reg_names): Remove.
655         (sh_register_names, sh_additional_register_names): New.
656         (print_operand): Added `u'.  Support SUBREGs in addresses.
657         Add parentheses around shifted CONSTs.
658         (output_file_start): Output .mode and .abi directives.
659         (shiftcosts, addsubcosts, multcosts): Adjust.
660         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
661         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
662         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
663         bytes, not registers.  Take into account the need for the
664         SHcompact incoming args trampoline.  Adjust all callers.
665         (sh_expand_prologue): Take stack_regs into account.  Call
666         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
667         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
668         stack aligned as per SH5 ABI.
669         (sh_builtin_saveregs): Support SH5 ABI.
670         (sh_build_va_list, sh_va_start): Likewise.
671         (initial_elimination_offset): Take alignment into account.
672         Compute location of PR according to the SH5 stack frame.
673         (arith_reg_operand): Reject branch-target registers.
674         (shmedia_6bit_operand): New.
675         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
676         (target_reg_operand): Match DImode only.  Accept SUBREGs.
677         (target_operand): New.
678         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
679         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
680         SIBCALL_REGS for SHmedia.
681         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
682         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
683         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
684         (TARGET_SWITCHES): New SH5 flags.
685         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
686         VALID_REGISTER_P to disable unsupported registers.
687         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
688         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
689         (FUNCTION_ARG_PADDING): Define.
690         (FASTEST_ALIGNMENT): Adjust.
691         (SH_REGISTER_NAMES_INITIALIZER): New.
692         (sh_register_names): Declare.
693         (DEBUG_REGISTER_NAMES): Define.
694         (REGISTER_NAMES): Define based on sh_register_names.
695         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
696         (sh_additional_register_names): Declare.
697         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
698         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
699         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
700         (REGISTER_NATURAL_MODE): Define.
701         (FIRST_PSEUDO_REGISTER): Adjust.
702         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
703         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
704         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
705         (VECTOR_MODE_SUPPORTED_P): Define.
706         (REG_CLASS_CONTENTS): Adjust.
707         (SMALL_REGISTER_CLASSES): Adjust.
708         (REG_ALLOC_ORDER): Adjust.
709         (INDEX_REG_CLASS): Adjust.
710         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
711         (CONST_OK_FOR_LETTER_P): Adjust.
712         (PREFERRED_RELOAD_CLASS): Adjust.
713         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
714         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
715         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
716         (FIRST_FP_PARM_REG): Adjust.
717         (CALL_POPS_ARGS): Define.
718         (FUNCTION_ARG_REGNO_P): Adjust.
719         (struct sh_args): New fields.
720         (GET_SH_ARG_CLASS): Adjust.
721         (INIT_CUMULATIVE_ARGS): Adjust.
722         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
723         (FUNCTION_ARG_ADVANCE): Adjust.
724         (FUNCTION_ARG): Adjust.
725         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
726         (FUNCTION_ARG_CALLEE_COPIES): Define.
727         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
728         (STRICT_ARGUMENT_NAMING): Define.
729         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
730         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
731         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
732         (SETUP_INCOMING_VARARGS): Adjust.
733         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
734         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
735         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
736         (SUBREG_OK_FOR_INDEX_P): Adjust.
737         (EXTRA_CONSTRAINT_S): Update.
738         (EXTRA_CONSTRAINT_T): New.
739         (EXTRA_CONSTRAINT): Adjust.
740         (GO_IF_LEGITIMATE_INDEX): Adjust.
741         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
742         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
743         (MOVE_MAX): Adjust.
744         (MAX_MOVE_MAX): Define.
745         (Pmode): Adjust.
746         (CONST_COSTS): Adjust.
747         (REGISTER_MOVE_COST): Adjust.
748         (BRANCH_COST): Adjust.
749         (TEXT_SECTION_ASM_OP): Adjust.
750         (DBX_REGISTER_NUMBER): Adjust.
751         (ASM_OUTPUT_DOUBLE_INT): New.
752         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
753         (PREDICATE_CODES): Adjust.
754         (PROMOTE_MODE): Adjust.
755         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
756         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
757         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
758         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
759         (DR0_REG, DR2_REG, DR4_REG): Renumber.
760         (TR0_REG, TR1_REG, TR2_REG): New.
761         (XD0_REG): Renumber.
762         (UNSPEC_COMPACT_ARGS): New.
763         (type): Added pt and ptabs.
764         (length): Default to 4 on SHmedia.  Default pt length to 12
765         and     20 on SHmedia32 and SHmedia64, respectively.
766         (pt): New function unit.
767         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
768         Add whitespace between operands of SHmedia instructions.
769         (movdicc): Fix.
770         (adddi3_media, addsi3_media): Adjust constraints.
771         (subsi3) [SHmedia]: Force operand 1 into a register.
772         (udivsi3_i1_media, udivsi3_i4_media): New.
773         (udivsi3): Support SHmedia.
774         (divsi3_i1_media, divsi3_i4_media): New.
775         (divsi3): Support SHmedia.
776         (anddi3, iordi3, xordi3): Adjust constraints.
777         (zero_extendhidi2, zero_extendqidi2): New.
778         (extendsidi2, extendhidi2, extendqidi2): New.
779         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
780         (pop_e, pop_fpul, pop_4): Likewise.
781         (movsi_media): Support FP and BT registers.
782         (movsi_media_nofpu): New.  Adjust splits to DImode.
783         (lduw, ldub): Renamed to zero_extend* above.
784         (movqi_media): Fix typo.
785         (movdi_media): Support FP and BT registers.
786         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
787         (movdi_const_32bit): New.
788         (shori_media): Require immediate operand.  Use `u' for output.
789         (movdf_media, movsf_media): Simplified.
790         (movdf_media_nofpu, movsf_media_nofpu): New.
791         (movdf, movsf): Adjust
792         (movv2sf, movv2sf, movv16sf): New.
793         (beq_media, beq_media_i): Adjust constraints.  Don't use
794         scratch BT register.
795         (bne_media, bne_media_i): Likewise.
796         (bgt_media, bgt_media_i): Likewise.
797         (bge_media, bge_media_i): Likewise.
798         (bgtu_media, bgtu_media_i): Likewise.
799         (bgeu_media, bgeu_media_i): Likewise.
800         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
801         bunordered): Emit jump insn.  Force operands to registers when
802         needed.
803         (jump_media, jump): Simplify.
804         (call_compact, call_compact_rettramp): New.
805         (call_value_compact, call_value_compact_rettramp): New.
806         (call_media, call_value_media): Simplify.
807         (sibcall_compact, sibcall_media): New.
808         (call, call_value): Adjust for SHmedia and SHcompact.
809         (sibcall, sibcall_value, untyped_call): Likewise.
810         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
811         (indirect_jump): Adjust for SHmedia.
812         (casesi_jump_media): New.
813         (nop): Re-enable for SHmedia.
814         (call_site): Restrict to SH1.
815         (casesi): Adjust for SHmedia.
816         (casesi_shift_media, casesi_load_media): New.
817         (return): Explicitly use PR register.  Call return trampoline
818         on SHcompact.
819         (return_i): Explicitly use PR register.
820         (shcompact_return_tramp, shcompact_return_tramp_i): New.
821         (return_media): Adjust.
822         (shcompact_incoming_args): New.
823         (epilogue): Adjust.
824         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
825         (movstrsi): Disable on SH5.
826         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
827         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
828         (subsf3, subsf3_media): Likewise.
829         (mulsf3, mulsf3_media, mac_media): Likewise.
830         (divsf3, divsf3_media): Likewise.
831         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
832         (floatsisf2, fux_truncsfsi2): Likewise.
833         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
834         constraints.
835         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
836         (cmpunsf_media, cmpsf): Likewise.
837         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
838         (abssf2, abssf2_media): Likewise.
839         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
840         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
841         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
842         (floatsidf2, fix_truncdfsi2): Likewise.
843         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
844         constraints.
845         (cmpeqdf_media, cmpgtdf_media): Likewise.
846         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
847         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
848         (absdf2, absdf2_media): Likewise.
849         (extendsfdf2, extendsfdf2_media): Likewise.
850         (truncsfdf2, truncsfdf2_media): Likewise.
851         * config/sh/sh64.h: New file.
852         * config/sh/t-sh64: New file.
853         * config/sh/shmedia.h: New file.
854         * config/sh/ushmedia.h: New file.
855         * config/sh/sshmedia.h: New file.
856         * configure.in: Added sh64-*-elf.
857         * configure: Rebuilt.
858         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
859         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
860         (reg_class_from_letter): Use `b' for TARGET_REGS.
861         (print_operand): Support `%M', `%m', `AND' and
862         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
863         (andcosts): Adjust for SHmedia.
864         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
865         Likewise.
866         (target_reg_operand): New function.
867         * config/sh/sh-protos.h (target_reg_operand): Declare.
868         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
869         FP registers on SH5.
870         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
871         on SH4.
872         (TARGET_REGISTER_P): New macro.
873         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
874         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
875         (EXTRA_CONSTRAINT_S): New macro.
876         (EXTRA_CONSTRAINT): Adjust.
877         (FLOAT_TYPE_SIZE): Define to 32.
878         (Pmode): DImode on SHmedia.
879         (CONST_COSTS): Adjust for SHmedia literals.
880         (PREDICATE_CODES): Added target_reg_operand.
881         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
882         * config/sh/sh.md: Remove all attrs from SHmedia insns.
883         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
884         (cmpdi): Accept SHmedia.
885         (movdicc_false, movdicc_true): New insns.
886         (movdicc): New expand.
887         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
888         no_new_pseudos.
889         (addsi3_media): Match `S' constraint.
890         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
891         (negdi2): Expand for SHmedia.
892         (one_cmpldi2): New expand.
893         (zero_extendsidi2): Change from expand to insn.
894         (extendsidi2): Add constraints.
895         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
896         LD/ST address.  Fix SI immediate loading split.
897         (movhi_media, movqi_media, lduw, ldub): New insns.
898         (movhi, movqi): Accept SHmedia.
899         (shori_media, movdi_media): Relax input constraints.  Split
900         symbolic constants.
901         (movdf_media, movsf_media): New insn.  New split to movdi.
902         (movdf, movsf): Match on SHmedia.
903         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
904         bgeu_media): New insns and splits.  New insns with `_i' suffix.
905         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
906         (bunordered): New expand.
907         (jump_compact): Renamed from `jump'.
908         (jump_media): New insn.
909         (jump): New expand.
910         (call_media, call_value_media): New insns.
911         (call, call_value): Adjust.
912         (indirect_jump_compact): Renamed from `indirect_jump'.
913         (indirect_jump_media): New insn.
914         (indirect_jump): New expand.
915         (untyped_call, return): Accept SHmedia.
916         (return_media): New insn.
917         (prologue, epilogue, blockage): Accept SHmedia.
918         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
919         (sunordered): New expand.
920         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
921         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
922         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
923         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
924         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
925         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
926         abssf2_media): New insns.
927         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
928         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
929         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
930         floatdidf2, floatsidf2_media, fix_truncdfdi2,
931         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
932         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
933         absdf2_media): New insns.
934         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
935         (extendsfdf2_media, truncdfsf2_media): New insns.
936         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
937         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
938         * config/sh/sh.h (CONST_OK_FOR_J): Document.
939         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
940         * config/sh/sh.md (adddi3): New expand.
941         (adddi3_media, adddi3z_media): New insns.
942         (adddi3_compact): Renamed from adddi3.
943         (addsi3_media): Use add.l r63 to add constant zero.
944         (subdi3): New expand.
945         (subdi3_media): New insn.
946         (subdi3_compact): Renamed from subdi3.
947         (mulsidi3): New expand.
948         (mulsidi3_media): New insn.
949         (mulsidi3_compact): Renamed from mulsidi3.
950         (umulsidi3): New expand.
951         (umulsidi3_media): New insn.
952         (umulsidi3_compact): Renamed from umulsidi3.
953         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
954         (ashlsi3, ashrsi3, lshrsi3): Use them.
955         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
956         (ashldi3, ashrdi3, lshrdi3): Use them.
957         (zero_extendsidi2): New expand.
958         (extendsidi2): New insn.
959         (movsi_media): New insn.  Split to movdi to load constants.
960         (movsi): Enable for shmedia.
961         (movdi_media): New insn.  Use shori_media to load wide constants.
962         (short_media): New insn.
963         (movdi): Enable for shmedia.
964         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
965         * config/sh/sh.h (CPP_SPEC): Added `m5'.
966         (SUBTARGET_CPP_SPEC): Added `!m5'.
967         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
968         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
969         to all other SH variants.
970         (TARGET_DEFAULT): Set to SH1_BIT.
971         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
972         (BITS_PER_WORD): Raise to 64 on shmedia.
973         (MAX_BITS_PER_WORD): Change to 64.
974         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
975         (INT_TYPE_SIZE): Keep as 32.
976         (UNITS_PER_WORD): Raise to 8 on shmedia.
977         (MIN_UNITS_PER_WORD): Keep as 4.
978         (POINTER_SIZE): Raise to 64 on shmedia.
979         (CONST_OK_FOR_J): New macro.
980         (CONST_OK_FOR_LETTER_P): Use it.
981         (processor_type): Add PROCESSOR_SH5.
982         * config/sh/sh.md: Conditionalize all expands, insns and
983         splits to TARGET_SH1.
984         (cpu): Added sh5.
985         (addsi3_compact): Renamed from...
986         (addsi3): Now an expand.
987         (addsi3_media, subsi3_media): New insns.
988         (subsi3): Don't negate constants with SHmedia.
989
990         * hooks.c: New file.
991         * hooks.h: New file.
992         * Makefile.in (HOOKS_H): New.
993         (TARGET_DEF_H): Added $(HOOKS_H).
994         (OBJS): Added hooks.o.
995         (cfgcleanup.o, bb-reorder.o): Added target.h.
996         (hooks.o): Added dependencies.
997         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
998         (TARGET_INITIALIZER): this.
999         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
1000         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
1001         * bb-reorder.c: Include target.h.
1002         (reorder_basic_blocks): Skip if cannot modify jumps.
1003         * cfgcleanup.c: Include target.h.
1004         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
1005
1006 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
1007
1008         * config/mips/mips.md (casesi_internal, casesi_internal_di):
1009         Protect jump delay slot instructions with .set noreorder and
1010         .set nomacro.
1011
1012 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
1013
1014         * config/mips/mips.md (casesi_internal_di): Calculate
1015         the index into the target offset table correctly.
1016
1017 2002-02-08  Richard Henderson  <rth@redhat.com>
1018
1019         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
1020         * final.c (output_addr_const): Accept and discard SUBREG.
1021         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
1022         mark them unknown instead.
1023         (simplify_subtraction): Handle RTX_UNKNOWN.
1024         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
1025
1026 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
1027
1028         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
1029
1030 2002-02-08  Richard Henderson  <rth@redhat.com>
1031
1032         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
1033
1034 2002-02-08  Andreas Jaeger  <aj@suse.de>
1035
1036         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
1037         * config/i386/t-linux64: New file.
1038
1039 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
1040
1041         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
1042         * c-parse.in (compstmt): Clear last_expr_type.
1043
1044 2002-02-07  Richard Henderson  <rth@redhat.com>
1045
1046         * loop.c (strength_reduce): Sink final_value when not
1047         eliminating a biv.
1048
1049 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
1050
1051         * config/sparc/freebsd.h: Fix mismatched spec {.
1052
1053 2002-02-07  Richard Henderson  <rth@redhat.com>
1054
1055         * cfgrtl.c: Include recog.h and insn-config.h.
1056         (keep_with_call_p): Fix general_operand invocation.
1057         * Makefile.in (cfgrtl.o): Update dependencies.
1058
1059 2002-02-07  Kazu Hirata  <kazu@hxi.com>
1060
1061         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
1062         comment.  Accept HImode only if TARGET_H8300.
1063
1064 2002-02-07  Eric Christopher  <echristo@redhat.com>
1065
1066         * config/mips/crtn.asm: Cleanup #ifdefs.
1067
1068 2002-02-07  Eric Christopher  <echristo@redhat.com>
1069
1070         * config/mips/crti.asm: Add changes for mips16. mips16 uses
1071         register 7 as RA instead of $31.
1072         * config/mips/crtn.asm: Ditto.
1073         * config/mips/mips.c (mips_move_2words): Add case for
1074         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
1075         (compute_frame_size): Fix typo.
1076         (save_restore_insns): Ditto.  Make documentation about using
1077         register $7 as return register more precise.
1078         (mips_expand_epilogue): Fix comment. Add code to work around not
1079         being able to add to the stack pointer directly.
1080         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
1081         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
1082         epilogue.
1083
1084 2002-02-07  Tom Rix  <trix@redhat.com>
1085
1086         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
1087         immediates in ldu and stdu DS opcode field.
1088         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
1089         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
1090         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
1091
1092 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
1093
1094         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
1095         offset for stack bias.
1096
1097 2002-02-07  H.J. Lu <hjl@gnu.org>
1098
1099         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
1100
1101 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
1102
1103         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
1104
1105 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
1106
1107         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
1108         * i386.c (x86_order_regs_for_local_alloc): New global function.
1109         * i386.h (REG_ALLOC_ORDER): CLeanup.
1110         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
1111
1112 2002-02-07  Richard Henderson  <rth@redhat.com>
1113
1114         PR optimization/2463
1115         * alias.c (find_base_value): Recall base values for fixed hard regs.
1116         * loop.c (loop_regs_update): Don't use single_set on non-insns.
1117
1118 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
1119
1120         * config/mips/mips.md (define_delay) [mips16]: Adjust required
1121         length.
1122
1123 2002-02-06  Richard Henderson  <rth@redhat.com>
1124
1125         PR c/5609
1126         * stmt.c (resolve_operand_name_1): Take more care with mixed
1127         named and unnamed operands.
1128
1129 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
1130             Jan Hubicka  <jh@suse.cz>
1131
1132         * loop.c (remove_constant_addition): Avoid clobbering a shared
1133         CONST expression.
1134
1135 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
1136
1137         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
1138         * config/s390/t-linux64: New file.
1139         * config/s390/libgcc-glibc.ver: New file.
1140
1141 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
1142
1143         * config/s390/linux64.h: Delete file.
1144         * config/s390/s390x.h: New file.
1145         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
1146         as target header file.
1147         * config/s390/linux.h (TARGET_VERSION): Define depending on
1148         DEFAULT_TARGET_64BIT.
1149         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
1150         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
1151         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
1152         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
1153         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
1154         (EXTRA_SPEC): New define.
1155         * config/s390/s390.h (TARGET_VERSION): Define depending on
1156         DEFAULT_TARGET_64BIT.
1157         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
1158
1159 2002-02-06  Jason Merrill  <jason@redhat.com>
1160
1161         * c-decl.c (finish_function): Warn about a non-void function with
1162         no return statement and no abnormal exit.
1163         (current_function_returns_abnormally): New variable.
1164         (start_function): Clear it.
1165         (struct c_language_function): Add returns_abnormally.
1166         (push_c_function_context): Save it.
1167         (pop_c_function_context): Restore it.
1168         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
1169         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
1170         an explicit return type.
1171         * c-tree.h: Declare current_function_returns_abnormally.
1172         (C_FUNCTION_IMPLICIT_INT): New macro.
1173         * c-typeck.c (build_function_call): Set it.
1174         (c_expand_return): Set current_function_returns_value even if the
1175         value is erroneous.
1176
1177 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
1178
1179         PR c/5420:
1180         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
1181         unsafe for reevaluation.
1182
1183 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
1184
1185         PR c/5482:
1186         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
1187         EXPR_STMT, but COMPOUND_STMT, recurse into it.
1188
1189 2002-02-06  Richard Henderson  <rth@redhat.com>
1190
1191         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
1192         be a general_operand.  Dest for function value must be a pseudo.
1193
1194 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
1195
1196         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
1197         as SYMBOL_REFs from the constant pool.
1198
1199 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
1200
1201         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
1202         passed by invisible reference.
1203
1204 2002-02-05  Richard Henderson  <rth@redhat.com>
1205
1206         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
1207
1208 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
1209
1210         Implement using "base addresses" in insn operands as default.
1211         * config/mmix/mmix.c (mmix_conditional_register_usage): if
1212         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
1213         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
1214         used to read the rtx value.
1215         (mmix_target_asm_function_epilogue): Fix spacing.
1216         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
1217         (mmix_legitimate_address): Ditto.
1218         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
1219         should be loaded with a GETA insn.  Don't allocate needless extra
1220         char for nul termination and fix misleading comment.
1221         (mmix_print_operand_address): Handle constants if
1222         TARGET_BASE_ADDRESSES.
1223         (mmix_output_register_setting): Use base addressing if
1224         TARGET_BASE_ADDRESSES and the number of insns is 3.
1225         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
1226         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
1227         to use R as constraint, add LDA to match s.
1228         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
1229         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
1230         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
1231         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
1232         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
1233         order with other fixed registers.
1234         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
1235         other parameter/call-clobbered registers.
1236         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
1237         -mbase-addresses, -mno-base-addresses.
1238         (MMIX Options): Ditto.
1239
1240 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1241
1242         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
1243
1244 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
1245
1246         * config/rs6000/altivec.h: Change elem to _S_elem.
1247
1248 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
1249
1250         * config/netbsd.h (WCHAR_TYPE): Define.
1251         (WCHAR_TYPE_SIZE): Ditto.
1252         (WINT_TYPE): Ditto.
1253         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
1254         (WCHAR_UNSIGNED): Ditto.
1255         (WCHAR_TYPE_SIZE): Ditto.
1256         (WINT_TYPE): Ditto.
1257         * config/arm/netbsd.h: Likewise.
1258         * config/i386/netbsd-elf.h: Likewise.
1259         * config/i386/netbsd.h: Likewise.
1260         * config/m68k/netbsd-elf.h: Likewise.
1261         * config/m68k/netbsd.h: Likewise.
1262         * config/ns32k/netbsd.h: Likewise.
1263         * config/sparc/netbsd.h: Likewise.
1264         * config/vax/netbsd.: Likewise.
1265
1266 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
1267
1268         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
1269         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
1270         (TARGET_INITIALIZER): this.
1271         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
1272         (BITFIELD_NBYTES_LIMITED): Markup fix.
1273         * tree.h (default_ms_bitfield_layout_p): Declare.
1274         (record_layout_info): Added prev_field.
1275         * tree.c (default_ms_bitfield_layout_p): New fn.
1276         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
1277         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
1278         * stor-layout.c: Include target.h.
1279         (start_record_layout): Initialize prev_field.
1280         (place_field): Handle MS bit-field layout, and disregard
1281         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
1282         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
1283         * Makefile.in (stor-layout.o): Adjust dependencies.
1284
1285 2002-02-05  Jason Merrill  <jason@redhat.com>
1286
1287         * c-typeck.c (convert_for_assignment): Don't allow conversions
1288         between pointers and references.  Only allow lvalues to convert to
1289         reference.
1290
1291         * c-decl.c (finish_function): Warn about a non-void function with
1292         no return statement and no abnormal exit.
1293         (current_function_returns_abnormally): New variable.
1294         (start_function): Clear it.
1295         (struct c_language_function): Add returns_abnormally.
1296         (push_c_function_context): Save it.
1297         (pop_c_function_context): Restore it.
1298         * c-tree.h: Declare current_function_returns_abnormally.
1299         * c-typeck.c (build_function_call): Set it.
1300
1301         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
1302
1303 2002-02-05  Andreas Jaeger  <aj@suse.de>
1304
1305         * crtstuff.c: Fix comments.
1306
1307 2002-02-05  Richard Henderson  <rth@redhat.com>
1308
1309         PR fortran/3393
1310         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
1311         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
1312
1313         PR fortran/3392
1314         * config/mips/mips.c (function_arg): Handle TImode.
1315         (function_arg_advance): Likewise.
1316
1317 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
1318
1319         * config/rs6000/altivec.h (vec_step_help): Rename to
1320         __vec_step_help.
1321
1322 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
1323
1324         * config/rs6000/altivec.h: Fix typos.
1325
1326 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
1327
1328         * config/arm/netbsd.h: Correct a comment.
1329
1330 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
1331
1332         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
1333         building void typed builtins.
1334
1335         * config/rs6000/altivec.h (vec_ld*): Fix typos.
1336         (vec_step): Implement for C++.
1337
1338 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1339
1340         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
1341
1342 2002-02-04  Richard Henderson  <rth@redhat.com>
1343
1344         * combine.c (nonzero_bits): Re-introduce special case for
1345         sp/fp/ap wrt REGNO_POINTER_ALIGN.
1346
1347 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
1348
1349         * doc/extend.texi: Warn about unsupported usage of altivec
1350         builtins.
1351
1352         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
1353         (altivec_predicate_*): New.
1354
1355         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
1356         Add C++ version of vec_*() functions.
1357
1358         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
1359         (bdesc_2arg): Remove altivec predicates.
1360         (altivec_expand_builtin): Handle predicates.
1361         (altivec_init_builtins): Handle predicates.
1362         (altivec_expand_predicate_builtin): New.
1363
1364 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1365
1366         * pa.c (DO_FRAME_NOTES): Move forward.
1367         (store_reg): Revise handling of frame notes.
1368         (load_reg): Likewise.
1369         (set_reg_plus_d): Likewise.
1370         (hppa_expand_prologue): Likewise.
1371         (hppa_expand_epilogue): Likewise.
1372
1373 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1374
1375         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
1376
1377 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
1378
1379         PR c/4475, c++/3780:
1380         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
1381         * c-common.h (SWITCH_TYPE): Define.
1382         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
1383         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
1384         Rename spareness variable to sparseness.
1385         (expand_end_case_type): Renamed from expand_end_case, use orig_type
1386         if non-NULL instead of TREE_TYPE (orig_index).
1387         * tree.h (expand_end_case_type): Renamed from expand_end_case.
1388         (expand_end_case): Define using expand_end_case_type.
1389         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
1390         to expand_end_case_type.
1391         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
1392
1393 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1394
1395         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
1396         (BIGGEST_ALIGNMENT): Change to 128.
1397
1398 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1399
1400         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
1401
1402 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1403
1404         * pa.md (call_internal_reg_64bit): Remove unused variable.
1405
1406 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
1407
1408         * config/arm/arm.h (machine_function): Add uses_anonymous_args
1409         field.
1410         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
1411         * config/arm/arm.c (current_function_anonymous_args): Delete,
1412         replace uses with cfun->machine->uses_anonymous_args.
1413         (arm_reorg): Do not reset uses_anonymous_args.
1414
1415         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
1416         any geenral register.
1417
1418 2001-02-04  Bernd Schmidt  <bernds@redhat.com>
1419
1420         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
1421         the entry block.
1422
1423 2002-02-04  Richard Henderson  <rth@redhat.com>
1424
1425         * combine.c (force_to_mode): Remove STACK_BIAS code.
1426         (nonzero_bits): Likewise.  Replace sp/fp special case with
1427         REGNO_POINTER_ALIGN.
1428
1429         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
1430         (HARD_FRAME_POINTER_REGNUM): New.
1431         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
1432         (FIXED_REGS, CALL_USED_REGS): Update.
1433         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
1434         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
1435         (HARD_REGNO_NREGS): Update for SFP.
1436         (STACK_POINTER_OFFSET): Include bias here ...
1437         (FIRST_PARM_OFFSET): ... not here.
1438         (STACK_BIAS): Remove.
1439         (INIT_EXPANDERS): New.
1440         (STARTING_FRAME_OFFSET): Do not include bias.
1441         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
1442         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
1443         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
1444         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
1445         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
1446         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
1447         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
1448         (MUST_SAVE_REGISTER): Likewise.
1449         (sparc_flat_function_prologue): Likewise.
1450         (sparc_flat_function_epilogue): Likewise.
1451         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
1452         (sparc_init_modes): SFP is GENERAL_REGS.
1453         (sparc_builtin_saveregs): SFP does not have bias applied.
1454
1455 2002-02-04  Richard Henderson  <rth@redhat.com>
1456
1457         * config/alpha/alpha.c (current_function_is_thunk): Don't check
1458         current_function_is_thunk.
1459         (alpha_sa_mask): Distinguish between current_function_is_thunk
1460         called from ASM_OUTPUT_MI_THUNK and not.
1461         (alpha_does_function_need_gp): Thunks always need gp.
1462         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
1463         (alpha_output_mi_thunk_osf): New.
1464         * config/alpha/alpha-protos.h: Update.
1465         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
1466
1467 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
1468
1469         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
1470         function types, not when they're taken away.
1471
1472 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
1473
1474         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
1475         CODE_LABEL and jump table when replacing a table jump with a
1476         simple jump.
1477
1478 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
1479
1480         * config/s390/s390-protos.h (legitimize_la_operand,
1481         s390_secondary_input_reload_class, s390_plus_operand,
1482         s390_expand_plus_operand): Add prototypes.
1483
1484         config/s390/s390.c (s390_secondary_input_reload_class,
1485         s390_plus_operand, s390_expand_plus_operand): New functions.
1486
1487         (struct s390_address): New member 'pointer'.
1488         (s390_decompose_address): Compute it.
1489         (legitimate_la_operand_p): Use it.
1490         (legitimize_la_operand): New function.
1491         (movti, movdi, movdf splitters): Call it.
1492
1493         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
1494         (PREDICATE_CODES): Add s390_plus_operand.
1495
1496         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
1497         (la_ccclobber): Allow GENERAL_REGS as output operand.
1498
1499         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
1500         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
1501         (*la_64, *la_31, reload_indi, reload_insi): ... these.
1502
1503 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
1504
1505         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
1506         register names for regular asm () construct.
1507
1508 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
1509
1510         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
1511         registers.
1512
1513 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
1514
1515         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
1516         pat for recog.
1517
1518 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
1519
1520         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
1521         constant pool to be identical by string address and index.
1522
1523 2002-02-04  Anthony Green  <green@redhat.com>
1524
1525         * output.h (SECTION_OVERRIDE): Define.
1526         * varasm.c (named_section): Obey SECTION_OVERRIDE.
1527
1528 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
1529
1530         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
1531         by existing arm*-*-netbsd* (a.out) target.
1532         (ns32k-*-netbsdelf*): Likewise.
1533         (sparc-*-netbsdelf*): Likewise.
1534         (vax-*-netbsdelf*): Likewise.
1535
1536 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
1537
1538         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
1539         headers and libobjc headers.
1540
1541 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
1542
1543         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
1544         (_mingw.h): Remove duplicate include.
1545
1546 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
1547
1548         * config.gcc: Set cpu_type to m68k for 68010, as well.
1549         (m68010-*-netbsdelf*): New...
1550         (m68k*-*-netbsdelf*): ...targets.
1551         * config/m68k/netbsd-elf.h: New file.
1552
1553 2002-02-02  Kazu Hirata  <kazu@hxi.com>
1554
1555         * config/h8300/h8300.c (hand_list): Move inside function_arg.
1556
1557 2002-02-02  Kazu Hirata  <kazu@hxi.com>
1558
1559         * config/h8300/h8300.c (h8_push_ops): Move inside
1560         h8300_init_once.
1561         (h8_pop_ops): Likewise.
1562         (h8_move_ops): Likewise.
1563
1564 2002-02-02  Kazu Hirata  <kazu@hxi.com>
1565
1566         * config/h8300/h8300.c (os_task): Make it static.
1567         (monitor): Likewise.
1568         (pragma_saveall): Likewise.
1569
1570 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
1571
1572         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
1573         constant is a valid sign-extension for Pmode.
1574
1575 2002-02-02  Kazu Hirata  <kazu@hxi.com>
1576
1577         * config/h8300/h8300.c: Fix formatting.
1578
1579 2002-02-02  Kazu Hirata  <kazu@hxi.com>
1580
1581         * config/h8300/h8300.md: Fix formatting.
1582
1583 2002-02-02  Kazu Hirata  <kazu@hxi.com>
1584
1585         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
1586         predicates of operands[1].  Split the patterns for each
1587         processor variant.
1588
1589 2002-02-02  Kazu Hirata  <kazu@hxi.com>
1590
1591         * config/h8300/h8300.md (xor patterns): Tighten the predicates
1592         of operands[1] to register_operand.
1593
1594 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1595
1596         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
1597         * cpphash.c (_cpp_init_hashtable): Similarly.
1598         * cppinit.c (cpp_create_reader): Default the signed_char flag.
1599         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
1600         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
1601         (cpp_handle_option): Handle the new options.
1602         * cpplex.c (cpp_interpret_charconst): Use new flag.
1603         * cpplib.h (struct cpp_options): New member signed_char.
1604         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
1605         (cpp_options): Handle -fsigned-char and -funsigned-char.
1606         (static_specs): Remove signed_char_spec.
1607         (do_spec1): Don't handle %c.
1608         * system.h: Poison SIGNED_CHAR_SPEC.
1609         * tradcif.y (yylex): Use flag_signed_char.
1610         * tradcpp.h (flag_signed_char): New.
1611         * tradcpp.c (flag_signed_char): New.
1612         (main): Handle new command-line options.
1613         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
1614 config:
1615         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
1616         * avr/avr.h: Remove old comments.
1617         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
1618         (CC1_SPEC): Pass -fsigned-char if -mic*.
1619         (SIGNED_CHAR_SPEC): Remove.
1620 doc:
1621         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
1622
1623 2002-02-01  Eric Christopher  <echristo@redhat.com>
1624
1625         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
1626         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
1627         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
1628         (ASM_OUTPUT_REG_POP): Ditto.
1629
1630 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1631
1632         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
1633         patch.
1634
1635 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
1636
1637         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
1638
1639 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
1640
1641         PR c/5304:
1642         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
1643         unconditionally.
1644
1645 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
1646
1647         * cfganal.c: Include tm_p.h.
1648         (keep_with_call_p): Fix the test that determines if a register holds
1649         the return value of a call.
1650
1651 2002-02-01  DJ Delorie  <dj@redhat.com>
1652
1653         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
1654         we are given conflicting registers, switch to the other one we
1655         had allocated for us.
1656         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
1657         as TImode so we know when the "other" register is available.
1658
1659 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
1660
1661         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
1662         sparc/sparc_bi.h.
1663
1664 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
1665
1666         * cfganal.c (keep_with_call_p): New function.
1667         (flow_call_edges_add): Prevent splitting a block between a call and
1668         a single-set instruction that should be kept in the same block.
1669
1670 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1671
1672         * doc/install.texi (avr): Update outdated URL.
1673
1674 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
1675
1676         * config/stormy16/stormy16.md (pushqi): New.
1677         (popqi): New.
1678         (pushhi): New.
1679         (pophi): New.
1680         (movhi): Remove stack operands.
1681         (movqi): Likewise.
1682         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
1683         nonimmediate_nonstack_operand.
1684         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
1685         New.
1686         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
1687         New.
1688
1689 2002-01-31  Jason Merrill  <jason@redhat.com>
1690
1691         * Makefile.in (c-parse.c): Handle .output file.
1692         * objc/Make-lang.in (objc-parse.c): Likewise.
1693
1694 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
1695
1696         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
1697         the -me[lb] option is given.  Don't output the default flag
1698         twice.
1699
1700 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
1701
1702         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
1703         the primary source file; this has not been done yet.
1704         * c-decl.c (c_expand_body): Reset input_filename from
1705         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
1706
1707 2002-01-31  Kazu Hirata  <kazu@hxi.com>
1708
1709         * rtlanal.c (subreg_regno_offset): Do not use
1710         SUBREG_REGNO_OFFSET.
1711         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
1712         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
1713
1714 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
1715
1716         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
1717         version rather than GNATS version in --version output.
1718
1719 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
1720
1721         * ifcvt.c (noce_process_if_block): Make a copy of the destination
1722         when copying back from a temporary.
1723
1724 2002-01-30  Richard Henderson  <rth@redhat.com>
1725
1726         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
1727         and new_dest are the same.
1728
1729 2002-01-30  Richard Henderson  <rth@redhat.com>
1730
1731         PR opt/5076
1732         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
1733         * rtl.c (note_insn_name): Update.
1734         * emit-rtl.c (remove_unnecessary_notes): Kill it.
1735         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
1736         to perform loop rotation.
1737         (expand_exit_loop_top_cond): New.
1738         * tree.h (expand_exit_loop_top_cond): Declare it.
1739         * c-semantics.c (genrtl_while_stmt): Use it.
1740         (genrtl_for_stmt): Likewise.
1741
1742 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
1743
1744         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
1745         arguments to 64-bit boundaries on 64-bit ABIs.
1746
1747 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
1748
1749         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
1750
1751 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
1752
1753         * c-decl.c (grokdeclarator): Handle type being a typedef for an
1754         invalid type.
1755
1756 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
1757
1758         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
1759         * config/sparc/sparc_bi.h: Remove file.
1760         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
1761
1762 2002-01-30  Richard Henderson  <rth@redhat.com>
1763
1764         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
1765
1766 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
1767
1768         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
1769
1770 2002-01-30  Jason Merrill  <jason@redhat.com>
1771
1772         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
1773         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
1774         (reg_save): Use DW_CFA_offset_extended_sf instead.
1775
1776         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
1777
1778 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
1779
1780         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
1781         in cselib_lookup.
1782
1783 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
1784
1785         * rs6000.md ("*call_value_local32"): Remove constraints.
1786         ("*call_value_local64"): Same.
1787         ("*call_value_indirect_nonlocal_aix32"): Same.
1788         ("*call_value_nonlocal_aix32"): Same.
1789         ("*call_value_indirect_nonlocal_aix64"): Same.
1790         ("*call_value_nonlocal_aix64"): Same.
1791         ("*call_value_nonlocal_sysv"): Same.
1792
1793 2002-01-29  Richard Henderson  <rth@redhat.com>
1794
1795         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
1796
1797 2002-01-29  Richard Henderson  <rth@redhat.com>
1798
1799         * expr.c (force_operand): Ignore flag_pic for detecting pic
1800         address loads.
1801         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
1802         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
1803         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
1804         instead of open-coded loop.
1805         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
1806         be fixed when in use.
1807
1808 2002-01-29  Richard Henderson  <rth@redhat.com>
1809
1810         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
1811         * sched-rgn.c (propagate_deps): Update them.
1812         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
1813         clobbers list when either gets too long.
1814
1815 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
1816
1817         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
1818         and INDEX_REGS the same as GENERAL_REGS.
1819         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1820
1821 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1822
1823         * tree.c (build_nonstandard_integer_type): Correct prototype.
1824
1825 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
1826
1827         * config/s390/s390.md (movstrsico, movstrdix_64,
1828         movstrsix_31): Remove, replace by ...
1829         (movstrdi_short, movstrsi_short, movstrdi_long,
1830         movstrsi_long): ... these.  New.
1831         (movstrdi, movstrsi): Adapt.
1832
1833         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
1834         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
1835         Remove unnecessary CC clobber.
1836         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
1837         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
1838
1839         (divmoddi4): Don't partially initialize TImode register.
1840
1841 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
1842
1843         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
1844
1845 2002-01-29  Richard Henderson  <rth@redhat.com>
1846
1847         * flow.c (print_rtl_and_abort): Remove.
1848         (print_rtl_and_abort_fcn): Remove.
1849         (verify_local_live_at_start): Use dump_bb instead.
1850         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
1851         (verify_wide_reg_1): Return 2 on mode test failure.
1852
1853 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1854
1855         PR c/3325, c/3326, c/2511, c/3347
1856         * c-decl.c (enum_decl_context): Remove BITFIELD.
1857         (grokdeclarator): Take bitfield width as an input.
1858         Ensure bitfields are given the correct type.  Perform
1859         bitfield width validation with build_bitfield_integer_type
1860         rather than waiting for finish_struct.
1861         (grok_typename, grok_typename_in_parm_context, start_decl,
1862         push_parmdecl, grokfield, start_function): Update calls to
1863         grokdeclarator.
1864         (build_bitfield_integer_type): New function.
1865         (finish_struct): Move bitfield validation to grokdeclarator
1866         and build_bitfield_integer_type.
1867         * tree.c (build_nonstandard_integer_type): New function.
1868         * tree.h (build_nonstandard_integer_type): New prototype.
1869 objc:
1870         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
1871
1872 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
1873
1874         PR other/1502:
1875         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
1876         don't ignore unrecognized -W* options.
1877         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
1878         * cpplib.h (cpp_handle_option): Adjust prototype.
1879         * c-decl.c (c_decode_options): Pass 0 as last argument to
1880         cpp_handle_option.
1881
1882         PR c/2896:
1883         * gcc.c (cpp_unique_options): Split from cpp_options.
1884         (cpp_options): Source cpp_unique_options.
1885         (default_compilers): Use cpp_unique_options instead of cpp_options
1886         when used together with cc1_options.
1887         (static_specs): Add cpp_unique_options.
1888         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
1889         when used together with cc1_options.
1890
1891 2002-01-29  Kazu Hirata  <kazu@hxi.com>
1892
1893         * config/h8300/h8300-protos.h: Update the prototype of
1894         output_a_shift.
1895         * config/h8300/h8300.c (output_a_shift): Remove an unused
1896         argument 'insn'.  Remove redundant code.
1897         * config/h8300/h8300.md: Adust to the new prototype of
1898         output_a_shift.
1899
1900 2002-01-29  Kazu Hirata  <kazu@hxi.com>
1901
1902         * config/h8300/h8300-protos.h: Update the prototypes of
1903         emit_a_rotate and expand_a_rotate.
1904         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
1905         first argument to 'enum rtx_code'.
1906         (expand_a_rotate): Likewise.
1907
1908 2002-01-28  Kazu Hirata  <kazu@hxi.com>
1909
1910         * config/h8300/h8300-protos.h: Update the prototype of
1911         output_simode_bld.
1912         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
1913         'log2'.
1914         * config/h8300/h8300.md: Adjust to the new prototype.
1915
1916 2002-01-28  Kazu Hirata  <kazu@hxi.com>
1917
1918         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
1919         redundant code.
1920
1921 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1922
1923         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
1924         is a fixed register before returning pic_offset_table_rtx.
1925         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
1926         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
1927
1928 2002-01-28  Jason Merrill  <jason@redhat.com>
1929
1930         * dwarf2.h: Sync with src version.
1931
1932 2002-01-28  Paul Koning  <pkoning@equallogic.com>
1933
1934         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
1935         BT_FN_VOID_PTR_VAR.
1936         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
1937         * doc/extend.texi (__builtin_prefetch): Update documentation:
1938         first argument is now const void ptr.
1939
1940 2002-01-28  Kazu Hirata  <kazu@hxi.com>
1941
1942         * config/h8300/h8300-protos.h: Remove an unused prototype.
1943
1944 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
1945
1946         * toplev.c (lang_independent_init): Round up identifier size.
1947
1948 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
1949
1950         * config.gcc: Revert previous change.
1951
1952 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
1953
1954         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
1955
1956 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
1957
1958         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
1959         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
1960         other non-elf netbsd config frags.
1961         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
1962         collect2 will does that.
1963         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
1964         shared-lib frobbing will work.
1965
1966 2002-01-28  Kazu Hirata  <kazu@hxi.com>
1967
1968         * config/h8300/h8300.h: Fix formatting.
1969         * config/h8300/h8300.md: Likewise.
1970
1971 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
1972
1973         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
1974         the old, removed AAA_standards fix.
1975         * fixinc/fixincl.x: Rebuilt.
1976
1977 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
1978
1979         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
1980         atexit call in crtbegin, hooked in after call to frame_dummy;
1981         register EH before registering __fini__start.
1982
1983 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
1984
1985         * config/rs6000/altivec.h: Remove spurious semicolons.
1986
1987 2002-01-27  Kazu Hirata  <kazu@hxi.com>
1988
1989         * config/h8300/h8300.md: Replace dead bit extraction patterns
1990         with ones that work.
1991
1992 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1993
1994         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
1995         if not STRICT_ALIGNMENT.
1996         * rtl.h (MEM_ALIGN): Likewise.
1997
1998 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1999
2000         * doc/invoke.texi (-fdump-translation-unit): Revert this
2001         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2002
2003 2002-01-27  Kazu Hirata  <kazu@hxi.com>
2004
2005         * config/h8300/h8300.md (define_constants): New.
2006         (anonymous patterns) Use defined constants appropriately.
2007
2008 2002-01-27  Kazu Hirata  <kazu@hxi.com>
2009
2010         * config/h8300/h8300.c (function_arg): Remove redundant code.
2011
2012 2002-01-26  Richard Henderson  <rth@redhat.com>
2013
2014         * sched-deps.c (reg_pending_uses_head): New.
2015         (reg_pending_barrier): Rename from reg_pending_sets_all.
2016         (find_insn_list): Don't mark inline.
2017         (find_insn_mem_list): Remove.
2018         (add_dependence_list, add_dependence_list_and_free): New.
2019         (flush_pending_lists): Replace only_write param with separate
2020         for_read and for_write parameters.  Update all callers.  Use
2021         add_dependence_list_and_free.
2022         (sched_analyze_1): Do not add reg dependencies here; just set
2023         the pending bits.  Use add_dependence_list.
2024         (sched_analyze_2): Likewise.
2025         (sched_analyze_insn): Replace schedule_barrier_found with
2026         reg_pending_barrier.  Add all dependencies for pending reg
2027         uses, sets, and clobbers.
2028         (sched_analyze): Don't add reg dependencies for calls, just
2029         set pending bits.  Use regs_invalidated_by_call.  Treat
2030         sched_before_next_call as a normal list, not a fake insn.
2031         (init_deps): No funny init for sched_before_next_call.
2032         (free_deps): Free pending mems lists.  Don't zero reg_last.
2033         (init_deps_global): Init reg_pending_uses.
2034         (finish_deps_global): Free it.
2035         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
2036         (find_insn_mem_list): Remove.
2037         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
2038         (propagate_deps): Use them.  Zero temp mem lists.
2039
2040 2002-01-26  Richard Henderson  <rth@redhat.com>
2041
2042         * Makefile.in (CRTSTUFF_CFLAGS): New.
2043         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
2044         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
2045         crtstuff.c instead of alpha assembly version.
2046         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
2047         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
2048         not FORCE_{INIT,FINI}_SECTION_ALIGN.
2049         (__do_global_dtors_aux): Mark used.
2050         (frame_dummy, __do_global_ctors_aux): Mark used.
2051         (fini_dummy, init_dummy): Remove.
2052
2053         * config/alpha/crtbegin.asm: Remove file.
2054         * config/alpha/crtend.asm: Remove file.
2055         * config/alpha/t-crtbe: Remove file.
2056         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
2057         (LINK_EH_SPEC): New.
2058
2059         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
2060         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
2061         calling constructors.
2062         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
2063
2064         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
2065         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
2066         CRT_END_INIT_DUMMY hack.
2067         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
2068         FORCE_{INIT,FINI}_SECTION_ALIGN.
2069
2070         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
2071         FORCE_{INIT,FINI}_SECTION_ALIGN.
2072
2073         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
2074         invocation sequence.
2075         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
2076
2077         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
2078         (FORCE_CODE_SECTION_ALIGN): New.
2079
2080 2002-01-26  Richard Henderson  <rth@redhat.com>
2081
2082         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
2083
2084 2002-01-26  Richard Henderson  <rth@redhat.com>
2085
2086         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
2087         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
2088
2089 2002-01-26  Kazu Hirata  <kazu@hxi.com>
2090
2091         * config/h8300/h8300.md: Remove bit extraction patterns that
2092         cannot be triggered.
2093         Restrict each bit extraction pattern to a variant on which the
2094         pattern is tested.
2095
2096 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
2097
2098         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
2099
2100 2002-01-26  Kazu Hirata  <kazu@hxi.com>
2101
2102         * config/h8300/h8300.md: Remove bit test patterns that cannot
2103         be triggered.
2104         Restrict each bit test pattern to a variant on which the
2105         pattern is tested.
2106
2107 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2108
2109         * builtins.c (expand_builtin_strncat): Remove redundant check for
2110         INTEGER_CST.
2111
2112 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
2113
2114         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
2115         default setting.
2116         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
2117         existing setting.
2118
2119 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
2120
2121         * dbxout.c (dbxout_init): Use assemble_name rather than just
2122         stripping off the first character.
2123         (dbxout_source_file): Likewise.
2124
2125 2002-01-25  DJ Delorie  <dj@redhat.com>
2126
2127         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
2128         using rtx_equal_p, not by comparing pointers.
2129
2130 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
2131
2132         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
2133         for PIC_OFFSET_TABLE_REGNUM.
2134         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
2135
2136 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
2137
2138         * config.gcc (x86_64-*-freebsd*): New target.
2139         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
2140         value.
2141         (i[34567]86-*-freebsd*): Don't include svr4.h.
2142         * config/i386/freebsd64.h: New file.
2143
2144 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
2145
2146         * config/alpha/x-vms (version): Make static.
2147
2148         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
2149         in previous checkin.
2150
2151         * Makefile.in (install-headers-cp): New target.
2152         * config.gcc (alpha-dec-*vms*): Install headers with
2153         install-headers-cp
2154
2155 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
2156
2157         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
2158         avoid it's copies.
2159
2160 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2161
2162         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
2163         of compare_tree_int.
2164         (expand_builtin_strncat): Likewise.
2165         * c-decl.c (finish_struct): Use tree_low_cst.
2166         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
2167         * tree.c (compare_tree_int): Likewise.
2168
2169 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
2170
2171         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
2172         adjustments even if they are implemented by more than two insns.
2173
2174 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
2175
2176         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
2177         * df.h (struct ref): Kill B.
2178         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
2179
2180         * basic-block.h (PROP_EQUAL_NOTES): New flag.
2181         * flow.c (propagate_one_insn): Use it.
2182         (mark_used_regs): Handle NIL.
2183
2184 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
2185
2186         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
2187         to help folding.
2188
2189 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
2190
2191         * rs6000.md (prefetch): Make address V4SI mode so that the address
2192         is restricted to legitimate form for instruction.
2193
2194 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
2195
2196         * doc/install.texi (xtensa-*-elf): New target.
2197         (xtensa-*-linux*): New target.
2198         * doc/contrib.texi: Add myself.
2199
2200 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
2201
2202         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
2203         purpose register to hold an SImode (or smaller) value.
2204
2205 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
2206
2207         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
2208         registry only.
2209         * crtstuff.c: Likewise.
2210
2211 2002-01-25  Kazu Hirata  <kazu@hxi.com>
2212
2213         * config/h8300/h8300.md (negation patterns): Tighten
2214         predicates to register_operand.
2215
2216 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
2217
2218         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
2219         mode, not Pmode.
2220
2221         * builtins.c (expand_builtin_prefetch): Same.
2222
2223 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2224
2225         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
2226         modes.
2227
2228 2002-01-24  Kazu Hirata  <kazu@hxi.com>
2229
2230         * config/h8300/h8300.c (print_operand): Remove support for
2231         operand character 'A'.
2232         * config/h8300/h8300.md (three anonymous patterns): Replace
2233         operand character 'A' with either 'T' or 'S'.
2234
2235 2002-01-24  Kazu Hirata  <kazu@hxi.com>
2236
2237         * config/h8300/h8300.c (print_operand): Remove support for
2238         operand character 'U'.
2239
2240 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
2241
2242         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
2243
2244 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
2245
2246         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
2247         values to be assigned to the stack pointer.
2248
2249 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
2250
2251         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
2252         to const_double needs to be done right for big-endian systems.
2253
2254 2002-01-24  Jason Merrill  <jason@redhat.com>
2255
2256         PR c++/2432
2257         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
2258         to can_throw_internal.
2259
2260 2002-01-23  Richard Henderson  <rth@redhat.com>
2261
2262         * fold-const.c (fold): Change UINT_MAX test to check vs precision
2263         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
2264
2265 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2266
2267         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
2268         (symGOT2reg): Use them, then set as GOT value as unchanging.
2269         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
2270         as a temporary, if possible.
2271         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
2272         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
2273
2274 2002-01-23  Kazu Hirata  <kazu@hxi.com>
2275
2276         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
2277         accept to accept 0x80 as operands[2].
2278
2279 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2280
2281         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
2282
2283 2002-01-23  Richard Henderson  <rth@redhat.com>
2284
2285         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
2286
2287 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
2288
2289         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
2290         (parmlist_or_identifiers_1): Verify that only a parmlist follows
2291         an attribute.
2292
2293 2002-01-23  Richard Henderson  <rth@redhat.com>
2294
2295         * expr.c (move_by_pieces_1): Extend size before negation.
2296
2297         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
2298         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
2299         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
2300         * config/m68k/t-m68kelf: Likewise.
2301
2302 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
2303
2304         * config/xtensa/elf.h: New file.
2305         * config/xtensa/lib1funcs.asm: New file.
2306         * config/xtensa/lib2funcs.S: New file.
2307         * config/xtensa/linux.h: New file.
2308         * config/xtensa/t-xtensa: New file.
2309         * config/xtensa/xtensa-config.h: New file.
2310         * config/xtensa/xtensa-protos.h: New file.
2311         * config/xtensa/xtensa.c: New file.
2312         * config/xtensa/xtensa.h: New file.
2313         * config/xtensa/xtensa.md: New file.
2314         * config.gcc (xtensa-*-elf*): New target.
2315         (xtensa-*-linux*): New target.
2316         * cse.c (canon_hash): Compare rtx pointers instead of register
2317         numbers.  This is required for the Xtensa port.
2318         * integrate.c (copy_insn_list): Handle case where the static
2319         chain is in memory and the memory address has to be copied to
2320         a register.
2321         * doc/invoke.texi (Option Summary): Add Xtensa options.
2322         (Xtensa Options): New node.
2323         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
2324
2325 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
2326
2327         * diagnostic.c (internal_error): Do ICE suppression only
2328         when ENABLE_CHECKING is not defined.
2329
2330         * c-typeck.c (require_complete_type): Return error_mark_node
2331         if type is error_mark_node.
2332
2333 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
2334
2335         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
2336         -Os and issue a warning.
2337
2338 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
2339
2340         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
2341         current (lack of) need for host configuration by hand.
2342
2343         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
2344         references.  Documentation of some target macros moved from
2345         hostconfig.texi to tm.texi.
2346
2347 2002-01-23  Will Cohen  <wcohen@redhat.com>
2348
2349         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
2350         defined.
2351
2352 2002-01-23  Kazu Hirata  <kazu@hxi.com>
2353
2354         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
2355         operand[3].
2356
2357 2002-01-23  Jason Merrill  <jason@redhat.com>
2358
2359         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
2360
2361         * function.c (assign_parms): Don't put args of inline functions
2362         into registers when not optimizing.
2363
2364 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
2365
2366         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
2367         (prologue_use): New pattern.
2368         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
2369         preference to gen_rtx_USE.
2370         (thumb_expand_prologue): Use gen_prologue_use in preference to
2371         gen_rtx_USE.
2372         (thumb_expand_epilogue): Use gen_prologue_use in preference to
2373         gen_rtx_USE.
2374
2375 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
2376
2377         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
2378
2379 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
2380
2381         PR c/3504
2382         * doc/extend.texi: Correct documentation of __alignof__.
2383
2384 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
2385
2386         * params.h: Rename arguments of DEFPARAM so that it will be
2387         recognized as a translation keyword.
2388
2389 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
2390
2391         * extend.texi: Document altivec functions.
2392         Fix N-bit adjectives in X86 builtin documentation.
2393
2394 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
2395
2396         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
2397         auto_inc_dec values.
2398
2399 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
2400
2401         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
2402         after backslash.
2403         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
2404
2405 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
2406
2407         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
2408
2409 2002-01-22  Richard Henderson  <rth@redhat.com>
2410
2411         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
2412         copy_insn not copy_rtx.
2413
2414 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
2415
2416         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
2417         "nonzero" as that might add "1" bits.  Ensure "constop" is
2418         properly sign extened.
2419         (force_to_mode): Tweak for sign extended constop.
2420
2421 2002-01-22  Richard Henderson  <rth@redhat.com>
2422
2423         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
2424         for_each_rtx instead of assuming we're already looking at the MEM.
2425         (split_small_symbolic_mem_operand): Likewise.
2426         * config/alpha/alpha.h (PREDICATE_CODES): Update.
2427         * config/alpha/alpha.md (small symbolic memory splitters): Update.
2428
2429 2002-01-22  Richard Henderson  <rth@redhat.com>
2430
2431         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
2432         sequence number for the literal.
2433         (divmoddi_internal_er): Likewise.
2434
2435 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2436
2437         PR java/4972
2438         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
2439         in LIBICONV variable.
2440         * configure: Regenerated.
2441
2442 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
2443
2444         * dependence.c (build_def_use): Remove array_idx.
2445
2446         * dwarfout.c (last_filename): Remove.
2447         (output_compile_unit_die): Remove last_filename.
2448
2449 2002-01-22  Roger Sayle  <roger@eyesopen.com>
2450             Richard Henderson  <rth@redhat.com>
2451
2452         PR opt/3640
2453         * fold-const.c (fold): Optimize unsigned comparisons against
2454         UINT_MAX (and similar unsigned constants).
2455
2456 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
2457
2458         * Makefile.in (loop.o): Depend on OPTABS_H.
2459         * loop.c (emit_prefetch_instructions): Check the prefetch operand
2460         against the predicate.
2461
2462         PR target/5379
2463         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
2464         for the address operand.
2465
2466 2002-01-22  Richard Henderson  <rth@redhat.com>
2467
2468         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
2469
2470 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2471
2472         PR other/5450
2473         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
2474         preprocessor flags.
2475
2476 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
2477
2478         * config.gcc (x86_64-*-netbsd*): New target.
2479         * config/i386/netbsd64.h: New file.
2480
2481 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
2482
2483         * regrename.c (kill_value): Fix typo.
2484
2485 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
2486
2487         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2488
2489         * config/rs6000/rs6000.h: Same.
2490
2491         * function.c (instantiate_virtual_regs): Remove
2492         STARTING_FRAME_PHASE.
2493         (assign_stack_local_1): Same.
2494         Calculate frame phase.
2495
2496 2002-01-22  Nick Clifton  <nickc@redhat.com>
2497
2498         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
2499         variable declaration to outer scope in order to simplify
2500         future extensions.
2501         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
2502         arm_hard_regno_mode_ok.
2503         * config/arm/arm-protos.h: Add a prototype for
2504         arm_hard_regno_mode_ok.
2505         * config/arm/arm.c (soft_df_operand): Remove now redundant
2506         check for DImode values using IP_REGNUM.
2507         (nonimmediate_soft_df_operand): Remove now redundant check for
2508         DImode values using IP_REGNUM.
2509         (arm_hard_regno_mode_ok): New function. New check: make sure
2510         that DImode values are not stored in IP_REGNUM.
2511
2512         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
2513         note with a USE.
2514         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
2515
2516 2002-01-22  Jason Merrill  <jason@redhat.com>
2517
2518         * c-semantics.c (genrtl_compound_stmt): Only check nesting
2519         consistency if this COMPOUND_STMT is scoped.
2520
2521 2002-01-22  Kazu Hirata  <kazu@hxi.com>
2522
2523         * predict.c: Fix formatting.
2524         * print-tree.c: Likewise.
2525         * protoize.c: Likewise.
2526         * real.h: Likewise.
2527         * rtl.h: Likewise.
2528         * sbitmap.h: Likewise.
2529         * scan.c: Likewise.
2530         * sched-deps.c: Likewise.
2531         * sched-vis.c: Likewise.
2532         * sdbout.c: Likewise.
2533         * sibcall.c: Likewise.
2534         * ssa.c: Likewise.
2535         * ssa-ccp.c: Likewise.
2536         * ssa-dce.c: Likewise.
2537         * stmt.c: Likewise.
2538         * stor-layout.c: Likewise.
2539         * system.h: Likewise.
2540
2541 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2542
2543         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
2544         if fits in bounds of base type.
2545
2546         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
2547         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
2548         (add_bound_info, default): If can't find a context, make a
2549         SAVE_EXPR.
2550         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
2551
2552 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
2553
2554         * c-typeck.c (parser_build_binary_op): If result from
2555         build_binary_op is ERROR_MARK just return error_mark_node without
2556         further processing.
2557
2558 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
2559
2560         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
2561         Split a.out-specific bits into...
2562         * config/netbsd-aout.h: ...this.
2563         * config/netbsd-elf.h: New file.
2564         * config/alpha/netbsd-elf.h: Remove.
2565         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
2566         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
2567         (STARTFILE_SPEC): Remove redundant definition.
2568         (ENDFILE_SPEC): Likewise.
2569         (LINK_SPEC): Likewise.
2570         (CPP_SPEC): Likewise.
2571         (ASM_SPEC): Likewise.
2572         (LIB_SPEC): Likewise.
2573         (SWITCH_TAKES_ARG): Likewise.
2574         (TARGET_MEM_FUNCTIONS): Likewise.
2575         (CPP_PREDEFINES): Redefine.
2576         (ASM_FINAL_SPEC): Remove redefinition.
2577         (ASM_COMMENT_START): Redefine.
2578         (FUNCTION_PROFILER): Define.
2579         (TARGET_VERSION): Redefine.
2580         Comment and formatting cleanup.
2581         * config/i386/netbsd.h: Include <netbsd-aout.h>.
2582         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
2583         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
2584         big- or little-endian.
2585         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
2586         * config.gcc (*-*-netbsd*): Add definitions common to all
2587         NetBSD configs.
2588         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
2589         gnu_ld definitions.  Add netbsd-elf.h to and remove
2590         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
2591         tmake_file, and don't lose previous tmake_file contents.
2592         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
2593         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
2594         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
2595         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
2596         (mipsel-*-netbsd*): Rename this to...
2597         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
2598         mips/little.h to tm_file for mips*el-*.
2599         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
2600         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
2601         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
2602
2603 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2604
2605         * pa-protos.h (reg_before_reload_operand): New function prototype.
2606         * pa.c (reg_before_reload_operand): New function implementation.
2607         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
2608         contraints to "*m".
2609
2610 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2611
2612         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
2613
2614 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2615
2616         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
2617         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
2618         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
2619         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
2620         (ENDFILE_SPEC): Undefine.
2621         (STARTFILE_SPEC): Redefine for PA.
2622
2623 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2624
2625         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
2626
2627 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
2628
2629         * config.gcc: Add entries to supported PowerPC --with-cpu
2630         types.
2631
2632 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
2633
2634         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
2635         true for 64-bit mode only SSE registers in 32-bit mode.
2636
2637 2002-01-21  Kazu Hirata  <kazu@hxi.com>
2638
2639         * unwind-dw2.c: Fix formatting.
2640         * unwind-dw2-fde.c: Likewise.
2641         * unwind-dw2-fde.h: Likewise.
2642         * unwind-pe.h: Likewise.
2643         * varasm.c: Likewise.
2644         * varray.h: Likewise.
2645
2646 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
2647
2648         Remove workaround for register stack overwrite bug in mmix.
2649         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
2650         support for TARGET_REG_STACK_FILL_BUG.
2651         * config/mmix/mmix.h: Remove member has_call_without_parameters.
2652         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
2653         Delete.
2654         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
2655         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
2656         -mno-reg-stack-fill-bug-workaround.
2657         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
2658         machine member has_call_without_parameters.
2659         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
2660         -mreg-stack-fill-bug-workaround and
2661         -mno-reg-stack-fill-bug-workaround.
2662         (MMIX Options): Ditto.
2663
2664 2002-01-21  Kazu Hirata  <kazu@hxi.com>
2665
2666         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
2667         as appropriate.
2668         Remove redundant code.
2669
2670 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2671
2672         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
2673         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
2674         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
2675         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
2676         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
2677         out target macro definitions and non-target-specific comments
2678         mostly taken from old versions of the manual.
2679
2680 2002-01-20  Kazu Hirata  <kazu@hxi.com>
2681
2682         * config/h8300/h8300.h: Fix comment formatting.
2683         * config/ia64/aix.h: Likewise.
2684         * config/ia64/ia64-protos.h: Likewise.
2685         * config/ia64/ia64.c: Likewise.
2686         * config/ia64/ia64.h: Likewise.
2687         * config/ia64/ia64intrin.h: Likewise.
2688         * config/ia64/linux.h: Likewise.
2689         * config/ia64/unwind-aix.c: Likewise.
2690         * config/ia64/unwind-ia64.c: Likewise.
2691
2692 2002-01-20  Kazu Hirata  <kazu@hxi.com>
2693
2694         * config/h8300/h8300.c: Revise comments about shift code.
2695
2696 2002-01-20  Kazu Hirata  <kazu@hxi.com>
2697
2698         * config/h8300/h8300.c (function_arg): Update a comment.
2699
2700 2002-01-20  Kazu Hirata  <kazu@hxi.com>
2701
2702         * config/h8300/h8300.md: Update the comments at the beginning
2703         of the file.
2704
2705 2002-01-20  Kazu Hirata  <kazu@hxi.com>
2706
2707         * config/i370/i370.c: Fix comment formatting.
2708         * config/i370/i370.h: Likewise.
2709         * config/i370/i370.md: Likewise.
2710         * config/i370/linux.h: Likewise.
2711
2712 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2713
2714         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
2715
2716         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
2717         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
2718         in incomplete case.
2719
2720 2002-01-20  Graham Stott  <grahams@redhat.com>
2721
2722         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
2723
2724 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2725
2726         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
2727
2728 2002-01-19  Tom Rix  <trix@redhat.com>
2729
2730         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
2731
2732 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
2733
2734         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
2735
2736         * function.c (assign_stack_local_1): Adjust x_frame_offset with
2737         STARTING_FRAME_PHASE.
2738         (STARTING_FRAME_PHASE): New.
2739         (instantiate_virtual_regs): Check saneness of
2740         STARTING_FRAME_PHASE.
2741
2742         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
2743
2744 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
2745
2746         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
2747
2748 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2749
2750         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
2751         be used for bootstrapping GCC 3.0.
2752
2753 2002-01-18  Kazu Hirata  <kazu@hxi.com>
2754
2755         * config/h8300/h8300.md: Fix an insn length.
2756
2757 2002-01-18  Kazu Hirata  <kazu@hxi.com>
2758
2759         * bitmap.h: Fix comment formatting.
2760         * combine.c: Likewise.
2761         * cppfiles.c: Likewise.
2762         * c-pragma.h: Likewise.
2763         * c-typeck.c: Likewise.
2764         * df.c: Likewise.
2765         * dwarf2out.c: Likewise.
2766         * function.c: Likewise.
2767         * gcc.c: Likewise.
2768         * genattrtab.c: Likewise.
2769         * gthr-win32.h: Likewise.
2770         * haifa-sched.c: Likewise.
2771         * predict.c: Likewise.
2772         * rtlanal.c: Likewise.
2773         * rtl.h: Likewise.
2774         * unwind-dw2-fde.h: Likewise.
2775         * unwind-pe.h: Likewise.
2776         * vmsdbgout.c: Likewise.
2777
2778 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2779
2780         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
2781         if type_required and passed decl.
2782
2783 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
2784
2785         * config.gcc (cpu_type): Include altivec.h in powerpc
2786         extra_headers.
2787         Same for darwin.
2788
2789         * config/rs6000/altivec.h: New.
2790
2791 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
2792
2793         * doc/install.texi (*-ibm-aix*): Update assembler and exception
2794         handling information.
2795         * doc/trouble.texi (Interoperation): Add libstdc++ information
2796         for AIX.
2797         (Misunderstandings): Add template instantiation and static template
2798         member information for AIX.
2799
2800 2002-01-17  Jason Merrill  <jason@redhat.com>
2801
2802         * dbxout.c (dbxout_type): Support const and volatile.
2803
2804         * except.c (add_partial_entry): Remove backwards compatibility code.
2805         (end_protect_partials): Likewise.
2806
2807 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
2808
2809         * config/ia64/ia64.md (prologue_use): New.
2810         * config/ia64/ia64.c (ia64_expand_prologue): Use
2811         gen_prologue_use instead of gen_rtx_USE.
2812         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
2813         as CODE_FOR_pred_rel_mutex.
2814         (ia64_sched_reorder2): Likewise.
2815
2816 2002-01-16  Eric Christopher  <echristo@redhat.com>
2817
2818         * config/mips/r3900.h: Reformat.
2819         (SUBTARGET_CPP_SIZE_SPEC): Remove.
2820         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
2821         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
2822         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
2823         * config/mips/t-elf: Remove mips3 multilib.
2824
2825 2002-01-16  H.J. Lu <hjl@gnu.org>
2826
2827         * config/mips/linux.h: Include "mips/abi64.h".
2828
2829 2002-01-16  H.J. Lu <hjl@gnu.org>
2830
2831         * config/mips/t-linux: New.
2832
2833         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
2834
2835         * config/mips/linux.h: Don't include "gofast.h".
2836         (INIT_SUBTARGET_OPTABS): Removed.
2837
2838 2002-01-16  Kazu Hirata  <kazu@hxi.com>
2839
2840         * config/h8300/h8300-protos.h: Replace emit_a_shift with
2841         output_a_shift.
2842         * config/h8300/h8300.c: Likewise.
2843         * config/h8300/h8300.md: Likewise.
2844
2845 2002-01-16  Kazu Hirata  <kazu@hxi.com>
2846
2847         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
2848         spaces after an opcode name.
2849         (pushqi1_h8300hs): Likewise.
2850         (pushhi1_h8300hs): Likewise.
2851
2852 2002-01-16  Kazu Hirata  <kazu@hxi.com>
2853
2854         * doc/extend.texi: Replace "option" with "attribute"
2855         appropriately.
2856
2857 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
2858
2859         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
2860         (and:DI () (const_int -8)).
2861         (split_small_symbolic_mem_operand): Split
2862         (mem (and:DI () (const_int -8)).
2863
2864 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
2865
2866         PR target/5309:
2867         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
2868         same way as TYPE_IMUL.
2869         (ultrasparc_sched_reorder): Likewise.
2870         * config/sparc/sparc.md (type): Add comment to update
2871         ultrasparc_sched_reorder when making changes.
2872
2873 2002-01-16  Kazu Hirata  <kazu@hxi.com>
2874
2875         * doc/invoke.texi: Change the dump file name of block
2876         reordering pass from 28.bbro to 29.bbro.
2877         Mention -dk option.
2878
2879 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
2880
2881         * i386.md (minsf splitter): Fix pasto.
2882
2883 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
2884
2885         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
2886         to frame pointer initialisation instruction.
2887         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
2888         initialisation instruction.
2889         (soft_df_operand): Do not accept the IP register.
2890         (nonimmediate_soft_df_operand): Do not accept the IP register.
2891
2892 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
2893
2894         PR target/5357:
2895         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
2896         MASK_V8 being both set.
2897
2898 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
2899
2900         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
2901         insn for GOT register; add REG_MAYBE_DEAD notes instead.
2902         config/s390/s390.md (call, call_value): Add GOT register to
2903         CALL_INSN_FUNCTION_USAGE where needed.
2904         (call_exp, call_value_exp): New.
2905
2906 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
2907
2908         * config/arm/arm.c: General formatting tidy up.
2909
2910 2002-01-16  Graham Stott  <grahams@redhat.com>
2911
2912         * calls.c (try_to_integrate): Use "(size_t)" intermediate
2913         cast and when casting an integer literal to "rtx" pointer.
2914         (expand_call): Likewise.
2915         * flow.c (try_pre_increment): Likewise.
2916         (find_use_as_address): Likewise.
2917         * integrate.c (expand_iline_function): Likewise.
2918         * regmove.c (try_auto_increment): Likewise.
2919
2920 2002-01-16  Graham Stott  <grahams@redhat.com>
2921
2922         * sched-rgn.c (passed): Use sbitmap_free.
2923         (header): Likewise.
2924         (inner): Likewise.
2925         (in_queue): Likewise.
2926         (in_stack): Likewise.
2927
2928 2002-01-15  Eric Christopher  <echristo@redhat.com>
2929
2930         * flow.c (propagate_one_insn): Change to use fatal_insn.
2931
2932 2002-01-15  Kazu Hirata  <kazu@hxi.com>
2933
2934         * expmed.c (extract_fixed_bit_field): Remove unused code.
2935         * system.h: Poison SLOW_ZERO_EXTEND.
2936         * doc/tm.texi: Remove.
2937         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
2938         * config/arm/arm.h: Likewise.
2939         * config/avr/avr.h: Likewise.
2940         * config/clipper/clipper.h: Likewise.
2941         * config/convex/convex.h: Likewise.
2942         * config/d30v/d30v.h: Likewise.
2943         * config/dsp16xx/dsp16xx.h: Likewise.
2944         * config/elxsi/elxsi.h: Likewise.
2945         * config/fr30/fr30.h: Likewise.
2946         * config/h8300/h8300.h: Likewise.
2947         * config/i370/i370.h: Likewise.
2948         * config/i386/i386.h: Likewise.
2949         * config/m68k/m68k.h: Likewise.
2950         * config/mips/mips.h: Likewise.
2951         * config/ns32k/ns32k.h: Likewise.
2952         * config/pdp11/pdp11.h: Likewise.
2953         * config/pj/pj.h: Likewise.
2954         * config/s390/s390.h: Likewise.
2955         * config/sh/sh.h: Likewise.
2956         * config/stormy16/stormy16.h: Likewise.
2957         * config/v850/v850.h: Likewise.
2958         * config/vax/vax.h: Likewise.
2959         * config/we32k/we32k.h: Likewise.
2960
2961 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
2962
2963         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
2964         (altivec_lvsl): Change constraint to b.
2965         (altivec_lvsr): Same.
2966         (altivec_lvebx): Same.
2967         (altivec_lvehx): Same.
2968         (altivec_lvewx): Same.
2969         (altivec_lvxl): Same.
2970         (altivec_lvx): Same.
2971         (altivec_stvx): Add parallel.
2972         (altivec_stvxl): Same.
2973         (altivec_stvehx): Same.
2974         (altivec_stvebx): Same.
2975         (altivec_stvebx): Same.
2976
2977 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
2978
2979         * config.gcc: Change altivec.h to altivec-defs.h.
2980
2981         * config/rs6000/altivec.h: Delete.
2982
2983         * config/rs6000/altivec-defs.h: Add.
2984
2985 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2986
2987         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
2988         and UMOD modes.
2989
2990         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
2991         less than or equal to eight bytes.
2992
2993         * vax.md (andsi3): Remove constraints and change SET destination
2994         operand type to nonimmediate_operand.
2995         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
2996         when it is a CONST_INT.
2997
2998 2002-01-15  Jason Merrill  <jason@redhat.com>
2999
3000         * c-common.def (FILE_STMT): New code.
3001         * c-common.c (statement_code_p): It's a statement.
3002         * c-common.h (stmt_tree_s): Add x_last_filename.
3003         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
3004         (last_expr_filename): New macro.
3005         * c-semantics.c (begin_stmt_tree): Initialize it.
3006         (add_stmt): If the filename changed, also insert a
3007         FILE_STMT.
3008         (expand_stmt): Handle seeing one.
3009
3010 2002-01-15  Eric Christopher  <echristo@redhat.com>
3011
3012         * flow.c (propagate_one_insn): Add error message and print out
3013         insn for debugging.
3014
3015 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
3016
3017         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
3018         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
3019         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
3020         TRAMPOLINE_ALIGNMENT.
3021         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
3022         to be in bits.
3023         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
3024         PCC_BITFIELD_TYPE_MATTERS.
3025         * config/interix.h (STDC_VALUE): Remove.  Use
3026         STDC_0_IN_SYSTEM_HEADERS.
3027         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
3028         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
3029         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
3030
3031 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3032
3033         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
3034         not work on this platform currently.
3035
3036 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
3037
3038         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
3039         readonly_warning in _().
3040
3041 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
3042
3043         * gcc.c (delete_if_ordinary): Backout previous change.
3044
3045 2002-01-15  Kazu Hirata  <kazu@hxi.com>
3046
3047         * config/h8300/h8300.c (print_operand): Remove support for
3048         unused operand characters.
3049
3050         * read-rtl.c: Fix formatting.
3051         * real.c: Likewise.
3052         * recog.c: Likewise.
3053         * regclass.c: Likewise.
3054         * regmove.c: Likewise.
3055         * reg-stack.c: Likewise.
3056         * reload1.c: Likewise.
3057         * rtlanal.c: Likewise.
3058
3059 2002-01-15  Kazu Hirata  <kazu@hxi.com>
3060
3061         * config/i386/i386.c: Fix formatting.
3062
3063 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
3064
3065         * c-typeck.c (process_init_element): Don't save_expr
3066         COMPOUND_LITERAL_EXPR if just its initializer will be used.
3067
3068 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
3069
3070         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
3071         emit optional traceback table if optimize_size or TARGET_ELF.
3072         * config/rs6000/rs6000.md (prefetch): New.
3073
3074 2002-01-15  Andreas Jaeger  <aj@suse.de>
3075
3076         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
3077
3078 2002-01-15  Kazu Hirata  <kazu@hxi.com>
3079
3080         * mips-tfile.c: Fix formatting.
3081
3082 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
3083
3084         * unroll.c (final_reg_note_copy): Fix previous commit.
3085
3086 2002-01-14  Kazu Hirata  <kazu@hxi.com>
3087
3088         * config/h8300/h8300-protos.h: Remove the prototype for
3089         eq_operator.
3090         * config/h8300/h8300.c (eq_operator): Remove.
3091
3092 2002-01-14  Richard Henderson  <rth@redhat.com>
3093
3094         * config/i386/i386.md (prefetch): Tidy.
3095         (prefetch_3dnow): Fix locality operand.
3096
3097 2002-01-14  Richard Henderson  <rth@redhat.com>
3098
3099         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
3100         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
3101
3102 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
3103
3104         * reload1.c (reload_combine): Pass reg_sum replacement through
3105         copy_rtx in loop performing multiple changes.
3106
3107 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
3108
3109         * except.c (remove_unreachable_regions): New.
3110         (free_eh_status): Clear exception_handler_labels.
3111         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
3112         (find_exception_handler_labels): Don't add the same label more than
3113         once.
3114         (remove_exception_handler_label): Don't die if
3115         find_exception_handler_labels hasn't been called for the current
3116         function yet.
3117
3118 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
3119
3120         * toplev.c (rest_of_compilation): Rebuild jump labels after
3121         gcse.
3122
3123 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
3124
3125         * doc/extend.texi: Move documentation of X86 built-in functions
3126         here.
3127         * doc/invoke.texi: From here.
3128         * doc/sourcebuild.texi: Document location of documentation for
3129         machine built-in functions.
3130
3131 2002-01-13  Christopher Faylor  <cgf@redhat.com>
3132
3133         * cppfiles.c (TEST_THRESHOLD): New macro.
3134         (SHOULD_MMAP): Ditto.
3135         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
3136         be used.
3137
3138 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
3139
3140         * unroll.c (final_reg_note_copy): Properly handle
3141         REG_LABEL
3142         (unroll_loops): Fix LOOP_CONDITION heuristics.
3143
3144 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
3145
3146         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
3147         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
3148
3149 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
3150
3151         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
3152         threaded loop.
3153
3154 2002-01-14  Tom Rix  <trix@redhat.com>
3155
3156         * config/rs6000/rs6000.md: Fix typo with sradi.
3157
3158 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
3159
3160         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
3161         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
3162         (clrstrdi, clrstrsi): Adapt callers.
3163
3164         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
3165
3166         (movti splitter): Never use register 0 as base register.
3167
3168 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
3169
3170         * combine.c (simplify_shift_const): Always generate new rtx
3171         for shift expression instead of reusing given expression.
3172
3173 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3174
3175         * config/alpha/alpha.c (alpha_expand_mov): Don't call
3176         alpha_legitimize_address unless mode is Pmode.
3177
3178 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
3179
3180         * doc/md.texi (Modifiers): Document the '*' constraint for the
3181         user.
3182
3183         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
3184         * doc/extend.texi (Function Attributes): 'interrupt' is valid
3185         for xstormy16 too.
3186
3187 2002-01-13  Richard Henderson  <rth@redhat.com>
3188
3189         * reload.c (find_reloads): Use a hard reg destination as reload reg
3190         for an input reload of the source.
3191
3192 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3193
3194         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
3195         more generic.
3196
3197 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
3198
3199         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
3200         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
3201
3202         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
3203
3204 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3205
3206         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
3207
3208 2002-01-12  Tom Rix  <trix@redhat.com>
3209
3210         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
3211         TARGET_POWERPC64.
3212
3213 2002-01-12  Richard Henderson  <rth@redhat.com>
3214
3215         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
3216
3217         * doc/invoke.texi: Update Alpha options.
3218
3219         * doc/invoke.texi: Update i386 built-in function lists.
3220
3221 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
3222
3223         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
3224         referencing outside.
3225
3226 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3227
3228         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
3229         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
3230         offsets, and change line folding.
3231         * optabs.c (expand_binop): Remove warnings.
3232         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
3233
3234 2002-01-12  Graham Stott <grahams@redhat.com>
3235
3236         * attribs.c (handle_deprecated_attribute): constify WHAT.
3237         * diagnostic.c (warn_deprecated_use): Add braces, fixes
3238         dangling else warning and constify WHAT.
3239         * except.h (struct function, struct inline_remap): Move
3240         struct tag forward defs before all prototypes.
3241         (duplicate_eh_regions): Whitespace.
3242
3243 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
3244
3245         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
3246         MODE_BASE_REG_CLASS.
3247         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
3248
3249 2002-01-12  Richard Henderson  <rth@redhat.com>
3250
3251         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
3252         (ix86_expand_vector_move): New.
3253         (bdesc_2arg): Remove andps, andnps, orps, xorps.
3254         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
3255         Remove old prefetch builtins.  Special case the logicals removed above.
3256         (ix86_expand_builtin): Likewise.
3257         (safe_vector_operand): Use V4SFmode, not TImode.
3258         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
3259         (ix86_expand_timode_binop_builtin): New.
3260         * config/i386/i386-protos.h: Update.
3261         * config/i386/i386.h (enum ix86_builtins): Update.
3262         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
3263         Use ix86_expand_vector_move in vector move expanders.
3264         (movti_internal, movti_rex64): Add xorps alternative.
3265         (sse_clrv4sf): Rename and adjust from sse_clrti.
3266         (prefetch): Don't work so hard.
3267         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
3268         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
3269         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
3270
3271 2002-01-11  Richard Henderson  <rth@redhat.com>
3272
3273         * config/i386/mmintrin.h: New file.
3274         * config/i386/xmmintrin.h: New file.
3275         * config.gcc (i?86-*-*): Add extra_headers.
3276         * simplify-rtx.c (simplify_unary_operation): Handle saturating
3277         truncation codes.
3278         (simplify_binary_operation): Handle saturating arithmetic codes.
3279         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
3280         not the lowpart subreg.
3281         (ix86_expand_builtin): Return a TImode dummy register instead of 0
3282         on error.
3283         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
3284
3285 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3286
3287         * conflict.c (conflict_graph_compute): Free regsets when finished.
3288         * ssa.c (compute_coalesced_reg_partition): Likewise.
3289
3290 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3291
3292         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
3293         every where we allocate a register.
3294
3295 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3296
3297         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
3298         * lcm.c (compute_earliest, compute_farthest): Likewise.
3299
3300 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
3301
3302         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
3303
3304 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
3305
3306         * doc/rtl.texi (Insns): Fix 2 typos.
3307
3308 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3309
3310         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
3311         options.  Use @table @gcctabopt for MMIX options.  Add index
3312         entries for MMIX options.  Start new paragraph with first
3313         heading of the machine-dependent options.
3314
3315 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3316
3317         PR other/5299
3318         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
3319         * combine.c (force_to_mode): Same.
3320         * reload1.c (clear_reload_reg_in_use): Same.
3321
3322 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
3323
3324         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
3325         and 'subtargets'.
3326
3327 2002-01-11  Andreas Jaeger  <aj@suse.de>,
3328             Brad Lucier <lucier@math.purdue.edu>
3329
3330         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
3331         mcpu.
3332
3333 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
3334
3335         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
3336         Protect with IN_LIBGCC.
3337         (LINK_EH_SPEC): Add required trailing space.
3338
3339 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
3340
3341         * c-tree.h: Move function declarations so that they are listed
3342         under the filename which contains them.
3343         (check_identifier, finish_decl_top_level,
3344         lookup_name_current_level_global, shadow_record_fields): Remove.
3345
3346 2002-01-11  Andreas Jaeger  <aj@suse.de>
3347
3348         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
3349         march.
3350
3351 2002-01-10  Richard Henderson  <rth@redhat.com>
3352
3353         * config/alpha/alpha.c (print_operand): Add 'J'.
3354         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
3355         new operand with the sequence number for the lituse.  When splitting
3356         the insns, use gen_movdi_er_high_g and generate a sequence number.
3357         (gen_movdi_er_high_g): Print the sequence number if non-zero.
3358
3359 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
3360
3361         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
3362         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
3363         stvxl.
3364         (altivec_expand_builtin): Same.
3365         (altivec_expand_stv_builtin): New.
3366
3367         * config/rs6000/rs6000.h (rs6000_builtins): Same.
3368
3369         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
3370         ("altivec_lvehx"): New.
3371         ("altivec_lvewx"): New.
3372         ("altivec_lvxl"): New.
3373         ("altivec_lvx"): New.
3374         ("altivec_stvx"): New.
3375         ("altivec_stvebx"): New.
3376         ("altivec_stvehx"): New.
3377         ("altivec_stvewx"): New.
3378         ("altivec_stvxl"): New.
3379
3380 2002-01-10  Richard Henderson  <rth@redhat.com>
3381
3382         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
3383         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
3384         care not to delete instructions twice.
3385
3386 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
3387
3388         * toplev.c: Don't declare environ (it's not used anywhere).
3389         * configure.in: Don't check for declaration of environ.
3390         * config/i386/xm-mingw32.h: Don't #define environ.
3391         * config.in, configure: Regenerate.
3392
3393 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
3394
3395         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
3396         * configure: Regenerate.
3397
3398         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
3399         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
3400         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
3401         alpha/xm-vms.h.
3402         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
3403         LIMITS_H_TEST here, not in m68k/x-next.
3404         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
3405         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
3406
3407         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
3408         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
3409         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
3410
3411         * config/i386/x-djgpp: Renamed i386/t-djgpp.
3412         * config/m88k/x-dolph: Renamed m88k/t-dolph.
3413         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
3414         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
3415         replacement of quadlib.asm with quadlib.c.
3416
3417         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
3418         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
3419         config/rs6000/xm-beos.h: Delete file.
3420
3421         * config.gcc: Update to match above changes.
3422
3423 2002-01-10  Kazu Hirata  <kazu@hxi.com>
3424
3425         * config/h8300/h8300.h: Fix comment typos.
3426         * config/h8300/h8300.md: Likewise.
3427         * config/h8300/lib1funcs.asm: Likewise.
3428
3429 2002-01-10  Dale Johannesen  <dalej@apple.com>
3430
3431         PR optimization/5269
3432         * unroll.c (precondition_loop_p): Make *increment be the correct
3433         sign when n_iterations known, to avoid confusing caller.
3434
3435 2002-01-10  Kazu Hirata  <kazu@hxi.com>
3436
3437         * doc/extend.texi (deprecated): Fix a typo.
3438
3439 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
3440
3441         * basic-block.h (update_br_prob_note): Declare.
3442         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
3443         (try_forward_edges): Care negative frequencies and update note.
3444         (outgoing_edges_match): Tweek conditional merging heuristics.
3445         (try_crossjump_to_edge): use update_br_prob_note.
3446         * cfglayout.c (fixup_reorder_chain): Likewise.
3447         * cfrtl.c (update_br_prob_note): New.
3448         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
3449
3450         * i386.c (ix86_decompose_address): Return -1 if address contains
3451         shift.
3452         (legitimate_address_p): Require ix86_decompose_address to return 1.
3453
3454         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
3455         (cprop_insn): Likewise.
3456
3457 2002-01-10  Kazu Hirata  <kazu@hxi.com>
3458
3459         * toplev.c: Fix formatting.
3460         * tree.c: Likewise.
3461         * tree-dump.c: Likewise.
3462         * unroll.c: Likewise.
3463         * unwind-dw2.c: Likewise.
3464         * unwind-dw2-fde.c: Likewise.
3465         * unwind-dw2-fde-glibc.c: Likewise.
3466         * unwind-sjlj.c: Likewise.
3467
3468 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
3469
3470         * doc/invoke.texi: Document PDP-11 options.
3471
3472 2002-01-10  Kazu Hirata  <kazu@hxi.com>
3473
3474         * config/h8300/h8300.h: Fix formatting.
3475
3476 2002-01-10  Ira Ruben   <ira@apple.com>
3477
3478         Add __attribute__ ((deprecated)).
3479         * extend.texi: Document __attribute__ ((deprecated)).
3480         * invoke.texi: Document -Wno-deprecated-declarations.
3481         * testsuite/g++.dg/other/deprecated.C: New C++ test.
3482         * testsuite/gcc.dg/deprecated.c: New C test.
3483         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
3484         (c_common_attribute_table): Add "deprecated" entry.
3485         (handle_deprecated_attribute): New function.
3486         * c-decl.c (deprecated_states): New enum.
3487         deprecated_state: State of "deprecated" handling.
3488         (start_decl): Set deprecated_state based on attributes.
3489         (grokdeclarator): Test for deprecated uses, propagate attribute.
3490         * c-typeck.c (build_component_ref): Test for deprecated fields.
3491         (build_external_ref): Test for deprecated primaries.
3492         * diagnostic.c (warn_deprecated_use) New function to issue
3493         warnings about __attribute__ ((depricated)) references.
3494         * flags.h (warn_deprecated_decl): Extern declared for
3495         -W[no-]deprecated-declarations option.
3496         * print-tree.c (print_node): Show deprecated flag status.
3497         * toplev.c (warn_deprecated_decl): Defined.
3498         (W_options): Added "deprecated-declaration".
3499         * toplev.h (warn_deprecated_use): Extern declared.
3500         * tree.h (struct tree_common): Define deprecated_flag.
3501         (TREE_DEPRECATED): New macro to access flag.
3502         * cp/call.c (build_call): Test for deprecated calls.
3503         * cp/class.c (add_implicitly_declared_members): Set global
3504         flag to tell grokdeclarator to not issue deprecated warnings.
3505         * cp/cp-tree.h: Add extern for adding_implicit_members.
3506         * cp/decl.c (deprecated_states): New enum.
3507         (start_decl): Set deprecated_state based on attributes.
3508         (grokdeclarator): Test for deprecated uses, propagate attribute.
3509         * cp/lex.c (do_identifier): Test for deprecated primaries.
3510         * cp/typeck.c (build_component_ref): Test for deprecated fields.
3511
3512 2002-01-10  Ira Ruben   <ira@apple.com>
3513
3514         Fix to assign attributes to inline member functions.
3515         * cp/decl.c (start_method): Handle attrlist.
3516
3517 2002-01-10  Kazu Hirata  <kazu@hxi.com>
3518
3519         * combine.c (expand_field_assignment): Use subreg_lsb().
3520
3521 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
3522
3523         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
3524         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
3525         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
3526         Recurse for any operand of AND as long as constant is non-zero.
3527
3528 2002-01-10  Kazu Hirata  <kazu@hxi.com>
3529
3530         * config/h8300/h8300.md: Remove constraints from expanders.
3531
3532 2002-01-10  Kazu Hirata  <kazu@hxi.com>
3533
3534         * varasm.c: Fix formatting.
3535         * varray.c: Likewise.
3536         * vmsdbgout.c: Likewise.
3537         * xcoffout.c: Likewise.
3538
3539 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3540
3541         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
3542         update edge probabilities to match.
3543
3544 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
3545
3546         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
3547         dependencies.
3548         * doc/languages.texi, doc/sourcebuild.texi: New files.
3549         * doc/configfiles.texi: Make a subsubsection.  Update.
3550         * doc/configterms.texi: Add @node.  Remove warning that this isn't
3551         instructions for building GCC.
3552         * doc/makefile.texi: Make a subsection.
3553         * doc/gccint.texi: Update.
3554
3555 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
3556
3557         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
3558
3559 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
3560
3561         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
3562
3563 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
3564
3565         * optabs.c (expand_fix): Look for wider integer modes first.
3566
3567         * i386.md (mov?f): Avoid the fake const double trick for medium
3568         memory model.
3569         (min?f*/max?f*): Prohibit memory operands for i387 variant.
3570         (fop_df_4): Disable for SSE compilation.
3571
3572 2002-01-10  Graham Stott  <grahams@redhat.com>
3573
3574         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
3575         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
3576
3577 2002-01-10  Richard Henderson  <rth@redhat.com>
3578
3579         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
3580
3581 2002-01-10  Richard Henderson  <rth@redhat.com>
3582
3583         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
3584         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
3585
3586 2002-01-10  Kazu Hirata  <kazu@hxi.com>
3587
3588         * combine.c (can_combine_p): Fix a comment typo.
3589
3590 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
3591
3592         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
3593         empty list correctly.  Change loop index $t to $f for
3594         consistency with rest of Makefile.
3595
3596 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
3597
3598         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
3599         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
3600
3601         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
3602         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
3603         (altivec_init_builtins): Same.
3604         (altivec_expand_unop_builtin): Return NULL_RTX on error.
3605         (altivec_expand_binop_builtin): Same.
3606         (altivec_expand_ternop_builtin): Same.
3607         (bdesc_dst): New.
3608
3609         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
3610         ("altivec_vctuxs"): Fix typo.
3611         ("altivec_vnmsubfp"): Same.
3612         ("altivec_dssall"): New.
3613         ("altivec_mfvscr"): New.
3614         ("altivec_dss"): New.
3615         ("altivec_lvsl"): New.
3616         ("altivec_lvsr"): New.
3617         ("altivec_dstt"): New.
3618         ("altivec_dstst"): New.
3619         ("altivec_dststt"): New.
3620         ("altivec_dst"): New.
3621
3622         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
3623         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
3624
3625 2002-01-09  Richard Henderson  <rth@redhat.com>
3626
3627         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
3628
3629 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
3630
3631         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
3632         function.
3633         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
3634         prototype.
3635         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
3636
3637 2002-01-09  Kazu Hirata  <kazu@hxi.com>
3638
3639         * read-rtl.c: Fix formatting.
3640         * real.c: Likewise.
3641         * regclass.c: Likewise.
3642         * regrename.c: Likewise.
3643         * reg-stack.c: Likewise.
3644         * reload1.c: Likewise.
3645         * reload.c: Likewise.
3646         * rtl.c: Likewise.
3647
3648 2002-01-09  Kazu Hirata  <kazu@hxi.com>
3649
3650         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
3651         to extract items in the expr_list chain.
3652
3653 2002-01-09  Richard Henderson  <rth@redhat.com>
3654
3655         * config/vax/vax.c (vax_rtx_cost): Never abort.
3656
3657         * config/vax/vax.h (REAL_ARITHMETIC): Define.
3658
3659 2002-01-09  Jan Hubicka  <jh@suse.cz>
3660
3661         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
3662
3663 2002-01-09  Richard Henderson  <rth@redhat.com>
3664
3665         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
3666         Unify code from various alternatives.
3667
3668 2002-01-09  Richard Henderson  <rth@redhat.com>
3669
3670         * regrename.c (copy_value): Ignore the copy if the source register
3671         is present in the value chain with a narrower mode.
3672
3673 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
3674
3675         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
3676         for the c4x target. Also improve layout.
3677
3678 2002-01-09  Richard Henderson  <rth@redhat.com>
3679
3680         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
3681         * config/m32r/m32r.md (and ior xor splitters): Swap operands
3682         to match insn patterns.
3683
3684 2002-01-09  Richard Henderson  <rth@redhat.com>
3685
3686         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
3687         (copyprop_hardreg_forward_1): Likewise.
3688
3689 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3690
3691         * pa.md (decrement_and_branch_until_zero): Change predicate for
3692         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
3693
3694 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3695
3696         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
3697         gets undefined. For Darwin.
3698
3699 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3700
3701         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
3702
3703 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3704
3705         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
3706
3707 2002-01-08  Richard Henderson  <rth@redhat.com>
3708
3709         * regrename.c (copy_value): Ignore overlapping copies.
3710
3711 2002-01-08  Richard Henderson  <rth@redhat.com>
3712
3713         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
3714         as needed to avoid shared structure.
3715
3716 2002-01-08  Kazu Hirata  <kazu@hxi.com>
3717
3718         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
3719         H8/300H and H8/S.
3720
3721 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3722
3723         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
3724         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
3725         documentation of obsolete macros.
3726         * system.h: Poison these macros.
3727         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
3728         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
3729         config/c4x/c4x.h, config/clipper/clipper.h,
3730         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
3731         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
3732         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
3733         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
3734         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
3735         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
3736         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3737         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
3738         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
3739         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
3740         config/sparc/sparc.h, config/stormy16/stormy16.h,
3741         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
3742         definitions and commented out definitions of obsolete macros.
3743         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
3744         of MAX_INT_TYPE_SIZE.
3745
3746 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
3747
3748         * config/s390/s390.c (s390_preferred_reload_class): Never
3749         return ADDR_REGS if it isn't a subset of the given class.
3750         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
3751         FP_REGS, but all superclasses as well.
3752
3753         * config/s390/s390.c (s390_function_profiler): Fix thinko.
3754
3755         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
3756         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
3757         must not be a const_int.
3758
3759 2002-01-08  Richard Henderson  <rth@redhat.com>
3760
3761         * Makefile.in (toplev.o): Depend on options.h.
3762         (gcc.o): Depend on specs.h.
3763
3764 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
3765
3766         * expr.c (store_expr): Convert VOIDmode constants back to target's
3767         mode.
3768
3769 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3770
3771         * doc/invoke.texi: Markup gcc as @command.  Refer to
3772         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
3773         of http://gcc.gnu.org/thanks.html.
3774
3775 2002-01-08  Dale Johannesen  <dalej@apple.com>
3776
3777         * config/rs6000/rs6000.md: Add missing int register
3778         target case to movdf_low.
3779
3780 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
3781
3782         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
3783         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
3784         (cppinit.o): Depend on except.h.
3785         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
3786         s-specs): New rules.
3787
3788         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
3789         Don't create specs.h/options.h/gencheck.h here.  Remove
3790         unnecessary variable settings from last argument of AC_OUTPUT.
3791         * config.in, configure: Regenerate.
3792         * intl.c: Hardcode package name as "gcc".
3793
3794         * cppinit.c: Include except.h.
3795         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
3796         appropriate.
3797         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
3798         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
3799         (!)USING_SJLJ_EXCEPTIONS.
3800         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
3801
3802 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3803
3804         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
3805         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
3806         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
3807         documentation of obsolete macros.
3808         * system.h: Poison these macros.
3809         * config/d30v/d30v.h, config/ns32k/encore.h,
3810         config/stormy16/stormy16.h: Remove definitions and commented out
3811         definitions of obsolete macros.
3812
3813 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
3814
3815         * objc/objc-act.c (handle_class_ref): Mark the declaration of
3816         %sobjc_class_ref_%s as used - to prevent unwanted compiler
3817         warnings.
3818
3819 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
3820
3821         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
3822         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
3823         to insn adjusting stack/frame pointer.
3824         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
3825         accept operands that cause the insn to be non-splittable.
3826
3827 2002-01-08  Graham Stott  <grahams@redhat.com>
3828
3829         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
3830         (C_TYPE_FIELDS_VOLATILE): Likewise.
3831         (C_TYPE_BEING_DEFINED): Likewise.
3832         (C_IS_RESERVED_WORD): Likewise.
3833         (C_TYPE_VARIABLE_SIZE): Likewise.
3834         (C_DECL_VARIABLE_SIZE): Likewise.
3835         (C_MISSING_PROTOTYPE_WARNED): Likewise.
3836         (C_SET_EXP_ORIGINAL_CODE): Likewise.
3837         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
3838         parenthesis.
3839         (C_DECL_ANTICIPATED): Likewise.
3840         (c_build_type_variant): Add parenthesis.
3841
3842 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3843
3844         * gcc.c (option_map): Remove --version.
3845         (process_command): Handle -fversion following the GNU Coding
3846         Standards.  Partially addresses PR other/704.
3847
3848 2002-01-08  Graham Stott  <grahams@redhat.com>
3849
3850         * combine.c (combine_instructions): Fix typo.
3851
3852 2002-01-08  Graham Stott  <grahams@redhat.com>
3853
3854         * debug.h: Use "tree" and "rtx" throughout.
3855
3856         * debug.c: Likewise.
3857
3858 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
3859
3860         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
3861         constant pool, use the pool's version of the symbol instead.
3862
3863 2002-01-07  Richard Henderson  <rth@redhat.com>
3864
3865         * regrename.c (find_oldest_value_reg): Ignore the value chain if
3866         the original register was copied in a mode with a fewer number of
3867         hard registers than the desired mode.
3868         (copyprop_hardreg_forward_1): Likewise.
3869         (debug_value_data): Fix loop test.
3870         * toplev.c (parse_options_and_default_flags): Reenable
3871         -fcprop-registers at -O1.
3872
3873 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
3874
3875         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
3876         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
3877
3878         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
3879         predicates.
3880
3881         * config/rs6000/rs6000.md: Add altivec predicate patterns.
3882
3883 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3884
3885         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
3886         (pa_output_function_prologue): Output local label at the beginning of
3887         the prologue when profiling.
3888         (hppa_profile_hook): Use the local label rather than the function label.
3889         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
3890
3891 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
3892
3893         * config/rs6000/rs6000.c (print_operand): Remove extra space.
3894         (altivec_expand_unop_builtin): Fix thinko.
3895         (altivec_expand_binop_builtin): Same.
3896         (altivec_expand_ternop_builtin): Same.
3897         (altivec_expand_builtin): Same.
3898
3899 2002-01-07  Richard Henderson  <rth@redhat.com>
3900
3901         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
3902
3903 2002-01-07  Jason Merrill  <jason@redhat.com>
3904
3905         * unwind-dw2.c (execute_cfa_program): Use < again.
3906
3907 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
3908
3909         * predict.c (combine_predictions_for_insn): Avoid division by zero.
3910
3911 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
3912
3913         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
3914         Don't allow -1 - x -> ~x simplifications in the first pass.
3915
3916 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
3917
3918         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
3919         arguments.
3920         (altivec_expand_binop_builtin): Same.
3921         (altivec_expand_unop_builtin): Same.
3922         (print_operand): Fix typo.
3923         (bdesc_1arg): Add vupk* variants.
3924
3925         * rs6000.h (rs6000_builtins): Add vupk* enums.
3926
3927         * rs6000.md: Add altivec_vupk* variants.
3928
3929 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3930
3931         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
3932         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
3933         and last update dates.
3934
3935 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
3936
3937         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
3938
3939 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3940
3941         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
3942         * config/avr/avr.h (CPP_SPEC): Likewise.
3943         (LINK_SPEC): Likewise.
3944         (CRT_BINUTILS_SPECS): Likewise.
3945         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3946         * doc/invoke.texi (AVR Options): Document them.
3947
3948 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
3949
3950         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
3951         LABEL_NUSES.
3952
3953 2002-01-07  Graham Stott  <grahams@redhat.com>
3954
3955         * config/i386/i386.h: Update copyright date.
3956         (HALF_PIC_PTR): Add parenthesis.
3957         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
3958         (CONSTANT_ALIGNMENT): Add parenthesis.
3959         (DATA_ALIGNMENT): Likewise.
3960         (LOCAL_ALIGNMENT): Likewise.
3961         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
3962         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
3963         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
3964         (HARD_REGNO_NREGS): Add paranethesis.
3965         (VALID_SSE_REG_MODE): Whitespace.
3966         (VALID_MMX_REG_MODE): Whitespace.
3967         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
3968         (ix86_hard_regno_mode_ok): Add parenthesis.
3969         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
3970         (RETURN_IN_MEMORY): Whitespace.
3971         (N_REG_CLASSES): Add parenthesis.
3972         (INTEGER_CLASS_P): Add parenthesis and wrap.
3973         (FLOAT_CLASS_P): Likewise.
3974         (SSE_CLASS_P): Likewise.
3975         (MMX_CLASS_P): Likewise.
3976         (MAYBE_INTEGER_CLASS_P): Likewise.
3977         (MAYBE_FLOAT_CLASS_P): Likewise.
3978         (MAYBE_SSE_CLASS_P): Likewise.
3979         (MAYBE_MMX_CLASS_P): Likewise.
3980         (Q_CLASS_P): Likewise.
3981         (GENERAL_REGNO_P): Uppercase macro parameter.
3982         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
3983         (FP_REGNO_P): Likewise.
3984         (ANY_FP_REGNO_P): Uppercase macro parameter.
3985         (SSE_REGNO_P): Likewise.
3986         (SSE_REGNO): Likewise.
3987         (SSE_REG_P): Likewise.
3988         (SSE_FLOAT_MODE_P): Likewise.
3989         (MMX_REGNO_P): Likewise.
3990         (MMX_REG_P):Likewise.
3991         (STACK_REG_P): Likewise.
3992         (NON_STACK_REG_P): Likewise.
3993         (STACK_TOP_P): Likewise.
3994         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
3995         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
3996         (SECONDARY_MEMORY_NEEDED): Likewise.
3997         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
3998         (MD_ASM_CLOBBERS): Whitespace and wrap.
3999         (MUST_PASS_IN_STACK): Whitespace and wrap.
4000         (RETURN_POPS_ARGS): Add parenthesis.
4001         (INIT_CUMULATIVE_ARGS): Likewise.
4002         (FUNCTION_ARG): Likewise.
4003         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
4004         (SETUP_INCOMING_VARARGS): Likewise.
4005         (BUILD_VA_LIST_TYPE):  Add parenthesis.
4006         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
4007         parenthsis.
4008         (EXPAND_BUILTIN_VA_ARG): Likewise.
4009         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
4010         (INITIALIZE_TRAMPOLINE): Add parenthesis.
4011         (INITIAL_ELIMINATION_OFFSET): Likewise.
4012         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
4013         (REGNO_OK_FOR_BASE_P): Likewise.
4014         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
4015         (REGNO_OK_FOR_DIREG_P): Likewise.
4016         (REG_OK_FOR_INDEX_P): Whitespace.
4017         (REG_OK_FOR_BASE_P): Whitespace.
4018         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
4019         parenthesis.
4020         (FIND_BASE_TERM): Fix typo.
4021         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
4022         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
4023         (SYMBOLIC_CONST; Whitespace.
4024         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
4025         (ENCODE_SECTION_INFO): Whitespace.
4026         (FINALIZE_PIC): Remove do { ... } while (0).
4027         (PROMOTE_MODE): Wrap in do { ... } while (0).
4028         (CONST_COSTS): Whitespace.
4029         (RTX_COSTS): Add paramethesis, whitespace and wrap.
4030         (REGISTER_MOVE_COST): Add parenthesis.
4031         (MEMORY_MOVE_COST): Likewise.
4032         (EXTRA_CC_MODES): Whitespace.
4033         (SELECT_CC_MODE): Add parenthesis and whitespace.
4034         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
4035         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
4036         (ASM_OUTPUT_LABEL): Add paramethesis.
4037         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
4038         (ASM_OUTPUT_REG_POP): Likewise.
4039         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
4040         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4041
4042         * config/i386/i386.c: Update copyright.
4043         (CHECK_STACK_LIMIT): Add parenthesis.
4044         (AT_BP): Uppercase macro parameter.
4045         (x86_64_int_parameter_registers): Constify.
4046         (x86_64_int_return_registers): Likewise.
4047         (ix86_compare_op0): Use rtx.
4048         (construct_container): Constify INTREG parameter.
4049         (function_arg): Use rtx.
4050
4051         * diagnostic.h: Update copyright date.
4052         (output_buffer_state): Add parenthesis.
4053         (output_buffer_format_args): Likewise.
4054
4055         * combine.c (combine_instructions): Replace XEXP (links, 0)
4056         with link.
4057
4058 2002-01-06  H.J. Lu <hjl@gnu.org>
4059
4060         * cfgcleanup.c (thread_jump): Fix 2 typos.
4061
4062 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
4063
4064         * config.gcc: Add support for --enable-altivec.
4065
4066 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4067
4068         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
4069
4070 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
4071
4072         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
4073         __objc_class_name_*.
4074
4075 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4076
4077         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
4078
4079 2002-01-06  Richard Henderson  <rth@redhat.com>
4080
4081         * reorg.c (emit_delay_sequence): Remove death notes, not merely
4082         nop them out.  Increment label reference count for REG_LABEL.
4083         (fill_slots_from_thread): Frob label reference count around
4084         delete_related_insns.
4085
4086 2002-01-05  Richard Henderson  <rth@redhat.com>
4087
4088         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
4089         jump threading.
4090
4091 2002-01-05  Richard Henderson  <rth@redhat.com>
4092
4093         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
4094         * integrate.c (output_inline_function): Likewise.
4095         * toplev.c (rest_of_compilation): Do it here instead.  Move call
4096         to remove_unnecessary_notes after emitting abstract instance.
4097         Force an emitted nested function to have its parent emited as well.
4098         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
4099         for null.
4100         (rtl_for_decl_location): Do not look at reload data structures
4101         before reload has run.
4102
4103 2002-01-05  Kazu Hirata  <kazu@hxi.com>
4104
4105         * cse.c: Fix formatting.
4106         * dwarf2asm.c: Likewise.
4107         * dwarf2out.c: Likewise.
4108         * explow.c: Likewise.
4109         * expmed.c: Likewise.
4110         * function.c: Likewise.
4111         * gcov.c: Likewise.
4112         * gencheck.c: Likewise.
4113         * genrecog.c: Likewise.
4114         * ggc-common.c: Likewise.
4115         * ggc-page.c: Likewise.
4116         * global.c: Likewise.
4117
4118 2002-01-05  Kazu Hirata  <kazu@hxi.com>
4119
4120         * combine.c: Fix formatting.
4121
4122 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
4123
4124         PR middle-end/1557
4125         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
4126
4127 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
4128
4129         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
4130         as 1 for __powerpc64__ as well.
4131
4132         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
4133
4134         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
4135         return it.
4136
4137 2002-01-05  Daniel Berlin  <dan@dberlin.org>
4138
4139         * lcm.c: Revert change, due to performance regression it causes on
4140         SPEC because it's slightly more conservative (sigh, I hate
4141         edge-based LCM).
4142
4143 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
4144
4145         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
4146
4147 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4148
4149         * doc/cppinternals.texi: Update.
4150
4151 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
4152
4153         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
4154         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
4155         negatives.
4156         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
4157         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
4158         kludge for pre-october-14th mmix versions to handle new-found bug
4159         with PUSHJ/PUSHGO and the register stack.
4160         * config/mmix/mmix.h (struct machine_function): Rename member
4161         has_call_value_without_parameters to has_call_without_parameters.
4162         All referers changed.
4163         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
4164         TARGET_MASK_BRANCH_PREDICT): New macros.
4165         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
4166         -mno-reg-stack-fill-bug-workaround.
4167         * config/mmix/mmix.md ("call"): Set struct machine member
4168         has_call_without_parameters.
4169
4170 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
4171
4172         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
4173
4174 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
4175
4176         * cfgcleanup.c: Include tm_p.h
4177         (mark_effect): Fix handling of hard register; fix handling of SET
4178
4179 2002-01-04  Kazu Hirata  <kazu@hxi.com>
4180
4181         * config/h8300/h8300.md (anonymous patterns): Check that
4182         operands are registers before using REGNO on them.
4183
4184 2002-01-03  Roland McGrath  <roland@frob.com>
4185
4186         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
4187
4188 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
4189
4190         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
4191         * c-common.h (genrtl_expr_stmt_value): Likewise.
4192         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
4193         (expand_expr_stmt_value): Add maybe_last argument.
4194         Don't warn about statement with no effect if it is the last statement
4195         in expression statement.
4196         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
4197         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
4198         expand_expr_stmt_value.
4199         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
4200         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
4201         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
4202         as maybe_last to expand_expr_stmt_value.
4203
4204 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
4205
4206         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
4207         be passed in, do not build it.
4208         (c_begin_if_stmt): New function.
4209         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
4210         * c-common.h (c_expand_start_cond): Update prototype.
4211         (c_begin_if_stmt): Prototype new function.
4212         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
4213         * c-parse.in (if_prefix): Use c_begin_if_stmt,
4214         c_begin_while_stmt and c_finish_while_stmt_cond.
4215
4216 2002-01-04  William Cohen  <wcohen@redhat.com>
4217
4218         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
4219         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
4220         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
4221         * config/pa/som.h (ASM_FILE_START): Likewise.
4222
4223 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
4224
4225         * lcm.c: Include df.h.
4226         Add available_transfer_function prototype.
4227         (compute_available): Rework to use iterative dataflow framework.
4228         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
4229         with bb_info in df.h
4230         (available_transfer_function): New function.
4231
4232         * Makefile.in (lcm.o): add df.h to dependencies.
4233
4234 2002-01-04  Richard Henderson  <rth@redhat.com>
4235
4236         * config/alpha/alpha.c (some_operand): Accept HIGH.
4237         (input_operand): Likewise; accept simple references to globals.
4238         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
4239         (alpha_const_double_ok_for_letter_p): Likewise.
4240         (alpha_extra_constraint): Likewise.
4241         (alpha_preferred_reload_class): Likewise.  Do not force
4242         symbolic constants to memory.
4243         (alpha_legitimate_address_p): Accept simple references
4244         to small_symbolic_operand.
4245         (alpha_legitimize_address): New arg scratch.  Be prepared to be
4246         called when no_new_pseudos.  Emit simple symbolic references.
4247         Split integers into low, high, and rest.
4248         (alpha_expand_mov): Use alpha_legitimize_address.
4249         (some_small_symbolic_mem_operand): New.
4250         (split_small_symbolic_mem_operand): New.
4251         * config/alpha/alpha-protos.h: Update.
4252         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
4253         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
4254         (EXTRA_CONSTRAINT): Likewise.
4255         (PREFERRED_RELOAD_CLASS): Likewise.
4256         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
4257         (PREDICATE_CODES): Update.
4258         * config/alpha/alpha.md: New post-reload splitters to convert
4259         simplfied symbolic operands to the form that references $29.
4260         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
4261         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
4262
4263 2002-01-03  Richard Henderson  <rth@redhat.com>
4264
4265         * local-alloc.c (function_invariant_p): Update commentary.
4266
4267 2002-01-04  H.J. Lu <hjl@gnu.org>
4268
4269         * toplev.c (rest_of_compilation): Fix a typo when calling
4270         cleanup_cfg.
4271
4272 2002-01-03  Kazu Hirata  <kazu@hxi.com>
4273
4274         * c-common.c: Fix formatting.
4275         * diagnostic.c: Likewise.
4276         * doloop.c: Likewise.
4277         * dwarf2out.c: Likewise.
4278
4279 2002-01-03  Kazu Hirata  <kazu@hxi.com>
4280
4281         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
4282         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
4283
4284 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4285
4286         * cpperror.c: Update comments and copyright.
4287         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
4288         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
4289
4290 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4291
4292         * collect2.c (main): Use strcmp when testing for "-shared".
4293
4294 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4295
4296         * cppmacro.c: Don't include intl.h.  Update comments.
4297         (new_number_token): Allocate enough buffer for 64-bit unsigned
4298         integers; update prototype.
4299         * cppmain.c: Update comments.
4300
4301 2002-01-03  William Cohen  <wcohen@redhat.com>
4302
4303         * function.h (struct function): Add profile.
4304         (current_function_profile): New.
4305         doc/extend.texi: Update documentation.
4306         * final.c (final_start_function): Use current_function_profile
4307         instead of profile_flag.
4308         (profile_after_prologue): Likewise.
4309         * function.c (expand_function_start): Likewise.
4310         (expand_function_start): Likewise.
4311         * config/alpha/alpha.c (direct_call_operand):
4312         (alpha_does_function_need_gp): Likewise.
4313         (alpha_expand_prologue): Likewise.
4314         * config/arm/arm.c (arm_expand_prologue): Likewise.
4315         thumb_expand_prologue: Likewise.
4316         * config/d30v/d30v.c (d30v_stack_info): Likewise.
4317         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
4318         (fr30_expand_prologue): Likewise.
4319         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
4320         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
4321         * config/i386/i386.h (FINALIZE_PIC): Likewise.
4322         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
4323         * config/i960/i960.c (i960_output_function_prologue): Likewise.
4324         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4325         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
4326         (m32r_expand_prologue): Likewise.
4327         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
4328         (m88k_expand_prologue): Likewise.
4329         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
4330         * config/mips/mips.c (compute_frame_size): Likewise.
4331         (mips_expand_prologue): Likewise.
4332         (mips_can_use_return_insn): Likewise.
4333         * config/pa/elf.h (ASM_FILE_START): Likewise.
4334         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
4335         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
4336         * config/pa/som.h (ASM_FILE_START): Likewise.
4337         * config/romp/romp.c (romp_using_r14): Likewise.
4338         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
4339         (rs6000_stack_info): Likewise.
4340         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4341         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4342         * config/v850/v850.c (compute_register_save_size): Likewise.
4343
4344 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
4345
4346         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
4347         gen_lowpart_common fails, use gen_lowpart_SUBREG.
4348
4349 2002-01-03  Turly O'Connor  <turly@apple.com>
4350
4351         * darwin.c (machopic_output_possible_stub_label): Don't generate
4352         stub routines for pseudo-stubs which we've just defined.
4353
4354 2002-01-03  Kazu Hirata  <kazu@hxi.com>
4355
4356         * builtins.c: Fix formatting.
4357         * c-typeck.c: Likewise.
4358         * combine.c: Likewise.
4359         * expr.c: Likewise.
4360         * loop.c: Likewise.
4361
4362 2002-01-03  Andreas Schwab  <schwab@suse.de>
4363
4364         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
4365         and return true if _cpp_push_next_buffer pushed a new include
4366         file.
4367         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
4368         _cpp_pop_file_buffer did not push a new file.
4369         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
4370
4371 2002-01-02  Eric Christopher  <echristo@redhat.com>
4372
4373         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
4374         FIND_REG_INC_NOTE call. Update copyright.
4375         * loop.c (canonicalize_condition): Ditto.
4376         * reorg.c (delete_scheduled_jump): Ditto.
4377
4378 2002-01-03  Kazu Hirata  <kazu@hxi.com>
4379
4380         * gcse.c: Fix formatting.
4381
4382 2002-01-03  Graham Stott  <grahams@redhat.com>
4383
4384         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
4385         forward defs for struct tags rtx_def, union_tree, rtvec_def
4386         also output corresponding typedefs for rtx, tree, and rtvec.
4387
4388         * system.h: Move forward defs for struct tags rtx_def, union_tree,
4389         rtvec_def along with corresponding typedefs for rtx, tree, and
4390         rtvec to config.h, hconfig.h, tconfig.h.
4391
4392 2002-01-03  Graham Stott  <grahams@redhat.com>
4393
4394         * tree.h: Update copyright date.
4395         (IS_EXPR_CODE_CLASS): Add parenthesis.
4396         (TREE_SET_CODE): Add whitespace.
4397         (TREE_CHECK): Add parenthesis.
4398         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
4399         (CST_OR_CONSTRUCTOR_CHECK):
4400         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
4401         (TREE_SYMBOL_REFERENCED): Whitespace.
4402         (INT_CST_LT): Likewise.
4403         (INT_CST_LT_UNSIGNED): Likewise.
4404         (tree_real_cst): Unwrap comment.
4405         (tree_string): Likewise.
4406         (tree_complex): Likewise.
4407         (IDENTIFIER_POINTER): correct cast.
4408         (SAVE_EXPR_CONTEXT): Whitespace.
4409         (EXPR_WFL_FILENAME_NODE): Likewise.
4410         (EXPR_WFL_FILENAME): Remove parenthesis.
4411         (DECL_ORIGIN): Add parenthesis.
4412         (DECL_FROM_INLINE): Use NULL_TREE.
4413         (build_int_2): Whitespace.
4414         (build_type_variant): Add parenthesis.
4415
4416         * gcc/jcf-parse.c: Update copyright date.
4417         (yyparse): Constify resource_filename.
4418
4419 2002-01-03  Graham Stott  <grahams@redhat.com>
4420
4421         * rtl.h: Update copyright date.
4422         (RTL_CHECK1): Wrap long line.
4423         (RTL_CHECK2): Likewise.
4424         (RTL_CHECKC1): Wrap long line and whitespace.
4425         (RTL_CHECKC2): Likewise.
4426         (XWINT): Whitespace.
4427         (XINT): Likewise.
4428         (XSTR): Likewise.
4429         (XEXP): Likewise.
4430         (XVEC): Likewise.
4431         (XMODE): Likewise.
4432         (XBITMAP): Likewise.
4433         (XTREE): Likewise.
4434         (XBBDEF): Likewise.
4435         (XTMPL): Likewise.
4436         (X0WINT): Likewise.
4437         (X0INT):Likewise.
4438         (X0UINT): Likewise.
4439         (X0STR): Likewise.
4440         (X0EXP): Likewise.
4441         (X0VEC): Likewise.
4442         (X0MODE): Likewise.
4443         (X0BITMAP): Likewise.
4444         (X0TREE): Likewise.
4445         (X0BBDEF): Likewise.
4446         (X0ADVFLAGS): Likewise.
4447         (X0CSELIB): Likewise.
4448         (X0MEMATTR): Likewise.
4449         (XCWINT): Likewise.
4450         (XCINT): Likewise.
4451         (XCUINT): Likewise.
4452         (XCSTR): Likewise.
4453         (XCEXP): Likewise.
4454         (XCVEC): Likewise.
4455         (XCMODE): Likewise.
4456         (XCBITMAP): Likewise.
4457         (XCTREE): Likewise.
4458         (XCBBDEF): Likewise.
4459         (XCADVFLAGS): Likewise.
4460         (XCCSELIB): Likewise.
4461         (XC2EXP): Likewise.
4462         (INSN_UID): Likewise.
4463         (PREV_INSN): Likewise.
4464         (PATTERN): Likewise.
4465         (INSN_CODE): Likewise.
4466         (PUT_REG_NOTE_KIND): Likewise.
4467         (CODE_LABEL_NUMBER): Likewise.
4468         (NOTE_SOURCE_FILE): Likewise.
4469         (NOTE_BLOCK): Likewise.
4470         (NOTE_EH_HANDLER): Likewise.
4471         (NOTE_RANGE_INFO): Likewise.
4472         (NOTE_LIVE_INFO): Likewise.
4473         (NOTE_BASIC_BLOCK): Likewise.
4474         (NOTE_EXPECTED_VALUE): Likewise.
4475         (NOTE_LINE_NUMBER): Likewise.
4476         (LABEL_NAME): Likewise.
4477         (LABEL_NUSES): Likewise.
4478         (LABEL_ALTERNATE_NAME): Likewise.
4479         (ADDRESSOF_DECL): Likewise.
4480         (JUMP_LABEL): Likewise.
4481         (LABEL_NEXTREF): Likewise.
4482         (REGNO): Likewise.
4483         (ORIGINAL_REGNO: Likewise.
4484         (HARD_REGISTER_NUM_P): Add parenthesis.
4485         (SUBREG_REG): Whitespace.
4486         (SUBREG_BYTE): Likewise.
4487         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
4488         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
4489         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
4490         (ASM_OPERANDS_INPUT_VEC): Likewise.
4491         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
4492         (ASM_OPERANDS_INPUT): Likewise.
4493         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
4494         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
4495         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
4496         (ASM_OPERANDS_INPUT_MODE): Likewise.
4497         (ASM_OPERANDS_SOURCE_FILE): Likewise.
4498         (ASM_OPERANDS_SOURCE_LINE): Likewise.
4499         (MEM_SET_IN_STRUCT_P): Minor reformat.
4500         (TRAP_CONDITION): Whitespace.
4501         (TRAP_CODE): Likewise.
4502         (COND_EXEC_TEST): Likewise.
4503         (COND_EXEC_CODE): Likewise.
4504         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
4505         (PHI_NODE_P): Add parenthesis.
4506         (plus_constant): Whitespace and add parenthesis.
4507
4508 2002-01-03  Kazu Hirata  <kazu@hxi.com>
4509
4510         * config/avr/avr.c: Fix comment typos.
4511         * config/c4x/c4x.md: Likewise.
4512         * config/dsp16xx/dsp16xx.h: Likewise.
4513         * config/dsp16xx/dsp16xx.md: Likewise.
4514         * config/i386/i386.md: Likewise.
4515         * config/ia64/ia64.c: Likewise.
4516         * config/m32r/m32r.h: Likewise.
4517         * config/m68hc11/m68hc11.md: Likewise.
4518         * config/mmix/mmix.c: Likewise.
4519         * config/mn10200/mn10200.c: Likewise.
4520         * config/romp/romp.c: Likewise.
4521         * config/sh/sh.c: Likewise.
4522         * config/stormy16/stormy16.c: Likewise.
4523         * config/stormy16/stormy16.h: Likewise.
4524         * config/stormy16/stormy16.md: Likewise.
4525
4526 2002-01-03  Graham Stott  <grahams@redhat.com>
4527
4528         * loop.h: Update copyright date.
4529         (LOOP_MOVABLES): Fix typo.
4530         (LOOP_REGS): Likewise.
4531         (LOOP_IVS): Likewise.
4532
4533 2002-01-03  Graham Stott  <grahams@redhat.com>
4534
4535         * cppinit.c: Update copyright date.
4536         Don't include output.h
4537         * Makefile.in: Update copyright date.
4538         Update dependency.
4539
4540 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4541
4542         PR c/5226
4543         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
4544         (-pthread) Add to RS/6000 options.
4545
4546 2002-01-02  Kazu Hirata  <kazu@hxi.com>
4547
4548         * except.c: Fix comment typos.
4549         * loop.c: Likewise.
4550         * varasm.c: Likewise.
4551         * doc/tm.texi: Fix a typo.
4552
4553 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
4554
4555         * c-typeck.c (output_init_element): Allow initializing static storage
4556         duration objects with compound literals.
4557
4558 2002-01-02  Richard Henderson  <rth@redhat.com>
4559
4560         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
4561         after abusing it.
4562
4563 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4564
4565         * gcc.c (default_compilers): Const-ify.
4566         * mips-tdump.c (stab_names): Likewise.
4567         * mips-tfile.c (map_coff_types, map_coff_storage,
4568         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
4569         pseudo_ops_t, pseudo_ops): Likewise.
4570         * protoize.c (default_include): Likewise
4571
4572         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
4573         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
4574         Add array size in declaration.
4575         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
4576         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
4577         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
4578         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
4579         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
4580         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
4581         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
4582         emtens, make_nan): Const-ify.
4583         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
4584         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
4585
4586 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4587
4588         * config.gcc (ia64-*-*): Set extra_headers.
4589         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
4590         * config/alpha/t-osf: Remove.
4591         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
4592
4593 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
4594
4595         * config/rs6000/t-aix43: Revert previous change.
4596
4597 2002-01-02  Jason Merrill  <jason@redhat.com>
4598
4599         * c-decl.c (c_expand_body): Call outlining_inline_function when
4600         emitting an inline function out of line.
4601
4602 2002-01-02  Richard Henderson  <rth@redhat.com>
4603
4604         * dwarf2out.c (limbo_die_node): Add created_for member.
4605         (new_die): New argument created_for.  Update all callers.
4606         (mark_limbo_die_list): New.
4607         (dwarf2out_init): Register limbo_die_list as a root.
4608         (dwarf2out_finish): Force insert limbo dies into their function
4609         context.
4610
4611 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
4612
4613         PR c++/5089
4614         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
4615
4616 2002-01-02  Kazu Hirata  <kazu@hxi.com>
4617
4618         * config/h8300/fixunssfsi.c: Update copyright.
4619         Fix comment typos.
4620         Fix formatting.
4621         * config/h8300/h8300.c: Update copyright.
4622         Eliminate warnings.
4623
4624 2002-01-02  Kazu Hirata  <kazu@hxi.com>
4625
4626         * config/romp/romp.c: Fix comment formatting.
4627         * config/romp/romp.h: Likewise.
4628         * config/romp/romp.md: Likewise.
4629         * config/s390/s390.c: Likewise.
4630         * config/stormy16/stormy16.c: Likewise.
4631         * config/stormy16/stormy16.h: Likewise.
4632
4633 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
4634
4635         * c-common.h (genrtl_expr_stmt_value): Declare.
4636         * c-semantics.c (genrtl_goto_stmt): Redirect to...
4637         (genrtl_goto_stmt_value): ... this new function.  Pass new
4638         argument down to expand_expr_stmt_value, taking
4639         TREE_ADDRESSABLE into account.
4640         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
4641         STMT_EXPR as addressable, i.e., one whose result we want.
4642         * expr.c (expand_expr): Don't save expression statement value
4643         of labeled_blocks or loop_exprs.
4644         * stmt.c (expand_expr_stmt): Redirect to...
4645         (expand_expr_stmt_value): ... this new function.  Use new
4646         argument to tell whether to save expression value.
4647         (expand_end_stmt_expr): Reset last_expr_type and
4648         last_expr_value if we don't have either.
4649         * tree-inline.c (declare_return_variable): Mark its use
4650         statement as addressable.
4651         * tree.h: Document new use of TREE_ADDRESSABLE.
4652         (expand_expr_stmt_value): Declare.
4653
4654 2002-01-01  Tom Rix  <trix@redhat.com>
4655
4656         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
4657         rs6000_emit_allocate_stack.
4658
4659 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4660
4661         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
4662         ${srcdir}/ginclude/ to every entry in extra_headers.
4663         * configure: Regenerate.
4664         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
4665         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
4666         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
4667         * ginclude/proto.h: Rename to config/convex/proto.h.
4668
4669 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4670
4671         * attribs.c (handle_vector_size_attribute): Use host_integerp
4672         and tree_int_cst; remove warnings.
4673         * caller-save.c (insert_restore): Add cast to get rid of warning.
4674         (insert_save): Likewise.
4675         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
4676         * regmove.c (find_matches): Add temporary var to kill a warning.
4677
4678 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
4679
4680         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
4681         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
4682         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
4683         (vms-dwarf2eh.o): Add Makefile rule.
4684         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
4685         * config/alpha/vms-dwarf2eh.asm: New file.
4686
4687         * gcc.c (delete_if_ordinary): Delete all versions.
4688
4689 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
4690
4691         * config/mmix/mmix.md: Update FIXME to not mention
4692         define_constants.
4693         (MMIX_rJ_REGNUM): New define_constants constant.
4694         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
4695         "*movdicc_real"): Adjust contraints formatting.
4696         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
4697         for branch prediction.
4698         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
4699         output template.
4700         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
4701         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
4702         number.  Delete related FIXMEs.
4703         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
4704         from number to MMIX_rJ_REGNUM.
4705         (TARGET_MASK_BRANCH_PREDICT): New.
4706         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
4707         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
4708         value.  Add -mbranch-predict and -mno-branch-predict.
4709         (TARGET_VERSION): Drop date.
4710         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
4711         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
4712         for finding out global symbols.
4713         (mmix_asm_output_labelref): Revert condition for global symbol.
4714         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
4715         (mmix_print_operand_punct_valid_p): A '+' is valid.
4716
4717 See ChangeLog.6 for earlier changes.