simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to int_mode_for_mode.
[gcc.git] / gcc / ChangeLog
1 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
2
3 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
4 int_mode_for_mode.
5
6 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
7
8 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
9 complaining.
10 * c-common.h (c_sizeof): Adjust definition.
11 (c_alignof): Likewise.
12 * c-tree.h (c_sizeof_nowarn): Now macro.
13 * c-typeck.c (c_sizeof_nowarn): Remove definition.
14
15 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
16
17 * c-decl.c (c_decode_option): No need to handle switches
18 cpplib handles.
19
20 2002-07-24 Zack Weinberg <zack@codesourcery.com>
21
22 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
23 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
24 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
25 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
26
27 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
28 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
29 config/cris/aout.h, config/i386/freebsd-aout.h,
30 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
31 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
32 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
33 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
34 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
35 config/xtensa/elf.h, config/xtensa/linux.h:
36 Use the new macros.
37 Where possible, remove redundant definitions of SIZE_ASM_OP,
38 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
39
40 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
41
42 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
43 TARGET_ISEL, and TARGET_FPRS.
44
45 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
46 -mabi=spe, -mabi=no-spe, and -misel=.
47
48 * config/rs6000/rs6000-protos.h: Add output_isel.
49 Move vrsave_operation prototype here.
50
51 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
52 (smaxsi3): Same.
53 (uminsi3): Same.
54 (umaxsi3): Same.
55 (abssi2_nopower): Disallow when TARGET_ISEL.
56 (*ne0): Same.
57 (negsf2): Change to expand and rename old pattern to *negsf2.
58 (abssf2): Change to expand and rename old pattern to *abssf2.
59
60 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
61 fixunssfsi2.
62
63 Change patterns that check for TARGET_HARD_FLOAT or
64 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
65
66 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
67 rs6000_isel, rs6000_fprs, rs6000_isel_string.
68 (rs6000_override_options): Add 8540 case to
69 processor_target_table.
70 Set rs6000_isel for the 8540.
71 Call rs6000_parse_isel_option.
72 (enable_mask_for_builtins): New.
73 (rs6000_parse_isel_option): New.
74 (rs6000_parse_abi_options): Add spe and no-spe.
75 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
76 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
77 for TARGET_HARD_FLOAT.
78 Add case for SPE_VECTOR_MODE.
79 (rs6000_legitimize_reload_address): Handle SPE vector modes.
80 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
81 vector modes.
82 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
83 (rs6000_emit_move): Check for TARGET_FPRS.
84 Add cases for SPE vector modes.
85 (function_arg_boundary): Return 64 for SPE vector modes.
86 (function_arg_advance): Check for TARGET_FPRS and
87 Handle SPE vectors.
88 (function_arg): Same.
89 (setup_incoming_varargs): Check for TARGET_FPRS.
90 (rs6000_va_arg): Same.
91 (struct builtin_description): Un-constify mask field. Move up in
92 file.
93 (bdesc_2arg): Un-constify and add SPE builtins.
94 (bdesc_1arg): Same.
95 (bdesc_spe_predicates): New.
96 (bdesc_spe_evsel): New.
97 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
98 (rs6000_expand_binop_builtin): Same.
99 (bdesc_2arg_spe): New.
100 (spe_expand_builtin): New.
101 (spe_expand_predicate_builtin): New.
102 (spe_expand_evsel_builtin): New.
103 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
104 (rs6000_init_builtins): Initialize SPE builtins. Call
105 rs6000_common_init_builtins.
106 (altivec_init_builtins): Move all non-altivec builtin code to...
107 (rs6000_common_init_builtins): ...here. New function.
108 (branch_positive_comparison_operator): Allow NE code for SPE.
109 (ccr_bit): Return correct ccr bit for SPE fp.
110 (print_operand): Emit crnor in 'D' case for SPE.
111 New case 't'.
112 Add SPE code for 'y' case.
113 (rs6000_generate_compare): Generate rtl for SPE fp.
114 (output_cbranch): Handle SPE hard floats.
115 (rs6000_emit_cmove): Handle isel.
116 (rs6000_emit_int_cmove): New.
117 (output_isel): New.
118 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
119 64-bits for SPE.
120 (debug_stack_info): Add SPE info.
121 (gen_frame_mem_offset): New.
122 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
123 Change mode of frame pointer, when saving it, to Pmode.
124 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
125 Misc cleanups and use gen_frame_mem_offset when appropriate.
126
127 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
128 (TARGET_SPE_ABI): New.
129 (TARGET_SPE): New.
130 (TARGET_ISEL): New.
131 (TARGET_FPRS): New.
132 (FIXED_SCRATCH): New.
133 (RTX_COSTS): Add PROCESSOR_PPC8540.
134 (ASM_CPU_SPEC): Add case for 8540.
135 (TARGET_OPTIONS): Add isel= case.
136 (rs6000_spe_abi): New.
137 (rs6000_isel): New.
138 (rs6000_fprs): New.
139 (rs6000_isel_string): New.
140 (UNITS_PER_SPE_WORD): New.
141 (LOCAL_ALIGNMENT): Adjust for SPE.
142 (HARD_REGNO_MODE_OK): Same.
143 (DATA_ALIGNMENT): Same.
144 (MEMBER_TYPE_FORCES_BLK): New.
145 (FIRST_PSEUDO_REGISTER): Set to 113.
146 (FIXED_REGISTERS): Add SPE registers.
147 (reg_class): Same.
148 (REG_CLASS_NAMES): Same.
149 (REG_CLASS_CONTENTS): Same.
150 (REGNO_REG_CLASS): Same.
151 (REGISTER_NAMES): Same.
152 (DEBUG_REGISTER_NAMES): Same.
153 (ADDITIONAL_REGISTER_NAMES): Same.
154 (CALL_USED_REGISTERS): Same.
155 (CALL_REALLY_USED_REGISTERS): Same.
156 (SPE_ACC_REGNO): New.
157 (SPEFSCR_REGNO): New.
158 (SPE_SIMD_REGNO_P): New.
159 (HARD_REGNO_NREGS): Adjust for SPE.
160 (VECTOR_MODE_SUPPORTED_P): Same.
161 (REGNO_REG_CLASS): Same.
162 (FUNCTION_VALUE): Same.
163 (LIBCALL_VALUE): Same.
164 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
165 (SPE_VECTOR_MODE): New.
166 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
167 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
168 (rs6000_stack): Add spe_gp_size, spe_padding_size,
169 spe_gp_save_offset.
170 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
171 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
172 (SPE_CONST_OFFSET_OK): New.
173 (rs6000_builtins): Add SPE builtins.
174
175 * testsuite/gcc.dg/ppc-spe.c: New.
176
177 * config/rs6000/eabispe.h: New.
178
179 * config/rs6000/spe.h: New.
180
181 * config/rs600/spe.md: New.
182
183 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
184 __SIMD__ for TARGET_SPE.
185
186 * config.gcc: Add powerpc-*-eabispe* case.
187 Add spe.h to user headers for powerpc.
188
189 2002-07-24 Chris Demetriou <cgd@broadcom.com>
190
191 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
192 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
193 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
194
195 2002-07-24 Richard Henderson <rth@redhat.com>
196
197 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
198 form when not optimizing.
199
200 2002-07-24 David Mosberger <davidm@hpl.hp.com>
201
202 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
203 thread_pointer_rtx as unchanging.
204
205 2002-07-24 Michael Matz <matz@suse.de>
206
207 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
208 (free_reg): Use it.
209
210 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
211
212 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
213 pattern.
214 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
215 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
216
217 2002-07-24 Chris Demetriou <cgd@broadcom.com>
218
219 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
220 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
221 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
222
223 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
224
225 * toplev.c (rest_of_compilation): Dump loops before clobbering
226 the structure.
227
228 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
229
230 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
231
232 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
233
234 PR optimization/7291
235 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
236 problem on x86_64.
237
238 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
239
240 * pretty-print.h: Add macros from cp/error.c
241
242 2002-07-24 Alan Modra <amodra@bigpond.net.au>
243
244 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
245 (mask64_2_operand): Declare.
246 (build_mask64_2_operands): Declare.
247 (and64_2_operand): Declare.
248 (extract_MB): Declare.
249 (extract_ME): Declare.
250 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
251 CONST_DOUBLE code.
252 (mask_operand_wrap): New insn predicate.
253 (mask64_2_operand): Likewise.
254 (and64_2_operand): Likewise.
255 (build_mask64_2_operands): New function.
256 (extract_MB): New function.
257 (extract_ME): New function.
258 (print_operand <case m,M>): Use extract_MB and extract_ME.
259 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
260 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
261 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
262 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
263 * config/rs6000/rs6000.md (andsi3_internal3): New
264 (andsi3_internal3+1): Enable split for powerpc64.
265 (andsi3_internal3+2): New split.
266 (andsi3_internal4): Renamed old andsi3_internal3.
267 (andsi3_internal5): New.
268 (andsi3_internal5+1): Enable split for powerpc64.
269 (andsi3_internal5+2): New split.
270 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
271 (anddi3): Handle 't' constraint.
272 (anddi3+1): New split.
273 (anddi3_internal2): Handle 't' constraint.
274 (anddi3_internal2+1): New split.
275 (anddi3_internal3): Handle 't' constraint.
276 (anddi3_internal3+1): New split.
277
278 2002-07-24 Alan Modra <amodra@bigpond.net.au>
279
280 * config/rs6000/rs6000.md: Remove scratch reg on insns using
281 addze and similar (plus (comparison r1 r2) r3) insns. Add
282 missing scratch reg in one case. Formatting fixes.
283
284 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
285
286 * cppexp.c (parse_defined): Mark macro used.
287 * cpphash.h (struct cpp_macro): New member "used".
288 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
289 (struct cpp_reader): New member.
290 * cppinit.c (cpp_finish_options): Set first_unused_line.
291 (cpp_finish): Warn of unused macros if requested.
292 (OPT_TABLE): New switches.
293 (cpp_handle_option): Handle them.
294 * cpplib.c (do_undef): Warn if macro unused.
295 (do_ifdef, do_ifndef): Mark macro used.
296 * cpplib.h (struct cpp_options): New member.
297 * cppmacro.c (_cpp_warn_if_unused_macro): New.
298 (enter_macro_context): Mark macro used.
299 (_cpp_create_definition): Mark macro unused; warn if unused
300 when redefined.
301 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
302 Mark macros used.
303 * doc/cppopts.texi: Update.
304
305 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
306
307 * dwarf2out.c (SECTION_ASM_OP,
308 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
309 * system.h (SECTION_ASM_OP): Poison.
310 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
311 * config/alpha/alpha-interix.h, config/mips/linux.h
312 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
313 * config/mmix/mmix-protos.h, config/mmix/mmix.c
314 (mmix_asm_output_define_label_difference_symbol): Remove.
315 * config/mmix/mmix.h
316 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
317 * doc/tm.texi: Remove documentation.
318
319 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
320
321 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
322 (constrain_operands): Likewise.
323 * regclass.c (record_reg_classes): Likewise.
324 * reload.c (find_reloads): Likewise.
325 * doc/md.texi: Likewise.
326
327 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
328 * simplify-rtx.c (simplify_subreg): When converting to a non-int
329 mode, try to convert to an integer mode of matching size first.
330
331 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
332 from individual subregs, check that each subreg has been generated
333 sucessfully.
334
335 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
336
337 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
338 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
339 FOR_EACH_BB_IN_SBITMAP): Remove.
340 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
341 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
342 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
343 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
344 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
345 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
346
347 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
348
349 * pretty-print.h: New file.
350
351 2002-07-23 Paul Koning <pkoning@equallogic.com>
352
353 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
354 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
355 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
356 (TARGET_G_FLOAT): Default to 0 if not defined.
357 (ieeetoe): New, common routine to convert target format floats
358 to internal form.
359 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
360 vs. others.
361 (e113toe): Change to use ieeetoe.
362
363 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
364
365 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
366 IBM.
367 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
368 (e64toe): Remove special cases for DEC and IBM. Remove support for
369 ARM_EXTENDED_IEEE_FORMAT.
370 (e24toe): Remove special cases for DEC.
371 (significand_size): Simplify. Indent.
372 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
373 (etoieee, toieee): New.
374 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
375 etoieee and toieee for IEEE arithmetic.
376
377 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
378
379 * doc/extend.texi: Say ISO C90, not ISO C89.
380 * doc/invoke.texi: Likewise.
381 * doc/standards.texi: Likewise.
382
383 2002-07-23 Steve Ellcey <sje@cup.hp.com>
384
385 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
386 Fix permutation of conversion and plus/mult.
387 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
388 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
389 (expand_builtin_strncpy) Ditto.
390 (expand_builtin_memset) Ditto.
391
392 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
393
394 Fix PR/7363:
395 * c-common.c (c_sizeof_or_alignof_type): New function.
396 (c_alignof): Remove definition.
397 * c-common.h (c_sizeof, c_alignof): Define as macros.
398 (c_sizeof_or_alignof_type): Declare.
399 (my_friendly_assert): Moved from cp/cp-tree.h
400 * c-typeck.c (c_sizeof): Remove definition.
401
402 2002-07-23 Jan Hubicka <jh@suse.cz>
403
404 * gcse.c (try_replace_reg): Use num_changes_pending.
405 * recog.c (num_changes_pending): New function.
406 (validate_replace_src): Use validate_repalce_src_group.
407 (validate_replace_src_group): New.
408 * recog.h (validate_repalce_src_group): New.
409 (num_changes_pending): Likewise.
410
411 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
412
413 * calls.c (emit_library_call_value_1): If
414 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
415 libcall, const call nor pure call.
416
417 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
418
419 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
420
421 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
422
423 * vmsdbgout.c (SECTION_ASM_OP): Remove.
424
425 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
426
427 * config/i386/i386.c (AT_BP): Remove.
428
429 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
430
431 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
432 Default definition.
433 * gcse.c: Don't define obstack_chunk_free.
434 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
435 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
436 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
437 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
438 Don't define obstack macros.
439
440 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
441
442 PR target/6744
443 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
444 ASM_OPERANDS instructions.
445
446 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
447
448 PR target/7361
449 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
450 constant addresses only on 68HC12.
451
452 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
453
454 * cppfiles.c (stack_include_file): Correct test of whether
455 a dependency should be output.
456
457 2002-07-22 David Edelsohn <edelsohn@gnu.org>
458
459 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
460
461 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
462
463 * arm.md (movqi): If optimizing and we can create pseudos, use
464 a ZERO_EXTEND to load from memory, then copy the result into the
465 target.
466 (movhi): Likewise, but only for ARMv4.
467
468 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
469
470 * ssa-ccp.c (PHI_PARMS): Remove.
471
472 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
473
474 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
475 on big-endian targets.
476
477 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
478
479 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
480 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
481 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
482 New formatting macros.
483
484 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
485
486 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
487
488 * rtlanal.c (subreg_regno_offset): Return correct offset for
489 big endian paradoxical subregs.
490
491 * optabs.c (expand_vector_unop): Don't expand using sub_optab
492 if we got the wrong mode.
493
494 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
495 * genrecog.c (write_switch, write_cond): Use it.
496 * genemit.c (gen_exp): Likewise.
497
498 2002-07-22 Jakub Jelinek <jakub@redhat.com>
499
500 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
501
502 2002-07-22 Jakub Jelinek <jakub@redhat.com>
503
504 * c-decl.c (build_compound_literal): Defer compound literal decls
505 until until file end to emit them only if they are actually used.
506
507 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
508
509 * ra-build.c (check_conflict_numbers): Hide unused function.
510 (livethrough_conflicts_bb): Avoid automatic aggregate
511 initialization.
512 (parts_to_webs_1): Avoid `U' integer constant modifier.
513 (conflicts_between_webs): Wrap a variable in the macro controlling
514 its usage.
515 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
516 (dump_igraph, dump_graph_cost): Avoid string concatenation
517 (dump_static_insn_cost): Avoid automatic aggregate
518 initialization.
519 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
520 initialization.
521 (dump_cost): Avoid string concatenation
522
523 2002-07-21 Richard Henderson <rth@redhat.com>
524
525 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
526 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
527
528 2002-07-21 Richard Henderson <rth@redhat.com>
529
530 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
531 that are not unrolled completely.
532
533 2002-07-21 Richard Henderson <rth@redhat.com>
534
535 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
536 * loop.c (strength_reduce): Update.
537 * toplev.c (rest_of_compilation): Do unrolling in the first
538 loop pass, not the second.
539
540 2002-07-21 Richard Henderson <rth@redhat.com>
541
542 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
543 when flag_argument_noalias == 2.
544 * alias.c (nonoverlapping_memrefs_p): Handle that.
545 * print-rtl.c (print_mem_expr): Likewise.
546
547 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
548
549 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
550 instead of __negdi2 directly.
551
552 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
553
554 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
555 * function.c (SYMBOL__MAIN): Remove definition.
556 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
557 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
558 * profile.c (GCOV_INDEX_TO_BB): Remove.
559 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
560 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
561
562 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
563
564 * c-lex.c (GET_ENVIRONMENT): Remove.
565 * collect2.c (GET_ENV_PATH_LIST): Remove.
566 (prefix_from_env): Use GET_ENVIRONMENT.
567 * cppinit.c (GET_ENV_PATH_LIST): Remove.
568 (init_standard_includes): Use GET_ENVIRONMENT.
569 * defaults.h (GET_ENVIRONMENT): Define here if not already.
570 * gcc.c (GET_ENV_PATH_LIST): Remove.
571 (make_relative_prefix, process_command): Update.
572 * protoize.c (GET_ENV_PATH_LIST): Remove.
573 (do_processing): Update.
574
575 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
576
577 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
578 (grokdeclarator): Likewise.
579 * c-format.c (C_STD_NAME): Likewise.
580 * c-lex.c (interpret_integer): Likewise.
581 * c-typeck.c (build_array_ref): Likewise.
582 * cpplex.c (_cpp_lex_direct): Likewise.
583 * toplev.c (documented_lang_options): Likewise.
584
585 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
586
587 * c-format.c (T99_I, T99_UI): Remove.
588
589 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
590
591 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
592
593 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
594
595 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
596 do_local_cprop.
597
598 2002-07-21 Andreas Jaeger <aj@suse.de>
599
600 * reload1.c (fixup_abnormal_edges): Remove unused variable.
601
602 2002-07-21 Bernd Schmidt <bernds@redhat.com>
603
604 Improvements for the ifcvt pass from Michael Meissner, with patches
605 by Richard Sandiford <rsandifo@redhat.com>
606 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
607 * ifcvt.c (cond_exec_changed_p): New static variable.
608 (last_active_insn): New function, renamed from last_active_insn_p
609 and changed to return the last active insn in a basic block. All
610 callers updated.
611 (block_fallthru): New function.
612 (cond_exec_process_insns): New argument CE_INFO. Pass it to
613 IFCVT_MODIFY_INSN. All callers updated.
614 Return false if START or END are NULL.
615 Handle case where we're processing an insn that is already
616 conditional.
617
618 (noce_process_if_block): CE_INFO argument rather than
619 multiple args containing the involved basic blocks. All callers
620 changed.
621 (process_if_block, merge_if_block, find_if_block,
622 cond_exec_process_if_block): Likewise.
623
624 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
625 changed.
626 Use new function last_active_insn to simplify some code.
627 New code to handle multiple tests.
628 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
629 cond_exec_changed_p to TRUE.
630
631 (process_if_block): New code to handle multiple tests.
632 (merge_if_block): Likewise.
633 (find_if_header): New arg PASS. Changed to return the currently
634 processed basic block or NULL instead of true/false. All callers
635 changed.
636 Call IFCVT_INIT_EXTRA_FIELDS.
637 (block_jumps_and_fallthru_p): New function.
638 (find_if_block): Discover opportunities to convert multiple tests.
639 Add additional debugging output.
640 Update the ce_info structure before returning.
641
642 (if_convert): Run multiple passes of if-conversion.
643 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
644 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
645 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
646 these macros.
647
648 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
649
650 * gcse.c: Include cselib.h
651 (constptop_register): Break out from ...
652 (cprop_insn): ... here; kill basic_block argument.
653 (do_local_cprop, local_cprop_pass): New functions.
654 (one_cprop_pass): Call local_cprop_pass.
655
656 2002-07-20 Roger Sayle <roger@eyesopen.com>
657
658 * simplify-rtx.c (simplify_relational_operation): Optimize
659 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
660
661 2002-07-20 Michae Matz <matz@suse.de>
662
663 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
664
665 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
666
667 * cppexp.c (struct op): Add token pointer.
668 (check_promotion, CHECK_PROMOTION): New.
669 (optab): Update.
670 (_cpp_parse_expr): Update, use token pointer of struct op.
671 (reduce): Warn about change of sign owing to promotion.
672 * cppinit.c (cpp_handle_option): New warning if -Wall.
673 * cpplib.h (struct cpp_options): New member.
674
675 2002-07-19 David Edelsohn <edelsohn@gnu.org>
676
677 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
678 fpu list. Separate Power4 compare and delayed_compare. Correct
679 Power4 fpcompare.
680 (fix_truncdfsi2_internal): Restore FPR preference.
681 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
682 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
683
684 2002-07-19 Momchil Velikov <velco@fadata.bg>
685
686 * reload1.c (reload_as_needed): Duplicate oldpat.
687
688 2002-07-20 Alan Modra <amodra@bigpond.net.au>
689
690 PR optimization/7130
691 * loop.h (struct loop_info): Add "preconditioned".
692 * unroll.c (unroll_loop): Set it.
693 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
694
695 2002-07-19 Zack Weinberg <zack@codesourcery.com>
696
697 * rtl.def (CODE_LABEL): Remove slot 8.
698 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
699 (LABEL_ALTERNATE_NAME): Delete.
700 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
701 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
702
703 * final.c (output_alternate_entry_point): New.
704 (final_scan_insn): Use it instead of
705 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
706 of a case label being an alternate entry point.
707
708 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
709 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
710 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
711 (field deleted).
712 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
713
714 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
715 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
716 * doc/tm.texi: Delete documentation of
717 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
718
719 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
720
721 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
722 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
723 (LINK_SPEC): Define.
724 (STARTFILE_SPEC): Define.
725 (ENDFILE_SPEC): Define.
726
727 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
728 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
729
730 * config/mips/iris6-o32-gas.h: New file.
731 * config.gcc (mips-sgi-irix6*o32): Use it.
732
733 * config/mips/t-iris5-gas: New file.
734 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
735
736 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
737
738 * cppexp.c (ALWAYS_EVAL): Remove.
739 (optab, reduce): Always evaluate.
740 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
741 only if not skipping evaluation.
742
743 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
744
745 * config/avr/avr.c (debug_hard_reg_set): Remove.
746
747 2002-07-19 Chris Demetriou <cgd@broadcom.com>
748
749 * gcc.c (cpp_options): Include "%1" (cc1_spec).
750
751 2002-07-19 Richard Henderson <rth@redhat.com>
752
753 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
754
755 2002-07-19 Alan Modra <amodra@bigpond.net.au>
756
757 * prefix.c (update_path): Don't zap single `.' path components
758 unless followed by another `.' and fix typo last patch.
759
760 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
761
762 * cppexp.c (cpp_num_mul): Remove unused parameter.
763 (UNARY, BINARY, OTHER, binary_handler): Remove.
764 (ALWAYS_EVAL): New.
765 (optab): Update.
766 (reduce): Refactor to a large switch, don't use a function
767 pointer.
768
769 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
770
771 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
772
773 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
774
775 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
776 (sh_expand_binop_v2sf): Likewise.
777 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
778 (int_gpr_dest, trunc_hi_operand): New functions.
779 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
780 trunc_hi_operand.
781 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
782 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
783 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
784 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
785 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
786 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
787 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
788 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
789 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
790 (movsf_ie+1): Likewise.
791 (loaddi_trunc): Use int_gpr_dest predicate.
792 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
793 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
794 (casesi_worker_0+[12], casesi_worker): Likewise.
795 (shcompact_preserve_incoming_args): Likewise.
796 (mov_nop): Use any_register_operand predicate.
797 (mperm_w0): Use trunc_hi_operand predicate.
798
799 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
800
801 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
802 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
803 numbering.
804
805 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
806
807 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
808
809 2002-07-18 Richard Henderson <rth@redhat.com>
810
811 PR optimization/7147
812 * ifcvt.c (noce_get_condition): Make certain that the condition
813 is valid at JUMP.
814
815 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
816
817 * sh.c (barrier_align, push): Shut up compiler warnings.
818 (initial_elimination_offset,sh_media_init_builtins): Likewise.
819 (reg_no_subreg_operand): Delete.
820
821 2002-07-17 Bo Thorsen <bo@suse.de>
822
823 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
824 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
825 (STARTFILE_SPEC): Remove hardcoded library paths.
826 (ENDFILE_SPEC): Likewise.
827
828 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
829
830 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
831
832 * gcse.c (try_replace_reg): Do not return false positives.
833
834 2002-07-18 Alan Modra <amodra@bigpond.net.au>
835
836 * prefix.c: (update_path): Strip ".." components when prior dir
837 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
838
839 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
840 (ASM_OUTPUT_REG_POP): Likewise.
841
842 2002-07-18 Alan Modra <amodra@bigpond.net.au>
843
844 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
845 adjustments to first_reg for profiling case.
846 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
847 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
848 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
849 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
850 (ASM_OUTPUT_REG_POP): Define.
851 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
852 (ASM_OUTPUT_REG_POP): Undef.
853
854 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
855
856 * cpplib.c (do_sccs): Handle #sccs on all systems.
857 * system.h (SCCS_DIRECTIVE): Poison.
858 * config/darwin.h, config/freebsd.h, config/netbsd.h,
859 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
860 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
861 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
862 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
863 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
864 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
865 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
866 Remove all references to SCCS_DIRECTIVE.
867 * doc/cpp.texi, doc/tm.texi: Update.
868
869 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
870
871 * regrename.c (maybe_mode_change): New function.
872 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
873
874 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
875
876 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
877 suppress addition when either ct or cf are zero.
878
879 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
880 Glen Nakamura <glen@imodulo.com>
881
882 PR optimization/6713
883 * loop.c (loop_givs_rescan): Explicitly delete the insn that
884 sets a non-replaceable giv after issuing the new one.
885
886 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
887
888 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
889 eval_token): Clarify and correct use of "bool" variables.
890 * cpplib.h (struct cpp_options): Similarly.
891 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
892 * cpptrad.c (recursive_macro): Similarly.
893
894 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
895
896 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
897 SHmedia code.
898
899 * sh.md (cmpgtudi_media): Remove spurious @.
900
901 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
902 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
903
904 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
905 * sh-protos.h (sh_initialize_trampoline): Declare.
906 * sh.c (sh_initialize_trampoline): New function.
907 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
908 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
909 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
910 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
911 * sh.md (initialize_trampoline, double_shori): New patterns.
912 (initialize_trampoline_compact): Likewise.
913 (shmedia32_initialize_trampoline_big): Remove.
914 (shmedia32_initialize_trampoline_little): Likewise.
915
916 * sh-protos.h (binary_float_operator): Remove declaration.
917 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
918 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
919 (unary_float_operator, sh_expand_unop_v2sf): New functions.
920 (sh_expand_binop_v2sf): Likewise.
921 (zero_vec_operand): Delete.
922 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
923 all non-shared ones.
924 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
925 Enable nsb and byterev.
926 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
927 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
928 in general regs.
929 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
930 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
931 immediate operands.
932 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
933 Add DF_HI_REGS.
934 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
935 lowpart fp regs - only for big endian for now.
936 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
937 when FPU is in use.
938 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
939 (LOAD_EXTEND_OP): NIL for SImode.
940 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
941 general and fp registers is 4.
942 PREDICATE_CODES: Amend binary_float_operator entry.
943 Remove zero_vec_operand. Add unary_float_operator.
944 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
945 subreg SET_DEST.
946 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
947 (truncdiqi2): Do sign extension.
948 (movsi_media, movdi_media): Allow to use r63 to an fp register.
949 (movdf_media, movsf_media): Likewise.
950 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
951 Collapse to one define_insn_and_split. Allow immediate sources.
952 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
953 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
954 (movv4sf): Allow immediate sources.
955 (movsf_media_nofpu+1): Don't split moves to FP registers.
956 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
957 (movv8qi_i+3): Check against CONST0_RTX.
958 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
959 for input and output operands. Fix argument 3 to gen_mextr_rl.
960 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
961 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
962 (mshf0_w, fipr, ftrv): Likewise.
963 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
964
965 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
966
967 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
968 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
969 * arm.c: Similarly.
970
971 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
972
973 * config/mips/mips-protos.h (mips_sign_extend): Declare.
974 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
975 (TARGET_SWITCHES): Remove debugh.
976 (ISA_HAS_TRUNC_W): New macro.
977 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
978 (PREDICATE_CODES): Remove se_nonimmediate_operand.
979 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
980 any SImode move_operand.
981 (se_nonimmediate_operand): Remove.
982 (mips_sign_extend): New.
983 (mips_move_2words): Use it for sign-extended source operands.
984 (override_options): Allow integers to be put into single FPRs.
985 (mips_secondary_reload_class): Handle integers in float registers.
986 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
987 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
988 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
989 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
990 (fix_truncdfdi2): Provide only a single alternative, in which the
991 integer is in a float register. Depend on TARGET_FLOAT64 rather
992 than TARGET_64BIT.
993 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
994 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
995 (movdi_internal2): Don't allow the source operand to be sign-extended.
996 Add alternatives for float registers.
997 (*movdi_internal2_extend): New. Version of movdi_internal2 that
998 allows sign-extension.
999 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
1000 (movsi_internal2): Rename to movsi_internal. Add alternatives for
1001 float registers. Remove TARGET_DEBUG_H_MODE test.
1002 (movhi_internal1): Rename to movhi_internal. Don't check
1003 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
1004 (movqi_internal1): Rename to movqi_internal and remove
1005 TARGET_DEBUG_H_MODE dependency.
1006 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
1007
1008 2002-07-16 Jim Wilson <wilson@redhat.com>
1009
1010 * toplev.c (lang_dependent_init): Create function context for
1011 init_expr_once.
1012
1013 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
1014
1015 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
1016 --gc-sections if -r.
1017 * config/cris/cris.h: Ditto.
1018
1019 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
1020
1021 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
1022 the comparison directly gives a mask suppress addition when cf is
1023 zero by complementing the mask.
1024
1025 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1026
1027 * Makefile.in: Delete references to enquire.
1028 * enquire.c: Move to contrib.
1029
1030 2002-07-16 Stan Shebs <shebs@apple.com>
1031
1032 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
1033 config/rs6000/darwin.h.
1034 (ASM_OUTPUT_SKIP): Ditto.
1035 (TEXT_SECTION_ASM_OP): Ditto.
1036 (DATA_SECTION_ASM_OP): Ditto.
1037 (ASM_APP_ON): Define.
1038 (ASM_APP_OFF): Define.
1039 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
1040 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
1041
1042 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
1043 (machopic_function_base_name): Declare result to be const.
1044 (machopic_non_lazy_ptr_name): Ditto.
1045 (machopic_stub_name): Ditto.
1046 * config/darwin-protos.h: Ditto for the prototypes.
1047
1048 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1049
1050 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
1051
1052 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1053
1054 * i386.md (prefetch): Fix for 64bit mode.
1055 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
1056
1057 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1058
1059 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
1060 * i386.c (x86_machine_dependent_reorg): New function.
1061 * i386-protos.h (x86_machine_dependent_reorg): Declare.
1062
1063 2002-07-16 Zack Weinberg <zack@codesourcery.com>
1064
1065 * builtins.c (std_expand_builtin_va_start): Remove unused
1066 first argument.
1067 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
1068 std_expand_builtin_va_start with just two arguments.
1069 * expr.h: Update prototypes.
1070
1071 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
1072 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
1073 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
1074 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
1075 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
1076 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
1077 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
1078 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
1079 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
1080 argument from all implementations of EXPAND_BUILTIN_VA_START
1081 and all uses of std_expand_builtin_va_start.
1082
1083 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
1084
1085 * regrename.c (copy_value): Don't record high part copies.
1086
1087 2002-07-16 Steve Ellcey <sje@cup.hp.com>
1088
1089 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
1090 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
1091 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
1092
1093 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1094
1095 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
1096
1097 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
1098 into addsi3 using register class "x" and "y".
1099
1100 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
1101 "earlyclobber" constraint modifier for some alternative.
1102
1103 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
1104 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
1105 unordered.
1106 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
1107
1108 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
1109 (TARGET_SWITCHES): Add -mieee-compare option.
1110 (OVERRIDE_OPTIONS): 32332 is a subset of
1111 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
1112 (TARGET_SWITCHES): Fix description of bitfield option.
1113 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
1114 -mieee-compare option. Remove 32332 flag.
1115
1116 2002-07-16 Steve Ellcey <sje@cup.hp.com>
1117
1118 * explow.c (convert_memory_address): Remove special handling
1119 when POINTERS_EXTEND_UNSIGNED < 0.
1120 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
1121 (movedi_symbolic): Fix typo.
1122 (load_fptr): Remove mode restriction so it works for SI and DI.
1123 (load_fptr_internal1): Ditto.
1124 (load_gprel): Ditto.
1125 (load_symptr_internal1): Ditto.
1126 (call_pic): Ditto.
1127 * config/ia64.c (call_operand): Modify mode check.
1128 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
1129 (ia64_expand_move): Ditto.
1130 (ia64_assemble_integer): Handle SImode function pointers.
1131 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
1132 (ia64_expand_op_and_fetch): Ditto.
1133 (ia64_expand_compare_and_swap): Ditto.
1134 (ia64_expand_lock_test_and_set): Ditto.
1135 (ia64_expand_lock_release): Ditto.
1136
1137 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1138
1139 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
1140
1141 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1142 Richard Earnshaw <rearnsha@arm.com>
1143
1144 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
1145 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
1146
1147 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
1148
1149 * arm.md (stack_tie): New insn. Use an idiom that the alias code
1150 understands to be a memory clobber.
1151 * arm.c (arm_expand_prologue): Use it.
1152
1153 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
1154
1155 * ra-rewrite.c: #include reload.h, insn-config.h
1156 * ra-build.c: #include reload.h
1157 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
1158 depend on reload.h, insn-config.h.
1159
1160 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1161
1162 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
1163 the same size as a word.
1164
1165 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
1166 BYTES_BIG_ENDIAN into account.
1167
1168 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1169
1170 * i386.md (prefetch): Fix for 64bit mode.
1171 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
1172
1173 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
1174
1175 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1176
1177 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
1178
1179 2002-07-15 Zack Weinberg <zack@codesourcery.com>
1180
1181 * ginclude/varargs.h: Replace with stub which issues #error.
1182 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
1183 __builtin_va_start.
1184
1185 * builtins.def (BUILT_IN_VARARGS_START): Delete.
1186 (BUILT_IN_VA_START): New.
1187 * builtins.c (expand_builtin_va_start): Eliminate first
1188 argument and code to implement pre-ISO varargs.
1189 (std_expand_builtin_va_start): Ignore first argument; it is
1190 always 1.
1191 (expand_builtin): Handle BUILT_IN_VA_START and
1192 BUILT_IN_STDARG_START identically. Delete
1193 BUILT_IN_VARARGS_START case.
1194
1195 * function.c (assign_parms): Delete hide_last_arg and all
1196 its uses.
1197 (mark_varargs): Delete function.
1198 * function.h (struct function): Delete 'varargs' bit.
1199 (current_function_varargs): Delete macro.
1200 * tree.h: Don't declare mark_varargs.
1201
1202 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
1203 (c_expand_body): Don't call mark_varargs.
1204 * c-objc-common.c: Handle BUILT_IN_VA_START and
1205 BUILT_IN_STDARG_START identically. Delete
1206 BUILT_IN_VARARGS_START case.
1207 * c-tree.h: Don't declare c_mark_varargs.
1208 * c-parse.in: Remove grammar rules for '&...' (which has been
1209 commented out since before 2.7.2) and for '...' in K+R
1210 argument declarations.
1211
1212 * builtins.c, function.c, integrate.c, sibcall.c,
1213 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
1214 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
1215 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
1216 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
1217 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
1218 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
1219 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
1220 config/stormy16/stormy16.c: Delete all references to
1221 current_function_varargs, and code predicated on that flag.
1222
1223 * config/alpha/alpha.c (alpha_va_start),
1224 config/arc/arc.c (arc_va_start),
1225 config/i386/i386.c (ix86_va_start),
1226 config/mips/mips.c (mips_va_start),
1227 config/mn10300/mn10300.c (mn10300_va_start),
1228 config/rs6000/rs6000.c (rs6000_va_start),
1229 config/s390/s390.c (s390_va_start),
1230 config/sh/sh.c (sh_va_start),
1231 Ignore first argument; it is always 1.
1232
1233 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
1234 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
1235 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
1236 Delete m68hc11_va_start.
1237 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
1238 No need to define EXPAND_BUILTIN_VA_START.
1239
1240 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
1241 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
1242
1243 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
1244
1245 PR optimization/7153
1246 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
1247 dies in more than one insn.
1248
1249 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
1250
1251 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
1252
1253 2002-07-15 Michael Matz <matz@suse.de>,
1254 Daniel Berlin <dberlin@dberlin.org>,
1255 Denis Chertykov <denisc@overta.ru>
1256
1257 Add a new register allocator.
1258
1259 * ra.c: New file.
1260 * ra.h: New file.
1261 * ra-build.c: New file.
1262 * ra-colorize.c: New file.
1263 * ra-debug.c: New file.
1264 * ra-rewrite.c: New file.
1265
1266 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
1267 (ra-rewrite.o): New .o files for libbackend.a.
1268 (GTFILES): Add basic-block.h.
1269
1270 * toplev.c (flag_new_regalloc): New.
1271 (f_options): New option "new-ra".
1272 (rest_of_compilation): Call initialize_uninitialized_subregs()
1273 only for the old allocator. If flag_new_regalloc is set, call
1274 new allocator, instead of local_alloc(), global_alloc() and
1275 friends.
1276
1277 * doc/invoke.texi: Document -fnew-ra.
1278 * basic-block.h (FOR_ALL_BB): New.
1279 * config/rs6000/rs6000.c (print_operand): Write small constants
1280 as @l+80.
1281
1282 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
1283 (df_reg_table_realloc): Make size at least as large as max_reg_num().
1284 (df_insn_table_realloc): Size argument now is absolute, not relative.
1285 Changed all callers.
1286
1287 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
1288 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
1289
1290 2002-06-20 Michael Matz <matz@suse.de>
1291
1292 * df.h (struct ref.id): Make unsigned.
1293 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
1294
1295 2002-06-13 Michael Matz <matz@suse.de>
1296
1297 * df.h (DF_REF_MODE_CHANGE): New flag.
1298 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
1299 involving subregs with invalid mode changes, when
1300 CLASS_CANNOT_CHANGE_MODE is defined.
1301
1302 2002-05-07 Michael Matz <matz@suse.de>
1303
1304 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
1305
1306 2002-05-03 Michael Matz <matz@suse.de>
1307
1308 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
1309
1310 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
1311
1312 * regclass.c (regclass): Work with all regs which have sets or
1313 refs.
1314 (reg_scan_mark_refs): Count regs inside (clobber ...).
1315
1316 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
1317
1318 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
1319 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
1320 add new refs.
1321 (df_bb_refs_update): Don't clear insns_modified here, ...
1322 (df_analyse): ... but here.
1323
1324 * sbitmap.c (dump_sbitmap_file): New.
1325 (debug_sbitmap): Use it.
1326
1327 * sbitmap.h (dump_sbitmap_file): Add prototype.
1328
1329 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
1330
1331 * df.c (df_insn_modify): Grow the UID table if necessary, rather
1332 than assume all emits go through df_insns_modify.
1333
1334 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
1335
1336 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
1337 increase REG_N_REFS (like flow does), so that regclass doesn't
1338 think a reg is useless, and thus, not calculate a class, when it
1339 really should have.
1340
1341 2001-01-28 Daniel Berlin <dberlin@redhat.com>
1342
1343 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
1344 dataflow analysis.
1345
1346 2002-07-15 Jakub Jelinek <jakub@redhat.com>
1347
1348 PR middle-end/7245
1349 * config/i386/i386.c (const_int_1_31_operand): New.
1350 * config/i386/i386.h (PREDICATE_CODES): Add it.
1351 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
1352 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
1353 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
1354
1355 2002-07-14 Alan Modra <amodra@bigpond.net.au>
1356
1357 PR target/7282
1358 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
1359 (floatunssidf2): Likewise.
1360 (floatsidf_ppc64): New insn_and_split.
1361 (floatunssidf_ppc64): Likewise.
1362
1363 2002-07-14 Andreas Jaeger <aj@suse.de>
1364
1365 * config.gcc (sh64): Remove unused
1366 target_requires_64bit_host_wide_int.
1367
1368 2002-07-12 Roger Sayle <roger@eyesopen.com>
1369
1370 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
1371 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
1372 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
1373 whether clear_by_pieces should be used to clear storage.
1374 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
1375
1376 * doc/tm.texi: Document these two new target macros.
1377
1378 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
1379
1380 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
1381 the scratch register.
1382 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
1383 of it, forbid reload to use it.
1384
1385 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
1386
1387 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
1388 usage on 64-bit hosts, return value was truncated to 32 bits.
1389
1390 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
1391
1392 * simplify-rtx.c (simplify_subreg): Handle floating point
1393 CONST_DOUBLEs. When an integer subreg of a smaller mode than
1394 the element mode is requested, compute a subreg with an
1395 integer mode of the same size as the element mode first.
1396
1397 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1398
1399 * combine.c (try_combine): When converting a paradoxical subreg
1400 to an extension, take LOAD_EXTEND_OP into account.
1401
1402 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1403
1404 * config.gcc (mips-sgi-irix6*o32): New configuration.
1405
1406 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
1407 configurations.
1408 * configure: Regenerate.
1409
1410 * config/mips/iris6-o32-as.h: New file.
1411 * config/mips/iris6-o32.h: New file.
1412
1413 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
1414 (NM_FLAGS): Define.
1415 (HAVE_AS_SHF_MERGE): Undefine.
1416
1417 * config/mips/t-iris5-as: New file.
1418 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1419
1420 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
1421 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
1422 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
1423 dp-bit.c, fp-bit.c): Move ...
1424 * config/mips/t-iris5-6: ... here.
1425 New file, shared by IRIX 5 and IRIX 6.
1426 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
1427 mips-sgi-irix5*): Use it.
1428
1429 * config/mips/iris6.h: Remove duplicate comment.
1430
1431 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1432 !TARGET_IRIX6]: Define.
1433 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
1434
1435 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
1436
1437 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1438
1439 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
1440 and delete code to force constant to register.
1441 * pa-protos.h (adddi3_operand): Add prototype.
1442 * pa.c (adddi3_operand): New function.
1443
1444 2002-07-11 Roger Sayle <roger@eyesopen.com>
1445
1446 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
1447 non-ANSI builtin functions.
1448
1449 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
1450
1451 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
1452 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
1453 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
1454 (gen_const_vector_0): Use it.
1455
1456 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1457
1458 * pa.md (adddi3): For 32-bit targets, force constants to a register
1459 if they don't fit in an 11-bit immediate. Change insn predicate to
1460 arith11_operand. Remove comment.
1461 * pa.c (cint_ok_for_move): Fix comment.
1462 (emit_move_sequence): Don't directly split DImode constants on 32-bit
1463 targets.
1464
1465 2002-07-11 Tim Josling <tej@melbpc.org.au>
1466
1467 Remove front end hard coding from gengtype.c.
1468
1469 * Makefile.in
1470 (STAGESTUFF): add gtyp-gen.h
1471 (GTFILES): Remove front end specific files.
1472 (GTFILES_FILES_LANGS): New, from configure..
1473 (GTFILES_FILES_FILES): Likewise.
1474 (GTFILES_LANG_DIR_NAMES): Likewise.
1475 (GTFILES_SRCDIR): Likewise.
1476 (gtyp-gen.h): Build from configure information.
1477 (s-gtype): Remove command line parameters from gengtype.
1478 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
1479 (mostlyclean): Delete files generated by and for gengtype.
1480
1481 * c-config-lang.in: New file.
1482
1483 * configure.in (all_gtfiles_files_langs): New. Accumulate files
1484 for each language.
1485 (all_gtfiles_files_files): New. Accumulate language for each file
1486 accumulated.
1487 (gtfiles): Pick up value for C.
1488 (srcdir): AC-SUBST this variable.
1489 (all_gtfiles_files_langs): AC-SUBST this variable.
1490 (all_gtfiles_files_files): AC-SUBST this variable.
1491
1492 * configure: Regenerate.
1493
1494 * gengtype-lex.l (parse_file): Make parameter const.
1495
1496 * gengtype.c (toplevel): include gtyp-gen.h.
1497 (BASE_FILE_<language> unnamed enum): Delete.
1498 (lang_names): Delete (replaced by gtyp-gen.h)
1499 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
1500 all references.
1501 (NUM_GT_FILES): New.
1502 (NUM_LANG_FILES): New.
1503 (srcdir_len): New.
1504 (NUM_BASE_FILES): Change calculation.
1505 (open_base_files): Change prototype to avoid warning.
1506 (startswith): Delete.
1507 (get_file_basename): Iterate through generated language list not
1508 hard coded list.
1509 (get_base_file_bitmap): Use generated list of files and languages.
1510 (close_output_files): Add prototype to rmove warning.
1511 (main): Iterate through list of generated files from gtyp-gen.h
1512 rather than command line paramaters. Ignore duplicated file
1513 names.
1514
1515 * gengtype.h (parse_file): Amend prototype for const parameter.
1516
1517 * doc/sourcebuild.texi: Document gtfiles variable.
1518
1519 * doc/gty.texi: Document changes to gtfiles variable for front
1520 ends.
1521
1522 * objc/config-lang.in (gtfiles): Add files needed for objc front
1523 end.
1524
1525 2002-07-10 Roger Sayle <roger@eyesopen.com>
1526
1527 PR c/2454
1528 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
1529 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
1530
1531 2002-07-10 Roger Sayle <roger@eyesopen.com>
1532 Zack Weinberg <zack@codesourcery.com>
1533
1534 * builtins.def: Make the argument types of abort and exit
1535 independent of the front-end.
1536
1537 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1538
1539 * config/rs6000/linux64.h (ASM_SPEC): Define.
1540
1541 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
1542
1543 * config/rs6000/rs6000.c (emit_frame_save): New.
1544 (rs6000_frame_related): Replace reg2 before reg.
1545 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
1546 and eh_return registers.
1547
1548 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
1549
1550 Revert all patches for optimization of Complex .op. Real.
1551 * complex_part_zero_p: Remove
1552 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
1553 with x.
1554 * expand_cmplxdiv_wide: Ditto.
1555 * expand_binop: Ditto.
1556
1557 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1558
1559 * config/avr/avr.md: Fix two 0x80000000 constants to make them
1560 negative also on 64-bit hosts.
1561
1562 Default to -fno-reorder-blocks when optimizing for size.
1563 * config/avr/avr-protos.h (avr_optimization_options): Declare.
1564 * config/avr/avr.c (avr_optimization_options): New function.
1565 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
1566
1567 Optimize returning from simple functions.
1568 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
1569 * config/avr/avr.c (avr_simple_epilogue): New function.
1570 * config/avr/avr.md (return): New insn.
1571
1572 2002-07-10 Douglas B Rupp <rupp@gnat.com>
1573
1574 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
1575 HAS_INIT_SECTION to protection.
1576
1577 2002-07-10 Mark Mitchell <mark@codesourcery.com>
1578
1579 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
1580 deprecated.
1581
1582 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
1583
1584 * combine.c (gen_lowpart_for_combine): Handle vector modes.
1585 Supply non-VOID mode to simplify_gen_subreg.
1586
1587 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
1588
1589 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
1590
1591 2002-07-10 Jeffrey A Law <law@redhat.com>
1592
1593 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
1594 as appropriate.
1595
1596 * mn10200.c (expand_epilogue): Fix test to determine which scratch
1597 register to use.
1598
1599 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
1600
1601 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
1602 Get mode from dest.
1603 If simplify_gen_subreg fails, try next equivalent.
1604
1605 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
1606
1607 * diagnostic.h: #include location.h
1608 (location_t): Move definition to..
1609 * location.h: ... here. New file.
1610 * tree.h: #include location.h
1611 (DECL_SOURCE_LOCATION): New macro.
1612 (DECL_SOURCE_FILE): Use.
1613 (DECL_SOURCE_LINE): Likewise.
1614 (struct tree_decl): REplace filename and linenum with locus.
1615 * Makefile.in (TREE_H): add location.h
1616 (diagnostic.o): Depends on gt-location.h
1617 (gt-location.h): Depends on s-gtype
1618
1619 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
1620
1621 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
1622 TARGET_OS_CPP_BUILTINS.
1623 * config/rs6000/aix31.h: Likewise.
1624 * config/rs6000/aix41.h: Likewise.
1625 * config/rs6000/aix43.h: Likewise.
1626 * config/rs6000/aix51.h: Likewise.
1627 * config/rs6000/beos.h: Likewise.
1628 * config/rs6000/darwin.h: Likewise.
1629 * config/rs6000/eabi.h: Likewise.
1630 * config/rs6000/eabisim.h: Likewise.
1631 * config/rs6000/linux.h: Likewise.
1632 * config/rs6000/linux64.h: Likewise.
1633 * config/rs6000/lynx.h: Likewise.
1634 * config/rs6000/mach.h: Likewise.
1635 * config/rs6000/rtems.h: Likewise.
1636 * config/rs6000/sysv4.h: Likewise.
1637 * config/rs6000/vxppc.h: Likewise.
1638
1639 2002-07-09 Devang Patel <dpatel@apple.com>
1640 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
1641 Do not allow ObjC objects as a parameter type for Objective-C methods.
1642 My previous patch restricted 'struct' also.
1643
1644 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
1645
1646 * cpperror.c (cpp_error): Default to directive_line within
1647 directives here.
1648 * cppexp.c (cpp_interpret_integer): Only use traditional
1649 number semantics in directives.
1650 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
1651 (do_include_common): Similarly.
1652 * cpptrad.c (scan_out_logical_line): Implement accurate
1653 quoting of <> in #include.
1654 * doc/cpp.texi: Update.
1655
1656 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
1657 J"orn Rennecke <joern.rennecke@superh.com>
1658
1659 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
1660 * sh.md (attribute issues): Replace with:
1661 (attribute pipe_model). All users changed.
1662 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
1663 All users changed.
1664 (function units sh5issue, sh5fds): New.
1665 (attribute is_mac_media): New.
1666 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
1667 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
1668 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
1669 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
1670 (call_media, call_value_media, sibcall_media): Likewise.
1671 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
1672 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
1673 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
1674 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
1675 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
1676 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
1677 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
1678 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
1679 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
1680 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
1681 (truncdfsf2_media): Likewise.
1682 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
1683 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
1684
1685 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
1686
1687 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
1688 * sh.c (general_extend_operand, inqhi_operand): New functions.
1689 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
1690 alternatives using 'N' modifier. Add type.
1691 (adddi3z_media): Likewise. Enable generator function generation.
1692 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
1693 exact predicates / constraints. Add type.
1694 (subsi3): Allow 0 for SHMEDIA.
1695 (udivsi3_i4_media): Use match_operand for input values
1696 rather than hard registers.
1697 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1698 unnecessarily through hard registers. Keep copies of pseudo
1699 registers outside of the libcall sequence.
1700 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
1701 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
1702 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
1703 (extendhidi2, extendqidi2): Likewise.
1704 (andsi3_compact): Name.
1705 (andcdi3): Enable generator function generation.
1706 (zero_extendhisi2, zero_extendqisi2): Rename to
1707 (zero_extendhisi2_compact, zero_extendqisi2_compact).
1708 (extendhisi2, extendqisi2): Rename to
1709 (extendhisi2_compact, extendqisi2_compact).
1710 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
1711 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
1712 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
1713 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
1714 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
1715 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
1716 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
1717 (shmedia32_initialize_trampoline_big): Likewise.
1718 (shmedia32_initialize_trampoline_little): Likewise.
1719 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
1720 (negdi2): Remove spurious T clobber.
1721 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
1722 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
1723 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
1724 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
1725 (ic_invalidate_line_media): Write back data cache before invalidating
1726 instruction cache. Add type.
1727 (movsf_media): Sign-extend when the destination is a general
1728 purpose register. Add type.
1729 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
1730 (casesi_worker_0+1): Only increment ref count for proper label.
1731 (casesi_worker_0+2): Likewise.
1732
1733 2002-07-09 Mark Mitchell <mark@codesourcery.com>
1734
1735 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
1736
1737 2002-07-09 Steve Ellcey <sje@cup.hp.com>
1738
1739 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
1740 from Pmode to ptr_mode.
1741 (get_exception_pointer): Ditto.
1742 (connect_post_landing_pads): Ditto.
1743 (dw2_build_landing_pads): Ditto.
1744
1745 2002-07-08 Steve Ellcey <sje@cup.hp.com>
1746 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
1747 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
1748 (handle_pragma_redefine_extname): Change to use new function.
1749
1750 2002-07-08 Roger Sayle <roger@eyesopen.com>
1751
1752 * combine.c (combine_simplify_rtx): Add an explicit cast
1753 to avoid signed/unsigned comparison warning.
1754 (simplify_if_then_else): Likewise.
1755 (extended_count): Likewise.
1756 (simplify_shift_const): Likewise.
1757 (simplify_comparison): Likewise.
1758
1759 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
1760
1761 * config/mips/mips.md: Add imadd type. Update scheduler description
1762 to use imadd as well as imul.
1763 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
1764 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
1765 (*mul_sub_si): Likewise for first alternative. Change second
1766 alternative from imul to multi.
1767
1768 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
1769
1770 * c-common.c (c_common_post_options): Update prototype;
1771 don't init backends if preprocessing only.
1772 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
1773 * langhooks.h (struct lang_hooks): Update post_options to
1774 return a boolean.
1775 * toplev.c (parse_options_and_default_flags, do_compile,
1776 lang_independent_init): Update prototypes. Allow the
1777 front end to specify that there is no need to initialize
1778 the back end.
1779 (general_init): Move call to hex_init here...
1780 (toplev_main): ...from here. Pass flag for back end init
1781 suppression.
1782
1783 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1784
1785 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
1786 (PREDICATE_CODES): Add entries for equality_comparison_operator,
1787 greater_comparison_operator and less_comparison_operator.
1788 * sh.c (print_operand): Add '\'' code. Make 'o' handle
1789 more operators.
1790 (equality_comparison_operator): New function.
1791 (greater_comparison_operator, less_comparison_operator): Likewise.
1792 * sh.md (beq_media_i): Disable generator function generation.
1793 Use match_operator to handle a whole class of comparisons. Add
1794 modifier in output template to provide branch prediction. Add type.
1795 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
1796 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
1797 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
1798 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
1799
1800 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
1801
1802 Emit MMIX function prologue and epilogue as rtl.
1803 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
1804 not unprototyped get_hard_reg_initial_val.
1805 ("call_value", "nonlocal_goto_receiver"): Ditto.
1806 ("return"): Make define_expand. Move real insn to...
1807 ("*expanded_return"): New pattern.
1808 ("prologue", "epilogue"): New define_expands.
1809 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
1810 (struct machine_function): New member in_prologue.
1811 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
1812 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
1813 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
1814 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
1815 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
1816 (LOCAL_REGNO): Define. Adjust comment.
1817 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
1818 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
1819 leaf_function_p.
1820 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
1821 the prologue.
1822 (mmix_target_asm_function_prologue): Make static. Just mark that
1823 the prologue is being emitted. Move guts to...
1824 (mmix_expand_prologue): New function. Adjust for emitting
1825 prologue as rtl. For sizes, use HOST_WIDE_INT only.
1826 (mmix_target_asm_function_epilogue): Make static. Simply emit a
1827 \n. Move guts to...
1828 (mmix_expand_epilogue): New function. Adjust for emitting
1829 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
1830 (mmix_target_asm_function_end_prologue): Mark that the prologue
1831 has ended.
1832 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1833 (mmix_conditional_register_usage): Improve comments.
1834 (mmix_local_regno): New function.
1835 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
1836 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
1837 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
1838 (mmix_get_hard_reg_initial_val): Ditto.
1839
1840 2002-07-06 Andreas Jaeger <aj@suse.de>
1841
1842 * toplev.c (set_fast_math_flags): Don't use ISO C style function
1843 definitions.
1844 * gengtype.c (open_base_files): Likewise.
1845 (close_output_files): Likewise.
1846 * tracer.c (find_best_predecessor): Likewise.
1847 (find_best_successor): Likewise.
1848 (ignore_bb_p): Likewise.
1849
1850 2002-07-05 Roger Sayle <roger@eyesopen.com>
1851
1852 PR c++/7099
1853 * builtin-attrs.def: Define new attribute lists for use in
1854 builtins.def.
1855 * builtins.def [DEF_BUILTIN]: Modify to take an additional
1856 ATTRS argument, an enumerated value defined in builtin-attrs.def
1857 that represents the attribute list for the builtins. Modify
1858 all builtin functions to pass an appropriate attribute list.
1859 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
1860 their required noreturn attributes.
1861 * tree.h (enum_builtin_function): Ignore the additional parameter
1862 to DEF_BUILTIN.
1863 * builtins.c (built_in_names): Likewise.
1864 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
1865 argument with a tree representing the functions attribute list.
1866 Pass this "attrs" argument to builtin_function. No longer handle
1867 the noreturn_p processing manually.
1868 (built_in_attributes): Move the definitions from builtin-attrs.def
1869 before c_common_nodes_and_builtins.
1870 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
1871 DEF_BUILTIN, passing it to both builtin_function and the changed
1872 builtin_function_2.
1873
1874 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
1875 __builtin__exit and __builtin__Exit.
1876
1877 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1878
1879 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1880 QI mode registers in soft registers.
1881 ("zero_extendqihi2"): Do not take into account soft registers
1882 for register allocation (use '*' constraint).
1883
1884 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1885
1886 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1887 it is dead.
1888 ("*ashrsi3"): Likewise.
1889 ("*lshrsi3"): Likewise.
1890
1891 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
1892
1893 * genautomata.c (output_max_insn_queue_index_def): Take latencies
1894 into account.
1895
1896 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1897
1898 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1899 address computation and memory moves.
1900
1901 2002-07-03 Mark Mitchell <mark@codesourcery.com>
1902
1903 PR c++/6706
1904 * dwarfout.c (output_reg_number): Fix warning message.
1905 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1906 before using it.
1907
1908 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1909
1910 * gcc/gcc.c (asm_debug): Move initialization ...
1911 (init_spec): ... here.
1912
1913 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
1914
1915 * c-parse.in (extdef): Append ';'.
1916 (old_style_parm_decls): Append ';'.
1917
1918 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1919
1920 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1921 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1922 to gcc_cv_as_gstabs_flag.
1923 * configure: Rebuilt.
1924
1925 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
1926
1927 * ggc.h (ggc_add_root): Document as obsolete.
1928
1929 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
1930
1931 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1932 (mshflo_w): Likewise.
1933
1934 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1935
1936 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1937 vector mode subregs of constants to finding integer mode
1938 subregs of constants.
1939 * cse.c (cse_insn): Use simplify_gen_subreg.
1940 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1941 From a vector mode expression of different size than the
1942 target mode.
1943
1944 2002-07-03 Eric Christopher <echristo@redhat.com>
1945
1946 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1947 * config/mips/mips.h: Remove deprecated -m<processor> options
1948 and cc1_cpu_spec associated.
1949 (CONSTANT_ADDRESS_P): Fix last patch.
1950 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1951 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1952 sunge_sf): Remove.
1953
1954 2002-07-03 Stan Shebs <shebs@apple.com>
1955
1956 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1957 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1958 (CPP_SPEC): Remove insertion of APPLE_CC definition.
1959
1960 2002-07-03 Roger Sayle <roger@eyesopen.com>
1961
1962 * combine.c (struct_undo): Change types of recorded substitutions
1963 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1964 (do_SUBST_INT): Change types of the substitution from unsigned int
1965 to int, to avoid compilation warning from SUBST_INT's only caller.
1966
1967 (make_extraction): Add cast to avoid compilation warning.
1968 (force_to_mode): Remove cast to avoid compilation warning.
1969
1970 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
1971 Jeff Law <law@redhat.com>
1972
1973 * i386.md (length_immediate attribute): Fix typo.
1974 (length_address attribute): Likewise.
1975 (modrm attribute): Set it to 0 for immediate call instructions.
1976 (jcc_1 pattern): Set modrm attribute to 0.
1977 (jcc_2 pattern ): Likewise.
1978 (jump pattern): Likewise.
1979 (doloop_end_internal pattern): Explicitly set length.
1980 (leave pattern): Fix typo.
1981 (leave_rex64 pattern): Likewise.
1982
1983 2002-07-03 David Edelsohn <edelsohn@gnu.org>
1984
1985 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1986 in FPR as preference.
1987 (fctiwz): Same.
1988 (floatdidf2, fix_truncdfdi2): Same.
1989 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1990 (floatditf2): Same.
1991 (floatsitf2, fix_trunctfsi2): SImode in GPR.
1992 (ctrdi): Remove FPR alternative and splitter.
1993
1994 2002-07-03 Will Cohen <wcohen@redhat.com>
1995
1996 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1997
1998 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
1999
2000 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
2001 than UNITS_PER_WORD, unless this is little endian and the first unit
2002 in this word. Let extract_bit_field decide how to load an element.
2003 Force arguments to matching mode.
2004 (expand_vector_unop): Likewise.
2005
2006 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
2007 consist of word_mode elements.
2008 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
2009 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
2010 (build_unary_op): Allow vector types for BIT_NOT_EPR.
2011 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
2012 CONST_VECTOR.
2013 * optabs.c (expand_vector_binop): Try to perform operation in
2014 smaller vector modes with same inner size. Add handling of AND, IOR
2015 and XOR. Reject expansion to inner-mode sized scalars when using
2016 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
2017 (expand_vector_unop): Try to perform operation in smaller vector
2018 modes with same inner size. Add handling of one's complement.
2019 When there is no vector negate operation, try a vector subtract
2020 operation. Use simplify_gen_subreg on constants.
2021 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
2022 constants into smaller vectors with same inner mode, and to
2023 integer CONST_DOUBLEs.
2024
2025 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2026
2027 * c-parse.in (parsing_iso_function_signature): New variable.
2028 (extdef_1): New, copied from...
2029 (extdef): ... here. Reset parsing_iso_function_signature.
2030 (old_style_parm_decls): Reset parsing_iso_function_signature.
2031 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
2032 Warn about ISO C style function definitions.
2033 (nested_function, notype_nested_function): Reset
2034 parsing_iso_function_signature.
2035 (parmlist_2): Set parsing_iso_function_signature.
2036
2037 * doc/invoke.texi (-Wtraditional): Document new behavior.
2038
2039 2002-07-02 Chris Demetriou <cgd@broadcom.com>
2040
2041 * config.gcc (mips*el-*-*): Use tm_defines to set
2042 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
2043 * config/mips/little.h: Remove.
2044
2045 2002-07-02 Devang Patel <dpatel@apple.com>
2046
2047 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
2048 object as parameter. Prevent something like 'NSObject' to be
2049 used as the type for a method argument.
2050
2051 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
2052
2053 * cpptrad.c: Update comment.
2054
2055 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
2056
2057 * doc/cpp.texi: Update for traditional preprocessing changes.
2058 * goc/cppopts.texi: Similarly.
2059
2060 2002-07-02 Ziemowit Laski <zlaski@apple.com>
2061
2062 * c-parse.in (designator): Enable designated initializers if ObjC.
2063 (objcmessageexpr): Remove references to objc_receiver_context.
2064 * objc/objc-act.h (objc_receiver_context): Remove decl.
2065 * objc/objc-act.c (objc_receiver_context): Remove.
2066 (lookup_objc_ivar): Test objc_method_context instead of
2067 objc_receiver_context.
2068
2069 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
2070
2071 * sh.c (print_operand, case 'N'): Allow zero vector.
2072 (arith_reg_or_0_operand): Likewise.
2073 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
2074 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
2075 IOR, XOR, PLUS and SET and take their respective constant
2076 ranges into account.
2077 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
2078 * sh.md (subdi3, subdi3_media): Allow zero operand.
2079 (movv8qi_i+3): Only vector that is not split is the zero vector.
2080 Fix operand 3 to simplify_subreg.
2081 (movv2si_i): Split alternative 1.
2082 (mshfhi_l_di_rev+1): New splitter.
2083
2084 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
2085
2086 PR preprocessor/7029
2087 * cppinit.c (cpp_handle_option): Suppress warnings with an
2088 implicit "-w" for "-M" and "-MM".
2089 * doc/cppopts.texi: Update.
2090
2091 2002-07-01 Roger Sayle <roger@eyesopen.com>
2092
2093 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
2094 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
2095 builtin_function.
2096
2097 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2098
2099 * README.Portability: Fix typos.
2100
2101 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
2102
2103 PR target/7177
2104 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
2105 of indirections for register inside sign-extended mem part.
2106
2107 2002-07-01 Roger Sayle <roger@eyesopen.com>
2108
2109 * tree.h: Modify builtin_function interface to take an extra
2110 argument ATTRS, which is a tree representing an attribute list.
2111
2112 * c-decl.c (builtin_function): Accept additional parameter.
2113 * objc/objc-act.c (builtin_function): Likewise.
2114 * f/com.c (builtin_function): Likewise.
2115 * java/decl.c (builtin_function): Likewise.
2116 * ada/utils.c (builtin_function): Likewise.
2117 * cp/decl.c (builtin_function): Likewise.
2118 (builtin_function_1): Likewise.
2119
2120 * c-common.c (c_common_nodes_and_builtins): Pass an additional
2121 NULL_TREE argument to builtin_function. (builtin_function_2):
2122 Likewise.
2123 * cp/call.c (build_java_interface_fn_ref): Likewise.
2124 * objc/objc-act.c (synth_module_prologue): Likewise.
2125 * java/decl.c (java_init_decl_processing): Likewise.
2126 * f/com.c (ffe_com_init_0): Likewise.
2127
2128 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
2129 NULL_TREE argument to builtin_function.
2130 * config/arm/arm.c (def_builtin): Likewise.
2131 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
2132 * config/i386/i386.c (def_builtin): Likewise.
2133 * config/ia64/ia64.c (def_builtin): Likewise.
2134 * config/rs6000/rs6000.c (def_builtin): Likewise.
2135
2136 2002-07-01 Zack Weinberg <zack@codesourcery.com>
2137
2138 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
2139 * config/mips/t-isa3264: Likewise.
2140 * config/mmix/t-mmix: Likewise.
2141
2142 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2143
2144 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
2145
2146 2002-07-01 Roger Sayle <roger@eyesopen.com>
2147
2148 PR opt/4046
2149 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
2150 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
2151 B are truth values.
2152
2153 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
2154
2155 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
2156
2157 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
2158
2159 * README.Portability (Function prototypes): Give an example of
2160 declaring and defining a function with no arguments.
2161
2162 * README.Portability (Function prototypes): Document new
2163 variable-argument function macros.
2164
2165 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
2166
2167 * sh.c (langhooks.h): Include.
2168 (sh_init_builtins, sh_media_init_builtins): New functions.
2169 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
2170 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
2171 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
2172 (builtin_description): New struct tag.
2173 (signature_args, bdesc): New arrays.
2174 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
2175 (print_operand): Add 'N' modifier.
2176 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
2177 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
2178 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
2179 (CONST_COSTS): Add special case for SHmedia AND.
2180 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
2181 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
2182 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
2183 target_operand can also be const or unspec.
2184 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
2185 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
2186 (attribute type): Add new types.
2187 (anddi3): Add splitter.
2188 (movdi_const_16bit+1): Add code to handle vector constants and
2189 bitmasks efficiently.
2190 (shori_media): Have generator function made.
2191 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
2192 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
2193 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
2194 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
2195 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
2196 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
2197 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
2198 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
2199 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
2200 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
2201 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
2202 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
2203 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
2204 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
2205 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
2206 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
2207 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
2208 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
2209 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
2210 (ftrv): Likewise.
2211
2212 (fpu_switch+1, fpu_switch+2): Remove constraint.
2213
2214 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
2215
2216 * tree.c (build_function_type_list): Update function comment.
2217 Rename first argument to return_type.
2218
2219 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
2220
2221 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
2222 tradcif.y and related files.
2223
2224 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
2225
2226 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
2227
2228 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2229
2230 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
2231
2232 2002-06-30 Devang Patel <dpatel@apple.com>
2233
2234 * objc/objc-act.c (finish_file): Avoid finish_objc() if
2235 -fsyntax-only.
2236
2237 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
2238 Frank Ch. Eigler <fche@redhat.com>
2239 Matthew Green <mrg@redhat.com>
2240 Richard Henderson <rtl@redhat.com>
2241 Dave Hudson <dave.hudson@ubicom.com>
2242 Jeff Johnston <jjohnstn@redhat.com>
2243 Alan Lehotsky <apl@alum.mit.edu>
2244 Bernd Schmidt <bernds@redhat.com>
2245 Graham Stott <grahams@redhat.com>
2246
2247 * doc/extend.texi: Add ip2k port to description of attribute
2248 naked.
2249 * doc/install.texi (Specific): Add ip2k description.
2250 * doc/install-old.texi (Configurations): Add ip2k to possible
2251 cpu types.
2252 * doc/md.texi: Document ip2k constraints.
2253 * config/ip2k/crt0.S: New file.
2254 * config/ip2k/ip2k-protos.h: New file.
2255 * config/ip2k/ip2k.c: New file.
2256 * config/ip2k/ip2k.h: New file.
2257 * config/ip2k/ip2k.md: New file.
2258 * config/ip2k/libgcc.S: New file.
2259 * config/ip2k/t-ip2k: New file.
2260
2261 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
2262
2263 * config/mmix/mmix.md ("return"): New pattern.
2264 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
2265 (TARGET_USE_RETURN_INSN): New macros.
2266 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
2267 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
2268 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
2269 (MMIX_POP_ARGUMENT): New macro.
2270 (mmix_target_asm_function_prologue): When no epilogue is executed,
2271 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
2272 (mmix_print_operand) <case '.'>: New case.
2273 (mmix_print_operand_punct_valid_p): Match '.'.
2274 (mmix_use_simple_return): New function.
2275 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
2276 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
2277 -msingle-exit, -mno-single-exit.
2278 (MMIX Options): Ditto.
2279
2280 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
2281
2282 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
2283
2284 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2285
2286 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
2287
2288 2002-06-30 Alan Modra <amodra@bigpond.net.au>
2289
2290 * unroll.c (loop_iterations): Handle EQ loops.
2291
2292 2002-06-29 David Edelsohn <edelsohn@gnu.org>
2293
2294 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
2295 constraint in define_expand, not splitter.
2296 Formatting.
2297
2298 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
2299
2300 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
2301 build_function_type_list instead of build_function_type.
2302
2303 * config/ia64/ia64.c (ia64_init_builtins): Same.
2304
2305 * config/alpha/alpha.c (alpha_init_builtins): Same.
2306
2307 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
2308
2309 * config/arm/arm.c (arm_init_builtins): Same.
2310
2311 * tree.h: Add build_function_type_list prototype.
2312
2313 * tree.c (build_function_type_list): New.
2314
2315 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2316
2317 * collect2.c (scan_prog_file): Fix typo in message.
2318
2319 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
2320
2321 * fold-cont.c: Remove unused CHARMASK.
2322
2323 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
2324
2325 PR preprocessor/7150
2326 * cppmain.c (scan_translation_unit_trad): Simplify.
2327 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
2328
2329 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
2330
2331 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
2332 Don't use CPP_PREDEFINES.
2333 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
2334 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
2335 * config/i386/djgpp.h, config/i386/i386-coff.h,
2336 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2337 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2338 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
2339 config/i386/uwin.h: Similarly.
2340
2341 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2342
2343 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
2344 flag_inline_trees to enable inlining.
2345
2346 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
2347
2348 * configure.in (gcc_gxx_include_dir): Change to match versioned
2349 C++ headers if --enable-version-specific-runtime-libs is used.
2350 * configure: Regenerate.
2351
2352 2002-06-28 Jan Hubicka <jh@suse.cz>
2353
2354 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
2355
2356 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
2357
2358 * combine.c (combine_simplify_rtx): Pass the mode of the
2359 shift count, not the shift operation when trying to simplify
2360 a shift on a SHIFT_COUNT_TRUNCATED target.
2361
2362 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2363
2364 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
2365 avoid the auto increment addressing modes.
2366 ("*subsi3"): Likewise.
2367 (split for add/sub on address): For 68HC12 push the value on
2368 the stack and do the operation with a pop.
2369
2370 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2371
2372 * cpplib.c (_cpp_handle_directive): Move #define-specific
2373 code to the #define handler...
2374 (do_define): ...here.
2375 (lex_macro_node): No longer a need to check for comments here.
2376
2377 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2378
2379 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
2380 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2381 Declare.
2382 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
2383 do not reorder basic blocks at the end when optimizing for size.
2384
2385 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2386
2387 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
2388 (m68hc11_make_autoinc_notes): New function.
2389 (m68hc11_split_move): Be very cautious when spliting a move with
2390 auto increment/decrement modes because this may result in incompatible
2391 directions; add REG_INC notes to the resulting insn for CSE reg.
2392
2393 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
2394
2395 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
2396 can be a valid address.
2397
2398 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
2399
2400 * config/rs6000/rs6000.c: Remove unusued variables from last
2401 patch.
2402
2403 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2404
2405 Revert:
2406 * config/rs6000/rs6000.c (rs6000_override_options): Move
2407 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2408
2409 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2410
2411 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
2412 lvx/stv/dst builtins...
2413 (altivec_expand_ld_builtin): ...to here.
2414 (altivec_expand_st_builtin): ...here.
2415 (altivec_expand_dst_builtin): ...and here (respectively).
2416
2417 2002-06-28 Bob Wilson <bob.wilson@acm.org>
2418
2419 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
2420
2421 2001-06-08 Bernd Schmidt <bernds@redhat.com>
2422
2423 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
2424 subregs.
2425 * recog.c (general_operand, register_operand): Disallow them.
2426
2427 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2428
2429 PR preprocessor/7138
2430 * cpplib.c (_cpp_handle_directive): Do traditional
2431 preparation after setting state.angled_headers.
2432 * cpptrad.c (scan_out_logical_line): Fix potential
2433 quote bug.
2434
2435 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2436
2437 * config/rs6000/rs6000.c (rs6000_override_options): Move
2438 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2439
2440 2002-06-27 Bob Wilson <bob.wilson@acm.org>
2441
2442 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
2443 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
2444 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
2445
2446 2002-06-27 Roger Sayle <roger@eyesopen.com>
2447
2448 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
2449 * config/stormy16/stormy16.h: Likewise.
2450
2451 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
2452 with #define.
2453
2454 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2455
2456 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
2457 Hitachi entry. Make punctuation more consistent.
2458
2459 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
2460
2461 * doc/install.texi: Change ` bit' to `-bit'.
2462 * doc/md.texi: Change `-bits' to `-bit'.
2463 * doc/tm.texi: Change `-bits' to ` bits'.
2464
2465 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
2466
2467 * gcse.c (hoist_code): Rewrite to only get list of dominated
2468 blocks once per BB. Also fix reversed test (by removing need for
2469 the test at all).
2470
2471 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2472
2473 * cpphash.h (_cpp_set_trad_context): Remove.
2474 * cpplib.c (prepare_directive_trad): Do nothing for #define.
2475 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
2476 * cpptrad.c: Update comments.
2477 (_cpp_read_logical_line_trad): Let scan_logical_line handle
2478 updating the current context.
2479 (scan_logical_line): Update the current context.
2480 (_cpp_create_trad_definition): Similarly.
2481 (_cpp_set_trad_context): Remove.
2482
2483 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2484
2485 PR preprocessor/7070
2486 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
2487
2488 2002-06-26 Bob Wilson <bob.wilson@acm.org>
2489
2490 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
2491 config/xtensa/xtensa.c (xtensa_return_addr): New function.
2492 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
2493 config/xtensa/xtensa.md (fix_return_addr): New pattern.
2494
2495 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2496
2497 * mips.c (coprocessor_operand, coprocessor2_operand,
2498 symbolic_operand): Move prototypes from here...
2499 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
2500 symbolic_operand): ...to here.
2501
2502 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2503
2504 * config/sh/crt1.asm: remove _stack label definition
2505 and sentinel value.
2506
2507 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2508
2509 * varasm.c: Include real.h before output.h.
2510
2511 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
2512
2513 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
2514 check for TARGET_ALTIVEC.
2515
2516 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
2517
2518 * config.gcc (vax-*-vms*): Make obselete.
2519
2520 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2521
2522 * gcc.c (warn_std): Delete.
2523
2524 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
2525
2526 * doc/extend.texi: Fix formatting of last checkin.
2527
2528 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2529
2530 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
2531 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
2532
2533 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
2534
2535 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2536 discrepancies from motorola's documentation.
2537
2538 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
2539
2540 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
2541 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
2542
2543 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
2544 produce a 32 bit result before normalization, then normalize with a
2545 left shift. Compute approximative error of 2nd reciprocal
2546 approximation in 2's complement. Fix mask generation from upper
2547 longword of second divide stage result.
2548 For large divisor, fix shift count used to truncate first stage
2549 divide result; make decision if to adjust upwards based on comparison
2550 of higher parts of normalized values.
2551 (udivdi): Likewise. Undo normalization of result for large divisor
2552 case.
2553
2554 2002-06-25 David S. Miller <davem@redhat.com>
2555
2556 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
2557
2558 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
2559
2560 * cpplib.c (do_include_common): Revert to correct line number
2561 if -traditional.
2562 * cpptrad.c (scan_out_logical_line): Treat null directive as
2563 white space. Invlidate MI optimization for non-whitespace
2564 text outside a directive.
2565
2566 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2567
2568 * Makefile.in (SHELL): Set to @SHELL@.
2569 * fixinc/Makefile.in (SHELL): Likewise.
2570
2571 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
2572 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
2573 initialization.
2574
2575 2002-06-24 Jeff Law <law@redhat.com>
2576
2577 * flow.c (propagate_one_insn): When removing an insn
2578 with a REG_LIBCALL note but not the entire libcall sequence,
2579 delete the associated REG_RETVAL note.
2580
2581 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
2582
2583 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
2584 (udivsi3): Likewise. Rewrite SH1 implementation.
2585 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
2586 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
2587 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
2588 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
2589 (_moddi3): Likewise.
2590
2591 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
2592
2593 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
2594 arguments into account for stack_regs.
2595
2596 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
2597
2598 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
2599 in examples.
2600
2601 2002-06-24 Art Haas <ahaas@neosoft.com>
2602
2603 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
2604 * doc/tm.texi (Frame Layout): Likewise.
2605
2606 2002-06-20 Steve Ellcey <sje@cup.hp.com>
2607
2608 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
2609 Set float_format to i128.
2610
2611 2002-06-24 David S. Miller <davem@redhat.com>
2612
2613 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
2614 32-bit ABI libfuncs to NULL.
2615
2616 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
2617 strings instead of quoted strings for code blocks.
2618
2619 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
2620 optabs if op1 is const0_rtx.
2621
2622 * Makefile.in (GTFILES): Add basic-block.h
2623 * basic-block.h (label_value_list, tail_recursion_label_list):
2624 Mark with GTY.
2625
2626 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
2627
2628 * cpptrad.c (scan_out_logical_line): Check recursing only when
2629 we know we have a macro invocation in the function-like case.
2630 Only call _cpp_handle_directive if we know we have a good
2631 directive, or we want to reject a bad directive.
2632
2633 2002-06-24 Alan Modra <amodra@bigpond.net.au>
2634
2635 * doloop.c (doloop_valid_p): Correct comment.
2636 (doloop_modify_runtime <abs_inc != 1>): Simplify.
2637 (doloop_modify_runtime <do-while>): Don't emit code when NE.
2638
2639 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
2640
2641 * config.gcc: Add support for ip2k.
2642
2643 2002-06-23 Jan Hubicka <jh@suse.cz>
2644 Jeff Law <law@redhat.com>
2645
2646 * function.h (struct emit_status): Clarify potential contents
2647 of regno_reg_rtx array.
2648 * integrate.c (copy_rtx_and_substitute): Update comments. Make
2649 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
2650
2651 * reg-stack.c (convert_regs_exit): Push the registers to stack in
2652 proper order.
2653
2654 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2655
2656 PR middle-end/6963
2657 * function.c (assign_stack_temp_for_type): Do not return
2658 the same MEM rtx for multiple uses of a stack slot.
2659
2660 2002-06-22 David S. Miller <davem@redhat.com>
2661
2662 PR target/6841 target/6770 target/6719
2663 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
2664 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
2665 GENERAL_OR_EXTRA_FP_REGS.
2666
2667 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
2668
2669 * cpptrad.c (struct fun_macro): Add line number.
2670 (scan_out_logical_line): Set it, and use it to report unterminated
2671 macro invocations.
2672
2673 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2674
2675 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
2676 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
2677 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
2678 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
2679 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
2680 REGEXP_ONEOF, check_name): Const-ify.
2681
2682 2002-06-21 Matt Thomas <matt@3am-software.com>
2683
2684 * config/vax/vax.c (vax_output_function_prologue): Use
2685 REGISTER_PREFIX. Fix some indentation.
2686 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
2687 (VAX_ISTREAM_SYNC): Define.
2688 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
2689 i-stream sync to the end.
2690 (REGISTER_PREFIX): Define as "".
2691 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
2692
2693 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2694
2695 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
2696 configurations.
2697
2698 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2699
2700 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
2701 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
2702
2703 2002-06-21 Matt Thomas <matt@3am-software.com>
2704
2705 * config/vax/netbsd.h: Adjust a comment.
2706 (TARGET_DEFAULT): Redefine as 0.
2707
2708 2002-06-21 Richard Henderson <rth@redhat.com>
2709
2710 * bb-reorder.c (make_reorder_chain_1): Search harder for the
2711 vax casesi fallthru edge.
2712 * cfglayout.c (cleanup_unconditional_jumps): Use
2713 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
2714 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
2715 block after ADDR_VEC.
2716
2717 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2718
2719 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2720
2721 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
2722
2723 * cpperror.c (cpp_error): For traditional CPP, default to
2724 diagnostics on pfile->line.
2725 * cpplib.c (prepare_directive_trad): Set line number for
2726 diagnostics for #define too.
2727 * cpptrad.c (skip_whitespace): Skip comments properly.
2728 (_cpp_expansions_different_trad): Initialize quote2.
2729
2730 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
2731
2732 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
2733 * config/mmix/mmix.h: Ditto.
2734 * config/mmix/mmix-protos.h: Ditto.
2735 * config/mmix/mmix.c: Ditto. Fix typo in comment.
2736 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
2737 comment. Comment extra CC modes.
2738
2739 2002-06-20 Jan Hubicka <jh@suse.cz>
2740
2741 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
2742 (scope_to_insns_finalize): Do not call set_block_levels; handle
2743 sequences.
2744 (choose_inner_scope): New.
2745 * rtl.h (choose_inner_scope): Declare.
2746
2747 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
2748
2749 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
2750 HOST_WIDE_INT.
2751 * pa.c (pa_asm_output_mi_thunk): Likewise.
2752 (n_deferred_plabels): Change type to size_t.
2753 (output_deferred_plabels, output_call): Use size_t instead of int.
2754
2755 2002-06-20 Richard Henderson <rth@redhat.com>
2756
2757 PR target/4041
2758 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
2759 pattern and adjust constraints for coldfire.
2760
2761 2002-06-20 Richard Henderson <rth@redhat.com>
2762
2763 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
2764
2765 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2766
2767 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
2768
2769 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2770
2771 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
2772
2773 2002-06-20 Stan Shebs <shebs@apple.com>
2774
2775 * dominance.c: Include errors.h instead of error.h.
2776
2777 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
2778
2779 * cppexp.c (cpp_interpret_integer): Don't force traditional
2780 numbers to be unsigned.
2781 * cpplib.c (prepare_directive_trad): Set line number for
2782 diagnostics.
2783 * cpptrad.c (scan_out_logical_line): Continue scanning out
2784 at start of buffer.
2785 * gcc.c (trad_capable_cpp): Use cc1 always.
2786
2787 2002-06-20 Jeffrey Law <law@redhat.com>
2788
2789 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
2790 elimination in leaf functions by default yet.
2791
2792 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
2793
2794 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
2795
2796 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2797
2798 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
2799 multilibs.
2800 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2801 Fixes PR other/6836.
2802
2803 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
2804 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2805
2806 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
2807
2808 * basic-block.h: Do not include et-forest.h
2809 (dominance_info): Declare as struct dominance-info.
2810 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
2811 deleting block.
2812 * dominance.c (struct dominance_info): Define.
2813 (BB_NODE, SET_BB_NODE): New macros.
2814 (bb_hash_func, bb_eq_func): Kill.
2815 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
2816 nearest_common_dominator, dominated_by_p, recount_dominator,
2817 add_to_dominance_info, delete_from_dominance_info): update for new
2818 representation.
2819 (get_dominated_by, redirect_immediate_dominators): Rewrite using
2820 enumerate_sons.
2821 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
2822 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
2823 structure.
2824
2825 * et-forest.h: Update copyright; revamp all function to operate on
2826 nodes
2827 (et_forest_value): Kill.
2828 (et_forest_enumerate_sons, et_forest_node_value): New.
2829 * et-forest.c: Update copyright.
2830 * et-forest.h: Update copyright; revamp all function to operate on
2831 nodes
2832 (et_forest_value): Kill.
2833 (et_forest_enumerate_sons, et_forest_node_value): New.
2834
2835 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2836
2837 * basic-block.h: Inlude et-forest.h
2838 (basic_block_def): Kill dominator.
2839 (dominance_info): New type.
2840 (loops): Use dominace_info.
2841 (dominace handling functions): Take dominace_info as argument
2842 instead of bitmaps.
2843 (create_preheader): Likewise.
2844 * cfg.c (entry_exit_blocks): Kill dominator.
2845 (dump_flow_info): Do not dump dominators.
2846 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
2847 dominators.
2848 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
2849 (flow_loops_pre_header_scan, make_forwarder_block,
2850 canonicale_loop_headers, flow_loops_find): Likewise.
2851 * dominance.c: Include error.h
2852 (idoms_to_doms): Kill.
2853 (bb_hash_func, bb_eq_func): New static functions.
2854 (debug_dominace_info): New global function.
2855 (calculate_dominance_info): Use new et forest structure.
2856 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
2857 get_dominated_by, redirect_immediate_dominators,
2858 nearest_common_dominator, dominated_by_p, verify_dominators,
2859 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
2860 delete_from_dominance_info): New global functions.
2861 * gcse.c (domnators): CHange to dominance_info.
2862 (alloc_hoist_mem): Do not alloc dominators
2863 (free_code_hoist_mem): Use free_dominance_info.
2864 (compute_code_hoist_data): Use dominance_info.
2865 (hoist_code): Likewise.
2866 * ifcvt.c (post_dominators): Likewise.
2867 (find_if_case_2, if_convert): Likewise.
2868 * predict.c (process_note_predictions, process_note_prediction,
2869 estimate-probability): Likewise.
2870 * sched-rgn.c (find_rgns, init_regions): Likewise.
2871 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
2872 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
2873 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
2874 find_evaluations, convert_to_ssa): Likewise.
2875 * ssa.h (compute_dominance_frontiers): Likewise.
2876
2877 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2878
2879 * Makefile.in (et-forest.c): Add.
2880 * et-forest.c: New file.
2881 * at-forest.h: New file.
2882
2883 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2884
2885 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
2886 array size calculation.
2887 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
2888 Likewise.
2889
2890 * diagnostic.c (diagnostic_kind_text): Const-ify.
2891 * gengtype.c (lang_names): Likewise.
2892
2893 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
2894
2895 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2896
2897 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2898
2899 * config/sol2.h: New file.
2900 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2901 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2902 (sparc-*-chorusos*): Likewise.
2903 (sparc-*-elf*): Likewise.
2904 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2905 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2906 (sparc-hal-solaris2*): Likewise.
2907 (sparc-*-solaris2*): Likewise.
2908 (sparclite-*-elf*): Likewise.
2909 (sparc86x-*-elf*): Likewise.
2910 (sparc64-*-elf*): Likewise.
2911
2912 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2913 config/sol2.h.
2914 (ASM_SPEC): Override config/sol2.h version for now.
2915 Removed obsolete GAS_REJECTS_MINUS_S variant.
2916 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2917 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2918 (TARGET_OS_CPP_BUILTINS): Likewise.
2919 Assert system=unix.
2920 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2921 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2922 config/sol2.h.
2923 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2924 (ASM_CPU_SPEC): Define.
2925 (SUBTARGET_EXTRA_SPECS): Define.
2926
2927 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2928 in config/sparc/sol2.h.
2929 (ASM_SPEC): Moved to config/sol2.h.
2930 (CPP_CPU_SPEC): Simplified.
2931 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2932 consistency.
2933 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2934 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2935 STARTFILE_ARCH64_SPEC.
2936 (STARTFILE_SPEC): Moved to config/sol2.h
2937 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2938 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2939 (LINK_ARCH64_SPEC): Simplified.
2940 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2941 (LINK_SPEC): Moved to config/sol2.h
2942
2943 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2944 config/sol2.h.
2945 Use BITS_PER_WORD for size.
2946 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2947 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2948 (CPP_PREDEFINES): Removed OS-specific part handled by
2949 TARGET_OS_CPP_BUILTINS.
2950 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2951 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2952 (ASM_SPEC): Moved to config/sol2.h.
2953 (PREFERRED_DEBUGGING_TYPE): Likewise.
2954 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2955 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2956 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2957 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
2958
2959 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2960 * config/i386/sol2gas.h: Removed.
2961
2962 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2963
2964 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2965
2966 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
2967
2968 * gcc.c-torture/execute/simd-1.c: New.
2969
2970 * gcc.dg/simd-1.c: New.
2971
2972 * doc/extend.texi (Vector Extensions): Document that we can
2973 specify simd types not specifically supported by the hardware.
2974 Document that simd types can be used as function arguments.
2975 Document that signness does make a difference in SIMD types.
2976 Misc cleanups and revisions to the vector extensions section.
2977
2978 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2979 constants.
2980
2981 * expr.c (vector_mode_valid_p): New.
2982
2983 * expr.h: Add vector_mode_valid_p.
2984
2985 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2986
2987 * c-common.c (type_for_mode): Always build vector nodes regardless
2988 of VECTOR_MODE_SUPPORTED_P.
2989 (handle_mode_attribute): Error if we can't emulate a nonexisting
2990 vector mode.
2991 (handle_vector_size_attribute): Same.
2992
2993 * optabs.c (expand_binop): Open-code vector operations.
2994 (expand_unop): Open-code vector unops.
2995 (expand_vector_binop): New.
2996 (expand_vector_unop): New.
2997
2998 * c-typeck.c (build_binary_op): Allow vectors in binops.
2999 Allow vectors in conditional operatiors.
3000 (build_unary_op): Allow vectors in unary minus.
3001
3002 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
3003 TARGET_ALTIVEC.
3004
3005 2002-05-20 Richard Henderson <rth@redhat.com>
3006
3007 * c-common.c (c_common_get_alias_set): Correctly handle characters.
3008 Rearrange order of expressions; don't handle vectors here.
3009 * alias.c (get_alias_set): Let vectors match their components.
3010
3011 2002-06-19 Chris Demetriou <cgd@broadcom.com>
3012
3013 * config/mips/mips.c (mips_emit_prefetch): Use hints which
3014 match desired locality.
3015
3016 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3017
3018 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
3019 (h8300_insert_attributes): New.
3020
3021 2002-06-19 Akim Demaille <akim@epita.fr>
3022
3023 * c-parse.in (initelt: identifier ':' initval): Add an empty
3024 action to fix a type clash.
3025 (aliasdecl, classdef): Add the missing closing `;'.
3026 Whitespace changes.
3027 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
3028 $$ = $1 type clashes.
3029
3030 2002-06-19 Eric Christopher <echristo@redhat.com>
3031
3032 * config/mips/mips.c (symbol_operand): New function.
3033 (mips_emit_prefetch): Ditto.
3034 * config/mips/mips-protos.h: Define.
3035 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
3036 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
3037 (LEGITIMIZE_ADDRESS): Ditto.
3038 * config/mips/mips.md (prefetch, prefetch_si_address,
3039 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
3040
3041 2002-06-19 Eric Christopher <echristo@redhat.com>
3042
3043 * config/fp-bit.h: Add unordered defines for gofast.
3044
3045 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
3046
3047 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
3048 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
3049 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
3050 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
3051 checking and without it.
3052 (decl_name, decl_mode_check_failed, regexp_name,
3053 regexp_mode_check_failed): New functions.
3054 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3055 gen_presence_set, gen_absence_set, gen_automaton,
3056 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3057 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
3058 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
3059 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
3060 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
3061 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
3062 (decl_hash, decl_eq_p): Use the macros.
3063 (find_decl): Ditto. Set up mode of work_decl.
3064 (process_excls, process_presence_absence, process_decls,
3065 check_automaton_usage, process_regexp, process_regexp_decls,
3066 check_usage, loop_in_regexp, check_loops_in_regexps,
3067 process_regexp_cycles, add_advance_cycle_insn_decl,
3068 initiate_states, initiate_excl_sets,
3069 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
3070 transform_2): Use the macros.
3071 (transform_3): Ditto. Check mode before making transformations of
3072 ALLOF.
3073 (regexp_transform_func, transform_insn_regexps,
3074 process_unit_to_form_the_same_automaton_unit_lists,
3075 form_the_same_automaton_unit_lists_from_regexp,
3076 form_the_same_automaton_unit_lists,
3077 process_seq_for_forming_states, process_alts_for_forming_states,
3078 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
3079 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
3080 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
3081 units_to_automata_heuristic_distr, create_ainsns,
3082 units_to_automata_distr, create_automata): Use the macros.
3083 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
3084 (longest_path_length, min_issue_delay_pass_states,
3085 output_dead_lock_vect, output_tables, output_insn_code_cases,
3086 output_internal_insn_latency_func, output_print_reservation_func,
3087 output_description, output_automaton_units, generate): Use the
3088 macros.
3089 (make_insn_alts_attr): Ditto. Check case when there are not
3090 alternatives in the reservation.
3091 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
3092 make_bypass_attr, form_important_insn_automata_lists,
3093 expand_automata): Use the macros.
3094
3095 2002-06-20 Tim Josling <tej@melbpc.org.au>
3096
3097 * Makefile.in: Clean up code to check for misspecified languages
3098 in enable-languages.
3099
3100 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
3101
3102 * cpptrad.c (_cpp_replacement_text_len): initialize len.
3103
3104 2002-06-19 Jason Merrill <jason@redhat.com>
3105
3106 * Makefile.in (unstrap, restrap): New targets.
3107 (bootstrap): Mention restrap.
3108
3109 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
3110
3111 * except.c (ehl_free): Remove.
3112
3113 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
3114 builtin_define and builtin_define_std.
3115
3116 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3117
3118 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
3119 (sCOND): Restrict operand class so that gcc knows how to reload them.
3120 (bitfield_set): Merge two unnamed insn's using alternatives.
3121 (call_value): Remove constraint on unused uperand.
3122 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
3123 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
3124
3125 * longlong.h (count_trailing_zeros): Escape newline and beautify.
3126
3127 2002-06-19 Mark Mitchell <mark@codesourcery.com>
3128
3129 * Makefile.in (QMTEST_DIR): Simplify definition.
3130
3131 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
3132
3133 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
3134 #define.
3135
3136 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
3137
3138 * cpphash.h (struct cpp_reader): Make date and time strings.
3139 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
3140 _cpp_replacement_text_len): New.
3141 * cppinit.c (cpp_create_reader): Update.
3142 (init_builtins): Register appropriate builtins for -traditional-cpp.
3143 * cppmacro.c (new_number_token): Remove.
3144 (_cpp_builtin_macro_text): New.
3145 (builtin_macro): Use it.
3146 (cpp_macro_definition): Update to handle traditional macros.
3147 * cppmain.c (cb_line_change): Don't do column positioning for
3148 traditional output.
3149 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
3150 state ls_fun_close.
3151 (skip_whitespace): Fix.
3152 (maybe_start_funlike): Don't set state.parsing_args.
3153 (scan_out_logical_line): Remove duplicate error. Use lex_state
3154 rather than state.parsing_args.
3155 (push_replacement_text): Handle builtins.
3156 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
3157
3158 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
3159 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3160
3161 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
3162 attribute __always_inline__.
3163
3164 2002-06-18 Bob Wilson <bob.wilson@acm.org>
3165
3166 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
3167 when generating the call to _mcount.
3168 (NO_PROFILE_COUNTERS): Define.
3169
3170 2002-06-18 Richard Henderson <rth@redhat.com>
3171
3172 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
3173 2002-06-02 change.
3174
3175 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
3176
3177 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
3178 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
3179 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
3180 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
3181
3182 * sh-protos.h (sh_pr_interrupt): Declare.
3183 * sh.c (sh_pr_interrupt): New function.
3184 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
3185 (sh_hard_regno_rename_ok): Likewise.
3186 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
3187
3188 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
3189
3190 * rtl.def (DEFINE_AUTOMATON): Add description of new options
3191 `time' and `v'. Fix incorrect description of option `w'.
3192
3193 * doc/md.texi: Ditto.
3194
3195 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
3196 (gen_automata_option): Process the new options.
3197 (transform_2, transform_3): Initialize some variables.
3198 (initiate_automaton_gen): Use the new macros.
3199
3200 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
3201
3202 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
3203 (mips_set_return_address, mips_restore_gp): Declare.
3204 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
3205 (current_frame_info): Remove.
3206 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
3207 * config/mips/mips.c: Remove uses of current_frame_info.
3208 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
3209 (struct machine_function): Add 'frame' and 'insns_len'.
3210 (current_frame_info, zero_frame_info): Remove.
3211 (mips_restore_gp, mips_set_return_address): New.
3212 (mips_initial_elimination_offset): New.
3213 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
3214 (eh_return define_split): Use mips_set_return_address.
3215
3216 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
3217
3218 * cpplib.c (dtable): Update.
3219 (end_directive): Decrement expansion prevention count.
3220 Clear state.in_expression.
3221 (prepare_directive_trad): Set state.in_expression.
3222 Increment expansion prevention count.
3223 * cpptrad.c (enum ls): New.
3224 (_cpp_overlay_buffer): Set overlaid_buffer.
3225 (_cpp_remove_overlay): Use overlaid_buffer.
3226 (_cpp_read_logcial_line_trad): Update buffer when it might
3227 have changed.
3228 (scan_out_logical_line): Handle state transitions for assertions
3229 and defined() in #if, and for funlike invocations including the
3230 directive case. Handle '<' and '>' as a quote mechanism in
3231 #include. Warn about unterminated macro invocations.
3232 * cpphash.h (struct lexer_state): New member in_expression.
3233 (struct cpp_reader): New member overlaid buffer.
3234
3235 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
3236
3237 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
3238 __always_inline__.
3239
3240 2002-06-18 Alan Modra <amodra@bigpond.net.au>
3241
3242 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
3243
3244 * doloop.c (doloop_optimize): Extract pattern from insn.
3245
3246 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
3247
3248 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
3249
3250 2002-06-17 Jeff Law <law@redhat.com>
3251
3252 * libgcc2.c: Do not include symcat.h or machmode.h.
3253
3254 2002-06-17 Richard Henderson <rth@redhat.com>
3255
3256 PR target/6922
3257 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
3258
3259 2002-06-17 Tom Tromey <tromey@redhat.com>
3260
3261 * dwarfout.c: Include function.h.
3262
3263 2002-06-17 Andreas Schwab <schwab@suse.de>
3264
3265 * print-rtl.c (print_rtx): Print space before vector, not after.
3266 (debug_rtx): Clear sawclose before printing.
3267 (debug_rtx_list): Print newline after each list element.
3268 (debug_rtx_range): Likewise.
3269
3270 2002-06-17 Richard Henderson <rth@redhat.com>
3271
3272 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
3273 (current_function_funcdef_no): Similarly.
3274 * function.c (funcdef_no): Similarly.
3275 (prepare_function_start): Set current_function_funcdef_no.
3276 (expand_function_start): Don't set current_function_profile_label_no.
3277 * dwarf2out.h (current_funcdef_number): Remove.
3278 * dwarf2out.c (current_funcdef_number): Remove. Replace with
3279 current_function_funcdef_no throughout.
3280 * dwarfout.c, vmsdbgout.c: Similarly.
3281 * except.c (sjlj_funcdef_number): Remove.
3282 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
3283 (output_function_exception_table): Likewise.
3284 * final.c (profile_function): Use current_function_funcdef_no
3285 instead of current_function_profile_label_no.
3286
3287 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
3288
3289 * sched-ebb.c (init_ready_list): Check INSN_P first.
3290
3291 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
3292
3293 * sh.md (divsi3): Update way how to find insns in a sequence.
3294
3295 * reload1.c (merge_assigned_reloads): Don't change reloads
3296 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
3297 to RELOAD_OTHER when there are conflicting input reloads.
3298
3299 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
3300
3301 * function.c (epilogue_done): Correctly build a sequence of insns for
3302 a sibcall epilogue.
3303
3304 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
3305
3306 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
3307 #define.
3308
3309 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
3310
3311 2002-06-16 Richard Henderson <rth@redhat.com>
3312
3313 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
3314 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
3315
3316 2002-06-16 Richard Henderson <rth@redhat.com>
3317
3318 PR opt/6722
3319 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
3320
3321 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
3322
3323 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
3324 * config/i386/i386-aout.h, config/i386/i386elf.h,
3325 config/i386/sysv4.h: Remove CPP_PREDEFINES.
3326 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
3327 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
3328 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
3329 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3330 CPP_PREDEFINES and part of CPP_SPEC.
3331 * config/i386/sysv4-cpp.h: New.
3332
3333 2002-06-16 Richard Henderson <rth@redhat.com>
3334
3335 PR c/7030
3336 * dwarf2out.c (modified_type_die): Don't assign the qualified die
3337 to the unqualified type.
3338
3339 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
3340
3341 * i386-protos.h (x86_field_alignment): Declare.
3342 * i386.c (x86_field_alignment): Define.
3343 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
3344 (BIGGEST_FIELD_ALIGNMENT): Kill.
3345
3346 2002-06-16 Richard Henderson <rth@redhat.com>
3347
3348 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
3349
3350 2002-06-16 Richard Henderson <rth@redhat.com>
3351
3352 * c-common.c (flag_ms_extensions): Move from c++ front end.
3353 * c-common.h (flag_ms_extensions): Declare.
3354 * c-decl.c (c_decode_option): Add -fms-extensions.
3355 (grokfield): Don't accept anonymous structures in ISO C mode;
3356 accept only unnamed anonymous structures in GNU C mode; accept
3357 Plan 9 extensions in MS mode.
3358 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
3359 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
3360 (extension): Clear flag_iso.
3361 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
3362
3363 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
3364
3365 PR target/7042
3366 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
3367 early if current_function_epilogue_delay_list is non-empty.
3368 * config/cris/cris.md ("return"): Add sanity check asserting that
3369 current_function_epilogue_delay_list is empty.
3370
3371 2002-06-16 Jeff Law <law@redhat.com>
3372
3373 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
3374 sharing of hard registers.
3375
3376 * toplev.c (rest_of_compilation): Remove redundant conditional.
3377
3378 * toplev.c (rest_of_compilation): Perform a simpler, less costly
3379 cleanup of the CFG when not optimizing.
3380
3381 2002-06-16 Alan Modra <amodra@bigpond.net.au>
3382
3383 * gcc.c (main): Correct startfile_prefix_spec check.
3384
3385 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3386
3387 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
3388 include both darwin.o and rs6000-c.o.
3389
3390 2002-06-15 Roger Sayle <roger@eyesopen.com>
3391
3392 * expr.c (compare_from_rtx): Call simplify_relational_operation
3393 on all comparisons, not just those between integer constants,
3394 with the correct (possibly unsigned) comparison code.
3395 (do_compare_rtx_and_jump): Likewise.
3396
3397 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3398
3399 * Makefile.in (tm_defines): New configuration variable.
3400 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
3401 Pass tm_defines in TM_DEFINES.
3402 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
3403 * config.gcc (tm_defines): New configuration variable.
3404 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
3405 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
3406 * configure.in: Substitute tm_defines.
3407 * configure: Rebuilt.
3408 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
3409 * doc/install.texi: Update.
3410 * pa/pa-700.h: Delete file.
3411 * pa/pa-7100.h: Delete file.
3412
3413 2002-06-15 Roger Sayle <roger@eyesopen.com>
3414
3415 * fold-const.c (comparison_to_compcode): New function to convert
3416 an comparison TREE CODE into a bit-based representation.
3417 (compcode_to_comparison): New function to convert from this bit
3418 based representation back to a comparison TREE CODE.
3419 (fold_truthop): Simplify (x<y) && (x==y) and related composite
3420 comparisons.
3421
3422 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
3423
3424 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
3425
3426 * stor-layout.c (compute_record_mode): Remove check for
3427 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
3428 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
3429 MEMBER_TYPE_FORCES_BLK.
3430
3431 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
3432
3433 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
3434
3435 2002-06-14 Jeff Sturm <jsturm@one-point.com>
3436
3437 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
3438
3439 2002-06-14 Steve Ellcey <sje@cup.hp.com>
3440
3441 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
3442 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
3443 * configure, config.in: Regenerate.
3444
3445 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3446
3447 * loop.c (check_final_value): Use v->always_executed
3448 instead of v->always_computable.
3449 * unroll.c (final_giv_value): Don't calculate the final
3450 value as a function of the biv if the giv is not computed
3451 for every loop iteration.
3452
3453 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3454
3455 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
3456
3457 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3458
3459 PR c/6677
3460 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
3461 the truncation down when the target type is signed.
3462 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
3463 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
3464 the conversion if the target type is a smaller type.
3465
3466 2002-06-14 Richard Henderson <rth@redhat.com>
3467
3468 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
3469 earlier. Re-factor comparisons vs extrema.
3470
3471 2002-06-14 Richard Henderson <rth@redhat.com>
3472
3473 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
3474
3475 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3476
3477 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
3478 * sched-deps.c (add_dependence): Likewise.
3479 (group_leader): Likewise.
3480 * sched-rgn.c (init_ready_list): Likewise.
3481 * doc/rtl.texi: Adjust accordingly.
3482
3483 2002-06-13 Jeffrey Law <law@redhat.com>
3484
3485 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
3486 null pointer checks were eliminated. Update prototype.
3487 (delete_null_pointer_checks): Similarly.
3488 * rtl.h (delete_null_pointer_checks): Update prototype.
3489 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
3490 delete_null_pointer_checks deletes one or more null
3491 pointer checks. Do not run cleanup_cfg before gcse, the
3492 CFG is accurate and optimized at that point..
3493
3494 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
3495 of hard registers.
3496
3497 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3498
3499 * Makefile.in (libgcc.mk): Depend on specs.
3500
3501 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
3502
3503 * sh.md (mulsi3): Update way how to find insns in a sequence.
3504
3505 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3506
3507 * sh.h: Define HARD_REGNO_RENAME_OK
3508 * sh.c: sh_hard_regno_rename_ok: New. If current function has
3509 interrupt_handler attribute, only registers saved on stack are OK.
3510 * sh-protos.h: Declare sh_hard_regno_rename_ok.
3511
3512 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
3513
3514 * config/sh/sh.md (jump): Emit jump insn.
3515 (call_pcrel): Get pattern of the result of gen_call_site.
3516 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
3517
3518 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
3519
3520 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
3521 * cpptrad.c: Update comments.
3522 (skip_whitespace, copy_comment): Take a new parameter.
3523 (skip_escaped_newlines): Don't duplicate escaped newline test.
3524 (copy_comment): Different location for CUR, decide here how
3525 to copy / replace the comment.
3526 (skip_whitespace): Copy whitespace.
3527 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
3528 (scan_out_logical_line): Let copy comment handle keeping or
3529 replacing comments.
3530 (scan_parameters, _cpp_create_trad_definition): Update.
3531
3532 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
3533
3534 * reload.c (get_secondary_mem,find_reloads_address,
3535 find_reloads_address_1): Pass reference to MEM to find_reloads_address
3536 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
3537
3538 2002-06-13 Jessica Han <jessica@cup.hp.com>
3539
3540 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3541 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3542 * doc/tm.texi: Document them.
3543 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3544 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3545 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
3546 (ASM_OUTPUT_FDESC): Likewise.
3547
3548 2002-06-13 Eric Christopher <echristo@redhat.com>
3549
3550 * diagnostic.c (output_format): Fix thinko.
3551
3552 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
3553
3554 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
3555 (DWARF2_UNWIND_INFO): Define to 0.
3556
3557 * config/sh/sh.c (calc_live_regs): Don't use initial_value
3558 optimization for PR_MEDIA_REG.
3559
3560 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3561
3562 * cpphash.h (_cpp_lex_identifier_trad): Remove.
3563 * cpplib.c (end_directive): Don't skip, always remove overlay
3564 apart from #define.
3565 (prepare_directive_trad): Handle NULL pfile->directive.
3566 (_cpp_handle_directive): Always call prepare_directive_trad
3567 if traditional.
3568 * cppmain.c (check_multiline_token): Rename account_for_newlines,
3569 generalize inputs.
3570 (scan_translation_unit_trad): Use it.
3571 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
3572 output, get escaped newline in comment close correct.
3573 (check_output_buffer, skip_whitespace): Update.
3574 (_cpp_lex_identifier_trad): Remove.
3575 (scan_out_logical_line): Handle -C and comments in directives
3576 properly.
3577
3578 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3579
3580 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
3581 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3582 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
3583 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
3584 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
3585 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
3586 (SELECT_SH5_COMPACT_NOFPU): Likewise.
3587 (TARGET_SWITCHES): Use them.
3588 (TARGET_CPU_DEFAULT): Define if not already defined.
3589 (TARGET_DEFAULT): Use it.
3590 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
3591 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
3592 * config/sh/t-monolib: New file.
3593
3594 2002-06-13 Roger Sayle <roger@eyesopen.com>
3595
3596 * toplev.c (rest_of_compilation): Simplify (and correct) the
3597 logic of the first delete-null-pointer-checks pass.
3598
3599 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3600
3601 * i386.c (ix86_expand_movstr): Fix pasto.
3602
3603 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3604
3605 * reload.c (find_valid_class): Fix thinko in my previous patch.
3606
3607 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3608
3609 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
3610 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
3611 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
3612 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
3613
3614 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3615
3616 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3617 fields.
3618
3619 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3620
3621 * diagnostic.c (output_format): Recognize "%H" as a format
3622 specifier for a location_t.
3623 (text_specifies_location): New function.
3624 (diagnostic_set_info): Use it.
3625
3626 2002-06-13 Jeffrey Law <law@redhat.com>
3627
3628 * emit-rtl.c (static_regno_reg_rtx): Define.
3629 (init_emit_once): Initialize static_regno_reg_rtx.
3630 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
3631 of building new hard reg objects once per function.
3632 (gen_rtx_REG): Try to share hard regs.
3633 * regclass.c (init_fake_stack_mems): New function broken out from
3634 init_regs.
3635 * rtl.h (init_fake_stack_mems): Declare.
3636 * toplev.c (lang_independent_init): Call init_regs before
3637 init_emit_once. Call init_fake_stack_mems after init_emit_once.
3638
3639 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
3640
3641 * alias.c (argument_registers): Remove.
3642 (init_alias_once): Initialize static_reg_base_value here. Remove
3643 initialization of argument_registers.
3644 (init_alias_once_per_function): Remove.
3645 (init_alias_analysis): Copy all the entries from static_reg_base_value
3646 into new_reg_base_value all at once.
3647 * rtl.h (init_alias_once_per_function): Remove declaration.
3648 * function.c (prepare_function_start): Do not call
3649 init_alias_once_per_function.
3650
3651 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
3652 starting a sequence and emitting an INSN.
3653
3654 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
3655
3656 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
3657
3658 2002-06-13 David S. Miller <davem@redhat.com>
3659
3660 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
3661
3662 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3663
3664 * cpplib.c (end_directive): Handle line skipping. Only remove
3665 the rest of the line if the directive was valid.
3666 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
3667 expanding a traditional macro.
3668 * cpptrad.c (recursive_macro): New.
3669 (read_logical_line_trad): Handle skipping.
3670 (scan_out_logical_line): Continue after a successful directive.
3671 Don't expand macros whilst skipping, or if recursing.
3672 (_cpp_create_trad_definition): scan_out_logical_line now sets
3673 the output current position.
3674
3675 2002-06-12 Eric Christopher <echristo@redhat.com>
3676
3677 From Chris Demetriou <cgd@broadcom.com>
3678 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
3679 comment.
3680 (ISA_HAS_MADD_MSUB): Ditto.
3681 (ISA_HAS_NMADD_NMSUB): Ditto.
3682
3683 2002-06-12 Eric Christopher <echristo@redhat.com>
3684
3685 * config.gcc: Consolidate little endian handling and
3686 little/big endian targets.
3687 * config/mips/elfl.h: Remove file.
3688 * config/mips/elfl64.h: Ditto.
3689 * config/mips/ecoffl.h: Ditto.
3690 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
3691
3692 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3693
3694 * gengtype.h (xvasprintf): New prototype.
3695 (xasprintf): New prototype.
3696 (struct outf): New.
3697 (get_output_file): Return an outf_p.
3698 (header_file): Is now an outf_p.
3699 (base_files): Now are outf_p.
3700 (oprintf): New.
3701 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
3702 rather than stdio operations. Use xasprintf in a few places,
3703 when appropriate.
3704 (xvasprintf): New.
3705 (xasprintf): New.
3706 (struct filemap): Delete.
3707 (files): Delete.
3708 (output_files): New.
3709 (oprintf): New.
3710 (create_file): Create an outf_p. Add parameter to indicate output
3711 file name, change all callers.
3712 (open_base_files): Create gtype-desc.c here.
3713 (get_output_file_with_visibility): Rewrite.
3714 (get_output_file_name): Just look at 'name' field in struct outf.
3715 (close_output_files): Rewrite.
3716
3717 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
3718
3719 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3720 (MASK_G_FLOAT): Define.
3721 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
3722 (TARGET_SWITCHES): Likewise.
3723 (TARGET_DEFAULT): Likewise.
3724
3725 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
3726
3727 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
3728 * config/mips/mips.c (mips_output_filename): Don't print a
3729 ".file" directive if we are using DWARF-2.
3730 (mips_output_function_prologue): Do not emit source file
3731 name for TARGET_GAS.
3732
3733 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
3734
3735 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
3736 decide whether emit the short opcode.
3737 * i386.h (x86_shift1): Declare.
3738 (TARGET_SHIFT1): New macro.
3739 * i386.c (x86_shift1): New global variable.
3740
3741 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
3742 unconditionally; make loop to rebuild CFG; kill unnecesary
3743 find_basic_block calls; kill compute_bb_for_insn call.
3744 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
3745 * haifa-sched.c (sched_init): Likewise.
3746 * ssa-ccp.c (ssa_const_prop): Likewise.
3747 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3748
3749 2002-06-11 David S. Miller <davem@redhat.com>
3750
3751 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
3752 active_insn_p.
3753
3754 2002-06-11 Richard Henderson <rth@redhat.com>
3755
3756 * c-common.c (builtin_define_type_max): New.
3757 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
3758 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
3759
3760 From Joseph S. Myers:
3761 * glimits.h: Rewrite to expect the double underscore definitions
3762 from the compiler.
3763
3764 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
3765 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
3766 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
3767 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3768 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
3769 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
3770 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
3771 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
3772
3773 2002-06-11 Richard Henderson <rth@redhat.com>
3774
3775 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
3776 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
3777 (code_for_builtns): Update.
3778 (alpha_init_builtins): Add __builtin_thread_pointer and
3779 __builtin_set_thread_pointer.
3780 (alpha_expand_builtin): Handle void builtins.
3781 * doc/extend.texi (Alpha Built-in Functions): Update.
3782
3783 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
3784
3785 PR target/6997
3786 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
3787
3788 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3789
3790 * config.gcc: Make the name of the extra-modes file adjustable
3791 by target stanzas.
3792 (s390x, strongarm, xscale stanzas): Use this facility.
3793 * configure.in: Update to match.
3794 * configure: Regenerate.
3795
3796 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
3797
3798 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
3799 max/mins as unsigned GE compares.
3800
3801 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
3802
3803 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
3804 * config/vax/bsd.h: New file.
3805 * config/vax/netbsd.h: Add missing notice.
3806 (CPP_PREDEFINES): Remove.
3807 (TARGET_OS_CPP_BUILTINS): Define.
3808 (CPP_SPEC): Use NETBSD_CPP_SPEC.
3809 * config/vax/openbsd.h: Update copyright years.
3810 (CPP_PREDEFINES): Remove.
3811 (TARGET_OS_CPP_BUILTINS): Define.
3812 * config/vax/ultrix.h: Likewise.
3813 * config/vax/vaxv.h: Likewise.
3814 * config/vax/vms.h: Likewise.
3815 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
3816 (CPP_PREDEFINES, CPP_SPEC): Remove.
3817
3818 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
3819
3820 * i386.md (addqi_1_slp, subqi_1_slp
3821 (andqi_ext0, testqi_ext0): Remove unnecesary check.
3822 (addhi*, addqi*): Simplify "dec" condition.
3823 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
3824 (and, or, xor to QImode splitters): New.
3825 (iorqi_ext*): New.
3826 (xorqi_ext_0): New.
3827 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
3828 (andqi_ext_1_rex64): New.
3829 (ashrqi*_slp): New.
3830 (ashlqi*_slp): New.
3831 (lshlqi*_slp): New.
3832 (rotrqi3*_slp): New.
3833 (rotlqi3*_slp): New.
3834
3835 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3836
3837 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
3838 softfloat.h.
3839 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
3840 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3841 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
3842 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
3843 __LONG_DOUBLE_128__ setting, _CALL_* setting.
3844 (CPP_DEFAULT_SPEC): Delete.
3845 (CPP_FLOAT_DEFAULT_SPEC): Delete.
3846 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
3847 (CPP_SYSV_DEFAULT_SPEC): Delete.
3848 (CPP_ENDIAN_BIG_SPEC): Delete.
3849 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3850 (CPP_ENDIAN_SPEC): Delete.
3851 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
3852 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
3853 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
3854 cpp_longdouble_default.
3855 * config/rs6000/softfloat.h: Delete.
3856 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
3857 (EXTRA_SPECS): Delete cpp_cpu.
3858 (TARGET_CPU_CPP_BUILTINS): New.
3859 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
3860 prototype.
3861 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
3862 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
3863 (CPP_DEFAULT_SPEC): Delete.
3864 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
3865 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
3866 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
3867 (CPP_DEFAULT_SPEC): Delete.
3868 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3869 (CPLUSPLUS_CPP_SPEC): Likewise.
3870 (CPP_CPU_SPEC): Delete.
3871 (CPP_DEFAULT_SPEC): Delete.
3872 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3873 (CPLUSPLUS_CPP_SPEC): Likewise.
3874 (CPP_CPU_SPEC): Delete.
3875 (CPP_DEFAULT_SPEC): Delete.
3876 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
3877 (CPP_DEFAULT_SPEC): Delete.
3878 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
3879 (CPP_DEFAULT_SPEC): Delete.
3880
3881 * doc/gty.texi: Small updates.
3882
3883 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
3884
3885 * objc/objc-act.c (warn_with_ivar): Adjust calls to
3886 diagnostic_count_error.
3887 (warn_with_method): Likewise.
3888
3889 * diagnostic.h (warnings_are_errors_message): New field of
3890 diagnostic_context.
3891 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
3892 match semantics.
3893 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3894 (diagnostic_count_diagnostic): Make aware of other kinds of
3895 diagnostics.
3896 (diagnostic_initialize): Initialize warnings_are_errors_message field.
3897
3898 2002-06-11 Tom Tromey <tromey@redhat.com>
3899
3900 For PR java/6520:
3901 * fold-const.c (fold_convert): Don't modify existing tree's type.
3902
3903 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3904
3905 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3906
3907 2002-06-11 Richard Henderson <rth@redhat.com>
3908
3909 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3910
3911 2002-06-11 Richard Henderson <rth@redhat.com>
3912
3913 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
3914 DWARF2_UNWIND_INFO is false.
3915
3916 2002-06-11 Bob Wilson <bob.wilson@acm.org>
3917
3918 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3919
3920 * config/s390/s390.c (emit_prologue): gen_store_multiple
3921 returns an insn now, not a pattern.
3922
3923 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3924
3925 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3926 $(TEXI2DVI) -o.
3927
3928 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3929
3930 * i386.c (x86_promote_QImode): Set for Athlon
3931 (x86_fast_prefix): New global variable.
3932 (x86_arch_always_fancy_math_387): Fix formating.
3933 * i386.h (x86_fast_prefix): Declare
3934 (TARGET_FAST_PREFIX): define.
3935 * i386.md (and to strict_low_part, HI to SI
3936 promoting splitter): Use new macro.
3937
3938 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3939
3940 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3941
3942 * Makefile.in (distclean): Delete junk left in testsuite
3943 directory, too.
3944
3945 2002-06-11 Jeffrey Law <law@redhat.com>
3946
3947 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3948 last insn created by the splitter.
3949
3950 * caller-save.c (init_caller_save): Move creation of SAVEINSN
3951 and RESTINSN into into the scope of the sequence.
3952
3953 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3954 RETURN insns.
3955
3956 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3957
3958 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3959 not the pattern. So extract the pattern from the insn.
3960
3961 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3962
3963 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3964
3965 * config/s390/s390.md (movsi): Only use floating point
3966 register alternatives when operands are already fprs.
3967 (movdi_31, movdi_64): Likewise.
3968
3969 2002-06-11 David S. Miller <davem@redhat.com>
3970
3971 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3972 Only run RTX equality checks on INSN_P rtl.
3973
3974 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3975
3976 * config/s390/s390.md (reload_base, ltorg): Remove.
3977 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3978 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3979 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3980 s390_asm_output_pool_prologue): Likewise.
3981 * s390.h (s390_pool_start_insn): Likewise.
3982
3983 * s390.c (s390_output_symbolic_const): Remove support for
3984 old-style pool chunks.
3985 (s390_function_epilogue): Likewise.
3986 (s390_output_constant_pool): Likewise. Also, fix incorrect
3987 alignment for 64-bit literal pools.
3988 (print_operand_address): Remove 'y' and 'Y' format flags.
3989 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3990 old-style pool chunks.
3991 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3992 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3993 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3994
3995 * s390.c (consttable_operand): New function.
3996 * s390-protos.h (consttable_operand): Declare it.
3997 * s390.h (PREDICATE_CODES): Add consttable_operand.
3998 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3999 consttable_sf, consttable_df, pool_start_31, pool_end_31,
4000 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
4001 * s390.c (struct constant, struct constant_pool): New data types.
4002 (constant_modes, gen_consttable): New variables.
4003 (s390_start_pool, s390_end_pool, s390_add_pool,
4004 s390_dump_pool, s390_free_pool): New functions.
4005 (s390_chunkify_pool): Completely reimplement literal pool
4006 overflow handling.
4007
4008 * s390.c (s390_pool_overflow): New variable.
4009 * s390.h (s390_pool_overflow): Declare it.
4010 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
4011 jumps in literal pool overflow situations.
4012
4013 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
4014 (s390_frame_info): Account for possible use of RETURN_REGNUM
4015 by new literal pool overflow code.
4016 (s390_emit_prologue): Likewise.
4017
4018 2002-06-05 David S. Miller <davem@redhat.com>
4019
4020 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
4021 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
4022 emit_insns_before_scope, emit_insns_after,
4023 emit_insns_after_scope): Delete declaration.
4024 * ada/misc.c (insert_code_for): Use emit_insn* instead of
4025 emit_insns_foo.
4026 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
4027 (alpha_set_memflags): Fix comment.
4028 (set_frame_related_p): Use get_insns instead of gen_sequence.
4029 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
4030 emitting no insns.
4031 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
4032 gen_sequence.
4033 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
4034 * config/fr30/fr30.c (fr30_move_double): Likewise.
4035 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
4036 Likewise.
4037 * config/ia64/ia64.c (spill_restore_mem): Likewise.
4038 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
4039 no insns.
4040 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
4041 instead of gen_sequence.
4042 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
4043 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
4044 * config/sh/sh.c (sh_need_epilogue): Likewise.
4045 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
4046 attributes.
4047 (setjmp pattern and split): Use them to avoid splitter which emits
4048 no RTL.
4049 * genattrtab.c (main): Emit include of function.h
4050 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
4051 get_insns instead of gen_sequence.
4052 * config/cris/cris.c (cris_split_movdx): Likewise.
4053 * emit-rtl.c (emit_insns*): Kill.
4054 (try_split): Expect insn list instead of SEQUENCE.
4055 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
4056 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
4057 Make them abort if a SEQUENCE is given and RTL checking is
4058 enabled.
4059 (emit_*_scope): Don't forget to set scope on final insn.
4060 (gen_sequence): Move from here...
4061 * ssa.c (gen_sequence): To here as private function.
4062 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
4063 comments.
4064 (expand_builtin_return, expand_builtin_mathfn): Likewise.
4065 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
4066 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
4067 (expand_builtin_expect_jump): Use get_insns and fix comments.
4068 * calls.c (try_to_integrate): Use emit_insn_foo.
4069 (expand_call, emit_library_call_value_1): Likewise.
4070 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
4071 (emit_move_insn_1): Use get_insns instead of gen_sequence.
4072 (expand_expr): Use emit_insn_foo.
4073 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
4074 * except.c (build_post_landing_pads): Likewise.
4075 * flow.c (attempt_auto_inc): Likewise.
4076 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
4077 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
4078 * function.c (fixup_var_refs_insn): Use get_insns instead of
4079 gen_sequence.
4080 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
4081 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
4082 (fixup_stack_1, purge_addressof_1, expand_main_function,
4083 get_arg_pointer_save_area): Likewise.
4084 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
4085 expand_function_end): Use emit_insn_foo.
4086 (record_insns, keep_stack_depressed): Work with insn list instead
4087 of SEQUENCE, fix comments.
4088 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
4089 noce_try_store_flag_constants, noce_try_store_flag_inc,
4090 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
4091 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
4092 (noce_process_if_block): Use get_insns instead of gen_sequence.
4093 * optabs.c (add_equal_note): Work with insn list, fix comments.
4094 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
4095 (expand_unop, expand_complex_abs, expand_unop_insn,
4096 expand_no_conflict_block): Likewise.
4097 (gen_move_insn): Use get_insns instead of gen_sequence.
4098 (gen_cond_trap): Likewise.
4099 * integrate.c (copy_rtx_and_substitute): Likewise.
4100 (emit_initial_value_sets): Use emit_insn_foo.
4101 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
4102 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
4103 now that RTL generators give insn lists.
4104 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
4105 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
4106 instead of gen_sequence.
4107 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
4108 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
4109 instead of gen_sequence.
4110 * loop.c (move_movables, emit_prefetch_instructions,
4111 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
4112 Likewise.
4113 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
4114 (product_cheap_p): Likewise, and add commentary about RTL wastage
4115 here.
4116 * lcm.c (optimize_mode_switching): Use get_insns instead of
4117 gen_sequence.
4118 * profile.c (gen_edge_profiler): Likewise.
4119 * regmove.c (copy_src_to_dest): Likewise.
4120 * reg-stack.c (compensate_edge): Likewise and fix comment.
4121 * gcse.c (process_insert_insn): Likewise.
4122 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
4123 * jump.c (delete_prior_computation): Update comment.
4124 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
4125 of gen_sequence, update comments to match.
4126 * recog.c (peephole2_optimize): Work with insn lists instead of
4127 SEQUENCE rtl.
4128 * sched-vis.c (print_pattern): Abort on SEQUENCE.
4129 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
4130 Use get_insns instead of gen_sequence.
4131 (copy_loop_body): Likewise and don't emit dummy NOTE.
4132 * genrecog.c: Don't mention SEQUENCE rtl in comments.
4133 * combine.c (try_combine): Expect insn lists from split generator.
4134 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
4135 hand.
4136
4137 2002-06-11 Roger Sayle <roger@eyesopen.com>
4138 Andreas Jaeger <aj@suse.de>
4139
4140 * cfgbuild.c: Update copyright years.
4141
4142 2002-06-11 Andreas Schwab <schwab@suse.de>
4143
4144 * config/m68k/m68k.h (PREDICATE_CODES): Define.
4145
4146 2002-06-11 Eric Christopher <echristo@redhat.com>
4147
4148 * doc/tm.texi (Run-time Target): Add comment about flag_iso
4149 and strict ANSI.
4150 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
4151 * config/mips/ecoffl.h: Ditto.
4152 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
4153 (CPP_PREDEFINES): Ditto.
4154 * config/mips/elfl64.h: Ditto.
4155 * config/mips/elfl.h: Ditto.
4156 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
4157 out until irix header consolidation.
4158 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
4159 with SUBTARGET_OS_CPP_BUILTINS.
4160 * config/mips/iris6.h: Ditto.
4161 (CPLUSPLUS_CPP_SPEC): Remove.
4162 * config/mips/linux.h: Ditto.
4163 * config/mips/netbsd.h: Ditto.
4164 * config/mips/openbsd.h: Ditto.
4165 * config/mips/rtems.h: Ditto.
4166 * config/mips/rtems64.h: Ditto.
4167 * config/mips/sni-svr4.h: Ditto.
4168 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
4169 ISA_MIPS32, ISA_MIPS64): New defines.
4170 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
4171 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
4172 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4173 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
4174 (TARGET_CPU_CPP_BUILTINS): Define.
4175 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
4176 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
4177 (movdicc): Remove check for ISA_MIPS32.
4178 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
4179 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
4180 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
4181 sunge_sf, sunle_df, sunle_sf): New patterns.
4182
4183 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
4184
4185 * Makefile.in: Update cppmain.o.
4186 * cpphash.h (struct cpp_reader): Move some members to a
4187 nested structure.
4188 (trad_line): Rename saved_line.
4189 (_cpp_read_logical_line_trad): Update.
4190 (_cpp_remove_overlay): New.
4191 * cppinit.c (cpp_create_reader): No need to set saved_line.
4192 (cpp_destroy): Update.
4193 (cpp_read_main_file): Only overlay if compiling.
4194 * cpplex.c (continue_after_nul): Return false if in directive.
4195 * cpplib.c (EXPAND): New.
4196 (directive_table, SEEN_EOL): Update.
4197 (end_directive): Remove overlay if traditional; don't skip
4198 line in traditional #define.
4199 (prepare_directive_trad): New.
4200 (_cpp_handle_directive, run_directive): Update for traditional
4201 directives.
4202 (lex_macro_node): Simplify, don't use lex_identifier_trad.
4203 * cpplib.h (struct options): Add preprocess_only.
4204 * cppmain.c: Don't include intl.h.
4205 (cpp_preprocess_file): Set options->preprocess_only.
4206 (scan_translation_unit_trad): Fix, and print line numbers.
4207 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
4208 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
4209 save_replacement_text, _cpp_create_trad_definition): Update for
4210 variable renaming.
4211 (_cpp_overlay_buffer): Save line number.
4212 (_cpp_remove_overlay): Rename from restore_buff, restore line.
4213 (_cpp_read_logical_line_trad): Don't handle overlays here.
4214 (scan_out_logical_line): Process directives.
4215
4216 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
4217
4218 * gthr-win32.h: Wrap functions in extern "C".
4219 (__gthread_key_t): Typedef as unsigned long,
4220 not win32 DWORD.
4221 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
4222 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
4223 (__gthr_win32_once, __gthr_win32_key_create,
4224 __gthr_win32_key_delete, __gthr_win32_getspecific,
4225 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
4226 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
4227 __gthr_win32_mutex_unlock): Declare.
4228 (__gthread_once,__gthread_key_create,
4229 __gthread_key_delete, __gthread_getspecific,
4230 __gthread_setspecific, __gthread_mutex_init_function,
4231 __gthread_mutex_lock,__gthread_mutex_trylock,
4232 __gthread_mutex_unlock): Call corresponding
4233 __gthr_win32_* extern implementations if #defined
4234 __GTHREAD_HIDE_WIN32API.
4235 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
4236 $(srcdir)/config/i386/gthr-win32.c
4237 * config/i386/gthr-win32.c: New implementation file.
4238 (__gthr_win32_once, __gthr_win32_key_create,
4239 __gthr_win32_key_delete, __gthr_win32_getspecific,
4240 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
4241 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
4242 __gthr_win32_mutex_unlock): New functions, based on
4243 static inlines in gthr-win32.h.
4244
4245 2002-06-10 Bob Wilson <bob.wilson@acm.org>
4246
4247 * config/xtensa/xtensa.c (override_options): Don't warn about
4248 using -fpic or -fPIC when PIC is enabled by default.
4249
4250 2002-06-10 Roger Sayle <roger@eyesopen.com>
4251
4252 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
4253
4254 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4255
4256 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
4257 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
4258 exists, substitute its pathname as @extra_modes_file@, define
4259 EXTRA_MODES_FILE to be an appropriate string to #include it
4260 with, and define EXTRA_CC_MODES to 1.
4261
4262 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
4263 it's defined. Get rid of redundancy in calling sequence for
4264 CC; don't use it to define CCmode, to avoid a warning.
4265 * libgcc2.c: Include symcat.h for the sake of machmode.def.
4266
4267 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
4268 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
4269 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
4270 New files.
4271 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
4272 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
4273
4274 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
4275 defining extra CC modes.
4276
4277 2002-06-10 Roger Sayle <roger@eyesopen.com>
4278 Andreas Jaeger <aj@suse.de>
4279
4280 * cfgrtl.c (create_basic_block_structure): Remove index argument
4281 and use last_basic_block++ instead. (create_basic_block): Update.
4282 * cfgbuild.c (find_basic_blocks_1): Likewise.
4283
4284 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
4285 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
4286 * sched-ebb.c (schedule_ebbs): Likewise.
4287 * sched-rgn.c (schedule_insns): Likewise.
4288 * ssa-ccp.c (ssa_const_prop): Likewise.
4289 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
4290 * toplev.c (rest_of_compilation): Likewise.
4291 * config/ia64/ia64.c (ia64_reorg): Likewise.
4292
4293 2002-06-10 Roger Sayle <roger@eyesopen.com>
4294
4295 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
4296 of matching registers.
4297
4298 2002-06-10 Roger Sayle <roger@eyesopen.com>
4299
4300 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
4301 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
4302
4303 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
4304
4305 * config/mmix/mmix.h: Improve comments.
4306 (CPP_SPEC, CPP_PREDEFINES): Don't define.
4307 (TARGET_CPU_CPP_BUILTINS): Define.
4308 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
4309 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
4310 unused predicate.
4311 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
4312 compiler warning.
4313 (mmix_constant_address_p): Remove another
4314 redundant test before case.
4315 (mmix_canonicalize_comparison): Remove unused function.
4316 (mmix_print_operand_address): Don't test and adjust for operand in
4317 non-canonical format.
4318 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
4319 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
4320
4321 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4322
4323 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
4324 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
4325 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
4326 (gen_compare): Use CCmode unconditionally.
4327
4328 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4329
4330 PR optimization/6759
4331 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
4332 the REQ_EQUAL note.
4333
4334 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4335
4336 PR c/6660
4337 * c-decl.c (grokfield): Allow user defined types if they declare
4338 structs or unions for unnamed fields.
4339
4340 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4341
4342 PR c/6809
4343 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
4344
4345 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4346
4347 PR optimization/6842
4348 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
4349 operand subreg cannot be simplified.
4350
4351 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4352
4353 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
4354 (compare_constant): Likewise.
4355 (output_addressed_constants): Likewise.
4356
4357 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4358
4359 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
4360 merge bb with itself.
4361
4362 2002-06-10 Richard Henderson <rth@redhat.com>
4363
4364 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
4365 (builtin_zapnot): Likewise.
4366
4367 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
4368 reservation.
4369
4370 2002-06-10 Eric Christopher <echristo@redhat.com>
4371
4372 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
4373 prototype and function.
4374 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
4375 (call_insn_operand): Remove half pic references.
4376 (legitimate_address_p): Ditto.
4377 * config/i386/i386.h: Remove half pic defines.
4378
4379 2002-06-10 Eric Christopher <echristo@redhat.com>
4380
4381 * doc/extend.texi (Return Address): Add note explaining the side-
4382 effects of inlining on __builtin_return_address.
4383
4384 2002-06-10 Tom Tromey <tromey@redhat.com>
4385
4386 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
4387 (c-common.o): Depend on langhooks.h.
4388
4389 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4390
4391 * cpphash.h (_cpp_read_logical_line_trad,
4392 _cpp_expansions_different_trad): Update prototypes.
4393 * cpplex.c (continue_after_nul): New.
4394 * cppmain.c: Include cpphash.h.
4395 (scan_translation_unit_trad): New.
4396 (cpp_preprocess_file): Call it.
4397 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
4398 overlay.
4399 (_cpp_expansions_different_trad): Update prototype.
4400
4401 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
4402
4403 Fix cfi generation for SH[1-4]:
4404
4405 * sh.c (frame_insn): New function.
4406 (output_stack_adjust): Add parameter emit_fn. All callers changed.
4407 (push): Now returns rtx. Use frame_insn.
4408 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
4409 of a DF register.
4410 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
4411
4412 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4413
4414 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
4415 and gtype-desc.c.
4416 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
4417 (distclean): ... not here. But do delete all testsuite/*.log,
4418 testsuite/*.sum files here. Delete mkheaders. Delete
4419 po/*.gmo and the testsuite directory in a split tree build.
4420
4421 2002-06-10 Jeffrey Law <law@redhat.com>
4422
4423 * alias.c (static_reg_base_value): New to hold RTL for
4424 items allocated once per function for the aliasing code.
4425 (init_alias_once_per_function): Initialize static_reg_base_value.
4426 (init_alias_analysis): Avoid throw-away allocations of RTL by
4427 using pre-computed values in static_reg_base_value.
4428 * function.c (prepare_function_start): Call
4429 init_alias_once_per_function appropriately.
4430 * rtl.h (init_alias_once_per_function): Declare.
4431 * caller-save (init_caller_save): Restructure slightly to
4432 avoid lots of silly RTL generation.
4433 * expr.c (init_expr_once): Likewise.
4434 * reload1.c (reload_cse_regs_1): Allocate throw-away register
4435 RTL object here. Pass it into children.
4436 (reload_cse_simplify_operands): Use passed-in register RTL
4437 object.
4438 (reload_cse_simplify): Pass through throw-away register
4439 RTL object.
4440
4441 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
4442
4443 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
4444
4445 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
4446
4447 * gcc.c (process_command): Avoid assignment to read-only location.
4448 Fix sizeof calculation.
4449
4450 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4451
4452 * cpphash.h (struct cpp_macro): Put comments on their own lines.
4453 (_cpp_expansions_different_trad): New.
4454 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
4455 * cpptrad.c (canonicalize_text): New.
4456 (scan_out_logical_line): Handle no arguments correctly.
4457 (save_replacement_text): Commit memory when finished.
4458 (_cpp_expansions_different_trad): New.
4459
4460 2002-06-10 Tim Josling <tej@melbpc.org.au>
4461
4462 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
4463 TREELANG and COBOL.
4464 (lang_names): Add treelang and cobol.
4465 (get_file_basename): Add code to support treelang and cobol as
4466 4th and 5th users of c-common.c.
4467
4468 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
4469
4470 * Makefile.in (install-driver): Install driver as
4471 $(target_alias)-gcc-$(version).
4472 * gcc.c (spec_version): Make const.
4473 (process_command): Handle -V and -b by using exec.
4474 * doc/invoke.texi (Target Options): Restore -V option,
4475 update docs for -b option.
4476
4477 2002-06-10 Tim Josling <tej@melbpc.org.au>
4478
4479 * configure.in (remaining_languages_check):
4480 Added check that all languages specified were found.
4481 Exit if not found. Previous behaviour was silent failure.
4482 * configure: Regenerated.
4483
4484 2002-06-10 Tim Josling <tej@melbpc.org.au>
4485
4486 First steps to making treelang documentation compliant, based on
4487 instructions in sourcebuild.texi. Also add to gcc.c list of
4488 default languages.
4489
4490 * doc/contrib.texi: Add self as contributor of treelang.
4491
4492 * doc/frontends.texi: Add mention of treelang.
4493
4494 * doc/invoke.texi (Overall Options): Add mention of treelang.
4495
4496 * doc/standards.texi: Add mention of treelang.
4497
4498 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
4499
4500 * config/cris/cris.c: Include ggc.h
4501
4502 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
4503
4504 * cpphash.h (_cpp_push_text_context): Update.
4505 (_cpp_arguments_ok): New.
4506 * cppmacro.c (_cpp_arguments_ok): New, split out from...
4507 (collect_args): ...here.
4508 (_cpp_push_text_context): Change inputs.
4509 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
4510 replace_args_and_push): New.
4511 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
4512 Don't use IS macros directly.
4513 (scan_out_logical_line): Handle function-like macro argument
4514 collection.
4515 (push_replacement_text): Update.
4516 (replacement_length): Remove.
4517 (_cpp_create_trad_definition): Don't skip whitespace before
4518 checking for '('.
4519
4520 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4521
4522 * config/avr/avr.c (avr_mcu_types): Update for new devices.
4523 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
4524 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
4525 * config/avr/avr.md ("type" and "length" attributes): New type
4526 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
4527 output a single "call" or "rcall" insn depending on device size.
4528 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
4529
4530 2002-06-09 David Edelsohn <edelsohn@gnu.org>
4531
4532 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
4533 synonym for 630. Add power4. Remove embedded processors. Use -m604
4534 assembler option.
4535 (CPP_CPU_SPEC): Add power3 and power4.
4536 (PROCESSOR_DEFAULT): Change to 604e.
4537 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
4538 (CPP_CPU_SPEC): Similar additions.
4539 (enum process_type): Add POWER4.
4540 (RTX_COSTS): Add POWER4.
4541 (CPP_CPU_SPEC): Similar additions.
4542 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
4543 (PROCESSOR_DEFAULT64): Define.
4544 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
4545 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
4546 branch adjustment.
4547 (rs6000_issue_rate): Add Power4.
4548 * config/rs6000/rs6000.md (cpu attr): Add power4.
4549 (iu compare): Remove 604, 604e, 620, 630.
4550 Add basic Power4 scheduling information.
4551 (mfcr/mtcrf): Change type attribute to cr_logical.
4552
4553 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4554
4555 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
4556 ATTRIBUTE_PRINTF_2.
4557 * gengtype-lex.l: Fix format specifier warning.
4558
4559 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
4560 not isspace.
4561 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
4562 lieu of isspace/IDchar.
4563 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
4564 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
4565 ISSPACE.
4566
4567 2002-06-08 Zack Weinberg <zack@codesourcery.com>
4568
4569 * Makefile.in (LIBCPP_OBJS): Take out version.o.
4570 * cpphash.h (cpp_reader): Take out print_version member.
4571 * cppinit.c: (cpp_handle_option): Don't do anything with
4572 -version. Just set help_only for --version, --target-help.
4573 Just set verbose option for -v.
4574 (cpp_post_options): Don't print a version string.
4575
4576 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4577
4578 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
4579 (avr_section_type_flags): New, handle .noinit* sections.
4580
4581 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4582
4583 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
4584 and include netbsd_entry_point.
4585 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4586 (NETBSD_ENTRY_POINT): Define.
4587
4588 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4589
4590 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
4591 if not already defined.
4592 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
4593
4594 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4595
4596 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
4597 in a noreturn function.
4598 (avr_output_function_prologue, avr_output_function_epilogue):
4599 Correct function size calculation. Do not crash on empty function.
4600 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
4601
4602 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4603
4604 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4605 netbsd_link_spec and netbsd_entry_point.
4606 (LINK_SPEC): Use %(netbsd_link_spec).
4607 (NETBSD_ENTRY_POINT): Define.
4608
4609 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4610
4611 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
4612 linker emulation.
4613 (LINK_ARCH64_SPEC): Likewise.
4614 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
4615 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
4616
4617 2002-06-08 Marc Espie <espie@openbsd.org>
4618
4619 * lists.c (free_list): Fix typo in comment.
4620
4621 2002-06-08 Andreas Jaeger <aj@suse.de>
4622
4623 * lcm.c (optimize_mode_switching): Add unused attribute for
4624 variable.
4625
4626 * sched-deps.c (sched_analyze): Remove unused variable.
4627
4628 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
4629
4630 * diagnostic.def: Don't capitalize diagnostict descriptors.
4631
4632 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4633
4634 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
4635 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4636 (NETBSD_ENTRY_POINT): Define.
4637
4638 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4639
4640 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
4641 NETBSD_LINK_SPEC_ELF.
4642 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
4643 (NETBSD_ENTRY_POINT): Define.
4644 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
4645 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
4646 netbsd_entry_point.
4647 (NETBSD_ENTRY_POINT): Define.
4648
4649 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4650
4651 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4652 netbsd_link_spec and netbsd_entry_point.
4653 (LINK_SPEC): Use %(netbsd_link_spec).
4654 (NETBSD_ENTRY_POINT): Define.
4655
4656 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4657
4658 * config/netbsd-elf.h (LINK_SPEC): Rename to...
4659 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
4660 to specify program entry point.
4661
4662 2002-06-07 Jeff Law <law@redhat.com
4663
4664 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
4665 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
4666 than creating a new register.
4667 (distribute_notes): Likewise.
4668 * df.c (df_reg_use_gen): Likewise.
4669 (df_reg_clobber_gen): Likewise.
4670 (df_ref_record): Likewise.
4671 * expr.c (use_regs): Likewise.
4672 * flow.c (propagate_one_insn): Likewise.
4673 (mark_set_1): Likewise.
4674 (mark_used_reg): Likewise.
4675 * reload.c (emit_reload_insns): Likewise.
4676
4677 2002-06-07 Roger Sayle <roger@eyesopen.com>
4678
4679 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
4680 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
4681 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
4682 comparison code comp can be reversed.
4683
4684 2002-06-07 Roger Sayle <roger@eyesopen.com>
4685
4686 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
4687 constants last in comparisons. Optimize (x+1.0)>0.0 into the
4688 equivalent x > -1.0 when -ffast-math.
4689
4690 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4691
4692 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
4693 * config/mips/t-netbsd: New file.
4694
4695 2002-06-07 Zack Weinberg <zack@codesourcery.com>
4696
4697 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4698 options their own entries.
4699 (parse_option): Clarify comment.
4700 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
4701 special case. Replace if/strcmp chain for -W options with
4702 use of new OPT_* entries for them.
4703 (cpp_handle_options): Update to match.
4704 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
4705 * c-decl.c: Update call to cpp_handle_option.
4706
4707 2002-06-07 Akim Demaille <akim@epita.fr>
4708
4709 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
4710 Whitespace changes.
4711
4712 2002-06-07 Jeffrey Law <law@redhat.com>
4713
4714 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
4715 on empty lists.
4716
4717 2002-06-07 H.J. Lu (hjl@gnu.org)
4718
4719 * configure.in: Add --enable-__cxa_atexit.
4720 * configure: Regenerated.
4721 * config.in: Likewise.
4722
4723 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
4724 not defined.
4725
4726 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
4727
4728 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
4729
4730 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4731
4732 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
4733
4734 2002-06-07 Jason Merrill <jason@redhat.com>
4735
4736 * cppexp.c (num_equality_op): Use a temporary variable to work
4737 around gcc 3.0.4 bug.
4738
4739 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
4740
4741 * diagnostic.c (diagnostic_build_prefix): Tidy.
4742
4743 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
4744
4745 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
4746 scan_parameters, save_replacement_text, replacement_length): New.
4747 (scan_out_logical_line): Take a macro and save parameters if
4748 non-NULL.
4749 (_cpp_logical_line_trad): Update.
4750 (_cpp_create_trad_definition): Update to handle function-like
4751 macros.
4752 * cpplex.c (new_buff): Update.
4753 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
4754 * cpphash.h: ...here.
4755 (CPP_ALIGN2, _cpp_save_parameter): New.
4756 * cppmacro.c (save_parameter): Rename, export.
4757 (parse_params): Update.
4758
4759 2002-06-07 Andreas Jaeger <aj@suse.de>
4760
4761 * config/mmix/mmix.c: Remove extra broken prototype for
4762 mmix_init_machine_status.
4763
4764 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
4765
4766 * gengtype.c: Add comments before all the routines.
4767
4768 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4769
4770 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
4771 from and add t-sh64 to ${tmake_file}.
4772 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
4773 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
4774 * config/sh/t-netbsd-sh5-32: Remove.
4775 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
4776 MULTILIB_ENDIAN.
4777 (MULTILIB_DIRNAMES): Define.
4778
4779 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
4780
4781 * i386.md (and promoting splitters): Disable QI to SImode promoting
4782 when doing so changes immediate to be 32bit.
4783
4784 * rtl.h (emit_*_scope): Declare.
4785 * emit-rtl.c (emit_*_scope): New global functions.
4786 (try_split): Copy scope.
4787 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4788 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4789 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4790 noce_process_if_block, find_cond_trap): Copy scopes.
4791 * recog.c (peephole2_optimize): likewise.
4792
4793 2002-06-06 Jeffrey Law <law@redhat.com>
4794
4795 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
4796
4797 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
4798
4799 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
4800
4801 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4802
4803 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
4804 ($(docdir)/gccinstall.info): New target.
4805 (info): Depend on it.
4806 (gccinstall.dvi): New target.
4807 (dvi): Depend on it.
4808 * doc/.cvsignore: Ignore new info files.
4809 * doc/install.texi (@setfilename): Reflect new info filename.
4810
4811 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
4812
4813 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
4814 on an UNSPEC.
4815
4816 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
4817
4818 PR objc/6834
4819 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
4820 c_common_get_alias_set.
4821 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
4822
4823 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4824
4825 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
4826 functions.
4827 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
4828 * avr/avr.c (avr_output_function_epilogue): Use above to determine
4829 function size.
4830 * pa/pa.c (pa_output_function_prologue): Likewise.
4831
4832 2002-06-05 David S. Miller <davem@redhat.com>
4833
4834 * integrate.c (subst_constants): Handle 'B' RTL format.
4835
4836 2002-06-05 Eric Christopher <echristo@redhat.com>
4837
4838 * varasm.c (make_decl_rtl): Fix comment for removed
4839 halfpic.c.
4840
4841 2002-06-05 Eric Christopher <echristo@redhat.com>
4842
4843 * Makefile.in: Remove missed halfpic bits.
4844
4845 2002-06-05 Eric Christopher <echristo@redhat.com>
4846
4847 * toplev.c: Remove half-pic.
4848 * config/mips/mips.c: Ditto.
4849 * config/mips/mips.h: Ditto. Remove unused defines.
4850 * config/mips/openbsd.h: Update comment to reflect above.
4851 * config/mips/mips.md: Remove half-pic constraints.
4852 * halfpic.h: Delete.
4853 * halfpic.c: Ditto.
4854
4855 2002-06-05 Jeffrey Law <law@redhat.com>
4856
4857 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
4858 rejects (mem (lo_sum (reg) (unspec))), but will allow
4859 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
4860
4861 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4862
4863 * cpphash.h (_cpp_create_definition): Update prototype.
4864 (_cpp_push_text_context, _cpp_create_trad_definition): New.
4865 ( cpp_lex_identifier_trad): New.
4866 (_cpp_set_trad_context): New.
4867 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
4868 * cpplib.c (SEEN_EOL): Update.
4869 (lex_macro_node): Update for -traditional.
4870 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
4871 * cppmacro.c (_cpp_create_definition): Split into
4872 create_iso_definition() and _cpp_create_trad_definition().
4873 (warn_of_redefinition): Update prototype; handle traditional
4874 macros.
4875 (_cpp_push_text_context): New.
4876 * cpptrad.c (skip_whitespace, push_replacement_text): New.
4877 (lex_identifier): Call ht_lookup with correct start.
4878 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
4879 _cpp_set_trad_context): New.
4880 (scan_out_logical_line): Update to handle changing contexts.
4881
4882 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
4883
4884 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
4885 (shl*-*-elf*): Add.
4886 * config/sh/t-be (MULTILIB_ENDIAN): Set.
4887 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
4888 * t-sh (MULTILIB_ENDIAN): Set.
4889 (MULTILIB_OPTIONS): Use it.
4890 * t-sh64 (MULTILIB_OPTIONS): Likewise.
4891 (MULTILIB_DIRNAMES): Likewise.
4892
4893 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
4894
4895 * toplev.h (report_error_function): Remove.
4896
4897 * diagnostic.h (location_t): New datatype.
4898 (text_info): Likewise.
4899 (diagnostic_info): Likewise.
4900 (output_prefix): New macro.
4901 (diagnostic_last_function_changed): Likewise.
4902 (diagnostic_set_last_function): Likewise.
4903 (diagnostic_last_module_changed): Likewise.
4904 (diagnostic_set_last_module): Likewise.
4905 (report_diagnostic): Now macro.
4906 (diagnostic_set_info): Declare.
4907
4908 * diagnostic.c (report_problematic_module): Rename to
4909 diagnostic_repor_current_module.
4910 (set_diagnostic_context): Remove.
4911 (count_error): Rename to diagnostic_error_count.
4912 (error_function_changed): Remove.
4913 (record_last_error_function): Likewise.
4914 (error_module_changed): Likewise.
4915 (record_last_error_module): Likewise.
4916 (context_as_prefix): Rename to diagnostic_build_prefix.
4917 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4918 (diagnostic_set_info): New function.
4919
4920 * objc/objc-act.c: #include diagnostic.h
4921 (error_with_ivar): Adjust call to count_error.
4922 (warn_with_method): Likewise.
4923 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4924
4925 2002-06-05 Bob Wilson <bob.wilson@acm.org>
4926
4927 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4928 lang_hooks.types.make_type instead of make_node; set up
4929 __va_list_tag type decl.
4930 (xtensa_builtin_saveregs): Remove broken use of
4931 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4932 for saved registers; add varargs alias set.
4933
4934 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4935
4936 config:
4937 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4938 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4939 CPP_PREDEFINES and part of CPP_SPEC.
4940 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4941 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4942
4943 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
4944
4945 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4946
4947 2002-06-05 Alan Modra <amodra@bigpond.net.au>
4948
4949 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4950
4951 2002-06-04 Zack Weinberg <zack@codesourcery.com>
4952
4953 * gengtype-yacc.y: Make sure all rules end with a semicolon.
4954
4955 2002-06-04 Bob Wilson <bob.wilson@acm.org>
4956
4957 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4958 typo in function prototype and include "ggc.h" header.
4959
4960 2002-06-04 Richard Henderson <rth@redhat.com>
4961
4962 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4963 (print_operand) ['U']: Likewise.
4964 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4965 (alpha_expand_unaligned_store_words): Likewise.
4966 (alpha_expand_builtin_vector_binop): Fix typo.
4967 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4968 umulh, and cix insns.
4969 (one_arg_builtins): Add cix builtins.
4970 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4971 (alpha_expand_builtin): Fix typo in arity.
4972 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4973 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4974 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4975 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4976 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4977 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4978 builtin_ctlz, builtin_ctpop): New.
4979 * doc/extend.texi (Alpha Built-in Functions): Update.
4980
4981 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
4982
4983 * gengtype.c (write_gc_root): Don't unnecessarily prevent
4984 global variable-length arrays being roots.
4985
4986 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4987 * configure.in (config_gtfiles): New variable.
4988 (all_gtfiles): Initialise from config_gtfiles.
4989 * configure: Regenerate.
4990
4991 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4992
4993 config/i386:
4994 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4995 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4996 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4997 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4998 win32.h (CPP_SPEC): Remove cpp_cpu.
4999 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
5000 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
5001
5002 2002-06-04 Janis Johnson <janis187@us.ibm.com>
5003
5004 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
5005
5006 2002-06-04 Jeff Law <law@redhat.com.
5007 David Edelsohn <edelsohn@gnu.org>
5008 Michael Matz <matz@kde.org>
5009
5010 * sched-int.h (struct deps): New field libcall_block_tail_insn.
5011 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
5012 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
5013 is set, then mark the current insn as being part of a libcall
5014 scheduling group.
5015 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
5016
5017 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
5018 insns against the issue rate.
5019
5020 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
5021
5022 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
5023 * final.c (final_scan_insn): Likewise.
5024 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
5025 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
5026 * haifa-sched.c (unlink_other_notes): Likeewise.
5027 (reemit_notes): Likewise.
5028 * print-rtl.c (print_rtx): Likewise.
5029 * sched-deps (sched-analyze): Likewise.
5030 * rtl.c (note_insn_name): Likewise.
5031 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
5032 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
5033 (RANGE_*): Kill.
5034
5035 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5036
5037 * varasm.c (mark_constants): Handle RTX format 'B'.
5038
5039 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
5040
5041 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
5042 (struct cpp_context): Add traditional fields.
5043 * cppmacro.c (paste_all_tokens, push_ptoken_context,
5044 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
5045 * cpptrad.c (skip_comment, lex_identifier,
5046 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
5047
5048 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
5049
5050 * gbl-ctors.h: Fix formatting.
5051 * gcc.c: Likewise.
5052 * gccspec.c: Likewise.
5053 * gcov.c: Likewise.
5054 * gcov-io.h: Likewise.
5055 * gcse.c: Likewise.
5056 * ggc-common.c: Likewise.
5057 * ggc.h: Likewise.
5058 * ggc-page.c: Likewise.
5059 * ggc-simple.c: Likewise.
5060 * global.c: Likewise.
5061 * graph.h: Likewise.
5062 * gthr-dce.h: Likewise.
5063 * gthr.h: Likewise.
5064 * gthr-posix.h: Likewise.
5065 * gthr-rtems.h: Likewise.
5066 * gthr-solaris.h: Likewise.
5067 * gthr-win32.h: Likewise.
5068
5069 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
5070
5071 Merge from pch-branch:
5072
5073 * gengtype.h (UNION_OR_STRUCT_P): New macro.
5074 * gengtype.c (write_gc_structure_fields): Use it.
5075 (write_gc_root): Use it here too.
5076
5077 * gengtype.c (write_gc_structure_fields): Assume that lengths
5078 of typenames fit into an 'int'; don't pass a size_t to "%d" in
5079 printf.
5080 (write_gc_marker_routine_for_structure): Likewise.
5081 (write_gc_types): Likewise.
5082 (write_gc_root): Likewise.
5083
5084 * varray.h (VARRAY_CLEAR): New.
5085 (varray_clear): Prototype.
5086 * varray.c (varray_clear): New.
5087 * cselib.c (reg_values_old): New.
5088 (used_regs_old): New.
5089 (cselib_init): Use cached varrays if available to avoid
5090 generating large amounts of garbage.
5091 (cselib_finish): Don't throw away old varrays.
5092
5093 * final.c (insn_addresses_): Move out of ifdef.
5094
5095 * varray.c (uses_ggc): Make more varray kinds GCable.
5096 * varray.h (union varray_data_tag): Let gengtype see
5097 fields 'generic' and 'te'.
5098 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
5099 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
5100 (reg_to_stack): Don't call VARRAY_FREE.
5101 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
5102 (insn_addresses_): Use gengtype to mark.
5103 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
5104 pointers; handle generic pointers in unused union fields.
5105 (get_output_file_with_visibility): Include cselib.h,
5106 insn-addr.h in gtype-desc.c.
5107 * function.c (prologue): Use gengtype to mark.
5108 (epilogue): Likewise.
5109 (sibcall_epilogue): Likewise.
5110 * dependence.c: Include gt-dependence.h, ggc.h.
5111 (struct def_use): Use gengtype to mark.
5112 (struct loop): Likewise.
5113 (struct induction): Likewise.
5114 (struct dependence): Likewise.
5115 (def_use_chain): Likewise.
5116 (dep_chain): Likewise.
5117 (loop_chain): Likewise.
5118 (induction_chain): Likewise.
5119 (init_dependence_analysis): Don't free anything, just clear pointers.
5120 (build_def_use): Use GGC to allocate def_use.
5121 (add_loop): Use GGC to allocate loop.
5122 (find_induction_variable): Use GGC to allocate induction.
5123 (check_node_dependence): Use GGC to allocate induction, dependence.
5124 (dump_node_dependence): Don't free varrays.
5125 (end_dependence_analysis): Likewise.
5126 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
5127 (struct elt_loc_list): Likewise.
5128 (struct elt_list): Likewise.
5129 * cselib.c: Don't include obstack.h.
5130 (hash_table): Use gengtype to mark.
5131 (reg_values): Use gengtype to mark.
5132 (used_regs): Use gengtype to mark.
5133 (cselib_obstack): Delete.
5134 (cselib_startobj): Delete.
5135 (empty_vals): Mark as deletable.
5136 (empty_elt_lists): Mark as deletable.
5137 (empty_elt_loc_lists): Mark as deletable.
5138 (new_elt_list): Use GGC to allocate struct elt_list.
5139 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
5140 (clear_table): Don't delete obstack; don't unnecessarily clear
5141 deletable variables.
5142 (new_cselib_val): Use GGC to allocate struct cselib_val.
5143 (cselib_init): Don't set up obstacks. Use GGC to allocate
5144 hash table.
5145 (cselib_finish): Just clear variables, don't free anything.
5146 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
5147 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
5148 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
5149 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
5150 (gt-reg-stack.h): New rule.
5151 (gt-dependence.h): New rule.
5152 (gtype-desc.o): Add cselib.h, insn-addr.h.
5153
5154 * varray.c: Use only necessary headers.
5155 (element_size): New.
5156 (uses_ggc): New.
5157 (varray_init): Take type, not size. Use GGC if appropriate.
5158 (varray_grow): Update for change to struct varray_head_tag.
5159 Use GGC if appropriate.
5160 * varray.h (struct const_equiv_data): Use gengtype.
5161 (enum varray_data_enum): New.
5162 (union varray_data_tag): Use gengtype.
5163 (struct varray_head_tag): Use gengtype. Replace size field with
5164 enum varray_data_enum.
5165 (varray_init): Update prototype.
5166 (VARRAY_SCHED_INIT): Delete.
5167 (VARRAY_*_INIT): Update for change to varray_init.
5168 (VARRAY_SCHED): Delete.
5169 (VARRAY_PUSH_SCHED): Delete.
5170 (VARRAY_TOP_SCHED): Delete.
5171 * tree.h: Update for change to length specifier.
5172 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
5173 (clone_body): Likewise.
5174 * ssa.h (ssa_definition): Use gengtype to mark.
5175 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
5176 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
5177 * rtl.h (struct rtvec_def): Update for change to length specifier.
5178 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
5179 (struct initial_value_struct): Update for change to length specifier.
5180 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
5181 (ggc_add_tree_varray_root): Delete prototype.
5182 (ggc_mark_rtx_varray): Delete prototype.
5183 (ggc_mark_tree_varray): Delete prototype.
5184 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
5185 (ggc_add_tree_varray_root): Delete.
5186 (ggc_mark_rtx_varray): Delete.
5187 (ggc_mark_tree_varray): Delete.
5188 (ggc_mark_rtx_varray_ptr): Delete.
5189 (ggc_mark_tree_varray_ptr): Delete.
5190 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
5191 (create_varray): Delete prototype.
5192 * gengtype.c (varrays): Delete.
5193 (create_varray): Delete.
5194 (adjust_field_type): Detect array of string pointers.
5195 (process_gc_options): Remove code to handle varray_type option.
5196 (set_gc_used_type): Remove TYPE_VARRAY case.
5197 (output_escaped_param): New.
5198 (write_gc_structure_fields): Use output_escaped_param on all
5199 parameters. Handle 'skip' with 'use_param' option. Handle
5200 arrays of strings. Remove TYPE_VARRAY handling.
5201 (write_gc_roots): Use boolean to detect 'length' option.
5202 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
5203 (struct_fields): Call adjust_field_type on array fields.
5204 (type): Remove VARRAY_TYPE case.
5205 (type_option): Likewise.
5206 * gengtype-lex.l: Don't consider varray_type a keyword.
5207 * function.h: Update for change to length specifier.
5208 (free_eh_status): Delete prototype.
5209 * function.c (free_after_compilation): Don't call free_eh_status.
5210 (reorder_blocks): Don't use VARRAY_FREE.
5211 * except.c (struct eh_status): Update for change to length specifier.
5212 remove varray_type specifier.
5213 (free_eh_status): Delete.
5214 * dwarf2out.c: Include gt-dwarf2out.h.
5215 (used_rtx_varray): Use gengtype to mark, move
5216 outside ifdefs.
5217 (incomplete_types): Likewise.
5218 (decl_scope_table): Likewise.
5219 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
5220 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
5221 * c-tree.h (struct lang_type): Update for change to length specifier.
5222 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
5223 * c-objc-common.c: Include gt-c-objc-common.h.
5224 (deferred_fns): Mark for gengtype.
5225 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
5226 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
5227 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
5228 (gtype-desc.o): Update dependencies.
5229 (dwarf2out.o): Add gt-dwarf2out.h.
5230 (varray.o): Update dependencies.
5231 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
5232 (gt-c-objc-common.h): New rule.
5233 (gt-dwarf2out.h): New rule.
5234 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
5235
5236 * doc/gty.texi (GTY Options): Correct spelling.
5237 (GGC Roots): Likewise.
5238 * Makefile.in (TEXI_CPP_FILES): New.
5239 (TEXI_GCC_FILES): New.
5240 (TEXI_GCCINT_FILES): New.
5241 (TEXI_CPPINT_FILES): New.
5242 ($(docdir)/cpp.info): Use new macros.
5243 ($(docdir)/gcc.info): Likewise.
5244 ($(docdir)/gccint.info): Likewise.
5245 ($(docdir)/cppinternals.info): Likewise.
5246 (cpp.dvi): Likewise.
5247 (gcc.dvi): Likewise.
5248 (gccint.dvi): Likewise.
5249 (cppinternals.dvi): Likewise.
5250
5251 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
5252 * doc/gccint.texi (Top): Include gty.texi.
5253 * doc/gty.texi: New file.
5254
5255 * bitmap.c: Include ggc.h, gt-bitmap.h.
5256 (bitmap_ggc_free): New.
5257 (bitmap_elem_to_freelist): New.
5258 (bitmap_element_free): Use bitmap_elem_to_freelist.
5259 (bitmap_element_allocate): Allow use of GGC.
5260 (bitmap_clear): Use bitmap_elem_to_freelist.
5261 (bitmap_copy): Update for change to bitmap_element_allocate.
5262 (bitmap_set_bit): Likewise.
5263 (bitmap_operation): Update for changes elsewhere.
5264 (bitmap_initialize): Allow to create bitmaps that will use GGC.
5265 * bitmap.h (struct bitmap_element_def): Use gengtype.
5266 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
5267 (bitmap_initialize): Add extra parameter.
5268 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
5269 (BITMAP_ALLOCA): Delete.
5270 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
5271 (BITMAP_GGC_ALLOC): New.
5272 * Makefile.in (gtype-desc.o): Add bitmap.h.
5273 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
5274 (GTFILES): Add bitmap.c.
5275 (gt-bitmap.h): New rule.
5276 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
5277 * basic-block.h: Update for changes to bitmap_initialize.
5278 * except.c (exception_handler_label_map): Move into...
5279 (struct eh_status): Here.
5280 (struct eh_region): Make 'aka' GCable.
5281 (free_eh_status): Don't need to specially handle
5282 exception_handler_label_map.
5283 (add_ehl_entry): Update for changes to exception_handler_label_map.
5284 (find_exception_handler_labels): Likewise.
5285 (remove_exception_handler_label): Likewise.
5286 (maybe_remove_eh_handler): Likewise.
5287 (for_each_eh_label): Likewise.
5288 (remove_eh_handler): Allocate 'aka' using GGC.
5289 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
5290 to list of includes.
5291
5292 * gengtype.c (write_gc_marker_routine_for_structure): Name
5293 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
5294 (write_gc_types): Arrange for the tests with NULL to be inlined.
5295 (write_gc_roots): Update uses of procedure pointers.
5296 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
5297
5298 * Makefile.in (explow.o): Add dependency on gt-explow.h.
5299 (sdbout.o): Add dependency on gt-sdbout.h.
5300
5301 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
5302 (mem_attrs_htab): Likewise.
5303 (init_emit_once): Don't call ggc_add_deletable_htab.
5304 * fold-const.c (size_htab): Use gengtype to clear unused entries.
5305 (size_int_type_wide): Don't call ggc_add_deletable_htab.
5306 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
5307 parameters, use them, change callers.
5308 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
5309 (write_gc_roots): Handle 'if_marked' option.
5310 (main): Don't need to call set_gc_used_type any more.
5311 * ggc.h (ggc_htab_marked_p): Delete.
5312 (ggc_htab_mark): Delete.
5313 (struct ggc_cache_tab): New.
5314 (gt_ggc_cache_rtab): New declaration.
5315 * ggc-common.c (struct d_htab_root): Delete.
5316 (d_htab_roots): Delete.
5317 (ggc_add_deletable_htab): Delete.
5318 (ggc_htab_delete): Handle new htab-deleting mechanism.
5319 (ggc_mark_roots): Use new htab-deleting mechanism.
5320 * tree.c (type_hash_table): Use gengtype to clear unused entries.
5321 Make static.
5322 (init_obstacks): Don't call ggc_add_deletable_htab.
5323
5324 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
5325 (struct hashed_entry): Likewise.
5326 (nst_method_hash_list): Likewise.
5327 (cls_method_hash_list): Likewise.
5328 (HASH_ALLOC_LIST_SIZE): Delete.
5329 (ATTR_ALLOC_LIST_SIZE): Delete.
5330 * objc/objc-act.c (hash_init): Use ggc to allocate
5331 nst_method_hash_list, cls_method_hash_list.
5332 (hash_enter): Use ggc to allocate; allocate one entry at a time.
5333 (hash_add_attr): Likewise.
5334 (ggc_mark_hash_table): Delete.
5335 (objc_act_parse_init): Delete.
5336 (objc_init): Delete reference to objc_act_parse_init.
5337 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
5338 obstack.h. Replace references to 'struct hash_table' with htab_t.
5339 (struct symbol_hash_entry): Replace hash header with key field.
5340 (struct file_hash_entry): Replace hash header with key field.
5341 (struct demangled_hash_entry): Replace hash header with key field.
5342 (hash_string_eq): New.
5343 (hash_string_hash): New.
5344 (symbol_hash_newfunc): Delete.
5345 (symbol_hash_lookup): Modify to use htab_t.
5346 (file_hash_newfunc): Delete.
5347 (file_hash_lookup): Modify to use htab_t.
5348 (demangled_hash_newfunc): Delete.
5349 (demangled_hash_lookup): Modify to use htab_t.
5350 (tlink_init): Modify to use htab_t.
5351 * hash.h: Delete.
5352 * hash.c: Delete.
5353 * ggc.h: Delete forward structure declarations.
5354 Delete prototypes for deleted functions.
5355 * ggc-common.c: Don't include hash.h.
5356 (ggc_add_tree_hash_table_root): Delete.
5357 (ggc_mark_tree_hash_table_entry): Delete.
5358 (ggc_mark_tree_hash_table): Delete.
5359 (ggc_mark_tree_hash_table_ptr): Delete.
5360 * gengtype.c (write_gc_structure_fields): Allow param_is option.
5361 (write_gc_marker_routine_for_structure): Use visibility of
5362 the parameter if there is one.
5363 * function.c: Replace hash.h with hashtab.h. Replace references
5364 to 'struct hash_table *' with htab_t.
5365 (struct insns_for_mem_entry): Include a plain key.
5366 (fixup_var_refs_insns_with_hash): Update to use htab_t.
5367 (insns_for_mem_newfunc): Delete.
5368 (insns_for_mem_hash): Update to use htab_t.
5369 (insns_for_mem_comp): Likewise.
5370 (insns_for_mem_walk): Likewise.
5371 * c-lang.c: Include ggc.h.
5372 * Makefile.in (OBJS): Remove hash.o.
5373 (c-lang.o): Add GGC_H.
5374 (COLLECT2_OBJS): Remove hash.o.
5375 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
5376 (ggc-common.o): Remove hash.h.
5377 (function.o): Remove hash.h, add HASHTAB_H.
5378 (genautomata.o): Remove hash.h, add HASHTAB_H.
5379
5380 * varasm.c (mark_const_str_htab_1): Delete.
5381 (mark_const_str_htab): Delete.
5382 (const_str_htab_del): Delete.
5383 (const_str_htab): Use gengtype to mark.
5384 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
5385 allocate them.
5386 * tree.c (mark_tree_hashtable_entry): Delete.
5387 (mark_tree_hashtable): Delete.
5388 * tree.h (mark_tree_hashtable): Delete prototype.
5389 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
5390 (ggc_mark): Likewise.
5391 (ggc_calloc): New.
5392 (htab_create_ggc): New.
5393 * ggc-common.c (ggc_calloc): New.
5394 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
5395 (struct type): Add param_struct structure.
5396 * gengtype.c (param_structs): New.
5397 (adjust_field_type): Handle param_is option.
5398 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
5399 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
5400 (write_gc_structure_fields): Add new PARAM parameter. Update
5401 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
5402 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
5403 Use it to generate function name. Update callers.
5404 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
5405 Process them.
5406 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
5407 option.
5408 (main): Define PTR as pointer-to-scalar. Don't specially
5409 mark deferred_string or ehl_map_entry.
5410 * gengtype-yacc.y (PARAM_IS): Add new token.
5411 (externstatic): Use adjust_field_type.
5412 (type_option): Add PARAM_IS.
5413 * gengtype-lex.l: Add rule for typedef of function pointers.
5414 Add rule for PARAM_IS.
5415 (IWORD): Add size_t.
5416 * except.c (exception_handler_label_map): Use gengtype to mark.
5417 (type_to_runtime_map): Likewise.
5418 (mark_ehl_map_entry): Delete.
5419 (mark_ehl_map): Delete.
5420 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
5421 (t2r_mark_1): Delete.
5422 (t2r_mark): Delete.
5423 * Makefile.in (gtype-desc.o): Correct dependencies.
5424 (GTFILES): Add hashtab.h.
5425 (genautomata.o): Actually uses hashtab.h.
5426
5427 * Makefile.in (stringpool.o): Add $(GGC_H).
5428 (dwarf2asm.o): Likewise.
5429 (GTFILES): Add hashtable.h.
5430 * c-common.h (struct c_common_identifier): Use gengtype.
5431 * c-decl.h (c_mark_tree): Delete.
5432 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5433 * c-tree.h (struct lang_identifier): Use gengtype.
5434 (union lang_tree_node): New.
5435 (c_mark_tree): Delete prototype.
5436 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
5437 dwarf2_debug_hooks.
5438 * gengtype-lex.l (IWORD): Allow 'bool'.
5439 (ptr_alias): Match.
5440 * gengtype-yacc.y (ALIAS): New token.
5441 (type_option): New rule.
5442 (option): Use type_option.
5443 * gengtype.c (process_gc_options): New.
5444 (set_gc_used_type): Use it.
5445 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
5446 Add new variable 't' to hold the type of the field being processed.
5447 Add more error checking. Use UNION_P when looking at 'desc' option.
5448 Handle language-specific structures containing other
5449 language-specific structures.
5450 (write_gc_types): Handle 'ptr_alias' option.
5451 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
5452 * ggc-common.c (ggc_pending_trees): Delete.
5453 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
5454 (ggc_mark_trees): Delete.
5455 (gt_ggc_m_tree_node): Delete.
5456 * ggc.h (ggc_pending_trees): Delete.
5457 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
5458 * hashtable.h (ht_identifier): Use gengtype.
5459 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
5460 * langhooks.h (struct lang_hooks): Delete mark_tree.
5461 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
5462 anyway.
5463 * system.h: Poison LANG_HOOKS_MARK_TREE.
5464 * tree.c (tree_node_structure): New.
5465 * tree.h (struct tree_common): Use gengtype.
5466 (struct tree_int_cst): Likewise.
5467 (struct tree_real_cst): Likewise.
5468 (struct tree_string): Likewise.
5469 (struct tree_complex): Likewise.
5470 (struct tree_vector): Likewise.
5471 (struct tree_identifier): Likewise.
5472 (struct tree_list): Likewise.
5473 (struct tree_vec): Likewise.
5474 (struct tree_exp): Likewise.
5475 (struct tree_block): Likewise.
5476 (struct tree_type): Likewise.
5477 (struct tree_decl): Likewise.
5478 (enum tree_structure_enum): New.
5479 (union tree_node): Use gengtype, with an alias.
5480 (tree_node_structure): Prototype.
5481 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5482
5483 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
5484 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
5485 to LANG_HOOKS_FUNCTION_FINAL.
5486 * Makefile.in (GTFILES): Add bitmap.h.
5487 * except.c (struct eh_region): Mark field 'aka' to be skipped.
5488
5489 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
5490 (alpha_init_machine_status): Give proper type.
5491 * Makefile.in (c-lang.o): Depend on gtype-c.h.
5492 (optabs.o): Depend on gt-optabs.h.
5493 (GTFILES): Add optabs.o.
5494 (gt-optabs.h): Add rule.
5495 * optabs.c: Include gt-optabs.h.
5496
5497 * gengtype.c (set_gc_used_type): Correct some errors in last change.
5498 (write_gc_structure_fields): If a field which should be NULL is
5499 not, abort.
5500 * c-pragma.c: Move struct align_stack and variable alignment_stack
5501 out from the ifdef.
5502
5503 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
5504 * config/xtensa/xtensa.c: Include gt-cris.h.
5505 (struct machine_function): Use gengtype to mark.
5506 * config/mmix/mmix.h (struct machine_function): Use gengtype
5507 to mark.
5508 * config/cris/t-cris: Add dependencies for gt-cris.h.
5509 * config/cris/cris.c: Include gt-cris.h.
5510 (struct machine_function): Use gengtype to mark.
5511 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
5512 to mark.
5513 * doc/tm.texi (Per-Function Data): Delete references to
5514 mark_machine_status.
5515 * config/ia64/ia64.c (ia64_override_options): Don't set
5516 mark_machine_status.
5517 * config/i386/i386.c (override_options): Likewise.
5518 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
5519 * config/arm/arm.c (arm_init_expanders): Likewise.
5520 * config/alpha/alpha.c (override_options): Likewise.
5521 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
5522 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
5523 (write_gc_structure_fields): Don't handle 'really' option.
5524 Handle 'maybe_null' option.
5525 (write_gc_types): Handle 'maybe_null' option.
5526 * function.h (struct function): Don't use "really".
5527 (mark_machine_status): Delete declaration.
5528 (mark_lang_status): Delete declaration.
5529 (gt_ggc_mr_machine_function): Delete prototype.
5530 (gt_ggc_mr_language_function): Delete prototype.
5531 * function.c (mark_machine_status): Delete.
5532 (mark_lang_status): Delete.
5533 (gt_ggc_mr_machine_function): Delete.
5534 (gt_ggc_mr_language_function): Delete.
5535 * c-tree.h (mark_c_function_context): Delete prototype.
5536 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
5537 * c-decl.c (struct language_function): Rename from struct
5538 c_language_function. Update uses. Use gengtype to mark.
5539 (mark_c_function_context): Delete.
5540 * c-common.h (struct c_language_function): Rename from struct
5541 language_function.
5542 (mark_stmt_tree): Delete prototype.
5543 (c_mark_lang_decl): Delete prototype.
5544 (mark_c_language_function): Delete prototype.
5545 * c-common.c (mark_stmt_tree): Delete.
5546 (c_mark_lang_decl): Delete.
5547 (mark_c_language_function): Delete.
5548
5549 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
5550 (lang_bitmap): New typedef. Use where appropriate.
5551 (struct type): Add gc_used field, lang_struct field.
5552 (UNION_P): New macro.
5553 (new_structure): New prototype.
5554 (find_structure): Remove 'pos' parameter. Change all callers.
5555 * gengtype-lex.l: Update for changes to find_structure.
5556 * gengtype-yacc.y (typedef_struct): Use new_structure.
5557 (yacc_ids): Suppress warning.
5558 (type): Use new_structure.
5559 * gengtype.c (string_type): Update for changes to struct type.
5560 (find_structure): Just find a structure, don't worry about
5561 creating one.
5562 (new_structure): New.
5563 (note_yacc_type): Use new_structure.
5564 (set_gc_used_type): New.
5565 (set_gc_used): New.
5566 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
5567 (write_gc_types): Handle TYPE_LANG_STRUCT.
5568 (write_gc_marker_routine_for_structure): New.
5569 (main): Call set_gc_used. Add some calls to set_gc_used_type
5570 for places where GCC doesn't use gengtype properly yet.
5571 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
5572 (gt_ggc_m_tree_node): Likewise.
5573
5574 * varasm.c (copy_constant): Call expand_constant if we hit
5575 something we can't recognise.
5576
5577 * ggc-common.c (ggc_mark_rtvec_children): Delete.
5578 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
5579 (lang_mark_false_label_stack): Delete.
5580 * rtl.h (struct rtvec_def): Use gengtype to mark.
5581 * ggc.h (ggc_mark_rtvec): Delete.
5582 (gt_ggc_m_rtvec_def): Delete.
5583 (ggc_mark_nonnull_tree): Delete.
5584 (ggc_mark_rtvec_children): Delete prototype.
5585 (lang_mark_false_label_stack): Delete declaration.
5586
5587 * gengtype.h (note_yacc_type): Add prototype.
5588 * gengtype.c (note_yacc_type): New function.
5589 * gengtype-lex.l: Add lexer support for yacc files.
5590 * gengtype-yacc.y (start): Extract union from yacc files.
5591 (yacc_union): New rule.
5592 (yacc_typematch): New rule.
5593 (yacc_ids): New rule.
5594 (enum_items): Tweak for efficiency.
5595 (optionseq): Likewise.
5596
5597 * c-common.h (struct language_function): Use gengtype.
5598 (struct c_lang_decl): Likewise.
5599 * c-tree.h (struct lang_decl): Likewise.
5600 (struct lang_type): Likewise.
5601 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
5602 tree language substructures.
5603
5604 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
5605 ggc_mark_tree.
5606 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
5607
5608 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
5609
5610 * stmt.c (struct nesting): Add discriminator. Use gengtype to
5611 mark. Remove 'data.block.cleanup_ptr' field.
5612 (struct stmt_status): Use usual technique to mark struct nesting.
5613 (gt_ggc_mr_nesting_cond): Delete.
5614 (gt_ggc_mr_nesting_loop): Delete.
5615 (gt_ggc_mr_nesting_block): Delete.
5616 (gt_ggc_mr_nesting_case_stmt): Delete.
5617 (expand_start_cond): Set discriminator.
5618 (expand_start_loop): Likewise.
5619 (expand_start_null_loop): Likewise.
5620 (expand_start_bindings_and_block): Set discriminator. Don't set
5621 deleted fields.
5622 (expand_decl_cleanup): Replace 'cleanup_ptr' with
5623 &thisblock->data.block.cleanups.
5624 (expand_start_case): Set discriminator.
5625 (expand_start_case_dummy): Set discriminator.
5626
5627 * ggc-callbacks.c: Remove.
5628
5629 * gengtype.h (struct type): Add 'u.s.bitmap' field.
5630 (find_structure): Add 'pos' parameter.
5631 * gengtype-lex.l: Update callers to find_structure.
5632 * gengtype-yacc.y: Likewise.
5633 * gengtype.c (find_structure): Allow for structures to be defined
5634 in multiple language backends.
5635 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
5636 (counter): Rename to gc_counter.
5637 (write_gc_structure_fields): Fail when writing out fields for
5638 an incomplete structure. Ignore arrays of scalars. Handle
5639 'tree_vec' special.
5640 (write_gc_types): Reset counter for each procedure written.
5641
5642 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
5643 (free_case_nodes): Delete.
5644 (expand_end_case_type): Delete call to free_case_nodes.
5645
5646 * Makefile.in (cselib.o): Include gt-<filename>.h.
5647 (gcse.o): Likewise.
5648 (profile.o): Likewise.
5649 (alias.o): Likewise.
5650 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
5651 alphabetize backend files.
5652 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
5653 * alias.c: Use gengtype for roots.
5654 * c-common.h (struct stmt_tree_s): Use gengtype.
5655 * c-decl.c: Use gengtype for roots.
5656 * cselib.c: Use gengtype for roots.
5657 * expr.c: Use gengtype for roots.
5658 * fold-const.c: Use gengtype for roots.
5659 * gcse.c: Use gengtype for roots.
5660 * gengtype-lex.l: Handle typedefs of function types.
5661 Allow for empty array bounds.
5662 Allow processing to stop on initialisers.
5663 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
5664 (semiequal): New rule.
5665 * gengtype.c (create_file): Tidy output files.
5666 (get_output_file_with_visibility): Fix paren warning. Fix bug
5667 involving multiple input files mapping to one output file.
5668 (write_gc_structure_fields): Skip arrays of scalars.
5669 (write_gc_types): Tidy output files.
5670 (write_gc_root): New function.
5671 (write_gc_roots): Fix bugs, add support for roots that are
5672 structures.
5673 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
5674 (ggc_mark_tree_ptr): Delete.
5675 (ggc_add_rtx_root): Delete.
5676 (ggc_add_tree_root): Delete.
5677 (ggc_del_root): Delete.
5678 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
5679 allocate struct initial_value_struct.
5680 * profile.c: Use gengtype for roots.
5681 * sdbout.c: Use gengtype for roots.
5682 * varasm.c (mark_weak_decls): Delete unused prototype.
5683 (mark_const_hash_entry): Delete unused function.
5684 * config/darwin-protos.h: Use gengtype for roots.
5685 (machopic_add_gc_roots): Delete.
5686 * config/arm/arm.c: Use gengtype for roots.
5687 * config/arm/arm.h: Use gengtype for roots.
5688 * config/c4x/c4x-protos.h: Use gengtype for roots.
5689 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
5690 * config/d30v/d30v-protos.h: Use gengtype for roots.
5691 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
5692 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
5693 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
5694 * config/ia64/ia64-protos.h: Use gengtype for roots.
5695 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
5696 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
5697 * config/m68hc11/m68hc11.c (z_reg): Make global.
5698 (z_reg_qi): Make global.
5699 (m68hc11_add_gc_roots): Delete.
5700 * config/mcore/mcore-protos.h: Use gengtype for roots.
5701 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
5702 * config/mips/mips.c (mips_add_gc_roots): Delete.
5703 * config/mips/mips.h: Use gengtype for roots.
5704 * config/mmix/mmix.c (override_options): Use gengtype for roots.
5705 * config/mmix/mmix.h: Use gengtype for roots.
5706 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
5707 * config/mn10200/mn10200.h: Use gengtype for roots.
5708 * config/pa/pa.c: Use gengtype for roots, marking.
5709 (struct deferred_plabel): Use GGC, gengtype.
5710 (pa_add_gc_roots): Delete.
5711 (mark_deferred_plabels): Delete.
5712 * config/pj/pj-protos.h: Use gengtype for roots.
5713 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
5714 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
5715 machopic_add_gc_roots.
5716 * config/rs6000/rs6000.h: Use gengtype for roots.
5717 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
5718 (gt-darwin.h): Add rule.
5719 * config/sh/sh.c: Use gengtype for roots.
5720 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
5721 (gt-sh.h): Add rule.
5722 * config/sparc/sparc.c: Use gengtype for roots.
5723 (sparc_add_gc_roots): Delete.
5724 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
5725 (mark_ultrasparc_pipeline_state): Delete.
5726 * config/sparc/sparc.h: Use gengtype for roots.
5727
5728 * Makefile.in (c-parse.o): Update dependencies.
5729 (c-common.o): Likewise.
5730 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
5731 Add dependencies for the files they generate.
5732 * c-common.c: Replace ggc_add_* uses with GTY annotations.
5733 * c-common.h: Likewise.
5734 * c-decl.c: Likewise.
5735 (gt_ggc_mp_binding_level): Delete.
5736 * c-lang.c: Include gtype-c.h.
5737 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
5738 gt-c-parse.h.
5739 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
5740 (gt_ggc_mp_align_stack): Delete.
5741 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
5742 * function.c: Replace ggc_add_* uses with GTY annotations.
5743 (gt_ggc_mp_function): Delete.
5744 * function.h: Replace ggc_add_* uses with GTY annotations.
5745 * gengtype.c (lang_names): New.
5746 (NUM_BASE_FILES): New.
5747 (open_base_files): Create language base files.
5748 (startswith): New.
5749 (get_file_basename): New.
5750 (get_base_file_bitmap): New.
5751 (get_output_file_with_visibility): Rename from get_output_file.
5752 Add more mappings for various C/Objc filenames.
5753 (finish_root_table): New.
5754 (write_gc_roots): Handle dependencies and scoping properly.
5755 * gengtype.h: Add prototypes for new functions.
5756 * ggc-common.c (struct deletable_root): Delete.
5757 (deletables): Delete.
5758 (ggc_add_deletable_root): Delete.
5759 (ggc_mark_roots): No need to deal with deleted functionality.
5760 * ggc.h (ggc_add_deletable_root): Delete prototype.
5761 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
5762 (gtype-objc.h): Add rule to create.
5763 * objc/config-lang.in (gtfiles): New.
5764 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
5765 ggc_add_* with GTY markers. Include gtype-objc.h.
5766 (ggc_mark_imp_list): Delete.
5767 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
5768 * objc/objc-lang.c: Random Whitespace Change.
5769
5770 * except.h (exception_handler_labels): Delete.
5771 (get_exception_handler_labels): New.
5772 * except.c (exception_handler_labels): Delete.
5773 (struct eh_status): Add exception_handler_labels field.
5774 (doing_eh): Don't add exception_handler_labels as root.
5775 (free_eh_status): Don't need to free exception_handler_labels.
5776 (get_exception_handler_labels): New.
5777 (find_exception_handler_labels): Update for move of
5778 exception_handler_labels.
5779 (remove_exception_handler_label): Likewise.
5780 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
5781 * jump.c (rebuild_jump_labels): Likewise.
5782 * loop.c (find_and_verify_loops): Likewise.
5783 * sched-rgn.c (is_cfg_nonregular): Likewise.
5784
5785 * gengtype.c (write_gc_structure_fields): Handle variable-length
5786 TYPE_ARRAYs.
5787
5788 * varasm.c (struct weak_syms): Use GGC, gengtype.
5789 (mark_weak_decls): Delete.
5790 (weak_decls): Likewise.
5791 (add_weak): Likewise.
5792 (remove_from_pending_weak_list): Likewise.
5793 (init_varasm_once): Likewise.
5794
5795 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
5796 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
5797 stor-layout.c, regclass.c, and lists.c.
5798 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
5799 gt-regclass.h and gt-lists.h on s-gtype.
5800 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
5801 * except.c: Use gengtype for roots.
5802 * explow.c: Use gengtype for roots. Include gt-explow.h.
5803 * expr.h (init_stor_layout_once): Delete prototype.
5804 * function.c: Use gengtype for roots.
5805 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
5806 * gengtype-yacc.y (start): Can also be an externstatic.
5807 (externstatic): New production.
5808 (struct_fields): Correct array bounds inversion for 2-d arrays.
5809 * gengtype.c (variables): New variable.
5810 (note_variable): New function.
5811 (get_output_file): Include libfuncs.h into gtype-desc.c.
5812 (get_output_file_name): New function.
5813 (write_gc_structure_fields): Suppress warnings.
5814 (write_gc_types): Make static.
5815 (put_mangled_filename): New function.
5816 (write_gc_roots): New function.
5817 (main): Call write_gc_roots.
5818 * gengtype.h (note_variable): Prototype.
5819 (get_output_file_name): Prototype.
5820 (write_gc_types): Delete prototype.
5821 * ggc.h: Clean up unnecessary structure predefinitions.
5822 (struct ggc_root_tab): Define.
5823 (gt_ggc_m_rtx_def): Make function, not macro.
5824 (gt_ggc_m_tree_node): Likewise.
5825 * libfuncs.h: Use gengtype for roots.
5826 * lists.c: Use gengtype for roots. Include gt-lists.h.
5827 (init_EXPR_INSN_LIST_cache): Delete.
5828 * optabs.c: Use gengtype for roots.
5829 (gt_ggc_mp_optab): Delete.
5830 * optabs.h: Use gengtype for roots.
5831 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
5832 * rtl.h: Use gengtype for roots.
5833 (init_EXPR_INSN_LIST_cache): Delete prototype.
5834 * stor-layout.c: Use gengtype for roots.
5835 Include gt-stor-layout.h.
5836 (init_stor_layout_once): Delete.
5837 * toplev.c: Use gengtype for roots. Delete calls to deleted
5838 routines.
5839 * tree.c: Use gengtype for roots.
5840 * tree.h: Use gengtype for roots.
5841 * varasm.c: Use gengtype for roots.
5842
5843 * Makefile.in (GTFILES): Add @all_gtfiles@.
5844 * configure: Regenerate.
5845 * configure.in: Construct all_gtfiles from the gtfiles definitions
5846 in config-lang.in.
5847 * gengtype-yacc.y (type): Warn about duplicate structure names.
5848 * gengtype.c (get_output_file): Handle .c files in language
5849 subdirectories.
5850
5851 * Makefile.in (GTFILES): Run gengtype on all the config files
5852 and on the target .c file.
5853 * except.c (mark_eh_region): Delete.
5854 (init_eh_for_function): Use GGC on struct eh_status.
5855 (mark_eh_status): Delete.
5856 (free_eh_status): Use GGC.
5857 (expand_eh_region_start): Use GGC to
5858 (collect_eh_region_array): Allocate last_region_number using GGC.
5859 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
5860 (remove_eh_handler): Let GGC free struct eh_region.
5861 (add_call_site): Use GGC to reallocate call_site_record array.
5862 * function.c (init_machine_status): Update calling sequence.
5863 (mark_machine_status): Likewise.
5864 (mark_lang_status): Likewise.
5865 (prepare_function_start): Update init_machine_status call.
5866 (mark_function_status): Delete.
5867 (maybe_mark_struct_function): Delete.
5868 (ggc_mark_struct_function): Delete.
5869 (gt_ggc_mp_function): New.
5870 (gt_ggc_mr_machine_function): New.
5871 (gt_ggc_mr_language_function): New.
5872 (init_function_once): Use canonical names.
5873 * function.h (struct function): Use gengtype.
5874 (init_machine_status): Return the structure.
5875 (mark_machine_status): Take a 'void *'.
5876 (mark_lang_status): Likewise.
5877 * ggc-common.c (ggc_mark_trees): Use canonical name for
5878 ggc_mark_struct_function.
5879 * tree.h (ggc_mark_struct_function): Delete prototype.
5880 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
5881 (alpha_init_machine_status): Likewise.
5882 (override_options): Use canonical name for alpha_mark_machine_status.
5883 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
5884 * config/arm/arm.h (struct machine_function): Use gengtype.
5885 * config/arm/arm.c (arm_mark_machine_status): Delete.
5886 (arm_init_machine_status): Update calling sequence.
5887 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
5888 * config/cris/cris.c (cris_init_machine_status): Update
5889 calling sequence.
5890 * config/d30v/d30v.h (struct machine_function): Use gengtype.
5891 * config/d30v/d30v.c (d30v_init_machine_status): Update
5892 calling sequence.
5893 (d30v_mark_machine_status): Delete.
5894 * config/i386/i386.c: Include gt-i386.h.
5895 (struct machine_function): Use gengtype.
5896 (ix86_init_machine_status): Update calling sequence.
5897 (ix86_mark_machine_status): Delete.
5898 (override_options): Use canonical namke for ix86_mark_machine_status.
5899 * config/ia64/ia64.h (struct machine_function): Use gengtype.
5900 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
5901 sequence.
5902 (ia64_mark_machine_status): Delete.
5903 (ia64_override_options): Use canonical name for
5904 ia64_mark_machine_status.
5905 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
5906 sequence.
5907 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5908 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5909 * gengtype.c (get_output_file): Fix warning.
5910 (main): Add prototype to suppress warning.
5911 * tree.c: Remove tree_hash_mark prototype.
5912
5913 * tree.h (init_stmt): Delete prototype.
5914 * toplev.c (lang_independent_init): Don't call init_stmt.
5915 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5916 (stmt_obstack): Delete.
5917 (POPSTACK): No need to free 'struct nesting'.
5918 (gt_ggc_mr_nesting_cond): Use canonical names.
5919 (gt_ggc_mr_nesting_loop): Use canonical names.
5920 (gt_ggc_mr_nesting_block): Use canonical names.
5921 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5922 (mark_stmt_status): Delete.
5923 (init_stmt): Delete.
5924 (clear_last_expr): Clear both last_expr_type and last_expr_value.
5925 Use it everywhere that last_expr_type was cleared.
5926 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5927 (zap_lists): Delete.
5928 * ggc.h (ggc_add_deletable_root): Prototype.
5929 (mark_stmt_status): Remove prototype.
5930 * ggc-common.c (ggc_add_deletable_root): New.
5931 (ggc_mark_roots): Handle deletable roots.
5932 * function.c (ggc_mark_struct_function): Use canonical name
5933 for mark_stmt_status.
5934 * emit-rtl.c (free_sequence_stack): New.
5935 (start_sequence): Use a freelist for sequences.
5936 (end_sequence): Likewise.
5937 (init_emit_once): Add free_sequence_stack as a deleteable root.
5938 * c-pragma.c Include gt-c-pragma.h.
5939 (struct align_stack): Use gengtype.
5940 (push_alignment): Use GGC for struct align_stack.
5941 (mark_align_stack): Delete.
5942 (gt_ggc_mp_align_stack): New.
5943 (init_pragma): Use canonical name for mark_align_stack.
5944 * c-decl.c: Include gt-c-decl.h.
5945 (struct binding_level): Use gengtype.
5946 (make_binding_level): Use GGC; handle the freelist here.
5947 (pop_binding_level): New.
5948 (pushlevel): Move code into make_binding_level.
5949 (push_label_level): Likewise.
5950 (poplevel): Move code into pop_binding_level.
5951 (pop_label_level): Likewise.
5952 (mark_binding_level): Delete.
5953 (gt_ggc_mp_binding_level): New.
5954 (c_init_decl_processing): Use canonical name for mark_binding_level.
5955 Add free_binding_level as deletable root.
5956 (mark_c_function_context): Use canonical name for mark_binding_level.
5957 * Makefile.in (c-decl.o): Add gt-c-decl.h.
5958 (c-pragma.o): Add gt-c-pragma.h.
5959 (GTFILES): Add c-decl.c and c-pragma.c.
5960 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5961
5962 * tree.c (struct type_hash): Use gengtype.
5963 (init_obstacks): Use canonical name for type_hash_mark.
5964 (type_hash_mark): Delete.
5965 Include gt-tree.h.
5966 * rtl.h (struct mem_attrs): Use gengtype.
5967 * optabs.h (struct optab): Use gengtype.
5968 * optabs.c (expand_binop): Squish signed/unsigned warning.
5969 (mark_optab): Make local, use canonical name, use autogenerated
5970 marker procedure.
5971 (init_optabs): Use canonical name for mark_optab.
5972 (new_optab): Use GGC to allocate optabs.
5973 * ggc.h: Delete mark_optab prototype.
5974 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5975 mem_attrs marker procedure.
5976 * gengtype.c (get_output_file): Include headers in gtype-desc.c
5977 explicitly rather than deducing them from file names.
5978 (write_gc_structure_fields): Handle arrays of structures.
5979 (main): Return non-zero exit code if errors occur during output.
5980 * emit-rtl.c (mem_attrs_mark): Delete.
5981 (init_emit_once): Use canonical name for mem_attrs marker procedure.
5982 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5983 (tree.o): Depend on gt-tree.h.
5984 (GTFILES): Add rtl.h, optabs.h, tree.c.
5985 (gt-tree.h): Add it to s-gtype rule.
5986
5987 * .cvsignore: Ignore gengtype flex/bison generated files.
5988 * Makefile.in (GGC_H): Add gtype-desc.h.
5989 (OBJS): Add gtype-desc.o.
5990 (GEN): Add gengtype.
5991 (STAGESTUFF): Add gengtype.
5992 (varasm.o): Add gt-varasm.h.
5993 (stmt.o): Add gt-stmt.h.
5994 (except.o): Add gt-except.h.
5995 (integrate.o): Add gt-integrate.h.
5996 (GTFILES): New.
5997 Add new rules for new files.
5998 * configure: Regenerate.
5999 * configure.in: Correct defaults.h paths.
6000 * emit-rtl.c (mark_sequence_stack): Delete.
6001 (mark_emit_status): Delete.
6002 (start_sequence): Allocate sequence structures using GGC.
6003 (end_sequence): Allocate sequence structures using GGC.
6004 * except.c: Use gengtype for various structures. Include
6005 gt-except.h.
6006 * expr.c (mark_expr_status): Delete.
6007 * function.c: Use gengtype for various structures. Include
6008 gt-function.h.
6009 (mark_function_status): Use standard gt_ggc names for marker functions.
6010 (ggc_mark_struct_function): Likewise.
6011 * function.h: Use gengtype for various structures.
6012 * gengtype-lex.l: New file.
6013 * gengtype-yacc.y: New file.
6014 * gengtype.c: New file.
6015 * gengtype.h: New file.
6016 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
6017 the standard names. Remove some now-unnecessary prototypes.
6018 * integrate.c: Use gengtype for various structures. Include
6019 gt-integrate.h.
6020 (mark_hard_reg_initial_vals): Delete.
6021 * integrate.h (mark_hard_reg_initial_vals): Delete.
6022 * stmt.c: Use gengtype for various structures. Include
6023 gt-stmt.h.
6024 (mark_case_node): Delete.
6025 (mark_goto_fixup): Delete.
6026 (mark_stmt_status): Use standard gt_ggc names for marker functions.
6027 * system.h: Define GTY to empty. In flex/bison files,
6028 don't poison malloc or realloc, instead just define them to
6029 xmalloc and xrealloc.
6030 * varasm.c: Use gengtype for various structures. Include
6031 gt-varasm.h. Use standard gt_ggc names for marker functions.
6032 (mark_pool_constant): Delete.
6033 (mark_varasm_status): Delete.
6034 (decode_rtx_const): #if 0 out non-typesafe hack.
6035
6036 * function.h (free_lang_status): Mark as obsolete.
6037 * function.c (free_lang_status): Mark as obsolete.
6038 * c-decl.c (push_c_function_context): Use GC to allocate and free
6039 struct language_function.
6040 (pop_c_function_context): Likewise.
6041 * c-common.c (mark_c_language_function): Mark struct
6042 language_function.
6043
6044 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
6045 Document that the machine_function structures must be allocated
6046 using GC. Update mark_machine_status documentation.
6047 * function.h: Don't declare free_machine_status.
6048 * function.c (free_machine_status): Don't define.
6049 (free_after_compilation): Don't call free_machine_status.
6050 (ggc_mark_struct_function): Mark f->machine. Call
6051 mark_machine_status only on non-NULL pointers.
6052 * system.h: Poison free_machine_status.
6053 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
6054 struct machine_function.
6055 (xtensa_free_machine_status): Delete.
6056 (override_options): Don't set free_machine_status.
6057 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
6058 free_machine_status.
6059 (rs6000_init_machine_status): Use GC on struct machine_function.
6060 (rs6000_free_machine_status): Delete.
6061 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
6062 machine_function.
6063 (ia64_mark_machine_status): Likewise.
6064 (ia64_free_machine_status): Delete.
6065 (ia64_override_options): Don't set free_machine_status.
6066 * config/i386/i386.c (override_options): Don't set
6067 free_machine_status.
6068 (ix86_init_machine_status): Use GC on struct machine_function.
6069 (ix86_mark_machine_status): Likewise.
6070 (ix86_free_machine_status): Delete.
6071 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
6072 machine_function.
6073 (d30v_mark_machine_status): Likewise.
6074 (d30v_free_machine_status): Delete.
6075 (d30v_init_expanders): Don't set free_machine_status.
6076 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
6077 machine_function.
6078 (arm_init_machine_status): Likewise.
6079 (arm_free_machine_status): Delete.
6080 (arm_init_expanders): Don't set free_machine_status.
6081 * config/alpha/alpha.c (override_options): Don't set
6082 free_machine_status.
6083 (alpha_init_machine_status): Use GC on struct machine_function.
6084 (alpha_mark_machine_status): Likewise.
6085 (alpha_free_machine_status): Delete.
6086
6087 * varasm.c (compare_constant): Fix typo.
6088
6089 * varasm.c: Don't include obstack.h.
6090 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
6091 (struct rtx_const): Give substructures names, improve formatting.
6092 (struct constant_descriptor): Delete.
6093 (struct constant_descriptor_tree): New, based on constant_descriptor.
6094 (const_hash_table): Is a hash table of trees.
6095 (mark_const_hash_entry): Is used for hashes of trees. Mark
6096 constant_descriptor_tree structure.
6097 (mark_const_str_htab_1): Mark deferred_string structure.
6098 (compare_constant): Rewrite to compare trees.
6099 (compare_constant_1): Delete.
6100 (record_constant): Delete.
6101 (record_constant_1): Delete.
6102 (output_constant_def): Use struct constant_descriptor_tree.
6103 Don't duplicate trees twice.
6104 (struct constant_descriptor_rtx): New.
6105 (struct pool_constant): Used for rtx constants.
6106 (init_varasm_status): Update for change to struct varasm_status.
6107 (mark_varasm_status): Likewise.
6108 (free_varasm_status): Delete.
6109 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
6110 (record_constant_rtx): Likewise.
6111 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
6112 (force_const_mem): Likewise.
6113 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
6114 * function.c (free_after_compilation): Don't use free_varasm_status.
6115 * function.h: Don't prototype free_varasm_status.
6116
6117 * ggc-common.c (ggc_realloc): Handle X being NULL.
6118
6119 * ggc-common.c (ggc_realloc): New function.
6120 * ggc.h: Prototype it.
6121 * emit-rtl.c (free_emit_status): Delete.
6122 (init_emit): Allocate emit subarrays using GC.
6123 (gen_reg_rtx): Reallocate subarrays using GC.
6124 (init_emit): Use GC to allocate 'struct emit_status' and its
6125 subarrays.
6126 (mark_emit_status): Mark structure and its subarrays.
6127 * stmt.c (free_stmt_status): Delete.
6128 * expr.c (free_expr_status): Delete.
6129 * function.h: Remove prototypes for deleted functions.
6130 * function.c (free_after_compilation): Don't use deleted functions.
6131 Don't call free() on x_parm_reg_stack_loc.
6132 (free_after_parsing): Don't use free_stmt_status.
6133 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
6134 (mark_function_status): Mark x_parm_reg_stack_loc.
6135
6136 * varasm.c (init_varasm_status): Use GC to allocate
6137 'struct varasm_status' and its fields x_const_rtx_hash_table
6138 and x_const_rtx_sym_hash_table.
6139 (mark_varasm_status): Mark them.
6140 (free_varasm_status): Use GC to free them.
6141 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
6142 (mark_expr_status): Mark the structure itself.
6143 (free_expr_status): Use GC to free the structure.
6144 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
6145 (mark_stmt_status): Mark the 'struct stmt_status' itself.
6146 (init_stmt_for_function): Allocate the structure for GC.
6147
6148 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
6149 (equate_type_number_to_die): Likewise.
6150 * tree.h (TYPE_SYMTAB_DIE): New macro.
6151 (struct die_struct): Predeclare.
6152 (struct tree_type): Add field symtab.die. Add a tag
6153 to the union type of field symtab.
6154
6155 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
6156 'struct rtvec_def *', not 'struct rtvec_def'.
6157
6158 * function.h (original_arg_vector): Make a real rtvec.
6159 * function.c (ggc_mark_struct_function): Adjust.
6160 * integrate.c (expand_inline_function): Adjust.
6161
6162 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
6163
6164 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
6165 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
6166 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
6167 (TARGET_VERSION_CPU): Define according to the
6168 default target.
6169 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
6170 TARGET_VERSION_CPU.
6171 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
6172 if TARGET_SHMEDIA64.
6173 (LINK_DEFAULT_CPU_EMUL): Define according to the
6174 default target.
6175 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
6176 (SUBTARGET_LINK_SPEC): Define.
6177 (LINK_SPEC): Use SH_LINK_SPEC.
6178 (ASM_SPEC): Remove.
6179 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
6180 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
6181 and TARGET_SHMEDIA64 which abort, for now.
6182 * config/sh/t-netbsd-sh5: New file.
6183 * config/sh/t-netbsd-sh5-32: New file.
6184 * config/sh/t-netbsd-sh5-64: New file.
6185
6186 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6187 Richard Henderson <rth@redhat.com>
6188
6189 * config/alpha/alpha.c (reg_or_const_int_operand): New.
6190 (some_operand, input_operand): Accept CONST_VECTOR.
6191 (alpha_extra_constraint): Add 'W'.
6192 (alpha_expand_zap_mask): New.
6193 (alpha_expand_builtin_vector_binop): New.
6194 (enum alpha_builtin): New.
6195 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
6196 (alpha_init_builtins, alpha_expand_builtin): New.
6197 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
6198 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
6199 (PREDICATE_CODES): Update.
6200 * config/alpha/alpha-protos.h: Update.
6201 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
6202 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
6203 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
6204 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
6205 (movv2si, movv2si_fix, movv2si_nofix): New.
6206 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
6207 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
6208 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
6209 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
6210 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
6211 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
6212 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
6213 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
6214 builtin_unpkbw, unpkbw): New.
6215 * doc/extend.texi (Alpha Built-in Functions): New.
6216
6217 2002-06-03 Richard Henderson <rth@redhat.com>
6218
6219 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
6220 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
6221
6222 2002-06-03 Richard Henderson <rth@redhat.com>
6223
6224 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
6225
6226 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
6227 (const0_operand): New.
6228 (reg_or_fp0_operand, fp0_operand): Remove.
6229 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6230 * config/alpha/alpha-protos.h: Update.
6231 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
6232 and fp0_operand with reg_or_0_operand and const0_operand.
6233
6234 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6235
6236 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
6237
6238 2002-06-03 Roger Sayle <roger@eyesopen.com>
6239
6240 * gcse.c (cprop_jump): Use single_set to get the pattern
6241 from the setcc argument.
6242
6243 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
6244
6245 * diagnostic.h (diagnostic_count): Move from output_buffer to
6246 diagnostic_context.
6247 (diagnostic_kind_count): Adjust definition.
6248
6249 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
6250
6251 * except.c (except.c): Do not rebuild CFG.
6252 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
6253 optimization.
6254
6255 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6256
6257 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
6258 * toplev.c: Include cfglahout.h
6259 * Makefile.in (toplev.c): Add dependnecy.
6260
6261 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
6262
6263 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
6264 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
6265 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
6266
6267 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6268
6269 * config/ns32k/netbsd.h: Update copyright years.
6270 (TARGET_OS_CPP_BUILTINS): Define.
6271 (CPP_PREDEFINES): Remove.
6272 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
6273 (TARGET_CPU_CPP_BUILTINS): Define.
6274
6275 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
6276
6277 * emit-rtl.c: Fix formatting.
6278 * errors.h: Likewise.
6279 * except.c: Likewise.
6280 * explow.c: Likewise.
6281 * expmed.c: Likewise.
6282 * expr.c: Likewise.
6283 * expr.h: Likewise.
6284
6285 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
6286
6287 * config/h8300/elf.h: Fix formatting.
6288 * config/h8300/rtems.h: Likewise.
6289
6290 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6291
6292 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
6293
6294 2002-06-02 Tom Tromey <tromey@redhat.com>
6295
6296 * fixinc/fixincl.x: Rebuilt.
6297 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
6298
6299 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6300
6301 config/i370:
6302 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
6303 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
6304 * mvs.h: Similarly.
6305 * oe.h: Similarly.
6306
6307 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
6308
6309 * final.c (final): Allow notes to not have computed addresses;
6310 kill no longer needed STACK_REGS ifdef.
6311
6312 2002-06-02 Richard Henderson <rth@redhat.com>
6313
6314 * gcse.c (bypass_conditional_jumps): Fix typo last change.
6315
6316 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6317
6318 * loop.c (emit_prefetch_instructions): Properly place the address
6319 computation.
6320
6321 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
6322
6323 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
6324 (set_block_for_insn): Turn into macro.
6325 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
6326 * cfglayout.c (insn_scopes): Kill.
6327 (scope_to_insns_initialize): Do not use insn_scopes.
6328 (scope_to_insns_finalize): Likewise.
6329 (duplicate_insn_chain): Likewise.
6330 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
6331 * cfgrtl.c (basic_block_for_insn): Kill.
6332 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
6333 (create_basic_block_structure): Use reorder_insns.
6334 (compute_bb_for_insn): Do not use basic_block_for_insn.
6335 (merge_blocks_nomove): Likewise.
6336 (update_bb_for_insn): Likewise.
6337 (verify_flow_info): Likewise.
6338 (set_block_for_insn): Kill.
6339 * combine.c (try_combine): Update gen_rtx_INSN call.
6340 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
6341 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
6342 scopes and BBs.
6343 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
6344 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
6345 Clear BB.
6346 (emit_insns_after): Simplify.
6347 (emit_copy_of_insn_after): Copy scope.
6348 * final.c (final_start_function): Lower scopes.
6349 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
6350 * integrate.c (copy_insn_list): Cope scopes.
6351 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
6352 * loop.c (loop_optimize): Do not care block notes.
6353 * print-rtl.c (print_rtx): Print BB.
6354 * recog.c (apply_change_group): Simplify.
6355 * rtl.c (copy_rtx): Handle 'B'.
6356 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
6357 * rtl.h (Field accessors): Update indexes.
6358 * sched-ebb.c (schedule_ebbs): Do not lower notes.
6359 * sched-rgn.c (schedule_insns): Likewise.
6360 * toplev.c (rest_of_compilation): Lower notes.
6361 * unroll.c (unroll_loop): Do not care scoping notes.
6362 (copy_loop_body): Copy scopes.
6363
6364 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6365
6366 config/h8300:
6367 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
6368 SUBTARGET_SPEC.
6369 * rtems.h: Similarly.
6370 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
6371 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
6372 (TARGET_CPU_CPP_BUILTINS): Use.
6373
6374 2002-06-02 Richard Henderson <rth@redhat.com>
6375
6376 * alias.c: Include target.h.
6377 (mark_constant_function): Use targetm.binds_local_p instead
6378 of checking TREE_PUBLIC ourselves.
6379 * Makefile.in (alias.o): Add TARGET_H.
6380
6381 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6382
6383 * c-lex.c: Update copyright and file description.
6384
6385 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6386
6387 * config/fr30/fr30.h: Update to new CPP macros.
6388
6389 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6390
6391 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
6392
6393 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6394 Zack Weinberg <zack@codesourcery.com>
6395
6396 * c-common.c (c_common_init): Override cpplib's default
6397 warn_long_long setting.
6398 * c-lex.c (lex_number): Replace with interpret_integer,
6399 interpret_float, narrowest_unsigned_type and
6400 narrowest_signed_type, taking advantage of the new
6401 cpplib functionality.
6402 * cpperror.c (_cpp_begin_message): If a warning is turned
6403 into an error, avoid printing "warning:".
6404 * cppexp.c (cpp_num_sign_extend): New.
6405 * cppinit.c: Update comment.
6406 * cpplib.h (cpp_num_sign_extend): New.
6407 * tree.h: Update comment.
6408
6409 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6410
6411 * diagnostic.h (struct diagnostic_context): Add new member
6412 internal_error.
6413 (internal_error_function): Remove declaration.
6414 * diagnostic.c (internal_error_function): Remove definition..
6415 (internal_error): Adjust use.
6416
6417 2002-06-02 Richard Henderson <rth@redhat.com>
6418
6419 * rtl.h (CC0_P): New.
6420 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
6421 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
6422 (bypass_block): Save old dest block for dump text.
6423 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
6424 Allow only true SET insns, not single_set.
6425
6426 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6427
6428 * diagnostic.c (diagnostic_finish): Rename to output_flush.
6429 (clear_disgnostic_info): Rename to output_clear_data. Use false
6430 instead of 0 for boolean value.
6431 Adjust function call throughout.
6432
6433 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6434
6435 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
6436 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
6437
6438 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6439
6440 * d30v.h (CPP_PREDEFINES): Replace with
6441 (TARGET_CPU_CPP_BUILTINS): New.
6442
6443 2002-06-02 Roger Sayle <roger@eyesopen.com>
6444
6445 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
6446
6447 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
6448
6449 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
6450
6451 2002-06-02 Richard Henderson <rth@redhat.com>
6452
6453 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
6454
6455 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
6456
6457 Support for C++ constructors/destructors.
6458 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
6459 instead of looping if main() returns.
6460 (asm_file_start): Output global symbols that cause .data and .bss
6461 initialization code to be linked in, unconditionally for now.
6462 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
6463 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
6464 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6465 (LIBSTDCXX): New.
6466 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
6467 (__tablejump__): New.
6468 (__do_copy_data, __do_clear_bss): New.
6469 (__do_global_ctors, __do_global_dtors): New.
6470 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
6471 _ctors, _dtors.
6472
6473 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6474
6475 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
6476 (CPP_SPEC, CPP_PREDEFINES): Kill.
6477 * c4x/rtems.h (CPP_PREDEFINES): Kill.
6478 (TARGET_OS_CPP_BUILTINS): New.
6479
6480 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
6481
6482 * Makefile.in (tracer.o): New.
6483 * params.def (TRACER_*): New options.
6484 * rtl.h (tracer): Declare.
6485 * timevar.def (TV_TRACER): New.
6486 * toplev.c (dump_file_index): Add DFI_tracer.
6487 (dump_file_info): Add tracer.
6488 (flag_tracer): New.
6489 (lang_indepdenent_options): Add tracer.
6490 (rest_of_compilation): Call tracer.
6491 * tracer.c: New file.
6492 * invoke.texi (-ftracer): Document.
6493 (--param tracer-*): Document.
6494
6495 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
6496
6497 * tree-inline.c (expand_call_inline): Make the statement
6498 expression we generate have a COMPOUND_STMT.
6499
6500 2002-06-01 Roger Sayle <roger@eyesopen.com>
6501
6502 * gcse.c (cprop_cc0_jump): Function deleted.
6503 (cprop_jump): Take an additional argument which is the possibly
6504 NULL cc setting insn immediately before the conditional jump.
6505 When a MODE_CC set is present, substitute it into the JUMP_INSN
6506 before attempting the constant propagation.
6507 (cprop_insn): Recognize cc setters followed by conditional jumps
6508 as a special case. Use cprop_jump instead of cprop_cc0_jump.
6509 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
6510 (find_bypass_set): New function based upon find_avail_set used by
6511 cprop, but finds constant expressions available at the end of
6512 basic blocks.
6513 (bypass_block): New function. Given a basic block that begins
6514 with a conditional jump and multiple incoming edges, perform
6515 the jump bypass optimization.
6516 (bypass_conditional_jumps): New function. Call bypass_block with
6517 each suitable basic block in the CFG using a simple single pass.
6518
6519 2002-06-01 Roger Sayle <roger@eyesopen.com>
6520
6521 * tree.c (real_minus_onep): New function to test for -1.0.
6522 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
6523
6524 2002-06-01 Roger Sayle <roger@eyesopen.com>
6525
6526 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
6527 and "!p && !q" into "(p|q) == 0" under suitable conditions.
6528
6529 2002-06-01 Andreas Jaeger <aj@suse.de>
6530
6531 * cppexp.c (cpp_classify_number): Cast precission to int for
6532 correct printf format.
6533
6534 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
6535
6536 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
6537 expected, but don't really exist: atmega83, atmega85, attiny10.
6538 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
6539 emulations for all devices.
6540 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
6541 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
6542
6543 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
6544
6545 * config/h8300/h8300-protos.h: Add a prototype for
6546 h8300_shift_needs_scratch_p.
6547 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
6548 * config/h8300/h8300.h (OK_FOR_R): New.
6549 (OK_FOR_S): Likewise.
6550 (OK_FOR_T): Likewise.
6551 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
6552 * config/h8300/h8300.md (anonymous shift patterns): Use
6553 constraints R, S, and T.
6554
6555 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6556
6557 * basic-block.h (struct basic_block_def): New field loop_father.
6558 (BB_VISITED): New flag.
6559 (struct loop): New field pred, removed field shared.
6560 (struct loops): New field parray.
6561 (LOOP_EXITS_DOMS): Removed.
6562 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
6563 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
6564 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
6565 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
6566 verify_loop_structure): Declare.
6567 * cfg.c (entry_exit_blocks): Initialize loop_father field.
6568 * cfganal.c (dfs_enumerate_from): New function.
6569 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
6570 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6571 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
6572 flow_loop_dump, flow_loops_dump, flow_loops_free,
6573 flow_loop_tree_node_add, flow_loop_level_compute,
6574 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
6575 flow_loop_outside_edge_p): Modified for new infrastructure.
6576 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
6577 redirect_edge_with_latch_update, flow_loop_free): New static functions.
6578 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
6579 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
6580 find_common_loop, verify_loop_structure, loop_latch_edge,
6581 loop_preheader_edge): New functions.
6582 (flow_loops_cfg_dump): Do not show dominators, as this information
6583 does not remain up to date long.
6584 (flow_loops_find): Store results in new format.
6585 * predict.c (propagate_freq, estimate_probability,
6586 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
6587 infrastructure.
6588
6589 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
6590
6591 * except.c (nothrow_function_p): Walk epilogue delay list
6592 checking the insn, not the chain for potential throws.
6593
6594 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6595
6596 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
6597 (install): Refer to install-cpp directly.
6598 (uninstall-cpp): Folded into uninstall rule.
6599 * configure.in: Delete all code relating to --disable-cpp.
6600 * configure: Regenerate.
6601 * config/t-install-cpp: Delete.
6602
6603 2002-05-31 Richard Henderson <rth@redhat.com>
6604
6605 * configure.in (HAVE_AS_TLS): Add alpha tests.
6606 * configure: Rebuild.
6607 * config/alpha/alpha.c (TARGET_AS_TLS): New.
6608 (alpha_tls_size, alpha_tls_size_string): New.
6609 (overide_options): Set it. Always install machine_status hooks.
6610 (input_operand): Accept got tls predicates.
6611 (local_symbol_p): Merge into ...
6612 (local_symbolic_operand): ... here. Reject tls symbols.
6613 (global_symbolic_operand): Likewise.
6614 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
6615 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
6616 (tp16_symbolic_operand, tp32_symbolic_operand): New.
6617 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
6618 (alpha_encode_section_info): Handle TLS symbols.
6619 (alpha_strip_name_encoding): Likewise.
6620 (alpha_legitimate_address_p): Likewise.
6621 (alpha_legitimize_address): Likewise.
6622 (alpha_expand_mov): Early exit to avoid nop moves.
6623 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
6624 (alpha_init_machine_status, alpha_mark_machine_status,
6625 alpha_free_machine_status): Always define.
6626 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
6627 (print_operand, print_operand_address): Add TLS relocs.
6628 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
6629 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
6630 (TARGET_SWITCHES): Add -mtls-kernel.
6631 (alpha_tls_size, alpha_tls_size_string): New.
6632 (TARGET_OPTIONS): Add -mtls-size=.
6633 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
6634 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
6635 (ASM_OUTPUT_LABELREF): Skip %.
6636 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
6637 (PREDICATE_CODES): Update.
6638 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
6639 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
6640 UNSPEC_TP, UNSPECV_SET_TP): New.
6641 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
6642 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
6643 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
6644 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
6645 (call_value_osf_2_er): Accept anything as op4.
6646 * config/alpha/alpha-protos.h: Update.
6647 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
6648
6649 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6650
6651 * cppinit.c (append_include_chain): Always pay attention to
6652 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
6653 marker on argument.
6654
6655 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
6656
6657 * target.h: Fix formatting.
6658 * timevar.h: Likewise.
6659 * tlink.c: Likewise.
6660 * toplev.c: Likewise.
6661 * toplev.h: Likewise.
6662 * tree.c: Likewise.
6663 * tree-dump.h: Likewise.
6664 * tree.h: Likewise.
6665 * tree-inline.h: Likewise.
6666 * unroll.c: Likewise.
6667 * unwind-dw2.c: Likewise.
6668 * unwind-dw2-fde.c: Likewise.
6669 * unwind-dw2-fde-glibc.c: Likewise.
6670 * unwind-dw2-fde.h: Likewise.
6671 * unwind.h: Likewise.
6672 * unwind-sjlj.c: Likewise.
6673 * varasm.c: Likewise.
6674 * varray.h: Likewise.
6675 * vmsdbg.h: Likewise.
6676 * vmsdbgout.c: Likewise.
6677 * xcoffout.h: Likewise.
6678
6679 2002-05-31 Igor Shevlyakov <igor@microunity.com>
6680
6681 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
6682 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
6683
6684 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
6685
6686 * gcc.c (cpp_unique_options): Remove "-d" options.
6687 (cpp_debug_options): New spec string.
6688 (default_compilers): Use it.
6689 * objc/lang-specs.h: Likewise.
6690
6691 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
6692
6693 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
6694 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
6695 * gcc/mklibgcc.in: Likewise.
6696 * gcc/config/arc/t-arc: Likewise.
6697 * gcc/configure.in: Likewise.
6698 * gcc/configure: Regenerate.
6699
6700 2002-05-31 Stan Shebs <shebs@apple.com>
6701 Turly O'Connor <turly@apple.com>
6702
6703 * c-decl.c (struct binding_level): Change int field n_incomplete
6704 to tree list incomplete_list.
6705 (clear_binding_level): Init field with NULL.
6706 (pushdecl): Add incomplete type to list.
6707 (mark_binding_level): Mark the incomplete list.
6708 (finish_struct): Scan the incomplete list for types instead
6709 of all decls in the current binding level.
6710
6711 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6712
6713 * pa.c (output_millicode_call): Add missing '%' characters.
6714 (output_call): Likewise.
6715
6716 2002-05-31 David Edelsohn <edelsohn@gnu.org>
6717
6718 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
6719 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6720
6721 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
6722
6723 * varasm.c (mark_constant_pool): Walk epilogue delay list
6724 checking the insn, not the chain for potential constants.
6725
6726 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
6727
6728 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
6729
6730 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
6731
6732 * i386.c (classify_argument): Properly handle base types.
6733
6734 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
6735 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
6736 registers.
6737
6738 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6739
6740 * gcse.c (gcse_emit_move_after): New.
6741 (pre_delete, hoist_store): Use it.
6742
6743 * reload1.c (emit_input_reload_insns): Use constrain_operands
6744 instead of constraint_accepts_reg_p to verify optimization.
6745 (constraint_accepts_reg_p): Kill
6746
6747 * reload1.c (reload_cse_delete_noop_set): Kill.
6748 (reload_cse_simplify): use delte_insn_and_edges.
6749
6750 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6751
6752 * cfgloop.c (flow_loops_find): Initialize first and last fields
6753 correctly.
6754
6755 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
6756
6757 * c-common.c (builtin_define_std): Correct logic.
6758
6759 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6760
6761 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
6762 (output_call): Likewise.
6763
6764 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6765
6766 * pa.c: Move output.h include after tree.h include.
6767 (pa_asm_output_mi_thunk): Constify identifier lab.
6768
6769 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6770
6771 * config/ns32k/ns32k.h: Define named constants for the
6772 bits in target_flags and use them.
6773 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
6774
6775 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6776
6777 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
6778 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
6779 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
6780 default scheduling model.
6781 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
6782 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
6783 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
6784 * doc/install.texi (hppa*-*-*): Document default scheduling.
6785
6786 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6787
6788 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
6789
6790 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6791
6792 * config.gcc (ns32k-*-netbsd*): Set tm_file to
6793 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
6794 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
6795 netbsd.h, or netbsd-aout.h.
6796
6797 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6798
6799 * longlong.h (count_trailing_zeros): Add missing \, and clean up
6800 whitespace in __ns32000__ case.
6801
6802 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
6803
6804 * expr.c (expand_expr): Output partially zeroed out vectors with
6805 output_constant_def.
6806
6807 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6808
6809 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
6810 (sh-*-netbsdelf*)
6811 (shl*-*-netbsdelf*): New targets.
6812 * config/sh/netbsd-elf.h: New file.
6813 * config/sh/t-netbsd: New file.
6814
6815 2002-05-30 Richard Henderson <rth@redhat.com>
6816 Eric Botcazou <ebotcazou@multimania.com>
6817
6818 PR optimization/6822
6819 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
6820 to unsigned int for op1 comparisons. Use gen_int_mode.
6821
6822 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
6823
6824 * expmed.c (const_mult_add_overflow_p): New.
6825 * expr.h: Declare it.
6826 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
6827 Don't eliminate the biv if the giv has a constant multiplier and
6828 the rhs argument of the comparison does satisfy the predicate.
6829 Use expand_mult_add to compute the replacement constant.
6830
6831 2002-05-30 Osku Salerma <osku@iki.fi>
6832
6833 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
6834 (c_common_get_alias_set): Handle it.
6835 * doc/extend.texi: Document it.
6836
6837 2002-05-30 Richard Henderson <rth@redhat.com>
6838
6839 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6840 * toplev.c (process_options): Don't check it.
6841 * doc/tm.texi: Don't document it.
6842 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
6843 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6844 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
6845 frame pointer optimization if current_function_profile.
6846
6847 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
6848
6849 * langhooks.c: Fix formatting.
6850 * langhooks.h: Likewise.
6851 * lcm.c: Likewise.
6852 * libgcc2.c: Likewise.
6853 * lists.c: Likewise.
6854 * local-alloc.c: Likewise.
6855 * loop.c: Likewise.
6856 * loop.h: Likewise.
6857
6858 2002-05-30 Marc Espie <espie@openbsd.org>
6859
6860 * config.gcc (sparc64-*-openbsd*): New.
6861 * config/sparc/openbsd1-64.h: New.
6862 * config/sparc/openbsd64.h: New.
6863
6864 2002-05-30 Jeff Law <law@redhat.com>
6865
6866 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
6867 a dead insn with a REG_RETVAL note when the entire libcall is not
6868 dead and remove the associated REG_LIBCALL note at the same time.
6869
6870 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
6871
6872 * lcm.c (output.h): #include.
6873 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
6874 as an ordinary block.
6875 (optimize_mode_switching): Don't pretend that the exit block is
6876 an ordinary block, or handle sucessors of entry block specially.
6877 Instead, split edges from entry block and to exit block, and
6878 put a computing definition on the thus gained post-entry-block,
6879 and a need on the pre-exit-block.
6880
6881 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6882
6883 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
6884 * rtl.texi: Document 'B'
6885
6886 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6887
6888 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
6889 at run-time.
6890 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
6891
6892 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
6893
6894 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6895 const0_rtx instead of NULL_RTX when in error.
6896 (altivec_expand_abs_builtin): Same.
6897 (rs6000_expand_binop_builtin): Same.
6898 (altivec_expand_predicate_builtin): Same.
6899 (altivec_expand_stv_builtin): Same.
6900 (rs6000_expand_ternop_builtin): Same.
6901 (altivec_expand_builtin): Same.
6902
6903 2002-05-29 David S. Miller <davem@redhat.com>
6904
6905 * rtl.h (clear_emit_caches): Delete.
6906 * integrate.c (output_inline_function): Don't call it.
6907 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6908 (clear_emit_caches): Delete definition.
6909 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6910
6911 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
6912
6913 * config/mmix/mmix.c: Include real.h.
6914 (mmix_constant_address_p): Remove redundant test before switch.
6915
6916 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6917
6918 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6919 only if not already defined.
6920
6921 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6922
6923 * config/h8300/h8300-protos.h: Remove prototypes for
6924 ok_for_bclr and small_power_of_two.
6925 * config/h8300/h8300.c (small_power_of_two): Remove.
6926 (ok_for_blcr): Likewise.
6927 (fix_bit_operand): Make WHAT deal with an integer instead of a
6928 constraint character.
6929 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6930 (CONST_OK_FOR_P): Likewise.
6931 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6932 CONST_OK_FOR_P any more.
6933 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6934 of fix_bit_operand.
6935 (iorqi3): Likewise.
6936 (xorqi3): Likewise.
6937
6938 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6939
6940 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6941 (CPP_PREDEFINES): Make sure this is undefined.
6942 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6943 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
6944 or -U__MIPSEB__ before defining one or the other. Instead,
6945 use %(subtarget_endian_default) if neither -EB nor -EL are
6946 specified.
6947 (SUBTARGET_EXTRA_SPECS): Define.
6948 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
6949 %(netbsd_cpp_spec).
6950
6951 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6952
6953 * doc/md.texi (Patterns): Note pattern condition pitfall
6954 for unnamed insn.
6955
6956 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
6957
6958 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6959 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
6960 ternary operations from here...
6961 (rs6000_expand_builtin): ...to here.
6962 New argument expandedp.
6963 Change all instances of altivec_expand_binop_builtin to
6964 rs6000_expand_binop_builtin.
6965 (altivec_expand_unop_builtin): Rename to
6966 rs6000_expand_unop_builtin.
6967 (altivec_expand_binop_builtin): Rename to
6968 rs6000_expand_binop_builtin.
6969 (altivec_expand_ternop_builtin): Rename to
6970 rs6000_expand_ternop_builtin.
6971
6972 2002-05-29 Richard Henderson <rth@redhat.com>
6973
6974 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6975 (TARGET_BI_ARCH): Likewise.
6976 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6977 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6978 (TARGET_64BIT_DEFAULT): Default to 0.
6979 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6980
6981 2002-05-29 Richard Henderson <rth@redhat.com>
6982
6983 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6984 (get_pc_thunk_name): New.
6985 (output_set_got): Use it.
6986 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6987 into linkonce sections.
6988
6989 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6990
6991 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6992 (CPP_PREDEFINES): Make sure this is undefined.
6993 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6994 (CPP_SUBTARGET_SPEC): Don't provide different versions for
6995 default-32 and default-64. Just always use %(netbsd_cpp_spec).
6996 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6997 cpp_subtarget_spec64. Add netbsd_cpp_spec.
6998 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6999 (CPP_PREDEFINES): Make sure this is undefined.
7000 (SUBTARGET_EXTRA_SPECS): Define.
7001 (CPP_SPEC): Use %(netbsd_cpp_spec).
7002
7003 2002-05-29 Jeff Law <law@redhat.com>
7004
7005 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
7006
7007 * flow.c (propagate_one_insn): Do not remove a dead insn if it
7008 contains a REG_RETVAL note.
7009
7010 * haifa-sched (sched_analyze): Remove another useless clearing
7011 of SCHED_GROUP_P I missed yesterday.
7012
7013 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
7014 * pa.c (pa_asm_output_mi_thunk): New function.
7015 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
7016
7017 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7018 Marek Michalkiewicz <marekm@amelek.gda.pl>
7019
7020 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
7021 (avr_asm_only_p): Make non-static.
7022 (enum avr_arch): Remove.
7023 (avr_arch_types): New.
7024 (avr_mcu_types): Update.
7025 (avr_override_options): Use avr_arch_types table instead of switch.
7026 * avr.h (CPP_PREDEFINES): Die.
7027 (avr_base_arch_macro, avr_extra_arch_macro): New.
7028 (TARGET_CPU_CPP_BUILTINS): New.
7029 (CPP_SPEC, EXTRA_SPECS): Simplify.
7030 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
7031 CPP_AVR5_SPEC): Die.
7032
7033 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7034
7035 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
7036 NETBSD_OS_CPP_BUILTINS_AOUT.
7037 (SUBTARGET_EXTRA_SPECS): Define.
7038 (CPP_SPEC): Use %(netbsd_cpp_spec).
7039
7040 2002-05-29 Richard Henderson <rth@redhat.com>
7041
7042 * config/i386/i386.c (ix86_output_function_epilogue): New.
7043 (TARGET_ASM_FUNCTION_EPILOGUE): New.
7044 (pic_label_name): Remove.
7045 (pic_labels_used): New.
7046 (ix86_asm_file_end): Emit one pc load stub for each register used.
7047 (output_set_got): Generate deep pc load to any register.
7048 (ix86_select_alt_pic_regnum): New.
7049 (ix86_save_reg): Don't save pic register if we can find a valid
7050 call-clobbered replacement.
7051 (ix86_expand_prologue): If we found a valid replacement, renumber
7052 pic_offset_table_rtx.
7053 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
7054 pic_offset_table_rtx after reload.
7055 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
7056 * config/i386/i386.md (set_got): Make insn, not expander.
7057 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
7058
7059 2002-05-29 Richard Henderson <rth@redhat.com>
7060
7061 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
7062 alignment for alloca.
7063
7064 2002-05-29 Richard Henderson <rth@redhat.com>
7065
7066 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
7067 (print_operand_address): Only add rip for symbolic addresses
7068 for which we do not have another relocation type.
7069
7070 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7071
7072 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7073 (EXTRA_SPECS): Add netbsd_cpp_spec.
7074 (CPP_SPEC): Use %(netbsd_cpp_spec).
7075 (CPP_PREDEFINES): Remove.
7076 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7077 (EXTRA_SPECS): Define.
7078 (CPP_SPEC): Use %(netbsd_cpp_spec).
7079 (CPP_PREDEFINES): Remove.
7080
7081 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7082
7083 PR preprocessor/6844
7084 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
7085 NUL.
7086
7087 2002-05-29 Eric Christopher <echristo@redhat.com>
7088
7089 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
7090 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
7091
7092 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
7093
7094 * config/fr30/fr30.md: Remove previous restriction on splits.
7095 Enforce conformance through gen_lowpart and cont_int_operand.
7096 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
7097 as the assembler does not support ".bss".
7098
7099 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7100
7101 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7102 (CPP_PREDEFINES): Remove.
7103 (SUBTARGET_EXTRA_SPECS): Define.
7104 (CPP_SPEC): Use %(netbsd_cpp_spec).
7105 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7106 (CPP_PREDEFINES): Remove.
7107 (SUBTARGET_EXTRA_SPECS): Define.
7108 (CPP_SPEC): Use %(netbsd_cpp_spec).
7109 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
7110 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
7111 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
7112 Add netbsd_cpp_spec.
7113 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
7114
7115 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7116 Zack Weinberg <zack@codesourcery.com>
7117
7118 * cppexp.c (cpp_num): Move to cpplib.h.
7119 (CPP_ERROR): Remove.
7120 (interpret_float_suffix, interpret_int_suffix): New.
7121 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
7122 (cpp_classify_number, cpp_interpret_integer): New.
7123 (interpret_number): Remove.
7124 (eval_token): Update to use new routines.
7125 * cpphash.h (cpp_num_part): Move to cpplib.h.
7126 * cppinit.c (cpp_post_options): Set warn_long_long.
7127 * cpplib.h (struct cpp_options): Add warn_long_long.
7128 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
7129 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
7130 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
7131 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
7132 cpp_interpret_integer): New.
7133
7134 2002-05-29 Joel Sherrill <joel@OARcorp.com>
7135
7136 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
7137
7138 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7139
7140 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
7141 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
7142 (CPP_SUBTARGET_SPEC): Define.
7143 (SUBTARGET_EXTRA_SPECS): Define.
7144 (CPP_SPEC): Remove.
7145
7146 2002-05-29 Chris Lattner <sabre@nondot.org>
7147
7148 * ssa.c (rename_insn_1): Rename uses of undefined registers to
7149 prevent confusion if/when the register is defined.
7150
7151 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
7152
7153 PR target/6838
7154 * config/cris/cris.md: Fix typos and thinkos in comments.
7155 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
7156 second alternative.
7157 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
7158 ("*mov_sideqi_mem"): Similar, but for operand 3.
7159 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
7160 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
7161 Remove spurious mode specifier on operand 2.
7162
7163 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
7164
7165 * config/h8300/h8300-protos.h: Remove the prototype for
7166 o_operand.
7167 Add prototypes for single_one_operand and single_zero_operand.
7168 * config/h8300/h8300.c (o_operand): Remove.
7169 (single_one_operand): New.
7170 (single_zero_operand): Likewise.
7171 (print_operand): For 'V' operand, and the operand with 0xff.
7172 For 'V' and 'W' operands, do not and the bit position with 7.
7173 * config/h8300/h8300.md (various anonymous patterns): Replace
7174 use of exact_log2 with single_one_operand/single_zero_operand.
7175
7176 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
7177
7178 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
7179
7180 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
7181
7182 * config/s390/s390.c (legitimate_pic_operand_p): Do not
7183 accept symbolic LARL operands.
7184 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
7185 epilogue insns.
7186
7187 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
7188
7189 * config/s390/s390.md (cmpstr_64/31): Mark whole
7190 input registers as used.
7191
7192 2002-05-28 Richard Henderson <rth@redhat.com>
7193
7194 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
7195 not current_function_uses_pic_offset_table and
7196 current_function_uses_const_pool; examine current_function_profile.
7197 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
7198 input to blockage if needed.
7199 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
7200 (legitimize_pic_address): Likewise. Set regs_ever_live for
7201 pic_offset_table_rtx when invoked during reload.
7202 * config/i386/i386.h (FINALIZE_PIC): Remove.
7203 * config/i386/i386.md (tablejump): Reformat. Do not set
7204 current_function_uses_pic_offset_table.
7205 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
7206 (blockage): Accept anything as operand 0.
7207
7208 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7209
7210 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
7211 common CPP built-ins for all NetBSD a.out targets.
7212 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
7213 common CPP built-ins for all NetBSD ELF targets.
7214 * config/netbsd.h: Add missing notice.
7215 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
7216 for all NetBSD targets.
7217 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
7218 for all NetBSD targets using an LP64 code model.
7219 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
7220 NetBSD targets.
7221
7222 2002-05-28 Richard Henderson <rth@redhat.com>
7223
7224 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
7225 update if UPDATE_LIFE_LOCAL.
7226
7227 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7228
7229 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
7230
7231 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7232 Jason R. Thorpe <thorpej@wasabisystems.com>
7233
7234 config/sh reorganization to factor out endianness and coff:
7235
7236 * config/sh/little.h: New file.
7237 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
7238 defined, define to 0 to select big-endian.
7239 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
7240 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7241 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7242 * config/sh/t-be: New file.
7243 * config/sh/t-le: New file.
7244
7245 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
7246 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
7247 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
7248 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
7249 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
7250 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7251 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
7252 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
7253 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
7254 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
7255 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
7256 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
7257 (LINK_SPEC): Define to SH_LINK_SPEC.
7258 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
7259 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
7260 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
7261 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
7262 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
7263 * config/sh/coff.h: New file.
7264 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
7265 (TARGET_OBJFMT_CPP_BUILTINS): Define.
7266 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
7267 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
7268 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
7269 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
7270 (PTRDIFF_TYPE): Likewise.
7271 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
7272 (CPP_PREDEFINES): Don't define.
7273 (TARGET_OBJFMT_CPP_BUILTINS): Define.
7274 (LINK_SPEC): Define to SH_LINK_SPEC.
7275 (LINK_EMUL_PREFIX): Redefine.
7276 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
7277 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
7278 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
7279 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
7280 (TARGET_OS_CPP_BUILTINS): Define.
7281 (TARGET_DEFAULT): Redefine.
7282 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
7283 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
7284 (LINK_SPEC): Don't redefine.
7285 (LINK_DEFAULT_CPU_EMUL): Redefine.
7286 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7287 * sh.c (sh_asm_named_section): Don't declare / define.
7288 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
7289 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
7290 (sh64-*-elf* tm_file): Likewise.
7291 (sh-*-rtemself* tm_file): Likewise.
7292 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
7293 (sh-*-linux* tmake_file): Add sh/t-le.
7294 (sh-*-rtems* tm_file): Add sh/coff.h
7295 (sh-*-* tm_file): Likewise.
7296
7297 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7298
7299 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
7300 CONSTANT_POOL_ADDRESS_P.
7301
7302 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
7303
7304 2002-05-28 David Edelsohn <edelsohn@gnu.org>
7305 Jeff Law <law@redhat.com>
7306
7307 * optabs.c (expand_binop): Fix nwords sign warnings.
7308 generate pseudo for add_optab.
7309
7310 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
7311 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
7312
7313 2002-05-28 Marc Espie <espie@openbsd.org>
7314
7315 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
7316 inherited from gas.h.
7317 (ASM_QUAD): Undef. OpenBSD does not support it.
7318
7319 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
7320
7321 * doc/install.texi (binaries): Change mingw binaries
7322 link to www.mingw.org.
7323
7324 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7325
7326 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
7327
7328 2002-05-28 Richard Henderson <rth@redhat.com>
7329
7330 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
7331 bottom alignment for leaf functions.
7332
7333 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7334
7335 * config/pa/milli32.S, config/pa/lib1funcs.asm,
7336 config/sparc/sol2-g1.asm: Delete unused files.
7337
7338 2002-05-28 Richard Henderson <rth@redhat.com>
7339
7340 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
7341
7342 * flow.c (calculate_global_regs_live): Rename call_used to
7343 invalidated_by_call. Initialize from regs_invalidated_by_call
7344 instead of call_used_regs.
7345
7346 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
7347 DECL_EXTERNAL.
7348
7349 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7350
7351 * tree.h: Don't include real.h.
7352 Forward-declare struct realvaluetype.
7353 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
7354 contain it.
7355 (TREE_REAL_CST_PTR): New accessor.
7356 (TREE_REAL_CST): Update.
7357 * real.h: Include machmode.h.
7358 (realvaluetype): Make it struct realvaluetype, not a typedef.
7359 (build_real): Prototype here.
7360
7361 * tree.c: Include real.h.
7362 (build_real): Allocate the REAL_VALUE_TYPE as a separate
7363 object in GC memory, set TREE_REAL_CST_PTR to point to it.
7364 (build_real_from_int_cst): Use build_real.
7365 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
7366 REAL_CST.
7367
7368 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
7369 fold-const.c, print-tree.c, real.c: Include real.h.
7370 * Makefile.in: Update dependency lists.
7371
7372 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7373
7374 * basic-block.h (last_basic_block): Declare.
7375 (expunge_block_nocompact): Declaration removed.
7376 (compact_blocks): Declare.
7377 * cfg.c (last_basic_block): New variable.
7378 (expunge_block_nocompact): Removed.
7379 (expunge_block): Do not compact basic blocks.
7380 (compact_blocks): New.
7381 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
7382 longer change.
7383 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
7384 last_basic_block.
7385 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
7386 real positions of blocks.
7387 (delete_unreachable_blocks): Simplified -- quadratic behavior now
7388 cannot occur.
7389 (cleanup_cfg): Compact blocks.
7390 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
7391 basic_block_info varray.
7392 (flow_delete_block): Comment update.
7393 (back_edge_of_syntactic_loop_p): Modify position check code.
7394 (verify_flow_info): Update checking.
7395 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
7396 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7397 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
7398 indices no longer change.
7399 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
7400 last_basic_block.
7401 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
7402 * profile.c (branch_prob): Compact blocks.
7403 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
7404 last_basic_block.
7405
7406 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
7407
7408 * config/h8300/h8300.md (two anonymous patterns): New.
7409
7410 2002-05-28 David S. Miller <davem@redhat.com>
7411
7412 * config/sparc/sparc.md (cpu): Tidy.
7413 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
7414 'trap'.
7415 (in_call_delay): Delete reference to 'return' type.
7416 (eligible_for_return_delay, in_return_delay, define_delay
7417 referencing those): Delete.
7418 (rest of file): Use new type attributes as appropriate.
7419 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
7420 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
7421 * config/sparc/ultra1_2.md (us1_single): New reservation.
7422 (us1_ialuX): Likewise.
7423 * config/sparc/ultra3.md (us3_single): Likewise.
7424 (us3_ialuX): Likewise.
7425 (us3_imul, us3_idiv): Tweak.
7426
7427 2002-05-28 Richard Henderson <rth@redhat.com>
7428
7429 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
7430 STRING_CST.
7431
7432 2002-05-28 Richard Henderson <rth@redhat.com>
7433
7434 * config.gcc: Obsolete mn10200.
7435
7436 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
7437
7438 * cppexp.c (interpret_number): Optimize for single-digit
7439 and less-than-half-precision cases.
7440 (num_trim, num_positive, num_div_op): Cast constants.
7441
7442 2002-05-27 Bo Thorsen <bo@suse.de>
7443
7444 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
7445 3.1 branch. The file was made by Jakub Jelinek.
7446 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
7447 support so multilib doesn't break. And don't define this at all
7448 when -Dinhibit_libc is used.
7449 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
7450 * config/i386/t-linux64: Implement full multilib support. Patch
7451 originally done by Andreas Jaeger and Jakub Jelinek.
7452
7453 2002-05-27 Roger Sayle <roger@eyesopen.com>
7454
7455 * c-common.c: Add support for __attribute__((nothrow)) to specify
7456 that a function cannot throw an exception (using TREE_NOTHROW).
7457 (handle_nothrow_attribute): New function to process this attribute.
7458
7459 * doc/extend.texi: Document the new nothrow function attribute.
7460
7461 2002-05-27 H.J. Lu (hjl@gnu.org)
7462
7463 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
7464 (num_positive): Likewise.
7465 (num_div_op): Likewise.
7466
7467 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7468
7469 * c-common.c (c_common_init): Always use intmax_t.
7470
7471 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7472
7473 * c-common.c (c_common_init): Use intmax_t for now.
7474
7475 2002-05-24 Andrew Haley <aph@redhat.com>
7476
7477 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
7478 if T is a boolean type.
7479
7480 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7481
7482 * basic-block.h (last_basic_block): Defined as synonym for
7483 n_basic_blocks.
7484 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
7485 flow_depth_first_order_compute, flow_preorder_transversal_compute,
7486 flow_dfs_compute_reverse_init): Replaced relevant occurences of
7487 n_basic_blocks with last_basic_block.
7488 * cfgbuild.c (make_edges): Likewise.
7489 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
7490 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
7491 * combine.c (combine_instructions): Likewise.
7492 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
7493 iterative_dataflow_bitmap): Likewise.
7494 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7495 calc_idoms, idoms_to_doms): Likewise.
7496 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
7497 Likewise.
7498 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
7499 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
7500 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
7501 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
7502 delete_null_pointer_checks, compute_code_hoist_vbeinout,
7503 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7504 compute_store_table, build_store_vectors): Likewise.
7505 * haifa-sched.c (sched_init): Likewise.
7506 * ifcvt.c (if_convert): Likewise.
7507 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7508 pre_edge_lcm, compute_available, compute_nearerout,
7509 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
7510 Likewise.
7511 * predict.c (estimate_probability, process_note_prediction,
7512 note_prediction_to_br_prob): Likewise.
7513 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
7514 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7515 * regrename.c (copyprop_hardreg_forward): Likewise.
7516 * resource.c (init_resource_info): Likewise.
7517 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
7518 init_regions, schedule_insns): Likewise.
7519 * ssa-ccp.c (ssa_const_prop): Likewise.
7520 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7521 * ssa.c (compute_dominance_frontiers,
7522 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
7523
7524 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
7525 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
7526 sizes consistently.
7527
7528 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
7529
7530 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
7531 new.
7532 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
7533 hoist_insn_after, hoist_insn_to_edge): New.
7534
7535 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
7536
7537 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
7538 (PROP_FINAL): Include.
7539 * flow.c (life_analysis, update_life_info,
7540 init_propagate_block_info, mark_set_1, mark_used_rgs):
7541 Support SCAN_DEAD_STORE.
7542
7543 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7544
7545 * c-common.c (c_common_init): Set CPP arithmetic precision.
7546 * cppexp.c (cpp_num_part): Move typedef ...
7547 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
7548 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
7549 (sanity_checks): Update.
7550
7551 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
7552
7553 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
7554 (mkheaders): New rule.
7555 (install-mkheaders): New rule.
7556 * configure.in (all_outputs): Add mkheaders.
7557 * configure: Regenerate.
7558 * mkheaders.in: New file.
7559
7560 2002-05-26 Jakub Jelinek <jakub@redhat.com>
7561
7562 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
7563
7564 2002-05-26 Andreas Jaeger <aj@suse.de>
7565
7566 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
7567
7568 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
7569
7570 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
7571 right_shift): Remove.
7572 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
7573 HIGH_PART): New.
7574 (struct op): Use cpp_num.
7575 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
7576 num_part_mul, num_unary_op, num_binary_op, num_negate,
7577 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
7578 num_div_op, num_lshift, num_rshift, append_digit): New.
7579 (interpret_number, parse_defined, eval_token, reduce): Update
7580 for two-integer arithmetic.
7581 (binary_handler): New typedef.
7582 (optab): Update.
7583 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
7584 (_cpp_parse_expr, reduce): Update to handle two-integers.
7585 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
7586
7587 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7588
7589 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
7590 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
7591 branch insn into account, do not assume 1.
7592 (avr_out_sbxx_branch): New function. Optimize cases of skipping
7593 over single word insn. Handle upper half of I/O space too.
7594 * config/avr/avr.md (*sbrx_branch): Use it.
7595 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
7596 (*sbix_branch, *sbix_branch_bit7): Likewise.
7597 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
7598 Use RTL peepholes to optimize register operand sign tests.
7599
7600 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7601
7602 * config/avr/avr.c (avr_asm_only_p): New variable.
7603 (avr_override_options): Set it here if AVR1.
7604 (asm_file_start): Test it here, report an error if set.
7605
7606 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
7607
7608 * alias.c: Fix formatting.
7609 * attribs.c: Likewise.
7610 * bb-reorder.c: Likewise.
7611 * bitmap.c: Likewise.
7612 * bitmap.h: Likewise.
7613 * builtins.c: Likewise.
7614
7615 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
7616
7617 * reload.c (find_valid_class): Accept new argument DEST,
7618 choose class accordingly.
7619 (push_reload): Update callers.
7620
7621 2002-05-26 Andreas Jaeger <aj@suse.de>
7622
7623 * combine.c (combine_instructions): Do not indent #if for
7624 traditional C.
7625
7626 2002-05-25 Richard Henderson <rth@redhat.com>
7627
7628 * c-pragma.c (apply_pragma_weak): Convert value identifier to
7629 string for decl_attributes.
7630 (handle_pragma_weak): Call assemble_alias if we're modifying
7631 an existing decl.
7632
7633 2002-05-25 Richard Henderson <rth@redhat.com>
7634
7635 PR target/6788
7636 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
7637 using rtl instead of fprintf.
7638 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
7639 * config/sparc/sparc-protos.h: Update.
7640
7641 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
7642
7643 * Makefile.in (C_COMMON_H): Fix.
7644 Update other targets.
7645 * c-common.c: Don't include c-lex.h.
7646 (builtin_define_with_value): Make static and prototype.
7647 (builtin_define_std): Move from c-lex.h.
7648 * c-common.h (init_c_lex): Move from c-lex.h.
7649 * c-decl.c: Don't include c-lex.h.
7650 (make_pointer_declarator): Move from c-parse.in.
7651 * c-lex.c: Don't include c-lex.h.
7652 * c-lex.h: Remove.
7653 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
7654 (make_pointer_declarator): Move to c-decl.c.
7655 * c-pragma.c: Don't include c-lex.h.
7656 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
7657 * c-tree.h (make_pointer_declarator): New.
7658 doc:
7659 * passes.texi, tm.texi: Update.
7660 objc:
7661 * Make-lang.in: Update and correct.
7662 * objc-act.c: Don't include c-lex.h or cpplib.h.
7663 treelang:
7664 * treetree.c: Don't include c-lex.h.
7665 config:
7666 * darwin-c.c: Don't include c-lex.h.
7667 * c4x/c4x-c.c: Don't include c-lex.h.
7668 * c4x/t-c4x: Update.
7669 * i370/i370-c.c: Don't include c-lex.h.
7670 * i370/t-i370: Update.
7671 * i960/i960-c.c: Don't include c-lex.h.
7672 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
7673 * i960/t-960bare: Update.
7674 * i960/t-vxworks: Update.
7675 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
7676 * rs6000/t-darwin: Update.
7677 * rs6000/t-rs6000-c-rule: Update.
7678 * v850/v850-c.c: Don't include c-lex.h.
7679 * v850/v850.c: Don't include c-lex.h or cpplib.h.
7680
7681
7682 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7683
7684 * tree.def: Fix typos.
7685 * doc/install.texi: Likewise.
7686
7687 2002-05-25 Richard Henderson <rth@redhat.com>
7688
7689 * configure.in (HAVE_AS_TLS): Add ia64 test.
7690 * configure: Rebuild.
7691 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
7692 (override_options): Set it.
7693 (TARGET_HAVE_TLS): New.
7694 (sdata_symbolic_operand): Look for 's'.
7695 (tls_symbolic_operand): New.
7696 (ia64_expand_load_address): Abort for tls symbols.
7697 (gen_tls_get_addr): New.
7698 (gen_thread_pointer): New.
7699 (ia64_expand_move): Split out from movdi. Handle tls symbols.
7700 (rtx_needs_barrier): Add new unspecs.
7701 (ia64_encode_section_info): Handle tls symbols.
7702 (ia64_strip_name_encoding): Strip two encoding chars.
7703 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
7704 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
7705 (TARGET_OPTIONS): Add tls-size.
7706 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
7707 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
7708 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
7709 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
7710 (movsf, movdf): Likewise.
7711 (movdi_symbolic): Use match_scratch. Don't split if we won't
7712 have a scratch availiable.
7713 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
7714 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
7715 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
7716 * config/ia64/ia64-protos.h: Update.
7717 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7718 sdata_symbolic_operand.
7719 (ASM_OUTPUT_LABELREF): Strip two characters.
7720
7721 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7722
7723 * combine.c (simplify_set): Remove an unnecessary subreg.
7724
7725 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
7726
7727 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
7728
7729 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
7730
7731 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7732
7733 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
7734
7735 2002-05-25 Roger Sayle <roger@eyesopen.com>
7736
7737 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
7738 (cond (compare x y) 0) into the equivalent (cond x y).
7739
7740 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7741
7742 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
7743
7744 2002-05-24 Zack Weinberg <zack@codesourcery.com>
7745
7746 * config.gcc: Remove all stanzas for previously obsoleted
7747 systems. Where necessary, add explicit error stanzas to
7748 prevent removed systems from being misidentified as something
7749 else. Begin a fresh obsoletions list, with the systems that
7750 were reprieved last round.
7751 * doc/install.texi: Remove all mention of dead targets.
7752 * fixinc/mkfixinc.sh: Likewise.
7753
7754 * config/arm/arm.h: Bit 31 of target_flags is no longer
7755 reserved.
7756
7757 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
7758 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
7759 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
7760 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
7761 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
7762 config/alpha/osf12.h, config/alpha/osf2or3.h,
7763 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
7764 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
7765 config/clipper/clipper-protos.h, config/clipper/clipper.c,
7766 config/clipper/clipper.h, config/clipper/clipper.md,
7767 config/clipper/clix.h, config/convex/convex-protos.h,
7768 config/convex/convex.c, config/convex/convex.h,
7769 config/convex/convex.md, config/convex/fixinc.convex,
7770 config/convex/proto.h, config/elxsi/elxsi-protos.h,
7771 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
7772 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
7773 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
7774 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
7775 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
7776 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
7777 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
7778 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
7779 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
7780 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
7781 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
7782 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
7783 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
7784 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
7785 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
7786 config/m68k/altos3068.h, config/m68k/apollo68.h,
7787 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
7788 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
7789 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
7790 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
7791 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
7792 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
7793 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
7794 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
7795 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
7796 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
7797 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
7798 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
7799 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
7800 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
7801 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
7802 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
7803 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
7804 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
7805 config/mips/dec-osf1.h, config/mips/elflorion.h,
7806 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
7807 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
7808 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
7809 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
7810 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
7811 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
7812 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
7813 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
7814 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
7815 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
7816 config/ns32k/sequent.h, config/ns32k/tek6000.h,
7817 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
7818 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
7819 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
7820 config/sparc/rtems.h, config/we32k/we32k-protos.h,
7821 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
7822 Delete file.
7823
7824 2002-05-24 Richard Henderson <rth@redhat.com>
7825
7826 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
7827 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
7828 * config/i386/i386.c (tls_model_chars): Add leading space.
7829 (tls_symbolic_operand): Don't bias by 1.
7830 (legitimize_address): Don't unbias by 1.
7831
7832 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7833
7834 * lcm.c (optimize_mode_switching): Change bb used as indices
7835 to bb->index.
7836
7837 2002-05-24 Richard Henderson <rth@redhat.com>
7838
7839 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
7840 of update_life_info_in_dirty_blocks.
7841
7842 2002-05-24 Jakub Jelinek <jakub@redhat.com>
7843
7844 PR other/6782
7845 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
7846
7847 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
7848
7849 PR preprocessor/6780
7850 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
7851
7852 2002-05-24 Jim Blandy <jimb@redhat.com>
7853
7854 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
7855 entry with a type code of zero, marking the end of the compilation
7856 unit's macro info.
7857
7858 2002-05-24 Richard Henderson <rth@redhat.com>
7859
7860 * varasm.c (asm_output_bss): Always output one byte.
7861 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7862
7863 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7864
7865 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
7866 namespace.
7867
7868 2002-05-24 Andreas Jaeger <aj@suse.de>
7869
7870 * ggc-page.c (alloc_page): Cast variables of type size_t to
7871 unsigned long, adjust printf format string.
7872 (ggc_alloc): Likewise.
7873 (ggc_print_statistics): Likewise.
7874 (ggc_print_statistics): Correct printf format string for SCALE to
7875 use unsigned long.
7876
7877 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
7878
7879 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
7880
7881 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
7882 Zack Weinberg <zack@codesourcery.com>
7883
7884 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
7885 quoted strings.
7886 * dwarf2out.c (lookup_filename): Properly quote filename in .file
7887 directive in assembly file.
7888 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7889 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7890 * config/pj/pj.h (ASM_FILE_START): Likewise.
7891 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7892 * config/avr/avr.c (asm_file_end): Likewise.
7893 * toplev.c (output_quoted_string): Handle possibly signed plain
7894 char.
7895 * toplev.h (output_clean_symbol_name): Declare
7896 * toplev.c (output_clean_symbol_name): Define.
7897 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7898 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7899
7900 2002-05-24 Alan Modra <amodra@bigpond.net.au>
7901
7902 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7903
7904 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
7905
7906 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7907 of size of unsigned.
7908
7909 2002-05-23 Richard Henderson <rth@redhat.com>
7910
7911 * configure.in (HAVE_AS_TLS): New test.
7912 * config.in, configure: Rebuild.
7913 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7914 (ix86_tls_dialect_string, ix86_tls_dialect): New.
7915 (override_options): Set it.
7916 (tls_model_chars, tls_symbolic_operand): New.
7917 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7918 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7919 (local_exec_symbolic_operand): New.
7920 (get_pic_label_name): Merge into output_set_got.
7921 (ix86_asm_file_end): Emit pic_label_name if defined.
7922 (legitimate_constant_p, constant_address_p): New.
7923 (legitimate_pic_operand_p): New.
7924 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7925 (legitimate_address_p): Likewise.
7926 (ix86_encode_section_info): Rename from i386_; handle tls decls.
7927 (ix86_strip_name_encoding): New.
7928 (get_thread_pointer): New.
7929 (legitimize_address): Handle tls symbols.
7930 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7931 Remove UNSPEC_PLT.
7932 (struct machine_function): Add some_ld_name.
7933 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7934 (print_operand) [&]: Use it. Handle UNSPEC_TP.
7935 (output_addr_const_extra): New.
7936 (maybe_get_pool_constant): New.
7937 (ix86_split_to_parts): Use it.
7938 (ix86_expand_move): Handle tls symbols.
7939 (ix86_tls_get_addr): New.
7940 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7941 (TARGET_OPTIONS): Add tls-dialect.
7942 (CONSTANT_ADDRESS_P): Use new out-of-line function.
7943 (LEGITIMATE_CONSTANT_P): Likewise.
7944 (LEGITIMATE_PIC_OPERAND_P): Likewise.
7945 (TARGET_STRIP_NAME_ENCODING): New.
7946 (ASM_OUTPUT_LABELREF): New.
7947 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7948 (OUTPUT_ADDR_CONST_EXTRA): New.
7949 (PREDICATE_CODES): Update.
7950 (ix86_tls_dialect, ix86_tls_dialect_string): New.
7951 * config/i386/i386.md: Regroup and renumber unspec constants.
7952 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7953 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7954 (tls_global_dynamic, tls_local_dynamic_base): New.
7955 (tls_local_dynamic_once): New.
7956 * config/i386/i386-protos.h: Update.
7957
7958 2002-05-23 Richard Henderson <rth@redhat.com>
7959
7960 * genemit.c (gen_insn): Print file:lineno comment before function.
7961 (main): likewise.
7962 * gensupport.c (struct queue_elem): Add filename member.
7963 (queue_pattern): Initialize it; update all callers.
7964 (process_include): Don't free filename.
7965 (read_md_rtx): Set read_rtx_filename.
7966
7967 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
7968
7969 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7970
7971 2002-05-23 Richard Henderson <rth@redhat.com>
7972
7973 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7974
7975 2002-05-23 Richard Henderson <rth@redhat.com>
7976
7977 * doc/extend.texi (C++98 Thread-Local Edits): Update with
7978 commentary from Mark.
7979
7980 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7981
7982 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7983 Use FOR_EACH_BB macros to iterate over basic block chain.
7984 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7985 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7986 Likewise.
7987 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7988 find_unreachable_blocks, create_edge_list, verify_edge_list,
7989 remove_fake_edges, add_noreturn_fake_exit_edges,
7990 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7991 Likewise.
7992 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7993 find_sub_basic_blocks): Likewise.
7994 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7995 Likewise.
7996 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7997 Likewise.
7998 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7999 Likewise.
8000 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
8001 commit_edge_insertions, commit_edge_insertions_watch_calls,
8002 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
8003 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
8004 * conflict.c (conflict_graph_compute): Likewise.
8005 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8006 df_modified_p, df_refs_unlink, df_dump): Likewise.
8007 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
8008 * final.c (compute_alignments): Likewise.
8009 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
8010 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
8011 count_or_remove_death_notes): Likewise.
8012 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
8013 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
8014 classic_gcse, compute_transp, cprop, compute_pre_data,
8015 compute_transpout, invalidate_nonnull_info,
8016 delete_null_pointer_checks_1, delete_null_pointer_checks,
8017 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
8018 compute_store_table, build_store_vectors, store_motion): Likewise.
8019 * global.c (global_conflicts, mark_elimination): Likewise.
8020 * graph.c (print_rtl_graph_with_bb): Likewise.
8021 * haifa-sched.c (sched_init): Likewise.
8022 * ifcvt.c (if_convert): Likewise.
8023 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
8024 compute_available, compute_nearerout, compute_rev_insert_delete,
8025 optimize_mode_switching): Likewise.
8026 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
8027 * predict.c (estimate_probability, note_prediction_to_br_prob,
8028 propagate_freq, counts_to_freqs, expensive_function_p,
8029 estimate_bb_frequencies): Likewise.
8030 * profile.c (instrument_edges, get_exec_counts,
8031 compute_branch_probabilities, compute_checksum, branch_prob,
8032 find_spanning_tree): Likewise.
8033 * recog.c (split_all_insns, peephole2_optimize): Likewise.
8034 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
8035 Likewise.
8036 * regclass.c (scan_one_insn, regclass): Likewise.
8037 * regmove.c (mark_flags_life_zones, regmove_optimize,
8038 record_stack_memrefs): Likewise.
8039 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
8040 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
8041 * resource.c (find_basic_block): Likewise.
8042 * sched-ebb.c (schedule_ebbs): Likewise.
8043 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
8044 find_single_block_region, find_rgns, schedule_insns)
8045 * sibcall.c (optimize_sibling_and_tail_recursive_call)
8046 * ssa-ccp.c (optimize_unexecutable_edges,
8047 ssa_ccp_df_delete_unreachable_insns): Likewise.
8048 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8049 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
8050 rename_block, convert_to_ssa, compute_conservative_reg_partition,
8051 compute_coalesced_reg_partition, rename_equivalent_regs,
8052 convert_from_ssa): Likewise.
8053 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
8054 process_for_unwind_directive): Likewise.
8055
8056 * df.c (FOR_ALL_BBS): Removed.
8057 * gcse.c (struct null_pointer_info): Type of current_block field
8058 changed.
8059 (struct reg_avail_info): Type of last_bb field changed.
8060 * config/ia64/ia64.c (block_num): Removed.
8061 (need_copy_state): Type changed.
8062 (last_block): New.
8063
8064 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8065
8066 * cppinit.c (mark_named_operators): Split out from init_builtins.
8067 (cpp_finish_options): Call it from here instead.
8068
8069 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
8070
8071 * builtin-attrs.def: Update copyright years.
8072 (ATTR_NONNULL): New attribute identifier.
8073 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
8074 attribute tree lists.
8075 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
8076 format operand.
8077 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
8078 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
8079 attribute lists. Chain the appropriate nonnull attribute.
8080 * c-format.c (check_format_arg): Remove null format string
8081 warning.
8082 * testsuite/gcc.dg/format/null-1.c: New test.
8083
8084 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8085
8086 * Makefile.in (ADAC): Define.
8087 (SYSLIBS): Define.
8088 (.SUFFIXES): Move before language makefile fragments.
8089 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
8090
8091 2002-05-23 Mark Mitchell <mark@codesourcery.com>
8092
8093 * varasm.c (make_decl_rtl): Don't allow weak variables to be
8094 placed in common.
8095
8096 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
8097
8098 * cfg.c (dump_flow_info): Print results of
8099 maybe_hot/probably_never_executed predicates.
8100 * toplev.c (open_dump_file): Print function frequency.
8101
8102 2002-05-23 David S. Miller <davem@redhat.com>
8103
8104 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
8105 regsets.
8106
8107 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
8108
8109 * c-common.c (warn_nonnull): Declare.
8110 (c_common_attribute_table): Add "nonnull" attribute.
8111 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
8112 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
8113 check_function_arguments_recurse): New functions.
8114 * c-common.h (warn_nonnull): Declare extern.
8115 (check_function_arguments, check_function_arguments_recurse): New
8116 prototypes.
8117 * c-decl.c (c_decode_option): Add -Wnonnull option.
8118 * c-format.c (set_Wformat): Set warn_nonnull if enabling
8119 format checking.
8120 (format_check_context): New structure.
8121 (check_format_info_recurse): Remove recursion and rename to...
8122 (check_format_arg): ...this. Update comment.
8123 (check_format_info): Use check_function_arguments_recurse.
8124 * c-typeck.c (build_function_call): Call check_function_arguments
8125 instead of check_function_format.
8126 * doc/extend.texi: Document "nonnull" attribute.
8127 * doc/invoke.texi: Docuemnt -Wnonnull option.
8128 * testsuite/gcc.dg/nonnull-1.c: New test.
8129 * testsuite/gcc.dg/nonnull-2.c: New test.
8130
8131 2002-05-23 David S. Miller <davem@redhat.com>
8132
8133 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
8134 * cfgcleanup.c (cleanup_cfg): If it is set do not
8135 attempt to delete trivially dead insns.
8136 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
8137 * toplev.c (rest_of_compilation): Document non-trivial aspect
8138 the RTL before optimize_save_area_alloca is run.
8139
8140 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8141
8142 * c-lex.c (indent_level): Remove.
8143 (cb_file_change, c_lex): Remove indent level handling.
8144 * c-lex.h (indent_level): Remove.
8145 * input.h (struct file_stack): Remove indent_level.
8146 * toplev.c (push_srcloc): Remove indent_level handling.
8147
8148 2002-05-23 Jakub Jelinek <jakub@redhat.com>
8149
8150 PR target/6753
8151 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
8152 of x in constraints for clarity.
8153 (sse_mov?fcc split): abort if op2 == op3.
8154 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
8155 sse_movsfcc_const0_4): Add earlyclobber.
8156 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
8157 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
8158 Use Y instead of x in constraints.
8159
8160 2002-05-23 Richard Henderson <rth@redhat.com>
8161
8162 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
8163 (C++98 Thread-Local Edits): New subsection.
8164
8165 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
8166 (ix86_arch): Set type to enum processor_type.
8167
8168 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
8169 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
8170
8171 2002-05-23 Jakub Jelinek <jakub@redhat.com>
8172
8173 * configure.in: Fix as version test for binutils 2.12.1 releases
8174 (without dates).
8175 * configure: Rebuilt.
8176
8177 2002-05-23 Richard Henderson <rth@redhat.com>
8178
8179 * config/i386/i386.c (get_pic_label_name): New.
8180 (load_pic_register): Remove.
8181 (output_set_got): New.
8182 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
8183 * config/i386/i386.md (UNSPEC_SET_GOT): New.
8184 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
8185 (prologue_set_got, prologue_get_pc): Remove.
8186 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
8187 (builtin_setjmp_receiver): Use gen_set_got.
8188 * config/i386/i386-protos.h: Update.
8189
8190 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8191
8192 * gcse.c (hash_expr): Do not use alias set for hashing.
8193
8194 2002-05-22 Kevin Buettner <kevinb@redhat.com>
8195
8196 * dbxout.c (dbxout_class_name_qualifiers): New function.
8197 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
8198
8199 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8200
8201 * cpperror.c (_cpp_begin_message): No special casing
8202 of CPP_FATAL_LIMIT.
8203 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
8204 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
8205 * cpplib.c (do_include_common): Use DL_ERROR.
8206 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
8207 (DL_ICE): Renumber.
8208 * fix-header.c (read_scan_file): Update.
8209
8210 2002-05-22 Richard Henderson <rth@redhat.com>
8211
8212 * config/i386/i386.c (ix86_expand_call): New function, extracted
8213 from md call patterns. Add pic_offset_table_rtx to
8214 CALL_INSN_FUNCTION_USAGE when needed.
8215 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
8216 (call_value_pop, call_value, untyped_call): Likewise.
8217 (call_exp, call_value_exp): Remove.
8218 * config/i386/i386-protos.h: Update.
8219
8220 2002-05-22 Richard Henderson <rth@redhat.com>
8221
8222 * varasm.c (default_section_type_flags): Check for VAR_DECL
8223 before using DECL_THREAD_LOCAL.
8224
8225 2002-05-22 David Edelsohn <edelsohn@gnu.org>
8226
8227 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
8228 (STARTFILE_SPEC): Delete PE crt0.o.
8229 * config/rs6000/aix51.h: Same.
8230 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
8231 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
8232 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
8233 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
8234 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
8235
8236 2002-05-22 Richard Henderson <rth@redhat.com>
8237
8238 * varasm.c (default_section_type_flags): Handle tls data and
8239 default sections.
8240 (default_unique_section): Handle tls sections.
8241
8242 2002-05-23 Alan Modra <amodra@bigpond.net.au>
8243
8244 * configure.in (CROSS): Define NATIVE_CROSS.
8245 * configure: Regenerate.
8246 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
8247 (startfile_prefix_spec): New var.
8248 (static_specs): Add startfile_prefix_spec.
8249 (do_spec_2): Split out from..
8250 (do_spec): ..here.
8251 (main): Process startfile_prefix_spec.
8252 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
8253 dynamic linker.
8254 (STARTFILE_PREFIX_SPEC): Define.
8255 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
8256 absolute paths.
8257
8258 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8259
8260 * cpperror.c: Fix formatting.
8261 * cppexp.c: Likewise.
8262 * cppfiles.c: Likewise.
8263 * cpphash.c: Likewise.
8264 * cpphash.h: Likewise.
8265 * cppinit.c: Likewise.
8266 * cpplex.c: Likewise.
8267 * cpplib.c: Likewise.
8268 * cppmacro.c: Likewise.
8269 * cppmain.c: Likewise.
8270 * cppspec.c: Likewise.
8271
8272 2002-05-22 Jakub Jelinek <jakub@redhat.com>
8273
8274 * combine.c (force_to_mode): Use gen_int_mode.
8275 Don't clear CONST_INT bits outside of mode.
8276
8277 2002-05-22 Richard Henderson <rth@redhat.com>
8278
8279 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
8280 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
8281
8282 2002-05-22 Jakub Jelinek <jakub@redhat.com>
8283
8284 PR c/6643
8285 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
8286 if DECL_SIZE_UNIT is INTEGER_CST.
8287
8288 2002-05-22 Richard Henderson <rth@redhat.com>
8289
8290 * flow.c (life_analysis): Delete broken reg_label check.
8291
8292 2002-05-22 Richard Henderson <rth@redhat.com>
8293
8294 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
8295 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
8296
8297 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
8298
8299 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
8300 (embed-bb.c): New rule.
8301 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
8302 * config/sh/embed_bb.c: Delete.
8303
8304 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
8305
8306 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
8307
8308 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8309
8310 * config/h8300/h8300.md (*andorqi3): New.
8311
8312 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
8313
8314 PR preprocessor/6517
8315 * Makefile.in: Update.
8316 * c-common.c (c_common_post_options): Add preprocessor
8317 errors to the error count.
8318 * c-lang.c (c_post_options): Kill.
8319 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8320 * hooks.h: Add header guards.
8321 * langhooks-def.h: Include hooks.h.
8322 (LANG_HOOKS_POST_OPTIONS): Update.
8323 * langhooks.h (struct lang_hooks): Update post_options.
8324 * toplev.c (parse_options_and_default_flags): Update.
8325 objc:
8326 * objc-lang.c (objc_post_options): Kill.
8327 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8328
8329 2002-05-21 Bruce Korb <bkorb@gnu.org>
8330
8331 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
8332 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
8333 * fixinc/fixincl.x: regen.
8334
8335 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
8336
8337 * cfgbuild.c: Fix formatting.
8338 * cfg.c: Likewise.
8339 * cfgcleanup.c: Likewise.
8340 * cfglayout.c: Likewise.
8341 * cfgloop.c: Likewise.
8342 * cfgrtl.c: Likewise.
8343
8344 2002-05-21 Richard Henderson <rth@redhat.com>
8345
8346 * c-common.h (enum rid): Add RID_THREAD.
8347 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
8348 (grokdeclarator): Grok __thread.
8349 * c-parse.in (reswords): Add __thread.
8350 (rid_to_yy): Add RID_THREAD.
8351
8352 * tree.h (DECL_THREAD_LOCAL): New.
8353 (struct tree_decl): Add thread_local_flag.
8354 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
8355 * tree.c (staticp): TLS variables are not static.
8356
8357 * target-def.h (TARGET_HAVE_TLS): New.
8358 * target.h (have_tls): New.
8359 * output.h (SECTION_TLS): New.
8360 * varasm.c (assemble_variable): TLS variables can't be common for now.
8361 (default_section_type_flags): Handle .tdata and .tbss.
8362 (default_elf_asm_named_section): Handle SECTION_TLS.
8363 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
8364
8365 * flags.h (flag_tls_default): Declare.
8366 * toplev.c (flag_tls_default): Define.
8367 (display_help): Display help for it.
8368 (decode_f_option): Set it.
8369
8370 * doc/extend.texi (Thread-Local): New node describing language-level
8371 thread-local storage.
8372 * doc/invoke.texi (-ftls-model): Document.
8373
8374 * fixinc/inclhack.def (thread_keyword): New.
8375 * fixinc/fixincl.x: Rebuild.
8376
8377 2002-05-21 Jeffrey A Law <law@redhat.com>
8378
8379 * optabs.c (expand_binop): For double-word integer multiplies,
8380 do not compute intermediate results into something that is
8381 not a register (such as a SUBREG or MEM).
8382
8383 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
8384 (ix86_sched_reorder): Make sure to initialize scheduling
8385 data even when there's only one insn in the ready queue.
8386
8387 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8388
8389 * genautomata.c (reserv_sets_hash_value): Fix a typo.
8390
8391 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8392
8393 * genautomata.c (reserv_sets_hash_value): Define hash_value as
8394 set_el_t. Transform the hash value into unsigned.
8395 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
8396 (transform_3): Add code to process `(A,B)+(D,E)'.
8397
8398 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
8399
8400 * reload1.c (do_output_reload): Run delete_output_reload
8401 only if optimizing.
8402
8403 2002-05-21 Roger Sayle <roger@eyesopen.com>
8404
8405 PR middle-end/6600
8406 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
8407 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
8408 (can_store_by_pieces): ... and here to limit the largest mode used.
8409 Add a comment to document this function.
8410
8411 2002-05-21 Richard Henderson <rth@redhat.com>
8412
8413 * flow.c (life_analysis): Fix test for deleted label.
8414
8415 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
8416
8417 * doc/tm.texi: Fix typo.
8418
8419 2002-05-21 Zack Weinberg <zack@codesourcery.com>
8420
8421 * c-common.c (c_common_init): Set options->unsigned_char from
8422 flag_signed_char.
8423 (cb_register_builtins): Define __STRICT_ANSI__ and
8424 __CHAR_UNSIGNED__ here...
8425 * cppinit.c (init_builtins): Not here.
8426 (cpp_create_reader): unsigned_char option defaults to 0, not
8427 !DEFAULT_SIGNED_CHAR.
8428 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
8429 and -funsigned-char.
8430
8431 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
8432 * cpphash.c (_cpp_init_hashtable): Don't set it.
8433 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
8434 directly. Clarify comment.
8435
8436 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8437
8438 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
8439 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
8440 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
8441 BASIC_BLOCK (n_basic_blocks - 1).
8442 * cfganal.c (can_fallthru, flow_call_edges_add,
8443 flow_preorder_transversal_compute): Too.
8444 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
8445 find_sub_basic_blocks): Too.
8446 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
8447 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
8448 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
8449 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
8450 * combine.c (this_basic_block): Type changed to basic_block.
8451 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
8452 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8453 get_last_value, distribute_notes, distribute_links): Too.
8454 * final.c (compute_alignments): Too.
8455 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
8456 * function.c (thread_prologue_and_epilogue_insns): Too.
8457 * gcse.c (compute_code_hoist_vbeinout): Too.
8458 * global.c (build_insn_chain): Too.
8459 * ifcvt.c (find_if_block, find_cond_trap): Too.
8460 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
8461 * regmove.c (regmove_optimize): Too.
8462 * resource.c (find_basic_block): Too.
8463 * sched-ebb.c (schedule_ebbs): Too.
8464 * ssa-dce.c (find_control_dependence, find_pdom): Too.
8465
8466 2002-05-21 Andreas Jaeger <aj@suse.de>
8467
8468 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
8469
8470 2002-05-21 Richard Henderson <rth@redhat.com>
8471
8472 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
8473 unspec names, not numbers.
8474
8475 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
8476
8477 * doc/sourcebuild.texi: Mention snapshot-README and
8478 snapshot-index.html as needing updating for new front ends.
8479
8480 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8481
8482 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
8483 disabling checking, and avoid multiple evaluation of RTX.
8484
8485 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
8486
8487 * bitmap.c (bitmap_find_bit): Return early if we have the correct
8488 element cached.
8489
8490 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8491
8492 * profile.c (gen_edge_profiler): Set alias set before the memory is
8493 used.
8494
8495 2002-05-20 David S. Miller <davem@redhat.com>
8496
8497 * cselib.c (max_value_regs): New.
8498 (cselib_lookup, cselib_invalidate_regno): Initialize it when
8499 adding new entries to the REG_VALUES table and we are dealing with
8500 a hard register.
8501 (clear_table): Initialize it.
8502 (cselib_invalidate_regno): Use it to determine which hard
8503 registers to scan when mode is not VOIDmode.
8504
8505 2002-05-20 Duraid Madina <duraid@fl.net.au>
8506
8507 * tradcpp.c (fixup_newlines): Use old-style function header.
8508
8509 2002-05-20 Krister Walfridsson <cato@df.lth.se>
8510
8511 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
8512
8513 2002-05-20 H.J. Lu (hjl@gnu.org)
8514
8515 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
8516
8517 * config/mips/mips.h (DFMODE_NAN): Defined.
8518 (SFMODE_NAN): Likewise.
8519
8520 2002-05-20 Dale Johannesen <dalej@apple.com>
8521
8522 * combine.c (cant_combine_insn_p): Back out my
8523 previous patch.
8524
8525 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8526
8527 * params.c: Fix formatting.
8528 * params.h: Likewise.
8529 * predict.c: Likewise.
8530 * prefix.c: Likewise.
8531 * print-rtl.c: Likewise.
8532 * print-tree.c: Likewise.
8533 * profile.c: Likewise.
8534
8535 2002-05-20 H.J. Lu (hjl@gnu.org)
8536
8537 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
8538
8539 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
8540
8541 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
8542 switches straight on to the assembler, do not abbreviate them.
8543 * config/arm/elf.h (ASM_SPEC): As above.
8544 * config/arm/semi.h (ASM_SPEC): As above.
8545 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
8546 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
8547 -mcpu=xscale on to the assembler by default.
8548 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
8549
8550 2002-05-20 Richard Henderson <rth@redhat.com>
8551
8552 * cse.c (canon_hash): Reorder do_not_record test. Always
8553 allow pic_offset_table_rtx.
8554
8555 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
8556
8557 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
8558 (expand_binop): Ditto (3 times).
8559
8560 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
8561
8562 * Makefile.in (distclean): Remove QMTest stuff.
8563 (QMTEST_PATH): New variable.
8564 (QMTESTFLAGS): Likewise.
8565 (QMTESTRUNFLAGS): Likewise.
8566 (QMTEST): Likewise.
8567 (QMTEST_GPP_TESTS): Likewise.
8568 (QMTEST_DIR): Likewise.
8569 (QMTEST_DIR/context): New target.
8570 (qmtest-g++): Likeise.
8571 (qmtest-gui): Likewise.
8572 (QMTEST_DIR/gpp-expected.qmr): Likewise.
8573
8574 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
8575
8576 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
8577 an altivec register if TARGET_ALTIVEC.
8578
8579 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
8580 to ALTIVEC_VECTOR_MODE.
8581 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
8582 (rs6000_va_arg): Vectors may go in registers if they are not
8583 altivec vectors.
8584
8585 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
8586
8587 * protoize.c: Fix formatting.
8588
8589 2002-05-19 Richard Henderson <rth@redhat.com>
8590
8591 * gensupport.c (init_include_reader): Merge into ...
8592 (process_include): ... here. Simplify composite path creation.
8593 Plug memory leaks. Fix file/line number tracking. Do not
8594 process_define_cond_exec. Return void.
8595 (process_rtx): Don't check process_include return value.
8596
8597 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8598
8599 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
8600 fields.
8601 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8602 traversing basic block chain.
8603 (create_basic_block_structure, create_basic_block): Declaration changed.
8604 (link_block, unlink_block): Declare.
8605 * cfg.c (entry_exit_blocks): Initialize new fields.
8606 (link_block, unlink_block): New.
8607 (expunge_block_nocompact): Unlink basic block.
8608 (dump_flow_info): Print prev_bb/next_bb fields.
8609 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
8610 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
8611 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
8612 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8613 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
8614 (verify_flow_info): Check that list agrees with numbering.
8615
8616 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
8617
8618 * c-common.c (preprocessing_asm): New macro.
8619 * c-lex.h (builtin_define, builtin_assert): Use pfile.
8620 doc:
8621 * tm.texi: Update.
8622 config/alpha:
8623 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
8624 (CPP_SPEC): Simplify.
8625 (TARGET_CPU_CPP_BUILTINS): Update.
8626 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
8627 (CPP_SPEC): Simplify.
8628 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
8629 (TARGET_OS_CPP_BUILTINS): Update.
8630 * osf.h (CPP_XFLOAT_SPEC): Kill.
8631 (TARGET_OS_CPP_BUILTINS): Update.
8632 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
8633 * osf5.h (CPP_XFLOAT_SPEC): Kill.
8634 * vms.h (CPP_SUBTARGET_SPEC): Kill.
8635 (TARGET_OS_CPP_BUILTINS): Update.
8636
8637 2002-05-19 Richard Henderson <rth@redhat.com>
8638
8639 * varasm.c (default_binds_local_p): Fix typo.
8640
8641 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
8642
8643 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
8644 CONST_INT operand to the correct mode after adding 1 to it.
8645
8646 2002-05-19 Mark Mitchell <mark@codesourcery.com>
8647
8648 * config.gcc (powerpc-wrs-windiss*): New target.
8649
8650 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8651
8652 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
8653 (ashrdi3): Use it.
8654
8655 2002-05-18 Mark Mitchell <mark@codesourcery.com>
8656
8657 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
8658 alphasort.
8659 * config.in: Regenerated.
8660 * configure: Regenerated.
8661
8662 2002-05-19 Richard Henderson <rth@redhat.com>
8663
8664 * target-def.h (TARGET_BINDS_LOCAL_P): New.
8665 * target.h (struct gcc_target): Move boolean fields to the end.
8666 Add binds_local_p.
8667 * varasm.c (default_binds_local_p): New.
8668 * output.h: Declare it.
8669
8670 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
8671 * config/cris/cris.c (cris_encode_section_info): Likewise.
8672 * config/i386/i386.c (i386_encode_section_info): Likewise.
8673 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
8674 * config/sh/sh.c (sh_encode_section_info): Likewise.
8675
8676 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
8677 (TARGET_BINDS_LOCAL_P): New.
8678
8679 2002-05-19 Richard Henderson <rth@redhat.com>
8680
8681 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
8682 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
8683 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
8684
8685 * toplev.c (display_help): Kill -a -ax help.
8686
8687 * config/1750a/1750a.h, config/alpha/alpha.h,
8688 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
8689 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
8690 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
8691 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
8692
8693 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
8694 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
8695
8696 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
8697 (ix86_output_function_block_profiler): Kill.
8698 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
8699 (m68hc11_function_block_profiler): Kill.
8700 * config/m68hc11/m68hc11-protos.h: Update.
8701 * config/m88k/m88k.c (output_block_profiler): Kill.
8702 (output_function_block_profiler): Kill.
8703 * config/m88k/m88k-protos.h: Update.
8704
8705 2002-05-19 Richard Henderson <rth@redhat.com>
8706
8707 * system.h (STRIP_NAME_ENCODING): Poison it.
8708 * output.h (STRIP_NAME_ENCODING): Remove.
8709 (default_strip_name_encoding): Declare.
8710 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
8711 * target.h (strip_name_encoding): New.
8712 * varasm.c (default_strip_name_encoding): New.
8713
8714 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
8715 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
8716 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
8717 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
8718 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
8719 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
8720 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
8721 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
8722 config/v850/v850.h: Use the hook, not the macro.
8723
8724 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8725 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
8726 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
8727 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
8728 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
8729 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
8730 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8731 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
8732 config/v850/v850.c, config/v850/v850.h:
8733 Move STRIP_NAME_ENCODING to out-of-line function and add
8734 TARGET_STRIP_NAME_ENCODING.
8735
8736 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
8737 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
8738 with TARGET_STRIP_NAME_ENCODING referencing existing function;
8739 make function static.
8740
8741 * xcoffout.c: Include target.h
8742 * Makefile.in (xcoffout.o): Update.
8743
8744 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
8745 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
8746 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
8747 reloc argument unused.
8748 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
8749
8750 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
8751 STRIP_NAME_ENCODING docs.
8752
8753 2002-05-19 Andreas Jaeger <aj@suse.de>
8754
8755 * gengenrtl.c: Add prototype for excluded_rtx.
8756
8757 * real.h: Add prototype for exact_real_truncate.
8758
8759 2002-05-18 Richard Henderson <rth@redhat.com>
8760
8761 * system.h (ENCODE_SECTION_INFO): Poison it.
8762 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
8763 * target.h (encode_section_info): New.
8764 * varasm.c (make_decl_rtl, output_constant_def): Use it.
8765 * hooks.c (hook_tree_int_void): New.
8766 * hooks.h: Declare it.
8767
8768 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8769 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
8770 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
8771 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
8772 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
8773 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
8774 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
8775 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
8776 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8777 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8778 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
8779 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
8780 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
8781 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
8782 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
8783 referencing existing function. Make function static.
8784
8785 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8786 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
8787 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
8788 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
8789 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8790 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
8791 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
8792 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
8793 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
8794 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8795 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
8796 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
8797 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
8798 Move ENCODE_SECTION_INFO to out-of-line function and add
8799 TARGET_ENCODE_SECTION_INFO.
8800
8801 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
8802 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8803
8804 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
8805 from SUBTARGET_*
8806 (switch_to_section): Replace in_rdata case with in_readonly_data.
8807
8808 * config/h8300/h8300.c (h8300_encode_label): Make static.
8809 * config/h8300/h8300-protos.h: Update.
8810
8811 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
8812 from rs6000_encode_section_info; make static.
8813 (rs6000_xcoff_encode_section_info): New.
8814
8815 * config/v850/v850.c (v850_encode_data_area): Make static.
8816 * config/v850/v850-protos.h: Update.
8817
8818 * config/vax/vax.c: Include flags.h.
8819 (vms_select_section): Fix typo.
8820
8821 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
8822 ENCODE_SECTION_INFO docs.
8823
8824 2002-05-18 Richard Henderson <rth@redhat.com>
8825
8826 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
8827 REGISTER_TARGET_PRAGMAS.
8828 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
8829
8830 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
8831
8832 2002-05-18 Richard Henderson <rth@redhat.com>
8833
8834 * system.h (SELECT_RTX_SECTION): Poison.
8835 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
8836 * target.h (select_rtx_section): New.
8837 * varasm.c (output_constant_pool): Use it.
8838 (default_select_rtx_section, default_elf_select_rtx_section): New.
8839 * output.h: Declare them.
8840
8841 * config/darwin.h (SELECT_RTX_SECTION): Move ...
8842 * config/darwin.c (machopic_select_rtx_section): ... here.
8843 * config/darwin-protos.h: Update.
8844
8845 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
8846 * config/nextstep.c (machopic_select_rtx_section): ... here.
8847 (nextstep_select_section): Rename variable to avoid macro clash.
8848 * config/nextstep-protos.h: Update.
8849
8850 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
8851 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
8852 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8853 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
8854 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
8855 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8856 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
8857 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
8858 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
8859 (SELECT_RTX_SECTION): Remove.
8860
8861 * config/darwin.h, config/elfos.h, config/nextstep.h,
8862 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
8863 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
8864 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
8865 config/sparc/lynx.h, config/xtensa/xtensa.c
8866 (TARGET_ASM_SELECT_RTX_SECTION): New.
8867
8868 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
8869 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
8870 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
8871 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
8872 (ia64_aix_select_rtx_section): New.
8873 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
8874 redefining.
8875 * config/mips/mips.c (mips_select_rtx_section): Make static.
8876 Support ELF SHF_MERGE features.
8877 * config/mips/mips-protos.h: Update.
8878 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
8879 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
8880 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
8881 make static, fall back to default_elf_select_rtx_section.
8882 * config/rs6000/rs6000-protos.h: Update.
8883 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
8884 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
8885 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
8886 * config/romp/romp.c (romp_select_rtx_section): New.
8887 * config/s390/s390.c (s390_select_rtx_section): New.
8888 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
8889 declarations before target macro definition.
8890 (xtensa_emit_call): Use static buffer.
8891 (xtensa_select_rtx_section): New.
8892 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8893 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8894 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8895
8896 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8897 SELECT_RTX_SECTION docs.
8898
8899 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8900
8901 * i386.md (movsi/movdi): Fix template.
8902 (sse2 patterns): Set attributes consistently.
8903
8904 * i386.md (pushqi2, ashrqi_*): Fix constraint.
8905
8906 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
8907
8908 * optabs.c (complex_part_zero_p): New.
8909 * (expand_cmplxdiv_straight): Use it.
8910 * (expand_cmplxdiv_wide): Ditto.
8911 * (expand_binop): Ditto.
8912
8913 2002-05-18 Richard Henderson <rth@redhat.com>
8914
8915 * final.c (HAVE_READONLY_DATA_SECTION): New.
8916 (shorten_branches): Use it instead of ifdefs.
8917 * varasm.c (enum in_section): Add in_readonly_data.
8918 (text_section, data_section): Tidy.
8919 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8920
8921 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8922 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8923 (READONLY_DATA_SECTION): Don't undef.
8924
8925 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8926 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8927 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8928
8929 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8930 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8931 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8932 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8933
8934 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8935 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8936 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8937 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8938 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8939 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8940 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8941 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8942 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8943
8944 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8945 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8946 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8947 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8948 config/pa/pa64-hpux.h, config/sparc/litecoff.h
8949 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8950
8951 * config/elfos.h, config/netware.h, config/svr3.h,
8952 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8953 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8954 config/h8300/h8300.h, config/i386/i386-interix.h,
8955 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8956 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8957
8958 * config/elfos.h, config/netware.h, config/svr3.h,
8959 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8960 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8961 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8962 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8963
8964 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8965 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8966 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8967 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8968 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8969 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8970 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8971 config/rs6000/sysv4.h, config/v850/v850.h
8972 (EXTRA_SECTIONS): Remove in_const/in_rdata.
8973 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8974
8975 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8976 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8977 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8978 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8979 * config/alpha/alpha.c (alpha_start_function): Likewise.
8980 (alpha_write_linkage): Likewise.
8981 * config/m32r/m32r.c (m32r_select_section): Likewise.
8982 * config/m88k/m88k.c (m88k_select_section): Likewise.
8983 * config/mips/mips.c (mips_select_rtx_section): Likewise.
8984 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8985 (rs6000_elf_select_section): Likewise.
8986 * config/v850/v850.c (v850_select_section): Likewise.
8987
8988 * config/1750a/1750a.h, config/i860/sysv3.h
8989 (READONLY_DATA_SECTION_ASM_OP): New.
8990 READONLY_DATA_SECTION_ASM_OP.
8991 * config/i386/interix.c, config/i386/winnt.c
8992 (i386_pe_unique_section): Always use .rdata prefix.
8993 * config/pa/som.h (readonly_data): Always switch to read-only section.
8994 (READONLY_DATA_SECTION): Predicate on flag_pic.
8995 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8996 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8997 (READONLY_DATA_SECTION): Update.
8998
8999 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
9000
9001 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
9002 is used without -Wformat.
9003 * c-common.h (warn_format_zero_length): Declare extern.
9004 * c-decl.c (warn_options): Add "format-zero-length".
9005 * c-format.c (warn_format_zero_length): Declare.
9006 (set_Wformat): Set warn_format_zero_length for -Wformat.
9007 (check_format_info): Only warn about zero-length formats if
9008 warn_format_zero_length is true. Include the format type
9009 name in the warning message.
9010 * doc/invoke.texi: Document -Wformat-zero-length.
9011 * testsuite/gcc.dg/format/zero-length-1.c: New test.
9012
9013 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
9014
9015 * timevar.c: Fix formatting.
9016 * tlink.c: Likewise.
9017 * toplev.c: Likewise.
9018 * tree-dump.c: Likewise.
9019 * tree-inline.c: Likewise.
9020
9021 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
9022
9023 * cppinit.c (cpp_post_options): If preprocessed, turn off
9024 traditional. If traditional, turn off column numbers.
9025 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
9026 * cpptrad.c (handle_newline): Update line_base.
9027 (skip_comment): Handle -Wcomment.
9028
9029 2002-05-17 Zack Weinberg <zack@codesourcery.com>
9030
9031 * cppinit.c (struct builtin): Remove unused fields.
9032 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
9033 (operator_array): New - was second half of builtin_array.
9034 (init_builtins): Simplify loop over builtin_array/operator_array.
9035
9036 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
9037
9038 * defaults.h (UNIQUE_SECTION): Remove.
9039 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
9040
9041 2002-05-17 Richard Henderson <rth@redhat.com>
9042
9043 * expr.c (init_expr_once): Don't use start/end_sequence.
9044 Use rtx_alloc instead of emit_insn.
9045 * toplev.c (lang_dependent_init): Run init_expr_once here ...
9046 (lang_independent_init): ... not here.
9047
9048 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9049
9050 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
9051
9052 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
9053
9054 * config/avr/avr.c (avr_regs_to_save): New function. Also check
9055 for fixed registers, possibly used for global register variables.
9056 (initial_elimination_offset, avr_output_function_prologue,
9057 avr_output_function_epilogue): Move common code to avr_regs_to_save.
9058
9059 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
9060
9061 * Makefile.in: Update for cpptrad.c.
9062 * cpphash.h (struct cpp_buffer): New members for buffer
9063 overlays.
9064 (struct cpp_reader): New members for traditional output.
9065 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
9066 * cppinit.c (cpp_create_reader): Set trad_line.
9067 (cpp_destroy): Free trad_out_base if used.
9068 (cpp_read_main_file): Overlay an empty buffer if traditional.
9069 (cpp_finish_options): Don't do builtins.
9070 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
9071 (cpp_handle_option): Handle it.
9072 * cpplex.c (continue_after_nul): New.
9073 (_cpp_lex_direct): Use handle_nul.
9074 * cpplib.h (struct cpp_options): New traditional option.
9075 * cpptrad.c: New file.
9076
9077 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
9078
9079 * c-common.c (c_common_init_options): Use C89 for Objective-C,
9080 and set the options flag.
9081 * cppinit.c (lang_flags): Remove objc.
9082 (lang_defaults): Remove OBJC and OBJCXX.
9083 (set_lang): Update.
9084 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
9085 (cpp_handle_option): Remove -+ and -lang-objc++.
9086 For ObjC, just set a flag.
9087 (print_help): Update.
9088 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
9089
9090 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9091
9092 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
9093 bootstrap with -mips3.
9094
9095 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
9096
9097 * final.c: Fix formatting.
9098 * fix-header.c: Likewise.
9099 * flow.c: Likewise.
9100 * fold-const.c: Likewise.
9101 * function.c: Likewise.
9102
9103 2002-05-17 David S. Miller <davem@redhat.com>
9104
9105 PR c/6689, PR optimization/6615
9106 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
9107 and make it a pointer to rtx. Update comments.
9108 (update_equiv_regs): When scanning for equivalences, record
9109 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
9110 it while making the equiv replacements.
9111
9112 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9113
9114 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
9115
9116 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
9117
9118 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
9119 when encoding visibility into SYMBOL_REF_FLAG.
9120
9121 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
9122
9123 * expr.c (force_operand): Fix reversed move.
9124
9125 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
9126
9127 * doc/install.texi (Testing): Mention two common DejaGnu warnings
9128 that can be ignored.
9129
9130 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9131
9132 * doc/install.texi (Final install): Recommend to install into a
9133 "clean" target directory.
9134
9135 2002-05-17 Richard Henderson <rth@redhat.com>
9136
9137 * config/ia64/ia64.md: Use braced strings instead of quoted strings
9138 for code blocks. Tidy whitespace.
9139
9140 2002-05-17 Richard Henderson <rth@redhat.com>
9141
9142 * hooks.c (hook_tree_bool_false): New.
9143 * hooks.h: Declare it.
9144 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
9145 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
9146 * target.h (select_section, unique_section): New.
9147 (in_small_data_p): New.
9148 * varasm.c (resolve_unique_section): Use hooks instead of macros.
9149 (variable_section, output_constant_def_contents): Likewise.
9150 (default_select_section, default_unique_section): New.
9151 (categorize_decl_for_section, default_elf_select_section): New.
9152 * output.h: Declare them.
9153
9154 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
9155 (TARGET_ASM_SELECT_SECTION): New.
9156 (SELECT_SECTION): Move ...
9157 * config/darwin.c (machopic_select_section): ... here.
9158 * config/darwin-protos.h: Update.
9159
9160 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
9161 (SELECT_SECTION): Move ...
9162 * config/nextstep.c (nextstep_select_section): ... here.
9163 * config/nextstep-protos.h: Update.
9164
9165 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
9166 (TARGET_ASM_SELECT_SECTION): New.
9167 * config/svr3.h (SELECT_SECTION): Remove.
9168
9169 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
9170 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
9171 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
9172 (alpha_encode_section_info): Use it.
9173 * config/alpha/alpha-protos.h: Update.
9174 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
9175 (SELECT_SECTION, UNIQUE_SECTION): Remove.
9176 (TARGET_ASM_SELECT_SECTION): New.
9177 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
9178
9179 * config/arm/pe.h (UNIQUE_SECTION): Remove.
9180 (TARGET_ASM_UNIQUE_SECTION): New.
9181
9182 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
9183 (avr_unique_section): Rename from unique_section; make static.
9184 * config/avr/avr-protos.h: Update.
9185 * config/avr/avr.h (UNIQUE_SECTION): Remove.
9186
9187 * config/c4x/c4x.h (SELECT_SECTION): Remove.
9188
9189 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
9190 (TARGET_ASM_UNIQUE_SECTION): New.
9191 * config/i386/i386-interix.h: Likewise.
9192 * config/i386/win32.h: Likewise.
9193 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
9194 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
9195 * config/i386/sco5.h (SELECT_SECTION): Remove.
9196 (TARGET_ASM_SELECT_SECTION): New.
9197 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
9198
9199 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
9200 instead of SELECT_SECTION.
9201 * config/m68k/dpx2.h: Likewise.
9202 * config/rs6000/lynx.h: Likewise.
9203
9204 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9205 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
9206 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
9207 (ia64_in_small_data_p): New.
9208 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
9209 (ia64_aix_select_section, ia64_aix_unique_section): New.
9210 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
9211 (SELECT_SECTION, UNIQUE_SECTION): Remove.
9212
9213 * config/m32r/m32r.h (SELECT_SECTION): Remove.
9214 (TARGET_ASM_SELECT_SECTION): New.
9215 * config/m32r/m32r.c (m32r_select_section): Take align argument.
9216 * config/m32r/m32r-protos.h: Update.
9217
9218 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
9219 (SELECT_SECTION): Move ...
9220 * config/m88k/m88k.c (m88k_select_section): ... here.
9221
9222 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
9223 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
9224 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
9225 (mcore_unique_section): Make static.
9226 * config/mcore/mcore-protos.h: Update.
9227
9228 * config/mips/elf.h (UNIQUE_SECTION): Remove.
9229 (TARGET_ASM_UNIQUE_SECTION): New.
9230 * config/mips/elf64.h: Likewise.
9231 * config/mips/iris6gld.h: Likewise.
9232 * config/mips/linux.h: Likewise.
9233 * config/mips/mips-protos.h: Update.
9234 * config/mips/mips.c (mips_select_section): Add align argument.
9235 * config/mips/mips.h (SELECT_SECTION): Remove.
9236 (TARGET_ASM_SELECT_SECTION): New.
9237
9238 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9239 * config/mmix/mmix.c (mmix_select_section): Remove.
9240 (mmix_unique_section): Remove.
9241 * config/mmix/mmix-protos.h: Update.
9242
9243 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
9244 (SELECT_SECTION): Move ...
9245 * config/pa/pa.c (pa_select_section): ... here.
9246 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
9247
9248 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
9249 from rs6000_select_section and make static.
9250 (rs6000_elf_unique_section): Similarly.
9251 (rs6000_xcoff_select_section): From xcoff.h.
9252 (rs6000_xcoff_unique_section): Likewise.
9253 * config/rs6000/rs6000-protos.h: Update.
9254 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9255 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
9256 * config/rs6000/xcoff.h: Likewise.
9257
9258 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
9259 (SELECT_SECTION): Move ...
9260 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
9261
9262 * config/v850/v850.h (SELECT_SECTION): Move ...
9263 * config/v850/v850.c (v850_select_section): ... here.
9264 (TARGET_ASM_SELECT_SECTION): New.
9265
9266 * config/vax/vms.h (SELECT_SECTION): Move ...
9267 * config/vax/vax.c (vms_select_section): ... here.
9268 (TARGET_ASM_SELECT_SECTION): New.
9269
9270 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
9271 for the target hooks.
9272
9273 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
9274
9275 * config/arm/arm.c (emit_multi_reg_push): Do not set
9276 RTX_FRAME_RELATED_P on the SEQUENCE.
9277
9278 2002-05-16 Richard Henderson <rth@redhat.com>
9279
9280 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
9281 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
9282
9283 2002-05-16 Richard Henderson <rth@redhat.com>
9284
9285 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
9286
9287 * config/ia64/ia64.c (saveable_obstack): Do not declare.
9288
9289 2002-05-16 Richard Henderson <rth@redhat.com>
9290
9291 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
9292 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
9293 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
9294 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
9295 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
9296 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
9297 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
9298 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
9299 Revert "Basic block renumbering removal", and two followup patches.
9300
9301 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9302
9303 * lcm.c (optimize_mode_switching): Revert previous change.
9304
9305 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9306
9307 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
9308 with only extant block numbers.
9309
9310 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9311
9312 * lcm.c (optimize_mode_switching): Fix typo.
9313
9314 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9315
9316 * flow.c (calculate_global_regs_live): Queue blocks in program order.
9317
9318 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9319
9320 * doc/install.texi (Configuration): Document PWDCMD.
9321
9322 2002-05-16 Dale Johannesen <dalej@apple.com>
9323
9324 * combine.c (cant_combine_insn_p): Reenable combinations
9325 involving hard regs unless CLASS_LIKELY_SPILLED_P.
9326
9327 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9328
9329 * c-common.c (cb_register_builtins): Handle more built-ins
9330 here rather than in gcc.c specs.
9331 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
9332 (cpp_options): Pass -O flags even when only preprocessing.
9333 * toplev.c (set_fast_math_flags): New prototype.
9334 (fast_math_flags_set_p): New.
9335 (set_no_fast_math_flags): Remove.
9336 (decode_f_option): Update.
9337 * toplev.h (set_fast_math_flags): Update.
9338 (fast_math_flags_set_p): New.
9339 (set_no_fast_math_flags): Remove.
9340 config:
9341 * c4x/c4x.c (c4x_override_options): Update.
9342
9343 2002-05-16 Zack Weinberg <zack@codesourcery.com>
9344
9345 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
9346 Default-define here.
9347 (builtin_define_with_value): Can now wrap the expansion in
9348 quotation marks if such is wanted.
9349 (cb_register_builtins): Update calls to builtin_define_with_value.
9350 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
9351 here.
9352 (c_common_init): Set options->stdc_0_in_system_headers.
9353 * c-lex.h: Update prototype of builtin_define_with_value.
9354 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
9355 and REGISTER_PREFIX.
9356
9357 * cppinit.c (VERS, ULP, C, X): Kill.
9358 (builtin_array): Remove entries for __VERSION__,
9359 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
9360 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
9361 a constant.
9362 (init_builtins): Kill off a bunch of now-dead code.
9363 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
9364 -fno-leading-underscore.
9365 (cpp_handle_option): Remove code to set user_label_prefix.
9366 (cpp_post_options): Likewise.
9367
9368 * cpplib.h (struct cpp_options): Remove user_label_prefix.
9369 (stdc_0_in_system_headers): New.
9370 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
9371 stdc_0_in_system_headers) too to decide the value of __STDC__.
9372
9373 * tradcpp.c (user_label_prefix): Kill.
9374 (main): Remove code handling -f(no-)leading-underscore.
9375 (initialize_builtins): Don't define __REGISTER_PREFIX__
9376 or __USER_LABEL_PREFIX__.
9377 (install_value): Wrap compound statement in dummy loop so the
9378 macro works properly in an if statement.
9379
9380
9381 2002-05-16 Janis Johnson <janis187@us.ibm.com>
9382
9383 * loop.h (struct loop_info): Add member has_prefetch.
9384 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
9385 (prescan_loop): Initialize has_prefetch.
9386 (struct prefetch_info): Change prefetch_in_loop and
9387 prefetch_before_loop from bit fields to ints.
9388 (emit_prefetch_instructions): Several small fixes.
9389 (check_dbra_loop): Don't reverse loop that uses prefetch.
9390
9391 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9392
9393 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
9394 * configure.in: Likewise.
9395 * fixinc/check.tpl: Likewise.
9396 * fixinc/fixinc.dgux: Likewise.
9397 * fixinc/fixinc.svr4: Likewise.
9398 * fixinc/fixinc.winnt: Likewise.
9399 * fixinc/fixincl.sh: Likewise.
9400 * fixproto: Likewise.
9401 * configure: Regenerate.
9402
9403 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9404
9405 Basic block renumbering removal:
9406 * basic_block.h (struct basic_block_def): Renamed index to sindex,
9407 added prev_bb and next_bb fields.
9408 (n_basic_blocks): Renamed to num_basic_blocks.
9409 (last_basic_block): New, index of last basic block.
9410 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9411 traversing basic block chain.
9412 (BLOCK_NUM): index -> sindex.
9413 (create_basic_block_structure, create_basic_block): Declaration changed.
9414 (debug_num2bb): Declare.
9415 (expunge_block_nocompact): Declaration removed.
9416 (link_block, unlink_block, compact_blocks): Declare.
9417 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
9418 * cfg.c (entry_exit_blocks): Initialize new fields.
9419 (clear_edges, alloc_block, expunge_block, cached_make_edge,
9420 redirect_edge_pred, dump_flow_info, dump_edge_info,
9421 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
9422 free_aux_for_edges): Modified.
9423 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
9424 (expunge_block_nocompact): Removed.
9425 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
9426 find_unreachable_blocks, create_edge_list, print_edge_list,
9427 verify_edge_list, flow_edge_list_print, remove_fake_successors,
9428 remove_fake_edges, flow_reverse_top_sort_order_compute,
9429 flow_depth_first_order_compute, flow_preorder_transversal_compute,
9430 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
9431 flow_dfs_compute_reverse_execute): Modified.
9432 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
9433 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
9434 Modified.
9435 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9436 merge_blocks_move_predecessor_nojumps,
9437 merge_blocks_move_successor_nojumps, merge_blocks,
9438 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
9439 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
9440 * cfglayout.c (skip_insns_after_block, label_for_bb,
9441 record_effective_endpoints, scope_to_insns_finalize,
9442 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
9443 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
9444 cfg_layout_duplicate_bb): Modified.
9445 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
9446 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
9447 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
9448 flow_loops_find, flow_loop_outside_edge_p): Modified.
9449 * cfgrtl.c (create_basic_block_structure, create_basic_block,
9450 flow_delete_block, compute_bb_for_insn, split_block,
9451 try_redirect_by_replacing_jump, redirect_edge_and_branch,
9452 force_nonfallthru_and_redirect, tidy_fallthru_edge,
9453 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
9454 commit_edge_insertions, commit_edge_insertions_watch_calls,
9455 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
9456 purge_all_dead_edges): Modified.
9457 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
9458 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
9459 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
9460 Modified.
9461 * conflict.c (conflict_graph_compute): Modified.
9462 * df.c (FOR_ALL_BBS): Removed.
9463 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
9464 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
9465 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
9466 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
9467 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
9468 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
9469 * final.c (compute_alignments, final_scan_insn): Modified.
9470 * flow.c (verify_local_live_at_start, update_life_info,
9471 update_life_info_in_dirty_blocks, free_basic_block_vars,
9472 delete_noop_moves, calculate_global_regs_live,
9473 initialize_uninitialized_subregs, allocate_bb_life_data,
9474 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
9475 mark_used_reg, count_or_remove_death_notes): Modified.
9476 * function.c (thread_prologue_and_epilogue_insns): Modified.
9477 * gcse.c (struct null_pointer_info): Change typo of current_block
9478 to basic_block.
9479 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
9480 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
9481 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
9482 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
9483 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
9484 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
9485 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
9486 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
9487 pre_delete, one_pre_gcse_pass, compute_transpout,
9488 invalidate_nonnull_info, delete_null_pointer_checks_1,
9489 free_code_hoist_mem, compute_code_hoist_vbeinout,
9490 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
9491 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
9492 compute_store_table, build_store_vectors, insert_insn_start_bb,
9493 insert_store, replace_store_insn, free_store_memory, store_motion):
9494 Modified.
9495 * global.c (global_alloc, global_conflicts, mark_elimination,
9496 build_insn_chain): Modified.
9497 * graph.c (print_rtl_graph_with_bb): Modified.
9498 * haifa-sched.c (sched_init): Modified.
9499 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
9500 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
9501 if_convert): Modified.
9502 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
9503 compute_insert_delete, pre_edge_lcm, compute_available,
9504 compute_farthest, compute_nearerout, compute_rev_insert_delete,
9505 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
9506 Modified.
9507 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
9508 * loop.c (loop_dump_aux): Modified.
9509 * predict.c (combine_predictions_for_insn, estimate_probability,
9510 last_basic_block_p, process_note_prediction, process_note_predictions,
9511 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
9512 expensive_function_p, estimate_bb_frequencies,
9513 compute_function_frequency): Modified.
9514 * print-rtl.c (print_rtx): Modified.
9515 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
9516 get_exec_counts, compute_branch_probabilities, compute_checksum,
9517 branch_prob, find_spanning_tree): Modified.
9518 * recog.c (split_all_insns, peephole2_optimize): Modified.
9519 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
9520 convert_regs_1, convert_regs_2, convert_regs): Modified.
9521 * regclass.c (scan_one_insn, regclass): Modified.
9522 * regmove.c (mark_flags_life_zones, regmove_optimize,
9523 combine_stack_adjustments): Modified.
9524 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
9525 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
9526 * reorg.c (dbr_schedule): Modified.
9527 * resource.c (find_basic_block, init_resource_info): Modified.
9528 * sbitmap.c (sbitmap_intersection_of_succs,
9529 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
9530 sbitmap_union_of_preds): Modified.
9531 * sched-deps.c (init_dependency_caches): Modified.
9532 * sched-ebb.c (schedule_ebbs): Modified.
9533 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
9534 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
9535 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
9536 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
9537 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
9538 ssa_const_prop): Modified.
9539 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
9540 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
9541 * ssa.c (remove_phi_alternative, find_evaluations,
9542 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
9543 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
9544 make_regs_equivalent_over_bad_edges,
9545 make_equivalent_phi_alternatives_equival,
9546 compute_conservative_reg_partition,
9547 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
9548 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
9549 Modified.
9550
9551 2002-05-16 Mark Mitchell <mark@codesourcery.com>
9552
9553 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
9554
9555 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
9556
9557 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
9558 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9559 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
9560 calling CONSTANT_POOL_ADDRESS_P.
9561 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
9562 to decide whether to define __arm__ or __thumb.
9563 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
9564 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9565
9566 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9567
9568 * config/arc/arc.h (CPP_PREDEFINES): Remove.
9569 (CPP_SPEC): Update.
9570 (TARGET_CPU_CPP_BUILTINS): New.
9571
9572 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9573
9574 * cpphash.h (cpp_macro): Move here, and make expansion a union.
9575 * cppmacro.c (cpp_macro): Remove.
9576 (enter_macro_context, replace_args, warn_of_redefinition,
9577 _cpp_create_definition, cpp_macro_definition): Update.
9578
9579 2002-05-16 Jason Merrill <jason@redhat.com>
9580
9581 * config/mips/mips.c (mips_output_external): Don't do sdata
9582 optimization for a variable with DECL_COMDAT set.
9583
9584 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9585
9586 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
9587 Cleanups for accepting modifiers on pointers.
9588 Fix predicate typos.
9589 Allow long pointers as well as int pointers.
9590
9591 2002-05-15 Richard Henderson <rth@redhat.com>
9592
9593 * varasm.c (merge_weak): Remove special case for extern and common.
9594
9595 2002-05-15 Matt Hiller <hiller@redhat.com>
9596
9597 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
9598 XFAILing.
9599 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
9600 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
9601 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
9602 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
9603 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
9604 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
9605
9606 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9607
9608 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
9609
9610 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9611
9612 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
9613 ("altivec_mfvscr"): Read from VSCR.
9614
9615 Add vscr sets for the following insns: altivec_vctuxs,
9616 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
9617 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
9618 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
9619 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
9620 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
9621 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
9622 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
9623 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
9624 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
9625 altivec_vsum2sws, altivec_vsumsws.
9626
9627 * config/rs6000/rs6000.h: Add VSCR fixed register.
9628 (CALL_REALLY_USED_REGISTERS): Add vscr.
9629 (CALL_USED_REGISTERS): Same.
9630 (FIXED_REGISTERS): Same.
9631 (REG_ALLOC_ORDER): Same.
9632 (reg_class): Add VSCR_REGS.
9633 (REG_CLASS_NAMES): Same.
9634 (REG_CLASS_CONTENTS): Same.
9635 (VSCR_REGNO): New.
9636 (REGISTER_NAMES): Add vscr.
9637 (DEBUG_REGISTER_NAMES): Same.
9638 (ADDITIONAL_REGISTER_NAMES): Same.
9639 (FIRST_PSEUDO_REGISTER): Increment.
9640 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
9641
9642 2002-05-15 Jakub Jelinek <jakub@redhat.com>
9643
9644 * fold-const.c (fold): Fix a typo.
9645
9646 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
9647
9648 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
9649 comparison against the highest or lowest integer value before
9650 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
9651 transformation and that of an unsigned comparison against 0
9652 right after.
9653
9654 2002-05-15 Richard Henderson <rth@redhat.com>
9655
9656 * varasm.c (merge_weak): Error for any weakening after definition.
9657 Adjust weakening after use warning to catch more cases.
9658 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
9659 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
9660
9661 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
9662
9663 * invoke.texi (-malign-double): Re-add lost warning.
9664
9665 * i386-protos.h (x86_output_mi_thunk): Declare.
9666 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
9667 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
9668
9669 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
9670 when flag_asynchronous_unwind_tables is set.
9671
9672 * flags.h (flag_reorder_functions): Declare.
9673 * function.c (prepare_function_start): Initialize frequnecy.
9674 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
9675 * Makefile.in (predict.o): Add dependency on target.h and params.h
9676 * defaults.h (HOT_TEXT_SECTION_NAME,
9677 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
9678 * predict.c (choose_function_section): New function.
9679 (estimate_bb_frequencies): Use it.
9680 * toplev.c (flag_reorder_functions): New global variable.
9681 (lang_independent_options): New.
9682 (parse_options_and_default_flags): Set.
9683 * varasm.c (assemble_start_function): Bypass functdion alignment
9684 for never executed functions.
9685 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
9686 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
9687 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
9688 Document.
9689
9690 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
9691
9692 * predict.c: Inlude profile.h
9693 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
9694 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
9695 Use the information about maximal counter in the program.
9696
9697 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
9698
9699 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
9700 probably_never_executed_bb_p): New functions.
9701 * cfgcleanup.c (outgoing_edges_match): Use them.
9702 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
9703 (maybe_hot_bb_p, probably_cold_bb_p,
9704 probably_never_executed_bb_p): New functions.
9705
9706 * function.h (function): Add new field function_frequency.
9707 * predict.c (compute_function_frequency): New function.
9708 (estimate_probability): Call it.
9709
9710 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9711
9712 PR optimization/5172, optimization/5200
9713 * gcse.c (gcse_main): Disable store_motion.
9714
9715 2002-05-14 Zack Weinberg <zack@codesourcery.com>
9716
9717 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
9718 (c_common_nodes_and_builtins): Use it.
9719 (builtin_define_with_value): New function.
9720 (cb_register_builtins): Define __SIZE_TYPE__,
9721 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
9722 using builtin_define_with_value. Use consistent notation when
9723 defining __GXX_WEAK__.
9724 (WCHAR_TYPE_SIZE): Don't redefine.
9725 (combine_strings): Don't use WCHAR_TYPE_SIZE.
9726
9727 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
9728 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
9729 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
9730 * tradcpp.c (initialize_builtins): Likewise.
9731 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
9732
9733 * c-lex.h (builtin_define_with_value): Prototype.
9734 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
9735 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
9736 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
9737
9738 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
9739 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
9740 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
9741 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
9742 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
9743 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
9744 config/sparc/sol2-bi.h, config/sparc/sparc.h:
9745 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
9746 to __SIZE_TYPE__ etc from all spec strings. When this makes
9747 extra specs empty, delete them.
9748
9749 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
9750
9751 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
9752 for PA8000 or generating dwarf2 call frame information.
9753 (output_call): Remove DO_FRAME_NOTES check from return pointer
9754 optimization.
9755 (following_call): Return 0 when scheduling for PA8000 or generating
9756 dwarf2 call frame information. Revise comment.
9757
9758 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9759
9760 config/alpha:
9761 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
9762 and __IEEE_FP_INEXACT as appropriate.
9763 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
9764 (CPP_SPEC): Remove ieee defines.
9765 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
9766
9767 2002-05-14 Richard Henderson <rth@redhat.com>
9768
9769 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
9770 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
9771
9772 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9773
9774 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
9775 (CPP_SPEC): Update.
9776 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
9777 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
9778 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
9779 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
9780 (EXTRA_SPECS): Update.
9781 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
9782 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
9783 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
9784 define TARGET_OS_CPP_BUILTINS if necessary.
9785
9786 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9787
9788 * gcc.c (cpp_options): Must pass -m* and -f* options
9789 to the front end even when only preprocessing.
9790 (cc1_options): Remove redundant -lang-c.
9791 * tradcpp.c (main): Ignore -m options.
9792 objc:
9793 * lang-specs.h: Similarly.
9794
9795 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
9796
9797 * genautomata.c (transform_3): Add code for transformation
9798 `(A,B,...)+C -> A+C,B,...'.
9799
9800 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
9801
9802 * final.c (end_final): Do not output profile_arcs constructor, when
9803 no functions are instrumented.
9804
9805 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
9806
9807 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
9808
9809 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9810
9811 * doc/install.texi: Remove special markup originally required for
9812 HTML generation with texi2html.
9813
9814 2002-05-14 Andreas Schwab <schwab@suse.de>
9815
9816 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
9817 SELECT_SECTION.
9818 (UNIQUE_SECTION): Define to get small data correctly.
9819
9820 * varasm.c (resolve_unique_section): Add third parameter
9821 flag_function_or_data_sections and use it instead of
9822 flag_function_sections.
9823 (assemble_start_function): Pass flag_function_sections.
9824 (asm_emit_uninitialised): Pass flag_data_sections.
9825 (assemble_variable): Likewise.
9826
9827 2002-05-14 Richard Henderson <rth@redhat.com>
9828
9829 * config/i386/i386.md: Use define_constants for unspec numbers.
9830 * config/i386/i386.c: Likewise.
9831
9832 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9833
9834 * doc/contrib.texi: Update my entry.
9835
9836 2002-05-13 Mark Mitchell <mark@codesourcery.com>
9837
9838 * fixinc/inclhack.def (winidss_valist): Limit applicability.
9839 * fixinc/fixincl.x: Regenerated.
9840 * fixinc/tests/base/math.h: Update.
9841 * fixinc/tests/base/testing.h: Likewise.
9842
9843 2002-05-13 Zack Weinberg <zack@codesourcery.com>
9844
9845 * genattr.c (gen_attr): Don't emit a comma after the last
9846 enumerator.
9847
9848 2002-05-13 Richard Henderson <rth@redhat.com>
9849
9850 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
9851 by non-local gotos.
9852 * recog.c (peephole2_optimize): Likewise.
9853
9854 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
9855
9856 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
9857 input to O_BINARY.
9858
9859 2002-05-13 Jeffrey A Law (law@redhat.com)
9860
9861 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
9862 Update prototype and callers.
9863 (propagate_one_insn): Stack pointer adjustments kill MEMs on
9864 the mem_set_list which reference the stack pointer, as do
9865 calls to constant functions as they may clobber outgoing
9866 argument space.
9867
9868 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
9869
9870 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9871 (ia32_multipass_dfa_lookahead): New function.
9872
9873 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9874
9875 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
9876 (translate_options): Remove 'V'.
9877 (process_command): Similarly.
9878 doc:
9879 * invoke.texi: Remove documentation of 'V'.
9880
9881 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
9882
9883 * config/s390/linux.h: Revert 2002-04-22 changes.
9884
9885 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
9886
9887 * config/fr30/fr30.md: Only allow splits of immediate loads
9888 if the destination is a register.
9889
9890 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9891
9892 * Makefile.in (c-common.o, cppinit.o): Update.
9893 * c-common.c: Include except.h.
9894 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9895 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9896 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9897 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9898 CPP_PREDEFINES): Handle here.
9899 config:
9900 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9901 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9902 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9903 TARGET_OS_CPP_BUILTINS.
9904 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9905 (CPP_SPEC, EXTRA_SPECS): Update.
9906 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9907 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9908 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9909 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9910 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9911 doc:
9912 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9913 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9914
9915 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9916
9917 * emit-rtl.c (global_rtl): Update comment.
9918 (const_double_htab, const_double_htab_hash,
9919 const_double_htab_hash, lookup_const_double): New.
9920 (const_int_htab_hash, const_int_htab_eq): Remove const
9921 qualifiers, which cause tons of warnings with RTL checking on.
9922 (gen_rtx_CONST_DOUBLE): Deleted.
9923 (const_double_from_real_value): New function - bears some
9924 resemblance to the former immed_real_const_1.
9925 (immed_double_const): Moved here from varasm.c and
9926 simplified.
9927 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9928 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9929 (gen_rtx): Use immed_double_const.
9930 (init_emit_once): Initialize the const_double_htab. Use
9931 REAL_VALUE_FROM_INT where possible. Can now use
9932 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9933 * varasm.c (struct varasm_status): Remove x_const_double_chain.
9934 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9935 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9936 (init_varasm_status, mark_varasm_status): Don't touch
9937 x_const_double_chain.
9938
9939 * output.h: Delete prototype for clear_const_double_mem.
9940 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
9941 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
9942 const_double_from_real_value, not immed_real_const_1, and use
9943 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
9944 CONST_DOUBLE_ATOF.
9945 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9946 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9947 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9948 (gen_rtx_REG): Second arg is unsigned.
9949
9950 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9951 (excluded_rtx): New, return true for CONST_DOUBLE.
9952 (genmacro): Write nothing for excluded codes.
9953 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9954 * expr.c (expand_expr): Likewise.
9955 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9956 CONST_DOUBLE_CHAIN.
9957 * toplev.c (rest_of_compilation): Don't call
9958 clear_const_double_mem.
9959
9960 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9961 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9962 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9963 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9964 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9965 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9966 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9967 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9968
9969 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9970
9971 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9972
9973 2002-05-12 Tom Tromey <tromey@redhat.com>
9974
9975 * tree.h (copy_node): Don't mention TREE_PERMANENT.
9976
9977 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9978
9979 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9980 (scan_comma_elt): New function. Accepts whitespace in comma lists.
9981 * gensupport.h: Prototype new routines.
9982 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
9983 use of printf.
9984 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9985 (next_comma_elt): Use scan_comma_elt.
9986
9987 * config/i386/i386.md: Use new attribute notation to break up
9988 long lines in define_attr forms.
9989
9990 2002-05-12 Richard Henderson <rth@redhat.com>
9991
9992 * expr.c (compress_float_constant): New.
9993 (emit_move_insn): Use it.
9994 (float_extend_from_mem): New.
9995 (init_expr_once): Initialize it.
9996 * real.c (exact_real_truncate): New.
9997
9998 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9999 dropped into memory; penalize for size.
10000 (RTX_COSTS): FLOAT_EXTEND is free.
10001 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
10002 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
10003
10004 2002-05-12 Richard Henderson <rth@redhat.com>
10005
10006 * profile.h (profile_info): Add missing extern to declaration.
10007 * profile.c (profile_info): Define it.
10008
10009 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10010
10011 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
10012 used for DImode and TImode.
10013
10014 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
10015
10016 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
10017 fake a newline.
10018
10019 2002-05-11 Zack Weinberg <zack@codesourcery.com>
10020
10021 * config/rs6000/rs6000.c (rs6000_default_long_calls,
10022 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
10023 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
10024 (rs6000_override_options): Handle -m(no-)longcall.
10025 (init_cumulative_args, output_mi_thunk): Check for both
10026 longcall and shortcall attributes on the function.
10027 (rs6000_attribute_table): Add "shortcall".
10028 (rs6000_handle_longcall_attribute): Update comment.
10029 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
10030 altivec_expand_ternop_builtin): Add default clauses to switches
10031 to silence warnings.
10032
10033 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
10034 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
10035 (TARGET_OPTIONS): Add longcall and no-longcall.
10036
10037 * config/rs6000/rs6000.md (call_nonlocal_sysv,
10038 call_value_nonlocal_sysv): Split by alternatives. One pair
10039 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
10040 the call cookie. The other pair accepts only LR/CTR and has
10041 no restriction.
10042
10043 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
10044 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
10045 tmake_file.
10046 * config/rs6000/rs6000-c.c: New file.
10047 * config/rs6000/t-rs6000-c-rule: New file.
10048 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
10049 Prototype rs6000_pragma_longcall.
10050
10051 * doc/extend.texi: Document shortcall attribute.
10052 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
10053
10054 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10055
10056 * reorg.c (dbr_schedule): Remove unnecessary test.
10057
10058 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
10059
10060 * i386.md (testsi to testqi spliters): New.
10061
10062 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
10063
10064 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
10065
10066 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
10067
10068 * basic-block.h: New flag EDGE_CAN_FALLTHRU
10069 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
10070 that can be made fallthru.
10071
10072 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
10073
10074 * cfglayout.c (cleanup_unconditional_jumps): New static function.
10075 (cfg_layout_initialize): Use it.
10076
10077 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
10078
10079 * config/avr/avr.c (avr_mcu_types): Update supported devices.
10080 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10081 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10082
10083 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
10084
10085 * dbxout.c: Fix formatting.
10086 * dependence.c: Likewise.
10087 * df.c: Likewise.
10088 * diagnostic.c: Likewise.
10089 * doloop.c: Likewise.
10090 * dominance.c: Likewise.
10091 * doschk.c: Likewise.
10092 * dwarf2asm.c: Likewise.
10093 * dwarf2out.c: Likewise.
10094 * dwarfout.c: Likewise.
10095
10096 2002-05-10 Richard Henderson <rth@redhat.com>
10097
10098 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
10099 Convert integers constants as needed. Replace "nwords" field with
10100 "sizeof_bb".
10101 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
10102 * function.h: Fix typo in comment.
10103 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
10104
10105 2002-05-10 Roger Sayle <roger@eyesopen.com>
10106
10107 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
10108 into the equivalent (signed char)c > 0.
10109
10110 2002-05-10 Janis Johnson <janis187@us.ibm.com>
10111
10112 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
10113 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
10114 (struct prefetch_info): Fix spelling of member bytes_accessed.
10115 (emit_prefetch_instructions): Make dump messages more regular;
10116 restructure code to add more dump messages; use new macros for
10117 heuristics. (There are no code generation changes in any of this).
10118
10119 2002-05-10 David S. Miller <davem@redhat.com>
10120
10121 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
10122 (struct rtx_def): Update unchanging flag comment.
10123 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
10124 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
10125 to be handled to INSN too.
10126 (dbr_schedule): Likewise.
10127 * resource.c (next_insn_no_annul): Likewise.
10128
10129 * cse.c (rtx_cost): Remove multiplication by power of 2 special
10130 casing.
10131
10132 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10133
10134 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
10135 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
10136 (possibly) work around broken /bin/sh.
10137
10138 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10139
10140 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
10141 . as N64/N32 libgcc_s.so subdirs.
10142
10143 2002-05-10 David S. Miller <davem@redhat.com>
10144
10145 * config/sparc/sparc.md: Use define_constants for unspec numbers.
10146
10147 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
10148 more accurately.
10149 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
10150 comment.
10151 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
10152 * doc/rtl.texi: Document these macros more accurately.
10153 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
10154 JUMP_INSNs and CALL_INSNs.
10155 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
10156 or INSN_FROM_TARGET_P if the code is appropriate.
10157
10158 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
10159
10160 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
10161 before using SYMBOL_REF_FLAG (addr).
10162
10163 * config/avr/avr-protos.h (avr_io_address_p): Declare.
10164 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
10165 Make non-static. Update all callers.
10166 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
10167 New insns to clear/set/test a single bit in I/O address space.
10168
10169 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10170
10171 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
10172
10173 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10174
10175 * Makefile.in: Update.
10176 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
10177 builtin_define_std): New.
10178 (c_common_init): Register CPP builtins callback.
10179 * c-common.h (flag_iso, flag_undef): New.
10180 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
10181 * c-lex.c: Don't include target.h.
10182 (cb_register_builtins): Move to c-common.c.
10183 (init_c_lex): Don't register hook here.
10184 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
10185 (cpp_define, cpp_assert): Remove.
10186 * gcc.c (cc1_options): Pass -undef to front end.
10187 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
10188 (TARGET_INITIALIZER): Update.
10189 * target.h (struct cpp_reader): Don't predeclare.
10190 (struct gcc_target): Remove cpp builtin hook.
10191 * tree.c (default_register_cpp_builtins): Remove.
10192 doc:
10193 * tm.texi: Update.
10194
10195 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10196
10197 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
10198
10199 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10200
10201 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
10202 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
10203
10204 2002-05-09 Jakub Jelinek <jakub@redhat.com>
10205
10206 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
10207 * config/sparc/libgcc-sparc-glibc.ver: New file.
10208 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
10209 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
10210
10211 2002-05-09 Jakub Jelinek <jakub@redhat.com>
10212
10213 PR target/6429
10214 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
10215 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
10216 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
10217 base multilibs.
10218 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
10219 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
10220 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
10221 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
10222
10223 2002-05-09 Richard Henderson <rth@redhat.com>
10224
10225 * config/ia64/ia64.md: Use define_constants for unspec numbers.
10226 * config/ia64/ia64.c: Likewise.
10227
10228 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
10229
10230 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
10231 (save_restore_insns): Likewise.
10232 (mips_expand_prologue, mips_expand_epilogue): Update callers.
10233 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
10234
10235 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
10236
10237 * athlon.md, k6.md, pentium.md, ppro.md): New files.
10238 * i386.md: Move scheduling information into new files.
10239
10240 * i386.md (type attribute): Add "rotate" for rotate insns.
10241 (rotate insns): Set type to "rotate".
10242 (various attributes and function units): Treat rotate like shift.
10243 (pent_pair attribute): Only rotates by one bit position are
10244 pairable.
10245 (sbb insns): Explicitly set pent_pair attribute on a couple
10246 that were missing it.
10247
10248 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
10249
10250 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
10251 make sure that buffer starts on odd word address.
10252 (sh_va_arg): Skip odd fp registers when reading a double precision
10253 value.
10254
10255 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10256
10257 * tree.h (preserve_data, object_permanent_p, type_precision):
10258 Remove.
10259
10260 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10261
10262 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
10263 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
10264 doc:
10265 * cpp.texi: Update for removal of obsolete features.
10266
10267 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
10268 Jeffrey A Law (law@redhat.com)
10269
10270 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
10271 the DFA interface for Pentium processors.
10272 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
10273 (attr_pent_pair, ix86_pent_find_pair): Remove.
10274 (ix86_sched_reorder_pentium): Remove.
10275 (ix86_sched_reorder): Remove reordering for Pentium.
10276 * i386.md (Pentium scheduling): Rewrite using DFA description.
10277
10278 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
10279
10280 * cfganal.c (can_fallthru): Fix fast path.
10281 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
10282 with edges to the next block.
10283
10284 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
10285 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
10286
10287 * final.c (end_final): Use C trees to output data structures for profiling.
10288
10289 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
10290 (profile.o): New dependency profile.h
10291 (final.o): New dependency profile.h
10292 * profile.h: New file. New global structure profile_info.
10293 * final.h (count_edges_instrumented_now): Declare.
10294 (current_function_cfg_checksum): Declare.
10295 (function_list): New structure.
10296 (functions_head, functions_tail): New static variables.
10297 (end_final): Emits more data, removed some -ax stuff.
10298 (final): Stores function names and chcksums.
10299 * gcov-io.h (__write_gcov_string): New function.
10300 (__read_gcov_string): New function.
10301 * gcov.c (read_profile): New function.
10302 (create_program_flow_graph): Uses read_profile instead of reading
10303 da_file.
10304 (read_files): Removed da_file checking, it's done by read_profile now.
10305 * libgcc2.c (bb_function_info): New structure.
10306 (bb): New field in structure, removed some -ax stuff.
10307 (__bb_exit_func): Changed structure of da_file.
10308 * profile.c (count_edges_instrumented_now): New global variable.
10309 (current_function_cfg_checksum): New global variable.
10310 (max_counter_in_program): New global variable.
10311 (get_exec_counts): New function.
10312 (compute_checksum): New function.
10313 (instrument_edges): Sets count_edges_instrumented_now.
10314 (compute_branch_probabilities): Uses get_exec_counts instead of
10315 reading da_file.
10316 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
10317 (init_branch_prob): Removed da_file checking, done in get_exec_counts
10318 now.
10319 (end_branch_prob): Removed da_file checking, done in get_exec_counts
10320 now.
10321 * gcov.texi: Updated information about gcov file format.
10322
10323 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
10324
10325 * sbitmap.c: Fix formatting.
10326 * scan.c: Likewise.
10327 * scan-decls.c: Likewise.
10328 * sched-deps.c: Likewise.
10329 * sched-ebb.c: Likewise.
10330 * sched-rgn.c: Likewise.
10331 * sched-vis.c: Likewise.
10332 * sdbout.c: Likewise.
10333 * sibcall.c: Likewise.
10334 * simplify-rtx.c: Likewise.
10335 * ssa.c: Likewise.
10336 * ssa-ccp.c: Likewise.
10337 * ssa-dce.c: Likewise.
10338 * stmt.c: Likewise.
10339 * stor-layout.c: Likewise.
10340 * stringpool.c: Likewise.
10341
10342 2002-05-09 David S. Miller <davem@redhat.com>
10343
10344 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
10345
10346 2002-05-07 David S. Miller <davem@redhat.com>
10347
10348 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
10349 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
10350 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
10351 library implementation clobbers the output before the inputs
10352 are fully consumed, use stack temporary for the output.
10353
10354 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
10355
10356 * config/netbsd.h (CPP_SPEC): Remove.
10357 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
10358 * config/i386/netbsd.h (CPP_SPEC): Define.
10359 * config/ns32k/netbsd.h (CPP_SPEC): Define.
10360 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
10361 * config/sparc/netbsd.h (CPP_SPEC): Define.
10362 * config/vax/netbsd.h (CPP_SPEC): Define.
10363
10364 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
10365
10366 * read-rtl.c: Fix formatting.
10367 * real.c: Likewise.
10368 * recog.c: Likewise.
10369 * regclass.c: Likewise.
10370 * regmove.c: Likewise.
10371 * reg-stack.c: Likewise.
10372 * reload1.c: Likewise.
10373 * reload.c: Likewise.
10374 * resource.c: Likewise.
10375 * rtlanal.c: Likewise.
10376 * rtl.c: Likewise.
10377 * rtl-error.c: Likewise.
10378
10379 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10380
10381 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
10382 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
10383
10384 2002-05-08 Bernd Schmidt <bernds@redhat.com>
10385
10386 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
10387 use __SSE2__ macro instead.
10388 * config/i386/xmmintrin.h: Likewise.
10389
10390 2002-05-08 Janis Johnson <janis187@us.ibm.com>
10391
10392 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
10393 and use it in all invocations of these macros. Clean up comments.
10394 * rtl.c (rtl_check_failed_flag): Add an argument for the name
10395 of the flag access macro whose check failed.
10396 * doc/rtl.texi (Flags): Document additional flag uses.
10397
10398 2002-05-08 Robert Spier <rspier@pobox.com>
10399 Neil Booth <neil@daikokuya.demon.co.uk>
10400
10401 PR preprocessor/6521
10402 * cppfiles.c (handle_missing_header): Don't do anything
10403 different for <> includes.
10404 doc:
10405 * cppopts.texi: Update documentation for -MG.
10406
10407 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
10408
10409 * cpplex.c (cpp_interpret_charconst): Truncate as well as
10410 sign-extend.
10411 doc:
10412 * cpp.texi: Clarify multichar charconst valuation.
10413
10414 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10415
10416 * doc/invoke.texi: Document -mwindiss option.
10417
10418 2002-05-08 Jason Merrill <jason@redhat.com>
10419
10420 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
10421
10422 * dwarf2out.c (gen_type_die): Abort on broken recursion.
10423
10424 PR c++/6381
10425 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
10426 REAL_CST.
10427
10428 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
10429
10430 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
10431 little-endian multilibs to override arm/thumb multilibs.
10432 Do not build hardware floating point multilibs, nor apcs-26
10433 multilibs for the Thumb.
10434
10435 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10436
10437 PR c/6569.
10438 * varasm.c (mark_weak): New function.
10439 (merge_weak): Use it. Do not call declare_weak.
10440 (declare_weak): Use merge_weak.
10441
10442 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10443
10444 * cse.c (dead_libcall_p): Update counts.
10445 (delete_trivially_dead_insns): Update call of dead_libcall_p.
10446
10447 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
10448
10449 * cfglayout.c (function_tail_eff_head): Rename to ...
10450 (function_footer): ... this one.
10451 (unlink_insn_chain): New functions.
10452 (label_for_bb): Only call block_label and emit debug message.
10453 (record_effective_endpoints): Actually unlink the headers and footers.
10454 (fixup_reorder_cahin): Re-insert the unlinked sequences.
10455 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
10456 * cfglayout.h (struct reorder_block_def): New fields footer/header;
10457 remove eff_head/eff_end.
10458 * rtl.h (set_first_insn): Declare.
10459 * emit-rtl.c (set_first_insn): New function.
10460
10461 * cfglayout.c (fixup_reorder_chain): Dump duplicated
10462 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10463 cfg_layout_duplicate_bb): New global function.
10464 (duplicate_insn_chain): New static function.
10465 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10466 cfg_layout_duplicate_bb): Declare.
10467 (struct reorder_block_def): Add "original" field.
10468 * emit-rtl.c (emit_copy_of_insn_after): New function.
10469 * rtl.h (emit_copy_of_insn_after): Declare.
10470
10471 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
10472 (fixup_reorder_chain): properly handle edges to exit block.
10473
10474 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10475 Jan Hubicka <jh@suse.cz>
10476
10477 * basic-block.h (note_prediction_to_br_prob): declare.
10478 * c-semantics.c: Inlucde predit.h
10479 (expand_stmt): predict GOTO_STMT as not taken.
10480 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
10481 (cleanup_cfg): Do not free tail_recursion_list.
10482 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
10483 (flow_delete_block): Kill predictions past end of basic block.
10484 * output.h (delete_unreachable_blocks): Declare.
10485 * predict.c (predicted_by_p, process_note_predictions,
10486 process_note_prediction, last_block_p): New function.
10487 (estimate_probability): Bypass loop on PRED_CONTINUE;
10488 do not handle noreturn heuristics; kill PRED_RETURN; add
10489 PRED_EARLY_RETURN.
10490 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
10491 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
10492 * predict.h (IS_TAKEN): New constant.
10493 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
10494 * rtl.c (NOTE_INSN_PREDICTION): New.
10495 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
10496 New macro.
10497 (insn_note): add NOTE_INSN_PREDICTION.
10498 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
10499 CFG; free tail_recursion_label_list.
10500 * stmt.c: Include predict.h;
10501 (return_prediction): New.
10502 (expand_value_return): Use it.
10503 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
10504
10505 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
10506
10507 * config/mips/mips.md: Name the unspecs with define_constant.
10508 (*HILO_delay): Rename to 'hilo_delay' (no star).
10509 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
10510 (reload_outdi, reload_outsi): Likewise.
10511
10512 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
10513
10514 * toplev.c: Fix formatting.
10515
10516 2002-05-07 Janis Johnson <janis187@us.ibm.com>
10517
10518 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
10519 * configure.in (ac_rtlflag_checking): New.
10520 * doc/install.texi (--enable-checking): Document RTL flag checking.
10521
10522 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10523
10524 * c-common.c (c_common_init): Set options->unsigned_wchar.
10525 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
10526 group target dependencies.
10527 (init_builtins, cpp_handle_option): Update.
10528 * cpplex.c (cpp_interpret_charconst): Update.
10529 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
10530 signed_char to unsigned_char, group target dependencies.
10531 * defaults.h (WCHAR_UNSIGNED): Remove.
10532 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
10533 config:
10534 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
10535 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
10536 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
10537 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
10538 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
10539 doc:
10540 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
10541
10542 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10543
10544 * fixinc/inclhack.def (windiss_math1): New fix.
10545 (windiss_math2): Likewise.
10546 (windiss_valist): Likewise.
10547 * fixinc/fixincl.x: Regenerated.
10548
10549 2002-05-07 Andreas Jaeger <aj@suse.de>
10550
10551 * genautomata.c (output_internal_min_issue_delay_func): Add
10552 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
10553 (output_internal_trans_func): Likewise.
10554
10555 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
10556
10557 * pa.c (hppa_profile_hook): Use force_reg to get the address
10558 of the profile hook into an appropriate pseudo register.
10559
10560 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10561
10562 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
10563 (LINK_START_SPEC): Handle it.
10564 (LINK_OS_SPEC): Likewise.
10565 (CPP_SPEC): Likewise.
10566 (STARTFILE_SPEC): Likewise.
10567 (LIB_SPEC): Likewise.
10568 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
10569 all platforms.
10570 (CRTSAVRES_DEFAULT_SPEC): New macro.
10571 (LIB_WINDISS_SPEC): New macro.
10572 (CPP_OS_WINDISS_SPEC): Likewise.
10573 (STARTFILE_WINDISS_SPEC): Likewise.
10574 (ENDFILE_WINDISS_SPEC): Likewise.
10575 (LINK_START_WINDISS_SPEC): Likewise.
10576 (LINK_OS_WINDISS_SPEC): Likewise.
10577 * config/rs6000/windiss.h: New file.
10578
10579 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
10580
10581 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
10582
10583 2002-05-06 David S. Miller <davem@redhat.com>
10584
10585 * config/sparc/sparc.md (shift insns): Do not mask off
10586 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
10587 take care of it.
10588
10589 2002-05-06 Richard Henderson <rth@redhat.com>
10590
10591 PR c++/6212
10592 * expr.c (highest_pow2_factor_for_type): New.
10593 (expand_assignment): Use it.
10594
10595 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
10596
10597 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
10598 unspec_volatile.
10599 ("altivec_mfvscr"): Same.
10600
10601 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10602
10603 * rtl.h (struct rtx_def): Update comments.
10604 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
10605 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
10606 RTL_FLAG_CHECK macros with list of expected RTL codes.
10607 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
10608 (rtl_check_failed_flag): New.
10609 * reload1.c (reload): Use REG macro before changing rtx to MEM.
10610 (reload_cse_noop_set_p): Check rtx code before using access macro.
10611 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
10612 before using access macro.
10613
10614 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10615
10616 * doc/rtl.texi (Flags): Update to reflect current usage.
10617
10618 2002-05-06 Roger Sayle <roger@eyesopen.com>
10619
10620 PR opt/3995
10621 * fold-const.c (sign_bit_p): New function.
10622 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
10623 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
10624 Reapply fold when converting (A & C) == C into (A & C) != 0.
10625 (fold_binary_op_with_conditional_arg): Fix typo in comment.
10626
10627 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10628
10629 * c-common.c (warn_multichar): New.
10630 (c_common_init): Set CPP's warn_multichar.
10631 * c-common.h (warn_multichar): New.
10632 * c-decl.c (warn_multichar): Remove.
10633 * c-lex.c (lex_charconst): Update.
10634 * c-tree.h (warn_multichar): Remove.
10635 * cppexp.c (eval_token): Sign-extend charconst value.
10636 * cppinit.c (cpp_create_reader): Set warn_multichar.
10637 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
10638 each character. Update prototype. Sign-extend the result.
10639 * cpplib.h: Fix conditions.
10640 (struct cpp_options): Add new warning flag.
10641 (cpp_interpret_charconst): Update prototype.
10642 doc:
10643 * cpp.texi: Update documentation.
10644
10645 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
10646
10647 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
10648 Fix typo in usage of allof instead of unit.
10649
10650 2002-05-06 Richard Henderson <rth@redhat.com>
10651
10652 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
10653 and any jump or call for IN.
10654
10655 2002-05-06 Bernd Schmidt <bernds@redhat.com>
10656
10657 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
10658 -msse2.
10659 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
10660
10661 2002-05-06 Roger Sayle <roger@eyesopen.com>
10662
10663 * fold-const.c (lshift-double): Cast the high word to an unsigned
10664 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
10665 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
10666 avoid compiler warning. (fold): Remove redundant code from
10667 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
10668
10669 2002-05-06 Jeff Law <law@redhat.com>
10670
10671 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
10672 * pa.c (pa_adjust_cost): Remove all true dependency cost
10673 adjustments. Also remove support for non-DFA scheduling.
10674 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
10675 to adjust true dependency costs. Update various comments.
10676 (7100lc, 7200, 7300 scheduling): Simplify by combining the
10677 FP ALU & MPY units into a single unit.
10678
10679 2002-05-06 Catherine Moore <clm@redhat.com>
10680
10681 * config/v850/v850.c (compute_register_save_size): Make sure
10682 to count all of the registers that will be saved.
10683
10684 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10685
10686 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
10687
10688 2002-05-06 David S. Miller <davem@redhat.com>
10689
10690 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
10691 allow result to overlap input operands in memory.
10692
10693 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10694
10695 doc:
10696 * cpp.texi: Update multichar charconst docs.
10697
10698 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10699
10700 * cpplex.c (cpp_interpret_charconst): Sign-extend each
10701 character. Don't ignore excess characters. Treat
10702 multicharacter character constants as signed.
10703 (cpp_parse_escape): Clarify diagnostic.
10704
10705 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10706
10707 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
10708 use add instead of shift.
10709 (ashldi3_sp64): Likewise.
10710 (ashlsi3_const1, ashldi3_const1): Remove.
10711 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
10712 * config/sparc/sparc.c (const1_operand): New.
10713
10714 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
10715
10716 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
10717
10718 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10719
10720 PR target/6561
10721 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
10722
10723 2002-05-05 Richard Henderson <rth@redhat.com>
10724
10725 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
10726 memory latency adjustments.
10727 (alpha_variable_issue): Remove.
10728 (alpha_use_dfa_pipeline_interface): New.
10729 (alpha_multipass_dfa_lookahead): New.
10730 * config/alpha/alpha.md: Remove define_function_unit scheduling;
10731 include new dfa scheduling.
10732 (attr type): Add none.
10733 (blockage): Use it.
10734 * config/alpha/ev4.md: New.
10735 * config/alpha/ev5.md: New.
10736 * config/alpha/ev6.md: New.
10737
10738 2002-05-05 David S. Miller <davem@redhat.com>
10739
10740 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
10741
10742 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
10743
10744 * cse.c: Fix formatting.
10745 * emit-rtl.c: Likewise.
10746
10747 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10748
10749 * genautomata.c (initiate_states): Add additional guard to
10750 initialize `units_array'.
10751
10752 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10753
10754 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
10755 process_unit_to_form_the_same_automaton_unit_lists,
10756 form_the_same_automaton_unit_lists
10757 check_unit_distributions_to_automata): New prototypes and
10758 functions.
10759 (check_automata): Rename it into `check_automata_insn_issues'.
10760 (unit_decl): New fields `the_same_automaton_unit' and
10761 `the_same_automaton_message_reported_p'.
10762 (unit_decl_t): New typedef.
10763 (the_same_automaton_lists): New gloval variable.
10764 (unit_regexp, unit_set_el, units_array, units_cmp,
10765 output_get_cpu_unit_code_func): Use the typedef.
10766 (evaluate_max_reserv_cycles): Increment
10767 `description->max_insn_reserv_cycles'.
10768 (initiate_states): Don't increment `max_cycles_num'.
10769 (transform_insn_regexps): Move code around transformation of
10770 regexps from `generate'.
10771 (generate): Remove call of `transform_insn_regexps'.
10772 (expand_automata): Call `transform_insn_regexps' and
10773 `check_unit_distributions_to_automata'. Check errors before
10774 `generate'.
10775
10776 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
10777 automaton `ultrasparc3_1'.
10778
10779 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
10780
10781 * c-common.c (c_common_init): Set up CPP arithmetic.
10782 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
10783 something reasonable for the host.
10784 (sanity_checks): Add checks.
10785 (cpp_read_main_file): Call sanity_checks() from here...
10786 (cpp_post_options): ... not here.
10787 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
10788 * cpplib.h (struct cpp_options): New member int_precision.
10789
10790 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10791
10792 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
10793
10794 2002-05-04 David S. Miller <davem@redhat.com>
10795
10796 * config/sparc/linux.h, config/sparc/linux64.h
10797 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
10798
10799 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
10800 more RTX codes.
10801 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
10802
10803 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
10804 of SETs.
10805
10806 2002-05-05 Tim Josling <tej@melbpc.org.au>
10807
10808 * treelang; New directory for new sample language treelang.
10809
10810 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10811
10812 * Makefile.in (c-lex.o): Update.
10813 * c-lex.c: Include target.h.
10814 (cb_register_builtins): New.
10815 (init_c_lex): Set builtins callback.
10816 * c-lex.h (cpp_define, cpp_assert): New prototypes.
10817 * cppinit.c (init_builtins): Use callback, including for
10818 GXX_WEAK.
10819 * cpplib.h (struct cpp_callbacks): New member.
10820 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
10821 (TARGET_INITIALIZER): Update.
10822 * target.h (struct gcc_target): New hook.
10823 * tree.c (default_register_cpp_builtins): New.
10824 * tree.h (default_register_cpp_builtins): New.
10825 doc:
10826 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
10827
10828 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10829
10830 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
10831 (cpp_post_options): Move sanity checks to...
10832 (sanity_checks): New.
10833 * cpplex.c (maybe_read_ucs): Fix prototype.
10834 (parse_string, cpp_parse_escape): Cast for %c format specifier.
10835 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
10836 if necessary.
10837
10838 2002-05-04 Bernd Schmidt <bernds@redhat.com>
10839
10840 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
10841 builtins. Use V2DI patterns instead of TI for logical operations.
10842 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
10843 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
10844 (ix86_expand_builtins): Change the pattern used for movntdq.
10845 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
10846 sse2_nandv2di3): New patterns.
10847 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
10848 on operands.
10849 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
10850 (cvtdq2pd): Correct mode on operand 1.
10851 (sse2_umulsidi3): Describe without unspec.
10852 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
10853 machine modes.
10854 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
10855 (ashlv2di3): Likewise, from sse2_ashlv2di3.
10856 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
10857 ashlv4si3, ashlv2di3): Use SImode for shift count.
10858 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
10859 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
10860 New patterns.
10861 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
10862 New typedefs.
10863 (__m128i, __m128d): New macros.
10864 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
10865 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
10866 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
10867 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
10868 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
10869 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
10870 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
10871 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
10872 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
10873 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
10874 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
10875 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
10876 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
10877 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
10878 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
10879 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
10880 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
10881 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
10882 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
10883 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
10884 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
10885 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
10886 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
10887 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
10888 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
10889 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
10890 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
10891 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
10892 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10893 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10894 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10895 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10896 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10897 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10898 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10899 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10900 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10901 functions.
10902 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
10903 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10904
10905 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
10906
10907 * dwarf2out.c: Fix formatting.
10908 * varasm.c: Likewise.
10909
10910 2002-05-04 David Edelsohn <edelsohn@gnu.org>
10911
10912 PR c/6543
10913 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10914 clobber and use result as temporary value.
10915
10916 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
10917
10918 * expr.c (force_operand): Use expand_simple_* to handle more
10919 cases.
10920
10921 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10922
10923 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10924 and sign-extension.
10925 (lex_charconst): Update for change in prototype of
10926 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
10927 appropriately.
10928 * cpphash.h (BITS_PER_CPPCHAR_T): New.
10929 * cppinit.c (cpp_create_reader): Initialize them for no
10930 change in semantics.
10931 (cpp_post_options): Add sanity checks.
10932 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10933 and truncation issues. Calculate in type cppchar_t.
10934 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10935 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
10936 run-time dependent precision correctly. Return whether the
10937 result is signed or not.
10938 * cpplib.c (dequote_string): Use cppchar_t; update.
10939 * cpplib.h (cppchar_signed_t): New.
10940 struct cpp_options): New precision members.
10941 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
10942 * cppexp.c (eval_token): Update.
10943
10944 2002-05-03 David S. Miller <davem@redhat.com>
10945
10946 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10947 * config/sparc/sparc.c (sparc_rtx_costs): New function
10948 implementing RTX_COSTS and CONST_COSTS.
10949 * config/sparc/sparc.h (CONST_COSTS): Delete.
10950 (RTX_COSTS_CASES): Define.
10951 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10952 the work.
10953
10954 * config/sparc/sparc.md (DFA schedulers): Split out...
10955 * config/sparc/cypress.md, config/sparc/hypersparc.md,
10956 config/sparc/sparclet.md, config/sparc/supersparc.md,
10957 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10958
10959 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10960 checks on it, always defined for Sparc.
10961
10962 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10963 Tweak, and add more detailed comments.
10964
10965 2002-05-03 Zack Weinberg <zack@codesourcery.com>
10966
10967 * Re-apply patch accidentally reverted with
10968 DFA scheduler merge: remove all rules and variables to slurp
10969 source files out of libiberty and rebuild them with HOST_CC.
10970 ($(HOST_PREFIX_1)varray.o): New rule.
10971 (genattrtab rule): Word wrap.
10972
10973 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10974
10975 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10976 (CPP_SUBTARGET_SPEC): Define.
10977 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10978 cpp_subtarget specs.
10979 (CPP_SPEC): Redefine to include %(cpp_subtarget).
10980
10981 2002-05-03 David S. Miller <davem@redhat.com>
10982
10983 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10984 * target.h (struct gcc_target): Delete cycle_display member.
10985
10986 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10987 (rtx_needs_barrier): Delete reference to cycle_display unspec.
10988 (ia64_sched_reorder2): Mention need for cycle display handling
10989 once such notes exist.
10990
10991 2002-05-03 Richard Henderson <rth@redhat.com>
10992
10993 * real.c (etoasc): Strip most trailing zeros for clarity.
10994 * sched-vis.c: Include real.h.
10995 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10996 * Makefile.in (sched-vis.o): Add real.h.
10997
10998 2002-05-03 David S. Miller <davem@redhat.com>
10999
11000 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
11001 no longer needed.
11002
11003 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
11004
11005 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
11006 when we get an out of range literal.
11007 (altivec_expand_ternop_builtin): Same.
11008 (altivec_expand_unop_builtin): Same.
11009 (altivec_expand_builtin): Same, for dss.
11010 (altivec_expand_builtin): Use trees instead of rtl when
11011 determining literal argument validity.
11012
11013 2002-05-03 David S. Miller <davem@redhat.com>
11014
11015 Delete cycle display scheduling hook.
11016 * config/ia64/ia64.c (ia64_cycle_display,
11017 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
11018 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
11019 and use emit_insn_before instead of ia64_emit_insn_before.
11020 * config/ia64/ia64.md (unspec usage): Delete cycle display.
11021 (cycle_display): Delete insn pattern.
11022 * config/sparc/sparc.md (unspec usage): Delete cycle display.
11023 (cycle_display): Delete insn pattern.
11024 * config/sparc/sparc.c (sparc_cycle_display,
11025 TARGET_SCHED_CYCLE_DISPLAY): Delete.
11026 * doc/md.texi (cycle_display): Don't mention.
11027 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
11028
11029 2002-05-03 Richard Henderson <rth@redhat.com>
11030
11031 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
11032 * recog.h: Declare them.
11033
11034 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
11035 * config/sparc/sparc.md: Use store_data_bypass_p instead.
11036 * config/sparc/sparc-protos.h: Update.
11037
11038 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11039
11040 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
11041 -D__arch64__. Add -D_LP64.
11042 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
11043 from sparc.h.
11044 (CPP_ARCH64_SPEC): Likewise.
11045 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
11046 (NO_BUILTIN_SIZE_TYPE): Undef.
11047
11048 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
11049
11050 * genautomata.c (min_issue_delay_pass_states): Change return type
11051 in the prototype.
11052 (min_issue_delay_pass_states): Change the algorithm.
11053 (min_issue_delay): Set up min_insn_issue_delay for the state.
11054 (output_min_issue_delay_table): Interchange the nested loops and
11055 and initiate min_insn_issue_delay for states.
11056
11057 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
11058
11059 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
11060 jump is simplejump.
11061
11062 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
11063
11064 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
11065 sequence.
11066
11067 2002-05-03 Richard Henderson <rth@redhat.com>
11068
11069 PR opt/6534
11070 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
11071 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
11072 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
11073 code before JUMP, not EARLIEST.
11074
11075 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
11076
11077 * c-format.c (check_format_info_main): Don't check for presence of
11078 parameter for * width until after operand number has been read,
11079 and only check for it if format parameters are available.
11080 Fixes PR c/6547.
11081
11082 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11083
11084 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
11085 (LINK_SPEC): Undef before defining.
11086
11087 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11088
11089 PR preprocessor/6489
11090 * tradcpp.c (fixup_newlines): New.
11091 (main, finclude): Use it.
11092
11093 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
11094
11095 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
11096 * config/mips/mips.c (mips_unique_section): Strip encoding from
11097 decl name.
11098
11099 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11100
11101 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
11102 mode.
11103
11104 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11105
11106 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
11107 (Specific): Removed buildstats references.
11108 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
11109 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
11110 Accomodate Solaris versions beyond 8.
11111 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
11112 (Specific, *-*-solaris2.8): Removed, obsolete.
11113
11114 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11115
11116 PR target/6542
11117 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
11118 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
11119 fill leaf_reg_remap with identity.
11120 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
11121
11122 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
11123
11124 * config/h8300/crti.asm: Remove trailing spaces.
11125 * config/h8300/h8300.c: Likewise.
11126 * config/h8300/lib1funcs.asm: Likewise.
11127
11128 2002-05-02 Jason Merrill <jason@redhat.com>
11129
11130 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
11131 * c-decl.c (c_init_decl_processing): Use it.
11132 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
11133 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
11134 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
11135
11136 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
11137
11138 * regrename.c: Fix formatting.
11139 * tree.c: Likewise.
11140
11141 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
11142
11143 * i386.md (attribute memory): Handle compares properly.
11144
11145 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
11146
11147 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
11148 to none.
11149
11150 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
11151
11152 * function.c: Fix formatting.
11153
11154 2002-05-02 Jan Hubicka <jh@suse.cz>
11155
11156 * haifa-sched.c (schedule_insn): Print table of instructions and
11157 reservations.
11158 (sched_block): Do not print ready list at verbosity level 1.
11159 * sched-vis.c (print_insn): Make global.
11160 * sched-ebb.c (ebb_print_insn): Rename from...
11161 (print_insn): ... this one.
11162 * sched-int.h (print_insn): Declare
11163
11164 2002-05-02 Richard Henderson <rth@redhat.com>
11165
11166 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
11167 emitted by cycle_display.
11168
11169 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
11170
11171 * doc/install.texi (*-*-freebsd*): Update to latest status.
11172
11173 2002-05-02 Jakub Jelinek <jakub@redhat.com>
11174
11175 PR target/6540
11176 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
11177 * config/float-sparc.h: Assume 128-bit long double if
11178 __LONG_DOUBLE_128__ is defined.
11179
11180 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
11181
11182 * genattrtab.c (write_function_unit_info): Add a dummy element
11183 when num_units == 0.
11184
11185 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11186
11187 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
11188 TYPE_MODE (double_type_node) instead of DFmode.
11189
11190 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
11191
11192 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
11193 jumps post reload.
11194 * toplev.c (rest_of_compilation): Revert Richard's patch.
11195
11196 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11197
11198 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
11199
11200 2002-05-02 Catherine Moore <clm@redhat.com>
11201
11202 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
11203
11204 2002-05-02 Kazu Hirata <kazu@hxi.com>
11205
11206 * combine.c: Fix comment typos.
11207 * expr.c: Likewise.
11208 * genautomata.c: Likewise.
11209 * stmt.c: Likewise.
11210 * tree.h: Likewise.
11211
11212 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
11213
11214 * doc/install.texi: State GNAT version requirements.
11215
11216 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
11217
11218 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
11219 of the frame pointer or arg pointer register which strict register
11220 checking is not enabled.
11221
11222 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
11223
11224 * gcc.dg/altivec-8.c: New.
11225
11226 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
11227 PRE_INC and PRE_DEC for altivec modes.
11228
11229 2002-05-01 Bruce Korb <bkorb@gnu.org>
11230
11231 * fixinc/check.tpl(set-writable): make sure the function exists first
11232 * fixinc/inclhack.def(alpha_assert): fix test_text
11233 * fixinc/tests/base/assert.h: add in missing result
11234
11235 2002-05-01 Jeff Law <law@redhat.com>
11236
11237 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
11238 'T' constraint.
11239
11240 2002-05-01 Joel Brobecker <brobecker@gnat.com>
11241
11242 * dbxout.c (dbxout_type): Emit size information for range types,
11243 as well, but only when using GDB extensions.
11244
11245 2002-05-01 Richard Henderson <rth@redhat.com>
11246
11247 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
11248 target-independent gnu binutils date test.
11249
11250 2002-05-01 Richard Henderson <rth@redhat.com>
11251
11252 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
11253 info before expunging the block.
11254
11255 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11256
11257 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
11258 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
11259 -M -or -MM is in effect.
11260
11261 2002-05-01 Zack Weinberg <zack@codesourcery.com>
11262
11263 * config.gcc: Correct test of --enable-obsolete. Obsolete all
11264 A29k configurations.
11265 * doc/install.texi: Update to match.
11266
11267 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11268
11269 PR bootstrap/6514
11270 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
11271 for duplicates. Always loop over whole list.
11272
11273 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11274
11275 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
11276
11277 2002-05-01 Joel Sherrill <joel@OARcorp.com>
11278
11279 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
11280 support routines.
11281
11282 2002-05-01 Joel Sherrill <joel@OARcorp.com>
11283
11284 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
11285
11286 2002-05-01 David Edelsohn <edelsohn@gnu.org>
11287
11288 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
11289 (nabs_nopower): Same.
11290 (floatdisf2): New pattern.
11291 (absdi2): Convert to define_insn_and_split.
11292 (nabsdi2): Same.
11293 (trunctfsf2): Same.
11294 (floatditf2): Same.
11295 (floatsitf2): Same.
11296 (fix_trunctfdi2): Same.
11297 (fix_trunctfsi2): Same.
11298
11299 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
11300
11301 * doc/install.texi: Update Texinfo version requirement
11302 documentation.
11303
11304 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11305
11306 PR target/6512, PR target/5628
11307 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
11308 when memory is not aligned.
11309 (movdf_insn_v9only_vis): Likewise.
11310 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
11311 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
11312 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
11313
11314 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
11315
11316 * gcc.dg/altivec-7.c: New.
11317
11318 * config/rs6000/altivec.h: Cleanup.
11319
11320 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
11321
11322 * doc/invoke.texi (Option Summary): Add -mvrsave=.
11323 (RS/6000 and PowerPC Options): Document -mvrsave=.
11324
11325 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
11326 (rs6000_altivec_vrsave_string): Same.
11327 (rs6000_override_options): Call rs6000_parse_vrsave_option.
11328 (rs6000_parse_vrsave_option): New.
11329 (rs6000_stack_info): Only generate vrsave instructions when
11330 TARGET_ALTIVEC_VRSAVE.
11331
11332 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
11333 (rs6000_altivec_vrsave_string): Define extern.
11334 (rs6000_altivec_vrsave): Same.
11335 (TARGET_ALTIVEC_VRSAVE): New.
11336
11337 2002-04-30 Richard Henderson <rth@redhat.com>
11338
11339 PR opt/6516
11340 * toplev.c (rest_of_compilation): Don't run cross-jump before
11341 bb-reorder.
11342
11343 2002-04-30 Tom Rix <trix@redhat.com>
11344
11345 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
11346 check which_alternative.
11347
11348 2002-04-30 Kazu Hirata <kazu@hxi.com>
11349
11350 * cpplex.c: Fix comment formatting.
11351 * function.c: Likewise.
11352 * integrate.c: Likewise.
11353 * regrename.c: Likewise.
11354 * sibcall.c: Likewise.
11355 * simplify-rtx.c: Likewise.
11356 * tree-inline.c: Likewise.
11357
11358 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11359
11360 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
11361 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
11362 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
11363 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
11364 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
11365 * pa/x-ada: New file. Define ADA_CFLAGS.
11366
11367 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
11368
11369 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
11370 from MMIX_LAST_REGISTER_FILE_REGNUM.
11371 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
11372 (struct machine_function): New member highest_saved_stack_register
11373 previously static variable in mmix.c.
11374 (MACHINE_DEPENDENT_REORG): Define.
11375 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
11376 (MMIX_OUTPUT_REGNO): New.
11377 (mmix_target_asm_function_prologue): Move calculation of last used
11378 saved-stack-register into...
11379 (mmix_machine_dependent_reorg): New function. Update to also handle
11380 !TARGET_ABI_GNU.
11381 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
11382 register names, simplify somewhat by new variable regno.
11383 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
11384 register.
11385 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
11386 emitting register names.
11387 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
11388 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
11389 Remove fixed FIXME.
11390 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
11391 Declare.
11392
11393 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
11394
11395 2002-04-30 Richard Henderson <rth@redhat.com>
11396
11397 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
11398 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
11399 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
11400 emit_tfmode_cvt): New.
11401 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
11402 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
11403 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
11404 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
11405 * config/sparc/sparc-protos.h: Update.
11406
11407 2002-04-30 Janis Johnson <janis187@us.ibm.com>
11408
11409 * install.texi (Final install): Add to the list of info to include
11410 in a report of a successful bootstrap, and add link to 3.1 list.
11411
11412 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
11413
11414 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
11415 (mode): Add vector modes
11416 (i387): Kill attribute.
11417 (unit): New attribute.
11418 (length_immediate): Grok new types.
11419 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
11420 (modrm): Use "unit".
11421 (memory): Handle MMX/SSE properly.
11422 (scheduling descriptions): Kill uses of fop1.
11423 (sse, mmx, fp patterns): Set type and mode properly.
11424
11425 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
11426
11427 * pa.c (override_options): Default to PA8000 scheduling.
11428 * doc/invoke.texi (HP-PA options): Mention newly added 7300
11429 scheduling parameter.
11430
11431 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
11432 handling of double precision multiplies.
11433
11434 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
11435 fpdiv and fpsqrt instructions.
11436 (7200 & 7300 scheduling): Fix typo in handling of
11437 store-load and store-store penalties.
11438
11439 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11440
11441 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
11442 mips. Add two missing commas.
11443
11444 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
11445
11446 * doc/contrib.texi (Contributors): Update Paolo Carlini's
11447 and Benjamin Kosnik's entries.
11448
11449 2002-04-29 David S. Miller <davem@redhat.com>
11450
11451 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
11452 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
11453 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
11454 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11455
11456 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11457
11458 * combine.c (find_split_point): Use gen_int_mode.
11459
11460 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
11461
11462 Merging code from dfa-branch:
11463
11464 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
11465
11466 * genautomata.c (output_reserv_sets): Fix typo.
11467
11468 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
11469
11470 * genautomata.c (output_reserv_sets): Remove
11471 next_cycle_output_flag.
11472
11473 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
11474
11475 * sched-rgn.c (init_ready_list): Make the DFA code handle
11476 USE/CLOBBER insns in the same way as the traditional
11477 scheduler.
11478 (new_ready): Similarly..
11479
11480 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
11481
11482 * haifa-sched.c (schedule_block): Change the DFA state only after
11483 issuing insn.
11484
11485 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
11486
11487 * pa.c (hppa_use_dfa_pipeline_interface): New function.
11488 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
11489 (override_options): Add PA7300 scheduling support.
11490 (pa_adjust_cost): Update various comments. Properly
11491 handle anti and output dependencies when using the
11492 DFA scheduler.
11493 (pa_issue_rate): Add PA7300 scheduling support.
11494 (pa_can_combine_p): Call extract_insn before calling
11495 constrain_operands (taken from mainline tree).
11496 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
11497 * pa.md (cpu attr): Add 7300. Rewrite pipeline
11498 descriptions using DFA descriptions. Add PA7300
11499 scheduling support.
11500
11501 2002-03-30 David S. Miller <davem@redhat.com>
11502
11503 Add UltraSPARC-III DFA scheduling support.
11504 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
11505 Update FP conditional move on register insn patterns to use it, as
11506 appropriate.
11507 (define_attr cpu): Add ultrasparc3.
11508 (define_attr us3load_type): New, update integer load patterns to
11509 set it, as appropriate.
11510 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
11511 (rest): Add UltraSPARC3 scheduling description.
11512 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
11513 (PROCESSOR_ULTRASPARC3): New.
11514 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
11515 ({ASM,CPP}_CPU_SPEC): Likewise.
11516 (REGISTER_MOVE_COST): Likewise.
11517 (RTX_COSTS): Likewise.
11518 * config/sparc/sparc.c (sparc_override_options,
11519 sparc_initialize_trampoline, sparc64_initialize_trampoline,
11520 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11521 sparc_issue_rate): Likewise.
11522 * config/sparc/sol2.h: Likewise.
11523 * config/sparc/sol2-sld-64.h: Likewise.
11524 * config/sparc/linux64.h: Likewise.
11525
11526 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
11527
11528 * doc/md.texi: Add comments about usage the latency time for the
11529 different dependencies and about case when two or more conditions
11530 in different define_insn_reservations returns TRUE for an insn.
11531
11532 * doc/md.texi: Add reference for automaton based pipeline
11533 description.
11534
11535 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
11536
11537 * doc/passes.texi: Add missed information about genattrtab.
11538
11539 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
11540
11541 * genautomata.c (output_automata_list_transition_code): Check
11542 automata_list on NULL.
11543
11544 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
11545
11546 * genautomata.c (output_insn_code_cases,
11547 output_automata_list_min_issue_delay_code,
11548 output_automata_list_transition_code,
11549 output_automata_list_state_alts_code): Comment the functions.
11550
11551 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
11552
11553 * genautomata.c (automata_list_el_t): New typedef.
11554 (get_free_automata_list_el,free_automata_list_el,
11555 free_automata_list, automata_list_hash, automata_list_eq_p,
11556 initiate_automata_lists, automata_list_start, automata_list_add,
11557 automata_list_finish, finish_automata_lists,
11558 output_insn_code_cases, output_automata_list_min_issue_delay_code,
11559 output_automata_list_transition_code,
11560 output_automata_list_state_alts_code, add_automaton_state,
11561 form_important_insn_automata_lists): New functions and prototypes.
11562 (insn_reserv_decl): Add members important_automata_list and
11563 processed_p.
11564 (ainsn): Add members important_p.
11565 (automata_list_el): New structure.
11566 (first_free_automata_list_el, current_automata_list,
11567 automata_list_table): New global variables.
11568 (create_ainsns): Initiate member important_p.
11569 (output_internal_min_issue_delay_func): Generate the switch and
11570 call output_insn_code_cases.
11571 (output_internal_trans_func, output_internal_state_alts_func):
11572 Ditto.
11573 (generate): Call initiate_automata_lists.
11574 (automaton_states): New global variable.
11575 (expand_automata): Call form_important_insn_automata_lists.
11576 (write_automata): Call finish_automata_lists.
11577
11578 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
11579
11580 * genautomata.c (add_excls, add_presence_absence): Check that
11581 cpu units in the sets belong the same automaton.
11582
11583 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
11584 about that cpu units in the sets belong the same automaton.
11585
11586 * doc/md.texi: Ditto.
11587
11588 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
11589 Nitin Gupta <niting@noida.hcltech.com>
11590
11591 * config/sh/sh.c (sh_use_dfa_interface): New function.
11592
11593 (sh_issue_rate): New Function.
11594 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
11595 TARGET_SCHED_ISSUE_RATE: define.
11596
11597 * config/sh/sh.md: Add DFA based pipeline description for SH4.
11598
11599 (define_attr insn_class): New attribute used for DFA
11600 scheduling.
11601 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
11602 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
11603 cmpeqdi_t): Likewise.
11604
11605 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
11606 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
11607 ex_group.
11608 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
11609
11610 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11611
11612 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
11613 break.
11614
11615 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11616
11617 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
11618 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
11619 necessary.
11620 (output_dfa_start_func): Initiate new variable insn_codes_length,
11621 (write_automata): Output definition of the new variable.
11622
11623 2001-10-02 David S. Miller <davem@redhat.com>
11624
11625 * haifa-sched.c (advance_one_cycle): New function.
11626 (schedule_block): Use it.
11627 (queue_to_ready): Use it, and also make sure to advance the DFA
11628 state on all stall cycles, not just those where insn_queue links
11629 are found.
11630
11631 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
11632
11633 * haifa-sched.c (max_issue): Remove last_p argument. Only return
11634 non-zero if the highest-priority instruction could be scheduled.
11635 (choose_ready): Remove last argument from max_issue call.
11636
11637 2001-09-28 David S. Miller <davem@redhat.com>
11638
11639 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
11640 ultrasparc and 3 for other multi-issue sparcs.
11641
11642 2001-09-27 David S. Miller <davem@redhat.com>
11643
11644 * config/sparc/sparc.md (cycle_display): New pattern.
11645 * config/sparc/sparc.c (sparc_cycle_display): New.
11646 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
11647
11648 2001-09-25 David S. Miller <davem@redhat.com>
11649
11650 Convert all of Sparc scheduling to DFA
11651 * config/sparc/sparc.md: Kill all define_function_unit
11652 directives and replace with DFA equivalent.
11653 * config/sparc/sparc.c (ultrasparc_adjust_cost,
11654 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
11655 ultra_fpmode_conflict_exists, ultra_find_type,
11656 ultra_build_types_avail, ultra_flush_pipeline,
11657 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
11658 ultrasparc_variable_issue, ultrasparc_sched_init,
11659 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
11660 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
11661 ultra_cur_hist, ultra_cycles_elapsed): Kill.
11662 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11663 ultrasparc_store_bypass_p): New.
11664 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
11665 Declare.
11666
11667 2001-09-24 David S. Miller <davem@redhat.com>
11668
11669 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
11670 ready->vec[foo] not ready[foo].
11671
11672 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11673
11674 * doc/md.texi: Correct examples for define_insn_reservations
11675 `mult' and `div'.
11676
11677 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11678
11679 * genautomata.c (create_automata): Print message about creation of
11680 each automaton.
11681 (generate): Remove printing meease about creation of
11682 automata.
11683
11684 2001-09-05 David S. Miller <davem@redhat.com>
11685
11686 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11687 * config/sparc/linux64.h: Likewise.
11688
11689 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
11690
11691 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
11692 schedule_block, sched_init, sched_finish): Add missed calls of
11693 use_dfa_pipeline_interface.
11694
11695 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
11696 Ditto.
11697
11698 * sched-vis.c (get_visual_tbl_length): Ditto.
11699
11700 2001-08-27 Richard Henderson <rth@redhat.com>
11701
11702 * genattr.c (main): Emit state_t even when not doing scheduling.
11703
11704 2001-08-27 Richard Henderson <rth@redhat.com>
11705
11706 * genautomata.c (expand_automata): Always create a description.
11707
11708 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
11709
11710 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
11711 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
11712 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
11713 RTL constructions.
11714
11715 * genattr.c (main): New variable num_insn_reservations. Increase
11716 it if there is DEFINE_INSN_RESERVATION. Output automaton based
11717 pipeline hazard recognizer interface.
11718
11719 * genattrtab.h: New file.
11720
11721 * genattrtab.c: Include genattrtab.h.
11722 (attr_printf, check_attr_test, make_internal_attr,
11723 make_numeric_value): Move protypes into genattrtab.h. Define them
11724 as external.
11725 (num_dfa_decls): New global variable.
11726 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
11727 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
11728 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
11729 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
11730
11731 * genautomata.c: New file.
11732
11733 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
11734
11735 * sched-int.h: (curr_state): Add the external definition for
11736 automaton pipeline interface.
11737 (haifa_insn_data): Add comments for members blockage and units.
11738
11739 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11740 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11741 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11742 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11743 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11744 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11745 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
11746 macros.
11747 (TARGET_SCHED): Use the new macros.
11748
11749 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
11750 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
11751 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
11752 dfa_bubble): New members in gcc_target.sched.
11753
11754 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
11755 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
11756 (insn_queue): Redefine it as pointer to array.
11757 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
11758 INSN_QUEUE_SIZE.
11759 (max_insn_queue_index_macro_value): New variable.
11760 (curr_state, dfa_state_size, ready_try): New varaibles for
11761 automaton interface.
11762 (ready_element, ready_remove, max_issue): New function prototypes
11763 for automaton interface.
11764 (choose_ready): New function prototype.
11765 (insn_unit, blockage_range): Add comments.
11766 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
11767 FUNCTION_UNITS_SIZE == 0.
11768 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
11769 actual_hazard, potential_hazard): Add comments.
11770 (insn_cost): Use cost -1 as undefined value. Remove
11771 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
11772 pipeline interface.
11773 (ready_element, ready_remove): New functions for automaton
11774 interface.
11775 (schedule_insn): Add new code for automaton pipeline interface.
11776 (queue_to_ready): Add new code for automaton pipeline interface.
11777 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
11778 (debug_ready_list): Print newline when the queue is empty.
11779 (max_issue): New function for automaton pipeline interface.
11780 (choose_ready): New function.
11781 (schedule_block): Add new code for automaton pipeline interface.
11782 Print ready list before scheduling each insn.
11783 (sched_init): Add new code for automaton pipeline interface.
11784 Initiate insn cost by -1.
11785 (sched_finish): Free the current automaton state and finalize
11786 automaton pipeline interface.
11787
11788 * sched-rgn.c: Include target.h.
11789 (init_ready_list, new_ready, debug_dependencies): Add new code for
11790 automaton pipeline interface.
11791
11792 * sched-vis.c: Include target.h.
11793 (get_visual_tbl_length): Add code for automaton interface.
11794 (target_units, print_block_visualization): Add comments.
11795
11796 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
11797 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
11798 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
11799 (getruntime.o, genautomata.o): New entries.
11800 (genattrtab.o): Add new dependency file genattrtab.h.
11801 (genattrtab): Add new dependencies. Link it with `libm.a'.
11802 (getruntime.o, hashtab.o): New entries for canadian cross.
11803
11804 * doc/md.texi: Description of automaton based model.
11805
11806 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
11807 Add comments.
11808 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11809 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11810 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11811 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11812 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11813 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11814 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
11815 hook descriptions.
11816 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
11817 MAX_DFA_ISSUE_RATE): New macro descriptions.
11818
11819 * doc/contrib.texi: Add dfa based scheduler contribution.
11820
11821 * doc/gcc.texi: Add more information about genattrtab.
11822
11823 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11824
11825 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
11826 adjust_address_nv call.
11827
11828 2002-04-29 Janis Johnson <janis187@us.ibm.com>
11829
11830 * doc/install.texi (Testing): Provide additional information, and
11831 a stronger encouragement, for running the testsuites.
11832
11833 2002-04-29 DJ Delorie <dj@redhat.com>
11834
11835 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
11836 given in upper case.
11837
11838 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11839
11840 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
11841 Solaris 2 <widec.h> if missing.
11842 * fixinc/fixincl.x: Regenerate.
11843 * fixinc/tests/base/widec.h: New file.
11844
11845 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
11846
11847 * toplev.c (f_options): Add "profile" switch so that
11848 -fno-profile can be used to disable -p.
11849
11850 2002-04-29 Bernd Schmidt <bernds@redhat.com>
11851
11852 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
11853 UV2DImode.
11854 * tree.c (build_common_tree_nodes_2): Likewise.
11855 * tree.h (enum tree_index): Likewise.
11856 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
11857
11858 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
11859 entries.
11860 (init_mmx_sse_builtins): Initialize SSE2 builtins.
11861 (ix86_expand_builtin): Add support for SSE2 builtins.
11862 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
11863 (VALID_SSE_REG_MODE): Use it.
11864 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
11865 (enum ix86_builtins): Add SSE2 builtins.
11866 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
11867 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
11868 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
11869 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
11870 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
11871 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
11872 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
11873 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
11874 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
11875 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
11876 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
11877 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
11878 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
11879 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11880 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
11881 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
11882 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
11883 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
11884 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
11885 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
11886 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
11887 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
11888 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
11889 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
11890 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
11891 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
11892 lfence_insn): New patterns.
11893 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11894 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11895
11896 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
11897
11898 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11899
11900 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11901
11902 * doc/contrib.texi (Contributors): Add Paolo Carlini and
11903 Janis Johnson.
11904 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11905 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11906 and CPU instead of cpu.
11907
11908 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
11909
11910 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11911 variables.
11912 (lang_independent_options): Add -fif-conversion, -fif-conversion2
11913 (rest_of_compilation): Do if conversion only when asked for.
11914 (parse_options_and_default_flags): Set new variables to 1 for -O1
11915 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11916
11917 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
11918
11919 * i386.c (dbx64_register_map): Fix typo.
11920
11921 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
11922
11923 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11924 real_one_half, real_bb_freq_max): New static variables.
11925 (debug_profile_bbauxs): Kill.
11926 (process_note_predictions): Kill unused variable.
11927 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11928 volatile double.
11929 (propagate_freq): Use REAL_ARITHMETICS.
11930 (estimate_bb_frequencies): Likevise; init new static variables.
11931 * Makefile.in (predict.o): Add dependency on real.h
11932
11933 2002-04-28 David S. Miller <davem@redhat.com>
11934
11935 PR target/6500
11936 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11937 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
11938 several {reads,writes} instead.
11939 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11940 Define.
11941
11942 2002-04-27 David S. Miller <davem@redhat.com>
11943
11944 PR target/6494
11945 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11946 of the stack bias.
11947
11948 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11949 including signal.h and sys/ucontext.h, not needed.
11950
11951 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
11952
11953 * varasm.c (output_constant_def): Correct test for not calling
11954 ENCODE_SECTION_INFO for INTEGER_CST.
11955
11956 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
11957
11958 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11959 keep most cases as function eval_token.
11960 (eval_token): New function.
11961 (_cpp_parse_expr): Read token here for improved diagnostics.
11962 Don't use op_as_text. Detect bad ':' here.
11963 (reduce): Don't detect bad ':' here.
11964 (op_as_text): Remove.
11965 * cpphash.h (_cpp_test_assertion): Change prototype.
11966 * cpplib.c (_cpp_test_assertion): Change prototype.
11967
11968 2002-04-28 Richard Henderson <rth@redhat.com>
11969
11970 PR c/5154
11971 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11972 (ggc_mark_rtx_children): New.
11973
11974 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11975
11976 PR target/6496
11977 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11978 after call peepholes for UltraSPARC.
11979 (call + jump 64-bit peepholes): Remove.
11980
11981 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11982
11983 PR c/6497
11984 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11985 result as temporary value.
11986
11987 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11988
11989 PR c++/6396
11990 * toplev.c (rest_of_compilation): Only run regrename and copy
11991 propagation if optimizing.
11992
11993 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11994
11995 PR optimization/6475
11996 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11997 register of REGNO_DECL (i).
11998 * Makefile.in (reload1.o): Add $(TREE_H).
11999
12000 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
12001
12002 * cppexp.c (lex): Update to use state.skip_eval.
12003 (struct op): Remove prio and flags members.
12004 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
12005 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
12006 (LEFT_ASSOC): New macro.
12007 (optab): New table of operator priorities and flags.
12008 (SHIFT): Update.
12009 (_cpp_parse_expr): Clean up logic. Return bool. Use a
12010 malloc-ed parser stack.
12011 (reduce): New; reduce the operator stack.
12012 (_cpp_expand_op_stack): Expand the operator stack as necessary.
12013 * cpphash.h (struct op): Predeclare.
12014 (struct cpp_reader): New members op_stack, op_limit.
12015 (struct lexer_state): New member skip_eval.
12016 (_cpp_parse_expr): Update.
12017 (_cpp_expand_op_stack): New.
12018 * cpplib.c (do_if): Update.
12019 * cppinit.c (cpp_create_reader): Create op stack.
12020 (cpp_destroy): And destroy it.
12021 * cpplib.h (CPP_LAST_CPP_OP): Correct.
12022 (TTYPE_TABLE): Correct.
12023
12024 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12025
12026 PR c/6343
12027 * c-decl.c (duplicate_decls): Call merge_weak.
12028 * c-pragma.c (apply_pragma_weak): Warn about misuse.
12029 * output.h (merge_weak): Prototype merge_weak.
12030 * varasm.c (merge_weak): New function.
12031 (declare_weak): Make sure we don't give an error on VAR_DECLs.
12032 Mark RTL with SYMBOL_REF_WEAK.
12033
12034 2002-04-27 Kurt Garloff <garloff@suse.de>
12035
12036 * tree-inline.c (inlinable_function_p): Improve heuristics
12037 by using a smoother function to cut down allowable inlinable size.
12038 * param.def: Add parameters max-inline-insns-single,
12039 max-inline-slope, min-inline-insns that determine the exact
12040 shape of the above function.
12041 * param.h: Likewise.
12042
12043 2002-04-26 Richard Henderson <rth@redhat.com>
12044
12045 * c-parse.in (malloced_yyss, malloced_yyvs): New.
12046 (yyoverflow): Re-add. Set them.
12047 (free_parser_stacks): New.
12048 * c-common.h: Declare it.
12049 * c-lex.c (c_common_parse_file): Call it.
12050
12051 2002-04-26 Richard Henderson <rth@redhat.com>
12052
12053 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
12054 for fallthru search.
12055
12056 2002-04-26 Eric Christopher <echristo@redhat.com>
12057
12058 PR optimization/3700
12059 * config/mips/mips.c (mips_issue_rate): Define. New function.
12060 (TARGET_SCHED_ISSUE_RATE): Use.
12061
12062 2002-04-25 David S. Miller <davem@redhat.com>
12063
12064 PR target/6422
12065 * reorg.c (optimize_skip): Do not allow exception causing
12066 instructions to be considered for delay slots.
12067 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
12068 (relax_delay_slots): Do not try to consider exception causing
12069 instructions as redundant.
12070
12071 2002-04-26 Richard Henderson <rth@redhat.com>
12072
12073 PR c/5225
12074 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
12075
12076 2002-04-26 Mark Mitchell <mark@codesourcery.com>
12077
12078 PR bootstrap/6445
12079 * config/i386/i386.md (untyped_call): Return the value in a float
12080 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
12081 TARGET_80387.
12082
12083 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
12084
12085 * tree.c (tree_int_cst_lt): Compare constants whose types differ
12086 in unsigned-ness correctly.
12087
12088 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
12089
12090 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
12091 portable runtime model.
12092
12093 2002-04-26 Richard Henderson <rth@redhat.com>
12094
12095 * c-parse.in (yyoverflow): Revert.
12096
12097 2002-04-26 David Edelsohn <edelsohn@gnu.org>
12098 Richard Henderson <rth@redhat.com>
12099
12100 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
12101 result as temporary value.
12102
12103 2002-04-26 Richard Henderson <rth@redhat.com>
12104
12105 PR c/3581
12106 * c-common.c (fix_string_type): Split out of ...
12107 (combine_strings): ... here. Take a varray, not a tree list.
12108 (c_expand_builtin_printf): Use fix_string_type.
12109 * c-common.h: Update decls.
12110 * c-parse.in (string): Remove. Update all uses to use STRING
12111 instead, and not call combine_strings.
12112 (yylexstring): New.
12113 (_yylex): Use it.
12114 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
12115 (build_asm_stmt): Likewise.
12116 * objc/objc-act.c (my_build_string): Use fix_string_type.
12117 (build_objc_string_object): Build varray for combine_strings.
12118
12119 2002-04-26 Bo Thorsen <bo@suse.co.uk>
12120
12121 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
12122 x86-64.
12123
12124 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
12125
12126 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
12127 (HAVE_NO_R_OPERAND): Remove.
12128 (HAVE_VALUE): Remove.
12129 (op_to_prio): Update.
12130 (UNARY): Don't alter flags.
12131 (_cpp_parse_expr): want_value used to indicate whether
12132 a number or unary operator is expected next. Distinguish
12133 unary and binary +/-.
12134 (op_as_text): Update for unary operators.
12135
12136 2002-04-25 Richard Henderson <rth@redhat.com>
12137
12138 PR c/2161
12139 * c-parse.in (yyoverflow): New.
12140
12141 2002-04-25 Richard Henderson <rth@redhat.com>
12142
12143 PR c/2098
12144 * c-common.c (shorten_compare): Simplfy conditions leading to
12145 the generation of a warning.
12146
12147 2002-04-25 Richard Henderson <rth@redhat.com>
12148
12149 PR c/2035
12150 * expmed.c (extract_bit_field): Fall through to generic code rather
12151 than aborting on subreg special case.
12152
12153 2002-04-25 David S. Miller <davem@redhat.com>
12154
12155 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
12156 for DECL being NULL.
12157
12158 2002-04-25 Steve Christiansen <smc@us.ibm.com>
12159
12160 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
12161
12162 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
12163
12164 * c-decl.c (grokdeclarator): Remove outdated ??? note
12165 on invalid declaration of flexible array members.
12166
12167 2002-04-25 Richard Henderson <rth@redhat.com>
12168
12169 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
12170
12171 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
12172
12173 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
12174 needed by the compiler, even if they are used as global regs.
12175
12176 2002-04-25 Matt Hiller <hiller@redhat.com>
12177
12178 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
12179 functions.
12180 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
12181 of the corresponding functions.
12182 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
12183 New prototypes.
12184
12185 2002-04-25 Matt Hiller <hiller@redhat.com>
12186
12187 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
12188
12189 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
12190 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
12191 registers, adjust comment accordingly.
12192 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
12193 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
12194 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
12195 for coprocessor registers.
12196 (ADDITIONAL_REGISTER_NAMES): Include
12197 ALL_COP_ADDITIONAL_REGISTER_NAMES.
12198
12199 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
12200 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
12201 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
12202 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
12203 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
12204
12205 (mips_char_to_class): Adjust comment to include coprocessor
12206 constraint letters.
12207
12208 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
12209 New functions.
12210 (mips_reg_names, mips_regno_to_class): Include coprocessor
12211 information.
12212 (mips_sw_reg_names): Ditto, make non-static.
12213 (mips_move_1word): Handle moves to and from coprocessor registers.
12214 (mips_move_2words): Handle moves to and from coprocessor
12215 registers.
12216 (mips_class_max_nregs, mips_register_move_cost): Handle
12217 coprocessor register classes.
12218 (override_options): Initialize mips_char_to_class and
12219 mips_hard_regno_mode_ok properly for coprocessor registers.
12220
12221 * config/mips/mips.md (movdi_internal, movdi_internal2,
12222 movsi_internal1, movsi_internal2): Add constraint-sets for
12223 coprocessor registers.
12224 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
12225 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
12226 isn't mips.
12227 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
12228 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
12229 isn't mips.
12230 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
12231 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
12232 isn't mips.
12233 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
12234 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
12235 isn't mips.
12236
12237 * doc/tm.texi: Document feature.
12238
12239 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
12240
12241 * integrate.c (function_attribute_inlinable_p): Simplify.
12242 Check the table pointer is not NULL.
12243
12244 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
12245
12246 * doc/c-tree.texi: Fix typo in introduction.
12247
12248 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
12249
12250 * c-common.h (c_common_parse_file): Update.
12251 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
12252 * c-lex.c (YYDEBUG): Get from c-lex.h.
12253 (c_common_parse_file): Update.
12254 * c-lex.h (YYDEBUG, yydebug): New.
12255 * c-parse.in (YYDEBUG): Get from c-lex.h.
12256 (c_set_yydebug): Remove.
12257 * c-tree.h (c_set_yydebug): Remove.
12258 * langhooks-def.h (lhd_do_nothing_i): New.
12259 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
12260 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
12261 * langhooks.c (lhd_do_nothing_i): New.
12262 (lhd_set_yydebug): Remove.
12263 * langhooks.h (struct lang_hooks): Update.
12264 * toplev.c (set_yydebug): New.
12265 (compile_file): Update call to parse_file hook.
12266 (decode_d_option): Update.
12267 objc:
12268 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
12269
12270 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
12271
12272 * loop.c (load_mems): Don't change the interface of called functions.
12273
12274 * calls.c (expand_call): Take current_function_pretend_args_size
12275 into account when setting argblock for sibcalls.
12276
12277 2002-04-24 Matt Hiller <hiller@redhat.com>
12278
12279 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
12280 * c-lex.c: Ditto.
12281
12282 * cpplex.c (skip_line_comment): Process comment one multibyte
12283 character at a time rather than one char at a time, if
12284 appropriate.
12285 (parse_string): Process string one multibyte character at a time
12286 rather than one char at a time, if appropriate.
12287 * c-lex.c (lex_string): Lex and copy multibyte strings
12288 appropriately.
12289 * cpplib.h (cppchar_t): Change to unsigned.
12290
12291 2002-04-24 Richard Henderson <rth@redhat.com>
12292
12293 PR c/3467
12294 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
12295 for c99.
12296
12297 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
12298
12299 * sh.c (sh_va_arg): If argument was passed by reference,
12300 dereference the pointer.
12301
12302 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12303
12304 * sh.md (divsi3_i4_media): Use match_operand for input values
12305 rather than hard registers.
12306 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
12307 unnecessarily through hard registers. Keep copies of pseudo
12308 registers outside of the libcall sequence.
12309
12310 * sh.md (casesi_shift_media): Add modes.
12311
12312 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
12313 values in memory.
12314
12315 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
12316
12317 * attribs.c (c_common_attribute_table): Move table and handlers
12318 to c-common.c.
12319 (format_attribute_table, lang_attribute_table,
12320 lang_attribute_common): Remove.
12321 (init_attributes): Replace NULL pointers with pointers to the
12322 empty table.
12323 (handle_packed_attribute, handle_nocommon_attribute,
12324 handle_common_attribute, handle_noreturn_attribute,
12325 handle_noinline_attribute, handle_always_inline_attribute,
12326 handle_used_attribute, handle_unused_attribute,
12327 handle_const_attribute, handle_transparent_union_attribute,
12328 handle_constructor_attribute, handle_destructor_attribute,
12329 handle_mode_attribute, handle_section_attribute,
12330 handle_aligned_attribute, handle_weak_attribute,
12331 handle_alias_attribute, handle_visibility_attribute,
12332 handle_no_instrument_function_attribute, handle_malloc_attribute,
12333 handle_no_limit_stack_attribute, handle_pure_attribute,
12334 handle_deprecated_attribute, handle_vector_size_attribute,
12335 vector_size_helper): Move to c-common.c.
12336 * c-common.c (c_common_attribute_table,
12337 handle_packed_attribute, handle_nocommon_attribute,
12338 handle_common_attribute, handle_noreturn_attribute,
12339 handle_noinline_attribute, handle_always_inline_attribute,
12340 handle_used_attribute, handle_unused_attribute,
12341 handle_const_attribute, handle_transparent_union_attribute,
12342 handle_constructor_attribute, handle_destructor_attribute,
12343 handle_mode_attribute, handle_section_attribute,
12344 handle_aligned_attribute, handle_weak_attribute,
12345 handle_alias_attribute, handle_visibility_attribute,
12346 handle_no_instrument_function_attribute, handle_malloc_attribute,
12347 handle_no_limit_stack_attribute, handle_pure_attribute,
12348 handle_deprecated_attribute, handle_vector_size_attribute,
12349 vector_size_helper): Move from attribs.c.
12350 * c-common.h (c_common_attribute_table,
12351 c_common_format_attribute_table): New.
12352 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12353 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12354 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
12355 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
12356 (LANG_HOOKS_INITIALIZER): Update.
12357 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
12358 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
12359 * target.h: Update comment.
12360 * tree.c (default_target_attribute_table): Remove.
12361 * tree.h (default_target_attribute_table, format_attribute_table,
12362 lang_attribute_table, lang_attribute_common): Remove.
12363 objc:
12364 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12365 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12366
12367 2002-04-24 Jason Merrill <jason@redhat.com>
12368
12369 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
12370 * dwarf2out.c (dwarf_attr_name): Support it.
12371 (gen_array_type_die): Emit it.
12372 (lookup_type_die): No special handling for VECTOR_TYPE.
12373 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
12374
12375 2002-04-24 Richard Henderson <rth@redhat.com>
12376
12377 * config/mips/mips.md (movdi_usd): Renumber.
12378
12379 2002-04-24 David S. Miller <davem@redhat.com>
12380
12381 PR target/6420
12382 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
12383 32-bit Sparc and current_function_returns_struct is true.
12384
12385 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12386
12387 * loop.c (canonicalize_condition): Use gen_int_mode.
12388
12389 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
12390
12391 * config/rs6000/altivec.h: Cleanup file. Add non individual
12392 variants.
12393 (vec_vaddubm): New.
12394 (vec_vadduhm): New.
12395 (vec_vadduwm): New.
12396 (vec_vaddfp): New.
12397 (vec_vaddcuw): New.
12398 (vec_vaddubs): New.
12399 (vec_vaddsbs): New.
12400 (vec_vadduhs): New.
12401 (vec_vadduws): New.
12402 (vec_vaddsws): New.
12403 (vec_vand): New.
12404 (vec_vandc): New.
12405 (vec_vavgub): New.
12406 (vec_vavgsb): New.
12407 (vec_vavguh): New.
12408 (vec_vavgsh): New.
12409 (vec_vavguw): New.
12410 (vec_vavgsw): New.
12411 (vec_vrfip): New.
12412 (vec_vcmpbfp): New.
12413 (vec_vcmpequb): New.
12414 (vec_vcmpequh): New.
12415 (vec_vcmpequw): New.
12416 (vec_vcmpeqfp): New.
12417 (vec_vcmpgefp): New.
12418 (vec_vcmpgtub): New.
12419 (vec_vcmpgtsb): New.
12420 (vec_vcmpgtuh): New.
12421 (vec_vcmpgtsh): New.
12422 (vec_vcmpgtuw): New.
12423 (vec_vcmpgtsw): New.
12424 (vec_vcmpgtfp): New.
12425 (vec_vcmpgefp): New.
12426 (vec_vcfux): New.
12427 (vec_vcfsx): New.
12428 (vec_vctsxs): New.
12429 (vec_vctuxs): New.
12430 (vec_vexptefp): New.
12431 (vec_vrfim): New.
12432 (vec_lvx): New.
12433 (vec_lvebx): New.
12434 (vec_lvehx): New.
12435 (vec_lde): Add vector float variant.
12436 (vec_lvewx): New.
12437 (vec_lvxl): New.
12438 (vec_vlogefp): New.
12439 (vec_vmaddfp): New.
12440 (vec_vmhaddshs): New.
12441 (vec_vmaxub): New.
12442 (vec_vmaxsb): New.
12443 (vec_vmaxuh): New.
12444 (vec_vmaxsh): New.
12445 (vec_vmaxuw): New.
12446 (vec_vmaxsw): New.
12447 (vec_vmaxsw): New.
12448 (vec_vmaxfp): New.
12449 (vec_vmrghb): New.
12450 (vec_vmrghh): New.
12451 (vec_vmrghw): New.
12452 (vec_vmrglb): New.
12453 (vec_vmrglh): New.
12454 (vec_vmrglw): New.
12455 (vec_vminub): New.
12456 (vec_vminsb): New.
12457 (vec_vminuh): New.
12458 (vec_vminsh): New.
12459 (vec_vminuw): New.
12460 (vec_vminsw): New.
12461 (vec_vminfp): New.
12462 (vec_vmladduhm): New.
12463 (vec_vmhraddshs): New.
12464 (vec_msumubm): New.
12465 (vec_vmsummbm): New.
12466 (vec_vmsumuhm): New.
12467 (vec_vmsumshm): New.
12468 (vec_vmsumuhs): New.
12469 (vec_vmsumshs): New.
12470 (vec_vmuleub): New.
12471 (vec_vmulesb): New.
12472 (vec_vmuleuh): New.
12473 (vec_vmulesh): New.
12474 (vec_vmuloub): New.
12475 (vec_mulosb): New.
12476 (vec_vmulouh): New.
12477 (vec_vmulosh): New.
12478 (vec_vnmsubfp): New.
12479 (vec_vnor): New.
12480 (vec_vor): New.
12481 (vec_vpkuhum): New.
12482 (vec_vpkuwum): New.
12483 (vec_vpkpx): New.
12484 (vec_vpkuhus): New.
12485 (vec_vpkshss): New.
12486 (vec_vpkuwus): New.
12487 (vec_vpkswss): New.
12488 (vec_vpkshus): New.
12489 (vec_vpkswus): New.
12490 (vec_vperm): New.
12491 (vec_vrefp): New.
12492 (vec_vrlb): New.
12493 (vec_vrlh): New.
12494 (vec_vrlw): New.
12495 (vec_vrfin): New.
12496 (vec_vrsqrtefp): New.
12497 (vec_vsel): New.
12498 (vec_vslb): New.
12499 (vec_vslh): New.
12500 (vec_vslw): New.
12501 (vec_vsldoi): New.
12502 (vec_vsl): New.
12503 (vec_vslo): New.
12504 (vec_vspltb): New.
12505 (vec_vsplth): New.
12506 (vec_vspltw): New.
12507 (vec_vspltisb): New.
12508 (vec_vspltish): New.
12509 (vec_vspltisw): New.
12510 (vec_vsrb): New.
12511 (vec_vsrh): New.
12512 (vec_vsrw): New.
12513 (vec_vsrab): New.
12514 (vec_vsrah): New.
12515 (vec_vsraw): New.
12516 (vec_vsr): New.
12517 (vec_vsro): New.
12518 (vec_stvx): New.
12519 (vec_stvebx): New.
12520 (vec_stvehx): New.
12521 (vec_stvewx): New.
12522 (vec_stvxl): New.
12523 (vec_vsububm): New.
12524 (vec_vsubuhm): New.
12525 (vec_vsubuwm): New.
12526 (vec_vsubfp): New.
12527 (vec_vsubcuw): New.
12528 (vec_vsububs): New.
12529 (vec_vsubsbs): New.
12530 (vec_vsubuhs): New.
12531 (vec_vsubshs): New.
12532 (vec_vsubuws): New.
12533 (vec_vsubsws): New.
12534 (vec_vsum4ubs): New.
12535 (vec_vsum4sbs): New.
12536 (vec_vsum4shs): New.
12537 (vec_vsum2sws): New.
12538 (vec_vsumsws): New.
12539 (vec_vrfiz): New.
12540 (vec_vupkhsb): New.
12541 (vec_vupkhpx): New.
12542 (vec_vupkhsh): New.
12543 (vec_vupklsb): New.
12544 (vec_vupklpx): New.
12545 (vec_vupklsh): New.
12546 (vec_vxor): New.
12547
12548 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
12549
12550 PR c/5430
12551 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
12552 added literals from substracted literals.
12553 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
12554 (fold) [associate]: Preserve MINUS_EXPR if needed.
12555
12556 2002-04-23 Zack Weinberg <zack@codesourcery.com>
12557
12558 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
12559 are obsoleted.
12560
12561 2002-04-23 Tom Tromey <tromey@redhat.com>
12562
12563 * gcc.c: Added --resource. For PR java/6314.
12564
12565 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12566
12567 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
12568 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
12569 these libraries.
12570
12571 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12572
12573 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
12574
12575 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12576
12577 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
12578 workaround.
12579 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
12580 (ix86_expand_clrstr): Fix typo.
12581 * loop.c (gen_load_of_final_value): New.
12582 (loop_givs_rescan, strength_reduce, check_dbra_loop):
12583 Use it.
12584
12585 2002-04-23 Roger Sayle <roger@eyesopen.com>
12586
12587 * builtins.c (builtin_memset_gen_str): New function.
12588 (expand_builtin_memset): Optimize the case of constant length, but
12589 unknown value.
12590
12591 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
12592
12593 * config/rs6000/altivec.h (vec_step): Remove extraneous
12594 parentheses.
12595 (vec_ctu): Cast return.
12596
12597 2002-04-23 Alan Modra <amodra@bigpond.net.au>
12598
12599 PR target/6413
12600 * function.h: (struct function): Add profile_label_no field.
12601 (current_function_profile_label_no): Define.
12602 * function.c: (profile_label_no): New static var.
12603 (expand_function_start): Increment it, and copy to
12604 current_function_profile_label_no.
12605 * output.h (profile_label_no): Delete.
12606 * final.c (profile_label_no): Delete.
12607 (profile_function): Use current_function_profile_label_no.
12608 (final_end_function): Don't increment profile_label_no here.
12609 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
12610 profile_label_no with current_function_profile_label_no.
12611 * config/pa/pa.c (current_function_number): Delete.
12612 (pa_output_function_prologue): Don't output profile label here.
12613 (hppa_profile_hook): Use label_no param rather than
12614 current_function_number.
12615 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
12616 * config/pa/pa.h: .. here.
12617 (FUNCTION_PROFILER): Output profile label here.
12618
12619 2002-04-22 Eric Christopher <echristo@redhat.com>
12620
12621 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
12622 patch of 2002-04-09 due to binutils issues.
12623 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
12624
12625 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12626
12627 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
12628 constraint to 'o' for m=r and r=m alternatives.
12629 ("*movv8hi_internal1"): Same.
12630 ("*movv16qi_internal1"): Same.
12631 ("*movv4sf_internal1"): Same.
12632
12633 2002-04-22 Janis Johnson <janis187@us.ibm.com>
12634
12635 * rtl.h (RTX_FLAG): New macro.
12636 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
12637 * final.c (alter_subreg): Use macro to access rtx flag.
12638 * integrate.c (copy_rtx_and_substitute): Use new access macro.
12639 * print-rtl.c (print_rtx): Use new access macro.
12640
12641 * cse.c (insert): Check rtx code before accessing flag.
12642
12643 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
12644 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
12645 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
12646 convert_const_symbol_ref, make_canonical, make_alternative_compare,
12647 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
12648 simplify_test_exp, optimize_attrs, simplify_by_exploding,
12649 find_and_mark_used_attributes, unmark_used_attributes,
12650 add_values_to_cover, simplify_with_current_value,
12651 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
12652 copy_rtx_unchanging, main): Use new access macros.
12653
12654 2002-04-22 Tom Rix <trix@redhat.com>
12655
12656 * expmed.c (init_expmed): Generate shifted constant once.
12657
12658 2002-04-22 Zack Weinberg <zack@codesourcery.com>
12659
12660 * c-lex.c (lex_charconst): Call convert to get constant in
12661 proper type; don't just smash the type field.
12662 Fixes PR c/6300.
12663
12664 * config.gcc: Add list of obsolete configurations. Disallow
12665 building these without --enable-obsolete.
12666 * doc/install.texi: Document --enable-obsolete and obsoletion
12667 policy. Mention obsoletion of individual targets in
12668 appropriate places.
12669
12670 2002-04-22 Richard Henderson <rth@redhat.com>
12671
12672 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
12673
12674 2002-04-22 Mark Mitchell <mark@codesourcery.com>
12675
12676 PR f/6138.
12677 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
12678 (walk_fixup_memory_subreg): Likewise.
12679 (fixup_var_refs_insn): Adjust accordingly.
12680 (fixup_var_refs_1): Likewise.
12681
12682 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
12683
12684 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
12685 LIBPATH_ARCH64_SPEC): Define.
12686 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
12687 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
12688 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
12689 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
12690
12691 2002-04-22 Joel Sherrill <joel@OARcorp.com>
12692
12693 * gthr-rtems.h: Correct prototypes to remove warnings.
12694
12695 2002-04-22 Richard Henderson <rth@redhat.com>
12696
12697 PR c/6344
12698 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
12699
12700 * gcse.c (free_insn_expr_list_list): New.
12701 (clear_modify_mem_tables): Use it. Fix bit set usage.
12702 (canon_list_insert): Use EXPR_LISTs for expressions.
12703 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
12704
12705 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
12706
12707 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
12708 file change and include code to _cpp_pop_buffer.
12709 * cpphash.h (struct pending_option): Predeclare.
12710 (struct cpp_reader): New member next_include_file.
12711 (_cpp_pop_file_buffer): Update.
12712 (_cpp_push_next_buffer): Update, rename.
12713 * cppinit.c (cpp_destroy): Free include chain and pending here.
12714 (cpp_finish_options): Simplify.
12715 (_cpp_push_next_buffer): Rename and clean up.
12716 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
12717 Clarify.
12718 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
12719
12720 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12721
12722 * config/rs6000/altivec.h (vec_xor): Add variant for both args
12723 being vector signed int.
12724 (vec_andc): Same.
12725 (vec_xor): Add variant for both args being vector signed char.
12726 Remove redundant variant.
12727 (vec_andc): Same.
12728
12729 2002-04-21 David S. Miller <davem@redhat.com>
12730
12731 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
12732 compare mode in output RTL.
12733
12734 2002-04-22 David Edelsohn <edelsohn@gnu.org>
12735
12736 * config/rs6000/rs6000.c (rs6000_override_options): Correct
12737 style and formatting of previous patch.
12738
12739 2002-04-22 Alan Modra <amodra@bigpond.net.au>
12740
12741 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
12742 flag_pic for ABI_AIX.
12743
12744 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12745
12746 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
12747 * cppfiles.c (read_include_file): Similarly.
12748 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
12749 uxstrdup ustrchr, ufputs): Similarly.
12750 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
12751 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
12752 cpp_ideq, parse_identifier, parse_number): Similarly.
12753 * cpplib.c (struct directive, dequote_string, D, run_directive,
12754 cpp_push_buffer): Similarly.
12755 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
12756 _cpp_create_definition, check_trad_stringification,
12757 cpp_macro_definition): Similarly.
12758
12759 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12760
12761 * cppmacro.c (funlike_invocation_p): Don't step back
12762 over CPP_EOF.
12763
12764 2002-04-21 David Edelsohn <edelsohn@gnu.org>
12765
12766 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
12767 labelno.
12768
12769 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
12770
12771 * doc/invoke.texi: Remove Chill references.
12772 * doc/gcc.texi: Update last modified date.
12773
12774 2002-04-20 Kazu Hirata <kazu@hxi.com>
12775
12776 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
12777 push and pop. Replace add.l with add.w.
12778
12779 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12780
12781 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
12782 multiply instructions for H8/300H case.
12783
12784 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12785
12786 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
12787 Bum three instructions from each routine.
12788
12789 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
12790
12791 * Makefile.in: Update.
12792 * decl.c (push_c_function_context, pop_c_function_context,
12793 mark_c_function_context): Rename for consistency.
12794 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
12795 * c-tree.h (push_c_function_context, pop_c_function_context,
12796 mark_c_function_context): Rename for consistency.
12797 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12798 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12799 * function.c (init_lang_status, save_lang_status,
12800 restore_lang_status, mark_lang_status, free_lang_status):
12801 Move to langhooks.h.
12802 (push_function_context_to, pop_function_context_from,
12803 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
12804 Update.
12805 * function.h (init_lang_status, save_lang_status,
12806 restore_lang_status, mark_lang_status, free_lang_status):
12807 Move to langhooks.h.
12808 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
12809 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
12810 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
12811 LANG_HOOKS_FUNCTION_INITIALIZER): New.
12812 (LANG_HOOKS_INITIALIZER): Update.
12813 (lhd_do_nothing_f): New.
12814 * langhooks.h (struct lang_hooks_for_functions): New.
12815 (struct lang_hooks): New hooks.
12816 * langhooks.c (lhd_do_nothing_f): New.
12817 objc:
12818 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12819 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12820
12821 2002-04-19 David S. Miller <davem@redhat.com>
12822
12823 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12824 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
12825
12826 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12827
12828 PR optimization/3756
12829 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
12830 x = ((int) y < 0) ? cst1 : cst2.
12831
12832 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12833
12834 PR c/6358
12835 * function.c: Reapply patch for c/6358.
12836 (expand_function_end): Copy decl_rtl's mode, not
12837 current_function_return_rtx mode.
12838
12839 2002-04-19 Joel Sherrill <joel@OARcorp.com>
12840
12841 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
12842 targets.
12843
12844 2002-04-19 Tom Tromey <tromey@redhat.com>
12845
12846 * doc/install.texi (Specific): Update status of Solaris 2.8.
12847 For PR libgcj/6158.
12848
12849 2002-04-19 Andreas Schwab <schwab@suse.de>
12850
12851 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
12852 (PUT_REAL): Restore old definition.
12853
12854 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
12855 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12856
12857 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
12858 binutils 2.11.2 and higher generate smaller binaries than Sun's
12859 native tools.
12860
12861 2002-04-19 Mark Mitchell <mark@codesourcery.com>
12862
12863 PR c++/6352
12864 * toplev.c (rest_of_compilation): Do not defer functions for which
12865 TREE_SYMBOL_REFERENCED has already been set.
12866
12867 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
12868
12869 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
12870 alternative.
12871
12872 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
12873
12874 * builtins.c: Include langhooks.h.
12875 (lang_type_promotes_to): Remove.
12876 (expand_builtin_va_arg): Use new hook.
12877 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
12878 (simple_type_promotes_to): Move to c-typeck.c.
12879 * c-common.h (simple_type_promotes_to): Remove.
12880 * c-decl.c (duplicate_decls, grokdeclarator): Update.
12881 * c-format.c: Include langhooks.h.
12882 (check_format_types): Update.
12883 * c-tree.h (c_type_promotes_to): New.
12884 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
12885 (type_lists_compatible_p): Update.
12886 * langhooks-def.h (lhd_type_promotes_to): New.
12887 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
12888 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12889 * langhooks.c (lhd_type_promotes_to): New.
12890 * langhooks.h (struct lang_hooks_for_types): New hook.
12891 * tree.h (lang_type_promotes_to): Remove.
12892 objc:
12893 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12894
12895 2002-04-18 Richard Henderson <rth@redhat.com>
12896
12897 * function.c: Revert patch for c/6358.
12898
12899 2002-04-18 Richard Henderson <rth@redhat.com>
12900
12901 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12902 blocks. Handle multiple references to the TRAP block. Handle
12903 non-adjacent THEN and OTHER blocks.
12904
12905 2002-04-18 Richard Henderson <rth@redhat.com>
12906
12907 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12908 crash with no type for by-mode libcalls.
12909
12910 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
12911
12912 2002-04-18 Bob Wilson <bob.wilson@acm.org>
12913
12914 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12915 __xtensa_nonlocal_goto): Use a syscall instructions to flush
12916 the register windows.
12917
12918 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12919
12920 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12921 appropriate. Document need for extended precision even when
12922 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
12923 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
12924 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
12925 instead of relying on later syntax error when REAL_WIDTH > 5.
12926 * real.c: Define NE based only on whether or not we have a
12927 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12928 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
12929 define GET_REAL and PUT_REAL as simple memcpy operations; no
12930 need to byteswap or round.
12931 Use #error instead of #ifdef-ing out the entire file, for
12932 prompt error detection.
12933
12934 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12935
12936 2002-04-18 David S. Miller <davem@redhat.com>
12937
12938 * config/sparc/sparc.h (BRANCH_COST): Define.
12939
12940 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12941 does it.
12942
12943 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
12944
12945 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12946 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12947 propagate_block calls after relaxation loop using new variable
12948 stabilized_prop_flags.
12949
12950 2002-04-18 Richard Henderson <rth@redhat.com>
12951
12952 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12953 (ia64_va_arg): Expect variable sized types by reference.
12954 * config/ia64/ia64-protos.h: Update.
12955 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
12956 ia64_function_arg_pass_by_reference.
12957
12958 2002-04-18 Richard Henderson <rth@redhat.com>
12959
12960 * ifcvt.c: Include except.h.
12961 (block_has_only_trap): Break out from find_cond_trap.
12962 (find_cond_trap): Use it. Always delete the trap block.
12963 (merge_if_block): Allow then block null. Be less simplistic about
12964 what insns can end a block.
12965 * Makefile.in (ifcvt.o): Depend on except.h.
12966
12967 * config/ia64/ia64.md (trap, conditional_trap): New.
12968
12969 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12970
12971 PR c/6358
12972 * function.c (assign_parms): Assign hard current_function_return_rtx
12973 register here...
12974 (expand_function_end): ...not here.
12975
12976 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
12977
12978 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12979 * c-tree.h (c_incomplete_type_error): New.
12980 * c-typeck.c (require_complete_type, build_component_ref): Update.
12981 (incomplete_type_error): Rename.
12982 * langhooks-def.h (lhd_incomplete_type_error): New.
12983 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12984 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12985 * langhooks.c (lhd_incomplete_type_error): New.
12986 * langhooks.h (struct lang_hooks_for_types): New hook.
12987 * tree.c (size_in_bytes): Use new hook.
12988 * tree.h (incomplete_type_error): Remove.
12989 objc:
12990 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12991
12992 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12993
12994 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12995 TARGET_FLOAT_FORMAT blocks.
12996
12997 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12998
12999 * doc/install.texi (Downloading the source): Do not mention Chill
13000 any longer, but mention Ada.
13001 (Configuration): Do not mention Chill any longer.
13002
13003 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
13004
13005 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
13006
13007 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
13008
13009 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
13010 in last patch.
13011
13012 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13013
13014 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
13015 instead of unsigned_type.
13016
13017 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
13018
13019 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
13020 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
13021 later.
13022
13023 2002-04-18 Bernd Schmidt <bernds@redhat.com>
13024
13025 * attribs.c (vector_type_node_list): New static variable.
13026 (handle_vector_size_attribute): Use it to avoid generating a
13027 new type node each time we are called.
13028
13029 * combine.c (subst): Avoid trying to make a vector mode subreg of
13030 an integer constant.
13031 (gen_lowpart_for_combine): Likewise.
13032
13033 2002-04-18 Roger Sayle <roger@eyesopen.com>
13034 Jakub Jelinek <jakub@redhat.com>
13035
13036 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
13037 for integer constant c (if x has unsigned type or sign bit is not
13038 set in c). This folds the zero/sign extension into the bit-wise and
13039 operation.
13040
13041 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13042
13043 PR middle-end/6205
13044 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
13045 otherwise xorps.
13046
13047 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
13048
13049 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
13050
13051 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
13052
13053 * gcc.c (read_specs): Detect and fail if an attempt is made to
13054 rename a spec string to an already existing string.
13055
13056 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
13057
13058 * config/s390/s390.c (legitimize_pic_address): Do not generate
13059 illegal address constant without CONST.
13060
13061 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13062
13063 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
13064 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13065
13066 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
13067
13068 PR optimization/6305
13069 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
13070 to make sure previous reloads are taken into account. Generate
13071 better code if one operand is an in-range immediate constant.
13072
13073 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
13074
13075 * doc/install.texi (Building): libgcj requires GNU make.
13076
13077 2002-04-17 Jakub Jelinek <jakub@redhat.com>
13078
13079 PR bootstrap/6315
13080 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
13081 even if hard quad and register is not floating.
13082 (movtf reg<-mem split): Disallow splitting if hard quad and
13083 register is floating.
13084 (movtf mem<-reg split): Likewise.
13085 * config/sparc/sparc.c (fp_register_operand): New predicate.
13086 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
13087
13088 2002-04-17 Zack Weinberg <zack@codesourcery.com>
13089
13090 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
13091 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
13092 (unprotoize.o): Ditto. Build from protoize.c. Define
13093 UNPROTOIZE on command line.
13094 * protoize.c: Include cppdefault.h. Delete include_defaults.
13095 (in_system_include_dir): Use cpp_include_defaults (defined in
13096 cppdefault.o).
13097 * unprotoize.c: Delete file.
13098
13099 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
13100
13101 * config/rs6000/altivec.h (vec_ld): Add array variants.
13102 (vec_lde): Same.
13103 (vec_ldl): Same.
13104
13105 2002-04-17 Alan Matsuoka <alanm@redhat.com>
13106 Aldy Hernandez <aldyh@redhat.com>
13107
13108 * config/rs6000/altivec.h: Define __ALTIVEC__.
13109 (bool): New.
13110 (__pixel): New.
13111 (pixel): New.
13112 (vec_cfux): New.
13113 (vec_vmaddfp): New.
13114 (vec_vsldoi): New.
13115 Add parentheses to all macro arguments.
13116
13117 2002-04-16 Richard Henderson <rth@redhat.com>
13118
13119 PR c++/6320
13120 * except.c (remove_eh_handler): Insert inner regions at beginning
13121 of sibling chain. Refactor expressions.
13122
13123 2002-04-16 Richard Henderson <rth@redhat.com>
13124
13125 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
13126 * config/sparc/sol2-gas-bi.h: New file.
13127 * config.gcc (sparc*-solaris): Add it as needed.
13128 * configure.in (AS_SPARC64_FLAG): Remove check.
13129 * config.in, configure: Regenerate.
13130
13131 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
13132
13133 2002-04-16 Richard Henderson <rth@redhat.com>
13134
13135 * config/mips/mips.c (override_options): Don't override N32 for
13136 a 64-bit ISA.
13137
13138 PR 6202
13139 * config/mips/mips.md (can_delay): Split out of existing define_delays.
13140 (HILO_delay): Set can_delay false.
13141
13142 2002-04-16 Dale Johannesen <dalej@apple.com>
13143
13144 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
13145 instruction addresses.
13146 (rs6000_output_function_epilogue): Likewise.
13147
13148 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
13149
13150 * c-parse.in (poplevel, compstmt_start,
13151 compstmt_primary_start): Add ending ';', in accordance
13152 with POSIX.
13153
13154 2002-04-16 Richard Henderson <rth@redhat.com>
13155
13156 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
13157 Adjust tm_file order to get TARGET_DEFAULT set properly.
13158 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
13159 * doc/install.texi (sparc-solaris): Update.
13160
13161 2002-04-16 Dale Johannesen <dalej@apple.com>
13162
13163 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
13164 comparison operands do not match each other or if modes of
13165 conditions do not match result.
13166
13167 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
13168
13169 PR target/6305
13170 * config/s390/s390.md (mulsidi3): Set both subregs of the
13171 multiword register.
13172
13173 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
13174
13175 * config/rs6000/altivec.h (vec_addc): Type check.
13176
13177 2002-04-16 Jakub Jelinek <jakub@redhat.com>
13178
13179 PR middle-end/6279
13180 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
13181
13182 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
13183
13184 2002-04-15 Richard Henderson <rth@redhat.com>
13185
13186 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
13187 call_really_used_regs too.
13188
13189 2002-04-15 Richard Henderson <rth@redhat.com>
13190
13191 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
13192
13193 2002-04-15 David S. Miller <davem@redhat.com>
13194
13195 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
13196 as being CLOBBERed.
13197
13198 2002-04-16 Jakub Jelinek <jakub@redhat.com>
13199
13200 PR c/6290
13201 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
13202 CONST_VECTOR is { 0, ... 0 }.
13203
13204 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
13205
13206 * doc/install.texi (Installing GCC: Configuration): Clarify
13207 the only supported ways to configure gcc.
13208
13209 2002-04-15 Roland McGrath <roland@frob.com>
13210
13211 * config.gcc (alpha*-*-gnu*): New target configuration.
13212 * config/alpha/gnu.h: New file for it.
13213 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
13214
13215 2002-04-16 Mark Mitchell <mark@codesourcery.com>
13216
13217 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
13218 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
13219 * tree.h (expand_start_stmt_expr): Update prototype.
13220 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
13221 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
13222 on the STMT_EXPR created for the inline function.
13223
13224 2002-04-15 Richard Henderson <rth@redhat.com>
13225
13226 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
13227 config/i386/linux-aout.h, config/i386/linux-oldld.h,
13228 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
13229 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
13230 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
13231 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
13232 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
13233 Define __gnu_linux__, not gnu_linux.
13234 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
13235
13236 2002-04-15 Mark Mitchell <mark@codesourcery.com>
13237
13238 Remove Chill front end.
13239 * gcc.c (default_compilers): Remove Chill entries.
13240 * ch: Remove directory.
13241 * doc/frontends.texi: Remove information about Chill.
13242 * doc/sourcebuild.texi: Likewise.
13243 * doc/standards.texi: Likewise.
13244
13245 2002-04-15 Douglas B Rupp <rupp@gnat.com>
13246
13247 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
13248 (LONGLONG_STANDALONE): Define.
13249
13250 2002-04-15 David S. Miller <davem@redhat.com>
13251
13252 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
13253 Call emit_library_call with LCT_NORMAL.
13254 (sparc_initialize_trampoline): Use LCT_foo instead of
13255 magic constant in emit_library_call invocations.
13256 (sparc64_initialize_trampoline): Likewise.
13257 (sparc_profile_hook): Likewise.
13258 * config/sparc/sparc.md: Likewise.
13259
13260 * config/sparc/sparc.c (sparc_extra_constraint_check):
13261 Fix type of argument 'c'.
13262 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
13263 Likewise.
13264
13265 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
13266
13267 * diagnostic.h (output_buffer_state): Redefine.
13268 (output_format_decoder): New macro.
13269 (output_prefixing_rule): Likewise.
13270 (output_line_cutoff): Likewise.
13271 (diagnostic_format_decoder): Adjust.
13272 (diagnostic_prefixing_rule): Likewise.
13273 (diagnostic_line_cutoff): Likewise.
13274 (diagnostic_state): Likewise.
13275 (diagnostic_kind_count): Likewise.
13276 (diagnostic_buffer): Now a macro.
13277
13278 * diagnostic.c (diagnostic_buffer): Remove definition.
13279 (output_is_line_wrapping): Adjust.
13280 (set_real_maximum_length): Likewise.
13281 (output_set_maximum_length): Likewise.
13282 (init_output_buffer): Likewise.
13283 (lhd_print_error_function): Likewise.
13284 (output_do_verbatim): Likewise.
13285
13286 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
13287
13288 * cpperror.c (print_location): Don't print include chain
13289 if line == 0.
13290 (cpp_begin_message): Update to use DL_ macros.
13291 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13292 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13293 cpp_notice, cpp_notice_from_errno): Remove.
13294 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13295 level.
13296 (cpp_errno): New.
13297 * cppexp.c (CPP_ICE): Remove.
13298 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
13299 lex, integer_overflow, _cpp_parse_expr): Update.
13300 * cppfiles.c (read_include_file, find_include_file,
13301 handle_missing_header, _cpp_read_file, remap_filename): Update.
13302 * cpphash.h (enum error_type): Remove.
13303 (_cpp_begin_message): Update.
13304 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
13305 cpp_handle_option, cpp_post_options): Update.
13306 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
13307 skip_whitespace, parse_identifier, parse_slow, parse_string,
13308 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
13309 cpp_interpret_charconst): Update.
13310 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
13311 lex_macro_node, do_undef, glue_header_name, parse_include,
13312 do_include_common, read_flag, do_line, do_linemarker, do_ident,
13313 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
13314 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
13315 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
13316 _cpp_pop_buffer, do_diagnostic): Update.
13317 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
13318 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
13319 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13320 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13321 cpp_notice, cpp_notice_from_errno): Remove.
13322 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13323 level.
13324 (cpp_errno): New.
13325 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
13326 collect_args, enter_macro_context, save_parameter, parse_params,
13327 _cpp_create_definition, check_trad_stringification,
13328 cpp_macro_definition): Update.
13329 * cppmain.c (cpp_preprocess_file): Update.
13330 * fix-header.c (read_scan_file): Update.
13331
13332 2002-04-14 Andreas Schwab <schwab@suse.de>
13333
13334 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
13335
13336 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13337
13338 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
13339
13340 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13341
13342 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
13343 not gnu_hurd.
13344
13345 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
13346
13347 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
13348
13349 2002-04-13 Joel Sherrill <joel@OARcorp.com>
13350
13351 * config/sparc/t-elf: Enable v8 multilibs. Impacts
13352 sparc-elf and sparc-rtems targets.
13353
13354 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13355
13356 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
13357 defined, and __gnu_hurd__ wherever __GNU__ is defined.
13358 * arm/linux-elf.h: Likewise.
13359 * cris/aout.h: Likewise.
13360 * cris/linux.h: Likewise.
13361 * i370/linux.h: Likewise.
13362 * i386/gnu.h: Likewise.
13363 * i386/linux-aout.h: Likewise.
13364 * i386/linux-oldld.h: Likewise.
13365 * i386/linux.h: Likewise.
13366 * i386/linux64.h: Likewise.
13367 * ia64/linux.h: Likewise.
13368 * m68k/linux-aout.h: Likewise.
13369 * m68k/linux.h: Likewise.
13370 * mips/linux.h: Likewise.
13371 * pa/pa-linux.h: Likewise.
13372 * pj/linux.h: Likewise.
13373 * rs6000/sysv4.h: Likewise.
13374 * s390/linux.h: Likewise.
13375 * sh/linux.h: Likewise.
13376 * sparc/linux-aout.h: Likewise.
13377 * sparc/linux.h: Likewise.
13378 * sparc/linux64.h: Likewise.
13379 * xtensa/linux.h: Likewise.
13380
13381 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
13382
13383 * stmt.c (check_unique_operand_names): Expect operand names to
13384 be strings rather than identifiers. Use simple_cst_equal to
13385 compare them.
13386 (resolve_operand_name_1): Make same identifier to string change here.
13387 * c-parse.in (asm_operand): Convert a named operand into a string.
13388 * cp/parse.y (asm_operand): Likewise.
13389
13390 2002-04-13 Andreas Schwab <schwab@suse.de>
13391
13392 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
13393
13394 2002-04-12 Mark Mitchell <mark@codesourcery.com>
13395
13396 Revert these changes:
13397
13398 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13399
13400 PR c++/5571
13401 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13402
13403 2002-04-12 Richard Henderson <rth@redhat.com>
13404
13405 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
13406 (sparc*-*-solaris): Clean up header files.
13407 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
13408 and plan on generating 64-bit code.
13409 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
13410 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
13411 * config/sparc/sol2-sld-64.h: Rename ...
13412 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
13413 for AS_SPARC64_FLAG not defined.
13414 * config/sparc/sol2-gld-bi.h: New.
13415 * config/sparc/sol2-sld.h: Remove.
13416 * config/sparc/sol26-sld.h: New.
13417 * config/sparc/sol2.h: Tidy comments.
13418 * doc/install.texi: Document sparc-solaris configury changes.
13419
13420 2002-04-12 Richard Henderson <rth@redhat.com>
13421
13422 * recog.c (offsettable_address_p): Match the logic in adjust_address.
13423
13424 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
13425 in 64-bit mode only. Use only for 32-bit or MEDLOW.
13426
13427 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13428
13429 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
13430
13431 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
13432
13433 * pa.c (pa_can_combine_p): Call extract_insn before calling
13434 constrain_operands.
13435
13436 2002-04-12 Douglas B Rupp <rupp@gnat.com>
13437
13438 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
13439 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
13440 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13441 (CPP_PREDEFINES): Handle __declspec.
13442 * config/i386/t-interix (USER_H): Remove.
13443
13444 2002-04-12 DJ Delorie <dj@redhat.com>
13445
13446 * integrate.c (compare_blocks): Make comparisons safe for when
13447 sizeof(int) < sizeof(char *).
13448 (find_block): Likewise.
13449
13450 2002-04-12 Jan Hubicka <jh@suse.cz>
13451 David Edelsohn <edelsohn@gnu.org>
13452
13453 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
13454 registers.
13455 (symbol_ref_operand): New.
13456 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
13457 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
13458
13459 2002-04-12 Andreas Schwab <schwab@suse.de>
13460
13461 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
13462 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
13463 overrides the definition in config/svr4.h.
13464
13465 2002-04-12 Eric Norum <eric.norum@usask.ca>
13466
13467 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
13468 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
13469 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
13470 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
13471 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
13472 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
13473 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
13474 definitions to config/rtems.h and make the targets more similar.
13475
13476 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13477
13478 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
13479 POINTERS_EXTEND_UNSIGNED.
13480 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
13481 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
13482
13483 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
13484 not specified.
13485
13486 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
13487
13488 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
13489 depends on TARGET_SHMEDIA, not TARGET_SH5.
13490
13491 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
13492
13493 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
13494 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
13495
13496 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
13497
13498 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
13499 no r0 clobber.
13500
13501 2002-04-12 Andreas Schwab <schwab@suse.de>
13502
13503 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
13504
13505 2002-04-12 Richard Henderson <rth@redhat.com>
13506
13507 PR bootstrap/4191
13508 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
13509
13510 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
13511 modes spanning multiple hard regs.
13512
13513 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
13514
13515 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13516
13517 * pa.c (pa_output_function_prologue): Don't accumulate the total
13518 number of code bytes when using TARGET_64BIT, or gas, SOM and not
13519 the portable runtime.
13520 (output_deferred_plabels): Handle 64bit plabels.
13521 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
13522 generating pic code using the GAS assembler for object formats that
13523 are not SOM (ie., ELF32 and ELF64).
13524 (output_millicode_call): Check attribute type if attribute length is 28.
13525 Likewise use $PIC_pcrel$0. Only call get_attr_length and
13526 dbr_sequence_length once.
13527 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
13528 dbr_sequence_length once.
13529 * pa.h (TARGET_SOM): Define if not defined.
13530 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
13531 with GAS and not SOM.
13532 (jump, call_internal_reg, call_value_internal_reg): Likewise.
13533 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
13534
13535 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13536
13537 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
13538 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
13539 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
13540 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
13541 elfos.h and dbxelf.h values are fine now.
13542 * config/i386/freebsd.h, config/alpha/freebsd.h
13543 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
13544
13545 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13546
13547 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
13548 or set Acpu or Amachine. Reformat.
13549 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13550 define.
13551 (LINK_SPEC): Do not need to undef.
13552 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
13553 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
13554 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13555 define.
13556 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
13557 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
13558 (LINK_SPEC): Do not need to undef.
13559 (DONT_USE_BUILTIN_SETJMP): Do not define.
13560 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
13561 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
13562 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
13563 Remove trailing spaces.
13564 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
13565 __ELF__, or set Acpu or Amachine. Reformat.
13566 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13567 define.
13568
13569 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13570
13571 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
13572 all other *-*-freebsd* targets.
13573
13574 2002-04-11 Richard Henderson <rth@redhat.com>
13575
13576 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
13577
13578 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13579
13580 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
13581 Include {cpu}/{cpu}.h thru tm_file.
13582 (alpha*-*-linux*ecoff): Remove target.
13583 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
13584 (LINK_SPEC): Remove, is not OS independent.
13585 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
13586 (LINK_SPEC): Do not need to #undef any longer.
13587 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
13588 any longer.
13589 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
13590 __ELF__.
13591 (LINK_SPEC): Moved here from alpha/elf.h.
13592 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
13593 SUB_CPP_PREDEFINES.
13594 * config/alpha/linux-ecoff.h: Remove.
13595 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
13596 (CPP_SPEC): Define _POSIX_SOURCE as needed.
13597 (CPP_SUBTARGET_SPEC): Do not define.
13598 (LINK_SPEC): Do not need to #undef any longer.
13599 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
13600 * config/alpha/vms.h: Likewise.
13601
13602 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
13603
13604 * doc/extend.texi: Remove old claim that typedefs cannot have
13605 an alignment attribute.
13606
13607 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13608
13609 PR optimization/6177
13610 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
13611 bitpos is 0 and bitsize CONCAT size.
13612
13613 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13614
13615 PR c/6223
13616 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
13617
13618 2002-04-10 David O'Brien <obrien@FreeBSD.org>
13619
13620 * config/alpha/freebsd.h: Minor reformatting.
13621 (CPP_SPEC): Define ELF and add cpp_subtarget.
13622 (ASM_SPEC): No longer needed.
13623
13624 2002-04-11 Richard Henderson <rth@redhat.com>
13625
13626 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
13627 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
13628 (dimode mem/zero splitter): New.
13629
13630 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
13631
13632 * config/cris/cris.c (cris_override_options): Tweak error message
13633 for PIC not implemented.
13634
13635 * config/cris/cris.h: Tweak comments related to parameter-passing.
13636
13637 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
13638
13639 2002-04-10 Richard Henderson <rth@redhat.com>
13640
13641 * except.c (add_ehl_entry): Allow duplicates after landing pad
13642 creation.
13643
13644 2002-04-10 David Edelsohn <edelsohn@gnu.org>
13645
13646 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
13647
13648 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
13649
13650 * c-decl.c (c_init_decl_processing): Move generation of
13651 decls for g77_integer_type_node and friends from here ...
13652 * c-common.c (c_common_nodes_and_builtins): ... to here.
13653
13654 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
13655
13656 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
13657 is only used as frame pointer when frame_pointer_needed is true.
13658
13659 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
13660
13661 PR target/817
13662 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
13663 for the fact that the pool entry uses two words.
13664 (movdf_hard_insn): Similarly. Also, ADR instruction can span
13665 1k bytes.
13666 (movdf_soft_insn): Similarly.
13667 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
13668 for the fact that the pool entry uses three words.
13669
13670 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
13671
13672 * config/mips/mips.c (mips_va_arg): When using the struct version
13673 of the EABI va_list, allow arguments in the register save area to
13674 take up less room than a stack argument.
13675
13676 2002-04-10 Richard Henderson <rth@redhat.com>
13677
13678 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
13679 if EXPAND_INITIALIZER.
13680
13681 2002-04-09 Richard Henderson <rth@redhat.com>
13682
13683 * config/alpha/alpha.md (movdi_er_maybe_g): New.
13684 * config/alpha/alpha.c (alpha_expand_mov): Use it.
13685
13686 2002-04-10 Alan Modra <amodra@bigpond.net.au>
13687
13688 PR optimization/6233
13689 * rtlanal.c (pure_call_p): New function.
13690 * rtl.h (pure_call_p): Declare.
13691 * loop.c (prescan_loop): Use it to set has_nonconst_call.
13692 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
13693
13694 2002-04-09 Eric Christopher <echristo@redhat.com>
13695
13696 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
13697 information to .comm directive.
13698
13699 2002-04-09 Richard Henderson <rth@redhat.com>
13700
13701 PR c/5078
13702 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
13703
13704 2002-04-09 Richard Henderson <rth@redhat.com>
13705
13706 * basic-block.h (flow_delete_block_noexpunge): Declare.
13707 (expunge_block_nocompact): Declare.
13708 * cfg.c (expunge_block_nocompact): Split out from ...
13709 (expunge_block): ... here.
13710 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
13711 (flow_delete_block_noexpunge): Split out from ...
13712 (flow_delete_block): ... here.
13713 * cfgcleanup.c (delete_unreachable_blocks): Compact while
13714 removing dead blocks.
13715 * except.c (exception_handler_labels): Remove.
13716 (exception_handler_label_map): New.
13717 (struct eh_region): Add aka member.
13718 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
13719 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
13720 (for_each_eh_label, for_each_eh_label_1): New.
13721 (init_eh): Register exception_handler_label_map.
13722 (free_eh_status): Use free_region.
13723 (find_exception_handler_labels): Use the map, not the list.
13724 (remove_exception_handler_label): Likewise.
13725 (maybe_remove_eh_handler): Likewise.
13726 (remove_eh_handler): Use the region aka bitmap.
13727 * except.h (exception_handler_labels): Remove.
13728 (for_each_eh_label): Declare.
13729 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
13730 * loop.c (invalidate_loops_containing_label): New.
13731 (find_and_verify_loops): Use it. Use for_each_eh_label.
13732 * sched-rgn.c (is_cfg_nonregular): Use
13733 current_function_has_exception_handlers.
13734
13735 2002-04-09 Richard Henderson <rth@redhat.com>
13736
13737 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
13738 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
13739 Do not return changed status.
13740 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
13741 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
13742 New functions that do return changed status.
13743 * sbitmap.h: Update decls.
13744 * gcse.c, lcm.c: Use _cg functions as needed.
13745
13746 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
13747
13748 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
13749 (sh64-*-elf*, sh-*-rtemself*): Likewise.
13750 * config/sh/embed_bb.c: New file.
13751 * config/sh/embed-elf.h: New file.
13752 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
13753 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
13754 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13755 __PTRDIFF_TYPE__ .
13756 (SUBTARGET_CPP_PTR_SPEC): Don't define.
13757 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
13758 Add subtarget_asm_endian_spec.
13759 (ASM_SPEC): Use subtarget_asm_endian_spec.
13760 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
13761 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
13762 (WCHAR_UNSIGNED): Define.
13763 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
13764 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13765 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
13766 Fix value.
13767 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
13768 (sh_adjust_cost): Likewise.
13769 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13770 __PTRDIFF_TYPE__ .
13771 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
13772 (WCHAR_TYPE_SIZE): Likewise.
13773 (ASM_SPEC): Use subtarget_asm_endian_spec.
13774 (SH_ELF_WCHAR_TYPE): #undef/ #define.
13775 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
13776 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
13777 (MAX_WCHAR_TYPE_SIZE): Don't #define .
13778 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
13779 (USER_LABEL_PREFIX): Don't #undef /#define .
13780 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13781 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
13782 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
13783 (ASM_SPEC): Likewise.
13784 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
13785 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
13786 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
13787 (LIB2FUNCS_EXTRA): Define.
13788 * t-sh64 (LIB2FUNCS_EXTRA): Define.
13789 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
13790 (LIB1ASMFUNCS_CACHE): Define.
13791 (LIB2FUNCS_EXTRA): Redefine empty.
13792
13793 2002-04-08 Richard Henderson <rth@redhat.com>
13794
13795 * reorg.c (get_branch_condition): Use reversed_comparison_code.
13796
13797 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13798
13799 * config/m68hc11/larith.asm (__map_data_section): Fix condition
13800 and optimize for size.
13801 (__do_global_ctors): Fix pointer comparison.
13802 (__do_global_dtors): Likewise.
13803
13804 2002-04-09 David S. Miller <davem@redhat.com>
13805
13806 * config/sparc/sparc.c (sparc_extra_constraint_check): New
13807 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
13808 allow reloading pseudos.
13809 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
13810 * config/sparc/sparc-protos.h: Declare it.
13811
13812 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
13813 unsigned comparison warning.
13814 (output_restore_regs): Mark leaf_function as unused.
13815
13816 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13817
13818 * expr.c (is_aligning_offset): New function.
13819 (expand_expr, case COMPONENT_EXPR): Call it.
13820
13821 2002-04-08 David S. Miller <davem@redhat.com>
13822
13823 PR target/6082
13824 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
13825
13826 Make init_priority work on Sparc when using GNU ld.
13827 * config/sparc/linux.h, config/sparc/linux64.h,
13828 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
13829 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
13830 * config/sparc/sol2-gld.h: New file to do the same.
13831 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
13832 sparc/sol2-gld.h to tm_file.
13833
13834 PR optimization/4328
13835 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
13836 * doc/md.texi: Document it.
13837 * config/sparc/sparc.md (movdi_insn_sp64_novis,
13838 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
13839 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
13840 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
13841 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
13842
13843 2002-04-08 Andreas Jaeger <aj@suse.de>
13844
13845 * stmt.c (expand_asm_operands): Revert last patch from Richard
13846 Henderson.
13847
13848 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13849
13850 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
13851 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
13852
13853 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13854
13855 * doc/contrib.texi (Contributors): Add David O'Brien.
13856
13857 2002-04-08 Alan Modra <amodra@bigpond.net.au>
13858
13859 * configure.in (auto-build.h): Use target_alias and build_alias
13860 when running configure.
13861 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
13862 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
13863 * configure: Regenerate.
13864
13865 2002-04-07 David S. Miller <davem@redhat.com>
13866
13867 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
13868
13869 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13870
13871 PR 5933
13872 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
13873 generating 32-bit pic code.
13874
13875 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
13876
13877 * cppinit.c (cpp_create_reader): Initialize
13878 discard_comments_in_macro_exp.
13879 (COMMAND_LINE_OPTIONS): Add "-CC" option.
13880 (cpp_handle_option): Handle "-CC" option.
13881 * cpplex.c (save_comment): If saving a C++ comment in
13882 a directive, convert it to a C comment.
13883 (_cpp_lex_direct): Pass second comment start character to
13884 save_comment to indicate comment type.
13885 * cpplib.c (_cpp_handle_directive): If processing
13886 a "#define" directive and discard_comments_in_macro_exp
13887 is false, re-enable saving of comments.
13888 (lex_macro_node): If discard_comments_in_macro_exp is false,
13889 discard any comments before the macro identifier.
13890 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
13891 member.
13892 * cppmacro.c (cpp_get_token): If expanding a macro while
13893 processing a directive, discard any comments we might encounter.
13894 (parse_params): If discard_comments_in_macro_exp is false,
13895 ignore comments in the macro parameter list.
13896 * gcc.c (cpp_unique_options): Add "-CC" option.
13897 (option_map): Map "--comments-in-macros" to "-CC".
13898 * doc/cppopts.texi: Document "-CC" option.
13899 * f/lang-specs.h: Add "-CC" option.
13900 * testsuite/gcc.dg/cpp/maccom1.c: New test.
13901 * testsuite/gcc.dg/cpp/maccom2.c: New test.
13902 * testsuite/gcc.dg/cpp/maccom3.c: New test.
13903 * testsuite/gcc.dg/cpp/maccom4.c: New test.
13904 * testsuite/gcc.dg/cpp/maccom5.c: New test.
13905 * testsuite/gcc.dg/cpp/maccom6.c: New test.
13906
13907 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
13908
13909 PR middle-end/6180
13910 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13911
13912 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13913
13914 PR c++/5571
13915 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13916
13917 PR opt/5120
13918 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13919 RTX_UNCHANGING_P for the functions arguments when a tail call
13920 is made.
13921
13922 2002-04-06 Jason Merrill <jason@redhat.com>
13923
13924 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13925 (parse_options_and_default_flags): Set them appropriately.
13926 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13927
13928 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
13929
13930 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13931 here.
13932
13933 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13934 semicolon.
13935
13936 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13937 types come in by-reference. Fix typo in comment.
13938
13939 2002-04-05 David S. Miller <davem@redhat.com>
13940
13941 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13942 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13943 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13944 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13945
13946 2002-04-05 David S. Miller <davem@redhat.com>
13947
13948 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13949 are not going to emit return instructions, emit at least a nop
13950 for the sake of sane backtraces.
13951
13952 2002-04-05 Richard Henderson <rth@redhat.com>
13953
13954 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13955
13956 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
13957
13958 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13959
13960 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
13961
13962 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13963 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13964 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13965
13966 2002-04-05 Andreas Schwab <schwab@suse.de>
13967
13968 * c-convert.c: Include c-common.h.
13969 * Makefile.in (c-convert.o): Updated.
13970
13971 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13972
13973 * mklibgcc.in: Use separate libgcc.map for each multilib.
13974 * Makefile.in (distclean): Don't remove libgcc.map here.
13975
13976 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13977
13978 * Makefile.in (s-mlib): Handle --disable-multilib by separate
13979 genmultilib invocation.
13980
13981 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
13982
13983 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13984 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
13985 to num_gprs for symmetry.
13986 * config/mips/mips.c: Adjust accordingly.
13987
13988 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13989
13990 * c-common.c (truthvalue_conversion): Rename, update.
13991 * c-common.h (c_common_truthvalue_conversion): New.
13992 * c-convert.c (convert): Update.
13993 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13994 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13995 * c-typeck.c (build_binary_op, build_unary_op,
13996 build_conditional_expr): Update.
13997 * fold-const.c (constant_boolean_node, fold): Use langhook.
13998 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13999 * langhooks.h (struct lang_hooks): New hook.
14000 * stmt.c (expand_decl_cleanup): Use langhook.
14001 * tree.h (truthvalue_conversion): Remove.
14002 objc:
14003 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14004
14005 2002-04-05 Alan Modra <amodra@bigpond.net.au>
14006
14007 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
14008 Add rules to make null object file.
14009
14010 2002-04-04 Jim Blandy <jimb@redhat.com>
14011
14012 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
14013 macro formal parameter names.
14014
14015 2002-04-04 David S. Miller <davem@redhat.com>
14016
14017 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
14018
14019 2002-04-04 Richard Henderson <rth@redhat.com>
14020
14021 PR middle-end/5099
14022 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
14023 Support copies into and out of memory. Don't accept allows_reg
14024 and allows_mem as gospel.
14025
14026 2002-04-04 Richard Henderson <rth@redhat.com>
14027
14028 PR opt/6165
14029 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
14030 (write_dependence_p): Likewise.
14031
14032 2002-04-04 Richard Henderson <rth@redhat.com>
14033
14034 * predict.c (estimate_bb_frequencies): Do frequency calculation
14035 with a volatile temporary.
14036
14037 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
14038
14039 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
14040
14041 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14042
14043 PR c++/6119
14044 * final.c (final_start_function): Don't bump profile_label_no here...
14045 (final_end_function): ...but here.
14046
14047 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14048
14049 * config/sparc/sparc.md (pic): New attribute.
14050 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
14051 into stack slots.
14052 (split after do_builtin_setjmp_setup): New.
14053
14054 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14055
14056 PR fortran/6106
14057 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
14058 change.
14059
14060 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14061
14062 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
14063 UNITS_PER_WORD for zero sized aggregates.
14064
14065 2002-04-03 David S. Miller <davem@redhat.com>
14066
14067 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
14068 one-character spec for this, just use %(link_gcc_c_sequence).
14069
14070 2002-04-03 David S. Miller <davem@redhat.com>
14071
14072 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
14073 handling.
14074
14075 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14076
14077 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
14078 (DWARF_FRAME_RETURN_COLUMN): Move.
14079 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14080 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
14081 * pa.c (except.h, predict.h): Include.
14082 (FRP): Delete.
14083 (store_reg_modify, set_reg_plus_d): Revise prototypes.
14084 (output_ascii): Add cast.
14085 (store_reg_modify): Revise to add frame notes.
14086 (set_reg_plus_d): Likewise.
14087 (compute_frame_size): Include space for eh data registers in frame if
14088 the current function calls eh_return.
14089 (hppa_expand_prologue): Ensure register %r2 is saved if the current
14090 function calls eh_return. Save eh data registers if the current
14091 function calls eh_return. Fix code to add frame notes. Emit
14092 blockage to prevent insns with frame notes being scheduled in the
14093 delay slot of calls.
14094 (hppa_expand_epilogue): Restore eh data registers and do final stack
14095 adjustment if the current function calls eh_return. Don't add frame
14096 notes.
14097 (output_call): Revise for change in length of call insn. Don't do
14098 return pointer adjustment for an unconditional jump in the delay slot
14099 of a call when using frame notes.
14100 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
14101 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
14102 (ARG_POINTER_CFA_OFFSET): Define.
14103 * pa.md (return_external_pic): New pattern.
14104 (prologue): Correct formatting. Use return_external_pic if current
14105 function calls eh_return.
14106 (call_internal_symref, call_value_internal_symref,
14107 sibcall_internal_symref, sibcall_value_internal_symref): Change default
14108 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
14109 respectively.
14110 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
14111
14112 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
14113 list of targets to check using "nop" insn.
14114 * configure: Rebuilt.
14115
14116 2002-04-04 Alan Modra <amodra@bigpond.net.au>
14117
14118 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
14119
14120 2002-04-03 David S. Miller <davem@redhat.com>
14121
14122 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
14123 library sequence passed to the linker.
14124 (LINK_COMMAND_SPEC): Use it.
14125 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
14126 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
14127 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14128
14129 2002-04-03 Jason Merrill <jason@redhat.com>
14130
14131 * except.c (struct eh_status): Remove protect_list.
14132 (begin_protect_partials, end_protect_partials): Remove.
14133 (add_partial_entry): Remove.
14134 * except.h: Remove prototypes.
14135
14136 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
14137 expand_decl_cleanup_eh.
14138
14139 PR c++/5636
14140 * tree.h (CLEANUP_EH_ONLY): New macro.
14141 * stmt.c (expand_decl_cleanup_eh): New fn.
14142 (expand_cleanups): Check CLEANUP_EH_ONLY.
14143 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
14144 Use expand_decl_cleanup_eh.
14145 (expand_stmt): Adjust.
14146 * c-common.h: Adjust prototype.
14147
14148 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
14149
14150 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
14151 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
14152 (cris_target_asm_function_epilogue): Ditto.
14153 (cris_initial_frame_pointer_offset): Ditto.
14154 (cris_simple_epilogue): Ditto.
14155 (cris_expand_builtin_va_arg): Variable-size types come in
14156 by-reference.
14157
14158 2002-04-03 David S. Miller <davem@redhat.com>
14159
14160 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
14161 little-endian.
14162 (set_fast_math): Correct 'fsr' type.
14163
14164 2002-04-03 Richard Henderson <rth@redhat.com>
14165
14166 PR opt/3569
14167 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
14168 * toplev.c (check_global_declarations): Use it.
14169 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
14170 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14171 (LANG_HOOKS_DECLS): Add it.
14172 * langhooks.c (lhd_warn_unused_global_decl): New.
14173 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14174 * c-objc-common.c (c_warn_unused_global_decl): New.
14175 * c-tree.h (c_warn_unused_global_decl): Declare.
14176 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14177
14178 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
14179
14180 * langhooks-def.h (lhd_set_decl_assembler_name,
14181 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
14182 (LANG_HOOKS_INITIALIZER): Update.
14183 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
14184 * langhooks.h (struct lang_hooks): New hook.
14185 * tree.c (set_decl_assembler_name): Move to langhooks.c.
14186 (lang_set_decl_assembler_name): Remove.
14187 (init_obstacks): Don't set hook.
14188 (decl_assembler_name): New function.
14189 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
14190 (decl_assembler_name): New.
14191 (lang_set_decl_assembler_name): Remove.
14192
14193 2002-04-03 Jakub Jelinek <jakub@redhat.com>
14194
14195 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
14196 works properly with .hidden symbols.
14197 * configure: Rebuilt.
14198 * config.in: Rebuilt.
14199 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
14200 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
14201 properly with .hidden symbols.
14202
14203 2002-04-03 Jakub Jelinek <jakub@redhat.com>
14204
14205 PR middle-end/6102
14206 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
14207 USE argument.
14208
14209 2002-04-03 Richard Henderson <rth@redhat.com>
14210
14211 PR opt/4120
14212 * sched-rgn.c (sets_likely_spilled): New.
14213 (sets_likely_spilled_1): New.
14214 (add_branch_dependences): Use it.
14215
14216 2002-04-02 Richard Henderson <rth@redhat.com>
14217
14218 PR opt/4311
14219 * loop.h (LOOP_FIRST_PASS): New.
14220 * loop.c (strength_reduce): Mind it when deciding to unroll.
14221 * toplev.c (rest_of_compilation): Set it.
14222
14223 2002-04-02 David S. Miller <davem@redhat.com>
14224
14225 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
14226 mems_ok_for_ldd_peep when the order of the loads being examined
14227 is reversed.
14228 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
14229 existing comment to increase comprehension of this situation.
14230
14231 2002-04-02 Zack Weinberg <zack@codesourcery.com>
14232
14233 * config/sh/sh.md: Don't use union real_extract.
14234
14235 2002-04-02 Richard Henderson <rth@redhat.com>
14236
14237 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
14238
14239 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14240
14241 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
14242 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
14243 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
14244 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
14245 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
14246 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
14247 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
14248 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
14249 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
14250 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
14251 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
14252 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
14253 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
14254 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
14255 Include as many configury headers via tm_file as possible. This
14256 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
14257 * config/openbsd-oldgas.h: New file.
14258 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
14259 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
14260 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
14261 config/i386/i386-coff.h, config/i386/i386-interix.h,
14262 config/i386/iscdbx.h, config/i386/linux-aout.h,
14263 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
14264 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
14265 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
14266 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
14267 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
14268 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
14269 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
14270 config/i386/vxi386.h: Do not directly include configury headers.
14271 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
14272 Directly include configury headers that are no longer automatically
14273 included by the above headers.
14274 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
14275 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
14276 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
14277 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
14278 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
14279 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
14280 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
14281 (TARGET_VERSION): Define.
14282 * config/i386/beos-elf.h, config/i386/freebsd.h,
14283 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
14284 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
14285 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
14286 config/i386/sco5.h, config/i386/sysv4.h
14287 (TARGET_VERSION): Do not need to protect.
14288 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
14289 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
14290 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
14291 config/i386/i386-interix.h, config/i386/linux-aout.h,
14292 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
14293 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
14294 (YES_UNDERSCORES): Do not define - not needed.
14295 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
14296 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
14297 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
14298 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
14299 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
14300 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
14301 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
14302 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
14303
14304 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
14305 Richard Henderson <rth@redhat.com>
14306
14307 PR c/5484
14308 * function.c (assign_temp): Accept either type or decl argument.
14309 Detect variables whose size is too large to fit into an integer.
14310 * stmt.c (expand_decl): Pass the decl, not the type.
14311
14312 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14313
14314 * protoize.c: Match include directory usage with cppdefault.c.
14315
14316 2002-04-03 Jeffrey A Law (law@redhat.com)
14317 Hans-Peter Nilsson <hp@bitrange.com>
14318
14319 * combine.c (simplify_comparison): Avoid narrowing a comparison
14320 with a paradoxical subreg when doing so would drop signficant bits.
14321
14322 2002-04-02 Steve Ellcey <sje@cup.hp.com>
14323
14324 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
14325 if POINTERS_EXTEND_UNSIGNED is defined.
14326
14327 2002-04-02 Richard Henderson <rth@redhat.com>
14328
14329 PR opt/3967
14330 * local-alloc.c (contains_replace_regs): LO_SUM may contain
14331 replace regs.
14332
14333 2002-04-02 Richard Henderson <rth@redhat.com>
14334
14335 * doc/standards.texi: Document required freestanding libc entry points.
14336
14337 2002-04-02 Alan Modra <amodra@bigpond.net.au>
14338
14339 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
14340 associated splitter. Remove MQ constraint.
14341 (ctrdi_internal4): Correct CCmode clobber.
14342
14343 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
14344
14345 * milli64.S ($$dyncall): New function.
14346 * t-linux (LIB1ASMFUNCS): Revise module list.
14347 (LIB1ASMSRC): Use pa/milli64.S.
14348
14349 2002-04-02 Richard Henderson <rth@redhat.com>
14350
14351 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
14352 rename solaris_sys_varargs_h.
14353
14354 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14355
14356 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
14357 the same mode as its component.
14358
14359 2002-04-02 Richard Henderson <rth@redhat.com>
14360
14361 PR opt/190
14362 * final.c (this_is_asm_operands): Export.
14363 * output.h (this_is_asm_operands): Declare.
14364 * config/i386/i386.c (print_operand): Error odd asm operands.
14365
14366 2002-04-02 Richard Henderson <rth@redhat.com>
14367
14368 PR opt/420
14369 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
14370
14371 2002-04-01 Richard Henderson <rth@redhat.com>
14372
14373 PR target/1538
14374 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
14375 * fixinc/fixincl.x: Rebuild.
14376
14377 2002-04-01 Richard Henderson <rth@redhat.com>
14378
14379 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
14380 (atomic_alloc, atomic_free): New.
14381 (SIZE, MASK_FOR, PTR_IN): New.
14382 (emergency_reg_state, emergency_reg_state_free): New.
14383 (emergency_labeled_state, emergency_labeled_state_free): New.
14384 (reg_state_alloced, labeled_state_alloced): New.
14385 (alloc_reg_state, free_reg_state): New.
14386 (alloc_label_state, free_label_state, free_label_states): New.
14387 (push, pop, dup_state_stack, free_state_stack): Use them.
14388 (desc_label_state): Likewise.
14389 (uw_frame_state_for): Free label states and state stack.
14390 (uw_update_reg_address): Eliminate warnings.
14391
14392 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
14393
14394 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
14395 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
14396
14397 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14398
14399 * c-decl.c (grokdeclarator): Update.
14400 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14401 * c-tree.h (c_mark_addressable): New.
14402 * c-typeck.c (default_function_array_conversion, build_unary_op,
14403 build_array_ref, convert_for_assignment): Update.
14404 (mark_addressable): Rename.
14405 * calls.c (try_to_integrate, expand_call): Use langhook.
14406 * expr.c (expand_expr): Use langhook.
14407 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
14408 * langhooks.h (struct lang_hooks): New hook.
14409 * stmt.c (expand_asm_operands): Use langhook.
14410 * tree.h (mark_addressable): Remove.
14411 objc:
14412 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14413
14414 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14415
14416 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
14417 in previous change.
14418
14419 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14420
14421 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
14422 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
14423
14424 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14425
14426 * c-common.c (unsigned_conversion_warning, convert_and_check,
14427 unsigned_type, signed_type, shorten_compare,
14428 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
14429 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
14430 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
14431 New.
14432 * c-decl.c (grokdeclarator): Update.
14433 * c-format.c (check_format_types): Update.
14434 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14435 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14436 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
14437 * convert.c (convert_to_integer): Use new hooks.
14438 * expmed.c (make_tree): Use new hooks.
14439 * expr.c (store_expr): Use new hooks.
14440 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
14441 all_ones_mask_p, unextend, fold): Use new hooks.
14442 * langhooks.h (struct lang_hooks_for_types): New hooks.
14443 * tree.h (signed_or_unsigned_type, signed_type,
14444 unsigned_type): Remove.
14445 objc:
14446 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14447 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14448
14449 2002-03-31 Richard Henderson <rth@redhat.com>
14450
14451 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
14452 (desc_frgr_mem): Fix reference to f16-f31.
14453
14454 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14455
14456 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
14457 RTVEC_ELT): Const-ify.
14458 * varray.h (VARRAY_CHECK): Const-ify.
14459 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
14460 ggc_mark_rtvec, ggc_mark): Const-ify.
14461
14462 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14463
14464 * diagnostic.c: Include langhooks-def.h.
14465 * Makefile.in (diagnostic.o): Update.
14466
14467 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14468
14469 * c-common.c (c_unsafe_for_reeval): Rename.
14470 * c-common.h (c_unsafe_for_reeval): Rename.
14471 * c-decl.c (finish_incomplete_decl): Rename.
14472 (c_init_decl_processing): Don't set langhook.
14473 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14474 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14475 * c-objc-common.c (c_objc_common_init): Don't set langhook.
14476 * c-tree.h (finish_incomplete_decl): Rename.
14477 * langhooks-def.h (lhd_unsafe_for_reeval): New.
14478 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
14479 (LANG_HOOKS_INITIALIZER): Update.
14480 * langhooks.c (lhd_unsafe_For_reeval): New.
14481 * langhooks.h (struct langhooks): New hooks.
14482 * toplev.c (incomplete_decl_finalize_hook): Remove.
14483 (wrapup_global_declarations): Update.
14484 * tree.c (lang_unsafe_for_reeval): Remove.
14485 (unsafe_for_reeval): Update.
14486 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
14487 Remove.
14488 objc:
14489 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14490 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14491
14492 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14493
14494 * diagnostic.c (print_error_function): Remove.
14495 (default_print_error_function): Rename.
14496 (report_error_function): Update.
14497 * diagnostic.h (print_error_function): Remove.
14498 (default_print_error_function): Remove.
14499 * langhooks-def.h (struct diagnostic_context): Predeclare.
14500 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
14501 (LANG_HOOKS_INITIALIZER): Update.
14502 * langhooks.h (struct diagnostic context): Predeclare.
14503 (struct lang_hooks): New hook.
14504
14505 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14506
14507 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
14508 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
14509 !flag_pic.
14510 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
14511 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
14512 of PIC_OFFSET_TABLE_REGNUM thruout.
14513 * config/rs6000/rs6000.md: Likewise.
14514 * config/rs6000/darwin.h: Likewise.
14515
14516 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14517
14518 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
14519 unsigned HOST_WIDE_INT, not unsigned int.
14520
14521 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14522
14523 PR middle-end/6096, middle-end/6098, middle-end/6099
14524 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
14525 CODE_LABELs.
14526 (fill_slots_from_thread): Likewise.
14527
14528 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14529
14530 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
14531 floating fields in float regs.
14532 (function_arg_record_value_2): Likewise.
14533
14534 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14535
14536 * config/mmix/mmix.md (define_constants): Remove misleading
14537 FIXME. Add MMIX_fp_rO_OFFSET.
14538 ("nonlocal_goto_receiver"): Don't have stack-frame address of
14539 saved rO as part of the pattern. Remove FIXME.
14540 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
14541 here, at output-time.
14542
14543 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14544
14545 PR middle-end/6100
14546 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
14547 REG_BR_PRED.
14548 (output_v9branch): Likewise.
14549
14550 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14551
14552 * gcc.c: Revert previous patch for now.
14553 * config/i386/djgpp.h: Likewise.
14554
14555 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14556
14557 * config/mmix/crti.asm (_init): Register _fini with atexit.
14558 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
14559
14560 2002-03-31 Richard Henderson <rth@redhat.com>
14561
14562 PR target/3997
14563 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
14564 (ASM_OUTPUT_DEF_FROM_DECLS): New.
14565
14566 2002-03-31 Richard Henderson <rth@redhat.com>
14567
14568 * libgcc2.c (__bb_exit_func): Make static.
14569
14570 * config/alpha/alpha.md (trap): New.
14571
14572 2002-03-31 Richard Henderson <rth@redhat.com>
14573
14574 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
14575 promoted argument types; build trap.
14576 (expand_builtin_trap): New.
14577 (expand_builtin): Use it.
14578 * stmt.c (expand_nl_goto_receivers): Likewise.
14579 * expr.h (expand_builtin_trap): Declare.
14580 * libfuncs.h (LTI_abort, abort_libfunc): New.
14581 * optabs.c (init_optabs): Init abort_libfunc.
14582
14583 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14584
14585 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
14586 (LINK_COMMAND_SPEC): ... from here.
14587 (init_gcc_specs): Duplicate it here too, omitting
14588 shared_name in the second copy.
14589 (init_spec): Test for duplicate
14590 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
14591
14592 2002-03-30 David S. Miller <davem@redhat.com>
14593
14594 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14595 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
14596
14597 2002-03-30 Roger Sayle <roger@eyesopen.com>
14598 Richard Henderson <rth@redhat.com>
14599
14600 * regmove.c (combine_stack_adjustments_for_block): Avoid
14601 emitting a stack adjustment of zero bytes. Let delete_insn
14602 update bb->head.
14603
14604 2002-03-30 Richard Henderson <rth@redhat.com>
14605
14606 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
14607 (sparc_emitting_epilogue): New.
14608 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
14609 * config/sparc/sparc-protos.h: Update.
14610 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
14611 (TARGET_SWITCHES): Update.
14612 * config/sparc/sparc.md (return): Remove.
14613 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
14614 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
14615 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
14616 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14617 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
14618 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
14619 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
14620 Remove MASK_EPILOGUE.
14621 * doc/invoke.texi: Update.
14622
14623 2002-03-30 Daniel Berlin <dan@dberlin.org>
14624
14625 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
14626 CPP will start the file for us.
14627
14628 2002-03-30 Richard Henderson <rth@redhat.com>
14629
14630 PR target/5446
14631 * config/ia64/ia64.c (group_barrier_needed_p): Special case
14632 prologue_allocate_stack.
14633 (ia64_single_set): Use insn codes for recognition of special
14634 cases, not rtl matching.
14635 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
14636
14637 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
14638
14639 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
14640
14641 2002-03-30 Richard Henderson <rth@redhat.com>
14642
14643 PR target/6032
14644 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
14645 or -fomit-frame-pointer with profiling.
14646 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
14647 (FUNCTION_PROFILER): Do nothing.
14648 (PROFILE_HOOK): New.
14649 * config/sparc/sparc.c (sparc_override_options): Don't check
14650 code models for profiling.
14651 (sparc_function_profiler): Remove.
14652 (sparc_profile_hook): New.
14653 * config/sparc/sparc-protos.h: Update.
14654
14655 2002-03-30 Jakub Jelinek <jakub@redhat.com>
14656
14657 PR optimization/6086
14658 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
14659 of SUBREG of volatile MEM or because the MEM was mode dependent,
14660 return CLOBBER instead of unmodified SUBREG.
14661
14662 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
14663
14664 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
14665 when not optimizing.
14666
14667 * toplev.c (rest_of_compilation): Cann mark_constant_function
14668 only when optimizing.
14669
14670 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
14671 are NULL.
14672
14673 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
14674 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
14675 (try_optimize_cfg): clear all AUX fields.
14676
14677 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
14678 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
14679 (ix86_address_cost): Be prepared for SUBREGed registers.
14680 (legitimate_address_p): Accept SUBREGed registers.
14681
14682 2002-03-29 Richard Henderson <rth@redhat.com>
14683
14684 PR target/5672
14685 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
14686
14687 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14688
14689 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
14690 for aggregate and TFmode types.
14691
14692 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14693
14694 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
14695
14696 2002-03-29 Richard Henderson <rth@redhat.com>
14697
14698 PR target/5886
14699 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
14700 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
14701
14702 2002-03-29 Richard Henderson <rth@redhat.com>
14703
14704 PR target/6041
14705 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
14706 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
14707 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
14708 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
14709 conditional.
14710 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
14711
14712 2002-03-29 Dale Johannesen <dalej@apple.com>
14713
14714 * loop.c (combine_movables): Do allow combination of pseudos.
14715
14716 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
14717
14718 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
14719 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
14720 No functional change except ...
14721 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
14722 * doc/install.texi (*-*-freebsd*): Document port configuration.
14723
14724 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14725
14726 * Makefile.in (convert.o, calls.o, expmed.o): Update.
14727 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
14728 Use new hooks.
14729 * builtin-types.def (BT_PTRMODE): Update.
14730 * c-common.c (type_for_size): Rename c_common_type_for_size.
14731 (type_for_mode): Similarly.
14732 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
14733 Use new hook.
14734 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
14735 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
14736 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
14737 Redefine.
14738 * c-typeck.c (common_type, comptypes, default_conversion):
14739 Use new hooks.
14740 * calls.c: Include langhooks.h.
14741 (emit_library_call_value_1): Use new hooks. Avoid redundant
14742 calls.
14743 * convert.c: Include langhooks.h
14744 (convert_to_pointer, convert_to_integer): Use new hooks.
14745 * except.c (init_eh): Similarly.
14746 * expmed.c: Include langhooks.h.
14747 (expand_mult_add): Use new hooks.
14748 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
14749 try_casesi): Similarly.
14750 * fold-const.c (optimize_bit_field_compare, make_range,
14751 decode_field_reference, fold_truthop, fold): Similarly.
14752 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
14753 put_var_into_stack): Similarly.
14754 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
14755 LANG_HOOKS_TYPE_FOR_SIZE): New.
14756 (LANG_HOOKS_TYPES_INITIALIZER): Update.
14757 * langhooks.h (lang_hooks_for_types): New hooks.
14758 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
14759 * tree.c (get_unwidened, get_narrower): Similarly.
14760 * tree.h (type_for_mode, type_for_size): Remove.
14761 * varasm.c (force_const_mem): Use new hooks.
14762 * utils2.c (nonbinary_modular_operation): Update.
14763 objc:
14764 * objc-act.c (handle_impent): Update.
14765 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
14766 Redefine.
14767
14768 2002-03-29 Steve Ellcey <sje@cup.hp.com>
14769
14770 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
14771 * config/ia64/ia64.c (basereg_operand): New.
14772 * config/ia64/ia64-protos.h (basereg_operand): Declare.
14773 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
14774
14775 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14776
14777 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
14778 unwind information when frame_pointer_needed.
14779 (mmix_assemble_integer): Tweak wording in comment.
14780
14781 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14782
14783 * Makefile.in (except.o): Update.
14784 * except.c: Include langhooks.h.
14785 (init_eh): Use langhook.
14786 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
14787 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
14788 (LANG_HOOKS_INITIALIZER): Update.
14789 * langhooks.h (lang_hooks_for_types): New.
14790 (struct lang_hooks): Add it.
14791 * tree.c (make_lang_type_fn, make_lang_type): Remove.
14792 * tree.h (make_lang_type_fn, make_lang_type): Remove.
14793 config:
14794 * alpha/alpha.c: Include langhooks.h.
14795 (alpha_build_va_list): Use langhook.
14796 * d30v/d30v.c: Include langhooks.h.
14797 (d30v_build_va_list): Use langhook.
14798 * i386/i386.c: Include langhooks.h.
14799 (ix86_build_va_list): Use langhook.
14800 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
14801 * s390/s390.c: Include langhooks.h.
14802 (s390_build_va_list): Use langhook.
14803 * stormy16/stormy16.c: Include langhooks.h.
14804 (stormy16_build_va_list): Use langhook.
14805
14806 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14807
14808 PR c++/5964
14809 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
14810 attributes.
14811 (length): Compute variable length for branches/calls/jumps here.
14812 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
14813 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
14814 define branch_type attribute.
14815 (divsi3_sp32): Maximum length is 6 not 7.
14816 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
14817 call_address_untyped_struct_value_sp32,
14818 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
14819 * config/sparc/sparc.c (empty_delay_slot): New function.
14820 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
14821 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
14822
14823 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14824
14825 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
14826 nonzero_bits if not needed.
14827 (nonzero_bits) [XOR]: Likewise.
14828 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
14829 reg_last_set_mode and mode are both MODE_INT, but not equal.
14830 (record_value_for_reg): Compute reg_last_set_nonzero_bits
14831 in nonzero_bits_mode for MODE_INT modes.
14832
14833 2002-03-28 Richard Henderson <rth@redhat.com>
14834
14835 PR target/5715
14836 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
14837 to GAS. Correct drift between alternatives.
14838
14839 2002-03-28 Richard Henderson <rth@redhat.com>
14840
14841 PR target/6087
14842 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
14843
14844 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
14845
14846 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
14847 emulation to the linker.
14848
14849 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
14850
14851 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
14852 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14853
14854 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
14855
14856 * combine.c (simplify_and_const_int): Make sure to apply mask
14857 when force_to_mode returns a constant integer. PR3311.
14858
14859 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14860
14861 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
14862
14863 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14864
14865 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
14866 and Objective-C Dialect Options.
14867
14868 2002-03-28 Richard Henderson <rth@redhat.com>
14869
14870 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
14871 comparison should be done vs !=0 not >0 return code. Tidy cases.
14872
14873 2002-03-28 Richard Henderson <rth@redhat.com>
14874
14875 * c-decl.c (finish_function): New arg can_defer_p. Pass it
14876 on to c_expand_body.
14877 * c-tree.h (finish_function): Update decl.
14878 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
14879
14880 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
14881
14882 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
14883
14884 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
14885
14886 * rtlanal.c: Include flags.h
14887 (may_trap_p): Do not mark FP operations if trapping
14888 if !flag_trapping_math
14889 * Makefile.in (rtlanal.o): Add dependency on flag.h
14890 * ifcvt.c (noce_operand_ok): Avoid the lameness.
14891
14892 2002-03-27 Zack Weinberg <zack@codesourcery.com>
14893
14894 * mips.md: Use dconst1, not 1.0, as first argument of
14895 REAL_VALUE_LDEXP. Don't use union real_extract.
14896
14897 2002-03-28 Alan Modra <amodra@bigpond.net.au>
14898
14899 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14900 rather than $target. Heed program_prefix and
14901 program_transform_name. Search for gas in cross-compiler case too.
14902 "test -x" rather than "test -f".
14903 (gcc_cv_ld): Likewise.
14904 (gcc_cv_nm): Heed program_prefix and program_transform_name.
14905 (gcc_cv_objdump): Likewise.
14906 * configure: Regenerate.
14907
14908 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14909
14910 * Makefile.in (attribs.o): Update.
14911 * attribs.c: Include langhooks.h.
14912 (decl_attributes): Use langhook.
14913 * c-decl.c (insert_default_attributes): Rename.
14914 * c-tree.h (c_insert_default_attributes): New.
14915 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14916 (LANG_HOOKS_INITIALIZER): Update.
14917 * langhooks.h (struct lang_hooks): New hook.
14918 * tree.h (insert_default_attributes): Remove.
14919 objc:
14920 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14921
14922 2002-03-27 Andreas Schwab <schwab@suse.de>
14923
14924 * config/i386/i386.c (classify_argument): Also check for
14925 QUAL_UNION_TYPE.
14926
14927 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14928
14929 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14930 any more.
14931
14932 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
14933
14934 * i960.md (ret): Set PC.
14935 (nonlocal_goto): Fix expander.
14936 * builtins.c (epxand_builin_longjmp): Check that we've emitted
14937 some jump or call.
14938
14939 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
14940
14941 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14942 of libcall regions.
14943
14944 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14945
14946 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14947 assigning to BLOCK_FOR_INSN directly.
14948
14949 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
14950
14951 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14952
14953 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14954
14955 * c-common.c (c_expand_expr): Fix prototype.
14956 * c-common.h (c_expand_expr): Always declare, update.
14957 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14958 * c-objc-common.c (c_objc_common_init): No global hook.
14959 * expr.c (expand_expr): Use langhook.
14960 * expr.h (enum expand_modifier): Conditionally declare.
14961 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14962 (LANG_HOOKS_INITIALIZER): Update.
14963 * langhooks.c (lhd_expand_expr): New.
14964 * langhooks.h (struct lang_hooks): New hook.
14965 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14966 (lang_independent_init): Don't default hook.
14967 objc:
14968 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14969
14970 2002-03-27 Richard Henderson <rth@redhat.com>
14971
14972 PR target/6054
14973 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14974 TARGET_CONST_GP. Simplify conditions.
14975
14976 2002-03-27 Richard Henderson <rth@redhat.com>
14977
14978 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14979 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14980 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14981
14982 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
14983
14984 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14985 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14986 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14987 Remove unnecessary masks.
14988 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14989 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14990 -mwindows, -mdll switches and their negations.
14991
14992 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14993
14994 * gcc-common.c (lang_mark_false_label_stack): Remove.
14995 * ggc.h (lang_mark_false_label_stack): Similarly.
14996
14997 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
14998
14999 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
15000
15001 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
15002 or __rtems_ is defined.
15003
15004 2002-03-26 Richard Henderson <rth@redhat.com>
15005
15006 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
15007 if a non-trivial load was emitted.
15008 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
15009 in high+extra+low case.
15010
15011 2002-03-26 Richard Henderson <rth@redhat.com>
15012
15013 * config.gcc (sparc*-solaris): Use float_format=sparc.
15014
15015 2002-03-26 Richard Henderson <rth@redhat.com>
15016
15017 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15018 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
15019 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
15020 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
15021 (WINT_TYPE_SIZE): Fix at 32.
15022
15023 2002-03-26 Richard Henderson <rth@redhat.com>
15024
15025 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
15026 until after eh landing pad generation.
15027 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
15028 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
15029
15030 2002-03-26 Richard Henderson <rth@redhat.com>
15031
15032 * expr.h (ADD_PARM_SIZE): One more convert for INC.
15033
15034 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
15035
15036 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
15037 and warning switches.
15038 (cc1_options): Likewise.
15039
15040 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
15041
15042 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
15043 Restore more of the signal context. Set no_reg_stack_frame.
15044 * config/ia64/unwind-ia64.c (unw_state_record):
15045 Add no_reg_stack_frame, comments.
15046 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
15047 (uw_update_context): Adjust bsp when unwinding from leaf,
15048 but not signal frame.
15049
15050 2002-03-26 David Edelsohn <edelsohn@gnu.org>
15051
15052 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
15053
15054 2002-03-26 Bob Wilson <bob.wilson@acm.org>
15055
15056 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
15057
15058 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
15059
15060 PR target/5621
15061 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
15062 "Add a pool_range attribute", which was lost during the ARM/Thumb
15063 merge.
15064
15065 2002-03-26 Bob Wilson <bob.wilson@acm.org>
15066
15067 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
15068 a register into the MAC16 accumulator.
15069
15070 2002-03-26 Andrew Cagney <ac131313@redhat.com>
15071
15072 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
15073 (Warning Options): Document -Wswitch-enum.
15074 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
15075 -Wswitch.
15076 (warn_switch_enum): Define variables.
15077 * flags.h (warn_switch_enum): Declare variables.
15078 * stmt.c (expand_end_case_type): When warn_switch_enum /
15079 -Wswitch-enum, perform switch checks.
15080 Fix PR c/5044.
15081
15082 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
15083
15084 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
15085 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
15086 (reload_muladdsi_compare0_scratch): Delete.
15087
15088 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
15089
15090 * doc/install.texi (*-*-freebsd*): Update.
15091
15092 2002-03-26 Richard Henderson <rth@redhat.com>
15093
15094 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
15095 (SUB_PARM_SIZE): Cast DEC to ssizetype.
15096
15097 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
15098 types from the normal argument frame.
15099
15100 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
15101 variable sized objects by reference.
15102 (sparc_va_arg): Receive them by reference too.
15103
15104 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
15105
15106 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
15107 code to not restoring global registers.
15108
15109 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
15110
15111 * Makefile.in (ggc-common.o): Update.
15112 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
15113 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
15114 * c-tree.h (c_mark_tree): New.
15115 * ggc-common.c: Include langhooks.h.
15116 (gcc_mark_trees): Use new langhook.
15117 * ggc-callbacks.c: Delete file.
15118 * ggc.h (lang_mark_tree): Remove.
15119 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
15120 (LANG_HOOKS_INITIALIZER): Update.
15121 * langhooks.h (struct lang_hooks): New hook.
15122 objc:
15123 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
15124
15125 2002-03-25 Zack Weinberg <zack@codesourcery.com>
15126
15127 * doc/cpp.texi: Exclude entire Top node from printed manual.
15128 Move option index after directive index. Insert page breaks
15129 before GFDL and concept index. Index environment variables
15130 with command line options.
15131 * doc/cppenv.texi: Use @vtable for environment variable list.
15132 Add paragraph explaining semantics of empty elements in path
15133 variables. Exclude a cross-reference to Fishkill from the
15134 manpage. Remove an unnecessary cross-reference of the entry
15135 right above the referer. Don't use @anchor in text that goes
15136 into manpage.
15137 * doc/cppopts.texi: Cross-reference the environment variables
15138 section, not the specific environment variable, for consistency.
15139
15140 2002-03-25 Richard Henderson <rth@redhat.com>
15141
15142 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
15143 anywhere in the block. Don't refer to insns that have been
15144 removed from the chain. Iterate backward through the new insns.
15145 Don't refer to edges that have been removed.
15146
15147 2002-03-26 Alan Modra <amodra@bigpond.net.au>
15148
15149 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
15150 test for overflow of constant.
15151
15152 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
15153
15154 PR target/2623
15155 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
15156 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
15157 these patterns on arm_archv4.
15158
15159 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
15160
15161 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
15162 int".
15163
15164 2002-03-25 Zack Weinberg <zack@codesourcery.com>
15165
15166 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
15167 float_handled, float_handler, float_signal, set_float_handler,
15168 and do_float_handler. Set handler for SIGFPE to crash_signal.
15169 * toplev.h: Don't prototype do_float_handler.
15170
15171 * c-lex.c: Fold parse_float into lex_number. Make warning
15172 about portability of hex float constants more informative, and
15173 don't issue it on top of a syntax error.
15174 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
15175 their callers.
15176 * real.h: Define REAL_VALUE_ABS here...
15177 * simplify-rtx.c: ... not here. Fold check_fold_consts,
15178 simplify_unary_real, simplify_binary_real, and
15179 simplify_binary_is2orm1 into their callers.
15180 * tree.c: Fold build_real_from_int_cst_1 into caller.
15181
15182 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
15183
15184 * tsystem.h: Include float.h here...
15185 * libgcc2.c: ... not here.
15186
15187 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
15188
15189 Fixes for: PR bootstrap/3591, target/5676
15190 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
15191 defined. Do not disable exceptions or rtti.
15192 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
15193 mcore.h. Disable exceptions and rtti, since they are not
15194 supported by EPOC.
15195
15196 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
15197
15198 * c-decl.c (maybe_build_cleanup): Remove.
15199 * expr.c (expand_expr): Use langhook.
15200 * langhooks-def.h (lhd_return_null_tree,
15201 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
15202 (LANGHOOKS_INITIALIZER): Update.
15203 * langhooks.c (lhd_return_null_tree): New.
15204 * langhooks.h (struct lang_hooks): New hook.
15205 * tree-inline.c (initialize_inlined_parameters): Use langhook.
15206 * tree.h (maybe_build_cleanup): Remove.
15207
15208 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15209
15210 * regrename.c (build_def_use): Move recog_memoized
15211 before extract_insn.
15212
15213 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15214
15215 PR target/6043
15216 * expr.c (emit_group_store): Handle storing into CONCAT.
15217
15218 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15219
15220 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
15221 corresponding MATCH_DUP.
15222
15223 2002-03-24 Richard Henderson <rth@redhat.com>
15224
15225 * unroll.c (unroll_loop): Zero label_map.
15226
15227 * gcse.c: Include except.h.
15228 * Makefile.in (gcse.o): Update.
15229
15230 2002-03-24 Richard Henderson <rth@redhat.com>
15231
15232 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
15233 Do resolve_unique_section before shared data clause.
15234
15235 2002-03-24 Richard Henderson <rth@redhat.com>
15236
15237 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
15238
15239 2002-03-24 Richard Henderson <rth@redhat.com>
15240
15241 * recog.c (peephole2_optimize): Split blocks when EH insns are
15242 generated in the middle of a block. Do global life update if
15243 zapped EH edges.
15244
15245 2002-03-24 Richard Henderson <rth@redhat.com>
15246
15247 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
15248
15249 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15250
15251 preprocessor/3951
15252 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
15253 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
15254 (init_dependency_output): Don't make no_output decision here.
15255
15256 2002-03-24 Andrew Cagney <ac131313@redhat.com>
15257
15258 * stmt.c (check_for_full_enumeration_handling): Remove tests of
15259 warn_switch. Update description.
15260 (expand_end_case_type): Call check_for_full_enumeration_handling
15261 when warn_switch.
15262
15263 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15264
15265 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
15266 (m68hc11_split_move): Call it to see if the source and destination
15267 operands use the same direction auto inc/dec mode, otherwise make the
15268 source an offsetable memory operand and generate an add.
15269
15270 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15271
15272 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
15273 register for operand 2.
15274 ("*subsi3_zero_extendqi"): Likewise.
15275 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
15276 bits so that it is compatible with a pop.
15277 ("*andhi3_gen"): Likewise.
15278 ("xorhi3"): Likewise.
15279
15280 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15281
15282 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
15283 -pedantic here...
15284 (cpp_post_options): ... not here.
15285
15286 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15287 Aldy Hernandez <aldyh@redhat.com>
15288
15289 Removal of separate preprocessor cpp0.
15290
15291 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
15292 cpp0, install-common): Update.
15293 * c-common.c (flag_preprocess_only): New.
15294 (c_common_init): Preprocess for -E.
15295 * c-common.h (flag_preprocess_only): New.
15296 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
15297 * c-objc-common.c (c_init_decl_processing): Exit quickly
15298 for NULL return from c_common_init.
15299 * cpplib.h (cpp_preprocess_file): New.
15300 * cppmain.c (main, general_init, pfile, progname): Remove.
15301 (do_preprocessing): Rename cpp_preprocess_file, don't call
15302 cpp_finish. Don't close stdout here.
15303 (setup_callbacks): Update prototype.
15304 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
15305 Update.
15306 * tradcpp.c (main): Ignore -quiet.
15307 objc:
15308 * lang-specs.h (default_compilers): Preprocess with cc1obj.
15309
15310 2002-03-24 Richard Henderson <rth@redhat.com>
15311
15312 PR optimization/5742
15313 * machmode.def: Add inner mode field to complex modes.
15314 * config/mips/mips.c (mips_function_value): Always define. Add
15315 new argument to handle libcalls.
15316 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
15317 (FUNCTION_VALUE): Likewise.
15318 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
15319 * config/mips/mips-protos.h: Update.
15320
15321 2002-03-23 Richard Henderson <rth@redhat.com>
15322
15323 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
15324 * config/sparc/sparc-protos.h: Update.
15325 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
15326
15327 2002-03-23 Richard Henderson <rth@redhat.com>
15328
15329 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
15330 _start or _init begins the text segment.
15331
15332 2002-03-23 David Edelsohn <edelsohn@gnu.org>
15333
15334 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
15335 not HOST_WIDEST_INT.
15336 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
15337
15338 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
15339
15340 PR java/5489
15341 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
15342 operand argument to output_return_instruction.
15343 * arm.c (arm_print_operand, case 'd'): If the operand is
15344 const_true_rtx then just return.
15345 (arm_print_operand, case 'D'): If the operand is const_true_rtx
15346 then abort.
15347
15348 2002-03-23 Andrew Cagney <ac131313@redhat.com>
15349
15350 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
15351 (Warning Options): Document -Wswitch-default.
15352 * toplev.c (W_options): Add -Wswitch-default. Update comment on
15353 -Wswitch.
15354 (warn_switch_default): Define variable.
15355 (warn_switch): Update comment.
15356 * flags.h (warn_switch_default): Declare variable.
15357 (warn_switch): Update comment.
15358 * stmt.c (expand_end_case): Check for and, when
15359 warn_switch_no_default, warn of a missing default case.
15360
15361 2002-03-23 Alan Modra <amodra@bigpond.net.au>
15362
15363 * real.h (N): Special case 128 bit doubles.
15364
15365 * combine.c (simplify_comparison): When widening modes, ignore
15366 sign extension on CONST_INTs.
15367
15368 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15369
15370 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
15371 passed to adjust_address. Fix comment formatting.
15372
15373
15374 2002-03-22 Zack Weinberg <zack@codesourcery.com>
15375
15376 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
15377 Always make REAL_VALUE_TYPE a struct containing an array of
15378 HOST_WIDE_INT, not a double. Tidy up the code deciding how
15379 big it is. Don't declare or use union real_extract.
15380
15381 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
15382 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
15383 (print_operand), config/arm/arm.c (output_move_double),
15384 config/arm/arm.md (consttable_4, consttable_8),
15385 config/romp/romp.c (output_fpops), config/s390/s390.h
15386 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
15387 (xtensa_output_literal): Don't use union real_extract.
15388
15389 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
15390 (sfmode_constant_to_ulong), config/ns32k/merlin.h
15391 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
15392 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
15393 (PRINT_OPERAND): Don't use local version of union
15394 real_extract.
15395
15396 * config/convex/convex.c (check_float_value), config/vax/vax.c
15397 (vax_float_literal), config/m88k/m88k.md (divdf3),
15398 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
15399 config/pdp11/pdp11.c (output_move_quad): Don't do host
15400 arithmetic on target floating point quantities.
15401
15402 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
15403 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
15404
15405 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
15406 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
15407
15408 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
15409 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
15410 INFINITY.
15411 * print-rtl.c (print_rtx): Disable code which needs
15412 floating-point emulator.
15413 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
15414 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
15415 depending on HOST_FLOAT_FORMAT to be defined properly.
15416
15417 * config/1750a/1750a.c (get_double, float_label): Delete.
15418 (print_operand): Delete huge commented-out chunk. Use
15419 REAL_VALUE_TO_DECIMAL.
15420 * config/1750a/1750a-protos.h: Delete prototypes of deleted
15421 functions.
15422 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
15423 IEEE_FLOAT_FORMAT.
15424 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
15425 Use REAL_VALUE_TO_DECIMAL as ELF version does.
15426 * config/m88k/m88k.c (real_power_of_2_operand,
15427 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
15428 real_extract out of the union; run the input through
15429 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
15430 from that into the union.
15431 * config/pdp11/pdp11.c (output_move_double): Rearrange
15432 parentheses to make automatic indenter happy.
15433
15434 * doc/tm.texi (Cross-compilation): Rename node to "Floating
15435 Point" and rewrite to describe current situation. Also adjust
15436 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
15437 match code.
15438 * doc/rtl.texi: Adjust cross reference.
15439
15440 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15441
15442 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
15443 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
15444 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
15445 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
15446 prevent use of sp as a reload register.
15447 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
15448 non_acc_reg_operand.
15449 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
15450 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
15451 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
15452 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
15453
15454 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15455
15456 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
15457 * cpplex.c (unterminated): Delete.
15458 (parse_string): No string literal may extend over multiple
15459 lines. Suppress the error when preprocessing assembly.
15460 * cppmain.c (scan_translation_unit): Strings are single-line.
15461
15462 * doc/cpp.texi: Update to match.
15463
15464 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15465
15466 PR optimization/5854
15467 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
15468 Shut up warnings.
15469 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
15470 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
15471 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
15472 const0 if scratch register was not allocated.
15473 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
15474 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
15475 with GEN_INT (...).
15476 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
15477 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
15478 with GEN_INT (...) everywhere. Remove constraints in define_split
15479 patterns.
15480 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
15481 require scratch register for setting 0 into regs/non-pushable memory.
15482
15483 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15484
15485 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
15486 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
15487
15488 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
15489
15490 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
15491 * cppinit.c (cpp_create_reader): On by default.
15492 (cpp_handle_option): Handle -W[no-]endif-labels.
15493 (cpp_post_options): Also enable if -pedantic.
15494 * cpplib.c (do_else): Use it.
15495 (do_endif): Likewise.
15496 * doc/cppopts.texi: Document new option.
15497 * doc/invoke.texi: Document new option.
15498
15499 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
15500
15501 * config/i386/i386.c, config/i386/i386.md: Change all occurences
15502 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
15503
15504 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15505
15506 * flow.c (calculate_global_regs_live): Clear aux fields of
15507 ENTRY and EXIT.
15508
15509 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15510
15511 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
15512 REG or MEM subregs, pass rtx * instead of rtx to it.
15513 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
15514 rtx * instead of rtx to alter_subreg.
15515 * config/m32r/m32r.c (gen_split_move_double): Likewise.
15516 * config/pj/pj.c (pj_output_rval): Likewise.
15517
15518 2002-03-22 Richard Henderson <rth@redhat.com>
15519
15520 PR target/3177
15521 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
15522 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
15523 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
15524 (ia64_expand_prologue): Look at int_regs, not words, for number
15525 of incomming int regs.
15526
15527 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
15528
15529 * expr.c (expand_expr): A RESULT_DECL is part of a call.
15530
15531 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
15532
15533 * toplev.c (flag_loop_optimize, flag_crossjumping):
15534 New static variables.
15535 (rest_of_compilation): Conditionalize crossjumping and
15536 loop optimizer.
15537 (parse_options_and_default_flags): Default loop_optimize and
15538 crossjumping.
15539 (lang_independent_options): Add -fcrossjumping and -floop-optimize
15540 * invoke.texi (crossjumping, loop-optimize): Document.
15541
15542 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15543
15544 * real.c (eiisneg): Move outside #ifdef NANS.
15545
15546 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
15547
15548 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
15549 frequencies match; avoid match on different loop depths.
15550 (try_crossjump_to_bb): Kill tests that no longer brings time
15551 savings.
15552 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
15553 updating code.
15554 (split_edge): Likewise.
15555
15556 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
15557 variable.
15558
15559 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
15560 * cfgrtl.c: Include insn-config.h
15561 (split_block) Dirtify block in presence of conditional execution
15562
15563 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15564
15565 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
15566 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
15567 (function_arg): Constify CUMULATIVE_ARGS.
15568 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
15569 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
15570 (UNITS_PER_DOUBLE): New macro.
15571 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
15572 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
15573 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
15574 fp_regs and stack_words.
15575 (EABI_FLOAT_VARARGS_P): New macro.
15576 * config/mips/mips.c (struct mips_arg_info): New.
15577 (mips_arg_info): New function.
15578 (function_arg_advance): Use it. Add adjustment instructions here
15579 rather than in function_arg.
15580 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
15581 for VOIDmode at the beginning of the function.
15582 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
15583 (function_arg_pass_by_reference): Likewise.
15584 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
15585 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
15586 (mips_va_start): Likewise. Use the new stack_words field of
15587 CUMULATIVE_ARGS to set up overflow area. Reformat.
15588 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
15589 doubles and other types, aligning the overflow pointer for non-doubles
15590 too. Remove some code duplication. Replace hard-coded constants.
15591
15592 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15593
15594 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
15595 (CLASS_UNITS): Undefine.
15596 (CLASS_MAX_NREGS): Use FP_INC.
15597 * config/mips/mips.c (compute_frame_size): Likewise.
15598 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
15599
15600 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15601
15602 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
15603 prototype, and handle lexing numbers and identifiers.
15604 (parse_identifier): Update to new form of parse_slow.
15605 (parse_number): Fast path only, use parse_slow otherwise.
15606 (_cpp_lex_direct): Update calls to parse_number.
15607
15608 2002-03-21 DJ Delorie <dj@redhat.com>
15609
15610 * bb-reorder.c (make_reorder_chain_1): Protect against
15611 when redundant edges are omitted.
15612 * predict.c (dump_prediction): Likewise.
15613
15614 2002-03-21 Richard Henderson <rth@redhat.com>
15615
15616 PR target/5996
15617 * fixinc/inclhack.def (solaris_stdio_tag): New.
15618 * fixinc/fixincl.x: Regenerate.
15619
15620 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15621
15622 PR c/5597
15623 * c-typeck.c (process_init_element): Flag non-static
15624 initialization of a flexible array member as illegal.
15625
15626 2002-03-22 Alan Modra <amodra@bigpond.net.au>
15627
15628 * config/rs6000/t-linux64: New.
15629 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
15630 t-ppccomm. Use t-rs6000 and t-linux64.
15631 (powerpc64-*-gnu* <tmake_file>): Likewise.
15632 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
15633 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
15634 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
15635
15636 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
15637
15638 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
15639 flag_really_no_inline instead of optimize == 0.
15640
15641 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
15642
15643 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
15644
15645 * flags.h (flag_really_no_inline): New.
15646
15647 * c-common.c (c_common_post_options): Initialize
15648 flag_really_no_inline.
15649
15650 * toplev.c (flag_really_no_inline): New.
15651
15652 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15653
15654 * config/avr/avr.md (length): Fix length computation for
15655 conditional branches.
15656
15657 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
15658
15659 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
15660 sdbout.o, profile.o): Update.
15661 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
15662 langhook.
15663 * c-common.h (gettags): Move here from tree.h.
15664 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
15665 insert_block, getdecls, kept_level_p, global_bindings_p): New.
15666 * dbxout.c (dbxout_init): Use getdecls langhook.
15667 * expr.c (expand_expr): Use insert_block langhook.
15668 * fold-const.c: Include langhooks.h.
15669 (fold_range_test, fold_binary_op_with_conditional_arg,
15670 fold): Use global_bindings_p langhook.
15671 * integrate.c (expand_inline_function): Use insert_block langhook.
15672 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
15673 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
15674 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
15675 LANG_HOOKS_GETDECLS): New.
15676 (LANG_HOOKS_INITIALIZER): Update.
15677 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
15678 langhook.
15679 * langhooks.h (struct lang_hooks_for_decls): New.
15680 (struct lang_hooks): Update.
15681 * profile.c: Include langhooks.h.
15682 (output_func_start_profiler): Use new langhooks.
15683 * sdbout.c: Include langhooks.h.
15684 (sdbout_init, sdbout_finish): Use getdecls langhook.
15685 * stmt.c: Include langhooks.h.
15686 (expand_fixup, fixup_gotos): Use new langhooks.
15687 * stor-layout.c: Include langhooks.h.
15688 (variable_size): Use global_bindings_p langhook.
15689 * toplev.c (compile_file): Use getdecls langhook.
15690 * tree-inline.c (remap_block): Use insert_block langhook.
15691 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
15692 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
15693
15694 2002-03-21 Richard Henderson <rth@redhat.com>
15695
15696 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
15697 constants in .data when -fpic.
15698
15699 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15700
15701 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
15702 where appropriate.
15703
15704 2002-03-21 Tom Tromey <tromey@redhat.com>
15705
15706 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
15707
15708 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15709
15710 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
15711
15712 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
15713
15714 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15715 Richard Henderson <rth@redhat.com>
15716
15717 PR c/5354
15718 * c-common.c (c_expand_expr): Preserve result of a statement
15719 expression if needed.
15720
15721 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15722
15723 PR bootstrap/4195
15724 * genrecog.c (maybe_both_true_mode): Remove.
15725 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
15726 * machmode.def (Pmode): Likewise.
15727
15728 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
15729
15730 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
15731 (nonlocal_mentioned_p_1): New function.
15732 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
15733 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
15734 (mark_constant_function): Recognize pure functions.
15735 * rtl.h (global_reg_mentioned_p): New prototype.
15736 * rtlanal.c (global_reg_mentioned_p,
15737 global_reg_mentioned_p_1): New function.
15738
15739 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15740
15741 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
15742 UNIX assert.h.
15743 * fixinc/fixincl.x: Regenerate.
15744
15745 2002-03-20 Jason Merrill <jason@redhat.com>
15746
15747 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
15748
15749 2002-03-20 Michael Meissner <meissner@redhat.com>
15750
15751 * doc/invoke.texi (Optimize Options): Document that -O2 sets
15752 -fstrict-aliasing.
15753
15754 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15755
15756 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
15757 ".literal_position" directive before the constant pool.
15758
15759 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15760
15761 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
15762 Add Craig Rodrigues.
15763 Add Brad Lucier to testers.
15764
15765 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15766
15767 PR target/4792
15768 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
15769 to if_then_else.
15770 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
15771 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
15772 instead of insn_extract.
15773
15774 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15775
15776 PR bootstrap/4192
15777 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
15778
15779 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
15780 stmt if some case has been output.
15781
15782 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15783
15784 PR c/5972
15785 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
15786 movsfcc_1, movdfcc_1): Add %O2.
15787 * config/i386/i386.c (print_operand): Handle %ON.
15788 Print . before float condition codes in Sun as cmov syntax.
15789 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
15790 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
15791 no longer true.
15792
15793 2002-03-20 Philip Blundell <pb@nexus.co.uk>
15794
15795 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
15796 return instruction if PC was popped.
15797
15798 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15799
15800 * config/xtensa/xtensa.md: Remove unused type attributes.
15801 (adddi_carry, subddi_carry): Change type attribute to "multi".
15802
15803 2002-03-19 Dale Johannesen <dalej@apple.com>
15804
15805 PR optimization/5999, middle-end/5731
15806 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
15807 multiplications by reciprocals.
15808
15809 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
15810
15811 * Makefile.in: Update.
15812 * c-common.c: Include langhooks.h.
15813 (inline_forbidden_p): Use new hook.
15814 * diagnostic.c: Include langhooks.h.
15815 (format_with_decl, announce_function,
15816 default_print_error_function): Use new hook.
15817 * dwarf2out.c (dwarf2_name): Use new hook.
15818 * function.c: Include langhooks.h.
15819 (init_function_start): Use new hook.
15820 * langhooks-def.h (lhd_decl_printable_name): New.
15821 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
15822 (LANGHOOKS_INITIALIZER): Update.
15823 * langhooks.c (lhd_decl_printable_name): New.
15824 * langhooks.h (struct lang_hooks): New hook.
15825 * toplev.c (decl_name, decl_printable_name): Remove.
15826 (open_dump_file): Use new hook.
15827 (process_options): Remove old hook.
15828 * tree.h (decl_printable_name): Remove.
15829 objc:
15830 * objc-act.c (objc_init): Remove old hook.
15831 (objc_printable_name): Export.
15832 * objc-act.h (objc_printable_name): New.
15833 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
15834
15835 2002-03-19 Jim Blandy <jimb@redhat.com>
15836
15837 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
15838 the start_source_file debug hook, not the current line number.
15839
15840 2002-03-19 Richard Henderson <rth@redhat.com>
15841
15842 * flow.c (EH_USES): Provide default.
15843 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
15844 * doc/tm.texi (EH_USES): New.
15845
15846 * config/ia64/ia64.c (ia64_eh_uses): New.
15847 * config/ia64/ia64-protos.h: Update.
15848 * config/ia64/ia64.h (EH_USES): New.
15849
15850 2002-03-19 Richard Henderson <rth@redhat.com>
15851
15852 * varasm.c (output_constant_def): Fix stupid typo.
15853
15854 2002-03-19 Richard Henderson <rth@redhat.com>
15855
15856 PR 5879
15857 * except.c (current_function_has_exception_handlers): New.
15858 * except.h: Declare it.
15859 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
15860 Combine tests that disable all sibcalls for the function.
15861
15862 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
15863
15864 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
15865 for INTEGER_CST.
15866
15867 2002-03-19 Richard Henderson <rth@redhat.com>
15868
15869 PR 5977, 5991
15870 * config/ia64/ia64.c: Revert 2002-03-01 patch.
15871 * config/ia64/ia64.h (INIT_EXPANDERS): New.
15872
15873 2002-03-19 Jim Blandy <jimb@redhat.com>
15874
15875 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
15876 name, even if the replacement list contains no tokens, as required
15877 by Dwarf.
15878
15879 2002-03-19 Jason Merrill <jason@redhat.com>
15880
15881 * varasm.c (globalize_decl): Get the name from the RTL, not
15882 DECL_ASSEMBLER_NAME.
15883
15884 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
15885
15886 2002-03-19 Bob Wilson <bob.wilson@acm.org>
15887
15888 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
15889 subdi_carry): Define.
15890
15891 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15892
15893 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15894 about -fpic/-fPIC if extra_warnings set.
15895
15896 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15897
15898 * expr.c (expand_expr): Sign-extend CONST_INT generated from
15899 TREE_STRING_POINTER.
15900 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
15901
15902 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15903
15904 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15905 in favor of SP if FRAME_POINTER_REQUIRED is false.
15906
15907 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
15908
15909 * emit-rtl.c (gen_int_mode): New function.
15910 * rtl.h: Prototype for it.
15911 * combine.c (make_extraction, simplify_comparison), expmed.c
15912 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15913 (convert_modes, store_field), optabs.c (expand_fix),
15914 simplify-rtx.c (neg_const_int, simplify_unary_real),
15915
15916 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15917 Use it instead of GEN_INT (trunc_int_for_mode (...)).
15918
15919 2002-03-19 Jakub Jelinek <jakub@redhat.com>
15920
15921 PR c/5656
15922 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15923 convert_parm_for_inlining.
15924 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15925 Define.
15926 * langhooks-def.h: Likewise.
15927 * objc/objc-lang.c: Likewise.
15928 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15929 function.
15930 * tree-inline.c (initialize_inlined_parameters):
15931 Call convert_parm_for_inlining lang hook if needed.
15932 * c-typeck.c (c_convert_parm_for_inlining): New function.
15933 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15934
15935 2002-03-18 Mark Mitchell <mark@codesourcery.com>
15936
15937 * calls.c (precompute_arguments): Do not assume that temporaries
15938 can be destroyed after expanding the argument.
15939 (expand_call): Likewise.
15940
15941 2002-03-15 Eric Christopher <echristo@redhat.com>
15942
15943 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15944 Fix register preference on last change.
15945 * config/mips/mips.c (mips_return_in_memory): New function.
15946 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15947 * config/mips/mips-protos.h: Declare.
15948 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15949 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15950
15951 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
15952
15953 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15954 a register too.
15955 (anddi3, iorsi3): Likewise.
15956
15957 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15958 use %gprel for symbols that are going to be placed in linkonce
15959 sections.
15960
15961 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15962 RETURN_ADDRESS_POINTER_REGNUM to $ra.
15963 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15964 not needed. Disregard leaf_function_p().
15965 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15966 mips16 frame pointer.
15967 * config/mips/mips.md (store ra): Only to small SP offsets.
15968 2001-08-22 Graham Stott <grahams@redhat.com>
15969 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15970 return a REG rtx for the return address register.
15971
15972 2002-03-18 Bob Wilson <bob.wilson@acm.org>
15973
15974 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15975 constant-pool addresses as "mode-dependent".
15976 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15977
15978 2002-03-18 Jakub Jelinek <jakub@redhat.com>
15979
15980 PR target/5740
15981 * expr.c (emit_group_load): Use extract_bit_field if
15982 needed for CONCAT arguments.
15983
15984 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
15985
15986 PR target/4863
15987 * arm.md (tablejump): Make this a define_expand. For PIC add the
15988 offset to the base of the table.
15989 (thumb_tablejump): Matcher for Thumb tablejump insn.
15990 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15991 as the difference of two labels.
15992 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15993 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15994 tables in the code.
15995 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15996 * arm.c (get_jump_table_size): If the table is not in the text
15997 section, return zero.
15998
15999 2002-03-18 Bernd Schmidt <bernds@redhat.com>
16000
16001 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
16002 of gen_rtx_SUBREG.
16003 (arm_reload_out_hi): Use gen_lowpart instead of
16004 gen_rtx_SUBREG to access QImode components.
16005 * config/arm/arm.md: Disable zero_extend split for QImode
16006 subregs in BIG_ENDIAN mode.
16007 (storehi_bigend): Match use of least significant byte.
16008 (storeinthi): Remove extraneous SUBREG.
16009 Add missing construction of operands[2].
16010 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
16011 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
16012 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
16013
16014 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
16015
16016 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
16017 any_operand.
16018
16019 2002-03-17 Richard Henderson <rth@redhat.com>
16020
16021 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
16022 explicitly.
16023
16024 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
16025
16026 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
16027 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
16028
16029 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16030
16031 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
16032
16033 * predict.c (estimate_bb_frequencies): Delete unused variables.
16034
16035 2002-03-17 Richard Henderson <rth@redhat.com>
16036
16037 * config/ia64/ia64.c (ia64_attribute_table): Move before
16038 targetm definition. Make static.
16039
16040 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
16041
16042 * c-common.h (yyparse, c_common_parse_file): New.
16043 * c-lang.c: Include c-common.h.
16044 (LANG_HOOKS_PARSE_FILE): Redefine.
16045 * c-lex.c: Include c-common.h.
16046 (yyparse): Rename c_common_parse_file. Call yyparse.
16047 * c-parse.in (yyparse): Remove macro.
16048 * c-tree.h (yyparse_1): Remove.
16049 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
16050 (LANG_HOOKS_INITIALIZER): Update.
16051 * langhooks.h (struct lang_hoooks): New hook parse_file.
16052 * toplev.c (compile_file): Use parse_file hook.
16053 * tree.h (yyparse): Remove.
16054 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
16055
16056 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
16057
16058 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
16059 float_truncate, not fix.
16060 ("*truncdfsf2_real"): Ditto.
16061 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
16062
16063 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
16064
16065 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
16066
16067 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
16068 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
16069 where appropriate. Make the second reference to
16070 leaf_function_p a function call, as intended. Reindented.
16071
16072 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
16073 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
16074
16075 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
16076 add register to non-constant into sp.
16077
16078 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
16079 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
16080 (mips16_gp_pseudo_rtx): Lose.
16081 (INIT_EXPANDERS): Deleted.
16082 * config/mips/mips.c (mips_init_machine_status): New.
16083 (mips_free_machine_status): New.
16084 (mips_mark_machine_status): New.
16085 (override_options): Set them.
16086 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
16087 (struct machine_function): ... new. Replaced all references.
16088 (mips_add_gc_roots): Don't mark them.
16089 (embedded_pic_fnaddr_reg): New, extracted from...
16090 (embedded_pic_offset): ... here.
16091 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
16092 (movsi): Likewise.
16093
16094 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
16095
16096 * cppinit.c: Revert -MD removal.
16097
16098 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16099
16100 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
16101 soft registers by default for 68HC12.
16102 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
16103 when compiling with -fomit-frame-pointer.
16104 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
16105 (expand_epilogue): Likewise.
16106 (m68hc11_gen_rotate): Use exg when rotating by 8.
16107
16108 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16109
16110 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
16111 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
16112 (splits): Remove unused add splits.
16113 ("*addhi3_68hc12"): Tune constraints.
16114 ("addhi_sp"): Try to use X instead of Y in all cases and if the
16115 constant fits in 8-bits and D is dead use abx/aby instructions.
16116 ("*addhi3"): Remove extern declaration of ix_reg.
16117 ("*subsi3"): Optimize and provide new split.
16118 ("subhi3"): Cleanup.
16119 ("*subhi3_sp"): Avoid saving X if we know it is dead.
16120 (arith splits): For 68hc12 save the address register on the stack
16121 and do the arithmetic operation with a pop.
16122
16123 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16124
16125 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
16126 allocating QImode in address registers.
16127 ("*movqi_m68hc11"): Likewise.
16128
16129 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
16130
16131 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
16132
16133 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
16134
16135 * cppinit.c (print_help): Display -MD and -MMD.
16136 Don't display usage string. Update assertion syntax and
16137 typo.
16138 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
16139 (cpp_handle_option): Update.
16140
16141 2002-03-15 Chris Demetriou <cgd@broadcom.com>
16142
16143 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
16144 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
16145 and define it so that regardless of target CPU size,
16146 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
16147 of "int" rather than "long."
16148
16149 2002-03-15 Richard Henderson <rth@redhat.com>
16150
16151 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
16152 size as a tree.
16153
16154 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16155
16156 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
16157 ("tstqi" split): Avoid using memory for tstqi on address register.
16158 (splits): Remove constraints.
16159 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
16160 ("cmpdf", "cmpsf"): Remove since not used.
16161 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
16162 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
16163
16164 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16165
16166 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
16167 ("neghi2"): Tighten constraints.
16168 ("one_cmplsi2"): Optimize and simplify split.
16169 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
16170
16171 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16172
16173 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
16174 and split of AND operation to clear the upper bits.
16175 ("*logicalsi3_zextqi"): Likewise.
16176 ("*logicallhi3_zexthi_ashift8"): Likewise.
16177 ("*logicalsi3_silshr16"): Likewise.
16178 ("logicalsi3_silshl16"): Likewise.
16179 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
16180
16181 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16182
16183 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
16184 (m68hc11_indirect_p): New function.
16185 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
16186 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
16187 TARGET_M6812.
16188 (asm_print_register): Likewise.
16189 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
16190 (m68hc11_indirect_p): Declare.
16191 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
16192 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
16193 (TARGET_SWITCHES): New option -mrelax.
16194 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
16195 destination.
16196 ("iorsi3", "xorsi3"): Likewise.
16197 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
16198 ("*andhi3_mem"): New to handle destination in memory with bclr
16199 and a scratch register.
16200 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
16201 ("*andhi3_const"): New when operand2 is constant.
16202 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
16203 ("*andhi3_gen"): Cleanup of the old "andhi3".
16204 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
16205 ("xorqi3"): Update constraints.
16206
16207 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16208
16209 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
16210 for reg_equiv_memory_loc when the operand is a register that does
16211 not get a hard register (stack location).
16212 (tst_operand): After reload, accept all memory operand.
16213 (symbolic_memory_operand): Fix detection of symbolic references.
16214 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
16215 accept symbols and any constant.
16216
16217 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16218
16219 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
16220 note on the insn that sets the soft frame register.
16221 (must_parenthesize): ix and iy are also reserved names.
16222 (print_operand_address): One more place where parenthesis are required
16223 to avoid confusion with register names.
16224 (m68hc11_gen_movhi): Allow push of stack pointer.
16225 (m68hc11_check_z_replacement): Fix handling of parallel with a
16226 clobber.
16227 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
16228 the replacement register is.
16229 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
16230 and D8_REGS classes.
16231 (MODES_TIEABLE_P): All modes are tieable except QImode.
16232
16233 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16234
16235 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
16236 (___subdi3): Likewise.
16237 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
16238 (__map_data_section): Optimize 68hc11 case.
16239
16240 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16241
16242 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
16243 than a shift to avoid adding a register with itself.
16244 (m68hc11_memory_move_cost): Take into account NO_REGS.
16245 (m68hc11_register_move_cost): Update and use memory move cost
16246 for soft registers.
16247 (m68hc11_address_cost): Make cost of valid offset not 0 so that
16248 it gives more opportunities to cse to optimize.
16249 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
16250 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
16251
16252 2002-03-15 Mark Mitchell <mark@codesourcery.com>
16253
16254 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
16255 * c-common.def (CLEANUP_STMT): New tree node.
16256 * c-common.h (CLEANUP_DECL): New macro.
16257 (CLEANUP_EXPR): Likewise.
16258 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
16259 * expr.c (expand_expr): Tidy.
16260 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
16261 * tree-inline.c (initialize_inlined_parameters): Clean up
16262 new local variables.
16263
16264 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16265
16266 PR bootstrap/4128
16267 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
16268 before movrXX only, use reg_overlap_mentioned_p.
16269 Only special case NE if just one insn can be generated.
16270
16271 2002-03-15 Jason Merrill <jason@redhat.com>
16272
16273 * varasm.c (assemble_variable): Call resolve_unique_section before
16274 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
16275 of error_mark_node.
16276
16277 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
16278
16279 PR target/5170
16280 * arm.md (split pattern for thumb shiftable immediates): Add comment
16281 explaining non-obvious test.
16282
16283 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
16284
16285 PR target/5712
16286 * arm.md (movaddr, movaddr_insn): Delete.
16287
16288 2002-03-15 Jason Merrill <jason@redhat.com>
16289
16290 * toplev.c (wrapup_global_declarations): Clarify variable handling.
16291 -fkeep-static-consts doesn't apply to comdats.
16292
16293 2002-03-14 Richard Henderson <rth@redhat.com>
16294
16295 * c-decl.c: Include c-pragma.h.
16296 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
16297 (finish_function): Tidy.
16298 * c-pragma.c: Include c-common.h.
16299 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
16300 (handle_pragma_weak): Use them.
16301 (init_pragma): Register pending_weaks.
16302 * c-pragma.h (maybe_apply_pragma_weak): Declare.
16303 * print-tree.c (print_node): Print DECL_WEAK.
16304 * varasm.c (mark_weak_decls): Remove.
16305 (remove_from_pending_weak_list): Remove.
16306 (add_weak): Remove.
16307 (asm_emit_uninitialised): Call globalize_decl for weak commons.
16308 (weak_decls): Make a tree_list.
16309 (declare_weak): Cons weak_decls directly.
16310 (globalize_decl): Remove weak_decls elements directly.
16311 (weak_finish): Simplify weak_decls walk. Don't weaken unused
16312 symbols. Don't pretend to handle aliases.
16313 (init_varasm_once): Update weak_decls registry.
16314 * Makefile.in: Update dependencies.
16315
16316 2002-03-14 Richard Henderson <rth@redhat.com>
16317
16318 PR target/5312
16319 * config/ia64/ia64.c: Include tm_p.h last.
16320 (gen_nop_type): Remove duplicate definition.
16321 (cycle_end_fill_slots): Set sched_data for second L slot.
16322 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
16323 (nop_cycles_until): Fix typos.
16324
16325 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16326
16327 PR optimization/5891
16328 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
16329
16330 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
16331
16332 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
16333 descriptors correctly.
16334
16335 2002-03-14 Michael Meissner <meissner@redhat.com>
16336
16337 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
16338 100, allowing MAX_UNROLLED_INSNS to be overridden.
16339
16340 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
16341 --param.
16342
16343 * unroll.c (params.h): Include.
16344 (MAX_UNROLLED_INSNS): Delete, now in params.h.
16345
16346 * doc/invoke.texi (--param max-unroll-insns): Document.
16347
16348 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
16349
16350 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16351
16352 * arm.md: Fix warnings about constraints in peepholes and splits.
16353
16354 2002-03-14 Zack Weinberg <zack@codesourcery.com>
16355
16356 * cpphash.h (struct lexer_state): Remove line_extension member.
16357 * cpplib.c (dequote_string, do_linemarker): New functions.
16358 (linemarker_dir): New data object.
16359 (DIRECTIVE_TABLE): No longer need to interpret #line in
16360 preprocessed source. Delete obsolete comment about return
16361 values of handlers.
16362 (end_directive, directive_diagnostics, _cpp_handle_directive):
16363 Don't muck with line_extension.
16364 (directive_diagnostics): No need to issue warnings for
16365 linemarkers here.
16366 (_cpp_handle_directive): Issue warnings for linemarkers here,
16367 when appropriate. Dispatch linemarkers to do_linemarker, not
16368 do_line.
16369 (do_line): Code to handle linemarkers split out to do_linemarker.
16370 Convert escape sequences in filename argument, both places.
16371
16372 * cppmacro.c (quote_string): Rename cpp_quote_string and
16373 export. All callers changed.
16374 * cpplib.h (cpp_quote_string): Prototype.
16375 * cppmain.c (print_line): Call cpp_quote_string on to_file
16376 before printing it.
16377
16378 * doc/cpp.texi: Document that escapes are now interpreted in
16379 #line and in linemarkers, and that non-printing characters are
16380 converted to octal escapes when linemarkers are generated.
16381
16382 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
16383
16384 * emit-rtl.c (try_split): Use delete_insns.
16385 * recog.c (split_all_insns): Fix terminating condition.
16386
16387 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16388 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
16389
16390 PR target/5828
16391 * arm.c (arm_output_epilogue): Fix floating-point register save
16392 adjustment when using a frame pointer.
16393
16394 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
16395
16396 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
16397 * config/mips/mips.c (compute_frame_size): Retrofit them here.
16398 (save_restore_insns, mips_expand_epilogue): And here.
16399 (build_mips16_call_stub): And here.
16400 (mips_function_value): Use the new macros to decide whether a single
16401 or complex float can be returned in floating-point registers. Return
16402 a parallel rtx in the complex case.
16403
16404 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
16405
16406 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
16407 call after liveness analysis.
16408
16409 * recog.c (split_insn): Use delete_insn_and_edges.
16410
16411 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
16412 instructions to have branch prediction notes.
16413 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
16414
16415 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
16416
16417 * configure.in: Don't pass -Wno-long-long to a ADA compiler
16418 that doesn't support it.
16419 * configure: Regenerate.
16420
16421 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16422
16423 PR target/5626
16424 * config/sparc/sparc.md (normal_branch, inverted_branch,
16425 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
16426 inverted_fp_branch): Adjust calls to output_cbranch.
16427 Set length attribute.
16428 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
16429 output_v9branch. Set length attribute.
16430 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
16431 predicates.
16432 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
16433 (output_cbranch): Likewise. Handle far branches.
16434 (output_v9branch): Handle far branches.
16435 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
16436 Adjust prototypes.
16437 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
16438 noov_compare64_op predicates.
16439
16440 2002-03-13 Jason Merrill <jason@redhat.com>
16441
16442 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
16443 into the function and constify it.
16444 * gthr-dce.h, gthr-solaris.h: Likewise.
16445
16446 2002-03-13 David Edelsohn <edelsohn@gnu.org>
16447
16448 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
16449 * config/rs6000/rs6000.c (rs6000_va_arg): Use
16450 std_expand_builtin_va_arg if not ABI_V4.
16451
16452 2002-03-13 Jason Merrill <jason@redhat.com>
16453
16454 * varasm.c (globalize_decl): New fn.
16455 (assemble_start_function): Use it.
16456 (asm_emit_uninitialized): Use it.
16457 (assemble_alias): Use it.
16458 (assemble_variable): Use it.
16459
16460 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
16461
16462 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
16463 2002-03-12 internal visibility change.
16464 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
16465 visibility into SYMBOL_REF_FLAG.
16466
16467 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
16468
16469 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
16470 VOIDmode operand. Add compile-time optimization for constant results.
16471
16472 2002-03-12 Jason Merrill <jason@redhat.com>
16473
16474 * c-typeck.c (convert_for_assignment): Don't allow conversions
16475 between pointers and references. Only allow lvalues to convert to
16476 reference.
16477
16478 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
16479
16480 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
16481 before prologue, to avoid scheduling problems.
16482
16483 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16484
16485 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
16486 (ELIMINABLE_REGS): Add sfp->sp.
16487 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
16488
16489 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16490
16491 PR optimization/5892
16492 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
16493
16494 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16495
16496 * loop.c (basic_induction_var): Don't call convert_modes if mode
16497 classes are different.
16498
16499 2002-03-12 Richard Henderson <rth@redhat.com>
16500
16501 PR optimization/5901
16502 * function.c (reposition_prologue_and_epilogue_notes): Position
16503 the markers after/before the last/first insn not deleted.
16504
16505 2002-03-12 Richard Henderson <rth@redhat.com>
16506
16507 PR optimization/5878
16508 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
16509 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
16510 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
16511
16512 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
16513 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
16514 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
16515
16516 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
16517 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
16518 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
16519 also. Don't set it if not flag_pic.
16520 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
16521 to be INVALID_REGNUM when not used.
16522
16523 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
16524
16525 * expmed.c (store_bit_field): Reset alias set for memory.
16526 (extract_bit_field): Same.
16527
16528 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16529
16530 * c-common.c (c_tree_code_type, c_tree_code_length,
16531 c_tree_code_name, add_c_tree_codes): Delete.
16532 * c-common.h (add_c_tree_codes): Delete.
16533 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
16534 Define.
16535 * c-objc-common.c (c_objc_common_init): Don't call
16536 add_c_tree_codes, instead set lang_unsafe_for_reeval.
16537 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
16538 objc_tree_code_name, add_objc_tree_codes): Delete.
16539 (objc_init): Don't call add_objc_tree_codes.
16540 * objc/objc-lang.c (tree_code_type, tree_code_length,
16541 tree_code_name): Define.
16542 * toplev.c (lang_independent_init): Don't set
16543 tree_code_length[IDENTIFIER_NODE].
16544 * tree.c (tree_code_type, tree_code_length, tree_code_name):
16545 Delete definitions, moved to language front-ends.
16546 * tree.def (IDENTIFIER_NODE): Hardwire the length.
16547 * tree.h (tree_code_type, tree_code_length, tree_code_name):
16548 Const-ify.
16549 (tree_code_length): Change type to unsigned char.
16550
16551 2002-03-12 Richard Henderson <rth@redhat.com>
16552
16553 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
16554 internal visibility change.
16555
16556 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16557
16558 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
16559 validize_mem() instead of change_address to avoid clobbering
16560 memory attributes.
16561
16562 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
16563
16564 * c-lex.h (position_after_whitespace): Remove.
16565
16566 2002-03-12 Jakub Jelinek <jakub@redhat.com>
16567
16568 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
16569 (lex_string): Use unsigned char pointers.
16570
16571 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16572
16573 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
16574 is not a valid memory_operand.
16575
16576 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16577
16578 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
16579 * config/xtensa/lib1funcs.asm: Fix copyright to include
16580 special case for libgcc files.
16581 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
16582 (__divsi3): Likewise.
16583 (__umodsi3): Likewise.
16584 (__modsi3): Likewise.
16585 * config/xtensa/lib2funcs.S: Fix copyright to include
16586 special case for libgcc files.
16587
16588 2002-03-12 Tom Rix <trix@redhat.com>
16589
16590 * collect2.c (resolve_lib_name): Move outside of
16591 OBJECT_FORMAT_COFF ifdef.
16592 (ignore_library): Same.
16593
16594 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16595
16596 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
16597
16598 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16599
16600 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
16601 to function_section before writing out the constant pool.
16602
16603 2002-03-12 David Edelsohn <edelsohn@gnu.org>
16604
16605 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
16606 zero_constant.
16607 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
16608
16609 2002-03-12 Alan Modra <amodra@bigpond.net.au>
16610
16611 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
16612 (adddi3): Likewise.
16613 (movdf): Likewise.
16614 (movdi): Likewise.
16615 (cmpsi splitter): Likewise.
16616 (modsi3): Fail if <= 0.
16617 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
16618 redundant test when HOST_BITS_PER_WIDE_INT != 32.
16619 (reg_or_sub_cint64_operand): Likewise.
16620 (num_insns_constant_wide): Optimize sign extension.
16621 (rs6000_legitimize_address): Likewise.
16622
16623 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16624
16625 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16626 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16627
16628 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16629
16630 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
16631 address calculation.
16632
16633 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16634
16635 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
16636 scratch register to DImode / TImode.
16637 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
16638 register used does not overlap the target.
16639
16640 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16641
16642 * Makefile.in (debug.o): Depend on debug.h.
16643 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
16644 * debug.c (do_nothing_debug_hooks): Likewise.
16645 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
16646 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
16647 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
16648 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
16649 * dwarfout.c (dwarf_debug_hooks): Likewise.
16650 * integrate.c (output_inline_function): Likewise.
16651 * objc/objc-act.c (synth_module_prologue): Likewise.
16652 * sdbout.c (sdb_debug_hooks): Likewise.
16653 * toplev.c (debug_hooks): Likewise.
16654 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16655
16656 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16657
16658 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
16659 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
16660 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
16661 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
16662 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
16663 * defaults.h (POINTER_SIZE): Define.
16664 * doc/tm.texi (POINTER_SIZE): Document default.
16665
16666 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16667
16668 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
16669
16670 2002-03-11 Richard Henderson <rth@redhat.com>
16671
16672 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
16673 if rebuild_label_notes_after_reload.
16674
16675 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
16676
16677 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
16678 emit pic register load if "internal" visibility.
16679 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
16680 (cris_expand_builtin_va_arg): Do all computations on trees.
16681
16682 2002-03-11 Richard Henderson <rth@redhat.com>
16683
16684 * rtlanal.c: Include recog.h.
16685 (keep_with_call_p): Fix thinko.
16686 * Makefile.in (rtlanal.o): Update dependencies.
16687
16688 2002-03-11 Chris Meyer <cmeyer@gatan.com>
16689
16690 * genflags.c (gen_insn): Use IS_VSPACE.
16691 * genoutput.c (output_insn_data): Likewise.
16692 (process_template): Likewise.
16693
16694 2002-03-11 Richard Henderson <rth@redhat.com>
16695
16696 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
16697
16698 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
16699
16700 * Makefile.in: Update.
16701 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
16702 Update documentation.
16703 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
16704 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
16705
16706 2002-03-11 Zack Weinberg <zack@codesourcery.com>
16707
16708 * Makefile.in: Give texi2pod its input file as a command line
16709 argument, not on stdin.
16710
16711 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
16712 Daniel Berlin <dan@dberlin.org>
16713
16714 C++ alias analysis improvement.
16715 * alias.c (record_component_aliases): Record aliases for base
16716 classes too.
16717
16718 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
16719
16720 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
16721
16722 2002-03-11 Douglas B Rupp <rupp@gnat.com>
16723
16724 * toplev.c (vms_fopen): Remove, not needed.
16725
16726 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
16727
16728 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
16729
16730 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
16731 for FP, already done later.
16732
16733 * toplev.c (debug_args): Add entry for VMS_DEBUG.
16734 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
16735
16736 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
16737
16738 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
16739 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
16740 LARGEST_EXPONENT_IS_NORMAL for the given mode.
16741 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
16742 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
16743 (ediv, emul, eldexp, esqrt): Likewise.
16744 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
16745 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
16746 (saturate): New function.
16747 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
16748 (make_nan): Use a saturation value instead of a NaN if
16749 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
16750 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
16751 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
16752 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
16753 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
16754 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
16755 !ROUND_TOWARDS_ZERO.
16756 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
16757 (ROUND_TOWARDS_ZERO): Document.
16758
16759 2002-03-11 Andreas Jaeger <aj@suse.de>
16760
16761 * cfg.c (dump_flow_info): Remove unused variable.
16762
16763 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
16764
16765 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
16766 computations on trees.
16767
16768 2002-03-10 Richard Henderson <rth@redhat.com>
16769
16770 PR 5693:
16771 * reload.c (copy_replacements_1): New.
16772 (copy_replacements): Use it to recurse through the rtx.
16773
16774 2002-03-10 Richard Henderson <rth@redhat.com>
16775
16776 * loop.c (strength_reduce): Compute number of iterations as
16777 unsigned HOST_WIDE_INT.
16778
16779 2002-03-10 Richard Henderson <rth@redhat.com>
16780
16781 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
16782 to move away from the end of the block.
16783
16784 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
16785
16786 PR preprocessor/5899
16787 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
16788
16789 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16790
16791 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
16792
16793 * attribs.c (decl_attributes): Fix signed/unsigned warning.
16794
16795 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
16796
16797 * config/mmix/mmix.c: Improve comments.
16798 (mmix_target_asm_function_prologue): Drop variable
16799 empty_stack_frame. Don't allocate unused slot above fp.
16800 (mmix_target_asm_function_epilogue): Mirror prologue changes.
16801 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
16802 brace in first column.
16803 (enum reg_class): Ditto.
16804 (FIRST_PARM_OFFSET): Now 0.
16805 (USER_LABEL_PREFIX): Remove #if 0:d definition.
16806
16807 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16808
16809 * combine.c (make_extraction): Fix error in last change.
16810
16811 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16812
16813 * c4x.c (c4x_fp_reglist): Const-ify.
16814 * cris.c (cris_print_operand): Likewise.
16815 * i386.c (ix86_va_arg): Likewise.
16816 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
16817 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
16818 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
16819 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
16820 * mcore.h (regno_reg_class): Likewise.
16821 * mips.c (gen_int_relational): Likewise.
16822 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
16823 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
16824 * pdp11.c (move_costs): Likewise.
16825 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
16826 * s390.c (s390_branch_condition_mnemonic, regclass_map):
16827 Likewise.
16828 * s390.h (regclass_map): Likewise.
16829 * sh.c (shift_amounts): Likewise.
16830 * sh.md (rotlsi3): Likewise.
16831
16832 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16833
16834 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
16835 (ne0+5): Use new clobber to generate proper shift pattern.
16836 Patch by Michael Matz <matz@kde.org>.
16837
16838 2002-03-09 Andreas Schwab <schwab@suse.de>
16839
16840 * gcc.c (validate_all_switches): Also handle `%W{...}'.
16841
16842 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16843
16844 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
16845
16846 2002-03-09 Jakub Jelinek <jakub@redhat.com>
16847
16848 PR middle-end/5877
16849 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
16850 even for non-representable constants.
16851
16852 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16853
16854 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
16855 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
16856 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
16857 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
16858 (pop_function_context): Compute MAY_SHARE parameter for
16859 fixup_var_refs.
16860 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
16861 (gen_mem_addressof): Call fixup_var_refs with new parm.
16862
16863 * combine.c (make_extraction): Don't make extension of CONST_INT.
16864
16865 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16866
16867 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
16868 in o32 and o64 ABIs.
16869 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
16870 but getting fixed-size structs passed in registers regardless of
16871 padding in o32 and o64 ABIs.
16872
16873 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
16874 offset before loading address of argument passed by transparent
16875 reference.
16876
16877 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
16878
16879 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
16880
16881 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16882
16883 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
16884 marker such that registers after it are saved.
16885
16886 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16887
16888 * sparc.c (arith_4096_operand): Fix error in last change.
16889
16890 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16891
16892 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16893 defaults for MEABI.
16894
16895 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16896
16897 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16898 vectors.
16899
16900 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16901
16902 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
16903
16904 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
16905
16906 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16907 removed; fix return value.
16908 * combine.c (combine_instructions): Dirtify blocks where we failed to
16909 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16910 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16911
16912 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16913
16914 * gcse.c (insert_insn_end_bb): Fix typo in last change.
16915
16916 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
16917
16918 * recog.c (peephole2_optimize): Re-distribute EH edges.
16919
16920 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
16921
16922 * expr.c (expand_expr): Use unsave lang hook.
16923 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16924 (LANG_HOOKS_INITIALIZER): Update.
16925 * langhooks.h (struct lang_hooks): New hook unsave.
16926 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16927 (unsave_expr_1): Remove unused lang_unsave_expr_now.
16928 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
16929 (unsave_expr_now): Remove.
16930 * tree.h (unsave_expr_now, lang_unsave,
16931 lang_unsave_expr_now): Remove.
16932 (lhd_unsave): New.
16933
16934 2002-03-08 Andreas Jaeger <aj@suse.de>
16935
16936 * flow.c (propagate_block_delete_insn): Remove unused variable.
16937
16938 2002-03-08 Kazu Hirata <kazu@hxi.com>
16939
16940 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16941 insn length for memory load/store.
16942
16943 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
16944
16945 * doc/install.texi (--with-libiconv-prefix): Document.
16946
16947 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
16948
16949 * doc/sourcebuild.texi: Fix typo.
16950
16951 2002-03-08 Jakub Jelinek <jakub@redhat.com>
16952
16953 PR c/3711
16954 * builtins.c (std_expand_builtin_va_arg): Do all computations on
16955 trees.
16956
16957 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16958
16959 * rtl.c (copy_most_rtx): Move from here ...
16960 * emit-rtl.c (copy_most_rtx): ... to here.
16961
16962 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16963
16964 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16965 SUBTARGET_CPP_SIZE_SPEC.
16966 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16967
16968 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16969
16970 2002-03-07 Matt Hiller <hiller@redhat.com>
16971
16972 * gensupport.c (first_dir_md_include): Renamed from include;
16973 change all references.
16974 (last_dir_md_include): Renamed from last_include; change all
16975 references.
16976 (init_md_reader): Unconditionally initialize base_dir whether or
16977 not filename is a relative path.
16978
16979 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
16980
16981 * config/fp-bit.c (_unord_f2): Compile it in even if
16982 US_SOFTWARE_GOFAST is enabled.
16983
16984 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16985 NULL_RTX. Set all HFmode operations as NULL_RTX.
16986 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16987 NULL_RTX, try reversing the comparison and the operands.
16988
16989 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16990
16991 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16992 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16993 and MATCH_OP_DUP.
16994
16995 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
16996
16997 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16998
16999 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
17000
17001 * basic-block.h (fixup_abnormal_edges): Declare.
17002 * reload1.c (fixup_abnormal_edges): New function.
17003 * reg-stack.c (convert_regs): Use it.
17004
17005 * gcse.c (insert_insn_end_bb): Handle trapping insns.
17006
17007 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
17008
17009 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
17010
17011 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
17012 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
17013 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
17014 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
17015 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
17016 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
17017 unless x and y could be infinite.
17018 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
17019 Check that the common type of both arguments is a real, even for
17020 targets without unordered comparisons. Allow an integer argument
17021 to be compared against a real.
17022 (expand_tree_builtin): Use expand_unordered_cmp.
17023 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
17024 * cse.c (fold_rtx): Likewise. Fix indentation.
17025 * fold-const.c (fold_real_zero_addition_p): New.
17026 (fold): Use it, and the new HONOR_... macros.
17027 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
17028 * jump.c (reversed_comparison_code_parts): After searching for
17029 the true comparison mode, use HONOR_NANS to decide whether it
17030 can be safely reversed.
17031 (reverse_condition_maybe_unordered): Remove IEEE check.
17032 * simplify-rtx.c (simplify_binary_operation): Use the new macros
17033 to decide which simplifications are valid. Allow the following
17034 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
17035 and (a - -b) to (a + b).
17036 (simplify_relational_operation): Use HONOR_NANS.
17037 * doc/tm.texi: Document the MODE_HAS_... macros.
17038
17039 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
17040
17041 * combine.c (simplify_comparison): If simplifying a logical shift
17042 right and compare with constant, force the comparison to unsigned.
17043
17044 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
17045
17046 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
17047
17048 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
17049 -mabi=no-altivec
17050 (alt_reg_names): Remove % for vrsave.
17051
17052 2002-03-06 Richard Henderson <rth@redhat.com>
17053
17054 PR optimization/5844
17055 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
17056 if used indicates we've already emitted one copy of an operand.
17057 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
17058 (gen_split): Supply a non-null used.
17059
17060 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
17061
17062 * reload1.c (reload): Unshare all rtl after reload is done.
17063
17064 * simplify-rtx.c (simplify_plus_minus): Do not abort,
17065 but simply fail if the expression is too complex to simplify.
17066 (simplify_gen_binary): Handle simplify_plus_minus failures.
17067
17068 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
17069
17070 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
17071 consistently call delete_trivially_dead_insns after CSE and GCSE;
17072 fix DFI_life dumping; do jump threading after liveness; do crossjumping
17073 after liveness2; update comment in last crossjumping.
17074 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
17075
17076 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
17077
17078 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
17079 after completing fast dead code elimination.
17080
17081 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
17082 COMPARE operator.
17083
17084 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
17085
17086 * version.c: Fix misplaced leading blanks on first line.
17087
17088 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
17089
17090 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
17091
17092 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
17093
17094 * cfgcleanup.c (mentions_nonequal_regs): New function.
17095 (thread_jump): Use it.
17096 * toplev.c (rest_of_compilation): Run jump threading after
17097 liveness.
17098
17099 2002-03-06 Jakub Jelinek <jakub@redhat.com>
17100
17101 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
17102 patch.
17103
17104 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
17105
17106 * predict.c (estimate_bb_frequencies): Do not reload the
17107 frequencies from notes.
17108
17109 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
17110
17111 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
17112 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
17113
17114 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
17115 delete_noop_moves): Return indeger.
17116 * flow.c (ndead): New variable.
17117 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
17118 BB argument; update callers.
17119 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
17120 (life_analysis): Do not call purge_all_dead_edges.
17121 (update_life_info): Return number of deleted insns; print statistics.
17122 (update_life_info_in_dirty_blocks): likewise.
17123 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
17124 return number of insns deleted.
17125
17126 * cse.c: Include timevar.h
17127 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
17128 iterate until stabilizes; print statistics; return number of killed
17129 insns.
17130 * Makefile.in: (cse.o): Add timevar.h dependency
17131 * rtl.h (delete_trivially_dead_insns): New.
17132 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
17133 * toplev.c (rest_of_compilation): Update callers.
17134
17135 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
17136 (try_optimize_cfg): Do not update liveness.
17137 (cleanup-cfg): Loop until try_optimize_cfg and dead code
17138 removal stabilizes; use delete_trivially_dead_insns.
17139
17140 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
17141
17142 2002-03-05 Zack Weinberg <zack@codesourcery.com>
17143
17144 * cppmain.c (setup_callbacks): Disable #pragma and #ident
17145 callbacks when processing assembly language.
17146
17147 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17148
17149 * pa.h (ASM_FILE_END): Define.
17150 * som.h (ASM_FILE_END): Delete.
17151
17152 * pa.c (function_arg): Don't pass floats in general registers in
17153 indirect calls if TARGET_ELF32.
17154
17155 2002-03-05 Richard Henderson <rth@redhat.com>
17156
17157 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
17158
17159 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
17160
17161 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
17162
17163 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17164
17165 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
17166 -r command line. Don't hide any symbols if not building
17167 shared libgcc.
17168
17169 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
17170
17171 * cfg.c (dump_flow_info): Warn about profile mismatches.
17172 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
17173 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
17174
17175 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17176
17177 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
17178 wide volatile memory by parts.
17179
17180 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17181
17182 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
17183 is NULL.
17184
17185 2002-03-05 Richard Henderson <rth@redhat.com>
17186
17187 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
17188
17189 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
17190
17191 * toplev.c (documented_lang_options): Document more
17192 language-specific options.
17193 * doc/invoke.texi (Warning Options): Correct documentation for
17194 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
17195 * c-decl.c (c_decode_option): Use a table to handle warning options.
17196
17197 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
17198
17199 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
17200 parameter to mmix_encode_section_info.
17201 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
17202 relocatably. Always produce ELF, not mmo if linking relocatably.
17203 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
17204 first is non-zero, don't add symbol prefix.
17205 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
17206 prototype accordingly.
17207
17208 2002-03-04 Krister Walfridsson <cato@df.lth.se>
17209
17210 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
17211
17212 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
17213
17214 * configure.in: Increase required makeinfo version to 4.1.
17215 * configure: Regenerate.
17216
17217 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
17218
17219 * .cvsignore: Remove *.info* and genrtl*; these files are generated
17220 elsewhere now.
17221
17222 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
17223
17224 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
17225 * doc/invoke.texi: Fix @math uses.
17226
17227 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
17228
17229 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
17230 removal
17231
17232 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
17233
17234 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
17235 (powerpc-*-eabisimaltivec*): Same.
17236
17237 * config/rs6000/t-ppcendian: New.
17238
17239 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17240
17241 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
17242 nonimmediate_src_operand and nonimmediate_lsrc_operand to
17243 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
17244
17245 2002-03-03 Richard Henderson <rth@redhat.com>
17246
17247 * toplev.c (rest_of_decl_compilation): Revert last two changes.
17248
17249 2002-03-03 Zack Weinberg <zack@codesourcery.com>
17250
17251 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
17252 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
17253 tree.c, config/m68k/m68k.c:
17254 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
17255 REAL_ARITHMETIC blocks unconditional. Delete some further
17256 #ifdef blocks predicated on REAL_ARITHMETIC.
17257 * flags.h, toplev.c: Delete remaining references to
17258 flag_pretend_float.
17259
17260 * doc/invoke.texi: Remove documentation of -fpretend-float.
17261 * doc/tm.texi: Describe the various REAL_* macros as provided by
17262 real.h, not by the target configuration files.
17263
17264 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
17265 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
17266 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17267 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
17268 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
17269 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
17270 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
17271 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
17272 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
17273 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
17274 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
17275 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
17276 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
17277 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
17278 config/xtensa/xtensa.h:
17279 Do not define, undefine, or mention in comments any of
17280 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
17281 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
17282 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
17283 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
17284 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
17285 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
17286 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
17287 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
17288 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
17289
17290 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17291
17292 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
17293 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
17294 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
17295 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
17296 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
17297 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
17298 Delete.
17299 * defaults.h (BITS_PER_WORD): Define.
17300 * doc/tm.texi (BITS_PER_WORD): Document default value.
17301
17302 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
17303 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
17304 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
17305
17306 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17307
17308 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
17309 lieu of explicit sizeof/sizeof.
17310 * i386.c (override_options, ix86_init_mmx_sse_builtins,
17311 ix86_expand_builtin): Likewise.
17312 * mips.c (mips_add_gc_roots): Likewise.
17313 * mmix.c (mmix_output_condition): Likewise.
17314 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
17315 altivec_init_builtins): Likewise.
17316 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
17317 * cppexp.c (Nsuff, parse_number): Likewise.
17318 * cppinit.c (builtin_array_end): Likewise.
17319 * gcc.c (n_default_compilers, process_command): Likewise.
17320 * genpreds.c (output_predicate_decls): Likewise.
17321 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
17322 * lcm.c (N_ENTITIES): Likewise.
17323 * stor-layout.c (set_sizetype): Likewise.
17324
17325 2002-03-03 Richard Henderson <rth@redhat.com>
17326
17327 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
17328 for types or labels.
17329
17330 2002-03-03 Richard Henderson <rth@redhat.com>
17331
17332 * c-decl.c (start_decl): Initialized variables are not common.
17333
17334 2002-03-02 Per Bothner <per@bothner.com>
17335
17336 * gcc.c (option_map): Suport new --bootclasspath option.
17337 --CLASSPATH is now just an alias for --classpath.
17338
17339 2002-03-02 Richard Henderson <rth@redhat.com>
17340
17341 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
17342 load if "internal" visibility.
17343 * doc/extend.texi: Document visibility meanings.
17344
17345 2002-03-02 Richard Henderson <rth@redhat.com>
17346
17347 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
17348 to functions as well.
17349
17350 2002-03-02 Richard Henderson <rth@redhat.com>
17351
17352 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
17353 (handle_visibility_attribute): Don't call assemble_visibility.
17354 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
17355 without asmspec. Invoke assemble_alias when needed.
17356 * varasm.c (maybe_assemble_visibility): New.
17357 (assemble_start_function, assemble_variable, assemble_alias): Use it.
17358
17359 2002-03-02 Richard Henderson <rth@redhat.com>
17360
17361 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
17362 invoke ENCODE_SECTION_INFO with first call flag.
17363
17364 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
17365 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
17366 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
17367 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
17368 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
17369 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
17370 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
17371 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
17372 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
17373 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
17374 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
17375 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
17376 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
17377 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
17378 config/mcore/mcore-protos.h, config/mcore/mcore.c,
17379 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
17380 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
17381 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
17382 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
17383 config/sh/sh.h, config/sparc/sparc.h,
17384 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
17385 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
17386 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
17387 FIRST argument. As needed, examine it and do nothing.
17388
17389 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
17390 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17391 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
17392
17393 * config/arm/t-pe (pe.o): Add dependencies.
17394
17395 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17396
17397 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
17398 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
17399 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
17400 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
17401 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
17402 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
17403 * defaults.h (BITS_PER_UNIT): Define.
17404 * doc/tm.texi (BITS_PER_UNIT): Document default value.
17405
17406 2002-03-02 Kazu Hirata <kazu@hxi.com>
17407
17408 * config/h8300/h8300-protos.h: Add a prototype for
17409 compute_a_shift_length.
17410 * config/h8300/h8300.c (h8300_asm_insn_count): New.
17411 (compute_a_shift_length): Likewise.
17412 (h8300_adjust_insn_length): Do not adjust insn length of shift
17413 insns.
17414 * config/h8300/h8300.md (anonymous shift patterns): Use
17415 compute_a_shift_length.
17416
17417 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17418
17419 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
17420 trunc_int_for_mode.
17421
17422 * emit-rtl.c (offset_address): Call update_temp_slot_address.
17423
17424 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17425
17426 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
17427 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
17428 * flags.h (flag_zero_initialized_in_bss): Declare.
17429 * toplev.c (flag_zero_initialized_in_bss): New flag.
17430 (lang_independent_options): Add flag_zero_initialized_in_bss.
17431 * tree.c (initializer_zerop): New function.
17432 * tree.h (initializer_zerop): Declare.
17433 * varasm.c (assemble_variable): If we can emit bss, put zero
17434 initializers in the bss section.
17435
17436 2002-03-02 Alan Modra <amodra@bigpond.net.au>
17437
17438 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
17439 like more than one symbol per .weak directive.
17440
17441 2002-03-01 Richard Henderson <rth@redhat.com>
17442
17443 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
17444 adjust argument_pointer by pretend_args_size.
17445 (ia64_va_start): Adjust va_start address by -pretend_args_size.
17446
17447 2002-03-01 Kazu Hirata <kazu@hxi.com>
17448
17449 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
17450
17451 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
17452
17453 * toplev.c (rest_of_compilation): Delete dead jumptables before
17454 loop.
17455 * flow.c (delete_dead_jumptables): Make global.
17456 * rtl.h (delete_dead_jumptables): Declare.
17457
17458 2002-03-01 David Edelsohn <edelsohn@gnu.org>
17459
17460 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
17461 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
17462 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
17463
17464 2002-03-01 Kazu Hirata <kazu@hxi.com>
17465
17466 * config/h8300/h8300-protos.h: Fix formatting.
17467 * config/h8300/h8300.c: Likewise.
17468 * config/h8300/h8300.h: Likewise.
17469
17470 2002-03-01 Kazu Hirata <kazu@hxi.com>
17471
17472 * config/h8300/h8300.c (print_operand): Support 16-bit
17473 constant addresses.
17474 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
17475
17476 2002-02-28 Richard Henderson <rth@redhat.com>
17477
17478 * expmed.c (store_bit_field): Prevent generation of CONCATs;
17479 pun complex values as integers; use gen_lowpart instead of
17480 gen_rtx_SUBREG.
17481 (extract_bit_field): Likewise.
17482
17483 2002-03-01 Alan Modra <amodra@bigpond.net.au>
17484 David Edelsohn <edelsohn@gnu.org>
17485
17486 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
17487 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
17488 (SUPPORTS_WEAK): Likewise.
17489 * output.h (add_weak): Add tree param.
17490 * varasm.c (add_weak): Likewise. Save decl.
17491 (struct weak_syms): Add decl field.
17492 (mark_weak_decls): New function.
17493 (init_varasm_once): ggc_add_root mark_weak_decls.
17494 (assemble_start_function): Use ASM_WEAKEN_DECL.
17495 (assemble_variable): Likewise.
17496 (assemble_alias): Likewise.
17497 (declare_weak): Pass decl to add_weak.
17498 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
17499 (remove_from_pending_weak_list): Declare and define for
17500 ASM_WEAKEN_DECL.
17501 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
17502 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
17503 * defaults.h (SUPPORTS_WEAK): Likewise.
17504 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
17505 .weak for code sym. Do emit .size for descriptor sym.
17506 (ASM_DECLARE_FUNCTION_SIZE): Define.
17507 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
17508 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
17509 .lglobl unless TARGET_XCOFF. Formatting fixes.
17510 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
17511 .weak for code sym.
17512 (HANDLE_PRAGMA_WEAK): Remove.
17513 (ASM_WEAKEN_LABEL): Remove.
17514 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
17515
17516 2002-03-01 Jason Merrill <jason@redhat.com>
17517
17518 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
17519 (TARGET_EXPR_CLEANUP): New macro.
17520
17521 2002-02-28 Steve Ellcey <sje@cup.hp.com>
17522
17523 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
17524 to take ptr_extend into account as third type of extension.
17525 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
17526 fields used by SUBREG_PROMOTED_UNSIGNED_P.
17527 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
17528 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
17529 * calls.c (precompute_arguments): Use new macro.
17530 (expand_call): Ditto.
17531 * combine.c (nonzero_bits): Ditto.
17532 (record_promoted_value): Ditto.
17533 * expr.c (store_expr): Ditto.
17534 (expand_expr): Ditto.
17535 * function.c (assign_parms): Ditto.
17536
17537 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
17538
17539 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
17540 override -shared and -shared-libgcc.
17541
17542 2002-02-28 David O'Brien <obrien@FreeBSD.org>
17543
17544 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
17545 of "ultrasparc".
17546 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
17547 to be broken.
17548
17549 2002-02-28 Richard Henderson <rth@redhat.com>
17550
17551 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
17552 4 cycle latency from MM producers.
17553 (ia64_internal_sched_reorder): Likewise with pipeline flush.
17554
17555 2002-02-28 Jakub Jelinek <jakub@redhat.com>
17556
17557 * mklibgcc.in: Don't use GNU make extension.
17558
17559 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17560
17561 * c-parse.in (STATIC): New terminal.
17562 (scspec): New non-terminal. Update productions accordingly.
17563 (program): Remove bogus ifc / end ifc.
17564 (array_declarator): Simplify production using STATIC.
17565
17566 2002-02-28 Jim Meyering <meyering@lucent.com>
17567
17568 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
17569 \a still means TARGET_BELL.
17570
17571 2002-02-28 Richard Henderson <rth@redhat.com>
17572
17573 * haifa-sched.c (sched_emit_insn): New.
17574 (schedule_block): Use last_scheduled_insn to track last insn.
17575 * sched-int.h (sched_emit_insn): Prototype.
17576 * config/ia64/ia64.c (last_issued): Remove.
17577 (ia64_variable_issue): Don't set it.
17578 (nop_cycles_until): Use sched_emit_insn.
17579
17580 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
17581
17582 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
17583 extended constants.
17584
17585 2002-02-28 Kazu Hirata <kazu@hxi.com>
17586
17587 * config/h8300/h8300.c: Fix formatting.
17588 * config/h8300/h8300.h: Likewise.
17589
17590 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
17591
17592 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
17593 which may overwrite the high byte of the frame pointer.
17594
17595 2002-02-28 Bo Thorsen <bo@suse.de>
17596
17597 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
17598 (STARTFILE_SPEC): Add 64 bit files.
17599 (ENDFILE_SPEC): Likewise.
17600
17601 2002-02-28 Jason Merrill <jason@redhat.com>
17602
17603 * c-decl.c (finish_function): Only warn about missing return
17604 statement with -Wreturn-type.
17605
17606 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
17607
17608 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
17609
17610 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
17611 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
17612
17613 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
17614
17615 * basic-block.h (BB_REACHABLE): Renumber.
17616 (BB_DIRTY, BB_NEW): New flags.
17617 (clear_bb_flags): Declare.
17618 (update_life_info_in_dirty_blocks): Declare.
17619 * cfg.c (clear_bb_flags): New function.
17620 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
17621 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
17622 reorder_insns, emit_insn_after): Mark block as dirty.
17623 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
17624 (update_life_info_in_dirty_blocks): New function.
17625 * recog.c (apply_change_group): Dirtify block.
17626
17627 * cse.c (cse_insn): Reorder emitting of jump insn to keep
17628 cfg consistent.
17629 * gcse.c (delete_null_pointer_checks): Likewise.
17630
17631 * toplev.c (dump_file_index): Move cse2 after bp,
17632 add DFI_null
17633 (dump_file_info): Similary.
17634 (rest_of_compilation): Avoid most of CFG rebuilds;
17635 do first if converision after null pointer checks, do cse2
17636 after branch prediction; avoid full liveness rebuild after
17637 initializing subregs.
17638 * invoke.texi (-d options): Document -du, renumber.
17639
17640 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
17641 (notice_new_block): Do not set BB_UPDATE_LIFE.
17642 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
17643 merge_blocks_move_successor_nojumps, merge_blocks,
17644 try_crossjump_to_edge): Likewise.
17645 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
17646 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
17647 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
17648 (merge_of_block): Do not use life_data_ok.
17649 (find_if_case_1): Do not use SET_UPDATE_LIFE.
17650 (if_convert): Use BB_DIRTY mechanizm to update life.
17651 * lcm.c (optimize_mode_switching): Update
17652 update_life_info_in_dirty_blocks
17653
17654 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17655
17656 * Makefile.in (integrate.o): Update.
17657 * c-decl.c (copy_lang_decl): Rename.
17658 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17659 * integrate.c: Include langhooks.h.
17660 (copy_decl_for_inlining): Update to use langhook.
17661 * langhooks-def.h (lhd_do_nothing_t,
17662 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
17663 (LANG_HOOKS_INITIALIZER): Update.
17664 * langhooks.c (lhd_do_nothing_t): New.
17665 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
17666 * tree.h (copy_lang_decl): Remove.
17667 objc:
17668 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17669
17670 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
17671
17672 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
17673 POST_DEC, and POST_MODIFY.
17674
17675 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17676
17677 * c-typeck.c (digest_init): Remove unused parameter; all
17678 callers changed.
17679
17680 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
17681
17682 * expmed.c (expand_shift): Correctly test for low part of a
17683 subreg.
17684
17685 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17686
17687 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
17688 insn UIDs with insn addresses.
17689
17690 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17691
17692 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
17693 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
17694 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
17695 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
17696 gcc.c, toplev.c: Delete code implementing -traditional mode.
17697
17698 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
17699 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
17700 Document removal of -traditional mode for compilation, and
17701 remove documentation only relevant to that mode.
17702
17703 * config/nextstep.h, config/ptx4.h, config/svr4.h,
17704 config/convex/convex.h, config/d30v/d30v.h,
17705 config/i386/dgux.h, config/i386/osf1elf.h,
17706 config/i386/osfelf.h, config/i386/osfrose.h,
17707 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
17708 config/m68k/hp310.h, config/m88k/dgux.h,
17709 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
17710 config/m88k/m88k.h, config/m88k/openbsd.h,
17711 config/mips/abi64.h, config/mips/osfrose.h,
17712 config/mips/svr4-5.h, config/mips/svr4-t.h,
17713 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17714 config/stormy16/stormy16.h: Remove all references to
17715 -traditional from target specs. Delete all mention of the
17716 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
17717 delete a couple of commented-out definitions of
17718 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
17719 to -traditional.
17720
17721 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
17722 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
17723
17724 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17725
17726 * mklibgcc.in: Don't use \n in a line subject to
17727 interpretation by echo.
17728
17729 2002-02-27 Graham Stott <grahams@redhat.com>
17730
17731 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
17732 Constify NAME.
17733
17734 * loop.c (prescan_loop): Handle PARALLEL.
17735
17736 * unroll.c (loop_iterations): Return 0 if the add_val for
17737 a BIV is REG.
17738
17739 * final.c (output_operand_lossage): Constify PFX_STR.
17740
17741 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
17742
17743 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
17744
17745 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
17746 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
17747
17748 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
17749
17750 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17751
17752 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
17753
17754 * cpplex.c (_cpp_lex_token): Handle directives in macro
17755 arguments.
17756 * cpplib.c (_cpp_handle_directive): Save and restore state
17757 if parsing macro args when entering a directive.
17758 * cppmacro.c (collect_args): No need to handle directives
17759 in macro arguments.
17760 (enter_macro_context, replace_args): Use the original macro
17761 definition in case it was redefined whilst collecting arguments.
17762 doc:
17763 * cpp.texi: Update.
17764
17765 2002-02-26 David Edelsohn <edelsohn@gnu.org>
17766
17767 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
17768 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
17769 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
17770 method on AIX.
17771 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
17772 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
17773 (load_toc_v4_PIC_2): Same.
17774
17775 2002-02-26 Alan Modra <amodra@bigpond.net.au>
17776
17777 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
17778
17779 2002-02-26 Richard Henderson <rth@redhat.com>
17780
17781 * config/alpha/alpha.md (ashldi_se): Re-enable.
17782
17783 2002-02-26 Richard Henderson <rth@redhat.com>
17784
17785 * config/alpha/alpha.c (alpha_encode_section_info): Examine
17786 MODULE_LOCAL_P; improve commentary.
17787
17788 2002-02-26 Zack Weinberg <zack@codesourcery.com>
17789
17790 * doc/cpp.texi: Clarify documentation of relationship between
17791 #line and #include.
17792
17793 2002-02-26 Kazu Hirata <kazu@hxi.com>
17794
17795 * config/h8300/h8300-protos.h: Update the prototype for
17796 compute_logical_op_length. Add the prototype for
17797 compute_logical_op_cc.
17798 * config/h8300/h8300.c (compute_logical_op_length): Figure out
17799 code from operands.
17800 (compute_logical_op_cc): New.
17801 * config/h8300/h8300.md: Combine all the logical op patterns
17802 in HImode and SImode. Use compute_logical_op_cc.
17803
17804 2002-02-26 Kelley Cook <kelleycook@comcast.net>
17805
17806 * config/i386/i386.c (print_operand): Don't append ATT-style
17807 length suffixs to x87 opcodes when in Intel mode.
17808
17809 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
17810
17811 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
17812 (init_emit_once): Update calls.
17813 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
17814 (init_syntax_once): Prototype.
17815
17816 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
17817
17818 * pa-linux.h (LIB_SPEC): Update definition.
17819 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17820
17821 2002-02-26 Richard Henderson <rth@redhat.com>
17822
17823 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
17824 if we emitted a stop bit.
17825
17826 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17827
17828 * configure.in (libgcc_visibility): Substitute.
17829 * configure: Rebuilt.
17830 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
17831 defined symbols .hidden.
17832
17833 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17834
17835 * attribs.c (c_common_attribute_table): Add visibility.
17836 (handle_visibility_attribute): New function.
17837 * varasm.c (assemble_visibility): New function.
17838 * output.h (assemble_visibility): Add prototype.
17839 * tree.h (MODULE_LOCAL_P): Define.
17840 * crtstuff.c (__dso_handle): Use visibility attribute.
17841 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
17842 for MODULE_LOCAL_P symbols too.
17843 * config/ia64/ia64.c (ia64_encode_section_info): Handle
17844 MODULE_LOCAL_P symbols the same way as local symbols.
17845 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
17846 into .sdata/.sbss by the user.
17847 * doc/extend.texi (Function Attributes): Document visibility
17848 attribute.
17849
17850 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17851
17852 PR debug/5770
17853 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
17854 STRING_CST initializer spanning the whole variable without
17855 embedded zeros.
17856 If expand_expr returned MEM, don't use it.
17857
17858 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
17859
17860 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
17861 generate a die for the lexical block.
17862
17863 2002-02-26 Kazu Hirata <kazu@hxi.com>
17864
17865 * config/h8300/h8300-protos.h: Add a prototype for
17866 compute_logical_op_length.
17867 * config/h8300/h8300.c (compute_logical_op_length): New.
17868 * config/h8300/h8300.md (anonymous logical patterns): Use
17869 compute_logical_op_length for length.
17870
17871 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17872
17873 * dwarf2out.c (modified_type_die): Do not call type_main_variant
17874 for vectors.
17875 (gen_type_die): Same.
17876
17877 * attribs.c (handle_vector_size_attribute): Set debug information.
17878
17879 2002-02-26 Daniel Egger <degger@fhm.edu>
17880
17881 * config/rs6000/rs6000.md: Swap define_insn attributes to
17882 fix incorrect generation of merge high instructions instead
17883 of merge low.
17884
17885 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17886
17887 * c-typeck.c (really_start_incremental_init): Use
17888 bitsize_zero_node for vectors.
17889
17890 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17891
17892 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17893 ("*set_vrsave_internal"): Same.
17894
17895 2002-02-25 Richard Henderson <rth@redhat.com>
17896
17897 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17898 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
17899
17900 2002-02-25 Jakub Jelinek <jakub@redhat.com>
17901
17902 PR target/5755
17903 * config/i386/i386.c (ix86_return_pops_args): Only pop
17904 fake structure return argument if it was passed on the stack.
17905
17906 2002-02-25 Jason Merrill <jason@redhat.com>
17907
17908 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17909 RESULT_DECL.
17910
17911 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17912
17913 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17914 link with shared_name only.
17915 * doc/invoke.texi (Link Options): Document new behavior.
17916
17917 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17918
17919 * c-typeck.c (push_init_level): Handle vectors.
17920
17921 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17922
17923 * config/sparc/sparc.c (const64_high_operand): Zero-extend
17924 operands of SPARC_SETHI_P.
17925 (input_operand): Likewise.
17926 (sparc_emit_set_const32): Likewise.
17927 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17928 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17929 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
17930 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17931 (movdi_insn_sp64_vis): Likewise.
17932 (movdi split, movdf split): Use SETHI32.
17933 * doc/md.texi: Document SPARC constraints L, M and N.
17934
17935 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17936
17937 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17938 ("*set_vrsave_internal"): use mfspr for Darwin.
17939
17940 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17941 gen_get_vrsave_internal.
17942
17943 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17944
17945 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17946
17947 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
17948
17949 * cpplex.c (cpp_interpret_charconst): Get signedness or
17950 otherwise of wide character constants correct.
17951 * cppexp.c (lex): Get signedness of wide charconsts correct.
17952
17953 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17954
17955 * optabs.c (widen_operand): Only call convert_modes for
17956 promoted SUBREG if signedness matches.
17957 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17958
17959 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17960
17961 * cpplib.c (glue_header_name): Use local buffer to build up
17962 header name.
17963
17964 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17965
17966 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17967
17968 2002-02-23 Kazu Hirata <kazu@hxi.com>
17969
17970 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17971 H8/300[HS] separately.
17972 * config/h8300/h8300.md: Remove the early clobber constraint
17973 from bit field patterns.
17974
17975 2002-02-23 Kazu Hirata <kazu@hxi.com>
17976
17977 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17978 register_operand.
17979 (mulhisi3): Likewise.
17980 (umulqisi3): Likewise.
17981 (umulhisi3): Likewise.
17982
17983 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17984
17985 * cppinit.c (output_deps): Correct test for stdout output.
17986 (init_dependency_output): Cure warning.
17987
17988 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17989
17990 * expr.c (store_expr): When converting expression to promoted
17991 equivalent type, allow using SUBREG_REG of TARGET as the target
17992 of the expansion of EXP.
17993 * loop.c (basic_induction_var, case SUBREG): Always look inside.
17994 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17995 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17996 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17997 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17998
17999 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
18000
18001 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
18002 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
18003 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
18004
18005 2002-02-23 Jakub Jelinek <jakub@redhat.com>
18006
18007 PR optimization/5747
18008 * loop.c (scan_loop): Update reg info if move_movables created new
18009 pseudos.
18010
18011 2002-02-23 David Edelsohn <edelsohn@gnu.org>
18012
18013 * gcc.c (init_gcc_spec): Revert last change.
18014
18015 2002-02-23 David Edelsohn <edelsohn@gnu.org>
18016
18017 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
18018 gpc_reg_operand constraint.
18019
18020 2002-02-23 Alan Modra <amodra@bigpond.net.au>
18021
18022 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
18023 Simplify comparison of `low'.
18024 (add_operand): Fix formatting.
18025 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
18026 (mask_operand): Disallow mask to wrap in 64-bit mode.
18027 (rs6000_stack_info): Remove redundant test setting push_p.
18028 (output_toc): Fix formatting.
18029 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
18030 cc_reg_not_cr0_operand constraint.
18031 (booldi3, boolcdi3 splitters): Same.
18032
18033 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
18034
18035 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
18036
18037 2002-02-22 David Edelsohn <edelsohn@gnu.org>
18038
18039 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
18040 gcc invoked with -shared-libgcc.
18041
18042 2002-02-22 Jakub Jelinek <jakub@redhat.com>
18043
18044 PR c++/5748
18045 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
18046 decl if any of elements was TREE_USED.
18047
18048 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
18049
18050 * config/sparc/sol2.h: Don't include sys/mman.h.
18051 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
18052 (arith_4096_operand): Don't throw high bits away.
18053 (const64_operand): Take sign extension of CONST_INTs into account.
18054 (const64_high_operand, sparc_emit_set_const32): Likewise.
18055 (GEN_HIGHINT64): Likewise.
18056 (sparc_emit_set_const64_quick1): Likewise.
18057 (const64_is_2insns): Likewise.
18058 (print_operand): Use trunc_int_for_mode for sign extension.
18059 * config/sparc/sparc.h (SMALL_INT32): Likewise.
18060 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
18061 chars. Assume CONST_INT is already properly sign-extended.
18062 (movdi split): Sign-extend each SImode part.
18063 (andsi3 split): Don't mask high bits off, so that result
18064 remains properly sign-extend.
18065 (iorsi3 split): Likewise.
18066 (xorsi3 split): Likewise.
18067
18068 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
18069
18070 * fold-const.c (fold): Fix typo in comments.
18071
18072 2002-02-21 Diego Novillo <dnovillo@redhat.com>
18073
18074 * Makefile.in (langhooks.o): Update dependencies.
18075
18076 2002-02-21 Diego Novillo <dnovillo@redhat.com>
18077
18078 * langhooks.c: Include flags.h.
18079
18080 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
18081
18082 * testsuite/gcc.dg/attr-alwaysinline.c: New.
18083
18084 * c-common.c (c_common_post_options): Set inline trees by
18085 default.
18086
18087 * doc/extend.texi (Function Attributes): Document always_inline
18088 attribute.
18089 Update documentation about inlining when not optimizing.
18090
18091 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
18092
18093 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
18094 unless DECL_ALWAYS_INLINE.
18095
18096 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
18097 unless DECL_ALWAYS_INLINE.
18098 (c_disregard_inline_limits): Disregard if always_inline set.
18099
18100 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
18101 Disregard if always_inline set.
18102 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
18103 unless DECL_ALWAYS_INLINE.
18104
18105 * attribs.c (handle_always_inline_attribute): New.
18106 (c_common_attribute_table): Add always_inline.
18107
18108 * config/rs6000/altivec.h: Add prototypes for builtins
18109 requiring the always_inline attribute.
18110
18111 2002-02-21 Eric Christopher <echristo@redhat.com>
18112
18113 * expmed.c (store_bit_field): Try to simplify the subreg
18114 before generating a new one when when the mode size of
18115 value is less than maxmode.
18116
18117 2002-02-21 Richard Henderson <rth@redhat.com>
18118
18119 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
18120 than gen_rtx_PLUS to form the sum.
18121 * explow.c (force_reg): Rearrange to not allocate new pseudo
18122 when force_operand returns a register.
18123 * expr.c (expand_assignment): Allow offset_rtx expansion to
18124 return a sum. Do not force addresses into registers.
18125 (expand_expr): Likewise.
18126 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
18127 to canonicalize arithmetic that didn't simpify.
18128 (simplify_plus_minus): New argument force; update
18129 all callers. Don't split CONST unless we can do something with it,
18130 and wouldn't lose the constness of the operands.
18131
18132 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
18133 that we generated earlier.
18134
18135 2002-02-21 Tom Tromey <tromey@redhat.com>
18136
18137 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18138 (output_line_info): Use constant `1', with a long explanatory
18139 comment.
18140 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
18141
18142 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
18143
18144 * jump.c (redirect_jump): If old label has no UID, don't try to
18145 delete it.
18146
18147 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
18148
18149 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
18150 If input is constant, do shifts at compile time.
18151
18152 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
18153
18154 * doc/extend.texi: Fix some more overfull hboxes.
18155
18156 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18157
18158 PR optimization/4994
18159 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
18160 register moves.
18161
18162 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18163
18164 PR c++/4574
18165 * expr.h (expand_and): Add mode argument.
18166 * expmed.c (expand_and): Add mode argument.
18167 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
18168 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
18169 * except.c (expand_builtin_extract_return_addr): Likewise.
18170 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
18171 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
18172 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
18173 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
18174 * config/c4x/c4x.md: Use GEN_INT (x) instead of
18175 gen_rtx (CONST_INT, VOIDmode, x).
18176
18177 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18178
18179 PR c/4697:
18180 * stmt.c (warn_if_unused_value): Move side effects test once more.
18181
18182 2002-02-20 Torbjorn Granlund <tege@swox.com>
18183
18184 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
18185 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
18186
18187 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
18188
18189 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
18190 SUBREG or ZERO_EXTEND.
18191
18192 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
18193
18194 * sh.h (current_function_anonymous_args): Remove.
18195 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
18196 of current_function_varargs and current_function_stdarg is set.
18197 * sh.c (sh_expand_prologue): Check current_function_varargs /
18198 current_function_stdarg / TARGET_SH5 instead of
18199 current_function_anonymous_args.
18200
18201 * sh64.h (TARGET_VERSION): Define.
18202
18203 2002-02-20 David Edelsohn <edelsohn@gnu.org>
18204
18205 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
18206 VRSAVE_REGNO on TARGET_ALTIVEC.
18207
18208 2002-02-20 Alan Modra <amodra@bigpond.net.au>
18209
18210 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
18211 bits of SImode const_int.
18212 (includes_rshift_p): Likewise.
18213 (print_operand): Call mask_operand and mask64_operand with correct
18214 mode.
18215 (rs6000_output_function_epilogue): Pad traceback table to word.
18216 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
18217 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
18218 mask64_operand with correct mode.
18219 (FUNCTION_ARG_REGNO_P): Correct parentheses.
18220
18221 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18222
18223 PR debug/4461
18224 * varasm.c (get_pool_constant_mark): New.
18225 * rtl.h (get_pool_constant_mark): Add prototype.
18226 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
18227 be represented if it has not been output.
18228
18229 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
18230
18231 * combine.c (do_SUBST): Sanity check substitutions of
18232 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
18233 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
18234 CONST_INT into its operand.
18235 (known_cond): Likewise, for ZERO_EXTEND.
18236 * simplify-rtx.c (simplify_unary_operation): Fix condition to
18237 allow for simplification of wide modes. Reject CONST_INTs in
18238 ZERO_EXTEND when their actual mode is not given.
18239
18240 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
18241
18242 * c-decl.c (pushdecl): If no global declaration is found for an
18243 extern declaration in block scope, try a limbo one.
18244
18245 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18246
18247 PR c++/4401
18248 * c-common.c (pointer_int_sum): Moved from...
18249 * c-typeck.c (pointer_int_sum): ...here.
18250 * c-common.h (pointer_int_sum): Add prototype.
18251
18252 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18253
18254 PR c++/5713
18255 * c-decl.c (duplicate_decls): Return 0 if issued error about
18256 redeclaration.
18257
18258 2002-02-20 Roger Sayle <roger@eyesopen.com>
18259 Jakub Jelinek <jakub@redhat.com>
18260
18261 PR c/4389
18262 * tree.c (host_integerp): Ensure that the constant integer is
18263 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
18264 when pos is zero or non-zero respectively. Clarify comment.
18265 * c-format.c (check_format_info_recurse): Fix host_integerp
18266 usage; the pos argument should be zero when assigning to a
18267 signed HOST_WIDE_INT.
18268
18269 2002-02-20 Richard Henderson <rth@redhat.com>
18270
18271 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
18272 of the operand, rather than assuming TImode.
18273 (ix86_expand_binop_builtin): Cope with commutative patterns
18274 using nonimmediate_operand for both operands.
18275 (ix86_expand_timode_binop_builtin): Likewise.
18276 (ix86_expand_store_builtin): Validate operand 1.
18277 (ix86_expand_unop1_builtin): Likewise.
18278
18279 2002-02-20 Philip Blundell <philb@gnu.org>
18280
18281 PR 5705
18282 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
18283
18284 2002-02-20 Richard Henderson <rth@redhat.com>
18285
18286 PR c/5615
18287 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
18288
18289 2002-02-20 Tom Tromey <tromey@redhat.com>
18290
18291 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18292 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18293 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18294 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18295 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
18296 unconditionally.
18297
18298 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
18299
18300 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
18301 for (const_int 0) in X not just INTVAL.
18302
18303 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
18304
18305 * doc/extend.texi: Avoid or reduce overfull hboxes.
18306
18307 2002-02-20 Diego Novillo <dnovillo@redhat.com>
18308
18309 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
18310 operations if the field does not start at a mode boundary.
18311
18312 2001-02-20 Joel Sherrill <joel@OARcorp.com>
18313
18314 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
18315 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
18316 Also done for -Acpu and -Amachine.
18317
18318 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
18319
18320 * cppinit.c (init_dependency_output): Take deps output file
18321 from -o if none given with -MF. Suppress normal output.
18322 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
18323 * doc/cpp.texi, doc/invoke.texi: Update.
18324
18325 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18326
18327 * toplev.c (output_quoted_string): Write unprintable
18328 characters with octal escapes.
18329
18330 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18331
18332 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
18333 really_call_used[VRSAVE_REGNO] if not Altivec.
18334
18335 2002-02-19 Alan Modra <amodra@bigpond.net.au>
18336
18337 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
18338 MODE_MASK.
18339 (constant_pool_expr_1): Fix formatting.
18340 (rs6000_legitimize_reload_address): Likewise.
18341
18342 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18343
18344 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
18345 now that we have one.
18346
18347 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18348
18349 * tree.h (struct tree_common): Remove aux. Add unused_0 at
18350 end of first block of bitfields (which was only seven bits);
18351 rename dummy to unused_1; remove comment which is no longer true.
18352
18353 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18354
18355 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
18356
18357 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18358
18359 PR 5399
18360 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
18361 if generating PIC.
18362
18363 PR 5054
18364 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
18365 arm_is_longcall_p rather than inspecting call-type cookie
18366 directly.
18367 (call_value_insn) [TARGET_THUMB]: Likewise.
18368
18369 2002-02-19 Graham Stott <grahams@redhat.com>
18370
18371 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
18372
18373 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18374
18375 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
18376 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
18377 (FP_SAVE_INLINE): Delete.
18378
18379 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
18380 * config/rs6000/eabi.asm: Remove ABI save restore routines.
18381 * config/rs6000/t-ppccomm: Build crtsavres.o.
18382 * config/rs6000/crtsavres.asm: New file.
18383
18384 2002-02-19 Philip Blundell <philb@gnu.org>
18385
18386 * config/arm/arm.c (use_return_insn): Don't reject interrupt
18387 functions.
18388 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
18389 (output_return_instruction): Allow interrupt functions to return with
18390 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
18391 (arm_expand_prologue): Subtract 4 before stacking LR in an
18392 interrupt function.
18393
18394 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18395
18396 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
18397 decl, not just FUNCTION_DECL.
18398 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
18399 (arm_assemble_integer): Likewise.
18400 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
18401 marked local.
18402
18403 2002-02-19 matthew green <mrg@eterna.com.au>
18404
18405 * config.gcc (sparc-*-netbsdelf*): Enable target.
18406 (sparc64-*-netbsd*): New target.
18407 * config/sparc/netbsd-elf.h: New file.
18408 * config/sparc/t-netbsd64: New file.
18409
18410 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18411
18412 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
18413
18414 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
18415
18416 * doc/invoke.texi: explicitly list the style guidelines that
18417 -Weffc++ checks for.
18418
18419 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
18420
18421 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
18422
18423 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
18424
18425 PR other/5718
18426 * gcc.c (cpp_unique_options): Treat -o as indicating object file
18427 only if not -E. If -E, pass -o through to the preprocessor.
18428
18429 2002-02-19 Kazu Hirata <kazu@hxi.com>
18430
18431 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
18432 register number with an appropriate macro.
18433
18434 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18435
18436 * doc/rtl.texi (Constants): Close @code tag.
18437
18438 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
18439
18440 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
18441 ("mmx_uavgv4hi3"): Same.
18442 ("pmulhrwv4hi3"): Same.
18443
18444 * tree-inline.c (walk_tree): Handle vectors.
18445
18446 * c-common.c (constant_expression_warning): Handle vectors.
18447 (overflow_warning): Same.
18448
18449 * sched-deps.c (sched_analyze_2): Handle vectors.
18450
18451 * rtlanal.c (rtx_unstable_p): Handle vectors.
18452 (rtx_varies_p): Same.
18453 (count_occurrences): Same.
18454 (regs_set_between_p): Same.
18455 (modified_between_p): Same.
18456 (modified_in_p): Same.
18457 (volatile_insn_p): Same.
18458 (volatile_refs_p): Same.
18459 (side_effects_p): Same.
18460 (may_trap_p): Same.
18461 (inequality_comparisons_p): Same.
18462 (replace_regs): Same.
18463 (computed_jump_p_1): Same.
18464
18465 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
18466 argument.
18467 (inner_mode_array): New.
18468 (copy_rtx): Handle vectors.
18469 (copy_most_rtx): Same.
18470 (rtx_equal_p): Same.
18471 (get_mode_alignment): Adjust for vectors.
18472
18473 * resource.c (mark_referenced_resources): Handle vectors.
18474 (mark_set_resources): Same.
18475
18476 * reload1.c (eliminate_regs): Handle vectors.
18477 (elimination_effects): Same.
18478 (scan_paradoxical_subregs): Same.
18479
18480 * reload.c (subst_reg_equivs): Handle vectors.
18481
18482 * regrename.c (scan_rtx): Handle vectors.
18483
18484 * regclass.c (reg_scan_mark_refs): Handle vectors.
18485
18486 * recog.c (find_single_use_1): Handle vectors.
18487
18488 * local-alloc.c (equiv_init_varies_p): Handle vectors.
18489 (contains_replace_regs): Same.
18490 (memref_referenced_p): Same.
18491
18492 * integrate.c (copy_rtx_and_substitute): Handle vectors.
18493 (subst_constants): Same.
18494
18495 * genattrtab.c (attr_copy_rtx): Handle vectors.
18496 (encode_units_mask): Same.
18497 (clear_struct_flag): Same.
18498 (count_sub_rtxs): Same.
18499
18500 * gcse.c (want_to_gcse_p): Handle vectors.
18501 (oprs_unchanged_p): Same.
18502 (hash_expr_1): Same.
18503 (oprs_not_set_p): Same.
18504 (expr_killed_p): Same.
18505 (compute_transp): Same.
18506 (store_ops_ok): Same.
18507
18508 * function.c (purge_addressof_1): Do not allow paradoxical subregs
18509 of vectors.
18510 (fixup_var_refs_1): Same.
18511 (instantiate_virtual_regs_1): Same.
18512
18513 * fold-const.c (operand_equal_p): Handle vectors.
18514 (fold): Same.
18515 (rtl_expr_nonnegative_p): Same.
18516
18517 * flow.c (mark_used_regs): Handle vectors.
18518
18519 * df.c (df_uses_record): Handle vectors.
18520
18521 * cselib.c (cselib_subst_to_values): Handle vectors.
18522 (cselib_mem_conflict_p): Same.
18523 (hash_rtx): Same.
18524
18525 * cse.c (canon_reg): Handle vectors.
18526 (fold_rt): Same.
18527 (cse_process_notes): Same.
18528 (count_reg_usage): Same.
18529 (canon_hash): Same.
18530
18531 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
18532
18533 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
18534
18535 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
18536 (gen_rtx): Handle CONST_VECTOR.
18537 (gen_const_vector_0): New.
18538 (copy_rtx_if_shared): CONST_VECTORs can be shared.
18539 (reset_used_flags): Same.
18540 (copy_insn_1): Same.
18541 (initializer_constant_valid_p): Handle VECTOR_CST.
18542
18543 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
18544
18545 * doc/rtl.texi (Constants): Document const_vector.
18546 (CONST0_RTX): Update for vectors.
18547 (RTL sharing): Same.
18548
18549 * print-tree.c (print_node): Add case for VECTOR_CST.
18550
18551 * tree.h (TREE_VECTOR_CST_ELTS): New.
18552 (struct tree_vector): New.
18553 (union tree_node): Add vector node.
18554 (build_vector): Add prototype.
18555
18556 * tree.def (VECTOR_CST): New.
18557
18558 * tree.c (build_vector): New.
18559
18560 * expmed.c (make_tree): Handle CONST_VECTOR.
18561
18562 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
18563 (CONST_VECTOR_ELT): New.
18564 (CONST_VECTOR_NUNITS): New.
18565
18566 * machmode.h (GET_MODE_INNER): New.
18567 (DEF_MACHMODE): Accept 8th arg.
18568
18569 * machmode.def: Add 8th argument for vector inner mode.
18570 Add inner vector modes for vectors.
18571
18572 * rtl.def (VEC_CONST): Remove.
18573 (CONST_VECTOR): New.
18574
18575 * expr.c (clear_storage): Allow vectors.
18576 (is_zeros_p): Handle VECTOR_CST.
18577
18578 * varasm.c (output_constant_pool): Handle vectors.
18579 (rtx_const): Add veclo and vechi fields.
18580 (kind): Add RTX_VECTOR.
18581 (decode_rtx_const): Add case for vector.
18582
18583 * config/rs6000/rs6000-protos.h: Add zero_constant.
18584
18585 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
18586 constants. Force easy vector constants into memory.
18587 (easy_vector_constant): New.
18588 (emit_easy_vector_constant): New.
18589 (rs6000_legitimize_reload_address): Do not generate bad reloads on
18590 darwin.
18591
18592 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
18593 instruction does.
18594 ("altivec_lvxl"): Same.
18595 (altivec_lvebx): Same.
18596 (altivec_lvehx): Same.
18597 (altivec_lvewx): Same.
18598 ("*movv4si_const0"): New.
18599 ("*movv4sf_const0"): New.
18600 ("*movv8hi_const0"): New.
18601 ("*movv16qi_const0"): New.
18602
18603 2002-02-18 Kazu Hirata <kazu@hxi.com>
18604
18605 * config/h8300/h8300.c (notice_update_cc): Use
18606 cc_status.value2.
18607
18608 2002-02-18 Kazu Hirata <kazu@hxi.com>
18609
18610 * config/h8300/h8300.md (divmod patterns): Change the
18611 constraints for operands[1] to register_operand.
18612
18613 2002-02-18 Kazu Hirata <kazu@hxi.com>
18614
18615 * config/h8300/h8300-protos.h: Remove the prototype for
18616 p_operand.
18617 * config/h8300/h8300.c (p_operand): Remove.
18618 * config/h8300/h8300.md: Replace p_operand with
18619 const_int_operand.
18620
18621 2002-02-18 Philip Blundell <pb@nexus.co.uk>
18622
18623 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
18624 comment.
18625 (output_return_instruction): Allow use of LDR to unstack
18626 return addresss even for interrupt handlers or when
18627 interworking. If compiling for ARMv5, use interworking-safe
18628 return instructions by default. Remove duplicated code and
18629 lengthy "strcat" sequences.
18630
18631 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18632
18633 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
18634 (LINK_EH_SPEC): Define.
18635 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
18636
18637 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
18638
18639 * config/s390/s390.c (s390_emit_prologue): Do not set the
18640 frame_related flag for call-clobbered registers.
18641
18642 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
18643
18644 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
18645 (construct_container): Fix handling of SSE operands.
18646 (ix86_expand_builtin): Fix handling of 64bit pointers.
18647 (mmx_maskmovq_rex): New pattern.
18648
18649 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
18650
18651 * regrename.c (kill_set_value): Handle subregs properly.
18652
18653 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
18654
18655 * objc/objc-act.c (handle_impent): Remove leading '*'
18656 from objc_class_name.
18657
18658 2002-02-17 Richard Henderson <rth@redhat.com>
18659
18660 * config/alpha/alpha.c (some_small_symbolic_operand,
18661 some_small_symbolic_operand_1, split_small_symbolic_operand,
18662 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
18663 Handle small SYMBOL_REFs anywhere, not just inside memories.
18664 * config/alpha/alpha-protos.h: Update.
18665 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18666 * config/alpha/alpha.md (small symbolic operand splitter): Update.
18667
18668 2002-02-17 Roland McGrath <roland@frob.com>
18669
18670 * config.gcc (powerpc-*-gnu-gnualtivec*,
18671 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
18672 * config/rs6000/gnu.h: New file.
18673 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
18674 Grok "gnu" in rs6000_abi_name.
18675 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
18676 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
18677 Grok -mcall-gnu analogous to -mcall-linux et al.
18678 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18679 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
18680 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
18681
18682 2002-02-17 Jakub Jelinek <jakub@redhat.com>
18683
18684 PR c/3444:
18685 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
18686 shortening.
18687
18688 2002-02-17 Philipp Thomas <pthomas@suse.de>
18689
18690 * config/cris/cris.h: Undefine STARTFILE_SPEC and
18691 ENDFILE_SPEC before (re)defining them.
18692
18693 2002-02-17 Kazu Hirata <kazu@hxi.com>
18694
18695 * config/h8300/h8300.c: Fix formatting.
18696 * config/h8300/h8300.h: Likewise.
18697
18698 2002-02-17 Philipp Thomas <pthomas@suse.de>
18699
18700 * doc/tm.texi: Explain why empty strings should not be
18701 marked for translation.
18702
18703 2002-02-17 Philipp Thomas <pthomas@suse.de>
18704
18705 * final.c (output_operand_lossage): Changed to accept
18706 printf style arguments. Change calls where necessary.
18707 * output.h (output_operand_lossage): Change declaration
18708 accordingly. Update copyright.
18709 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
18710 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
18711 Update copyright date where necessary.
18712
18713 * config/i386/i386.c (print_operand): Likewise. Remove use of
18714 sprintf.
18715
18716 * config/cris/cris.c (cris_operand_lossage): Likewise.
18717 Rename parameter so that exgettext recognizes it as
18718 translatable message.
18719 (LOSE_AND_RETURN): Rename parameter to msgid.
18720
18721 2002-02-17 Kazu Hirata <kazu@hxi.com>
18722
18723 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
18724 hard coded register number with an appropriate macro.
18725 (HARD_REGNO_MODE_OK): Likewise.
18726 (ARG_POINTER_REGNUM): Likewise.
18727 (STATIC_CHAIN_REGNUM): Likewise.
18728 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
18729 * config/h8300/h8300.md (define_constants): Define more
18730 register numbers.
18731
18732 2002-02-17 Philipp Thomas <pthomas@suse.de>
18733
18734 * config/i386/i386.h: Don't mark empty strings for translation.
18735
18736 2002-02-16 H.J. Lu <hjl@gnu.org>
18737
18738 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
18739
18740 2002-02-16 Zack Weinberg <zack@codesourcery.com>
18741
18742 * cppinit.c (merge_include_chains): Check for brack being
18743 NULL before attempting to merge it with qtail.
18744
18745 2002-02-16 Andrew Cagney <ac131313@redhat.com>
18746
18747 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
18748 DBX_DEBUG.
18749
18750 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18751
18752 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
18753
18754 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18755
18756 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
18757 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
18758 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
18759
18760 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18761
18762 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
18763 now only if !TARGET_FIX.
18764 (*movsi_nt_vms_fix): New pattern.
18765
18766 2002-02-16 Douglas B Rupp <rupp@gnat.com>
18767
18768 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
18769 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
18770 (alpha_sa_mask, alpha_sa_size): Reflect above change.
18771 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
18772 (alpha_start_function, alpha_expand_epilogue): Likewise.
18773 (unicosmk_gen_dsib): Likewise.
18774
18775 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18776
18777 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
18778
18779 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
18780
18781 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
18782 check_and_change_labels, s390_final_chunkify): Delete.
18783 (s390_split_branches, s390_chunkify_pool): New functions.
18784 (s390_function_prologue): Call them.
18785
18786 * config/s390/s390.h (S390_REL_MAX): Delete.
18787 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
18788
18789 * config/s390/s390.md (cjump, icjump, jump): Fix length
18790 attribute calculation.
18791
18792
18793 2002-02-15 David Edelsohn <edelsohn@gnu.org>
18794
18795 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
18796 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
18797
18798 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18799
18800 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
18801 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
18802 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
18803
18804 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18805
18806 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
18807
18808 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18809
18810 * reload.c (find_dummy_reload): Check that an output register
18811 is valid for its mode.
18812
18813 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
18814
18815 * combine.c (known_cond): After replacing the REG of a SUBREG, try
18816 to simplify it.
18817
18818 * function.c (assign_parms): Demote promoted argument passed by
18819 transparent reference.
18820
18821 2001-02-14 Joel Sherrill <joel@OARcorp.com>
18822
18823 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
18824 -Acpu() and -Amachine() to eliminate warnings.
18825
18826 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
18827
18828 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
18829
18830 2002-02-14 Kazu Hirata <kazu@hxi.com>
18831
18832 * config/h8300/h8300-protos.h: Update the prototype for
18833 const_costs.
18834 * config/h8300/h8300.c (const_costs): Treat SET as a little
18835 more expensive operation.
18836 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
18837 reference to const_costs.
18838
18839 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
18840
18841 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
18842
18843 2002-02-14 Jakub Jelinek <jakub@redhat.com>
18844
18845 PR c/5503:
18846 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
18847 use arguments from newtype.
18848
18849 2002-02-13 Eric Christopher <echristo@redhat.com>
18850
18851 * config/mips/mips.c (override_options): Add check for march/mipsX
18852 on the same command line. Fix error message in cpu processing.
18853 Remove architecture and ISA checks.
18854
18855 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18856
18857 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
18858
18859 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
18860
18861 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18862
18863 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
18864 alternatives.
18865 ("*movv8hi_internal1"): Same.
18866 ("*movv16qi_internal1"): Same.
18867 ("*movv4sf_internal1"): Same.
18868
18869 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
18870 not push_reload for altivec modes.
18871
18872 2002-02-13 Joel Sherrill <joel@OARcorp.com>
18873
18874 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
18875 all RTEMS targets including removal of #includes from config/*/rtems*.h
18876 file and adding them to tm_file setting. Added xm_defines=POSIX to
18877 many targets.
18878 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
18879 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
18880 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
18881 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
18882 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
18883 config/m68k/rtemself.h: Ditto.
18884 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
18885 config/mips/rtems64.h: Ditto.
18886 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
18887 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
18888 Ditto.
18889 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
18890 config/sparc/rtemself.h: Ditto.
18891 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
18892 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18893 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18894 more like arm-elf.
18895 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18896 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18897 target made more similar to i386-elf.
18898 * config/i386/t-rtems-i386: Added soft float support and multilibs.
18899 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18900 be similar to config/m68k/t-m68kelf.
18901 * gthr-rtems.h: Encapsulate with extern "C" for C++.
18902
18903 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
18904
18905 * regmove.c (kill_value): Handle subregs.
18906
18907 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
18908
18909 * i386.md (mul patterns): Allow memory operand to be first;
18910 add expanders where needed; fix constraints.
18911 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18912 Allow memory operand to be the first.
18913
18914 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18915 operands.
18916
18917 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18918
18919 PR c/5681:
18920 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18921 GET_MODE (x).
18922
18923 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18924
18925 PR optimization/5547:
18926 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18927 all valid IA-32 address modes involving non-scaled %ebx and
18928 GOT/GOTOFF as displacement.
18929
18930 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
18931
18932 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18933 after emitting ltorg insns.
18934
18935 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18936 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18937 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18938 *abssf2): Fix "op_type" attribute.
18939
18940 2002-02-13 Douglas B Rupp <rupp@gnat.com>
18941
18942 * mkconfig.sh: Avoid using a subshell redirect.
18943 ($output.T): Change to $(output)T.
18944 (ENABLE_NLS): Remove unneeded undef.
18945
18946 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18947 * config/alpha/x-vms (libsubdir): Define.
18948
18949 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18950 register frame procedures. Optimize retrieving context.
18951
18952 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18953 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18954 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18955
18956 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18957
18958 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18959 Make same change as for find_base_value.
18960
18961 2002-02-13 Kazu Hirata <kazu@hxi.com>
18962
18963 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18964 of QImode and SImode.
18965
18966 2002-02-13 Kazu Hirata <kazu@hxi.com>
18967
18968 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18969 length computation of movsi.
18970 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18971
18972 2002-02-13 Kazu Hirata <kazu@hxi.com>
18973
18974 * config/h8300/h8300.md (subqi3): Tighten the predicate for
18975 operands[2] to register_operand.
18976
18977 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
18978
18979 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18980
18981 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
18982
18983 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18984 for altivec_lvx* and altivec_stvx*.
18985 ("*movv4si_internal"): Add constraint for loading from GPRs.
18986 ("*movv8hi_internal1"): Same.
18987 ("*movv16qi_internal1"): Same.
18988 ("*movv4sf_internal1"): Same.
18989
18990 * config/rs6000/rs6000.c (altivec_register_operand): New.
18991
18992 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18993 altivec_register_operand.
18994
18995 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
18996
18997 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18998 handle SYMBOL_REF.
18999
19000 2002-02-13 Stan Shebs <shebs@apple.com>
19001
19002 * c-typeck.c (digest_init): Handle vectors.
19003 (really_start_incremental_init): Same.
19004 (pop_init_level): Same.
19005 (process_init_element): Same.
19006
19007 * varasm.c (output_constant): Same.
19008
19009 * expr.c (clear_storage): Same.
19010 (store_constructor): Same.
19011
19012 2002-02-12 Eric Christopher <echristo@redhat.com>
19013
19014 * explow.c (hard_function_value): Add comment explaining
19015 signed/unsigned comparison.
19016
19017 2002-02-12 Jakub Jelinek <jakub@redhat.com>
19018
19019 * jump.c (never_reached_warning): Add finish argument.
19020 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
19021 real insn after end.
19022 * rtl.h (never_reached_warning): Adjust prototype.
19023 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
19024 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
19025 never_reached_warning.
19026
19027 2002-02-12 Graham Stott <grahams@redhat.com>
19028
19029 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
19030
19031 2002-02-12 Kazu Hirata <kazu@hxi.com>
19032
19033 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
19034 logical shifts on H8/300.
19035 (shift_alg_si): Improve several shifts on H8/300.
19036 (get_shift_alg): Likewise.
19037
19038 2002-02-12 Graham Stott <grahams@redhat.com>
19039
19040 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
19041
19042 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19043
19044 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
19045 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
19046
19047 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
19048
19049 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
19050 non-CONST_INT through default_assemble_integer.
19051 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
19052 <case 8>: Abort for CONST_DOUBLE.
19053
19054 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
19055
19056 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
19057 is specified.
19058 * config/pa/pa-linux.h (LIB_SPEC): Delete.
19059 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
19060
19061 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
19062
19063 * config/stormy16/stormy16.md (zero_extendqihi2): New.
19064
19065 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
19066
19067 * regrename.c (regrename_optimize): Don't accept a
19068 part-clobbered register if the replaced register is not part
19069 clobbered.
19070
19071 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
19072 take padding into account when computing the argument value.
19073
19074 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
19075
19076 * combine.c (try_combine): Apply substitutions in
19077 CALL_INSN_FUNCTION_USAGE too.
19078
19079 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
19080
19081 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
19082 __builtin_altivec_abs*.
19083 (bdesc_abs): New.
19084
19085 * config/rs6000/rs6000.h (rs6000_builtins): Add
19086 ALTIVEC_BUILTIN_ABS*.
19087
19088 * config/rs6000/altivec.h: Use const char for builtins expecting
19089 literals.
19090 (vec_abs): New versions for C and C++.
19091 (vec_abss): Same.
19092
19093 2002-02-10 Kazu Hirata <kazu@hxi.com>
19094
19095 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
19096 using Pmode.
19097
19098 2002-02-10 Kazu Hirata <kazu@hxi.com>
19099
19100 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
19101 constant definition from h8300.md.
19102 (FRAME_POINTER_REGNUM): Likewise.
19103 * config/h8300/h8300.md (define_constants): Add FP_REG.
19104
19105 2002-02-10 Kazu Hirata <kazu@hxi.com>
19106
19107 * config/h8300/h8300.c (print_operand): Remove redundant code.
19108
19109 2002-02-10 Kazu Hirata <kazu@hxi.com>
19110
19111 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
19112 * config/h8300/h8300.c (byte_reg): Make it static.
19113
19114 2002-02-10 Richard Henderson <rth@redhat.com>
19115
19116 PR c/5623
19117 * c-typeck.c (incomplete_type_error): Handle flexible array members.
19118
19119 2002-02-10 Richard Henderson <rth@redhat.com>
19120
19121 PR c++/5624
19122 * tree.c (append_random_chars): Don't abort if main_input_filename
19123 does not exist.
19124
19125 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
19126
19127 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
19128
19129 2002-02-10 Kazu Hirata <kazu@hxi.com>
19130
19131 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
19132 (pushhi1): Likewise.
19133
19134 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
19135
19136 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
19137 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
19138
19139 2002-02-09 David O'Brien <obrien@FreeBSD.org>
19140
19141 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
19142 remove MASK_VIS.
19143 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
19144
19145 2002-02-09 Kazu Hirata <kazu@hxi.com>
19146
19147 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
19148 a half of an SImode register on H8/300.
19149
19150 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
19151
19152 * i386.md (movdi_2): Add missing '!'.
19153
19154 2002-02-09 Kazu Hirata <kazu@hxi.com>
19155
19156 * config/h8300/h8300.h: Fix formatting. Remove commented-out
19157 definitions.
19158
19159 2002-02-09 Kazu Hirata <kazu@hxi.com>
19160
19161 * config/h8300/h8300.md (length): Correct the distance valid
19162 for the short branch.
19163
19164 2002-02-09 Kazu Hirata <kazu@hxi.com>
19165
19166 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
19167
19168 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
19169
19170 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
19171 registers in SImode.
19172 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
19173 part-clobbered.
19174
19175 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
19176 patch.
19177
19178 Contribute sh64-elf.
19179 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
19180 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
19181 (sh_cannot_modify_jumps_p): New function.
19182 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
19183 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
19184 (sh_ms_bitfield_layout_p): New function.
19185 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
19186 Zack Weinberg <zack@codesourcery.com>
19187 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
19188 expand_simple_binop instead of expand_binop.
19189 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
19190 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
19191 use of .quad and .uaquad.
19192 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
19193 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
19194 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19195 * config/sh/sh.md (movdi_const, movdi_const_32bit,
19196 movdi_const_16bit): Make sure all CONSTs have modes.
19197 (sym2PIC): Ditto, but by adjusting all callers.
19198 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
19199 if the prologue calls the SHmedia argument decoder or register
19200 saver.
19201 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19202 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
19203 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
19204 (sh_expand_epilogue): Don't emit USE of return target register.
19205 (prepare_move_operands): Legitimize DImode PIC addresses.
19206 (sh_media_register_for_return): Skip tr0, used to initialize the
19207 PIC register.
19208 (sh_expand_prologue): Remove explicit USE of return register.
19209 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
19210 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
19211 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
19212 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
19213 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
19214 EXTRA_CONSTRAINT_T.
19215 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
19216 (MOVI_SHORI_BASE_OPERAND_P): New.
19217 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
19218 (EXTRA_CONSTRAINT_T): Define in terms of them.
19219 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
19220 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
19221 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
19222 alternatives supporting TARGET_REGS.
19223 (UNSPEC_GOTPLT): New constant.
19224 (movdi split): Move incrementing of LABEL_NUSES...
19225 (movdi_const, movdi_const_32bit): Here. Use
19226 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
19227 (movdi_const_16bit): New.
19228 (call, call_value) [flag_pic]: Use GOTPLT.
19229 (call_pop, call_value_pop): New expands.
19230 (call_pop_compact, call_pop_rettramp): New insns.
19231 (call_value_pop_compact, call_value_pop_rettramp): New insns.
19232 (sibcall) [flag_pic]: Use GOT.
19233 (builtint_setjmp_receiver): Remove bogus, unused expand.
19234 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
19235 (*pt, *ptb, ptrel): New insns.
19236 (sym2GOT): Handle DImode GOT.
19237 (sym2GOTPLT, symGOTPLT2reg): New expands.
19238 (sym2PIC): New expand.
19239 (shcompact_return_tramp): Use GOTPLT to return trampoline.
19240 (shcompact_return_tramp_i): Use return register explicitly.
19241 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
19242 disable flag_reorder_blocks.
19243 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19244 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
19245 clobbers, for clarity.
19246 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
19247 restoring of r0 in macl as MAYBE_DEAD.
19248 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
19249 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
19250 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
19251 alter_subreg all over.
19252 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
19253 reload, instead of emitting instructions that would require
19254 reloading.
19255 (casesi_load_media): Add missing modes.
19256 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
19257 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
19258 as used if the argument decoder is called.
19259 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
19260 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
19261 Pmode, then extend it to DImode if necessary.
19262 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
19263 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
19264 constants in FPU-enabled SHmedia, let them be loaded from memory.
19265 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
19266 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
19267 Adjust whitespace in assembly output templates.
19268 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
19269 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
19270 mode of if_then_else.
19271 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
19272 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
19273 sh.h.
19274 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
19275 Joern Rennecke <amylaar@redhat.com>
19276 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
19277 (SUBTARGET_CPP_PTR_SPEC): New.
19278 (SUBTARGET_CPP_SPEC): Remove.
19279 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
19280 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
19281 Fix typo in previous checkin.
19282 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
19283 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
19284 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
19285 Alexandre Oliva <aoliva@redhat.com>
19286 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
19287 what single FP register can hold for SHmedia target.
19288 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
19289 Alexandre Oliva <aoliva@redhat.com>
19290 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
19291 Do not split into SUBREG.
19292 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
19293 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
19294 and added new functions as specified in SH5 ABI r9.
19295 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
19296 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
19297 8-byte boundary.
19298 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
19299 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
19300 gen_consttable_4 and gen_consttable_8. Emit multiple labels
19301 and consttable_window_ends.
19302 2001-06-03 Graham Stott <grahams@redhat,com>
19303 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
19304 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
19305 * config/sh/sh.c (print_operand): Handle floating-point pair,
19306 vector and matrix registers.
19307 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
19308 vector modes into account.
19309 * config/sh/sh.md (movv2sf): Split move between registers into
19310 movdf.
19311 (movv4sf, movv16sf): Introduce insns that get split only after
19312 reload.
19313 * config/sh/shmedia.h: Fix Copyright dates.
19314 * config/sh/ushmedia.h: Likewise. Move loop counter
19315 declarations into conditionals that uses them.
19316 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
19317 loop boundary.
19318 * config/sh/sshmedia.h: Fix Copyright dates.
19319 (sh_media_PUTCFG): Fix constraints.
19320 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
19321 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
19322 ptrmemfunc_vbit_in_delta for SH5.
19323 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
19324 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
19325 * invoke.texi: Likewise.
19326 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
19327 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
19328 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
19329 GCC_pop_shmedia_regs_nofpu): New global symbols.
19330 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
19331 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
19332 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
19333 compact function with nonlocal labels.
19334 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
19335 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
19336 (initial_elimination_offset): Account for their stack space.
19337 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
19338 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
19339 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
19340 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
19341 least one of the operands to be a register.
19342 (movv2sf): Likewise. Renamed to movv2sf_i.
19343 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
19344 prepare_move_operands() before emitting SHmedia insns.
19345 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
19346 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
19347 Don't save nor initialize r12. Don't mis-align the stack.
19348 Pad the code with a nop.
19349 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
19350 stack.
19351 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
19352 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
19353 [__SHMEDIA__]: Implement.
19354 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
19355 * config/sh/sh.md: Set latency of `pt' closer to reality.
19356 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
19357 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
19358 Set move, load and store type attributes.
19359 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
19360 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
19361 profiling.
19362 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
19363 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
19364 * config/sh/sh.c (sh_media_register_for_return): New function.
19365 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
19366 branch-target register.
19367 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
19368 * config/sh/sh.md (return_media_i): Use any call-clobbered
19369 branch-target register.
19370 (return_media): If r18 wasn't copied in the prologue, copy it
19371 here.
19372 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
19373 Clear class FP0_REGS.
19374 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
19375 from elf.h.
19376 2001-03-08 DJ Delorie <dj@redhat.com>
19377 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
19378 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
19379 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
19380 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
19381 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
19382 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
19383 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
19384 return value correctly for call_cookie.
19385 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
19386 * config/sh/crt1.asm (start): Modified so as to call
19387 ___setup_argv_and_call_main.
19388 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
19389 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
19390 SHmedia mode.
19391 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
19392 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
19393 (STRIP_NAME_ENCODING): Use it.
19394 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
19395 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
19396 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
19397 prepare_scc_operands().
19398 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
19399 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
19400 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
19401 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
19402 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
19403 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
19404 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
19405 used in shcompact_incoming_args.
19406 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
19407 change.
19408 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
19409 mode.
19410 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
19411 Adjust accordingly.
19412 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19413 Simplify. Adjust. Add sanity check.
19414 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
19415 FPU_SINGLE_BIT.
19416 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
19417 TARGET_SHCOMPACT.
19418 (udivsi3, divsi3): Use them.
19419 (force_mode_for_call): New insn.
19420 (call, call_value, sibcall_value): Emit it before SHcompact
19421 calls.
19422 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
19423 * config/sh/sh.md (call, call_value, sibcall): Make sure the
19424 call cookie is non-NULL before taking its value.
19425 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
19426 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
19427 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
19428 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
19429 block.
19430 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
19431 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
19432 temporary for stack adjusts. Use MACL and MACH to pass
19433 arguments to shcompact_incoming_args.
19434 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
19435 clobber r1.
19436 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
19437 (nested_trampoline): Load static chain address into r1.
19438 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
19439 2001-01-07 Alexandre Oliva <aoliva@redhat.com
19440 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
19441 fp_arith_reg_operand().
19442 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
19443 * config/sh/sh.md (casesi): Sign-extend the first two operands,
19444 and use signed compares for them.
19445 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
19446 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
19447 ones properly aligned.
19448 (find_barrier): Account for extra alignment needed for 8-byte wide
19449 constants.
19450 (machine_dependent_reorg): Require a label for the second 4-byte
19451 constant after an 8-byte one.
19452 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
19453 change.
19454 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19455 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
19456 last_float when switching float modes.
19457 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
19458 auto-increment for general-purpose registers.
19459 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
19460 result.
19461 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
19462 for stack adjust.
19463 * config/sh/sh.c (sh_builtin_saveregs): Support using all
19464 registers for varargs.
19465 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
19466 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
19467 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
19468 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
19469 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
19470 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
19471 call_cookie accordingly.
19472 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
19473 (SHCOMPACT_BYREF): Likewise.
19474 (SHCOMPACT_FORCE_ON_STACK): New macro.
19475 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
19476 (sh_builtin_saveregs): Likewise.
19477 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19478 shcompact_incoming_args): Use new shift values. Support
19479 sequences of consecutive and non-consecutive pushes/pops.
19480 * config/sh/sh.md (return): Don't explicitly use PR_REG.
19481 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
19482 * config/sh/sh.h (TEXT_SECTION): Define.
19483 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
19484 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19485 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
19486 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
19487 return values on FPU-enabled SHmedia.
19488 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
19489 FPU-enabled SHmedia.
19490 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
19491 value is returned in a non-FP reg and is not returned by
19492 reference.
19493 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
19494 jump_ind.
19495 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
19496 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
19497 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
19498 quad-aligned to be passed by callee-copy reference.
19499 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
19500 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
19501 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
19502 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
19503 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
19504 copying low-numbered FP regs to r7 and r8.
19505 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
19506 FP regs to general-purpose regs only if the copy was passed on the
19507 stack.
19508 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
19509 copying FP reg to r9.
19510 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
19511 copy FP regs to general-purpose regs only in outgoing calls.
19512 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
19513 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
19514 HOST_WIDE_INT.
19515 * config/sh/sh.h (struct sh_args): Document all fields.
19516 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
19517 passed partially on the stack should not consider making
19518 sibcalls.
19519 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
19520 stack_regs only for incoming calls. When passing FP args,
19521 make sure there are FP regs available before modifying
19522 call_cookie.
19523 (SHCOMPACT_BYREF): Pass double args in general-purpose
19524 registers by reference.
19525 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
19526 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
19527 attempt to generate sibcalls if the caller got any arguments
19528 by reference.
19529 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
19530 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
19531 to 8-byte boundaries.
19532 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
19533 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
19534 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
19535 stored in the stack.
19536 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
19537 for the offsets to have the ISA bit set.
19538 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
19539 invocation. Use beq instead of bgt to mark end of sequence of
19540 loads.
19541 (shcompact_incoming_args): Fix store of r2. Use beq instead of
19542 bgt to mark end of sequence of stores.
19543 * config/sh/sh.c (arith_operand): Don't check whether
19544 CONST_OK_FOR_J for now.
19545 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
19546 instead of long for conversion.
19547 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
19548 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
19549 before passing it to fprintf.
19550 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
19551 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
19552 Call set_fpscr before reading/writing SR.
19553 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
19554 Call set_fpscr.
19555 * config/sh/lib1funcs.asm: Add `.align 2' directives before
19556 SHmedia code.
19557 (FMOVD_WORKS): Define on SH5 with FPU.
19558 (set_fpscr): Define on SH5. Remove separate _fpscr_values
19559 setting.
19560 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
19561 _fpscr_values.
19562 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
19563 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
19564 address.
19565 (ia_main_table): Ditto.
19566 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
19567 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19568 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
19569 the definitions from sh.h.
19570 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
19571 TARGET_SH5.
19572 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
19573 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
19574 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19575 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
19576 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
19577 Increment LABEL_NUSES.
19578
19579 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
19580 TARGET_SH5.
19581 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
19582 defined.
19583 * config/sh/elf.h (SIZE_TYPE): Likewise.
19584 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19585 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19586 shcompact_incoming_args): Load switch table addresses using
19587 datalabel.
19588 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19589 (NO_BUILTIN_SIZE_TYPE): Define.
19590 (SIZE_TYPE): Don't define.
19591 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19592 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
19593 definition of __SH5__=32 for -m5-compact-nofpu.
19594 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
19595 ADDR_DIFF_VEC.
19596 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
19597 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
19598 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
19599 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
19600 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
19601 (INSN_LENGTH_ALIGNMENT): Likewise.
19602 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19603 * config/sh/sh.md (call, call_value, sibcall): Simplify
19604 copying of non-branch-target register.
19605 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19606 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
19607 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
19608 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19609 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
19610 floating-point values as structs.
19611 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
19612 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
19613 general-purpose register.
19614 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
19615 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19616 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
19617 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
19618 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
19619 (ENCODE_SECTION_INFO): Enclose variables and constants in
19620 DATALABEL unspecs.
19621 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
19622 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
19623 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
19624 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
19625 only for LABEL_REFs. For SYMBOL_REFs, prepend
19626 SH_DATALABEL_ENCODING to the symbol name.
19627 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
19628 convert_mode().
19629 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19630 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
19631 UNSPEC_DATALABEL.
19632 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
19633 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
19634 (DATALABEL_REF_P): Don't require CONST.
19635 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
19636 REL label.
19637 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
19638 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
19639 right.
19640 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19641 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
19642 Use shallow_copy_rtx and PUT_MODE to change the mode of
19643 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
19644 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
19645 on SHmedia using GENERAL_REGs.
19646 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19647 bltu_media_i): Fix reversion of conditions.
19648 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19649 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
19650 * config/sh/sh.c (output_far_jump): Save r13 in macl.
19651 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
19652 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
19653 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
19654 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
19655 (GCC_nested_trampoline): Likewise.
19656 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
19657 * config/sh/sh.c (gen_datalabel_ref): Define.
19658 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
19659 (INITIALIZE_TRAMPOLINE): Likewise.
19660 (TRAMPOLINE_ADJUST_ADDRESS): Define.
19661 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
19662 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
19663 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
19664 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
19665 (ic_invalidate): Adjust for SH5.
19666 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
19667 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
19668 _nested_trampoline.
19669 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
19670 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
19671 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
19672 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19673 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
19674 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
19675 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19676 * config/sh/sh.c (target_reg_operand): Match only target-branch
19677 registers and pseudos that aren't virtual registers.
19678 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19679 Copy operands that don't match target_reg_operand to pseudos.
19680 (call_media, call_value_media, sibcall_media): Use
19681 target_reg_operand instead of target_operand.
19682 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
19683 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
19684 * config/sh/sh.c (target_reg_operand): Match hardware registers
19685 other than branch-target registers.
19686 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
19687 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
19688 (fpscr_values) [SH5 == 32]: Define.
19689 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
19690 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19691 Handle function addresses coming in SUBREGs.
19692 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
19693 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19694 shcompact_return_trampoline): Use datalabel where appropriate.
19695 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
19696 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
19697 general-purpose register to copy one branch-target register to
19698 another.
19699 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19700 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
19701 SYMBOL_REFs with VOIDmode.
19702 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19703 bltu_media_i): New insns.
19704 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19705 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
19706 (INIT_CUMULATIVE_ARGS): Likewise.
19707 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
19708 * machmode.def (V16SFmode): New mode.
19709 * c-common.c (type_for_mode): Support V2SF and V16SF.
19710 * tree.c (build_common_tree_nodes_2): Likewise.
19711 * tree.h (tree_index): Likewise.
19712 * calls.c (emit_call_1): Take args_so_far. Adjust all
19713 callers. Introduce CALL_POPS_ARGS.
19714 * tm.texi (CALL_POPS_ARGS): Document.
19715 * config/sh/crt1.asm: Implement in SHmedia mode.
19716 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
19717 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
19718 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
19719 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
19720 Implement divsi and udivsi in SHmedia mode. Introduce
19721 SHcompact trampolines.
19722 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
19723 only in SHmedia64.
19724 (regno_reg_class): Rewrite.
19725 (fp_reg_names): Remove.
19726 (sh_register_names, sh_additional_register_names): New.
19727 (print_operand): Added `u'. Support SUBREGs in addresses.
19728 Add parentheses around shifted CONSTs.
19729 (output_file_start): Output .mode and .abi directives.
19730 (shiftcosts, addsubcosts, multcosts): Adjust.
19731 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
19732 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
19733 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
19734 bytes, not registers. Take into account the need for the
19735 SHcompact incoming args trampoline. Adjust all callers.
19736 (sh_expand_prologue): Take stack_regs into account. Call
19737 incoming args trampoline. Keep stack aligned as per SH5 ABI.
19738 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
19739 stack aligned as per SH5 ABI.
19740 (sh_builtin_saveregs): Support SH5 ABI.
19741 (sh_build_va_list, sh_va_start): Likewise.
19742 (initial_elimination_offset): Take alignment into account.
19743 Compute location of PR according to the SH5 stack frame.
19744 (arith_reg_operand): Reject branch-target registers.
19745 (shmedia_6bit_operand): New.
19746 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
19747 (target_reg_operand): Match DImode only. Accept SUBREGs.
19748 (target_operand): New.
19749 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
19750 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
19751 SIBCALL_REGS for SHmedia.
19752 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
19753 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
19754 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
19755 (TARGET_SWITCHES): New SH5 flags.
19756 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
19757 VALID_REGISTER_P to disable unsupported registers.
19758 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
19759 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
19760 (FUNCTION_ARG_PADDING): Define.
19761 (FASTEST_ALIGNMENT): Adjust.
19762 (SH_REGISTER_NAMES_INITIALIZER): New.
19763 (sh_register_names): Declare.
19764 (DEBUG_REGISTER_NAMES): Define.
19765 (REGISTER_NAMES): Define based on sh_register_names.
19766 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
19767 (sh_additional_register_names): Declare.
19768 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
19769 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
19770 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
19771 (REGISTER_NATURAL_MODE): Define.
19772 (FIRST_PSEUDO_REGISTER): Adjust.
19773 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
19774 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
19775 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
19776 (VECTOR_MODE_SUPPORTED_P): Define.
19777 (REG_CLASS_CONTENTS): Adjust.
19778 (SMALL_REGISTER_CLASSES): Adjust.
19779 (REG_ALLOC_ORDER): Adjust.
19780 (INDEX_REG_CLASS): Adjust.
19781 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
19782 (CONST_OK_FOR_LETTER_P): Adjust.
19783 (PREFERRED_RELOAD_CLASS): Adjust.
19784 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
19785 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
19786 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
19787 (FIRST_FP_PARM_REG): Adjust.
19788 (CALL_POPS_ARGS): Define.
19789 (FUNCTION_ARG_REGNO_P): Adjust.
19790 (struct sh_args): New fields.
19791 (GET_SH_ARG_CLASS): Adjust.
19792 (INIT_CUMULATIVE_ARGS): Adjust.
19793 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
19794 (FUNCTION_ARG_ADVANCE): Adjust.
19795 (FUNCTION_ARG): Adjust.
19796 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
19797 (FUNCTION_ARG_CALLEE_COPIES): Define.
19798 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
19799 (STRICT_ARGUMENT_NAMING): Define.
19800 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
19801 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
19802 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
19803 (SETUP_INCOMING_VARARGS): Adjust.
19804 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
19805 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
19806 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
19807 (SUBREG_OK_FOR_INDEX_P): Adjust.
19808 (EXTRA_CONSTRAINT_S): Update.
19809 (EXTRA_CONSTRAINT_T): New.
19810 (EXTRA_CONSTRAINT): Adjust.
19811 (GO_IF_LEGITIMATE_INDEX): Adjust.
19812 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
19813 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
19814 (MOVE_MAX): Adjust.
19815 (MAX_MOVE_MAX): Define.
19816 (Pmode): Adjust.
19817 (CONST_COSTS): Adjust.
19818 (REGISTER_MOVE_COST): Adjust.
19819 (BRANCH_COST): Adjust.
19820 (TEXT_SECTION_ASM_OP): Adjust.
19821 (DBX_REGISTER_NUMBER): Adjust.
19822 (ASM_OUTPUT_DOUBLE_INT): New.
19823 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
19824 (PREDICATE_CODES): Adjust.
19825 (PROMOTE_MODE): Adjust.
19826 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
19827 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
19828 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
19829 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
19830 (DR0_REG, DR2_REG, DR4_REG): Renumber.
19831 (TR0_REG, TR1_REG, TR2_REG): New.
19832 (XD0_REG): Renumber.
19833 (UNSPEC_COMPACT_ARGS): New.
19834 (type): Added pt and ptabs.
19835 (length): Default to 4 on SHmedia. Default pt length to 12
19836 and 20 on SHmedia32 and SHmedia64, respectively.
19837 (pt): New function unit.
19838 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
19839 Add whitespace between operands of SHmedia instructions.
19840 (movdicc): Fix.
19841 (adddi3_media, addsi3_media): Adjust constraints.
19842 (subsi3) [SHmedia]: Force operand 1 into a register.
19843 (udivsi3_i1_media, udivsi3_i4_media): New.
19844 (udivsi3): Support SHmedia.
19845 (divsi3_i1_media, divsi3_i4_media): New.
19846 (divsi3): Support SHmedia.
19847 (anddi3, iordi3, xordi3): Adjust constraints.
19848 (zero_extendhidi2, zero_extendqidi2): New.
19849 (extendsidi2, extendhidi2, extendqidi2): New.
19850 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
19851 (pop_e, pop_fpul, pop_4): Likewise.
19852 (movsi_media): Support FP and BT registers.
19853 (movsi_media_nofpu): New. Adjust splits to DImode.
19854 (lduw, ldub): Renamed to zero_extend* above.
19855 (movqi_media): Fix typo.
19856 (movdi_media): Support FP and BT registers.
19857 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
19858 (movdi_const_32bit): New.
19859 (shori_media): Require immediate operand. Use `u' for output.
19860 (movdf_media, movsf_media): Simplified.
19861 (movdf_media_nofpu, movsf_media_nofpu): New.
19862 (movdf, movsf): Adjust
19863 (movv2sf, movv2sf, movv16sf): New.
19864 (beq_media, beq_media_i): Adjust constraints. Don't use
19865 scratch BT register.
19866 (bne_media, bne_media_i): Likewise.
19867 (bgt_media, bgt_media_i): Likewise.
19868 (bge_media, bge_media_i): Likewise.
19869 (bgtu_media, bgtu_media_i): Likewise.
19870 (bgeu_media, bgeu_media_i): Likewise.
19871 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
19872 bunordered): Emit jump insn. Force operands to registers when
19873 needed.
19874 (jump_media, jump): Simplify.
19875 (call_compact, call_compact_rettramp): New.
19876 (call_value_compact, call_value_compact_rettramp): New.
19877 (call_media, call_value_media): Simplify.
19878 (sibcall_compact, sibcall_media): New.
19879 (call, call_value): Adjust for SHmedia and SHcompact.
19880 (sibcall, sibcall_value, untyped_call): Likewise.
19881 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
19882 (indirect_jump): Adjust for SHmedia.
19883 (casesi_jump_media): New.
19884 (nop): Re-enable for SHmedia.
19885 (call_site): Restrict to SH1.
19886 (casesi): Adjust for SHmedia.
19887 (casesi_shift_media, casesi_load_media): New.
19888 (return): Explicitly use PR register. Call return trampoline
19889 on SHcompact.
19890 (return_i): Explicitly use PR register.
19891 (shcompact_return_tramp, shcompact_return_tramp_i): New.
19892 (return_media): Adjust.
19893 (shcompact_incoming_args): New.
19894 (epilogue): Adjust.
19895 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19896 (movstrsi): Disable on SH5.
19897 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19898 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19899 (subsf3, subsf3_media): Likewise.
19900 (mulsf3, mulsf3_media, mac_media): Likewise.
19901 (divsf3, divsf3_media): Likewise.
19902 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
19903 (floatsisf2, fux_truncsfsi2): Likewise.
19904 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
19905 constraints.
19906 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19907 (cmpunsf_media, cmpsf): Likewise.
19908 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19909 (abssf2, abssf2_media): Likewise.
19910 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19911 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19912 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
19913 (floatsidf2, fix_truncdfsi2): Likewise.
19914 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
19915 constraints.
19916 (cmpeqdf_media, cmpgtdf_media): Likewise.
19917 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19918 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19919 (absdf2, absdf2_media): Likewise.
19920 (extendsfdf2, extendsfdf2_media): Likewise.
19921 (truncsfdf2, truncsfdf2_media): Likewise.
19922 * config/sh/sh64.h: New file.
19923 * config/sh/t-sh64: New file.
19924 * config/sh/shmedia.h: New file.
19925 * config/sh/ushmedia.h: New file.
19926 * config/sh/sshmedia.h: New file.
19927 * configure.in: Added sh64-*-elf.
19928 * configure: Rebuilt.
19929 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
19930 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19931 (reg_class_from_letter): Use `b' for TARGET_REGS.
19932 (print_operand): Support `%M', `%m', `AND' and
19933 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
19934 (andcosts): Adjust for SHmedia.
19935 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19936 Likewise.
19937 (target_reg_operand): New function.
19938 * config/sh/sh-protos.h (target_reg_operand): Declare.
19939 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19940 FP registers on SH5.
19941 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19942 on SH4.
19943 (TARGET_REGISTER_P): New macro.
19944 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19945 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19946 (EXTRA_CONSTRAINT_S): New macro.
19947 (EXTRA_CONSTRAINT): Adjust.
19948 (FLOAT_TYPE_SIZE): Define to 32.
19949 (Pmode): DImode on SHmedia.
19950 (CONST_COSTS): Adjust for SHmedia literals.
19951 (PREDICATE_CODES): Added target_reg_operand.
19952 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19953 * config/sh/sh.md: Remove all attrs from SHmedia insns.
19954 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19955 (cmpdi): Accept SHmedia.
19956 (movdicc_false, movdicc_true): New insns.
19957 (movdicc): New expand.
19958 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19959 no_new_pseudos.
19960 (addsi3_media): Match `S' constraint.
19961 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19962 (negdi2): Expand for SHmedia.
19963 (one_cmpldi2): New expand.
19964 (zero_extendsidi2): Change from expand to insn.
19965 (extendsidi2): Add constraints.
19966 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
19967 LD/ST address. Fix SI immediate loading split.
19968 (movhi_media, movqi_media, lduw, ldub): New insns.
19969 (movhi, movqi): Accept SHmedia.
19970 (shori_media, movdi_media): Relax input constraints. Split
19971 symbolic constants.
19972 (movdf_media, movsf_media): New insn. New split to movdi.
19973 (movdf, movsf): Match on SHmedia.
19974 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19975 bgeu_media): New insns and splits. New insns with `_i' suffix.
19976 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19977 (bunordered): New expand.
19978 (jump_compact): Renamed from `jump'.
19979 (jump_media): New insn.
19980 (jump): New expand.
19981 (call_media, call_value_media): New insns.
19982 (call, call_value): Adjust.
19983 (indirect_jump_compact): Renamed from `indirect_jump'.
19984 (indirect_jump_media): New insn.
19985 (indirect_jump): New expand.
19986 (untyped_call, return): Accept SHmedia.
19987 (return_media): New insn.
19988 (prologue, epilogue, blockage): Accept SHmedia.
19989 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19990 (sunordered): New expand.
19991 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19992 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19993 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19994 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19995 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19996 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19997 abssf2_media): New insns.
19998 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19999 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
20000 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
20001 floatdidf2, floatsidf2_media, fix_truncdfdi2,
20002 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
20003 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
20004 absdf2_media): New insns.
20005 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
20006 (extendsfdf2_media, truncdfsf2_media): New insns.
20007 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
20008 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
20009 * config/sh/sh.h (CONST_OK_FOR_J): Document.
20010 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
20011 * config/sh/sh.md (adddi3): New expand.
20012 (adddi3_media, adddi3z_media): New insns.
20013 (adddi3_compact): Renamed from adddi3.
20014 (addsi3_media): Use add.l r63 to add constant zero.
20015 (subdi3): New expand.
20016 (subdi3_media): New insn.
20017 (subdi3_compact): Renamed from subdi3.
20018 (mulsidi3): New expand.
20019 (mulsidi3_media): New insn.
20020 (mulsidi3_compact): Renamed from mulsidi3.
20021 (umulsidi3): New expand.
20022 (umulsidi3_media): New insn.
20023 (umulsidi3_compact): Renamed from umulsidi3.
20024 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
20025 (ashlsi3, ashrsi3, lshrsi3): Use them.
20026 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
20027 (ashldi3, ashrdi3, lshrdi3): Use them.
20028 (zero_extendsidi2): New expand.
20029 (extendsidi2): New insn.
20030 (movsi_media): New insn. Split to movdi to load constants.
20031 (movsi): Enable for shmedia.
20032 (movdi_media): New insn. Use shori_media to load wide constants.
20033 (short_media): New insn.
20034 (movdi): Enable for shmedia.
20035 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
20036 * config/sh/sh.h (CPP_SPEC): Added `m5'.
20037 (SUBTARGET_CPP_SPEC): Added `!m5'.
20038 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
20039 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
20040 to all other SH variants.
20041 (TARGET_DEFAULT): Set to SH1_BIT.
20042 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
20043 (BITS_PER_WORD): Raise to 64 on shmedia.
20044 (MAX_BITS_PER_WORD): Change to 64.
20045 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
20046 (INT_TYPE_SIZE): Keep as 32.
20047 (UNITS_PER_WORD): Raise to 8 on shmedia.
20048 (MIN_UNITS_PER_WORD): Keep as 4.
20049 (POINTER_SIZE): Raise to 64 on shmedia.
20050 (CONST_OK_FOR_J): New macro.
20051 (CONST_OK_FOR_LETTER_P): Use it.
20052 (processor_type): Add PROCESSOR_SH5.
20053 * config/sh/sh.md: Conditionalize all expands, insns and
20054 splits to TARGET_SH1.
20055 (cpu): Added sh5.
20056 (addsi3_compact): Renamed from...
20057 (addsi3): Now an expand.
20058 (addsi3_media, subsi3_media): New insns.
20059 (subsi3): Don't negate constants with SHmedia.
20060
20061 * hooks.c: New file.
20062 * hooks.h: New file.
20063 * Makefile.in (HOOKS_H): New.
20064 (TARGET_DEF_H): Added $(HOOKS_H).
20065 (OBJS): Added hooks.o.
20066 (cfgcleanup.o, bb-reorder.o): Added target.h.
20067 (hooks.o): Added dependencies.
20068 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
20069 (TARGET_INITIALIZER): this.
20070 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
20071 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
20072 * bb-reorder.c: Include target.h.
20073 (reorder_basic_blocks): Skip if cannot modify jumps.
20074 * cfgcleanup.c: Include target.h.
20075 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
20076
20077 2002-02-08 Chris Demetriou <cgd@broadcom.com>
20078
20079 * config/mips/mips.md (casesi_internal, casesi_internal_di):
20080 Protect jump delay slot instructions with .set noreorder and
20081 .set nomacro.
20082
20083 2002-02-08 Chris Demetriou <cgd@broadcom.com>
20084
20085 * config/mips/mips.md (casesi_internal_di): Calculate
20086 the index into the target offset table correctly.
20087
20088 2002-02-08 Richard Henderson <rth@redhat.com>
20089
20090 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
20091 * final.c (output_addr_const): Accept and discard SUBREG.
20092 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
20093 mark them unknown instead.
20094 (simplify_subtraction): Handle RTX_UNKNOWN.
20095 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
20096
20097 2002-02-08 David Edelsohn <edelsohn@gnu.org>
20098
20099 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
20100
20101 2002-02-08 Richard Henderson <rth@redhat.com>
20102
20103 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
20104
20105 2002-02-08 Andreas Jaeger <aj@suse.de>
20106
20107 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
20108 * config/i386/t-linux64: New file.
20109
20110 2002-02-08 Jakub Jelinek <jakub@redhat.com>
20111
20112 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
20113 * c-parse.in (compstmt): Clear last_expr_type.
20114
20115 2002-02-07 Richard Henderson <rth@redhat.com>
20116
20117 * loop.c (strength_reduce): Sink final_value when not
20118 eliminating a biv.
20119
20120 2002-02-07 David O'Brien <obrien@FreeBSD.org>
20121
20122 * config/sparc/freebsd.h: Fix mismatched spec {.
20123
20124 2002-02-07 Richard Henderson <rth@redhat.com>
20125
20126 * cfgrtl.c: Include recog.h and insn-config.h.
20127 (keep_with_call_p): Fix general_operand invocation.
20128 * Makefile.in (cfgrtl.o): Update dependencies.
20129
20130 2002-02-07 Kazu Hirata <kazu@hxi.com>
20131
20132 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
20133 comment. Accept HImode only if TARGET_H8300.
20134
20135 2002-02-07 Eric Christopher <echristo@redhat.com>
20136
20137 * config/mips/crtn.asm: Cleanup #ifdefs.
20138
20139 2002-02-07 Eric Christopher <echristo@redhat.com>
20140
20141 * config/mips/crti.asm: Add changes for mips16. mips16 uses
20142 register 7 as RA instead of $31.
20143 * config/mips/crtn.asm: Ditto.
20144 * config/mips/mips.c (mips_move_2words): Add case for
20145 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
20146 (compute_frame_size): Fix typo.
20147 (save_restore_insns): Ditto. Make documentation about using
20148 register $7 as return register more precise.
20149 (mips_expand_epilogue): Fix comment. Add code to work around not
20150 being able to add to the stack pointer directly.
20151 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
20152 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
20153 epilogue.
20154
20155 2002-02-07 Tom Rix <trix@redhat.com>
20156
20157 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
20158 immediates in ldu and stdu DS opcode field.
20159 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
20160 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
20161 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
20162
20163 2002-02-07 Jeff Sturm <jsturm@one-point.com>
20164
20165 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
20166 offset for stack bias.
20167
20168 2002-02-07 H.J. Lu <hjl@gnu.org>
20169
20170 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
20171
20172 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
20173
20174 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
20175
20176 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
20177
20178 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
20179 * i386.c (x86_order_regs_for_local_alloc): New global function.
20180 * i386.h (REG_ALLOC_ORDER): CLeanup.
20181 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
20182
20183 2002-02-07 Richard Henderson <rth@redhat.com>
20184
20185 PR optimization/2463
20186 * alias.c (find_base_value): Recall base values for fixed hard regs.
20187 * loop.c (loop_regs_update): Don't use single_set on non-insns.
20188
20189 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
20190
20191 * config/mips/mips.md (define_delay) [mips16]: Adjust required
20192 length.
20193
20194 2002-02-06 Richard Henderson <rth@redhat.com>
20195
20196 PR c/5609
20197 * stmt.c (resolve_operand_name_1): Take more care with mixed
20198 named and unnamed operands.
20199
20200 2002-02-06 Janis Johnson <janis187@us.ibm.com>
20201 Jan Hubicka <jh@suse.cz>
20202
20203 * loop.c (remove_constant_addition): Avoid clobbering a shared
20204 CONST expression.
20205
20206 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
20207
20208 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
20209 * config/s390/t-linux64: New file.
20210 * config/s390/libgcc-glibc.ver: New file.
20211
20212 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
20213
20214 * config/s390/linux64.h: Delete file.
20215 * config/s390/s390x.h: New file.
20216 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
20217 as target header file.
20218 * config/s390/linux.h (TARGET_VERSION): Define depending on
20219 DEFAULT_TARGET_64BIT.
20220 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
20221 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
20222 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
20223 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
20224 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
20225 (EXTRA_SPEC): New define.
20226 * config/s390/s390.h (TARGET_VERSION): Define depending on
20227 DEFAULT_TARGET_64BIT.
20228 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
20229
20230 2002-02-06 Jason Merrill <jason@redhat.com>
20231
20232 * c-decl.c (finish_function): Warn about a non-void function with
20233 no return statement and no abnormal exit.
20234 (current_function_returns_abnormally): New variable.
20235 (start_function): Clear it.
20236 (struct c_language_function): Add returns_abnormally.
20237 (push_c_function_context): Save it.
20238 (pop_c_function_context): Restore it.
20239 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
20240 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
20241 an explicit return type.
20242 * c-tree.h: Declare current_function_returns_abnormally.
20243 (C_FUNCTION_IMPLICIT_INT): New macro.
20244 * c-typeck.c (build_function_call): Set it.
20245 (c_expand_return): Set current_function_returns_value even if the
20246 value is erroneous.
20247
20248 2002-02-06 Jakub Jelinek <jakub@redhat.com>
20249
20250 PR c/5420:
20251 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
20252 unsafe for reevaluation.
20253
20254 2002-02-06 Jakub Jelinek <jakub@redhat.com>
20255
20256 PR c/5482:
20257 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
20258 EXPR_STMT, but COMPOUND_STMT, recurse into it.
20259
20260 2002-02-06 Richard Henderson <rth@redhat.com>
20261
20262 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
20263 be a general_operand. Dest for function value must be a pseudo.
20264
20265 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
20266
20267 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
20268 as SYMBOL_REFs from the constant pool.
20269
20270 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
20271
20272 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
20273 passed by invisible reference.
20274
20275 2002-02-05 Richard Henderson <rth@redhat.com>
20276
20277 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
20278
20279 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
20280
20281 Implement using "base addresses" in insn operands as default.
20282 * config/mmix/mmix.c (mmix_conditional_register_usage): if
20283 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
20284 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
20285 used to read the rtx value.
20286 (mmix_target_asm_function_epilogue): Fix spacing.
20287 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
20288 (mmix_legitimate_address): Ditto.
20289 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
20290 should be loaded with a GETA insn. Don't allocate needless extra
20291 char for nul termination and fix misleading comment.
20292 (mmix_print_operand_address): Handle constants if
20293 TARGET_BASE_ADDRESSES.
20294 (mmix_output_register_setting): Use base addressing if
20295 TARGET_BASE_ADDRESSES and the number of insns is 3.
20296 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
20297 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
20298 to use R as constraint, add LDA to match s.
20299 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
20300 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
20301 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
20302 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
20303 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
20304 order with other fixed registers.
20305 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
20306 other parameter/call-clobbered registers.
20307 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
20308 -mbase-addresses, -mno-base-addresses.
20309 (MMIX Options): Ditto.
20310
20311 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20312
20313 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
20314
20315 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
20316
20317 * config/rs6000/altivec.h: Change elem to _S_elem.
20318
20319 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20320
20321 * config/netbsd.h (WCHAR_TYPE): Define.
20322 (WCHAR_TYPE_SIZE): Ditto.
20323 (WINT_TYPE): Ditto.
20324 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
20325 (WCHAR_UNSIGNED): Ditto.
20326 (WCHAR_TYPE_SIZE): Ditto.
20327 (WINT_TYPE): Ditto.
20328 * config/arm/netbsd.h: Likewise.
20329 * config/i386/netbsd-elf.h: Likewise.
20330 * config/i386/netbsd.h: Likewise.
20331 * config/m68k/netbsd-elf.h: Likewise.
20332 * config/m68k/netbsd.h: Likewise.
20333 * config/ns32k/netbsd.h: Likewise.
20334 * config/sparc/netbsd.h: Likewise.
20335 * config/vax/netbsd.: Likewise.
20336
20337 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
20338
20339 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
20340 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
20341 (TARGET_INITIALIZER): this.
20342 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
20343 (BITFIELD_NBYTES_LIMITED): Markup fix.
20344 * tree.h (default_ms_bitfield_layout_p): Declare.
20345 (record_layout_info): Added prev_field.
20346 * tree.c (default_ms_bitfield_layout_p): New fn.
20347 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
20348 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
20349 * stor-layout.c: Include target.h.
20350 (start_record_layout): Initialize prev_field.
20351 (place_field): Handle MS bit-field layout, and disregard
20352 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
20353 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
20354 * Makefile.in (stor-layout.o): Adjust dependencies.
20355
20356 2002-02-05 Jason Merrill <jason@redhat.com>
20357
20358 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
20359
20360 2002-02-05 Andreas Jaeger <aj@suse.de>
20361
20362 * crtstuff.c: Fix comments.
20363
20364 2002-02-05 Richard Henderson <rth@redhat.com>
20365
20366 PR fortran/3393
20367 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
20368 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
20369
20370 PR fortran/3392
20371 * config/mips/mips.c (function_arg): Handle TImode.
20372 (function_arg_advance): Likewise.
20373
20374 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20375
20376 * config/rs6000/altivec.h (vec_step_help): Rename to
20377 __vec_step_help.
20378
20379 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20380
20381 * config/rs6000/altivec.h: Fix typos.
20382
20383 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20384
20385 * config/arm/netbsd.h: Correct a comment.
20386
20387 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20388
20389 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
20390 building void typed builtins.
20391
20392 * config/rs6000/altivec.h (vec_ld*): Fix typos.
20393 (vec_step): Implement for C++.
20394
20395 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20396
20397 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
20398
20399 2002-02-04 Richard Henderson <rth@redhat.com>
20400
20401 * combine.c (nonzero_bits): Re-introduce special case for
20402 sp/fp/ap wrt REGNO_POINTER_ALIGN.
20403
20404 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20405
20406 * doc/extend.texi: Warn about unsupported usage of altivec
20407 builtins.
20408
20409 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
20410 (altivec_predicate_*): New.
20411
20412 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
20413 Add C++ version of vec_*() functions.
20414
20415 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
20416 (bdesc_2arg): Remove altivec predicates.
20417 (altivec_expand_builtin): Handle predicates.
20418 (altivec_init_builtins): Handle predicates.
20419 (altivec_expand_predicate_builtin): New.
20420
20421 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20422
20423 * pa.c (DO_FRAME_NOTES): Move forward.
20424 (store_reg): Revise handling of frame notes.
20425 (load_reg): Likewise.
20426 (set_reg_plus_d): Likewise.
20427 (hppa_expand_prologue): Likewise.
20428 (hppa_expand_epilogue): Likewise.
20429
20430 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20431
20432 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
20433
20434 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20435
20436 PR c/4475, c++/3780:
20437 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
20438 * c-common.h (SWITCH_TYPE): Define.
20439 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
20440 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
20441 Rename spareness variable to sparseness.
20442 (expand_end_case_type): Renamed from expand_end_case, use orig_type
20443 if non-NULL instead of TREE_TYPE (orig_index).
20444 * tree.h (expand_end_case_type): Renamed from expand_end_case.
20445 (expand_end_case): Define using expand_end_case_type.
20446 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
20447 to expand_end_case_type.
20448 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
20449
20450 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20451
20452 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
20453 (BIGGEST_ALIGNMENT): Change to 128.
20454
20455 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20456
20457 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
20458
20459 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20460
20461 * pa.md (call_internal_reg_64bit): Remove unused variable.
20462
20463 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
20464
20465 * config/arm/arm.h (machine_function): Add uses_anonymous_args
20466 field.
20467 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
20468 * config/arm/arm.c (current_function_anonymous_args): Delete,
20469 replace uses with cfun->machine->uses_anonymous_args.
20470 (arm_reorg): Do not reset uses_anonymous_args.
20471
20472 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
20473 any geenral register.
20474
20475 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
20476
20477 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
20478 the entry block.
20479
20480 2002-02-04 Richard Henderson <rth@redhat.com>
20481
20482 * combine.c (force_to_mode): Remove STACK_BIAS code.
20483 (nonzero_bits): Likewise. Replace sp/fp special case with
20484 REGNO_POINTER_ALIGN.
20485
20486 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
20487 (HARD_FRAME_POINTER_REGNUM): New.
20488 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
20489 (FIXED_REGS, CALL_USED_REGS): Update.
20490 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
20491 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
20492 (HARD_REGNO_NREGS): Update for SFP.
20493 (STACK_POINTER_OFFSET): Include bias here ...
20494 (FIRST_PARM_OFFSET): ... not here.
20495 (STACK_BIAS): Remove.
20496 (INIT_EXPANDERS): New.
20497 (STARTING_FRAME_OFFSET): Do not include bias.
20498 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
20499 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
20500 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
20501 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
20502 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
20503 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
20504 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
20505 (MUST_SAVE_REGISTER): Likewise.
20506 (sparc_flat_function_prologue): Likewise.
20507 (sparc_flat_function_epilogue): Likewise.
20508 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
20509 (sparc_init_modes): SFP is GENERAL_REGS.
20510 (sparc_builtin_saveregs): SFP does not have bias applied.
20511
20512 2002-02-04 Richard Henderson <rth@redhat.com>
20513
20514 * config/alpha/alpha.c (current_function_is_thunk): Don't check
20515 current_function_is_thunk.
20516 (alpha_sa_mask): Distinguish between current_function_is_thunk
20517 called from ASM_OUTPUT_MI_THUNK and not.
20518 (alpha_does_function_need_gp): Thunks always need gp.
20519 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20520 (alpha_output_mi_thunk_osf): New.
20521 * config/alpha/alpha-protos.h: Update.
20522 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
20523
20524 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
20525
20526 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
20527 function types, not when they're taken away.
20528
20529 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
20530
20531 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
20532 CODE_LABEL and jump table when replacing a table jump with a
20533 simple jump.
20534
20535 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20536
20537 * config/s390/s390-protos.h (legitimize_la_operand,
20538 s390_secondary_input_reload_class, s390_plus_operand,
20539 s390_expand_plus_operand): Add prototypes.
20540
20541 config/s390/s390.c (s390_secondary_input_reload_class,
20542 s390_plus_operand, s390_expand_plus_operand): New functions.
20543
20544 (struct s390_address): New member 'pointer'.
20545 (s390_decompose_address): Compute it.
20546 (legitimate_la_operand_p): Use it.
20547 (legitimize_la_operand): New function.
20548 (movti, movdi, movdf splitters): Call it.
20549
20550 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
20551 (PREDICATE_CODES): Add s390_plus_operand.
20552
20553 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
20554 (la_ccclobber): Allow GENERAL_REGS as output operand.
20555
20556 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
20557 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
20558 (*la_64, *la_31, reload_indi, reload_insi): ... these.
20559
20560 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20561
20562 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
20563 register names for regular asm () construct.
20564
20565 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20566
20567 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
20568 registers.
20569
20570 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20571
20572 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
20573 pat for recog.
20574
20575 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
20576
20577 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
20578 constant pool to be identical by string address and index.
20579
20580 2002-02-04 Anthony Green <green@redhat.com>
20581
20582 * output.h (SECTION_OVERRIDE): Define.
20583 * varasm.c (named_section): Obey SECTION_OVERRIDE.
20584
20585 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20586
20587 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
20588 by existing arm*-*-netbsd* (a.out) target.
20589 (ns32k-*-netbsdelf*): Likewise.
20590 (sparc-*-netbsdelf*): Likewise.
20591 (vax-*-netbsdelf*): Likewise.
20592
20593 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
20594
20595 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
20596 headers and libobjc headers.
20597
20598 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
20599
20600 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
20601 (_mingw.h): Remove duplicate include.
20602
20603 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20604
20605 * config.gcc: Set cpu_type to m68k for 68010, as well.
20606 (m68010-*-netbsdelf*): New...
20607 (m68k*-*-netbsdelf*): ...targets.
20608 * config/m68k/netbsd-elf.h: New file.
20609
20610 2002-02-02 Kazu Hirata <kazu@hxi.com>
20611
20612 * config/h8300/h8300.c (hand_list): Move inside function_arg.
20613
20614 2002-02-02 Kazu Hirata <kazu@hxi.com>
20615
20616 * config/h8300/h8300.c (h8_push_ops): Move inside
20617 h8300_init_once.
20618 (h8_pop_ops): Likewise.
20619 (h8_move_ops): Likewise.
20620
20621 2002-02-02 Kazu Hirata <kazu@hxi.com>
20622
20623 * config/h8300/h8300.c (os_task): Make it static.
20624 (monitor): Likewise.
20625 (pragma_saveall): Likewise.
20626
20627 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
20628
20629 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
20630 constant is a valid sign-extension for Pmode.
20631
20632 2002-02-02 Kazu Hirata <kazu@hxi.com>
20633
20634 * config/h8300/h8300.c: Fix formatting.
20635
20636 2002-02-02 Kazu Hirata <kazu@hxi.com>
20637
20638 * config/h8300/h8300.md: Fix formatting.
20639
20640 2002-02-02 Kazu Hirata <kazu@hxi.com>
20641
20642 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
20643 predicates of operands[1]. Split the patterns for each
20644 processor variant.
20645
20646 2002-02-02 Kazu Hirata <kazu@hxi.com>
20647
20648 * config/h8300/h8300.md (xor patterns): Tighten the predicates
20649 of operands[1] to register_operand.
20650
20651 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20652
20653 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
20654 * cpphash.c (_cpp_init_hashtable): Similarly.
20655 * cppinit.c (cpp_create_reader): Default the signed_char flag.
20656 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
20657 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
20658 (cpp_handle_option): Handle the new options.
20659 * cpplex.c (cpp_interpret_charconst): Use new flag.
20660 * cpplib.h (struct cpp_options): New member signed_char.
20661 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
20662 (cpp_options): Handle -fsigned-char and -funsigned-char.
20663 (static_specs): Remove signed_char_spec.
20664 (do_spec1): Don't handle %c.
20665 * system.h: Poison SIGNED_CHAR_SPEC.
20666 * tradcif.y (yylex): Use flag_signed_char.
20667 * tradcpp.h (flag_signed_char): New.
20668 * tradcpp.c (flag_signed_char): New.
20669 (main): Handle new command-line options.
20670 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
20671 config:
20672 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
20673 * avr/avr.h: Remove old comments.
20674 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
20675 (CC1_SPEC): Pass -fsigned-char if -mic*.
20676 (SIGNED_CHAR_SPEC): Remove.
20677 doc:
20678 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
20679
20680 2002-02-01 Eric Christopher <echristo@redhat.com>
20681
20682 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
20683 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
20684 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
20685 (ASM_OUTPUT_REG_POP): Ditto.
20686
20687 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20688
20689 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
20690 patch.
20691
20692 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20693
20694 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
20695
20696 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20697
20698 PR c/5304:
20699 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
20700 unconditionally.
20701
20702 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20703
20704 * cfganal.c: Include tm_p.h.
20705 (keep_with_call_p): Fix the test that determines if a register holds
20706 the return value of a call.
20707
20708 2002-02-01 DJ Delorie <dj@redhat.com>
20709
20710 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
20711 we are given conflicting registers, switch to the other one we
20712 had allocated for us.
20713 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
20714 as TImode so we know when the "other" register is available.
20715
20716 2002-02-01 David O'Brien <obrien@FreeBSD.org>
20717
20718 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
20719 sparc/sparc_bi.h.
20720
20721 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20722
20723 * cfganal.c (keep_with_call_p): New function.
20724 (flow_call_edges_add): Prevent splitting a block between a call and
20725 a single-set instruction that should be kept in the same block.
20726
20727 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
20728
20729 * doc/install.texi (avr): Update outdated URL.
20730
20731 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
20732
20733 * config/stormy16/stormy16.md (pushqi): New.
20734 (popqi): New.
20735 (pushhi): New.
20736 (pophi): New.
20737 (movhi): Remove stack operands.
20738 (movqi): Likewise.
20739 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
20740 nonimmediate_nonstack_operand.
20741 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
20742 New.
20743 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
20744 New.
20745
20746 2002-01-31 Jason Merrill <jason@redhat.com>
20747
20748 * Makefile.in (c-parse.c): Handle .output file.
20749 * objc/Make-lang.in (objc-parse.c): Likewise.
20750
20751 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
20752
20753 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
20754 the -me[lb] option is given. Don't output the default flag
20755 twice.
20756
20757 2002-01-31 Zack Weinberg <zack@codesourcery.com>
20758
20759 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
20760 the primary source file; this has not been done yet.
20761 * c-decl.c (c_expand_body): Reset input_filename from
20762 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
20763
20764 2002-01-31 Kazu Hirata <kazu@hxi.com>
20765
20766 * rtlanal.c (subreg_regno_offset): Do not use
20767 SUBREG_REGNO_OFFSET.
20768 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
20769 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
20770
20771 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20772
20773 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
20774 version rather than GNATS version in --version output.
20775
20776 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
20777
20778 * ifcvt.c (noce_process_if_block): Make a copy of the destination
20779 when copying back from a temporary.
20780
20781 2002-01-30 Richard Henderson <rth@redhat.com>
20782
20783 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
20784 and new_dest are the same.
20785
20786 2002-01-30 Richard Henderson <rth@redhat.com>
20787
20788 PR opt/5076
20789 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
20790 * rtl.c (note_insn_name): Update.
20791 * emit-rtl.c (remove_unnecessary_notes): Kill it.
20792 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
20793 to perform loop rotation.
20794 (expand_exit_loop_top_cond): New.
20795 * tree.h (expand_exit_loop_top_cond): Declare it.
20796 * c-semantics.c (genrtl_while_stmt): Use it.
20797 (genrtl_for_stmt): Likewise.
20798
20799 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
20800
20801 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
20802 arguments to 64-bit boundaries on 64-bit ABIs.
20803
20804 2002-01-30 Steve Ellcey <sje@cup.hp.com>
20805
20806 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
20807
20808 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20809
20810 * c-decl.c (grokdeclarator): Handle type being a typedef for an
20811 invalid type.
20812
20813 2002-01-30 David O'Brien <obrien@FreeBSD.org>
20814
20815 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
20816 * config/sparc/sparc_bi.h: Remove file.
20817 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
20818
20819 2002-01-30 Richard Henderson <rth@redhat.com>
20820
20821 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
20822
20823 2002-01-30 Zack Weinberg <zack@codesourcery.com>
20824
20825 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
20826
20827 2002-01-30 Jason Merrill <jason@redhat.com>
20828
20829 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
20830 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
20831 (reg_save): Use DW_CFA_offset_extended_sf instead.
20832
20833 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
20834
20835 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20836
20837 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
20838 in cselib_lookup.
20839
20840 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
20841
20842 * rs6000.md ("*call_value_local32"): Remove constraints.
20843 ("*call_value_local64"): Same.
20844 ("*call_value_indirect_nonlocal_aix32"): Same.
20845 ("*call_value_nonlocal_aix32"): Same.
20846 ("*call_value_indirect_nonlocal_aix64"): Same.
20847 ("*call_value_nonlocal_aix64"): Same.
20848 ("*call_value_nonlocal_sysv"): Same.
20849
20850 2002-01-29 Richard Henderson <rth@redhat.com>
20851
20852 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
20853
20854 2002-01-29 Richard Henderson <rth@redhat.com>
20855
20856 * expr.c (force_operand): Ignore flag_pic for detecting pic
20857 address loads.
20858 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
20859 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
20860 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
20861 instead of open-coded loop.
20862 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
20863 be fixed when in use.
20864
20865 2002-01-29 Richard Henderson <rth@redhat.com>
20866
20867 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
20868 * sched-rgn.c (propagate_deps): Update them.
20869 * sched-deps.c (sched_analyze_insn): Update them. Flush the
20870 clobbers list when either gets too long.
20871
20872 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20873
20874 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
20875 and INDEX_REGS the same as GENERAL_REGS.
20876 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
20877
20878 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20879
20880 * tree.c (build_nonstandard_integer_type): Correct prototype.
20881
20882 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
20883
20884 * config/s390/s390.md (movstrsico, movstrdix_64,
20885 movstrsix_31): Remove, replace by ...
20886 (movstrdi_short, movstrsi_short, movstrdi_long,
20887 movstrsi_long): ... these. New.
20888 (movstrdi, movstrsi): Adapt.
20889
20890 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
20891 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
20892 Remove unnecessary CC clobber.
20893 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20894 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20895
20896 (divmoddi4): Don't partially initialize TImode register.
20897
20898 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
20899
20900 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20901
20902 2002-01-29 Richard Henderson <rth@redhat.com>
20903
20904 * flow.c (print_rtl_and_abort): Remove.
20905 (print_rtl_and_abort_fcn): Remove.
20906 (verify_local_live_at_start): Use dump_bb instead.
20907 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20908 (verify_wide_reg_1): Return 2 on mode test failure.
20909
20910 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20911
20912 PR c/3325, c/3326, c/2511, c/3347
20913 * c-decl.c (enum_decl_context): Remove BITFIELD.
20914 (grokdeclarator): Take bitfield width as an input.
20915 Ensure bitfields are given the correct type. Perform
20916 bitfield width validation with build_bitfield_integer_type
20917 rather than waiting for finish_struct.
20918 (grok_typename, grok_typename_in_parm_context, start_decl,
20919 push_parmdecl, grokfield, start_function): Update calls to
20920 grokdeclarator.
20921 (build_bitfield_integer_type): New function.
20922 (finish_struct): Move bitfield validation to grokdeclarator
20923 and build_bitfield_integer_type.
20924 * tree.c (build_nonstandard_integer_type): New function.
20925 * tree.h (build_nonstandard_integer_type): New prototype.
20926 objc:
20927 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20928
20929 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20930
20931 PR other/1502:
20932 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20933 don't ignore unrecognized -W* options.
20934 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20935 * cpplib.h (cpp_handle_option): Adjust prototype.
20936 * c-decl.c (c_decode_options): Pass 0 as last argument to
20937 cpp_handle_option.
20938
20939 PR c/2896:
20940 * gcc.c (cpp_unique_options): Split from cpp_options.
20941 (cpp_options): Source cpp_unique_options.
20942 (default_compilers): Use cpp_unique_options instead of cpp_options
20943 when used together with cc1_options.
20944 (static_specs): Add cpp_unique_options.
20945 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20946 when used together with cc1_options.
20947
20948 2002-01-29 Kazu Hirata <kazu@hxi.com>
20949
20950 * config/h8300/h8300-protos.h: Update the prototype of
20951 output_a_shift.
20952 * config/h8300/h8300.c (output_a_shift): Remove an unused
20953 argument 'insn'. Remove redundant code.
20954 * config/h8300/h8300.md: Adust to the new prototype of
20955 output_a_shift.
20956
20957 2002-01-29 Kazu Hirata <kazu@hxi.com>
20958
20959 * config/h8300/h8300-protos.h: Update the prototypes of
20960 emit_a_rotate and expand_a_rotate.
20961 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20962 first argument to 'enum rtx_code'.
20963 (expand_a_rotate): Likewise.
20964
20965 2002-01-28 Kazu Hirata <kazu@hxi.com>
20966
20967 * config/h8300/h8300-protos.h: Update the prototype of
20968 output_simode_bld.
20969 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20970 'log2'.
20971 * config/h8300/h8300.md: Adjust to the new prototype.
20972
20973 2002-01-28 Kazu Hirata <kazu@hxi.com>
20974
20975 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20976 redundant code.
20977
20978 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
20979
20980 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20981 is a fixed register before returning pic_offset_table_rtx.
20982 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20983 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20984
20985 2002-01-28 Jason Merrill <jason@redhat.com>
20986
20987 * dwarf2.h: Sync with src version.
20988
20989 2002-01-28 Paul Koning <pkoning@equallogic.com>
20990
20991 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20992 BT_FN_VOID_PTR_VAR.
20993 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20994 * doc/extend.texi (__builtin_prefetch): Update documentation:
20995 first argument is now const void ptr.
20996
20997 2002-01-28 Kazu Hirata <kazu@hxi.com>
20998
20999 * config/h8300/h8300-protos.h: Remove an unused prototype.
21000
21001 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
21002
21003 * toplev.c (lang_independent_init): Round up identifier size.
21004
21005 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
21006
21007 * config.gcc: Revert previous change.
21008
21009 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
21010
21011 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
21012
21013 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
21014
21015 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
21016 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
21017 other non-elf netbsd config frags.
21018 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
21019 collect2 will does that.
21020 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
21021 shared-lib frobbing will work.
21022
21023 2002-01-28 Kazu Hirata <kazu@hxi.com>
21024
21025 * config/h8300/h8300.h: Fix formatting.
21026 * config/h8300/h8300.md: Likewise.
21027
21028 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
21029
21030 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
21031 the old, removed AAA_standards fix.
21032 * fixinc/fixincl.x: Rebuilt.
21033
21034 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
21035
21036 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
21037 atexit call in crtbegin, hooked in after call to frame_dummy;
21038 register EH before registering __fini__start.
21039
21040 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
21041
21042 * config/rs6000/altivec.h: Remove spurious semicolons.
21043
21044 2002-01-27 Kazu Hirata <kazu@hxi.com>
21045
21046 * config/h8300/h8300.md: Replace dead bit extraction patterns
21047 with ones that work.
21048
21049 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21050
21051 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
21052 if not STRICT_ALIGNMENT.
21053 * rtl.h (MEM_ALIGN): Likewise.
21054
21055 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
21056
21057 * doc/invoke.texi (-fdump-translation-unit): Revert this
21058 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
21059
21060 2002-01-27 Kazu Hirata <kazu@hxi.com>
21061
21062 * config/h8300/h8300.md (define_constants): New.
21063 (anonymous patterns) Use defined constants appropriately.
21064
21065 2002-01-27 Kazu Hirata <kazu@hxi.com>
21066
21067 * config/h8300/h8300.c (function_arg): Remove redundant code.
21068
21069 2002-01-26 Richard Henderson <rth@redhat.com>
21070
21071 * sched-deps.c (reg_pending_uses_head): New.
21072 (reg_pending_barrier): Rename from reg_pending_sets_all.
21073 (find_insn_list): Don't mark inline.
21074 (find_insn_mem_list): Remove.
21075 (add_dependence_list, add_dependence_list_and_free): New.
21076 (flush_pending_lists): Replace only_write param with separate
21077 for_read and for_write parameters. Update all callers. Use
21078 add_dependence_list_and_free.
21079 (sched_analyze_1): Do not add reg dependencies here; just set
21080 the pending bits. Use add_dependence_list.
21081 (sched_analyze_2): Likewise.
21082 (sched_analyze_insn): Replace schedule_barrier_found with
21083 reg_pending_barrier. Add all dependencies for pending reg
21084 uses, sets, and clobbers.
21085 (sched_analyze): Don't add reg dependencies for calls, just
21086 set pending bits. Use regs_invalidated_by_call. Treat
21087 sched_before_next_call as a normal list, not a fake insn.
21088 (init_deps): No funny init for sched_before_next_call.
21089 (free_deps): Free pending mems lists. Don't zero reg_last.
21090 (init_deps_global): Init reg_pending_uses.
21091 (finish_deps_global): Free it.
21092 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
21093 (find_insn_mem_list): Remove.
21094 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
21095 (propagate_deps): Use them. Zero temp mem lists.
21096
21097 2002-01-26 Richard Henderson <rth@redhat.com>
21098
21099 * Makefile.in (CRTSTUFF_CFLAGS): New.
21100 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
21101 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
21102 crtstuff.c instead of alpha assembly version.
21103 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
21104 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
21105 not FORCE_{INIT,FINI}_SECTION_ALIGN.
21106 (__do_global_dtors_aux): Mark used.
21107 (frame_dummy, __do_global_ctors_aux): Mark used.
21108 (fini_dummy, init_dummy): Remove.
21109
21110 * config/alpha/crtbegin.asm: Remove file.
21111 * config/alpha/crtend.asm: Remove file.
21112 * config/alpha/t-crtbe: Remove file.
21113 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
21114 (LINK_EH_SPEC): New.
21115
21116 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
21117 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
21118 calling constructors.
21119 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
21120
21121 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
21122 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
21123 CRT_END_INIT_DUMMY hack.
21124 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
21125 FORCE_{INIT,FINI}_SECTION_ALIGN.
21126
21127 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
21128 FORCE_{INIT,FINI}_SECTION_ALIGN.
21129
21130 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
21131 invocation sequence.
21132 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
21133
21134 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
21135 (FORCE_CODE_SECTION_ALIGN): New.
21136
21137 2002-01-26 Richard Henderson <rth@redhat.com>
21138
21139 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
21140
21141 2002-01-26 Richard Henderson <rth@redhat.com>
21142
21143 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
21144 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
21145
21146 2002-01-26 Kazu Hirata <kazu@hxi.com>
21147
21148 * config/h8300/h8300.md: Remove bit extraction patterns that
21149 cannot be triggered.
21150 Restrict each bit extraction pattern to a variant on which the
21151 pattern is tested.
21152
21153 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
21154
21155 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
21156
21157 2002-01-26 Kazu Hirata <kazu@hxi.com>
21158
21159 * config/h8300/h8300.md: Remove bit test patterns that cannot
21160 be triggered.
21161 Restrict each bit test pattern to a variant on which the
21162 pattern is tested.
21163
21164 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21165
21166 * builtins.c (expand_builtin_strncat): Remove redundant check for
21167 INTEGER_CST.
21168
21169 2002-01-25 David O'Brien <obrien@FreeBSD.org>
21170
21171 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
21172 default setting.
21173 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
21174 existing setting.
21175
21176 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
21177
21178 * dbxout.c (dbxout_init): Use assemble_name rather than just
21179 stripping off the first character.
21180 (dbxout_source_file): Likewise.
21181
21182 2002-01-25 DJ Delorie <dj@redhat.com>
21183
21184 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
21185 using rtx_equal_p, not by comparing pointers.
21186
21187 2002-01-25 Steve Ellcey <sje@cup.hp.com>
21188
21189 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
21190 for PIC_OFFSET_TABLE_REGNUM.
21191 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
21192
21193 2002-01-25 David O'Brien <obrien@FreeBSD.org>
21194
21195 * config.gcc (x86_64-*-freebsd*): New target.
21196 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
21197 value.
21198 (i[34567]86-*-freebsd*): Don't include svr4.h.
21199 * config/i386/freebsd64.h: New file.
21200
21201 2002-01-25 Douglas B Rupp <rupp@gnat.com>
21202
21203 * config/alpha/x-vms (version): Make static.
21204
21205 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
21206 in previous checkin.
21207
21208 * Makefile.in (install-headers-cp): New target.
21209 * config.gcc (alpha-dec-*vms*): Install headers with
21210 install-headers-cp
21211
21212 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
21213
21214 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
21215 avoid it's copies.
21216
21217 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21218
21219 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
21220 of compare_tree_int.
21221 (expand_builtin_strncat): Likewise.
21222 * c-decl.c (finish_struct): Use tree_low_cst.
21223 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
21224 * tree.c (compare_tree_int): Likewise.
21225
21226 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
21227
21228 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
21229 adjustments even if they are implemented by more than two insns.
21230
21231 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
21232
21233 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
21234 * df.h (struct ref): Kill B.
21235 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
21236
21237 * basic-block.h (PROP_EQUAL_NOTES): New flag.
21238 * flow.c (propagate_one_insn): Use it.
21239 (mark_used_regs): Handle NIL.
21240
21241 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
21242
21243 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
21244 to help folding.
21245
21246 2002-01-25 David Edelsohn <edelsohn@gnu.org>
21247
21248 * rs6000.md (prefetch): Make address V4SI mode so that the address
21249 is restricted to legitimate form for instruction.
21250
21251 2002-01-25 Bob Wilson <bob.wilson@acm.org>
21252
21253 * doc/install.texi (xtensa-*-elf): New target.
21254 (xtensa-*-linux*): New target.
21255 * doc/contrib.texi: Add myself.
21256
21257 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
21258
21259 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
21260 purpose register to hold an SImode (or smaller) value.
21261
21262 2002-01-25 Jakub Jelinek <jakub@redhat.com>
21263
21264 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
21265 registry only.
21266 * crtstuff.c: Likewise.
21267
21268 2002-01-25 Kazu Hirata <kazu@hxi.com>
21269
21270 * config/h8300/h8300.md (negation patterns): Tighten
21271 predicates to register_operand.
21272
21273 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
21274
21275 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
21276 mode, not Pmode.
21277
21278 * builtins.c (expand_builtin_prefetch): Same.
21279
21280 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21281
21282 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
21283 modes.
21284
21285 2002-01-24 Kazu Hirata <kazu@hxi.com>
21286
21287 * config/h8300/h8300.c (print_operand): Remove support for
21288 operand character 'A'.
21289 * config/h8300/h8300.md (three anonymous patterns): Replace
21290 operand character 'A' with either 'T' or 'S'.
21291
21292 2002-01-24 Kazu Hirata <kazu@hxi.com>
21293
21294 * config/h8300/h8300.c (print_operand): Remove support for
21295 operand character 'U'.
21296
21297 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
21298
21299 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
21300
21301 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
21302
21303 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
21304 values to be assigned to the stack pointer.
21305
21306 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21307
21308 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
21309 to const_double needs to be done right for big-endian systems.
21310
21311 2002-01-24 Jason Merrill <jason@redhat.com>
21312
21313 PR c++/2432
21314 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
21315 to can_throw_internal.
21316
21317 2002-01-23 Richard Henderson <rth@redhat.com>
21318
21319 * fold-const.c (fold): Change UINT_MAX test to check vs precision
21320 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
21321
21322 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21323
21324 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
21325 (symGOT2reg): Use them, then set as GOT value as unchanging.
21326 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
21327 as a temporary, if possible.
21328 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
21329 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
21330
21331 2002-01-23 Kazu Hirata <kazu@hxi.com>
21332
21333 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
21334 accept to accept 0x80 as operands[2].
21335
21336 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21337
21338 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
21339
21340 2002-01-23 Richard Henderson <rth@redhat.com>
21341
21342 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
21343
21344 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
21345
21346 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
21347 (parmlist_or_identifiers_1): Verify that only a parmlist follows
21348 an attribute.
21349
21350 2002-01-23 Richard Henderson <rth@redhat.com>
21351
21352 * expr.c (move_by_pieces_1): Extend size before negation.
21353
21354 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
21355 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
21356 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
21357 * config/m68k/t-m68kelf: Likewise.
21358
21359 2002-01-23 Bob Wilson <bob.wilson@acm.org>
21360
21361 * config/xtensa/elf.h: New file.
21362 * config/xtensa/lib1funcs.asm: New file.
21363 * config/xtensa/lib2funcs.S: New file.
21364 * config/xtensa/linux.h: New file.
21365 * config/xtensa/t-xtensa: New file.
21366 * config/xtensa/xtensa-config.h: New file.
21367 * config/xtensa/xtensa-protos.h: New file.
21368 * config/xtensa/xtensa.c: New file.
21369 * config/xtensa/xtensa.h: New file.
21370 * config/xtensa/xtensa.md: New file.
21371 * config.gcc (xtensa-*-elf*): New target.
21372 (xtensa-*-linux*): New target.
21373 * cse.c (canon_hash): Compare rtx pointers instead of register
21374 numbers. This is required for the Xtensa port.
21375 * integrate.c (copy_insn_list): Handle case where the static
21376 chain is in memory and the memory address has to be copied to
21377 a register.
21378 * doc/invoke.texi (Option Summary): Add Xtensa options.
21379 (Xtensa Options): New node.
21380 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
21381
21382 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21383
21384 * diagnostic.c (internal_error): Do ICE suppression only
21385 when ENABLE_CHECKING is not defined.
21386
21387 * c-typeck.c (require_complete_type): Return error_mark_node
21388 if type is error_mark_node.
21389
21390 2002-01-23 Janis Johnson <janis187@us.ibm.com>
21391
21392 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
21393 -Os and issue a warning.
21394
21395 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21396
21397 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
21398 current (lack of) need for host configuration by hand.
21399
21400 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
21401 references. Documentation of some target macros moved from
21402 hostconfig.texi to tm.texi.
21403
21404 2002-01-23 Will Cohen <wcohen@redhat.com>
21405
21406 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
21407 defined.
21408
21409 2002-01-23 Kazu Hirata <kazu@hxi.com>
21410
21411 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
21412 operand[3].
21413
21414 2002-01-23 Jason Merrill <jason@redhat.com>
21415
21416 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
21417
21418 * function.c (assign_parms): Don't put args of inline functions
21419 into registers when not optimizing.
21420
21421 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
21422
21423 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
21424 (prologue_use): New pattern.
21425 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
21426 preference to gen_rtx_USE.
21427 (thumb_expand_prologue): Use gen_prologue_use in preference to
21428 gen_rtx_USE.
21429 (thumb_expand_epilogue): Use gen_prologue_use in preference to
21430 gen_rtx_USE.
21431
21432 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
21433
21434 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
21435
21436 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
21437
21438 PR c/3504
21439 * doc/extend.texi: Correct documentation of __alignof__.
21440
21441 2002-01-22 Zack Weinberg <zack@codesourcery.com>
21442
21443 * params.h: Rename arguments of DEFPARAM so that it will be
21444 recognized as a translation keyword.
21445
21446 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21447
21448 * extend.texi: Document altivec functions.
21449 Fix N-bit adjectives in X86 builtin documentation.
21450
21451 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21452
21453 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
21454 auto_inc_dec values.
21455
21456 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
21457
21458 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
21459 after backslash.
21460 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
21461
21462 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21463
21464 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
21465
21466 2002-01-22 Richard Henderson <rth@redhat.com>
21467
21468 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
21469 copy_insn not copy_rtx.
21470
21471 2002-01-23 Alan Modra <amodra@bigpond.net.au>
21472
21473 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
21474 "nonzero" as that might add "1" bits. Ensure "constop" is
21475 properly sign extened.
21476 (force_to_mode): Tweak for sign extended constop.
21477
21478 2002-01-22 Richard Henderson <rth@redhat.com>
21479
21480 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
21481 for_each_rtx instead of assuming we're already looking at the MEM.
21482 (split_small_symbolic_mem_operand): Likewise.
21483 * config/alpha/alpha.h (PREDICATE_CODES): Update.
21484 * config/alpha/alpha.md (small symbolic memory splitters): Update.
21485
21486 2002-01-22 Richard Henderson <rth@redhat.com>
21487
21488 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
21489 sequence number for the literal.
21490 (divmoddi_internal_er): Likewise.
21491
21492 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21493
21494 PR java/4972
21495 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
21496 in LIBICONV variable.
21497 * configure: Regenerated.
21498
21499 2002-01-22 Krister Walfridsson <cato@df.lth.se>
21500
21501 * dependence.c (build_def_use): Remove array_idx.
21502
21503 * dwarfout.c (last_filename): Remove.
21504 (output_compile_unit_die): Remove last_filename.
21505
21506 2002-01-22 Roger Sayle <roger@eyesopen.com>
21507 Richard Henderson <rth@redhat.com>
21508
21509 PR opt/3640
21510 * fold-const.c (fold): Optimize unsigned comparisons against
21511 UINT_MAX (and similar unsigned constants).
21512
21513 2002-01-22 Janis Johnson <janis187@us.ibm.com>
21514
21515 * Makefile.in (loop.o): Depend on OPTABS_H.
21516 * loop.c (emit_prefetch_instructions): Check the prefetch operand
21517 against the predicate.
21518
21519 PR target/5379
21520 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
21521 for the address operand.
21522
21523 2002-01-22 Richard Henderson <rth@redhat.com>
21524
21525 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
21526
21527 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21528
21529 PR other/5450
21530 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
21531 preprocessor flags.
21532
21533 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
21534
21535 * config.gcc (x86_64-*-netbsd*): New target.
21536 * config/i386/netbsd64.h: New file.
21537
21538 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21539
21540 * regrename.c (kill_value): Fix typo.
21541
21542 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21543
21544 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
21545
21546 * config/rs6000/rs6000.h: Same.
21547
21548 * function.c (instantiate_virtual_regs): Remove
21549 STARTING_FRAME_PHASE.
21550 (assign_stack_local_1): Same.
21551 Calculate frame phase.
21552
21553 2002-01-22 Nick Clifton <nickc@redhat.com>
21554
21555 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
21556 variable declaration to outer scope in order to simplify
21557 future extensions.
21558 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
21559 arm_hard_regno_mode_ok.
21560 * config/arm/arm-protos.h: Add a prototype for
21561 arm_hard_regno_mode_ok.
21562 * config/arm/arm.c (soft_df_operand): Remove now redundant
21563 check for DImode values using IP_REGNUM.
21564 (nonimmediate_soft_df_operand): Remove now redundant check for
21565 DImode values using IP_REGNUM.
21566 (arm_hard_regno_mode_ok): New function. New check: make sure
21567 that DImode values are not stored in IP_REGNUM.
21568
21569 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
21570 note with a USE.
21571 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
21572
21573 2002-01-22 Jason Merrill <jason@redhat.com>
21574
21575 * c-semantics.c (genrtl_compound_stmt): Only check nesting
21576 consistency if this COMPOUND_STMT is scoped.
21577
21578 2002-01-22 Kazu Hirata <kazu@hxi.com>
21579
21580 * predict.c: Fix formatting.
21581 * print-tree.c: Likewise.
21582 * protoize.c: Likewise.
21583 * real.h: Likewise.
21584 * rtl.h: Likewise.
21585 * sbitmap.h: Likewise.
21586 * scan.c: Likewise.
21587 * sched-deps.c: Likewise.
21588 * sched-vis.c: Likewise.
21589 * sdbout.c: Likewise.
21590 * sibcall.c: Likewise.
21591 * ssa.c: Likewise.
21592 * ssa-ccp.c: Likewise.
21593 * ssa-dce.c: Likewise.
21594 * stmt.c: Likewise.
21595 * stor-layout.c: Likewise.
21596 * system.h: Likewise.
21597
21598 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21599
21600 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
21601 if fits in bounds of base type.
21602
21603 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
21604 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
21605 (add_bound_info, default): If can't find a context, make a
21606 SAVE_EXPR.
21607 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
21608
21609 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
21610
21611 * c-typeck.c (parser_build_binary_op): If result from
21612 build_binary_op is ERROR_MARK just return error_mark_node without
21613 further processing.
21614
21615 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
21616
21617 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
21618 Split a.out-specific bits into...
21619 * config/netbsd-aout.h: ...this.
21620 * config/netbsd-elf.h: New file.
21621 * config/alpha/netbsd-elf.h: Remove.
21622 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
21623 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
21624 (STARTFILE_SPEC): Remove redundant definition.
21625 (ENDFILE_SPEC): Likewise.
21626 (LINK_SPEC): Likewise.
21627 (CPP_SPEC): Likewise.
21628 (ASM_SPEC): Likewise.
21629 (LIB_SPEC): Likewise.
21630 (SWITCH_TAKES_ARG): Likewise.
21631 (TARGET_MEM_FUNCTIONS): Likewise.
21632 (CPP_PREDEFINES): Redefine.
21633 (ASM_FINAL_SPEC): Remove redefinition.
21634 (ASM_COMMENT_START): Redefine.
21635 (FUNCTION_PROFILER): Define.
21636 (TARGET_VERSION): Redefine.
21637 Comment and formatting cleanup.
21638 * config/i386/netbsd.h: Include <netbsd-aout.h>.
21639 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
21640 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
21641 big- or little-endian.
21642 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
21643 * config.gcc (*-*-netbsd*): Add definitions common to all
21644 NetBSD configs.
21645 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
21646 gnu_ld definitions. Add netbsd-elf.h to and remove
21647 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
21648 tmake_file, and don't lose previous tmake_file contents.
21649 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
21650 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
21651 gnu_ld definitions. Add netbsd-elf.h to tm_file.
21652 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
21653 (mipsel-*-netbsd*): Rename this to...
21654 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
21655 mips/little.h to tm_file for mips*el-*.
21656 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
21657 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
21658 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
21659
21660 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21661
21662 * pa-protos.h (reg_before_reload_operand): New function prototype.
21663 * pa.c (reg_before_reload_operand): New function implementation.
21664 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
21665 contraints to "*m".
21666
21667 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21668
21669 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
21670
21671 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21672
21673 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
21674 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
21675 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
21676 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
21677 (ENDFILE_SPEC): Undefine.
21678 (STARTFILE_SPEC): Redefine for PA.
21679
21680 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21681
21682 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
21683
21684 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
21685
21686 * config.gcc: Add entries to supported PowerPC --with-cpu
21687 types.
21688
21689 2002-01-21 Jakub Jelinek <jakub@redhat.com>
21690
21691 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
21692 true for 64-bit mode only SSE registers in 32-bit mode.
21693
21694 2002-01-21 Kazu Hirata <kazu@hxi.com>
21695
21696 * unwind-dw2.c: Fix formatting.
21697 * unwind-dw2-fde.c: Likewise.
21698 * unwind-dw2-fde.h: Likewise.
21699 * unwind-pe.h: Likewise.
21700 * varasm.c: Likewise.
21701 * varray.h: Likewise.
21702
21703 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
21704
21705 Remove workaround for register stack overwrite bug in mmix.
21706 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
21707 support for TARGET_REG_STACK_FILL_BUG.
21708 * config/mmix/mmix.h: Remove member has_call_without_parameters.
21709 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
21710 Delete.
21711 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
21712 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
21713 -mno-reg-stack-fill-bug-workaround.
21714 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
21715 machine member has_call_without_parameters.
21716 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
21717 -mreg-stack-fill-bug-workaround and
21718 -mno-reg-stack-fill-bug-workaround.
21719 (MMIX Options): Ditto.
21720
21721 2002-01-21 Kazu Hirata <kazu@hxi.com>
21722
21723 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
21724 as appropriate.
21725 Remove redundant code.
21726
21727 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
21728
21729 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
21730 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21731 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21732 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
21733 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
21734 out target macro definitions and non-target-specific comments
21735 mostly taken from old versions of the manual.
21736
21737 2002-01-20 Kazu Hirata <kazu@hxi.com>
21738
21739 * config/h8300/h8300.h: Fix comment formatting.
21740 * config/ia64/aix.h: Likewise.
21741 * config/ia64/ia64-protos.h: Likewise.
21742 * config/ia64/ia64.c: Likewise.
21743 * config/ia64/ia64.h: Likewise.
21744 * config/ia64/ia64intrin.h: Likewise.
21745 * config/ia64/linux.h: Likewise.
21746 * config/ia64/unwind-aix.c: Likewise.
21747 * config/ia64/unwind-ia64.c: Likewise.
21748
21749 2002-01-20 Kazu Hirata <kazu@hxi.com>
21750
21751 * config/h8300/h8300.c: Revise comments about shift code.
21752
21753 2002-01-20 Kazu Hirata <kazu@hxi.com>
21754
21755 * config/h8300/h8300.c (function_arg): Update a comment.
21756
21757 2002-01-20 Kazu Hirata <kazu@hxi.com>
21758
21759 * config/h8300/h8300.md: Update the comments at the beginning
21760 of the file.
21761
21762 2002-01-20 Kazu Hirata <kazu@hxi.com>
21763
21764 * config/i370/i370.c: Fix comment formatting.
21765 * config/i370/i370.h: Likewise.
21766 * config/i370/i370.md: Likewise.
21767 * config/i370/linux.h: Likewise.
21768
21769 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21770
21771 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
21772
21773 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
21774 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
21775 in incomplete case.
21776
21777 2002-01-20 Graham Stott <grahams@redhat.com>
21778
21779 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
21780
21781 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
21782
21783 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
21784
21785 2002-01-19 Tom Rix <trix@redhat.com>
21786
21787 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
21788
21789 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
21790
21791 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
21792
21793 * function.c (assign_stack_local_1): Adjust x_frame_offset with
21794 STARTING_FRAME_PHASE.
21795 (STARTING_FRAME_PHASE): New.
21796 (instantiate_virtual_regs): Check saneness of
21797 STARTING_FRAME_PHASE.
21798
21799 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
21800
21801 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
21802
21803 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
21804
21805 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
21806
21807 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
21808 be used for bootstrapping GCC 3.0.
21809
21810 2002-01-18 Kazu Hirata <kazu@hxi.com>
21811
21812 * config/h8300/h8300.md: Fix an insn length.
21813
21814 2002-01-18 Kazu Hirata <kazu@hxi.com>
21815
21816 * bitmap.h: Fix comment formatting.
21817 * combine.c: Likewise.
21818 * cppfiles.c: Likewise.
21819 * c-pragma.h: Likewise.
21820 * c-typeck.c: Likewise.
21821 * df.c: Likewise.
21822 * dwarf2out.c: Likewise.
21823 * function.c: Likewise.
21824 * gcc.c: Likewise.
21825 * genattrtab.c: Likewise.
21826 * gthr-win32.h: Likewise.
21827 * haifa-sched.c: Likewise.
21828 * predict.c: Likewise.
21829 * rtlanal.c: Likewise.
21830 * rtl.h: Likewise.
21831 * unwind-dw2-fde.h: Likewise.
21832 * unwind-pe.h: Likewise.
21833 * vmsdbgout.c: Likewise.
21834
21835 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21836
21837 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
21838 if type_required and passed decl.
21839
21840 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
21841
21842 * config.gcc (cpu_type): Include altivec.h in powerpc
21843 extra_headers.
21844 Same for darwin.
21845
21846 * config/rs6000/altivec.h: New.
21847
21848 2002-01-17 David Edelsohn <edelsohn@gnu.org>
21849
21850 * doc/install.texi (*-ibm-aix*): Update assembler and exception
21851 handling information.
21852 * doc/trouble.texi (Interoperation): Add libstdc++ information
21853 for AIX.
21854 (Misunderstandings): Add template instantiation and static template
21855 member information for AIX.
21856
21857 2002-01-17 Jason Merrill <jason@redhat.com>
21858
21859 * dbxout.c (dbxout_type): Support const and volatile.
21860
21861 * except.c (add_partial_entry): Remove backwards compatibility code.
21862 (end_protect_partials): Likewise.
21863
21864 2002-01-17 Jakub Jelinek <jakub@redhat.com>
21865
21866 * config/ia64/ia64.md (prologue_use): New.
21867 * config/ia64/ia64.c (ia64_expand_prologue): Use
21868 gen_prologue_use instead of gen_rtx_USE.
21869 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
21870 as CODE_FOR_pred_rel_mutex.
21871 (ia64_sched_reorder2): Likewise.
21872
21873 2002-01-16 Eric Christopher <echristo@redhat.com>
21874
21875 * config/mips/r3900.h: Reformat.
21876 (SUBTARGET_CPP_SIZE_SPEC): Remove.
21877 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
21878 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
21879 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
21880 * config/mips/t-elf: Remove mips3 multilib.
21881
21882 2002-01-16 H.J. Lu <hjl@gnu.org>
21883
21884 * config/mips/linux.h: Include "mips/abi64.h".
21885
21886 2002-01-16 H.J. Lu <hjl@gnu.org>
21887
21888 * config/mips/t-linux: New.
21889
21890 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
21891
21892 * config/mips/linux.h: Don't include "gofast.h".
21893 (INIT_SUBTARGET_OPTABS): Removed.
21894
21895 2002-01-16 Kazu Hirata <kazu@hxi.com>
21896
21897 * config/h8300/h8300-protos.h: Replace emit_a_shift with
21898 output_a_shift.
21899 * config/h8300/h8300.c: Likewise.
21900 * config/h8300/h8300.md: Likewise.
21901
21902 2002-01-16 Kazu Hirata <kazu@hxi.com>
21903
21904 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21905 spaces after an opcode name.
21906 (pushqi1_h8300hs): Likewise.
21907 (pushhi1_h8300hs): Likewise.
21908
21909 2002-01-16 Kazu Hirata <kazu@hxi.com>
21910
21911 * doc/extend.texi: Replace "option" with "attribute"
21912 appropriately.
21913
21914 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21915
21916 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21917 (and:DI () (const_int -8)).
21918 (split_small_symbolic_mem_operand): Split
21919 (mem (and:DI () (const_int -8)).
21920
21921 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21922
21923 PR target/5309:
21924 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
21925 same way as TYPE_IMUL.
21926 (ultrasparc_sched_reorder): Likewise.
21927 * config/sparc/sparc.md (type): Add comment to update
21928 ultrasparc_sched_reorder when making changes.
21929
21930 2002-01-16 Kazu Hirata <kazu@hxi.com>
21931
21932 * doc/invoke.texi: Change the dump file name of block
21933 reordering pass from 28.bbro to 29.bbro.
21934 Mention -dk option.
21935
21936 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
21937
21938 * i386.md (minsf splitter): Fix pasto.
21939
21940 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21941
21942 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21943 to frame pointer initialisation instruction.
21944 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21945 initialisation instruction.
21946 (soft_df_operand): Do not accept the IP register.
21947 (nonimmediate_soft_df_operand): Do not accept the IP register.
21948
21949 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21950
21951 PR target/5357:
21952 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21953 MASK_V8 being both set.
21954
21955 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
21956
21957 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21958 insn for GOT register; add REG_MAYBE_DEAD notes instead.
21959 config/s390/s390.md (call, call_value): Add GOT register to
21960 CALL_INSN_FUNCTION_USAGE where needed.
21961 (call_exp, call_value_exp): New.
21962
21963 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21964
21965 * config/arm/arm.c: General formatting tidy up.
21966
21967 2002-01-16 Graham Stott <grahams@redhat.com>
21968
21969 * calls.c (try_to_integrate): Use "(size_t)" intermediate
21970 cast and when casting an integer literal to "rtx" pointer.
21971 (expand_call): Likewise.
21972 * flow.c (try_pre_increment): Likewise.
21973 (find_use_as_address): Likewise.
21974 * integrate.c (expand_iline_function): Likewise.
21975 * regmove.c (try_auto_increment): Likewise.
21976
21977 2002-01-16 Graham Stott <grahams@redhat.com>
21978
21979 * sched-rgn.c (passed): Use sbitmap_free.
21980 (header): Likewise.
21981 (inner): Likewise.
21982 (in_queue): Likewise.
21983 (in_stack): Likewise.
21984
21985 2002-01-15 Eric Christopher <echristo@redhat.com>
21986
21987 * flow.c (propagate_one_insn): Change to use fatal_insn.
21988
21989 2002-01-15 Kazu Hirata <kazu@hxi.com>
21990
21991 * expmed.c (extract_fixed_bit_field): Remove unused code.
21992 * system.h: Poison SLOW_ZERO_EXTEND.
21993 * doc/tm.texi: Remove.
21994 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21995 * config/arm/arm.h: Likewise.
21996 * config/avr/avr.h: Likewise.
21997 * config/clipper/clipper.h: Likewise.
21998 * config/convex/convex.h: Likewise.
21999 * config/d30v/d30v.h: Likewise.
22000 * config/dsp16xx/dsp16xx.h: Likewise.
22001 * config/elxsi/elxsi.h: Likewise.
22002 * config/fr30/fr30.h: Likewise.
22003 * config/h8300/h8300.h: Likewise.
22004 * config/i370/i370.h: Likewise.
22005 * config/i386/i386.h: Likewise.
22006 * config/m68k/m68k.h: Likewise.
22007 * config/mips/mips.h: Likewise.
22008 * config/ns32k/ns32k.h: Likewise.
22009 * config/pdp11/pdp11.h: Likewise.
22010 * config/pj/pj.h: Likewise.
22011 * config/s390/s390.h: Likewise.
22012 * config/sh/sh.h: Likewise.
22013 * config/stormy16/stormy16.h: Likewise.
22014 * config/v850/v850.h: Likewise.
22015 * config/vax/vax.h: Likewise.
22016 * config/we32k/we32k.h: Likewise.
22017
22018 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
22019
22020 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
22021 (altivec_lvsl): Change constraint to b.
22022 (altivec_lvsr): Same.
22023 (altivec_lvebx): Same.
22024 (altivec_lvehx): Same.
22025 (altivec_lvewx): Same.
22026 (altivec_lvxl): Same.
22027 (altivec_lvx): Same.
22028 (altivec_stvx): Add parallel.
22029 (altivec_stvxl): Same.
22030 (altivec_stvehx): Same.
22031 (altivec_stvebx): Same.
22032 (altivec_stvebx): Same.
22033
22034 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
22035
22036 * config.gcc: Change altivec.h to altivec-defs.h.
22037
22038 * config/rs6000/altivec.h: Delete.
22039
22040 * config/rs6000/altivec-defs.h: Add.
22041
22042 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
22043
22044 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
22045 and UMOD modes.
22046
22047 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
22048 less than or equal to eight bytes.
22049
22050 * vax.md (andsi3): Remove constraints and change SET destination
22051 operand type to nonimmediate_operand.
22052 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
22053 when it is a CONST_INT.
22054
22055 2002-01-15 Jason Merrill <jason@redhat.com>
22056
22057 * c-common.def (FILE_STMT): New code.
22058 * c-common.c (statement_code_p): It's a statement.
22059 * c-common.h (stmt_tree_s): Add x_last_filename.
22060 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
22061 (last_expr_filename): New macro.
22062 * c-semantics.c (begin_stmt_tree): Initialize it.
22063 (add_stmt): If the filename changed, also insert a
22064 FILE_STMT.
22065 (expand_stmt): Handle seeing one.
22066
22067 2002-01-15 Eric Christopher <echristo@redhat.com>
22068
22069 * flow.c (propagate_one_insn): Add error message and print out
22070 insn for debugging.
22071
22072 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
22073
22074 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
22075 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
22076 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
22077 TRAMPOLINE_ALIGNMENT.
22078 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
22079 to be in bits.
22080 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
22081 PCC_BITFIELD_TYPE_MATTERS.
22082 * config/interix.h (STDC_VALUE): Remove. Use
22083 STDC_0_IN_SYSTEM_HEADERS.
22084 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
22085 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
22086 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
22087
22088 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
22089
22090 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
22091 not work on this platform currently.
22092
22093 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
22094
22095 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
22096 readonly_warning in _().
22097
22098 2002-01-15 Douglas B Rupp <rupp@gnat.com>
22099
22100 * gcc.c (delete_if_ordinary): Backout previous change.
22101
22102 2002-01-15 Kazu Hirata <kazu@hxi.com>
22103
22104 * config/h8300/h8300.c (print_operand): Remove support for
22105 unused operand characters.
22106
22107 * read-rtl.c: Fix formatting.
22108 * real.c: Likewise.
22109 * recog.c: Likewise.
22110 * regclass.c: Likewise.
22111 * regmove.c: Likewise.
22112 * reg-stack.c: Likewise.
22113 * reload1.c: Likewise.
22114 * rtlanal.c: Likewise.
22115
22116 2002-01-15 Kazu Hirata <kazu@hxi.com>
22117
22118 * config/i386/i386.c: Fix formatting.
22119
22120 2002-01-15 Jakub Jelinek <jakub@redhat.com>
22121
22122 * c-typeck.c (process_init_element): Don't save_expr
22123 COMPOUND_LITERAL_EXPR if just its initializer will be used.
22124
22125 2002-01-15 David Edelsohn <edelsohn@gnu.org>
22126
22127 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
22128 emit optional traceback table if optimize_size or TARGET_ELF.
22129 * config/rs6000/rs6000.md (prefetch): New.
22130
22131 2002-01-15 Andreas Jaeger <aj@suse.de>
22132
22133 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
22134
22135 2002-01-15 Kazu Hirata <kazu@hxi.com>
22136
22137 * mips-tfile.c: Fix formatting.
22138
22139 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
22140
22141 * unroll.c (final_reg_note_copy): Fix previous commit.
22142
22143 2002-01-14 Kazu Hirata <kazu@hxi.com>
22144
22145 * config/h8300/h8300-protos.h: Remove the prototype for
22146 eq_operator.
22147 * config/h8300/h8300.c (eq_operator): Remove.
22148
22149 2002-01-14 Richard Henderson <rth@redhat.com>
22150
22151 * config/i386/i386.md (prefetch): Tidy.
22152 (prefetch_3dnow): Fix locality operand.
22153
22154 2002-01-14 Richard Henderson <rth@redhat.com>
22155
22156 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
22157 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
22158
22159 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
22160
22161 * reload1.c (reload_combine): Pass reg_sum replacement through
22162 copy_rtx in loop performing multiple changes.
22163
22164 2002-01-14 Jakub Jelinek <jakub@redhat.com>
22165
22166 * except.c (remove_unreachable_regions): New.
22167 (free_eh_status): Clear exception_handler_labels.
22168 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
22169 (find_exception_handler_labels): Don't add the same label more than
22170 once.
22171 (remove_exception_handler_label): Don't die if
22172 find_exception_handler_labels hasn't been called for the current
22173 function yet.
22174
22175 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
22176
22177 * toplev.c (rest_of_compilation): Rebuild jump labels after
22178 gcse.
22179
22180 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
22181
22182 * doc/extend.texi: Move documentation of X86 built-in functions
22183 here.
22184 * doc/invoke.texi: From here.
22185 * doc/sourcebuild.texi: Document location of documentation for
22186 machine built-in functions.
22187
22188 2002-01-13 Christopher Faylor <cgf@redhat.com>
22189
22190 * cppfiles.c (TEST_THRESHOLD): New macro.
22191 (SHOULD_MMAP): Ditto.
22192 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
22193 be used.
22194
22195 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
22196
22197 * unroll.c (final_reg_note_copy): Properly handle
22198 REG_LABEL
22199 (unroll_loops): Fix LOOP_CONDITION heuristics.
22200
22201 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
22202
22203 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
22204 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
22205
22206 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
22207
22208 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
22209 threaded loop.
22210
22211 2002-01-14 Tom Rix <trix@redhat.com>
22212
22213 * config/rs6000/rs6000.md: Fix typo with sradi.
22214
22215 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
22216
22217 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
22218 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
22219 (clrstrdi, clrstrsi): Adapt callers.
22220
22221 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
22222
22223 (movti splitter): Never use register 0 as base register.
22224
22225 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
22226
22227 * combine.c (simplify_shift_const): Always generate new rtx
22228 for shift expression instead of reusing given expression.
22229
22230 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22231
22232 * config/alpha/alpha.c (alpha_expand_mov): Don't call
22233 alpha_legitimize_address unless mode is Pmode.
22234
22235 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
22236
22237 * doc/md.texi (Modifiers): Document the '*' constraint for the
22238 user.
22239
22240 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
22241 * doc/extend.texi (Function Attributes): 'interrupt' is valid
22242 for xstormy16 too.
22243
22244 2002-01-13 Richard Henderson <rth@redhat.com>
22245
22246 * reload.c (find_reloads): Use a hard reg destination as reload reg
22247 for an input reload of the source.
22248
22249 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22250
22251 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
22252 more generic.
22253
22254 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
22255
22256 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
22257 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
22258
22259 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
22260
22261 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22262
22263 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
22264
22265 2002-01-12 Tom Rix <trix@redhat.com>
22266
22267 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
22268 TARGET_POWERPC64.
22269
22270 2002-01-12 Richard Henderson <rth@redhat.com>
22271
22272 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
22273
22274 * doc/invoke.texi: Update Alpha options.
22275
22276 * doc/invoke.texi: Update i386 built-in function lists.
22277
22278 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
22279
22280 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
22281 referencing outside.
22282
22283 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22284
22285 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
22286 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
22287 offsets, and change line folding.
22288 * optabs.c (expand_binop): Remove warnings.
22289 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
22290
22291 2002-01-12 Graham Stott <grahams@redhat.com>
22292
22293 * attribs.c (handle_deprecated_attribute): constify WHAT.
22294 * diagnostic.c (warn_deprecated_use): Add braces, fixes
22295 dangling else warning and constify WHAT.
22296 * except.h (struct function, struct inline_remap): Move
22297 struct tag forward defs before all prototypes.
22298 (duplicate_eh_regions): Whitespace.
22299
22300 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
22301
22302 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
22303 MODE_BASE_REG_CLASS.
22304 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
22305
22306 2002-01-12 Richard Henderson <rth@redhat.com>
22307
22308 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
22309 (ix86_expand_vector_move): New.
22310 (bdesc_2arg): Remove andps, andnps, orps, xorps.
22311 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
22312 Remove old prefetch builtins. Special case the logicals removed above.
22313 (ix86_expand_builtin): Likewise.
22314 (safe_vector_operand): Use V4SFmode, not TImode.
22315 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
22316 (ix86_expand_timode_binop_builtin): New.
22317 * config/i386/i386-protos.h: Update.
22318 * config/i386/i386.h (enum ix86_builtins): Update.
22319 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
22320 Use ix86_expand_vector_move in vector move expanders.
22321 (movti_internal, movti_rex64): Add xorps alternative.
22322 (sse_clrv4sf): Rename and adjust from sse_clrti.
22323 (prefetch): Don't work so hard.
22324 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
22325 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
22326 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
22327
22328 2002-01-11 Richard Henderson <rth@redhat.com>
22329
22330 * config/i386/mmintrin.h: New file.
22331 * config/i386/xmmintrin.h: New file.
22332 * config.gcc (i?86-*-*): Add extra_headers.
22333 * simplify-rtx.c (simplify_unary_operation): Handle saturating
22334 truncation codes.
22335 (simplify_binary_operation): Handle saturating arithmetic codes.
22336 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
22337 not the lowpart subreg.
22338 (ix86_expand_builtin): Return a TImode dummy register instead of 0
22339 on error.
22340 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
22341
22342 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22343
22344 * conflict.c (conflict_graph_compute): Free regsets when finished.
22345 * ssa.c (compute_coalesced_reg_partition): Likewise.
22346
22347 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22348
22349 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
22350 every where we allocate a register.
22351
22352 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22353
22354 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
22355 * lcm.c (compute_earliest, compute_farthest): Likewise.
22356
22357 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22358
22359 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
22360
22361 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22362
22363 * doc/rtl.texi (Insns): Fix 2 typos.
22364
22365 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
22366
22367 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
22368 options. Use @table @gcctabopt for MMIX options. Add index
22369 entries for MMIX options. Start new paragraph with first
22370 heading of the machine-dependent options.
22371
22372 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
22373
22374 PR other/5299
22375 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
22376 * combine.c (force_to_mode): Same.
22377 * reload1.c (clear_reload_reg_in_use): Same.
22378
22379 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
22380
22381 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
22382 and 'subtargets'.
22383
22384 2002-01-11 Andreas Jaeger <aj@suse.de>,
22385 Brad Lucier <lucier@math.purdue.edu>
22386
22387 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
22388 mcpu.
22389
22390 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
22391
22392 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
22393 Protect with IN_LIBGCC.
22394 (LINK_EH_SPEC): Add required trailing space.
22395
22396 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
22397
22398 * c-tree.h: Move function declarations so that they are listed
22399 under the filename which contains them.
22400 (check_identifier, finish_decl_top_level,
22401 lookup_name_current_level_global, shadow_record_fields): Remove.
22402
22403 2002-01-11 Andreas Jaeger <aj@suse.de>
22404
22405 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
22406 march.
22407
22408 2002-01-10 Richard Henderson <rth@redhat.com>
22409
22410 * config/alpha/alpha.c (print_operand): Add 'J'.
22411 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
22412 new operand with the sequence number for the lituse. When splitting
22413 the insns, use gen_movdi_er_high_g and generate a sequence number.
22414 (gen_movdi_er_high_g): Print the sequence number if non-zero.
22415
22416 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
22417
22418 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
22419 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
22420 stvxl.
22421 (altivec_expand_builtin): Same.
22422 (altivec_expand_stv_builtin): New.
22423
22424 * config/rs6000/rs6000.h (rs6000_builtins): Same.
22425
22426 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
22427 ("altivec_lvehx"): New.
22428 ("altivec_lvewx"): New.
22429 ("altivec_lvxl"): New.
22430 ("altivec_lvx"): New.
22431 ("altivec_stvx"): New.
22432 ("altivec_stvebx"): New.
22433 ("altivec_stvehx"): New.
22434 ("altivec_stvewx"): New.
22435 ("altivec_stvxl"): New.
22436
22437 2002-01-10 Richard Henderson <rth@redhat.com>
22438
22439 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
22440 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
22441 care not to delete instructions twice.
22442
22443 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22444
22445 * toplev.c: Don't declare environ (it's not used anywhere).
22446 * configure.in: Don't check for declaration of environ.
22447 * config/i386/xm-mingw32.h: Don't #define environ.
22448 * config.in, configure: Regenerate.
22449
22450 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22451
22452 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
22453 * configure: Regenerate.
22454
22455 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
22456 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
22457 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
22458 alpha/xm-vms.h.
22459 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
22460 LIMITS_H_TEST here, not in m68k/x-next.
22461 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
22462 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
22463
22464 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
22465 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
22466 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
22467
22468 * config/i386/x-djgpp: Renamed i386/t-djgpp.
22469 * config/m88k/x-dolph: Renamed m88k/t-dolph.
22470 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
22471 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
22472 replacement of quadlib.asm with quadlib.c.
22473
22474 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
22475 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
22476 config/rs6000/xm-beos.h: Delete file.
22477
22478 * config.gcc: Update to match above changes.
22479
22480 2002-01-10 Kazu Hirata <kazu@hxi.com>
22481
22482 * config/h8300/h8300.h: Fix comment typos.
22483 * config/h8300/h8300.md: Likewise.
22484 * config/h8300/lib1funcs.asm: Likewise.
22485
22486 2002-01-10 Dale Johannesen <dalej@apple.com>
22487
22488 PR optimization/5269
22489 * unroll.c (precondition_loop_p): Make *increment be the correct
22490 sign when n_iterations known, to avoid confusing caller.
22491
22492 2002-01-10 Kazu Hirata <kazu@hxi.com>
22493
22494 * doc/extend.texi (deprecated): Fix a typo.
22495
22496 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
22497
22498 * basic-block.h (update_br_prob_note): Declare.
22499 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
22500 (try_forward_edges): Care negative frequencies and update note.
22501 (outgoing_edges_match): Tweek conditional merging heuristics.
22502 (try_crossjump_to_edge): use update_br_prob_note.
22503 * cfglayout.c (fixup_reorder_chain): Likewise.
22504 * cfrtl.c (update_br_prob_note): New.
22505 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
22506
22507 * i386.c (ix86_decompose_address): Return -1 if address contains
22508 shift.
22509 (legitimate_address_p): Require ix86_decompose_address to return 1.
22510
22511 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
22512 (cprop_insn): Likewise.
22513
22514 2002-01-10 Kazu Hirata <kazu@hxi.com>
22515
22516 * toplev.c: Fix formatting.
22517 * tree.c: Likewise.
22518 * tree-dump.c: Likewise.
22519 * unroll.c: Likewise.
22520 * unwind-dw2.c: Likewise.
22521 * unwind-dw2-fde.c: Likewise.
22522 * unwind-dw2-fde-glibc.c: Likewise.
22523 * unwind-sjlj.c: Likewise.
22524
22525 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22526
22527 * doc/invoke.texi: Document PDP-11 options.
22528
22529 2002-01-10 Kazu Hirata <kazu@hxi.com>
22530
22531 * config/h8300/h8300.h: Fix formatting.
22532
22533 2002-01-10 Ira Ruben <ira@apple.com>
22534
22535 Add __attribute__ ((deprecated)).
22536 * extend.texi: Document __attribute__ ((deprecated)).
22537 * invoke.texi: Document -Wno-deprecated-declarations.
22538 * testsuite/g++.dg/other/deprecated.C: New C++ test.
22539 * testsuite/gcc.dg/deprecated.c: New C test.
22540 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
22541 (c_common_attribute_table): Add "deprecated" entry.
22542 (handle_deprecated_attribute): New function.
22543 * c-decl.c (deprecated_states): New enum.
22544 deprecated_state: State of "deprecated" handling.
22545 (start_decl): Set deprecated_state based on attributes.
22546 (grokdeclarator): Test for deprecated uses, propagate attribute.
22547 * c-typeck.c (build_component_ref): Test for deprecated fields.
22548 (build_external_ref): Test for deprecated primaries.
22549 * diagnostic.c (warn_deprecated_use) New function to issue
22550 warnings about __attribute__ ((depricated)) references.
22551 * flags.h (warn_deprecated_decl): Extern declared for
22552 -W[no-]deprecated-declarations option.
22553 * print-tree.c (print_node): Show deprecated flag status.
22554 * toplev.c (warn_deprecated_decl): Defined.
22555 (W_options): Added "deprecated-declaration".
22556 * toplev.h (warn_deprecated_use): Extern declared.
22557 * tree.h (struct tree_common): Define deprecated_flag.
22558 (TREE_DEPRECATED): New macro to access flag.
22559 * cp/call.c (build_call): Test for deprecated calls.
22560 * cp/class.c (add_implicitly_declared_members): Set global
22561 flag to tell grokdeclarator to not issue deprecated warnings.
22562 * cp/cp-tree.h: Add extern for adding_implicit_members.
22563 * cp/decl.c (deprecated_states): New enum.
22564 (start_decl): Set deprecated_state based on attributes.
22565 (grokdeclarator): Test for deprecated uses, propagate attribute.
22566 * cp/lex.c (do_identifier): Test for deprecated primaries.
22567 * cp/typeck.c (build_component_ref): Test for deprecated fields.
22568
22569 2002-01-10 Ira Ruben <ira@apple.com>
22570
22571 Fix to assign attributes to inline member functions.
22572 * cp/decl.c (start_method): Handle attrlist.
22573
22574 2002-01-10 Kazu Hirata <kazu@hxi.com>
22575
22576 * combine.c (expand_field_assignment): Use subreg_lsb().
22577
22578 2002-01-10 David Edelsohn <edelsohn@gnu.org>
22579
22580 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
22581 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
22582 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
22583 Recurse for any operand of AND as long as constant is non-zero.
22584
22585 2002-01-10 Kazu Hirata <kazu@hxi.com>
22586
22587 * config/h8300/h8300.md: Remove constraints from expanders.
22588
22589 2002-01-10 Kazu Hirata <kazu@hxi.com>
22590
22591 * varasm.c: Fix formatting.
22592 * varray.c: Likewise.
22593 * vmsdbgout.c: Likewise.
22594 * xcoffout.c: Likewise.
22595
22596 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
22597
22598 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
22599 update edge probabilities to match.
22600
22601 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22602
22603 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
22604 dependencies.
22605 * doc/languages.texi, doc/sourcebuild.texi: New files.
22606 * doc/configfiles.texi: Make a subsubsection. Update.
22607 * doc/configterms.texi: Add @node. Remove warning that this isn't
22608 instructions for building GCC.
22609 * doc/makefile.texi: Make a subsection.
22610 * doc/gccint.texi: Update.
22611
22612 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
22613
22614 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
22615
22616 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
22617
22618 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
22619
22620 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
22621
22622 * optabs.c (expand_fix): Look for wider integer modes first.
22623
22624 * i386.md (mov?f): Avoid the fake const double trick for medium
22625 memory model.
22626 (min?f*/max?f*): Prohibit memory operands for i387 variant.
22627 (fop_df_4): Disable for SSE compilation.
22628
22629 2002-01-10 Graham Stott <grahams@redhat.com>
22630
22631 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
22632 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
22633
22634 2002-01-10 Richard Henderson <rth@redhat.com>
22635
22636 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
22637
22638 2002-01-10 Richard Henderson <rth@redhat.com>
22639
22640 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
22641 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
22642
22643 2002-01-10 Kazu Hirata <kazu@hxi.com>
22644
22645 * combine.c (can_combine_p): Fix a comment typo.
22646
22647 2002-01-09 Zack Weinberg <zack@codesourcery.com>
22648
22649 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
22650 empty list correctly. Change loop index $t to $f for
22651 consistency with rest of Makefile.
22652
22653 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
22654
22655 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
22656 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22657
22658 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
22659 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
22660 (altivec_init_builtins): Same.
22661 (altivec_expand_unop_builtin): Return NULL_RTX on error.
22662 (altivec_expand_binop_builtin): Same.
22663 (altivec_expand_ternop_builtin): Same.
22664 (bdesc_dst): New.
22665
22666 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
22667 ("altivec_vctuxs"): Fix typo.
22668 ("altivec_vnmsubfp"): Same.
22669 ("altivec_dssall"): New.
22670 ("altivec_mfvscr"): New.
22671 ("altivec_dss"): New.
22672 ("altivec_lvsl"): New.
22673 ("altivec_lvsr"): New.
22674 ("altivec_dstt"): New.
22675 ("altivec_dstst"): New.
22676 ("altivec_dststt"): New.
22677 ("altivec_dst"): New.
22678
22679 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
22680 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22681
22682 2002-01-09 Richard Henderson <rth@redhat.com>
22683
22684 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
22685
22686 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
22687
22688 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
22689 function.
22690 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
22691 prototype.
22692 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
22693
22694 2002-01-09 Kazu Hirata <kazu@hxi.com>
22695
22696 * read-rtl.c: Fix formatting.
22697 * real.c: Likewise.
22698 * regclass.c: Likewise.
22699 * regrename.c: Likewise.
22700 * reg-stack.c: Likewise.
22701 * reload1.c: Likewise.
22702 * reload.c: Likewise.
22703 * rtl.c: Likewise.
22704
22705 2002-01-09 Kazu Hirata <kazu@hxi.com>
22706
22707 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
22708 to extract items in the expr_list chain.
22709
22710 2002-01-09 Richard Henderson <rth@redhat.com>
22711
22712 * config/vax/vax.c (vax_rtx_cost): Never abort.
22713
22714 * config/vax/vax.h (REAL_ARITHMETIC): Define.
22715
22716 2002-01-09 Jan Hubicka <jh@suse.cz>
22717
22718 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
22719
22720 2002-01-09 Richard Henderson <rth@redhat.com>
22721
22722 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
22723 Unify code from various alternatives.
22724
22725 2002-01-09 Richard Henderson <rth@redhat.com>
22726
22727 * regrename.c (copy_value): Ignore the copy if the source register
22728 is present in the value chain with a narrower mode.
22729
22730 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22731
22732 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
22733 for the c4x target. Also improve layout.
22734
22735 2002-01-09 Richard Henderson <rth@redhat.com>
22736
22737 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
22738 * config/m32r/m32r.md (and ior xor splitters): Swap operands
22739 to match insn patterns.
22740
22741 2002-01-09 Richard Henderson <rth@redhat.com>
22742
22743 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
22744 (copyprop_hardreg_forward_1): Likewise.
22745
22746 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
22747
22748 * pa.md (decrement_and_branch_until_zero): Change predicate for
22749 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
22750
22751 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
22752
22753 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
22754 gets undefined. For Darwin.
22755
22756 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22757
22758 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
22759
22760 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22761
22762 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
22763
22764 2002-01-08 Richard Henderson <rth@redhat.com>
22765
22766 * regrename.c (copy_value): Ignore overlapping copies.
22767
22768 2002-01-08 Richard Henderson <rth@redhat.com>
22769
22770 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
22771 as needed to avoid shared structure.
22772
22773 2002-01-08 Kazu Hirata <kazu@hxi.com>
22774
22775 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
22776 H8/300H and H8/S.
22777
22778 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22779
22780 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
22781 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
22782 documentation of obsolete macros.
22783 * system.h: Poison these macros.
22784 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
22785 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
22786 config/c4x/c4x.h, config/clipper/clipper.h,
22787 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
22788 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
22789 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
22790 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
22791 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
22792 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
22793 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22794 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
22795 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
22796 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22797 config/sparc/sparc.h, config/stormy16/stormy16.h,
22798 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
22799 definitions and commented out definitions of obsolete macros.
22800 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
22801 of MAX_INT_TYPE_SIZE.
22802
22803 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22804
22805 * config/s390/s390.c (s390_preferred_reload_class): Never
22806 return ADDR_REGS if it isn't a subset of the given class.
22807 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
22808 FP_REGS, but all superclasses as well.
22809
22810 * config/s390/s390.c (s390_function_profiler): Fix thinko.
22811
22812 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
22813 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
22814 must not be a const_int.
22815
22816 2002-01-08 Richard Henderson <rth@redhat.com>
22817
22818 * Makefile.in (toplev.o): Depend on options.h.
22819 (gcc.o): Depend on specs.h.
22820
22821 2002-01-08 Jakub Jelinek <jakub@redhat.com>
22822
22823 * expr.c (store_expr): Convert VOIDmode constants back to target's
22824 mode.
22825
22826 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22827
22828 * doc/invoke.texi: Markup gcc as @command. Refer to
22829 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
22830 of http://gcc.gnu.org/thanks.html.
22831
22832 2002-01-08 Dale Johannesen <dalej@apple.com>
22833
22834 * config/rs6000/rs6000.md: Add missing int register
22835 target case to movdf_low.
22836
22837 2002-01-08 Zack Weinberg <zack@codesourcery.com>
22838
22839 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
22840 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
22841 (cppinit.o): Depend on except.h.
22842 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
22843 s-specs): New rules.
22844
22845 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
22846 Don't create specs.h/options.h/gencheck.h here. Remove
22847 unnecessary variable settings from last argument of AC_OUTPUT.
22848 * config.in, configure: Regenerate.
22849 * intl.c: Hardcode package name as "gcc".
22850
22851 * cppinit.c: Include except.h.
22852 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
22853 appropriate.
22854 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
22855 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
22856 (!)USING_SJLJ_EXCEPTIONS.
22857 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
22858
22859 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22860
22861 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
22862 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
22863 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
22864 documentation of obsolete macros.
22865 * system.h: Poison these macros.
22866 * config/d30v/d30v.h, config/ns32k/encore.h,
22867 config/stormy16/stormy16.h: Remove definitions and commented out
22868 definitions of obsolete macros.
22869
22870 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
22871
22872 * objc/objc-act.c (handle_class_ref): Mark the declaration of
22873 %sobjc_class_ref_%s as used - to prevent unwanted compiler
22874 warnings.
22875
22876 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22877
22878 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
22879 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
22880 to insn adjusting stack/frame pointer.
22881 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
22882 accept operands that cause the insn to be non-splittable.
22883
22884 2002-01-08 Graham Stott <grahams@redhat.com>
22885
22886 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
22887 (C_TYPE_FIELDS_VOLATILE): Likewise.
22888 (C_TYPE_BEING_DEFINED): Likewise.
22889 (C_IS_RESERVED_WORD): Likewise.
22890 (C_TYPE_VARIABLE_SIZE): Likewise.
22891 (C_DECL_VARIABLE_SIZE): Likewise.
22892 (C_MISSING_PROTOTYPE_WARNED): Likewise.
22893 (C_SET_EXP_ORIGINAL_CODE): Likewise.
22894 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22895 parenthesis.
22896 (C_DECL_ANTICIPATED): Likewise.
22897 (c_build_type_variant): Add parenthesis.
22898
22899 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22900
22901 * gcc.c (option_map): Remove --version.
22902 (process_command): Handle -fversion following the GNU Coding
22903 Standards. Partially addresses PR other/704.
22904
22905 2002-01-08 Graham Stott <grahams@redhat.com>
22906
22907 * combine.c (combine_instructions): Fix typo.
22908
22909 2002-01-08 Graham Stott <grahams@redhat.com>
22910
22911 * debug.h: Use "tree" and "rtx" throughout.
22912
22913 * debug.c: Likewise.
22914
22915 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
22916
22917 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22918 constant pool, use the pool's version of the symbol instead.
22919
22920 2002-01-07 Richard Henderson <rth@redhat.com>
22921
22922 * regrename.c (find_oldest_value_reg): Ignore the value chain if
22923 the original register was copied in a mode with a fewer number of
22924 hard registers than the desired mode.
22925 (copyprop_hardreg_forward_1): Likewise.
22926 (debug_value_data): Fix loop test.
22927 * toplev.c (parse_options_and_default_flags): Reenable
22928 -fcprop-registers at -O1.
22929
22930 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22931
22932 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22933 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
22934
22935 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22936 predicates.
22937
22938 * config/rs6000/rs6000.md: Add altivec predicate patterns.
22939
22940 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
22941
22942 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22943 (pa_output_function_prologue): Output local label at the beginning of
22944 the prologue when profiling.
22945 (hppa_profile_hook): Use the local label rather than the function label.
22946 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22947
22948 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22949
22950 * config/rs6000/rs6000.c (print_operand): Remove extra space.
22951 (altivec_expand_unop_builtin): Fix thinko.
22952 (altivec_expand_binop_builtin): Same.
22953 (altivec_expand_ternop_builtin): Same.
22954 (altivec_expand_builtin): Same.
22955
22956 2002-01-07 Richard Henderson <rth@redhat.com>
22957
22958 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22959
22960 2002-01-07 Jason Merrill <jason@redhat.com>
22961
22962 * unwind-dw2.c (execute_cfa_program): Use < again.
22963
22964 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22965
22966 * predict.c (combine_predictions_for_insn): Avoid division by zero.
22967
22968 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22969
22970 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22971 Don't allow -1 - x -> ~x simplifications in the first pass.
22972
22973 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22974
22975 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22976 arguments.
22977 (altivec_expand_binop_builtin): Same.
22978 (altivec_expand_unop_builtin): Same.
22979 (print_operand): Fix typo.
22980 (bdesc_1arg): Add vupk* variants.
22981
22982 * rs6000.h (rs6000_builtins): Add vupk* enums.
22983
22984 * rs6000.md: Add altivec_vupk* variants.
22985
22986 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
22987
22988 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22989 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22990 and last update dates.
22991
22992 2002-01-07 Janis Johnson <janis187@us.ibm.com>
22993
22994 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22995
22996 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
22997
22998 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22999 * config/avr/avr.h (CPP_SPEC): Likewise.
23000 (LINK_SPEC): Likewise.
23001 (CRT_BINUTILS_SPECS): Likewise.
23002 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
23003 * doc/invoke.texi (AVR Options): Document them.
23004
23005 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
23006
23007 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
23008 LABEL_NUSES.
23009
23010 2002-01-07 Graham Stott <grahams@redhat.com>
23011
23012 * config/i386/i386.h: Update copyright date.
23013 (HALF_PIC_PTR): Add parenthesis.
23014 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
23015 (CONSTANT_ALIGNMENT): Add parenthesis.
23016 (DATA_ALIGNMENT): Likewise.
23017 (LOCAL_ALIGNMENT): Likewise.
23018 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
23019 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
23020 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
23021 (HARD_REGNO_NREGS): Add paranethesis.
23022 (VALID_SSE_REG_MODE): Whitespace.
23023 (VALID_MMX_REG_MODE): Whitespace.
23024 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
23025 (ix86_hard_regno_mode_ok): Add parenthesis.
23026 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
23027 (RETURN_IN_MEMORY): Whitespace.
23028 (N_REG_CLASSES): Add parenthesis.
23029 (INTEGER_CLASS_P): Add parenthesis and wrap.
23030 (FLOAT_CLASS_P): Likewise.
23031 (SSE_CLASS_P): Likewise.
23032 (MMX_CLASS_P): Likewise.
23033 (MAYBE_INTEGER_CLASS_P): Likewise.
23034 (MAYBE_FLOAT_CLASS_P): Likewise.
23035 (MAYBE_SSE_CLASS_P): Likewise.
23036 (MAYBE_MMX_CLASS_P): Likewise.
23037 (Q_CLASS_P): Likewise.
23038 (GENERAL_REGNO_P): Uppercase macro parameter.
23039 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
23040 (FP_REGNO_P): Likewise.
23041 (ANY_FP_REGNO_P): Uppercase macro parameter.
23042 (SSE_REGNO_P): Likewise.
23043 (SSE_REGNO): Likewise.
23044 (SSE_REG_P): Likewise.
23045 (SSE_FLOAT_MODE_P): Likewise.
23046 (MMX_REGNO_P): Likewise.
23047 (MMX_REG_P):Likewise.
23048 (STACK_REG_P): Likewise.
23049 (NON_STACK_REG_P): Likewise.
23050 (STACK_TOP_P): Likewise.
23051 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
23052 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
23053 (SECONDARY_MEMORY_NEEDED): Likewise.
23054 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
23055 (MD_ASM_CLOBBERS): Whitespace and wrap.
23056 (MUST_PASS_IN_STACK): Whitespace and wrap.
23057 (RETURN_POPS_ARGS): Add parenthesis.
23058 (INIT_CUMULATIVE_ARGS): Likewise.
23059 (FUNCTION_ARG): Likewise.
23060 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
23061 (SETUP_INCOMING_VARARGS): Likewise.
23062 (BUILD_VA_LIST_TYPE): Add parenthesis.
23063 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
23064 parenthsis.
23065 (EXPAND_BUILTIN_VA_ARG): Likewise.
23066 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
23067 (INITIALIZE_TRAMPOLINE): Add parenthesis.
23068 (INITIAL_ELIMINATION_OFFSET): Likewise.
23069 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
23070 (REGNO_OK_FOR_BASE_P): Likewise.
23071 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
23072 (REGNO_OK_FOR_DIREG_P): Likewise.
23073 (REG_OK_FOR_INDEX_P): Whitespace.
23074 (REG_OK_FOR_BASE_P): Whitespace.
23075 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
23076 parenthesis.
23077 (FIND_BASE_TERM): Fix typo.
23078 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
23079 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
23080 (SYMBOLIC_CONST; Whitespace.
23081 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
23082 (ENCODE_SECTION_INFO): Whitespace.
23083 (FINALIZE_PIC): Remove do { ... } while (0).
23084 (PROMOTE_MODE): Wrap in do { ... } while (0).
23085 (CONST_COSTS): Whitespace.
23086 (RTX_COSTS): Add paramethesis, whitespace and wrap.
23087 (REGISTER_MOVE_COST): Add parenthesis.
23088 (MEMORY_MOVE_COST): Likewise.
23089 (EXTRA_CC_MODES): Whitespace.
23090 (SELECT_CC_MODE): Add parenthesis and whitespace.
23091 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
23092 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
23093 (ASM_OUTPUT_LABEL): Add paramethesis.
23094 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
23095 (ASM_OUTPUT_REG_POP): Likewise.
23096 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
23097 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
23098
23099 * config/i386/i386.c: Update copyright.
23100 (CHECK_STACK_LIMIT): Add parenthesis.
23101 (AT_BP): Uppercase macro parameter.
23102 (x86_64_int_parameter_registers): Constify.
23103 (x86_64_int_return_registers): Likewise.
23104 (ix86_compare_op0): Use rtx.
23105 (construct_container): Constify INTREG parameter.
23106 (function_arg): Use rtx.
23107
23108 * diagnostic.h: Update copyright date.
23109 (output_buffer_state): Add parenthesis.
23110 (output_buffer_format_args): Likewise.
23111
23112 * combine.c (combine_instructions): Replace XEXP (links, 0)
23113 with link.
23114
23115 2002-01-06 H.J. Lu <hjl@gnu.org>
23116
23117 * cfgcleanup.c (thread_jump): Fix 2 typos.
23118
23119 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
23120
23121 * config.gcc: Add support for --enable-altivec.
23122
23123 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
23124
23125 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
23126
23127 2002-01-06 Jakub Jelinek <jakub@redhat.com>
23128
23129 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
23130 __objc_class_name_*.
23131
23132 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
23133
23134 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
23135
23136 2002-01-06 Richard Henderson <rth@redhat.com>
23137
23138 * reorg.c (emit_delay_sequence): Remove death notes, not merely
23139 nop them out. Increment label reference count for REG_LABEL.
23140 (fill_slots_from_thread): Frob label reference count around
23141 delete_related_insns.
23142
23143 2002-01-05 Richard Henderson <rth@redhat.com>
23144
23145 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
23146 jump threading.
23147
23148 2002-01-05 Richard Henderson <rth@redhat.com>
23149
23150 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
23151 * integrate.c (output_inline_function): Likewise.
23152 * toplev.c (rest_of_compilation): Do it here instead. Move call
23153 to remove_unnecessary_notes after emitting abstract instance.
23154 Force an emitted nested function to have its parent emited as well.
23155 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
23156 for null.
23157 (rtl_for_decl_location): Do not look at reload data structures
23158 before reload has run.
23159
23160 2002-01-05 Kazu Hirata <kazu@hxi.com>
23161
23162 * cse.c: Fix formatting.
23163 * dwarf2asm.c: Likewise.
23164 * dwarf2out.c: Likewise.
23165 * explow.c: Likewise.
23166 * expmed.c: Likewise.
23167 * function.c: Likewise.
23168 * gcov.c: Likewise.
23169 * gencheck.c: Likewise.
23170 * genrecog.c: Likewise.
23171 * ggc-common.c: Likewise.
23172 * ggc-page.c: Likewise.
23173 * global.c: Likewise.
23174
23175 2002-01-05 Kazu Hirata <kazu@hxi.com>
23176
23177 * combine.c: Fix formatting.
23178
23179 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
23180
23181 PR middle-end/1557
23182 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
23183
23184 2002-01-05 David Edelsohn <edelsohn@gnu.org>
23185
23186 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
23187 as 1 for __powerpc64__ as well.
23188
23189 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
23190
23191 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
23192 return it.
23193
23194 2002-01-05 Daniel Berlin <dan@dberlin.org>
23195
23196 * lcm.c: Revert change, due to performance regression it causes on
23197 SPEC because it's slightly more conservative (sigh, I hate
23198 edge-based LCM).
23199
23200 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
23201
23202 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
23203
23204 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
23205
23206 * doc/cppinternals.texi: Update.
23207
23208 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
23209
23210 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
23211 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
23212 negatives.
23213 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
23214 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
23215 kludge for pre-october-14th mmix versions to handle new-found bug
23216 with PUSHJ/PUSHGO and the register stack.
23217 * config/mmix/mmix.h (struct machine_function): Rename member
23218 has_call_value_without_parameters to has_call_without_parameters.
23219 All referers changed.
23220 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
23221 TARGET_MASK_BRANCH_PREDICT): New macros.
23222 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
23223 -mno-reg-stack-fill-bug-workaround.
23224 * config/mmix/mmix.md ("call"): Set struct machine member
23225 has_call_without_parameters.
23226
23227 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
23228
23229 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
23230
23231 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
23232
23233 * cfgcleanup.c: Include tm_p.h
23234 (mark_effect): Fix handling of hard register; fix handling of SET
23235
23236 2002-01-04 Kazu Hirata <kazu@hxi.com>
23237
23238 * config/h8300/h8300.md (anonymous patterns): Check that
23239 operands are registers before using REGNO on them.
23240
23241 2002-01-03 Roland McGrath <roland@frob.com>
23242
23243 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
23244
23245 2002-01-04 Jakub Jelinek <jakub@redhat.com>
23246
23247 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
23248 * c-common.h (genrtl_expr_stmt_value): Likewise.
23249 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
23250 (expand_expr_stmt_value): Add maybe_last argument.
23251 Don't warn about statement with no effect if it is the last statement
23252 in expression statement.
23253 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
23254 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
23255 expand_expr_stmt_value.
23256 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
23257 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
23258 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
23259 as maybe_last to expand_expr_stmt_value.
23260
23261 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
23262
23263 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
23264 be passed in, do not build it.
23265 (c_begin_if_stmt): New function.
23266 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
23267 * c-common.h (c_expand_start_cond): Update prototype.
23268 (c_begin_if_stmt): Prototype new function.
23269 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
23270 * c-parse.in (if_prefix): Use c_begin_if_stmt,
23271 c_begin_while_stmt and c_finish_while_stmt_cond.
23272
23273 2002-01-04 William Cohen <wcohen@redhat.com>
23274
23275 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
23276 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23277 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23278 * config/pa/som.h (ASM_FILE_START): Likewise.
23279
23280 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
23281
23282 * lcm.c: Include df.h.
23283 Add available_transfer_function prototype.
23284 (compute_available): Rework to use iterative dataflow framework.
23285 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
23286 with bb_info in df.h
23287 (available_transfer_function): New function.
23288
23289 * Makefile.in (lcm.o): add df.h to dependencies.
23290
23291 2002-01-04 Richard Henderson <rth@redhat.com>
23292
23293 * config/alpha/alpha.c (some_operand): Accept HIGH.
23294 (input_operand): Likewise; accept simple references to globals.
23295 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
23296 (alpha_const_double_ok_for_letter_p): Likewise.
23297 (alpha_extra_constraint): Likewise.
23298 (alpha_preferred_reload_class): Likewise. Do not force
23299 symbolic constants to memory.
23300 (alpha_legitimate_address_p): Accept simple references
23301 to small_symbolic_operand.
23302 (alpha_legitimize_address): New arg scratch. Be prepared to be
23303 called when no_new_pseudos. Emit simple symbolic references.
23304 Split integers into low, high, and rest.
23305 (alpha_expand_mov): Use alpha_legitimize_address.
23306 (some_small_symbolic_mem_operand): New.
23307 (split_small_symbolic_mem_operand): New.
23308 * config/alpha/alpha-protos.h: Update.
23309 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
23310 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
23311 (EXTRA_CONSTRAINT): Likewise.
23312 (PREFERRED_RELOAD_CLASS): Likewise.
23313 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
23314 (PREDICATE_CODES): Update.
23315 * config/alpha/alpha.md: New post-reload splitters to convert
23316 simplfied symbolic operands to the form that references $29.
23317 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
23318 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
23319
23320 2002-01-03 Richard Henderson <rth@redhat.com>
23321
23322 * local-alloc.c (function_invariant_p): Update commentary.
23323
23324 2002-01-04 H.J. Lu <hjl@gnu.org>
23325
23326 * toplev.c (rest_of_compilation): Fix a typo when calling
23327 cleanup_cfg.
23328
23329 2002-01-03 Kazu Hirata <kazu@hxi.com>
23330
23331 * c-common.c: Fix formatting.
23332 * diagnostic.c: Likewise.
23333 * doloop.c: Likewise.
23334 * dwarf2out.c: Likewise.
23335
23336 2002-01-03 Kazu Hirata <kazu@hxi.com>
23337
23338 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
23339 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
23340
23341 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23342
23343 * cpperror.c: Update comments and copyright.
23344 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
23345 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
23346
23347 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
23348
23349 * collect2.c (main): Use strcmp when testing for "-shared".
23350
23351 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23352
23353 * cppmacro.c: Don't include intl.h. Update comments.
23354 (new_number_token): Allocate enough buffer for 64-bit unsigned
23355 integers; update prototype.
23356 * cppmain.c: Update comments.
23357
23358 2002-01-03 William Cohen <wcohen@redhat.com>
23359
23360 * function.h (struct function): Add profile.
23361 (current_function_profile): New.
23362 doc/extend.texi: Update documentation.
23363 * final.c (final_start_function): Use current_function_profile
23364 instead of profile_flag.
23365 (profile_after_prologue): Likewise.
23366 * function.c (expand_function_start): Likewise.
23367 (expand_function_start): Likewise.
23368 * config/alpha/alpha.c (direct_call_operand):
23369 (alpha_does_function_need_gp): Likewise.
23370 (alpha_expand_prologue): Likewise.
23371 * config/arm/arm.c (arm_expand_prologue): Likewise.
23372 thumb_expand_prologue: Likewise.
23373 * config/d30v/d30v.c (d30v_stack_info): Likewise.
23374 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
23375 (fr30_expand_prologue): Likewise.
23376 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
23377 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
23378 * config/i386/i386.h (FINALIZE_PIC): Likewise.
23379 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
23380 * config/i960/i960.c (i960_output_function_prologue): Likewise.
23381 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
23382 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
23383 (m32r_expand_prologue): Likewise.
23384 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
23385 (m88k_expand_prologue): Likewise.
23386 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
23387 * config/mips/mips.c (compute_frame_size): Likewise.
23388 (mips_expand_prologue): Likewise.
23389 (mips_can_use_return_insn): Likewise.
23390 * config/pa/elf.h (ASM_FILE_START): Likewise.
23391 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23392 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23393 * config/pa/som.h (ASM_FILE_START): Likewise.
23394 * config/romp/romp.c (romp_using_r14): Likewise.
23395 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
23396 (rs6000_stack_info): Likewise.
23397 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
23398 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
23399 * config/v850/v850.c (compute_register_save_size): Likewise.
23400
23401 2002-01-03 Jakub Jelinek <jakub@redhat.com>
23402
23403 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
23404 gen_lowpart_common fails, use gen_lowpart_SUBREG.
23405
23406 2002-01-03 Turly O'Connor <turly@apple.com>
23407
23408 * darwin.c (machopic_output_possible_stub_label): Don't generate
23409 stub routines for pseudo-stubs which we've just defined.
23410
23411 2002-01-03 Kazu Hirata <kazu@hxi.com>
23412
23413 * builtins.c: Fix formatting.
23414 * c-typeck.c: Likewise.
23415 * combine.c: Likewise.
23416 * expr.c: Likewise.
23417 * loop.c: Likewise.
23418
23419 2002-01-03 Andreas Schwab <schwab@suse.de>
23420
23421 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
23422 and return true if _cpp_push_next_buffer pushed a new include
23423 file.
23424 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
23425 _cpp_pop_file_buffer did not push a new file.
23426 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
23427
23428 2002-01-02 Eric Christopher <echristo@redhat.com>
23429
23430 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
23431 FIND_REG_INC_NOTE call. Update copyright.
23432 * loop.c (canonicalize_condition): Ditto.
23433 * reorg.c (delete_scheduled_jump): Ditto.
23434
23435 2002-01-03 Kazu Hirata <kazu@hxi.com>
23436
23437 * gcse.c: Fix formatting.
23438
23439 2002-01-03 Graham Stott <grahams@redhat.com>
23440
23441 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
23442 forward defs for struct tags rtx_def, union_tree, rtvec_def
23443 also output corresponding typedefs for rtx, tree, and rtvec.
23444
23445 * system.h: Move forward defs for struct tags rtx_def, union_tree,
23446 rtvec_def along with corresponding typedefs for rtx, tree, and
23447 rtvec to config.h, hconfig.h, tconfig.h.
23448
23449 2002-01-03 Graham Stott <grahams@redhat.com>
23450
23451 * tree.h: Update copyright date.
23452 (IS_EXPR_CODE_CLASS): Add parenthesis.
23453 (TREE_SET_CODE): Add whitespace.
23454 (TREE_CHECK): Add parenthesis.
23455 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
23456 (CST_OR_CONSTRUCTOR_CHECK):
23457 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
23458 (TREE_SYMBOL_REFERENCED): Whitespace.
23459 (INT_CST_LT): Likewise.
23460 (INT_CST_LT_UNSIGNED): Likewise.
23461 (tree_real_cst): Unwrap comment.
23462 (tree_string): Likewise.
23463 (tree_complex): Likewise.
23464 (IDENTIFIER_POINTER): correct cast.
23465 (SAVE_EXPR_CONTEXT): Whitespace.
23466 (EXPR_WFL_FILENAME_NODE): Likewise.
23467 (EXPR_WFL_FILENAME): Remove parenthesis.
23468 (DECL_ORIGIN): Add parenthesis.
23469 (DECL_FROM_INLINE): Use NULL_TREE.
23470 (build_int_2): Whitespace.
23471 (build_type_variant): Add parenthesis.
23472
23473 * gcc/jcf-parse.c: Update copyright date.
23474 (yyparse): Constify resource_filename.
23475
23476 2002-01-03 Graham Stott <grahams@redhat.com>
23477
23478 * rtl.h: Update copyright date.
23479 (RTL_CHECK1): Wrap long line.
23480 (RTL_CHECK2): Likewise.
23481 (RTL_CHECKC1): Wrap long line and whitespace.
23482 (RTL_CHECKC2): Likewise.
23483 (XWINT): Whitespace.
23484 (XINT): Likewise.
23485 (XSTR): Likewise.
23486 (XEXP): Likewise.
23487 (XVEC): Likewise.
23488 (XMODE): Likewise.
23489 (XBITMAP): Likewise.
23490 (XTREE): Likewise.
23491 (XBBDEF): Likewise.
23492 (XTMPL): Likewise.
23493 (X0WINT): Likewise.
23494 (X0INT):Likewise.
23495 (X0UINT): Likewise.
23496 (X0STR): Likewise.
23497 (X0EXP): Likewise.
23498 (X0VEC): Likewise.
23499 (X0MODE): Likewise.
23500 (X0BITMAP): Likewise.
23501 (X0TREE): Likewise.
23502 (X0BBDEF): Likewise.
23503 (X0ADVFLAGS): Likewise.
23504 (X0CSELIB): Likewise.
23505 (X0MEMATTR): Likewise.
23506 (XCWINT): Likewise.
23507 (XCINT): Likewise.
23508 (XCUINT): Likewise.
23509 (XCSTR): Likewise.
23510 (XCEXP): Likewise.
23511 (XCVEC): Likewise.
23512 (XCMODE): Likewise.
23513 (XCBITMAP): Likewise.
23514 (XCTREE): Likewise.
23515 (XCBBDEF): Likewise.
23516 (XCADVFLAGS): Likewise.
23517 (XCCSELIB): Likewise.
23518 (XC2EXP): Likewise.
23519 (INSN_UID): Likewise.
23520 (PREV_INSN): Likewise.
23521 (PATTERN): Likewise.
23522 (INSN_CODE): Likewise.
23523 (PUT_REG_NOTE_KIND): Likewise.
23524 (CODE_LABEL_NUMBER): Likewise.
23525 (NOTE_SOURCE_FILE): Likewise.
23526 (NOTE_BLOCK): Likewise.
23527 (NOTE_EH_HANDLER): Likewise.
23528 (NOTE_RANGE_INFO): Likewise.
23529 (NOTE_LIVE_INFO): Likewise.
23530 (NOTE_BASIC_BLOCK): Likewise.
23531 (NOTE_EXPECTED_VALUE): Likewise.
23532 (NOTE_LINE_NUMBER): Likewise.
23533 (LABEL_NAME): Likewise.
23534 (LABEL_NUSES): Likewise.
23535 (LABEL_ALTERNATE_NAME): Likewise.
23536 (ADDRESSOF_DECL): Likewise.
23537 (JUMP_LABEL): Likewise.
23538 (LABEL_NEXTREF): Likewise.
23539 (REGNO): Likewise.
23540 (ORIGINAL_REGNO: Likewise.
23541 (HARD_REGISTER_NUM_P): Add parenthesis.
23542 (SUBREG_REG): Whitespace.
23543 (SUBREG_BYTE): Likewise.
23544 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
23545 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
23546 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
23547 (ASM_OPERANDS_INPUT_VEC): Likewise.
23548 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
23549 (ASM_OPERANDS_INPUT): Likewise.
23550 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
23551 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
23552 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
23553 (ASM_OPERANDS_INPUT_MODE): Likewise.
23554 (ASM_OPERANDS_SOURCE_FILE): Likewise.
23555 (ASM_OPERANDS_SOURCE_LINE): Likewise.
23556 (MEM_SET_IN_STRUCT_P): Minor reformat.
23557 (TRAP_CONDITION): Whitespace.
23558 (TRAP_CODE): Likewise.
23559 (COND_EXEC_TEST): Likewise.
23560 (COND_EXEC_CODE): Likewise.
23561 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
23562 (PHI_NODE_P): Add parenthesis.
23563 (plus_constant): Whitespace and add parenthesis.
23564
23565 2002-01-03 Kazu Hirata <kazu@hxi.com>
23566
23567 * config/avr/avr.c: Fix comment typos.
23568 * config/c4x/c4x.md: Likewise.
23569 * config/dsp16xx/dsp16xx.h: Likewise.
23570 * config/dsp16xx/dsp16xx.md: Likewise.
23571 * config/i386/i386.md: Likewise.
23572 * config/ia64/ia64.c: Likewise.
23573 * config/m32r/m32r.h: Likewise.
23574 * config/m68hc11/m68hc11.md: Likewise.
23575 * config/mmix/mmix.c: Likewise.
23576 * config/mn10200/mn10200.c: Likewise.
23577 * config/romp/romp.c: Likewise.
23578 * config/sh/sh.c: Likewise.
23579 * config/stormy16/stormy16.c: Likewise.
23580 * config/stormy16/stormy16.h: Likewise.
23581 * config/stormy16/stormy16.md: Likewise.
23582
23583 2002-01-03 Graham Stott <grahams@redhat.com>
23584
23585 * loop.h: Update copyright date.
23586 (LOOP_MOVABLES): Fix typo.
23587 (LOOP_REGS): Likewise.
23588 (LOOP_IVS): Likewise.
23589
23590 2002-01-03 Graham Stott <grahams@redhat.com>
23591
23592 * cppinit.c: Update copyright date.
23593 Don't include output.h
23594 * Makefile.in: Update copyright date.
23595 Update dependency.
23596
23597 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
23598
23599 PR c/5226
23600 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
23601 (-pthread) Add to RS/6000 options.
23602
23603 2002-01-02 Kazu Hirata <kazu@hxi.com>
23604
23605 * except.c: Fix comment typos.
23606 * loop.c: Likewise.
23607 * varasm.c: Likewise.
23608 * doc/tm.texi: Fix a typo.
23609
23610 2002-01-02 Jakub Jelinek <jakub@redhat.com>
23611
23612 * c-typeck.c (output_init_element): Allow initializing static storage
23613 duration objects with compound literals.
23614
23615 2002-01-02 Richard Henderson <rth@redhat.com>
23616
23617 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
23618 after abusing it.
23619
23620 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23621
23622 * gcc.c (default_compilers): Const-ify.
23623 * mips-tdump.c (stab_names): Likewise.
23624 * mips-tfile.c (map_coff_types, map_coff_storage,
23625 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
23626 pseudo_ops_t, pseudo_ops): Likewise.
23627 * protoize.c (default_include): Likewise
23628
23629 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
23630 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
23631 Add array size in declaration.
23632 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
23633 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
23634 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
23635 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
23636 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
23637 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
23638 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
23639 emtens, make_nan): Const-ify.
23640 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
23641 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
23642
23643 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
23644
23645 * config.gcc (ia64-*-*): Set extra_headers.
23646 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
23647 * config/alpha/t-osf: Remove.
23648 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
23649
23650 2002-01-02 David Edelsohn <edelsohn@gnu.org>
23651
23652 * config/rs6000/t-aix43: Revert previous change.
23653
23654 2002-01-02 Jason Merrill <jason@redhat.com>
23655
23656 * c-decl.c (c_expand_body): Call outlining_inline_function when
23657 emitting an inline function out of line.
23658
23659 2002-01-02 Richard Henderson <rth@redhat.com>
23660
23661 * dwarf2out.c (limbo_die_node): Add created_for member.
23662 (new_die): New argument created_for. Update all callers.
23663 (mark_limbo_die_list): New.
23664 (dwarf2out_init): Register limbo_die_list as a root.
23665 (dwarf2out_finish): Force insert limbo dies into their function
23666 context.
23667
23668 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
23669
23670 PR c++/5089
23671 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
23672
23673 2002-01-02 Kazu Hirata <kazu@hxi.com>
23674
23675 * config/h8300/fixunssfsi.c: Update copyright.
23676 Fix comment typos.
23677 Fix formatting.
23678 * config/h8300/h8300.c: Update copyright.
23679 Eliminate warnings.
23680
23681 2002-01-02 Kazu Hirata <kazu@hxi.com>
23682
23683 * config/romp/romp.c: Fix comment formatting.
23684 * config/romp/romp.h: Likewise.
23685 * config/romp/romp.md: Likewise.
23686 * config/s390/s390.c: Likewise.
23687 * config/stormy16/stormy16.c: Likewise.
23688 * config/stormy16/stormy16.h: Likewise.
23689
23690 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
23691
23692 * c-common.h (genrtl_expr_stmt_value): Declare.
23693 * c-semantics.c (genrtl_goto_stmt): Redirect to...
23694 (genrtl_goto_stmt_value): ... this new function. Pass new
23695 argument down to expand_expr_stmt_value, taking
23696 TREE_ADDRESSABLE into account.
23697 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
23698 STMT_EXPR as addressable, i.e., one whose result we want.
23699 * expr.c (expand_expr): Don't save expression statement value
23700 of labeled_blocks or loop_exprs.
23701 * stmt.c (expand_expr_stmt): Redirect to...
23702 (expand_expr_stmt_value): ... this new function. Use new
23703 argument to tell whether to save expression value.
23704 (expand_end_stmt_expr): Reset last_expr_type and
23705 last_expr_value if we don't have either.
23706 * tree-inline.c (declare_return_variable): Mark its use
23707 statement as addressable.
23708 * tree.h: Document new use of TREE_ADDRESSABLE.
23709 (expand_expr_stmt_value): Declare.
23710
23711 2002-01-01 Tom Rix <trix@redhat.com>
23712
23713 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
23714 rs6000_emit_allocate_stack.
23715
23716 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
23717
23718 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
23719 ${srcdir}/ginclude/ to every entry in extra_headers.
23720 * configure: Regenerate.
23721 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
23722 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
23723 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
23724 * ginclude/proto.h: Rename to config/convex/proto.h.
23725
23726 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23727
23728 * attribs.c (handle_vector_size_attribute): Use host_integerp
23729 and tree_int_cst; remove warnings.
23730 * caller-save.c (insert_restore): Add cast to get rid of warning.
23731 (insert_save): Likewise.
23732 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
23733 * regmove.c (find_matches): Add temporary var to kill a warning.
23734
23735 2002-01-01 Douglas B Rupp <rupp@gnat.com>
23736
23737 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
23738 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
23739 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
23740 (vms-dwarf2eh.o): Add Makefile rule.
23741 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
23742 * config/alpha/vms-dwarf2eh.asm: New file.
23743
23744 * gcc.c (delete_if_ordinary): Delete all versions.
23745
23746 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
23747
23748 * config/mmix/mmix.md: Update FIXME to not mention
23749 define_constants.
23750 (MMIX_rJ_REGNUM): New define_constants constant.
23751 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
23752 "*movdicc_real"): Adjust contraints formatting.
23753 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
23754 for branch prediction.
23755 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
23756 output template.
23757 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
23758 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
23759 number. Delete related FIXMEs.
23760 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
23761 from number to MMIX_rJ_REGNUM.
23762 (TARGET_MASK_BRANCH_PREDICT): New.
23763 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
23764 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
23765 value. Add -mbranch-predict and -mno-branch-predict.
23766 (TARGET_VERSION): Drop date.
23767 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
23768 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
23769 for finding out global symbols.
23770 (mmix_asm_output_labelref): Revert condition for global symbol.
23771 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
23772 (mmix_print_operand_punct_valid_p): A '+' is valid.
23773
23774 See ChangeLog.6 for earlier changes.