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