OSDN Git Service

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