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