OSDN Git Service

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