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