1 2002-07-19 David Edelsohn <edelsohn@gnu.org>
3 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
4 fpu list. Separate Power4 compare and delayed_compare. Correct
6 (fix_truncdfsi2_internal): Restore FPR preference.
7 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
8 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
10 2002-07-19 Momchil Velikov <velco@fadata.bg>
12 * reload1.c (reload_as_needed): Duplicate oldpat.
14 2002-07-20 Alan Modra <amodra@bigpond.net.au>
17 * loop.h (struct loop_info): Add "preconditioned".
18 * unroll.c (unroll_loop): Set it.
19 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
21 2002-07-19 Zack Weinberg <zack@codesourcery.com>
23 * rtl.def (CODE_LABEL): Remove slot 8.
24 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
25 (LABEL_ALTERNATE_NAME): Delete.
26 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
27 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
29 * final.c (output_alternate_entry_point): New.
30 (final_scan_insn): Use it instead of
31 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
32 of a case label being an alternate entry point.
34 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
35 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
36 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
38 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
40 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
41 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
42 * doc/tm.texi: Delete documentation of
43 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
45 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
47 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
48 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
50 (STARTFILE_SPEC): Define.
51 (ENDFILE_SPEC): Define.
53 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
54 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
56 * config/mips/iris6-o32-gas.h: New file.
57 * config.gcc (mips-sgi-irix6*o32): Use it.
59 * config/mips/t-iris5-gas: New file.
60 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
62 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
64 * cppexp.c (ALWAYS_EVAL): Remove.
65 (optab, reduce): Always evaluate.
66 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
67 only if not skipping evaluation.
69 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
71 * config/avr/avr.c (debug_hard_reg_set): Remove.
73 2002-07-19 Chris Demetriou <cgd@broadcom.com>
75 * gcc.c (cpp_options): Include "%1" (cc1_spec).
77 2002-07-19 Richard Henderson <rth@redhat.com>
79 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
81 2002-07-19 Alan Modra <amodra@bigpond.net.au>
83 * prefix.c (update_path): Don't zap single `.' path components
84 unless followed by another `.' and fix typo last patch.
86 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
88 * cppexp.c (cpp_num_mul): Remove unused parameter.
89 (UNARY, BINARY, OTHER, binary_handler): Remove.
92 (reduce): Refactor to a large switch, don't use a function
95 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
97 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
99 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
101 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
102 (sh_expand_binop_v2sf): Likewise.
103 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
104 (int_gpr_dest, trunc_hi_operand): New functions.
105 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
107 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
108 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
109 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
110 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
111 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
112 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
113 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
114 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
115 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
116 (movsf_ie+1): Likewise.
117 (loaddi_trunc): Use int_gpr_dest predicate.
118 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
119 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
120 (casesi_worker_0+[12], casesi_worker): Likewise.
121 (shcompact_preserve_incoming_args): Likewise.
122 (mov_nop): Use any_register_operand predicate.
123 (mperm_w0): Use trunc_hi_operand predicate.
125 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
127 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
128 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
131 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
133 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
135 2002-07-18 Richard Henderson <rth@redhat.com>
138 * ifcvt.c (noce_get_condition): Make certain that the condition
141 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
143 * sh.c (barrier_align, push): Shut up compiler warnings.
144 (initial_elimination_offset,sh_media_init_builtins): Likewise.
145 (reg_no_subreg_operand): Delete.
147 2002-07-17 Bo Thorsen <bo@suse.de>
149 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
150 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
151 (STARTFILE_SPEC): Remove hardcoded library paths.
152 (ENDFILE_SPEC): Likewise.
154 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
156 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
158 * gcse.c (try_replace_reg): Do not return false positives.
160 2002-07-18 Alan Modra <amodra@bigpond.net.au>
162 * prefix.c: (update_path): Strip ".." components when prior dir
163 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
165 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
166 (ASM_OUTPUT_REG_POP): Likewise.
168 2002-07-18 Alan Modra <amodra@bigpond.net.au>
170 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
171 adjustments to first_reg for profiling case.
172 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
173 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
174 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
175 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
176 (ASM_OUTPUT_REG_POP): Define.
177 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
178 (ASM_OUTPUT_REG_POP): Undef.
180 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
182 * cpplib.c (do_sccs): Handle #sccs on all systems.
183 * system.h (SCCS_DIRECTIVE): Poison.
184 * config/darwin.h, config/freebsd.h, config/netbsd.h,
185 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
186 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
187 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
188 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
189 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
190 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
191 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
192 Remove all references to SCCS_DIRECTIVE.
193 * doc/cpp.texi, doc/tm.texi: Update.
195 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
197 * regrename.c (maybe_mode_change): New function.
198 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
200 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
202 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
203 suppress addition when either ct or cf are zero.
205 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
206 Glen Nakamura <glen@imodulo.com>
209 * loop.c (loop_givs_rescan): Explicitly delete the insn that
210 sets a non-replaceable giv after issuing the new one.
212 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
214 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
215 eval_token): Clarify and correct use of "bool" variables.
216 * cpplib.h (struct cpp_options): Similarly.
217 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
218 * cpptrad.c (recursive_macro): Similarly.
220 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
222 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
225 * sh.md (cmpgtudi_media): Remove spurious @.
227 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
228 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
230 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
231 * sh-protos.h (sh_initialize_trampoline): Declare.
232 * sh.c (sh_initialize_trampoline): New function.
233 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
234 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
235 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
236 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
237 * sh.md (initialize_trampoline, double_shori): New patterns.
238 (initialize_trampoline_compact): Likewise.
239 (shmedia32_initialize_trampoline_big): Remove.
240 (shmedia32_initialize_trampoline_little): Likewise.
242 * sh-protos.h (binary_float_operator): Remove declaration.
243 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
244 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
245 (unary_float_operator, sh_expand_unop_v2sf): New functions.
246 (sh_expand_binop_v2sf): Likewise.
247 (zero_vec_operand): Delete.
248 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
250 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
251 Enable nsb and byterev.
252 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
253 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
255 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
256 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
258 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
260 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
261 lowpart fp regs - only for big endian for now.
262 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
264 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
265 (LOAD_EXTEND_OP): NIL for SImode.
266 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
267 general and fp registers is 4.
268 PREDICATE_CODES: Amend binary_float_operator entry.
269 Remove zero_vec_operand. Add unary_float_operator.
270 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
272 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
273 (truncdiqi2): Do sign extension.
274 (movsi_media, movdi_media): Allow to use r63 to an fp register.
275 (movdf_media, movsf_media): Likewise.
276 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
277 Collapse to one define_insn_and_split. Allow immediate sources.
278 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
279 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
280 (movv4sf): Allow immediate sources.
281 (movsf_media_nofpu+1): Don't split moves to FP registers.
282 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
283 (movv8qi_i+3): Check against CONST0_RTX.
284 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
285 for input and output operands. Fix argument 3 to gen_mextr_rl.
286 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
287 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
288 (mshf0_w, fipr, ftrv): Likewise.
289 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
291 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
293 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
294 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
297 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
299 * config/mips/mips-protos.h (mips_sign_extend): Declare.
300 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
301 (TARGET_SWITCHES): Remove debugh.
302 (ISA_HAS_TRUNC_W): New macro.
303 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
304 (PREDICATE_CODES): Remove se_nonimmediate_operand.
305 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
306 any SImode move_operand.
307 (se_nonimmediate_operand): Remove.
308 (mips_sign_extend): New.
309 (mips_move_2words): Use it for sign-extended source operands.
310 (override_options): Allow integers to be put into single FPRs.
311 (mips_secondary_reload_class): Handle integers in float registers.
312 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
313 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
314 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
315 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
316 (fix_truncdfdi2): Provide only a single alternative, in which the
317 integer is in a float register. Depend on TARGET_FLOAT64 rather
319 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
320 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
321 (movdi_internal2): Don't allow the source operand to be sign-extended.
322 Add alternatives for float registers.
323 (*movdi_internal2_extend): New. Version of movdi_internal2 that
324 allows sign-extension.
325 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
326 (movsi_internal2): Rename to movsi_internal. Add alternatives for
327 float registers. Remove TARGET_DEBUG_H_MODE test.
328 (movhi_internal1): Rename to movhi_internal. Don't check
329 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
330 (movqi_internal1): Rename to movqi_internal and remove
331 TARGET_DEBUG_H_MODE dependency.
332 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
334 2002-07-16 Jim Wilson <wilson@redhat.com>
336 * toplev.c (lang_dependent_init): Create function context for
339 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
341 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
343 * config/cris/cris.h: Ditto.
345 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
347 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
348 the comparison directly gives a mask suppress addition when cf is
349 zero by complementing the mask.
351 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
353 * Makefile.in: Delete references to enquire.
354 * enquire.c: Move to contrib.
356 2002-07-16 Stan Shebs <shebs@apple.com>
358 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
359 config/rs6000/darwin.h.
360 (ASM_OUTPUT_SKIP): Ditto.
361 (TEXT_SECTION_ASM_OP): Ditto.
362 (DATA_SECTION_ASM_OP): Ditto.
363 (ASM_APP_ON): Define.
364 (ASM_APP_OFF): Define.
365 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
366 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
368 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
369 (machopic_function_base_name): Declare result to be const.
370 (machopic_non_lazy_ptr_name): Ditto.
371 (machopic_stub_name): Ditto.
372 * config/darwin-protos.h: Ditto for the prototypes.
374 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
376 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
378 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
380 * i386.md (prefetch): Fix for 64bit mode.
381 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
383 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
385 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
386 * i386.c (x86_machine_dependent_reorg): New function.
387 * i386-protos.h (x86_machine_dependent_reorg): Declare.
389 2002-07-16 Zack Weinberg <zack@codesourcery.com>
391 * builtins.c (std_expand_builtin_va_start): Remove unused
393 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
394 std_expand_builtin_va_start with just two arguments.
395 * expr.h: Update prototypes.
397 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
398 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
399 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
400 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
401 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
402 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
403 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
404 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
405 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
406 argument from all implementations of EXPAND_BUILTIN_VA_START
407 and all uses of std_expand_builtin_va_start.
409 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
411 * regrename.c (copy_value): Don't record high part copies.
413 2002-07-16 Steve Ellcey <sje@cup.hp.com>
415 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
416 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
417 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
419 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
421 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
423 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
424 into addsi3 using register class "x" and "y".
426 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
427 "earlyclobber" constraint modifier for some alternative.
429 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
430 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
432 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
434 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
435 (TARGET_SWITCHES): Add -mieee-compare option.
436 (OVERRIDE_OPTIONS): 32332 is a subset of
437 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
438 (TARGET_SWITCHES): Fix description of bitfield option.
439 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
440 -mieee-compare option. Remove 32332 flag.
442 2002-07-16 Steve Ellcey <sje@cup.hp.com>
444 * explow.c (convert_memory_address): Remove special handling
445 when POINTERS_EXTEND_UNSIGNED < 0.
446 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
447 (movedi_symbolic): Fix typo.
448 (load_fptr): Remove mode restriction so it works for SI and DI.
449 (load_fptr_internal1): Ditto.
451 (load_symptr_internal1): Ditto.
453 * config/ia64.c (call_operand): Modify mode check.
454 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
455 (ia64_expand_move): Ditto.
456 (ia64_assemble_integer): Handle SImode function pointers.
457 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
458 (ia64_expand_op_and_fetch): Ditto.
459 (ia64_expand_compare_and_swap): Ditto.
460 (ia64_expand_lock_test_and_set): Ditto.
461 (ia64_expand_lock_release): Ditto.
463 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
465 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
467 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
468 Richard Earnshaw <rearnsha@arm.com>
470 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
471 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
473 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
475 * arm.md (stack_tie): New insn. Use an idiom that the alias code
476 understands to be a memory clobber.
477 * arm.c (arm_expand_prologue): Use it.
479 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
481 * ra-rewrite.c: #include reload.h, insn-config.h
482 * ra-build.c: #include reload.h
483 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
484 depend on reload.h, insn-config.h.
486 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
488 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
489 the same size as a word.
491 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
492 BYTES_BIG_ENDIAN into account.
494 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
496 * i386.md (prefetch): Fix for 64bit mode.
497 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
499 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
501 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
503 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
505 2002-07-15 Zack Weinberg <zack@codesourcery.com>
507 * ginclude/varargs.h: Replace with stub which issues #error.
508 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
511 * builtins.def (BUILT_IN_VARARGS_START): Delete.
512 (BUILT_IN_VA_START): New.
513 * builtins.c (expand_builtin_va_start): Eliminate first
514 argument and code to implement pre-ISO varargs.
515 (std_expand_builtin_va_start): Ignore first argument; it is
517 (expand_builtin): Handle BUILT_IN_VA_START and
518 BUILT_IN_STDARG_START identically. Delete
519 BUILT_IN_VARARGS_START case.
521 * function.c (assign_parms): Delete hide_last_arg and all
523 (mark_varargs): Delete function.
524 * function.h (struct function): Delete 'varargs' bit.
525 (current_function_varargs): Delete macro.
526 * tree.h: Don't declare mark_varargs.
528 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
529 (c_expand_body): Don't call mark_varargs.
530 * c-objc-common.c: Handle BUILT_IN_VA_START and
531 BUILT_IN_STDARG_START identically. Delete
532 BUILT_IN_VARARGS_START case.
533 * c-tree.h: Don't declare c_mark_varargs.
534 * c-parse.in: Remove grammar rules for '&...' (which has been
535 commented out since before 2.7.2) and for '...' in K+R
536 argument declarations.
538 * builtins.c, function.c, integrate.c, sibcall.c,
539 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
540 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
541 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
542 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
543 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
544 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
545 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
546 config/stormy16/stormy16.c: Delete all references to
547 current_function_varargs, and code predicated on that flag.
549 * config/alpha/alpha.c (alpha_va_start),
550 config/arc/arc.c (arc_va_start),
551 config/i386/i386.c (ix86_va_start),
552 config/mips/mips.c (mips_va_start),
553 config/mn10300/mn10300.c (mn10300_va_start),
554 config/rs6000/rs6000.c (rs6000_va_start),
555 config/s390/s390.c (s390_va_start),
556 config/sh/sh.c (sh_va_start),
557 Ignore first argument; it is always 1.
559 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
560 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
561 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
562 Delete m68hc11_va_start.
563 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
564 No need to define EXPAND_BUILTIN_VA_START.
566 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
567 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
569 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
572 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
573 dies in more than one insn.
575 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
577 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
579 2002-07-15 Michael Matz <matz@suse.de>,
580 Daniel Berlin <dberlin@dberlin.org>,
581 Denis Chertykov <denisc@overta.ru>
583 Add a new register allocator.
587 * ra-build.c: New file.
588 * ra-colorize.c: New file.
589 * ra-debug.c: New file.
590 * ra-rewrite.c: New file.
592 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
593 (ra-rewrite.o): New .o files for libbackend.a.
594 (GTFILES): Add basic-block.h.
596 * toplev.c (flag_new_regalloc): New.
597 (f_options): New option "new-ra".
598 (rest_of_compilation): Call initialize_uninitialized_subregs()
599 only for the old allocator. If flag_new_regalloc is set, call
600 new allocator, instead of local_alloc(), global_alloc() and
603 * doc/invoke.texi: Document -fnew-ra.
604 * basic-block.h (FOR_ALL_BB): New.
605 * config/rs6000/rs6000.c (print_operand): Write small constants
608 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
609 (df_reg_table_realloc): Make size at least as large as max_reg_num().
610 (df_insn_table_realloc): Size argument now is absolute, not relative.
613 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
614 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
616 2002-06-20 Michael Matz <matz@suse.de>
618 * df.h (struct ref.id): Make unsigned.
619 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
621 2002-06-13 Michael Matz <matz@suse.de>
623 * df.h (DF_REF_MODE_CHANGE): New flag.
624 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
625 involving subregs with invalid mode changes, when
626 CLASS_CANNOT_CHANGE_MODE is defined.
628 2002-05-07 Michael Matz <matz@suse.de>
630 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
632 2002-05-03 Michael Matz <matz@suse.de>
634 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
636 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
638 * regclass.c (regclass): Work with all regs which have sets or
640 (reg_scan_mark_refs): Count regs inside (clobber ...).
642 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
644 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
645 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
647 (df_bb_refs_update): Don't clear insns_modified here, ...
648 (df_analyse): ... but here.
650 * sbitmap.c (dump_sbitmap_file): New.
651 (debug_sbitmap): Use it.
653 * sbitmap.h (dump_sbitmap_file): Add prototype.
655 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
657 * df.c (df_insn_modify): Grow the UID table if necessary, rather
658 than assume all emits go through df_insns_modify.
660 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
662 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
663 increase REG_N_REFS (like flow does), so that regclass doesn't
664 think a reg is useless, and thus, not calculate a class, when it
667 2001-01-28 Daniel Berlin <dberlin@redhat.com>
669 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
672 2002-07-15 Jakub Jelinek <jakub@redhat.com>
675 * config/i386/i386.c (const_int_1_31_operand): New.
676 * config/i386/i386.h (PREDICATE_CODES): Add it.
677 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
678 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
679 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
681 2002-07-14 Alan Modra <amodra@bigpond.net.au>
684 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
685 (floatunssidf2): Likewise.
686 (floatsidf_ppc64): New insn_and_split.
687 (floatunssidf_ppc64): Likewise.
689 2002-07-14 Andreas Jaeger <aj@suse.de>
691 * config.gcc (sh64): Remove unused
692 target_requires_64bit_host_wide_int.
694 2002-07-12 Roger Sayle <roger@eyesopen.com>
696 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
697 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
698 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
699 whether clear_by_pieces should be used to clear storage.
700 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
702 * doc/tm.texi: Document these two new target macros.
704 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
706 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
707 the scratch register.
708 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
709 of it, forbid reload to use it.
711 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
713 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
714 usage on 64-bit hosts, return value was truncated to 32 bits.
716 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
718 * simplify-rtx.c (simplify_subreg): Handle floating point
719 CONST_DOUBLEs. When an integer subreg of a smaller mode than
720 the element mode is requested, compute a subreg with an
721 integer mode of the same size as the element mode first.
723 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
725 * combine.c (try_combine): When converting a paradoxical subreg
726 to an extension, take LOAD_EXTEND_OP into account.
728 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
730 * config.gcc (mips-sgi-irix6*o32): New configuration.
732 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
734 * configure: Regenerate.
736 * config/mips/iris6-o32-as.h: New file.
737 * config/mips/iris6-o32.h: New file.
739 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
741 (HAVE_AS_SHF_MERGE): Undefine.
743 * config/mips/t-iris5-as: New file.
744 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
746 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
747 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
748 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
749 dp-bit.c, fp-bit.c): Move ...
750 * config/mips/t-iris5-6: ... here.
751 New file, shared by IRIX 5 and IRIX 6.
752 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
753 mips-sgi-irix5*): Use it.
755 * config/mips/iris6.h: Remove duplicate comment.
757 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
758 !TARGET_IRIX6]: Define.
759 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
761 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
763 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
765 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
766 and delete code to force constant to register.
767 * pa-protos.h (adddi3_operand): Add prototype.
768 * pa.c (adddi3_operand): New function.
770 2002-07-11 Roger Sayle <roger@eyesopen.com>
772 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
773 non-ANSI builtin functions.
775 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
777 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
778 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
779 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
780 (gen_const_vector_0): Use it.
782 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
784 * pa.md (adddi3): For 32-bit targets, force constants to a register
785 if they don't fit in an 11-bit immediate. Change insn predicate to
786 arith11_operand. Remove comment.
787 * pa.c (cint_ok_for_move): Fix comment.
788 (emit_move_sequence): Don't directly split DImode constants on 32-bit
791 2002-07-11 Tim Josling <tej@melbpc.org.au>
793 Remove front end hard coding from gengtype.c.
796 (STAGESTUFF): add gtyp-gen.h
797 (GTFILES): Remove front end specific files.
798 (GTFILES_FILES_LANGS): New, from configure..
799 (GTFILES_FILES_FILES): Likewise.
800 (GTFILES_LANG_DIR_NAMES): Likewise.
801 (GTFILES_SRCDIR): Likewise.
802 (gtyp-gen.h): Build from configure information.
803 (s-gtype): Remove command line parameters from gengtype.
804 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
805 (mostlyclean): Delete files generated by and for gengtype.
807 * c-config-lang.in: New file.
809 * configure.in (all_gtfiles_files_langs): New. Accumulate files
811 (all_gtfiles_files_files): New. Accumulate language for each file
813 (gtfiles): Pick up value for C.
814 (srcdir): AC-SUBST this variable.
815 (all_gtfiles_files_langs): AC-SUBST this variable.
816 (all_gtfiles_files_files): AC-SUBST this variable.
818 * configure: Regenerate.
820 * gengtype-lex.l (parse_file): Make parameter const.
822 * gengtype.c (toplevel): include gtyp-gen.h.
823 (BASE_FILE_<language> unnamed enum): Delete.
824 (lang_names): Delete (replaced by gtyp-gen.h)
825 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
828 (NUM_LANG_FILES): New.
830 (NUM_BASE_FILES): Change calculation.
831 (open_base_files): Change prototype to avoid warning.
832 (startswith): Delete.
833 (get_file_basename): Iterate through generated language list not
835 (get_base_file_bitmap): Use generated list of files and languages.
836 (close_output_files): Add prototype to rmove warning.
837 (main): Iterate through list of generated files from gtyp-gen.h
838 rather than command line paramaters. Ignore duplicated file
841 * gengtype.h (parse_file): Amend prototype for const parameter.
843 * doc/sourcebuild.texi: Document gtfiles variable.
845 * doc/gty.texi: Document changes to gtfiles variable for front
848 * objc/config-lang.in (gtfiles): Add files needed for objc front
851 2002-07-10 Roger Sayle <roger@eyesopen.com>
854 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
855 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
857 2002-07-10 Roger Sayle <roger@eyesopen.com>
858 Zack Weinberg <zack@codesourcery.com>
860 * builtins.def: Make the argument types of abort and exit
861 independent of the front-end.
863 2002-07-11 Alan Modra <amodra@bigpond.net.au>
865 * config/rs6000/linux64.h (ASM_SPEC): Define.
867 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
869 * config/rs6000/rs6000.c (emit_frame_save): New.
870 (rs6000_frame_related): Replace reg2 before reg.
871 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
872 and eh_return registers.
874 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
876 Revert all patches for optimization of Complex .op. Real.
877 * complex_part_zero_p: Remove
878 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
880 * expand_cmplxdiv_wide: Ditto.
881 * expand_binop: Ditto.
883 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
885 * config/avr/avr.md: Fix two 0x80000000 constants to make them
886 negative also on 64-bit hosts.
888 Default to -fno-reorder-blocks when optimizing for size.
889 * config/avr/avr-protos.h (avr_optimization_options): Declare.
890 * config/avr/avr.c (avr_optimization_options): New function.
891 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
893 Optimize returning from simple functions.
894 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
895 * config/avr/avr.c (avr_simple_epilogue): New function.
896 * config/avr/avr.md (return): New insn.
898 2002-07-10 Douglas B Rupp <rupp@gnat.com>
900 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
901 HAS_INIT_SECTION to protection.
903 2002-07-10 Mark Mitchell <mark@codesourcery.com>
905 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
908 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
910 * combine.c (gen_lowpart_for_combine): Handle vector modes.
911 Supply non-VOID mode to simplify_gen_subreg.
913 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
915 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
917 2002-07-10 Jeffrey A Law <law@redhat.com>
919 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
922 * mn10200.c (expand_epilogue): Fix test to determine which scratch
925 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
927 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
929 If simplify_gen_subreg fails, try next equivalent.
931 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
933 * diagnostic.h: #include location.h
934 (location_t): Move definition to..
935 * location.h: ... here. New file.
936 * tree.h: #include location.h
937 (DECL_SOURCE_LOCATION): New macro.
938 (DECL_SOURCE_FILE): Use.
939 (DECL_SOURCE_LINE): Likewise.
940 (struct tree_decl): REplace filename and linenum with locus.
941 * Makefile.in (TREE_H): add location.h
942 (diagnostic.o): Depends on gt-location.h
943 (gt-location.h): Depends on s-gtype
945 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
947 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
948 TARGET_OS_CPP_BUILTINS.
949 * config/rs6000/aix31.h: Likewise.
950 * config/rs6000/aix41.h: Likewise.
951 * config/rs6000/aix43.h: Likewise.
952 * config/rs6000/aix51.h: Likewise.
953 * config/rs6000/beos.h: Likewise.
954 * config/rs6000/darwin.h: Likewise.
955 * config/rs6000/eabi.h: Likewise.
956 * config/rs6000/eabisim.h: Likewise.
957 * config/rs6000/linux.h: Likewise.
958 * config/rs6000/linux64.h: Likewise.
959 * config/rs6000/lynx.h: Likewise.
960 * config/rs6000/mach.h: Likewise.
961 * config/rs6000/rtems.h: Likewise.
962 * config/rs6000/sysv4.h: Likewise.
963 * config/rs6000/vxppc.h: Likewise.
965 2002-07-09 Devang Patel <dpatel@apple.com>
966 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
967 Do not allow ObjC objects as a parameter type for Objective-C methods.
968 My previous patch restricted 'struct' also.
970 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
972 * cpperror.c (cpp_error): Default to directive_line within
974 * cppexp.c (cpp_interpret_integer): Only use traditional
975 number semantics in directives.
976 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
977 (do_include_common): Similarly.
978 * cpptrad.c (scan_out_logical_line): Implement accurate
979 quoting of <> in #include.
980 * doc/cpp.texi: Update.
982 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
983 J"orn Rennecke <joern.rennecke@superh.com>
985 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
986 * sh.md (attribute issues): Replace with:
987 (attribute pipe_model). All users changed.
988 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
990 (function units sh5issue, sh5fds): New.
991 (attribute is_mac_media): New.
992 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
993 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
994 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
995 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
996 (call_media, call_value_media, sibcall_media): Likewise.
997 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
998 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
999 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
1000 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
1001 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
1002 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
1003 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
1004 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
1005 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
1006 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
1007 (truncdfsf2_media): Likewise.
1008 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
1009 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
1011 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
1013 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
1014 * sh.c (general_extend_operand, inqhi_operand): New functions.
1015 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
1016 alternatives using 'N' modifier. Add type.
1017 (adddi3z_media): Likewise. Enable generator function generation.
1018 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
1019 exact predicates / constraints. Add type.
1020 (subsi3): Allow 0 for SHMEDIA.
1021 (udivsi3_i4_media): Use match_operand for input values
1022 rather than hard registers.
1023 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1024 unnecessarily through hard registers. Keep copies of pseudo
1025 registers outside of the libcall sequence.
1026 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
1027 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
1028 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
1029 (extendhidi2, extendqidi2): Likewise.
1030 (andsi3_compact): Name.
1031 (andcdi3): Enable generator function generation.
1032 (zero_extendhisi2, zero_extendqisi2): Rename to
1033 (zero_extendhisi2_compact, zero_extendqisi2_compact).
1034 (extendhisi2, extendqisi2): Rename to
1035 (extendhisi2_compact, extendqisi2_compact).
1036 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
1037 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
1038 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
1039 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
1040 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
1041 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
1042 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
1043 (shmedia32_initialize_trampoline_big): Likewise.
1044 (shmedia32_initialize_trampoline_little): Likewise.
1045 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
1046 (negdi2): Remove spurious T clobber.
1047 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
1048 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
1049 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
1050 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
1051 (ic_invalidate_line_media): Write back data cache before invalidating
1052 instruction cache. Add type.
1053 (movsf_media): Sign-extend when the destination is a general
1054 purpose register. Add type.
1055 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
1056 (casesi_worker_0+1): Only increment ref count for proper label.
1057 (casesi_worker_0+2): Likewise.
1059 2002-07-09 Mark Mitchell <mark@codesourcery.com>
1061 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
1063 2002-07-09 Steve Ellcey <sje@cup.hp.com>
1065 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
1066 from Pmode to ptr_mode.
1067 (get_exception_pointer): Ditto.
1068 (connect_post_landing_pads): Ditto.
1069 (dw2_build_landing_pads): Ditto.
1071 2002-07-08 Steve Ellcey <sje@cup.hp.com>
1072 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
1073 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
1074 (handle_pragma_redefine_extname): Change to use new function.
1076 2002-07-08 Roger Sayle <roger@eyesopen.com>
1078 * combine.c (combine_simplify_rtx): Add an explicit cast
1079 to avoid signed/unsigned comparison warning.
1080 (simplify_if_then_else): Likewise.
1081 (extended_count): Likewise.
1082 (simplify_shift_const): Likewise.
1083 (simplify_comparison): Likewise.
1085 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
1087 * config/mips/mips.md: Add imadd type. Update scheduler description
1088 to use imadd as well as imul.
1089 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
1090 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
1091 (*mul_sub_si): Likewise for first alternative. Change second
1092 alternative from imul to multi.
1094 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
1096 * c-common.c (c_common_post_options): Update prototype;
1097 don't init backends if preprocessing only.
1098 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
1099 * langhooks.h (struct lang_hooks): Update post_options to
1101 * toplev.c (parse_options_and_default_flags, do_compile,
1102 lang_independent_init): Update prototypes. Allow the
1103 front end to specify that there is no need to initialize
1105 (general_init): Move call to hex_init here...
1106 (toplev_main): ...from here. Pass flag for back end init
1109 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1111 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
1112 (PREDICATE_CODES): Add entries for equality_comparison_operator,
1113 greater_comparison_operator and less_comparison_operator.
1114 * sh.c (print_operand): Add '\'' code. Make 'o' handle
1116 (equality_comparison_operator): New function.
1117 (greater_comparison_operator, less_comparison_operator): Likewise.
1118 * sh.md (beq_media_i): Disable generator function generation.
1119 Use match_operator to handle a whole class of comparisons. Add
1120 modifier in output template to provide branch prediction. Add type.
1121 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
1122 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
1123 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
1124 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
1126 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
1128 Emit MMIX function prologue and epilogue as rtl.
1129 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
1130 not unprototyped get_hard_reg_initial_val.
1131 ("call_value", "nonlocal_goto_receiver"): Ditto.
1132 ("return"): Make define_expand. Move real insn to...
1133 ("*expanded_return"): New pattern.
1134 ("prologue", "epilogue"): New define_expands.
1135 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
1136 (struct machine_function): New member in_prologue.
1137 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
1138 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
1139 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
1140 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
1141 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
1142 (LOCAL_REGNO): Define. Adjust comment.
1143 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
1144 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
1146 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
1148 (mmix_target_asm_function_prologue): Make static. Just mark that
1149 the prologue is being emitted. Move guts to...
1150 (mmix_expand_prologue): New function. Adjust for emitting
1151 prologue as rtl. For sizes, use HOST_WIDE_INT only.
1152 (mmix_target_asm_function_epilogue): Make static. Simply emit a
1154 (mmix_expand_epilogue): New function. Adjust for emitting
1155 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
1156 (mmix_target_asm_function_end_prologue): Mark that the prologue
1158 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1159 (mmix_conditional_register_usage): Improve comments.
1160 (mmix_local_regno): New function.
1161 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
1162 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
1163 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
1164 (mmix_get_hard_reg_initial_val): Ditto.
1166 2002-07-06 Andreas Jaeger <aj@suse.de>
1168 * toplev.c (set_fast_math_flags): Don't use ISO C style function
1170 * gengtype.c (open_base_files): Likewise.
1171 (close_output_files): Likewise.
1172 * tracer.c (find_best_predecessor): Likewise.
1173 (find_best_successor): Likewise.
1174 (ignore_bb_p): Likewise.
1176 2002-07-05 Roger Sayle <roger@eyesopen.com>
1179 * builtin-attrs.def: Define new attribute lists for use in
1181 * builtins.def [DEF_BUILTIN]: Modify to take an additional
1182 ATTRS argument, an enumerated value defined in builtin-attrs.def
1183 that represents the attribute list for the builtins. Modify
1184 all builtin functions to pass an appropriate attribute list.
1185 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
1186 their required noreturn attributes.
1187 * tree.h (enum_builtin_function): Ignore the additional parameter
1189 * builtins.c (built_in_names): Likewise.
1190 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
1191 argument with a tree representing the functions attribute list.
1192 Pass this "attrs" argument to builtin_function. No longer handle
1193 the noreturn_p processing manually.
1194 (built_in_attributes): Move the definitions from builtin-attrs.def
1195 before c_common_nodes_and_builtins.
1196 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
1197 DEF_BUILTIN, passing it to both builtin_function and the changed
1200 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
1201 __builtin__exit and __builtin__Exit.
1203 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1205 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1206 QI mode registers in soft registers.
1207 ("zero_extendqihi2"): Do not take into account soft registers
1208 for register allocation (use '*' constraint).
1210 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1212 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1214 ("*ashrsi3"): Likewise.
1215 ("*lshrsi3"): Likewise.
1217 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
1219 * genautomata.c (output_max_insn_queue_index_def): Take latencies
1222 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1224 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1225 address computation and memory moves.
1227 2002-07-03 Mark Mitchell <mark@codesourcery.com>
1230 * dwarfout.c (output_reg_number): Fix warning message.
1231 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1234 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1236 * gcc/gcc.c (asm_debug): Move initialization ...
1237 (init_spec): ... here.
1239 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
1241 * c-parse.in (extdef): Append ';'.
1242 (old_style_parm_decls): Append ';'.
1244 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1246 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1247 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1248 to gcc_cv_as_gstabs_flag.
1249 * configure: Rebuilt.
1251 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
1253 * ggc.h (ggc_add_root): Document as obsolete.
1255 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
1257 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1258 (mshflo_w): Likewise.
1260 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1262 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1263 vector mode subregs of constants to finding integer mode
1264 subregs of constants.
1265 * cse.c (cse_insn): Use simplify_gen_subreg.
1266 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1267 From a vector mode expression of different size than the
1270 2002-07-03 Eric Christopher <echristo@redhat.com>
1272 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1273 * config/mips/mips.h: Remove deprecated -m<processor> options
1274 and cc1_cpu_spec associated.
1275 (CONSTANT_ADDRESS_P): Fix last patch.
1276 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1277 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1280 2002-07-03 Stan Shebs <shebs@apple.com>
1282 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1283 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1284 (CPP_SPEC): Remove insertion of APPLE_CC definition.
1286 2002-07-03 Roger Sayle <roger@eyesopen.com>
1288 * combine.c (struct_undo): Change types of recorded substitutions
1289 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1290 (do_SUBST_INT): Change types of the substitution from unsigned int
1291 to int, to avoid compilation warning from SUBST_INT's only caller.
1293 (make_extraction): Add cast to avoid compilation warning.
1294 (force_to_mode): Remove cast to avoid compilation warning.
1296 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
1297 Jeff Law <law@redhat.com>
1299 * i386.md (length_immediate attribute): Fix typo.
1300 (length_address attribute): Likewise.
1301 (modrm attribute): Set it to 0 for immediate call instructions.
1302 (jcc_1 pattern): Set modrm attribute to 0.
1303 (jcc_2 pattern ): Likewise.
1304 (jump pattern): Likewise.
1305 (doloop_end_internal pattern): Explicitly set length.
1306 (leave pattern): Fix typo.
1307 (leave_rex64 pattern): Likewise.
1309 2002-07-03 David Edelsohn <edelsohn@gnu.org>
1311 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1312 in FPR as preference.
1314 (floatdidf2, fix_truncdfdi2): Same.
1315 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1317 (floatsitf2, fix_trunctfsi2): SImode in GPR.
1318 (ctrdi): Remove FPR alternative and splitter.
1320 2002-07-03 Will Cohen <wcohen@redhat.com>
1322 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1324 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
1326 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1327 than UNITS_PER_WORD, unless this is little endian and the first unit
1328 in this word. Let extract_bit_field decide how to load an element.
1329 Force arguments to matching mode.
1330 (expand_vector_unop): Likewise.
1332 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1333 consist of word_mode elements.
1334 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1335 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1336 (build_unary_op): Allow vector types for BIT_NOT_EPR.
1337 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1339 * optabs.c (expand_vector_binop): Try to perform operation in
1340 smaller vector modes with same inner size. Add handling of AND, IOR
1341 and XOR. Reject expansion to inner-mode sized scalars when using
1342 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
1343 (expand_vector_unop): Try to perform operation in smaller vector
1344 modes with same inner size. Add handling of one's complement.
1345 When there is no vector negate operation, try a vector subtract
1346 operation. Use simplify_gen_subreg on constants.
1347 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1348 constants into smaller vectors with same inner mode, and to
1349 integer CONST_DOUBLEs.
1351 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1353 * c-parse.in (parsing_iso_function_signature): New variable.
1354 (extdef_1): New, copied from...
1355 (extdef): ... here. Reset parsing_iso_function_signature.
1356 (old_style_parm_decls): Reset parsing_iso_function_signature.
1357 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1358 Warn about ISO C style function definitions.
1359 (nested_function, notype_nested_function): Reset
1360 parsing_iso_function_signature.
1361 (parmlist_2): Set parsing_iso_function_signature.
1363 * doc/invoke.texi (-Wtraditional): Document new behavior.
1365 2002-07-02 Chris Demetriou <cgd@broadcom.com>
1367 * config.gcc (mips*el-*-*): Use tm_defines to set
1368 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1369 * config/mips/little.h: Remove.
1371 2002-07-02 Devang Patel <dpatel@apple.com>
1373 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
1374 object as parameter. Prevent something like 'NSObject' to be
1375 used as the type for a method argument.
1377 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
1379 * cpptrad.c: Update comment.
1381 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1383 * doc/cpp.texi: Update for traditional preprocessing changes.
1384 * goc/cppopts.texi: Similarly.
1386 2002-07-02 Ziemowit Laski <zlaski@apple.com>
1388 * c-parse.in (designator): Enable designated initializers if ObjC.
1389 (objcmessageexpr): Remove references to objc_receiver_context.
1390 * objc/objc-act.h (objc_receiver_context): Remove decl.
1391 * objc/objc-act.c (objc_receiver_context): Remove.
1392 (lookup_objc_ivar): Test objc_method_context instead of
1393 objc_receiver_context.
1395 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1397 * sh.c (print_operand, case 'N'): Allow zero vector.
1398 (arith_reg_or_0_operand): Likewise.
1399 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
1400 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
1401 IOR, XOR, PLUS and SET and take their respective constant
1402 ranges into account.
1403 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1404 * sh.md (subdi3, subdi3_media): Allow zero operand.
1405 (movv8qi_i+3): Only vector that is not split is the zero vector.
1406 Fix operand 3 to simplify_subreg.
1407 (movv2si_i): Split alternative 1.
1408 (mshfhi_l_di_rev+1): New splitter.
1410 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1412 PR preprocessor/7029
1413 * cppinit.c (cpp_handle_option): Suppress warnings with an
1414 implicit "-w" for "-M" and "-MM".
1415 * doc/cppopts.texi: Update.
1417 2002-07-01 Roger Sayle <roger@eyesopen.com>
1419 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1420 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
1423 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1425 * README.Portability: Fix typos.
1427 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
1430 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1431 of indirections for register inside sign-extended mem part.
1433 2002-07-01 Roger Sayle <roger@eyesopen.com>
1435 * tree.h: Modify builtin_function interface to take an extra
1436 argument ATTRS, which is a tree representing an attribute list.
1438 * c-decl.c (builtin_function): Accept additional parameter.
1439 * objc/objc-act.c (builtin_function): Likewise.
1440 * f/com.c (builtin_function): Likewise.
1441 * java/decl.c (builtin_function): Likewise.
1442 * ada/utils.c (builtin_function): Likewise.
1443 * cp/decl.c (builtin_function): Likewise.
1444 (builtin_function_1): Likewise.
1446 * c-common.c (c_common_nodes_and_builtins): Pass an additional
1447 NULL_TREE argument to builtin_function. (builtin_function_2):
1449 * cp/call.c (build_java_interface_fn_ref): Likewise.
1450 * objc/objc-act.c (synth_module_prologue): Likewise.
1451 * java/decl.c (java_init_decl_processing): Likewise.
1452 * f/com.c (ffe_com_init_0): Likewise.
1454 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1455 NULL_TREE argument to builtin_function.
1456 * config/arm/arm.c (def_builtin): Likewise.
1457 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1458 * config/i386/i386.c (def_builtin): Likewise.
1459 * config/ia64/ia64.c (def_builtin): Likewise.
1460 * config/rs6000/rs6000.c (def_builtin): Likewise.
1462 2002-07-01 Zack Weinberg <zack@codesourcery.com>
1464 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1465 * config/mips/t-isa3264: Likewise.
1466 * config/mmix/t-mmix: Likewise.
1468 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1470 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1472 2002-07-01 Roger Sayle <roger@eyesopen.com>
1475 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1476 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1479 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
1481 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1483 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
1485 * README.Portability (Function prototypes): Give an example of
1486 declaring and defining a function with no arguments.
1488 * README.Portability (Function prototypes): Document new
1489 variable-argument function macros.
1491 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
1493 * sh.c (langhooks.h): Include.
1494 (sh_init_builtins, sh_media_init_builtins): New functions.
1495 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1496 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1497 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1498 (builtin_description): New struct tag.
1499 (signature_args, bdesc): New arrays.
1500 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1501 (print_operand): Add 'N' modifier.
1502 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1503 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1504 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1505 (CONST_COSTS): Add special case for SHmedia AND.
1506 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1507 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1508 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1509 target_operand can also be const or unspec.
1510 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1511 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1512 (attribute type): Add new types.
1513 (anddi3): Add splitter.
1514 (movdi_const_16bit+1): Add code to handle vector constants and
1515 bitmasks efficiently.
1516 (shori_media): Have generator function made.
1517 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1518 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1519 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1520 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1521 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1522 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1523 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1524 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1525 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1526 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1527 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1528 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1529 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1530 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1531 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1532 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1533 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1534 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1535 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1538 (fpu_switch+1, fpu_switch+2): Remove constraint.
1540 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
1542 * tree.c (build_function_type_list): Update function comment.
1543 Rename first argument to return_type.
1545 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1547 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1548 tradcif.y and related files.
1550 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1552 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1554 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1556 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1558 2002-06-30 Devang Patel <dpatel@apple.com>
1560 * objc/objc-act.c (finish_file): Avoid finish_objc() if
1563 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
1564 Frank Ch. Eigler <fche@redhat.com>
1565 Matthew Green <mrg@redhat.com>
1566 Richard Henderson <rtl@redhat.com>
1567 Dave Hudson <dave.hudson@ubicom.com>
1568 Jeff Johnston <jjohnstn@redhat.com>
1569 Alan Lehotsky <apl@alum.mit.edu>
1570 Bernd Schmidt <bernds@redhat.com>
1571 Graham Stott <grahams@redhat.com>
1573 * doc/extend.texi: Add ip2k port to description of attribute
1575 * doc/install.texi (Specific): Add ip2k description.
1576 * doc/install-old.texi (Configurations): Add ip2k to possible
1578 * doc/md.texi: Document ip2k constraints.
1579 * config/ip2k/crt0.S: New file.
1580 * config/ip2k/ip2k-protos.h: New file.
1581 * config/ip2k/ip2k.c: New file.
1582 * config/ip2k/ip2k.h: New file.
1583 * config/ip2k/ip2k.md: New file.
1584 * config/ip2k/libgcc.S: New file.
1585 * config/ip2k/t-ip2k: New file.
1587 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
1589 * config/mmix/mmix.md ("return"): New pattern.
1590 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1591 (TARGET_USE_RETURN_INSN): New macros.
1592 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1593 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1594 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1595 (MMIX_POP_ARGUMENT): New macro.
1596 (mmix_target_asm_function_prologue): When no epilogue is executed,
1597 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
1598 (mmix_print_operand) <case '.'>: New case.
1599 (mmix_print_operand_punct_valid_p): Match '.'.
1600 (mmix_use_simple_return): New function.
1601 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1602 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1603 -msingle-exit, -mno-single-exit.
1604 (MMIX Options): Ditto.
1606 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
1608 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
1610 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1612 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1614 2002-06-30 Alan Modra <amodra@bigpond.net.au>
1616 * unroll.c (loop_iterations): Handle EQ loops.
1618 2002-06-29 David Edelsohn <edelsohn@gnu.org>
1620 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1621 constraint in define_expand, not splitter.
1624 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
1626 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1627 build_function_type_list instead of build_function_type.
1629 * config/ia64/ia64.c (ia64_init_builtins): Same.
1631 * config/alpha/alpha.c (alpha_init_builtins): Same.
1633 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
1635 * config/arm/arm.c (arm_init_builtins): Same.
1637 * tree.h: Add build_function_type_list prototype.
1639 * tree.c (build_function_type_list): New.
1641 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1643 * collect2.c (scan_prog_file): Fix typo in message.
1645 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
1647 * fold-cont.c: Remove unused CHARMASK.
1649 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
1651 PR preprocessor/7150
1652 * cppmain.c (scan_translation_unit_trad): Simplify.
1653 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
1655 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
1657 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
1658 Don't use CPP_PREDEFINES.
1659 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
1660 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
1661 * config/i386/djgpp.h, config/i386/i386-coff.h,
1662 config/i386/i386-interix.h, config/i386/i386-interix3.h,
1663 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
1664 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
1665 config/i386/uwin.h: Similarly.
1667 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1669 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
1670 flag_inline_trees to enable inlining.
1672 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
1674 * configure.in (gcc_gxx_include_dir): Change to match versioned
1675 C++ headers if --enable-version-specific-runtime-libs is used.
1676 * configure: Regenerate.
1678 2002-06-28 Jan Hubicka <jh@suse.cz>
1680 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
1682 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
1684 * combine.c (combine_simplify_rtx): Pass the mode of the
1685 shift count, not the shift operation when trying to simplify
1686 a shift on a SHIFT_COUNT_TRUNCATED target.
1688 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1690 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
1691 avoid the auto increment addressing modes.
1692 ("*subsi3"): Likewise.
1693 (split for add/sub on address): For 68HC12 push the value on
1694 the stack and do the operation with a pop.
1696 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
1698 * cpplib.c (_cpp_handle_directive): Move #define-specific
1699 code to the #define handler...
1700 (do_define): ...here.
1701 (lex_macro_node): No longer a need to check for comments here.
1703 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1705 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
1706 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1708 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
1709 do not reorder basic blocks at the end when optimizing for size.
1711 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1713 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
1714 (m68hc11_make_autoinc_notes): New function.
1715 (m68hc11_split_move): Be very cautious when spliting a move with
1716 auto increment/decrement modes because this may result in incompatible
1717 directions; add REG_INC notes to the resulting insn for CSE reg.
1719 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
1721 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
1722 can be a valid address.
1724 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
1726 * config/rs6000/rs6000.c: Remove unusued variables from last
1729 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1732 * config/rs6000/rs6000.c (rs6000_override_options): Move
1733 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1735 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1737 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
1738 lvx/stv/dst builtins...
1739 (altivec_expand_ld_builtin): ...to here.
1740 (altivec_expand_st_builtin): ...here.
1741 (altivec_expand_dst_builtin): ...and here (respectively).
1743 2002-06-28 Bob Wilson <bob.wilson@acm.org>
1745 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
1747 2001-06-08 Bernd Schmidt <bernds@redhat.com>
1749 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
1751 * recog.c (general_operand, register_operand): Disallow them.
1753 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
1755 PR preprocessor/7138
1756 * cpplib.c (_cpp_handle_directive): Do traditional
1757 preparation after setting state.angled_headers.
1758 * cpptrad.c (scan_out_logical_line): Fix potential
1761 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1763 * config/rs6000/rs6000.c (rs6000_override_options): Move
1764 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1766 2002-06-27 Bob Wilson <bob.wilson@acm.org>
1768 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
1769 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
1770 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
1772 2002-06-27 Roger Sayle <roger@eyesopen.com>
1774 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
1775 * config/stormy16/stormy16.h: Likewise.
1777 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
1780 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1782 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
1783 Hitachi entry. Make punctuation more consistent.
1785 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
1787 * doc/install.texi: Change ` bit' to `-bit'.
1788 * doc/md.texi: Change `-bits' to `-bit'.
1789 * doc/tm.texi: Change `-bits' to ` bits'.
1791 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
1793 * gcse.c (hoist_code): Rewrite to only get list of dominated
1794 blocks once per BB. Also fix reversed test (by removing need for
1797 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
1799 * cpphash.h (_cpp_set_trad_context): Remove.
1800 * cpplib.c (prepare_directive_trad): Do nothing for #define.
1801 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
1802 * cpptrad.c: Update comments.
1803 (_cpp_read_logical_line_trad): Let scan_logical_line handle
1804 updating the current context.
1805 (scan_logical_line): Update the current context.
1806 (_cpp_create_trad_definition): Similarly.
1807 (_cpp_set_trad_context): Remove.
1809 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
1811 PR preprocessor/7070
1812 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
1814 2002-06-26 Bob Wilson <bob.wilson@acm.org>
1816 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
1817 config/xtensa/xtensa.c (xtensa_return_addr): New function.
1818 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
1819 config/xtensa/xtensa.md (fix_return_addr): New pattern.
1821 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1823 * mips.c (coprocessor_operand, coprocessor2_operand,
1824 symbolic_operand): Move prototypes from here...
1825 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
1826 symbolic_operand): ...to here.
1828 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1830 * config/sh/crt1.asm: remove _stack label definition
1833 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1835 * varasm.c: Include real.h before output.h.
1837 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
1839 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
1840 check for TARGET_ALTIVEC.
1842 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
1844 * config.gcc (vax-*-vms*): Make obselete.
1846 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1848 * gcc.c (warn_std): Delete.
1850 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
1852 * doc/extend.texi: Fix formatting of last checkin.
1854 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1856 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
1857 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
1859 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
1861 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1862 discrepancies from motorola's documentation.
1864 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
1866 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
1867 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
1869 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
1870 produce a 32 bit result before normalization, then normalize with a
1871 left shift. Compute approximative error of 2nd reciprocal
1872 approximation in 2's complement. Fix mask generation from upper
1873 longword of second divide stage result.
1874 For large divisor, fix shift count used to truncate first stage
1875 divide result; make decision if to adjust upwards based on comparison
1876 of higher parts of normalized values.
1877 (udivdi): Likewise. Undo normalization of result for large divisor
1880 2002-06-25 David S. Miller <davem@redhat.com>
1882 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
1884 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
1886 * cpplib.c (do_include_common): Revert to correct line number
1888 * cpptrad.c (scan_out_logical_line): Treat null directive as
1889 white space. Invlidate MI optimization for non-whitespace
1890 text outside a directive.
1892 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1894 * Makefile.in (SHELL): Set to @SHELL@.
1895 * fixinc/Makefile.in (SHELL): Likewise.
1897 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
1898 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
1901 2002-06-24 Jeff Law <law@redhat.com>
1903 * flow.c (propagate_one_insn): When removing an insn
1904 with a REG_LIBCALL note but not the entire libcall sequence,
1905 delete the associated REG_RETVAL note.
1907 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
1909 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
1910 (udivsi3): Likewise. Rewrite SH1 implementation.
1911 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
1912 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
1913 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
1914 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
1915 (_moddi3): Likewise.
1917 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
1919 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
1920 arguments into account for stack_regs.
1922 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
1924 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
1927 2002-06-24 Art Haas <ahaas@neosoft.com>
1929 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
1930 * doc/tm.texi (Frame Layout): Likewise.
1932 2002-06-20 Steve Ellcey <sje@cup.hp.com>
1934 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
1935 Set float_format to i128.
1937 2002-06-24 David S. Miller <davem@redhat.com>
1939 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
1940 32-bit ABI libfuncs to NULL.
1942 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
1943 strings instead of quoted strings for code blocks.
1945 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
1946 optabs if op1 is const0_rtx.
1948 * Makefile.in (GTFILES): Add basic-block.h
1949 * basic-block.h (label_value_list, tail_recursion_label_list):
1952 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
1954 * cpptrad.c (scan_out_logical_line): Check recursing only when
1955 we know we have a macro invocation in the function-like case.
1956 Only call _cpp_handle_directive if we know we have a good
1957 directive, or we want to reject a bad directive.
1959 2002-06-24 Alan Modra <amodra@bigpond.net.au>
1961 * doloop.c (doloop_valid_p): Correct comment.
1962 (doloop_modify_runtime <abs_inc != 1>): Simplify.
1963 (doloop_modify_runtime <do-while>): Don't emit code when NE.
1965 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
1967 * config.gcc: Add support for ip2k.
1969 2002-06-23 Jan Hubicka <jh@suse.cz>
1970 Jeff Law <law@redhat.com>
1972 * function.h (struct emit_status): Clarify potential contents
1973 of regno_reg_rtx array.
1974 * integrate.c (copy_rtx_and_substitute): Update comments. Make
1975 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
1977 * reg-stack.c (convert_regs_exit): Push the registers to stack in
1980 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1983 * function.c (assign_stack_temp_for_type): Do not return
1984 the same MEM rtx for multiple uses of a stack slot.
1986 2002-06-22 David S. Miller <davem@redhat.com>
1988 PR target/6841 target/6770 target/6719
1989 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
1990 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
1991 GENERAL_OR_EXTRA_FP_REGS.
1993 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
1995 * cpptrad.c (struct fun_macro): Add line number.
1996 (scan_out_logical_line): Set it, and use it to report unterminated
1999 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2001 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
2002 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
2003 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
2004 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
2005 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
2006 REGEXP_ONEOF, check_name): Const-ify.
2008 2002-06-21 Matt Thomas <matt@3am-software.com>
2010 * config/vax/vax.c (vax_output_function_prologue): Use
2011 REGISTER_PREFIX. Fix some indentation.
2012 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
2013 (VAX_ISTREAM_SYNC): Define.
2014 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
2015 i-stream sync to the end.
2016 (REGISTER_PREFIX): Define as "".
2017 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
2019 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2021 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
2024 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2026 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
2027 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
2029 2002-06-21 Matt Thomas <matt@3am-software.com>
2031 * config/vax/netbsd.h: Adjust a comment.
2032 (TARGET_DEFAULT): Redefine as 0.
2034 2002-06-21 Richard Henderson <rth@redhat.com>
2036 * bb-reorder.c (make_reorder_chain_1): Search harder for the
2037 vax casesi fallthru edge.
2038 * cfglayout.c (cleanup_unconditional_jumps): Use
2039 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
2040 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
2041 block after ADDR_VEC.
2043 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2045 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2047 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
2049 * cpperror.c (cpp_error): For traditional CPP, default to
2050 diagnostics on pfile->line.
2051 * cpplib.c (prepare_directive_trad): Set line number for
2052 diagnostics for #define too.
2053 * cpptrad.c (skip_whitespace): Skip comments properly.
2054 (_cpp_expansions_different_trad): Initialize quote2.
2056 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
2058 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
2059 * config/mmix/mmix.h: Ditto.
2060 * config/mmix/mmix-protos.h: Ditto.
2061 * config/mmix/mmix.c: Ditto. Fix typo in comment.
2062 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
2063 comment. Comment extra CC modes.
2065 2002-06-20 Jan Hubicka <jh@suse.cz>
2067 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
2068 (scope_to_insns_finalize): Do not call set_block_levels; handle
2070 (choose_inner_scope): New.
2071 * rtl.h (choose_inner_scope): Declare.
2073 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
2075 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
2077 * pa.c (pa_asm_output_mi_thunk): Likewise.
2078 (n_deferred_plabels): Change type to size_t.
2079 (output_deferred_plabels, output_call): Use size_t instead of int.
2081 2002-06-20 Richard Henderson <rth@redhat.com>
2084 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
2085 pattern and adjust constraints for coldfire.
2087 2002-06-20 Richard Henderson <rth@redhat.com>
2089 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
2091 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2093 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
2095 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2097 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
2099 2002-06-20 Stan Shebs <shebs@apple.com>
2101 * dominance.c: Include errors.h instead of error.h.
2103 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
2105 * cppexp.c (cpp_interpret_integer): Don't force traditional
2106 numbers to be unsigned.
2107 * cpplib.c (prepare_directive_trad): Set line number for
2109 * cpptrad.c (scan_out_logical_line): Continue scanning out
2111 * gcc.c (trad_capable_cpp): Use cc1 always.
2113 2002-06-20 Jeffrey Law <law@redhat.com>
2115 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
2116 elimination in leaf functions by default yet.
2118 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
2120 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
2122 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2124 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
2126 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2127 Fixes PR other/6836.
2129 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
2130 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2132 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
2134 * basic-block.h: Do not include et-forest.h
2135 (dominance_info): Declare as struct dominance-info.
2136 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
2138 * dominance.c (struct dominance_info): Define.
2139 (BB_NODE, SET_BB_NODE): New macros.
2140 (bb_hash_func, bb_eq_func): Kill.
2141 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
2142 nearest_common_dominator, dominated_by_p, recount_dominator,
2143 add_to_dominance_info, delete_from_dominance_info): update for new
2145 (get_dominated_by, redirect_immediate_dominators): Rewrite using
2147 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
2148 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
2151 * et-forest.h: Update copyright; revamp all function to operate on
2153 (et_forest_value): Kill.
2154 (et_forest_enumerate_sons, et_forest_node_value): New.
2155 * et-forest.c: Update copyright.
2156 * et-forest.h: Update copyright; revamp all function to operate on
2158 (et_forest_value): Kill.
2159 (et_forest_enumerate_sons, et_forest_node_value): New.
2161 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2163 * basic-block.h: Inlude et-forest.h
2164 (basic_block_def): Kill dominator.
2165 (dominance_info): New type.
2166 (loops): Use dominace_info.
2167 (dominace handling functions): Take dominace_info as argument
2169 (create_preheader): Likewise.
2170 * cfg.c (entry_exit_blocks): Kill dominator.
2171 (dump_flow_info): Do not dump dominators.
2172 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
2174 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
2175 (flow_loops_pre_header_scan, make_forwarder_block,
2176 canonicale_loop_headers, flow_loops_find): Likewise.
2177 * dominance.c: Include error.h
2178 (idoms_to_doms): Kill.
2179 (bb_hash_func, bb_eq_func): New static functions.
2180 (debug_dominace_info): New global function.
2181 (calculate_dominance_info): Use new et forest structure.
2182 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
2183 get_dominated_by, redirect_immediate_dominators,
2184 nearest_common_dominator, dominated_by_p, verify_dominators,
2185 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
2186 delete_from_dominance_info): New global functions.
2187 * gcse.c (domnators): CHange to dominance_info.
2188 (alloc_hoist_mem): Do not alloc dominators
2189 (free_code_hoist_mem): Use free_dominance_info.
2190 (compute_code_hoist_data): Use dominance_info.
2191 (hoist_code): Likewise.
2192 * ifcvt.c (post_dominators): Likewise.
2193 (find_if_case_2, if_convert): Likewise.
2194 * predict.c (process_note_predictions, process_note_prediction,
2195 estimate-probability): Likewise.
2196 * sched-rgn.c (find_rgns, init_regions): Likewise.
2197 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
2198 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
2199 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
2200 find_evaluations, convert_to_ssa): Likewise.
2201 * ssa.h (compute_dominance_frontiers): Likewise.
2203 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2205 * Makefile.in (et-forest.c): Add.
2206 * et-forest.c: New file.
2207 * at-forest.h: New file.
2209 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2211 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
2212 array size calculation.
2213 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
2216 * diagnostic.c (diagnostic_kind_text): Const-ify.
2217 * gengtype.c (lang_names): Likewise.
2219 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
2221 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2223 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2225 * config/sol2.h: New file.
2226 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2227 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2228 (sparc-*-chorusos*): Likewise.
2229 (sparc-*-elf*): Likewise.
2230 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2231 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2232 (sparc-hal-solaris2*): Likewise.
2233 (sparc-*-solaris2*): Likewise.
2234 (sparclite-*-elf*): Likewise.
2235 (sparc86x-*-elf*): Likewise.
2236 (sparc64-*-elf*): Likewise.
2238 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2240 (ASM_SPEC): Override config/sol2.h version for now.
2241 Removed obsolete GAS_REJECTS_MINUS_S variant.
2242 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2243 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2244 (TARGET_OS_CPP_BUILTINS): Likewise.
2246 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2247 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2249 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2250 (ASM_CPU_SPEC): Define.
2251 (SUBTARGET_EXTRA_SPECS): Define.
2253 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2254 in config/sparc/sol2.h.
2255 (ASM_SPEC): Moved to config/sol2.h.
2256 (CPP_CPU_SPEC): Simplified.
2257 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2259 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2260 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2261 STARTFILE_ARCH64_SPEC.
2262 (STARTFILE_SPEC): Moved to config/sol2.h
2263 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2264 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2265 (LINK_ARCH64_SPEC): Simplified.
2266 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2267 (LINK_SPEC): Moved to config/sol2.h
2269 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2271 Use BITS_PER_WORD for size.
2272 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2273 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2274 (CPP_PREDEFINES): Removed OS-specific part handled by
2275 TARGET_OS_CPP_BUILTINS.
2276 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2277 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2278 (ASM_SPEC): Moved to config/sol2.h.
2279 (PREFERRED_DEBUGGING_TYPE): Likewise.
2280 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2281 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2282 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2283 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
2285 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2286 * config/i386/sol2gas.h: Removed.
2288 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2290 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2292 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
2294 * gcc.c-torture/execute/simd-1.c: New.
2296 * gcc.dg/simd-1.c: New.
2298 * doc/extend.texi (Vector Extensions): Document that we can
2299 specify simd types not specifically supported by the hardware.
2300 Document that simd types can be used as function arguments.
2301 Document that signness does make a difference in SIMD types.
2302 Misc cleanups and revisions to the vector extensions section.
2304 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2307 * expr.c (vector_mode_valid_p): New.
2309 * expr.h: Add vector_mode_valid_p.
2311 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2313 * c-common.c (type_for_mode): Always build vector nodes regardless
2314 of VECTOR_MODE_SUPPORTED_P.
2315 (handle_mode_attribute): Error if we can't emulate a nonexisting
2317 (handle_vector_size_attribute): Same.
2319 * optabs.c (expand_binop): Open-code vector operations.
2320 (expand_unop): Open-code vector unops.
2321 (expand_vector_binop): New.
2322 (expand_vector_unop): New.
2324 * c-typeck.c (build_binary_op): Allow vectors in binops.
2325 Allow vectors in conditional operatiors.
2326 (build_unary_op): Allow vectors in unary minus.
2328 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2331 2002-05-20 Richard Henderson <rth@redhat.com>
2333 * c-common.c (c_common_get_alias_set): Correctly handle characters.
2334 Rearrange order of expressions; don't handle vectors here.
2335 * alias.c (get_alias_set): Let vectors match their components.
2337 2002-06-19 Chris Demetriou <cgd@broadcom.com>
2339 * config/mips/mips.c (mips_emit_prefetch): Use hints which
2340 match desired locality.
2342 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2344 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2345 (h8300_insert_attributes): New.
2347 2002-06-19 Akim Demaille <akim@epita.fr>
2349 * c-parse.in (initelt: identifier ':' initval): Add an empty
2350 action to fix a type clash.
2351 (aliasdecl, classdef): Add the missing closing `;'.
2353 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2354 $$ = $1 type clashes.
2356 2002-06-19 Eric Christopher <echristo@redhat.com>
2358 * config/mips/mips.c (symbol_operand): New function.
2359 (mips_emit_prefetch): Ditto.
2360 * config/mips/mips-protos.h: Define.
2361 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2362 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2363 (LEGITIMIZE_ADDRESS): Ditto.
2364 * config/mips/mips.md (prefetch, prefetch_si_address,
2365 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2367 2002-06-19 Eric Christopher <echristo@redhat.com>
2369 * config/fp-bit.h: Add unordered defines for gofast.
2371 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
2373 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2374 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2375 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2376 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2377 checking and without it.
2378 (decl_name, decl_mode_check_failed, regexp_name,
2379 regexp_mode_check_failed): New functions.
2380 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2381 gen_presence_set, gen_absence_set, gen_automaton,
2382 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2383 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2384 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2385 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
2386 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2387 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
2388 (decl_hash, decl_eq_p): Use the macros.
2389 (find_decl): Ditto. Set up mode of work_decl.
2390 (process_excls, process_presence_absence, process_decls,
2391 check_automaton_usage, process_regexp, process_regexp_decls,
2392 check_usage, loop_in_regexp, check_loops_in_regexps,
2393 process_regexp_cycles, add_advance_cycle_insn_decl,
2394 initiate_states, initiate_excl_sets,
2395 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2396 transform_2): Use the macros.
2397 (transform_3): Ditto. Check mode before making transformations of
2399 (regexp_transform_func, transform_insn_regexps,
2400 process_unit_to_form_the_same_automaton_unit_lists,
2401 form_the_same_automaton_unit_lists_from_regexp,
2402 form_the_same_automaton_unit_lists,
2403 process_seq_for_forming_states, process_alts_for_forming_states,
2404 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2405 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2406 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2407 units_to_automata_heuristic_distr, create_ainsns,
2408 units_to_automata_distr, create_automata): Use the macros.
2409 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
2410 (longest_path_length, min_issue_delay_pass_states,
2411 output_dead_lock_vect, output_tables, output_insn_code_cases,
2412 output_internal_insn_latency_func, output_print_reservation_func,
2413 output_description, output_automaton_units, generate): Use the
2415 (make_insn_alts_attr): Ditto. Check case when there are not
2416 alternatives in the reservation.
2417 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2418 make_bypass_attr, form_important_insn_automata_lists,
2419 expand_automata): Use the macros.
2421 2002-06-20 Tim Josling <tej@melbpc.org.au>
2423 * Makefile.in: Clean up code to check for misspecified languages
2424 in enable-languages.
2426 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
2428 * cpptrad.c (_cpp_replacement_text_len): initialize len.
2430 2002-06-19 Jason Merrill <jason@redhat.com>
2432 * Makefile.in (unstrap, restrap): New targets.
2433 (bootstrap): Mention restrap.
2435 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
2437 * except.c (ehl_free): Remove.
2439 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2440 builtin_define and builtin_define_std.
2442 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2444 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2445 (sCOND): Restrict operand class so that gcc knows how to reload them.
2446 (bitfield_set): Merge two unnamed insn's using alternatives.
2447 (call_value): Remove constraint on unused uperand.
2448 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2449 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
2451 * longlong.h (count_trailing_zeros): Escape newline and beautify.
2453 2002-06-19 Mark Mitchell <mark@codesourcery.com>
2455 * Makefile.in (QMTEST_DIR): Simplify definition.
2457 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
2459 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2462 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
2464 * cpphash.h (struct cpp_reader): Make date and time strings.
2465 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2466 _cpp_replacement_text_len): New.
2467 * cppinit.c (cpp_create_reader): Update.
2468 (init_builtins): Register appropriate builtins for -traditional-cpp.
2469 * cppmacro.c (new_number_token): Remove.
2470 (_cpp_builtin_macro_text): New.
2471 (builtin_macro): Use it.
2472 (cpp_macro_definition): Update to handle traditional macros.
2473 * cppmain.c (cb_line_change): Don't do column positioning for
2475 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
2477 (skip_whitespace): Fix.
2478 (maybe_start_funlike): Don't set state.parsing_args.
2479 (scan_out_logical_line): Remove duplicate error. Use lex_state
2480 rather than state.parsing_args.
2481 (push_replacement_text): Handle builtins.
2482 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2484 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2485 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2487 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2488 attribute __always_inline__.
2490 2002-06-18 Bob Wilson <bob.wilson@acm.org>
2492 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2493 when generating the call to _mcount.
2494 (NO_PROFILE_COUNTERS): Define.
2496 2002-06-18 Richard Henderson <rth@redhat.com>
2498 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2501 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
2503 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2504 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2505 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2506 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
2508 * sh-protos.h (sh_pr_interrupt): Declare.
2509 * sh.c (sh_pr_interrupt): New function.
2510 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2511 (sh_hard_regno_rename_ok): Likewise.
2512 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2514 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
2516 * rtl.def (DEFINE_AUTOMATON): Add description of new options
2517 `time' and `v'. Fix incorrect description of option `w'.
2519 * doc/md.texi: Ditto.
2521 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2522 (gen_automata_option): Process the new options.
2523 (transform_2, transform_3): Initialize some variables.
2524 (initiate_automaton_gen): Use the new macros.
2526 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
2528 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2529 (mips_set_return_address, mips_restore_gp): Declare.
2530 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2531 (current_frame_info): Remove.
2532 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2533 * config/mips/mips.c: Remove uses of current_frame_info.
2534 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
2535 (struct machine_function): Add 'frame' and 'insns_len'.
2536 (current_frame_info, zero_frame_info): Remove.
2537 (mips_restore_gp, mips_set_return_address): New.
2538 (mips_initial_elimination_offset): New.
2539 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2540 (eh_return define_split): Use mips_set_return_address.
2542 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
2544 * cpplib.c (dtable): Update.
2545 (end_directive): Decrement expansion prevention count.
2546 Clear state.in_expression.
2547 (prepare_directive_trad): Set state.in_expression.
2548 Increment expansion prevention count.
2549 * cpptrad.c (enum ls): New.
2550 (_cpp_overlay_buffer): Set overlaid_buffer.
2551 (_cpp_remove_overlay): Use overlaid_buffer.
2552 (_cpp_read_logcial_line_trad): Update buffer when it might
2554 (scan_out_logical_line): Handle state transitions for assertions
2555 and defined() in #if, and for funlike invocations including the
2556 directive case. Handle '<' and '>' as a quote mechanism in
2557 #include. Warn about unterminated macro invocations.
2558 * cpphash.h (struct lexer_state): New member in_expression.
2559 (struct cpp_reader): New member overlaid buffer.
2561 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2563 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2566 2002-06-18 Alan Modra <amodra@bigpond.net.au>
2568 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2570 * doloop.c (doloop_optimize): Extract pattern from insn.
2572 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
2574 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2576 2002-06-17 Jeff Law <law@redhat.com>
2578 * libgcc2.c: Do not include symcat.h or machmode.h.
2580 2002-06-17 Richard Henderson <rth@redhat.com>
2583 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2585 2002-06-17 Tom Tromey <tromey@redhat.com>
2587 * dwarfout.c: Include function.h.
2589 2002-06-17 Andreas Schwab <schwab@suse.de>
2591 * print-rtl.c (print_rtx): Print space before vector, not after.
2592 (debug_rtx): Clear sawclose before printing.
2593 (debug_rtx_list): Print newline after each list element.
2594 (debug_rtx_range): Likewise.
2596 2002-06-17 Richard Henderson <rth@redhat.com>
2598 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2599 (current_function_funcdef_no): Similarly.
2600 * function.c (funcdef_no): Similarly.
2601 (prepare_function_start): Set current_function_funcdef_no.
2602 (expand_function_start): Don't set current_function_profile_label_no.
2603 * dwarf2out.h (current_funcdef_number): Remove.
2604 * dwarf2out.c (current_funcdef_number): Remove. Replace with
2605 current_function_funcdef_no throughout.
2606 * dwarfout.c, vmsdbgout.c: Similarly.
2607 * except.c (sjlj_funcdef_number): Remove.
2608 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2609 (output_function_exception_table): Likewise.
2610 * final.c (profile_function): Use current_function_funcdef_no
2611 instead of current_function_profile_label_no.
2613 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
2615 * sched-ebb.c (init_ready_list): Check INSN_P first.
2617 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
2619 * sh.md (divsi3): Update way how to find insns in a sequence.
2621 * reload1.c (merge_assigned_reloads): Don't change reloads
2622 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2623 to RELOAD_OTHER when there are conflicting input reloads.
2625 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
2627 * function.c (epilogue_done): Correctly build a sequence of insns for
2630 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
2632 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
2635 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
2637 2002-06-16 Richard Henderson <rth@redhat.com>
2639 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2640 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2642 2002-06-16 Richard Henderson <rth@redhat.com>
2645 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
2647 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
2649 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
2650 * config/i386/i386-aout.h, config/i386/i386elf.h,
2651 config/i386/sysv4.h: Remove CPP_PREDEFINES.
2652 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
2653 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
2654 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
2655 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
2656 CPP_PREDEFINES and part of CPP_SPEC.
2657 * config/i386/sysv4-cpp.h: New.
2659 2002-06-16 Richard Henderson <rth@redhat.com>
2662 * dwarf2out.c (modified_type_die): Don't assign the qualified die
2663 to the unqualified type.
2665 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
2667 * i386-protos.h (x86_field_alignment): Declare.
2668 * i386.c (x86_field_alignment): Define.
2669 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
2670 (BIGGEST_FIELD_ALIGNMENT): Kill.
2672 2002-06-16 Richard Henderson <rth@redhat.com>
2674 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
2676 2002-06-16 Richard Henderson <rth@redhat.com>
2678 * c-common.c (flag_ms_extensions): Move from c++ front end.
2679 * c-common.h (flag_ms_extensions): Declare.
2680 * c-decl.c (c_decode_option): Add -fms-extensions.
2681 (grokfield): Don't accept anonymous structures in ISO C mode;
2682 accept only unnamed anonymous structures in GNU C mode; accept
2683 Plan 9 extensions in MS mode.
2684 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
2685 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
2686 (extension): Clear flag_iso.
2687 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
2689 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
2692 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
2693 early if current_function_epilogue_delay_list is non-empty.
2694 * config/cris/cris.md ("return"): Add sanity check asserting that
2695 current_function_epilogue_delay_list is empty.
2697 2002-06-16 Jeff Law <law@redhat.com>
2699 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
2700 sharing of hard registers.
2702 * toplev.c (rest_of_compilation): Remove redundant conditional.
2704 * toplev.c (rest_of_compilation): Perform a simpler, less costly
2705 cleanup of the CFG when not optimizing.
2707 2002-06-16 Alan Modra <amodra@bigpond.net.au>
2709 * gcc.c (main): Correct startfile_prefix_spec check.
2711 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
2713 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
2714 include both darwin.o and rs6000-c.o.
2716 2002-06-15 Roger Sayle <roger@eyesopen.com>
2718 * expr.c (compare_from_rtx): Call simplify_relational_operation
2719 on all comparisons, not just those between integer constants,
2720 with the correct (possibly unsigned) comparison code.
2721 (do_compare_rtx_and_jump): Likewise.
2723 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
2725 * Makefile.in (tm_defines): New configuration variable.
2726 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
2727 Pass tm_defines in TM_DEFINES.
2728 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
2729 * config.gcc (tm_defines): New configuration variable.
2730 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
2731 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
2732 * configure.in: Substitute tm_defines.
2733 * configure: Rebuilt.
2734 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
2735 * doc/install.texi: Update.
2736 * pa/pa-700.h: Delete file.
2737 * pa/pa-7100.h: Delete file.
2739 2002-06-15 Roger Sayle <roger@eyesopen.com>
2741 * fold-const.c (comparison_to_compcode): New function to convert
2742 an comparison TREE CODE into a bit-based representation.
2743 (compcode_to_comparison): New function to convert from this bit
2744 based representation back to a comparison TREE CODE.
2745 (fold_truthop): Simplify (x<y) && (x==y) and related composite
2748 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
2750 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
2752 * stor-layout.c (compute_record_mode): Remove check for
2753 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
2754 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
2755 MEMBER_TYPE_FORCES_BLK.
2757 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
2759 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
2761 2002-06-14 Jeff Sturm <jsturm@one-point.com>
2763 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
2765 2002-06-14 Steve Ellcey <sje@cup.hp.com>
2767 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
2768 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
2769 * configure, config.in: Regenerate.
2771 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2773 * loop.c (check_final_value): Use v->always_executed
2774 instead of v->always_computable.
2775 * unroll.c (final_giv_value): Don't calculate the final
2776 value as a function of the biv if the giv is not computed
2777 for every loop iteration.
2779 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2781 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
2783 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2786 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
2787 the truncation down when the target type is signed.
2788 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
2789 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
2790 the conversion if the target type is a smaller type.
2792 2002-06-14 Richard Henderson <rth@redhat.com>
2794 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
2795 earlier. Re-factor comparisons vs extrema.
2797 2002-06-14 Richard Henderson <rth@redhat.com>
2799 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
2801 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2803 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
2804 * sched-deps.c (add_dependence): Likewise.
2805 (group_leader): Likewise.
2806 * sched-rgn.c (init_ready_list): Likewise.
2807 * doc/rtl.texi: Adjust accordingly.
2809 2002-06-13 Jeffrey Law <law@redhat.com>
2811 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
2812 null pointer checks were eliminated. Update prototype.
2813 (delete_null_pointer_checks): Similarly.
2814 * rtl.h (delete_null_pointer_checks): Update prototype.
2815 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
2816 delete_null_pointer_checks deletes one or more null
2817 pointer checks. Do not run cleanup_cfg before gcse, the
2818 CFG is accurate and optimized at that point..
2820 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
2823 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2825 * Makefile.in (libgcc.mk): Depend on specs.
2827 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
2829 * sh.md (mulsi3): Update way how to find insns in a sequence.
2831 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2833 * sh.h: Define HARD_REGNO_RENAME_OK
2834 * sh.c: sh_hard_regno_rename_ok: New. If current function has
2835 interrupt_handler attribute, only registers saved on stack are OK.
2836 * sh-protos.h: Declare sh_hard_regno_rename_ok.
2838 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
2840 * config/sh/sh.md (jump): Emit jump insn.
2841 (call_pcrel): Get pattern of the result of gen_call_site.
2842 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
2844 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
2846 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
2847 * cpptrad.c: Update comments.
2848 (skip_whitespace, copy_comment): Take a new parameter.
2849 (skip_escaped_newlines): Don't duplicate escaped newline test.
2850 (copy_comment): Different location for CUR, decide here how
2851 to copy / replace the comment.
2852 (skip_whitespace): Copy whitespace.
2853 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
2854 (scan_out_logical_line): Let copy comment handle keeping or
2856 (scan_parameters, _cpp_create_trad_definition): Update.
2858 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
2860 * reload.c (get_secondary_mem,find_reloads_address,
2861 find_reloads_address_1): Pass reference to MEM to find_reloads_address
2862 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
2864 2002-06-13 Jessica Han <jessica@cup.hp.com>
2866 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2867 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2868 * doc/tm.texi: Document them.
2869 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2870 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2871 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
2872 (ASM_OUTPUT_FDESC): Likewise.
2874 2002-06-13 Eric Christopher <echristo@redhat.com>
2876 * diagnostic.c (output_format): Fix thinko.
2878 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
2880 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
2881 (DWARF2_UNWIND_INFO): Define to 0.
2883 * config/sh/sh.c (calc_live_regs): Don't use initial_value
2884 optimization for PR_MEDIA_REG.
2886 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
2888 * cpphash.h (_cpp_lex_identifier_trad): Remove.
2889 * cpplib.c (end_directive): Don't skip, always remove overlay
2891 (prepare_directive_trad): Handle NULL pfile->directive.
2892 (_cpp_handle_directive): Always call prepare_directive_trad
2894 * cppmain.c (check_multiline_token): Rename account_for_newlines,
2896 (scan_translation_unit_trad): Use it.
2897 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
2898 output, get escaped newline in comment close correct.
2899 (check_output_buffer, skip_whitespace): Update.
2900 (_cpp_lex_identifier_trad): Remove.
2901 (scan_out_logical_line): Handle -C and comments in directives
2904 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2906 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
2907 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2908 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
2909 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
2910 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
2911 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
2912 (SELECT_SH5_COMPACT_NOFPU): Likewise.
2913 (TARGET_SWITCHES): Use them.
2914 (TARGET_CPU_DEFAULT): Define if not already defined.
2915 (TARGET_DEFAULT): Use it.
2916 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
2917 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
2918 * config/sh/t-monolib: New file.
2920 2002-06-13 Roger Sayle <roger@eyesopen.com>
2922 * toplev.c (rest_of_compilation): Simplify (and correct) the
2923 logic of the first delete-null-pointer-checks pass.
2925 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
2927 * i386.c (ix86_expand_movstr): Fix pasto.
2929 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
2931 * reload.c (find_valid_class): Fix thinko in my previous patch.
2933 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2935 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
2936 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
2937 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
2938 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
2940 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
2942 * tree-inline.c (expand_call_inline): Don' mess with _DECL
2945 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
2947 * diagnostic.c (output_format): Recognize "%H" as a format
2948 specifier for a location_t.
2949 (text_specifies_location): New function.
2950 (diagnostic_set_info): Use it.
2952 2002-06-13 Jeffrey Law <law@redhat.com>
2954 * emit-rtl.c (static_regno_reg_rtx): Define.
2955 (init_emit_once): Initialize static_regno_reg_rtx.
2956 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
2957 of building new hard reg objects once per function.
2958 (gen_rtx_REG): Try to share hard regs.
2959 * regclass.c (init_fake_stack_mems): New function broken out from
2961 * rtl.h (init_fake_stack_mems): Declare.
2962 * toplev.c (lang_independent_init): Call init_regs before
2963 init_emit_once. Call init_fake_stack_mems after init_emit_once.
2965 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
2967 * alias.c (argument_registers): Remove.
2968 (init_alias_once): Initialize static_reg_base_value here. Remove
2969 initialization of argument_registers.
2970 (init_alias_once_per_function): Remove.
2971 (init_alias_analysis): Copy all the entries from static_reg_base_value
2972 into new_reg_base_value all at once.
2973 * rtl.h (init_alias_once_per_function): Remove declaration.
2974 * function.c (prepare_function_start): Do not call
2975 init_alias_once_per_function.
2977 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
2978 starting a sequence and emitting an INSN.
2980 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
2982 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
2984 2002-06-13 David S. Miller <davem@redhat.com>
2986 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
2988 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
2990 * cpplib.c (end_directive): Handle line skipping. Only remove
2991 the rest of the line if the directive was valid.
2992 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
2993 expanding a traditional macro.
2994 * cpptrad.c (recursive_macro): New.
2995 (read_logical_line_trad): Handle skipping.
2996 (scan_out_logical_line): Continue after a successful directive.
2997 Don't expand macros whilst skipping, or if recursing.
2998 (_cpp_create_trad_definition): scan_out_logical_line now sets
2999 the output current position.
3001 2002-06-12 Eric Christopher <echristo@redhat.com>
3003 From Chris Demetriou <cgd@broadcom.com>
3004 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
3006 (ISA_HAS_MADD_MSUB): Ditto.
3007 (ISA_HAS_NMADD_NMSUB): Ditto.
3009 2002-06-12 Eric Christopher <echristo@redhat.com>
3011 * config.gcc: Consolidate little endian handling and
3012 little/big endian targets.
3013 * config/mips/elfl.h: Remove file.
3014 * config/mips/elfl64.h: Ditto.
3015 * config/mips/ecoffl.h: Ditto.
3016 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
3018 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3020 * gengtype.h (xvasprintf): New prototype.
3021 (xasprintf): New prototype.
3023 (get_output_file): Return an outf_p.
3024 (header_file): Is now an outf_p.
3025 (base_files): Now are outf_p.
3027 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
3028 rather than stdio operations. Use xasprintf in a few places,
3032 (struct filemap): Delete.
3034 (output_files): New.
3036 (create_file): Create an outf_p. Add parameter to indicate output
3037 file name, change all callers.
3038 (open_base_files): Create gtype-desc.c here.
3039 (get_output_file_with_visibility): Rewrite.
3040 (get_output_file_name): Just look at 'name' field in struct outf.
3041 (close_output_files): Rewrite.
3043 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
3045 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3046 (MASK_G_FLOAT): Define.
3047 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
3048 (TARGET_SWITCHES): Likewise.
3049 (TARGET_DEFAULT): Likewise.
3051 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
3053 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
3054 * config/mips/mips.c (mips_output_filename): Don't print a
3055 ".file" directive if we are using DWARF-2.
3056 (mips_output_function_prologue): Do not emit source file
3057 name for TARGET_GAS.
3059 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
3061 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
3062 decide whether emit the short opcode.
3063 * i386.h (x86_shift1): Declare.
3064 (TARGET_SHIFT1): New macro.
3065 * i386.c (x86_shift1): New global variable.
3067 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
3068 unconditionally; make loop to rebuild CFG; kill unnecesary
3069 find_basic_block calls; kill compute_bb_for_insn call.
3070 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
3071 * haifa-sched.c (sched_init): Likewise.
3072 * ssa-ccp.c (ssa_const_prop): Likewise.
3073 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3075 2002-06-11 David S. Miller <davem@redhat.com>
3077 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
3080 2002-06-11 Richard Henderson <rth@redhat.com>
3082 * c-common.c (builtin_define_type_max): New.
3083 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
3084 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
3086 From Joseph S. Myers:
3087 * glimits.h: Rewrite to expect the double underscore definitions
3090 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
3091 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
3092 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
3093 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3094 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
3095 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
3096 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
3097 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
3099 2002-06-11 Richard Henderson <rth@redhat.com>
3101 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
3102 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
3103 (code_for_builtns): Update.
3104 (alpha_init_builtins): Add __builtin_thread_pointer and
3105 __builtin_set_thread_pointer.
3106 (alpha_expand_builtin): Handle void builtins.
3107 * doc/extend.texi (Alpha Built-in Functions): Update.
3109 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
3112 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
3114 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3116 * config.gcc: Make the name of the extra-modes file adjustable
3118 (s390x, strongarm, xscale stanzas): Use this facility.
3119 * configure.in: Update to match.
3120 * configure: Regenerate.
3122 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
3124 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
3125 max/mins as unsigned GE compares.
3127 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
3129 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
3130 * config/vax/bsd.h: New file.
3131 * config/vax/netbsd.h: Add missing notice.
3132 (CPP_PREDEFINES): Remove.
3133 (TARGET_OS_CPP_BUILTINS): Define.
3134 (CPP_SPEC): Use NETBSD_CPP_SPEC.
3135 * config/vax/openbsd.h: Update copyright years.
3136 (CPP_PREDEFINES): Remove.
3137 (TARGET_OS_CPP_BUILTINS): Define.
3138 * config/vax/ultrix.h: Likewise.
3139 * config/vax/vaxv.h: Likewise.
3140 * config/vax/vms.h: Likewise.
3141 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
3142 (CPP_PREDEFINES, CPP_SPEC): Remove.
3144 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
3146 * i386.md (addqi_1_slp, subqi_1_slp
3147 (andqi_ext0, testqi_ext0): Remove unnecesary check.
3148 (addhi*, addqi*): Simplify "dec" condition.
3149 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
3150 (and, or, xor to QImode splitters): New.
3153 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
3154 (andqi_ext_1_rex64): New.
3158 (rotrqi3*_slp): New.
3159 (rotlqi3*_slp): New.
3161 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3163 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
3165 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
3166 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3167 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
3168 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
3169 __LONG_DOUBLE_128__ setting, _CALL_* setting.
3170 (CPP_DEFAULT_SPEC): Delete.
3171 (CPP_FLOAT_DEFAULT_SPEC): Delete.
3172 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
3173 (CPP_SYSV_DEFAULT_SPEC): Delete.
3174 (CPP_ENDIAN_BIG_SPEC): Delete.
3175 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3176 (CPP_ENDIAN_SPEC): Delete.
3177 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
3178 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
3179 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
3180 cpp_longdouble_default.
3181 * config/rs6000/softfloat.h: Delete.
3182 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
3183 (EXTRA_SPECS): Delete cpp_cpu.
3184 (TARGET_CPU_CPP_BUILTINS): New.
3185 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
3187 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
3188 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
3189 (CPP_DEFAULT_SPEC): Delete.
3190 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
3191 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
3192 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
3193 (CPP_DEFAULT_SPEC): Delete.
3194 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3195 (CPLUSPLUS_CPP_SPEC): Likewise.
3196 (CPP_CPU_SPEC): Delete.
3197 (CPP_DEFAULT_SPEC): Delete.
3198 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3199 (CPLUSPLUS_CPP_SPEC): Likewise.
3200 (CPP_CPU_SPEC): Delete.
3201 (CPP_DEFAULT_SPEC): Delete.
3202 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
3203 (CPP_DEFAULT_SPEC): Delete.
3204 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
3205 (CPP_DEFAULT_SPEC): Delete.
3207 * doc/gty.texi: Small updates.
3209 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
3211 * objc/objc-act.c (warn_with_ivar): Adjust calls to
3212 diagnostic_count_error.
3213 (warn_with_method): Likewise.
3215 * diagnostic.h (warnings_are_errors_message): New field of
3217 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
3219 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3220 (diagnostic_count_diagnostic): Make aware of other kinds of
3222 (diagnostic_initialize): Initialize warnings_are_errors_message field.
3224 2002-06-11 Tom Tromey <tromey@redhat.com>
3227 * fold-const.c (fold_convert): Don't modify existing tree's type.
3229 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3231 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3233 2002-06-11 Richard Henderson <rth@redhat.com>
3235 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3237 2002-06-11 Richard Henderson <rth@redhat.com>
3239 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
3240 DWARF2_UNWIND_INFO is false.
3242 2002-06-11 Bob Wilson <bob.wilson@acm.org>
3244 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3246 * config/s390/s390.c (emit_prologue): gen_store_multiple
3247 returns an insn now, not a pattern.
3249 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3251 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3254 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3256 * i386.c (x86_promote_QImode): Set for Athlon
3257 (x86_fast_prefix): New global variable.
3258 (x86_arch_always_fancy_math_387): Fix formating.
3259 * i386.h (x86_fast_prefix): Declare
3260 (TARGET_FAST_PREFIX): define.
3261 * i386.md (and to strict_low_part, HI to SI
3262 promoting splitter): Use new macro.
3264 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3266 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3268 * Makefile.in (distclean): Delete junk left in testsuite
3271 2002-06-11 Jeffrey Law <law@redhat.com>
3273 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3274 last insn created by the splitter.
3276 * caller-save.c (init_caller_save): Move creation of SAVEINSN
3277 and RESTINSN into into the scope of the sequence.
3279 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3282 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3284 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3285 not the pattern. So extract the pattern from the insn.
3287 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3289 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3291 * config/s390/s390.md (movsi): Only use floating point
3292 register alternatives when operands are already fprs.
3293 (movdi_31, movdi_64): Likewise.
3295 2002-06-11 David S. Miller <davem@redhat.com>
3297 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3298 Only run RTX equality checks on INSN_P rtl.
3300 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3302 * config/s390/s390.md (reload_base, ltorg): Remove.
3303 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3304 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3305 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3306 s390_asm_output_pool_prologue): Likewise.
3307 * s390.h (s390_pool_start_insn): Likewise.
3309 * s390.c (s390_output_symbolic_const): Remove support for
3310 old-style pool chunks.
3311 (s390_function_epilogue): Likewise.
3312 (s390_output_constant_pool): Likewise. Also, fix incorrect
3313 alignment for 64-bit literal pools.
3314 (print_operand_address): Remove 'y' and 'Y' format flags.
3315 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3316 old-style pool chunks.
3317 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3318 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3319 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3321 * s390.c (consttable_operand): New function.
3322 * s390-protos.h (consttable_operand): Declare it.
3323 * s390.h (PREDICATE_CODES): Add consttable_operand.
3324 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3325 consttable_sf, consttable_df, pool_start_31, pool_end_31,
3326 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3327 * s390.c (struct constant, struct constant_pool): New data types.
3328 (constant_modes, gen_consttable): New variables.
3329 (s390_start_pool, s390_end_pool, s390_add_pool,
3330 s390_dump_pool, s390_free_pool): New functions.
3331 (s390_chunkify_pool): Completely reimplement literal pool
3334 * s390.c (s390_pool_overflow): New variable.
3335 * s390.h (s390_pool_overflow): Declare it.
3336 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
3337 jumps in literal pool overflow situations.
3339 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
3340 (s390_frame_info): Account for possible use of RETURN_REGNUM
3341 by new literal pool overflow code.
3342 (s390_emit_prologue): Likewise.
3344 2002-06-05 David S. Miller <davem@redhat.com>
3346 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3347 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3348 emit_insns_before_scope, emit_insns_after,
3349 emit_insns_after_scope): Delete declaration.
3350 * ada/misc.c (insert_code_for): Use emit_insn* instead of
3352 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3353 (alpha_set_memflags): Fix comment.
3354 (set_frame_related_p): Use get_insns instead of gen_sequence.
3355 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3357 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3359 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3360 * config/fr30/fr30.c (fr30_move_double): Likewise.
3361 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3363 * config/ia64/ia64.c (spill_restore_mem): Likewise.
3364 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3366 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3367 instead of gen_sequence.
3368 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3369 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3370 * config/sh/sh.c (sh_need_epilogue): Likewise.
3371 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3373 (setjmp pattern and split): Use them to avoid splitter which emits
3375 * genattrtab.c (main): Emit include of function.h
3376 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3377 get_insns instead of gen_sequence.
3378 * config/cris/cris.c (cris_split_movdx): Likewise.
3379 * emit-rtl.c (emit_insns*): Kill.
3380 (try_split): Expect insn list instead of SEQUENCE.
3381 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3382 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3383 Make them abort if a SEQUENCE is given and RTL checking is
3385 (emit_*_scope): Don't forget to set scope on final insn.
3386 (gen_sequence): Move from here...
3387 * ssa.c (gen_sequence): To here as private function.
3388 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3390 (expand_builtin_return, expand_builtin_mathfn): Likewise.
3391 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3392 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3393 (expand_builtin_expect_jump): Use get_insns and fix comments.
3394 * calls.c (try_to_integrate): Use emit_insn_foo.
3395 (expand_call, emit_library_call_value_1): Likewise.
3396 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3397 (emit_move_insn_1): Use get_insns instead of gen_sequence.
3398 (expand_expr): Use emit_insn_foo.
3399 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3400 * except.c (build_post_landing_pads): Likewise.
3401 * flow.c (attempt_auto_inc): Likewise.
3402 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3403 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3404 * function.c (fixup_var_refs_insn): Use get_insns instead of
3406 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3407 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3408 (fixup_stack_1, purge_addressof_1, expand_main_function,
3409 get_arg_pointer_save_area): Likewise.
3410 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3411 expand_function_end): Use emit_insn_foo.
3412 (record_insns, keep_stack_depressed): Work with insn list instead
3413 of SEQUENCE, fix comments.
3414 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3415 noce_try_store_flag_constants, noce_try_store_flag_inc,
3416 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3417 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3418 (noce_process_if_block): Use get_insns instead of gen_sequence.
3419 * optabs.c (add_equal_note): Work with insn list, fix comments.
3420 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3421 (expand_unop, expand_complex_abs, expand_unop_insn,
3422 expand_no_conflict_block): Likewise.
3423 (gen_move_insn): Use get_insns instead of gen_sequence.
3424 (gen_cond_trap): Likewise.
3425 * integrate.c (copy_rtx_and_substitute): Likewise.
3426 (emit_initial_value_sets): Use emit_insn_foo.
3427 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3428 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3429 now that RTL generators give insn lists.
3430 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3431 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3432 instead of gen_sequence.
3433 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3434 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3435 instead of gen_sequence.
3436 * loop.c (move_movables, emit_prefetch_instructions,
3437 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3439 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3440 (product_cheap_p): Likewise, and add commentary about RTL wastage
3442 * lcm.c (optimize_mode_switching): Use get_insns instead of
3444 * profile.c (gen_edge_profiler): Likewise.
3445 * regmove.c (copy_src_to_dest): Likewise.
3446 * reg-stack.c (compensate_edge): Likewise and fix comment.
3447 * gcse.c (process_insert_insn): Likewise.
3448 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3449 * jump.c (delete_prior_computation): Update comment.
3450 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3451 of gen_sequence, update comments to match.
3452 * recog.c (peephole2_optimize): Work with insn lists instead of
3454 * sched-vis.c (print_pattern): Abort on SEQUENCE.
3455 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3456 Use get_insns instead of gen_sequence.
3457 (copy_loop_body): Likewise and don't emit dummy NOTE.
3458 * genrecog.c: Don't mention SEQUENCE rtl in comments.
3459 * combine.c (try_combine): Expect insn lists from split generator.
3460 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3463 2002-06-11 Roger Sayle <roger@eyesopen.com>
3464 Andreas Jaeger <aj@suse.de>
3466 * cfgbuild.c: Update copyright years.
3468 2002-06-11 Andreas Schwab <schwab@suse.de>
3470 * config/m68k/m68k.h (PREDICATE_CODES): Define.
3472 2002-06-11 Eric Christopher <echristo@redhat.com>
3474 * doc/tm.texi (Run-time Target): Add comment about flag_iso
3476 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3477 * config/mips/ecoffl.h: Ditto.
3478 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3479 (CPP_PREDEFINES): Ditto.
3480 * config/mips/elfl64.h: Ditto.
3481 * config/mips/elfl.h: Ditto.
3482 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3483 out until irix header consolidation.
3484 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3485 with SUBTARGET_OS_CPP_BUILTINS.
3486 * config/mips/iris6.h: Ditto.
3487 (CPLUSPLUS_CPP_SPEC): Remove.
3488 * config/mips/linux.h: Ditto.
3489 * config/mips/netbsd.h: Ditto.
3490 * config/mips/openbsd.h: Ditto.
3491 * config/mips/rtems.h: Ditto.
3492 * config/mips/rtems64.h: Ditto.
3493 * config/mips/sni-svr4.h: Ditto.
3494 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3495 ISA_MIPS32, ISA_MIPS64): New defines.
3496 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3497 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3498 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3499 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3500 (TARGET_CPU_CPP_BUILTINS): Define.
3501 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3502 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3503 (movdicc): Remove check for ISA_MIPS32.
3504 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3505 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3506 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3507 sunge_sf, sunle_df, sunle_sf): New patterns.
3509 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
3511 * Makefile.in: Update cppmain.o.
3512 * cpphash.h (struct cpp_reader): Move some members to a
3514 (trad_line): Rename saved_line.
3515 (_cpp_read_logical_line_trad): Update.
3516 (_cpp_remove_overlay): New.
3517 * cppinit.c (cpp_create_reader): No need to set saved_line.
3518 (cpp_destroy): Update.
3519 (cpp_read_main_file): Only overlay if compiling.
3520 * cpplex.c (continue_after_nul): Return false if in directive.
3521 * cpplib.c (EXPAND): New.
3522 (directive_table, SEEN_EOL): Update.
3523 (end_directive): Remove overlay if traditional; don't skip
3524 line in traditional #define.
3525 (prepare_directive_trad): New.
3526 (_cpp_handle_directive, run_directive): Update for traditional
3528 (lex_macro_node): Simplify, don't use lex_identifier_trad.
3529 * cpplib.h (struct options): Add preprocess_only.
3530 * cppmain.c: Don't include intl.h.
3531 (cpp_preprocess_file): Set options->preprocess_only.
3532 (scan_translation_unit_trad): Fix, and print line numbers.
3533 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3534 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3535 save_replacement_text, _cpp_create_trad_definition): Update for
3537 (_cpp_overlay_buffer): Save line number.
3538 (_cpp_remove_overlay): Rename from restore_buff, restore line.
3539 (_cpp_read_logical_line_trad): Don't handle overlays here.
3540 (scan_out_logical_line): Process directives.
3542 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
3544 * gthr-win32.h: Wrap functions in extern "C".
3545 (__gthread_key_t): Typedef as unsigned long,
3547 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3548 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3549 (__gthr_win32_once, __gthr_win32_key_create,
3550 __gthr_win32_key_delete, __gthr_win32_getspecific,
3551 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3552 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3553 __gthr_win32_mutex_unlock): Declare.
3554 (__gthread_once,__gthread_key_create,
3555 __gthread_key_delete, __gthread_getspecific,
3556 __gthread_setspecific, __gthread_mutex_init_function,
3557 __gthread_mutex_lock,__gthread_mutex_trylock,
3558 __gthread_mutex_unlock): Call corresponding
3559 __gthr_win32_* extern implementations if #defined
3560 __GTHREAD_HIDE_WIN32API.
3561 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
3562 $(srcdir)/config/i386/gthr-win32.c
3563 * config/i386/gthr-win32.c: New implementation file.
3564 (__gthr_win32_once, __gthr_win32_key_create,
3565 __gthr_win32_key_delete, __gthr_win32_getspecific,
3566 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3567 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3568 __gthr_win32_mutex_unlock): New functions, based on
3569 static inlines in gthr-win32.h.
3571 2002-06-10 Bob Wilson <bob.wilson@acm.org>
3573 * config/xtensa/xtensa.c (override_options): Don't warn about
3574 using -fpic or -fPIC when PIC is enabled by default.
3576 2002-06-10 Roger Sayle <roger@eyesopen.com>
3578 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3580 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3582 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
3583 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
3584 exists, substitute its pathname as @extra_modes_file@, define
3585 EXTRA_MODES_FILE to be an appropriate string to #include it
3586 with, and define EXTRA_CC_MODES to 1.
3588 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
3589 it's defined. Get rid of redundancy in calling sequence for
3590 CC; don't use it to define CCmode, to avoid a warning.
3591 * libgcc2.c: Include symcat.h for the sake of machmode.def.
3593 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3594 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3595 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3597 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3598 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3600 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3601 defining extra CC modes.
3603 2002-06-10 Roger Sayle <roger@eyesopen.com>
3604 Andreas Jaeger <aj@suse.de>
3606 * cfgrtl.c (create_basic_block_structure): Remove index argument
3607 and use last_basic_block++ instead. (create_basic_block): Update.
3608 * cfgbuild.c (find_basic_blocks_1): Likewise.
3610 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3611 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3612 * sched-ebb.c (schedule_ebbs): Likewise.
3613 * sched-rgn.c (schedule_insns): Likewise.
3614 * ssa-ccp.c (ssa_const_prop): Likewise.
3615 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3616 * toplev.c (rest_of_compilation): Likewise.
3617 * config/ia64/ia64.c (ia64_reorg): Likewise.
3619 2002-06-10 Roger Sayle <roger@eyesopen.com>
3621 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3622 of matching registers.
3624 2002-06-10 Roger Sayle <roger@eyesopen.com>
3626 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3627 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3629 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
3631 * config/mmix/mmix.h: Improve comments.
3632 (CPP_SPEC, CPP_PREDEFINES): Don't define.
3633 (TARGET_CPU_CPP_BUILTINS): Define.
3634 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
3635 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
3637 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
3639 (mmix_constant_address_p): Remove another
3640 redundant test before case.
3641 (mmix_canonicalize_comparison): Remove unused function.
3642 (mmix_print_operand_address): Don't test and adjust for operand in
3643 non-canonical format.
3644 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
3645 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
3647 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3649 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
3650 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
3651 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
3652 (gen_compare): Use CCmode unconditionally.
3654 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3656 PR optimization/6759
3657 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
3660 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3663 * c-decl.c (grokfield): Allow user defined types if they declare
3664 structs or unions for unnamed fields.
3666 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3669 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
3671 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3673 PR optimization/6842
3674 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
3675 operand subreg cannot be simplified.
3677 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3679 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
3680 (compare_constant): Likewise.
3681 (output_addressed_constants): Likewise.
3683 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3685 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
3686 merge bb with itself.
3688 2002-06-10 Richard Henderson <rth@redhat.com>
3690 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
3691 (builtin_zapnot): Likewise.
3693 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
3696 2002-06-10 Eric Christopher <echristo@redhat.com>
3698 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
3699 prototype and function.
3700 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
3701 (call_insn_operand): Remove half pic references.
3702 (legitimate_address_p): Ditto.
3703 * config/i386/i386.h: Remove half pic defines.
3705 2002-06-10 Eric Christopher <echristo@redhat.com>
3707 * doc/extend.texi (Return Address): Add note explaining the side-
3708 effects of inlining on __builtin_return_address.
3710 2002-06-10 Tom Tromey <tromey@redhat.com>
3712 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
3713 (c-common.o): Depend on langhooks.h.
3715 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
3717 * cpphash.h (_cpp_read_logical_line_trad,
3718 _cpp_expansions_different_trad): Update prototypes.
3719 * cpplex.c (continue_after_nul): New.
3720 * cppmain.c: Include cpphash.h.
3721 (scan_translation_unit_trad): New.
3722 (cpp_preprocess_file): Call it.
3723 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
3725 (_cpp_expansions_different_trad): Update prototype.
3727 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3729 Fix cfi generation for SH[1-4]:
3731 * sh.c (frame_insn): New function.
3732 (output_stack_adjust): Add parameter emit_fn. All callers changed.
3733 (push): Now returns rtx. Use frame_insn.
3734 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
3736 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
3738 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3740 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
3742 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
3743 (distclean): ... not here. But do delete all testsuite/*.log,
3744 testsuite/*.sum files here. Delete mkheaders. Delete
3745 po/*.gmo and the testsuite directory in a split tree build.
3747 2002-06-10 Jeffrey Law <law@redhat.com>
3749 * alias.c (static_reg_base_value): New to hold RTL for
3750 items allocated once per function for the aliasing code.
3751 (init_alias_once_per_function): Initialize static_reg_base_value.
3752 (init_alias_analysis): Avoid throw-away allocations of RTL by
3753 using pre-computed values in static_reg_base_value.
3754 * function.c (prepare_function_start): Call
3755 init_alias_once_per_function appropriately.
3756 * rtl.h (init_alias_once_per_function): Declare.
3757 * caller-save (init_caller_save): Restructure slightly to
3758 avoid lots of silly RTL generation.
3759 * expr.c (init_expr_once): Likewise.
3760 * reload1.c (reload_cse_regs_1): Allocate throw-away register
3761 RTL object here. Pass it into children.
3762 (reload_cse_simplify_operands): Use passed-in register RTL
3764 (reload_cse_simplify): Pass through throw-away register
3767 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
3769 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
3771 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
3773 * gcc.c (process_command): Avoid assignment to read-only location.
3774 Fix sizeof calculation.
3776 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
3778 * cpphash.h (struct cpp_macro): Put comments on their own lines.
3779 (_cpp_expansions_different_trad): New.
3780 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
3781 * cpptrad.c (canonicalize_text): New.
3782 (scan_out_logical_line): Handle no arguments correctly.
3783 (save_replacement_text): Commit memory when finished.
3784 (_cpp_expansions_different_trad): New.
3786 2002-06-10 Tim Josling <tej@melbpc.org.au>
3788 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
3790 (lang_names): Add treelang and cobol.
3791 (get_file_basename): Add code to support treelang and cobol as
3792 4th and 5th users of c-common.c.
3794 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
3796 * Makefile.in (install-driver): Install driver as
3797 $(target_alias)-gcc-$(version).
3798 * gcc.c (spec_version): Make const.
3799 (process_command): Handle -V and -b by using exec.
3800 * doc/invoke.texi (Target Options): Restore -V option,
3801 update docs for -b option.
3803 2002-06-10 Tim Josling <tej@melbpc.org.au>
3805 * configure.in (remaining_languages_check):
3806 Added check that all languages specified were found.
3807 Exit if not found. Previous behaviour was silent failure.
3808 * configure: Regenerated.
3810 2002-06-10 Tim Josling <tej@melbpc.org.au>
3812 First steps to making treelang documentation compliant, based on
3813 instructions in sourcebuild.texi. Also add to gcc.c list of
3816 * doc/contrib.texi: Add self as contributor of treelang.
3818 * doc/frontends.texi: Add mention of treelang.
3820 * doc/invoke.texi (Overall Options): Add mention of treelang.
3822 * doc/standards.texi: Add mention of treelang.
3824 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
3826 * config/cris/cris.c: Include ggc.h
3828 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
3830 * cpphash.h (_cpp_push_text_context): Update.
3831 (_cpp_arguments_ok): New.
3832 * cppmacro.c (_cpp_arguments_ok): New, split out from...
3833 (collect_args): ...here.
3834 (_cpp_push_text_context): Change inputs.
3835 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
3836 replace_args_and_push): New.
3837 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
3838 Don't use IS macros directly.
3839 (scan_out_logical_line): Handle function-like macro argument
3841 (push_replacement_text): Update.
3842 (replacement_length): Remove.
3843 (_cpp_create_trad_definition): Don't skip whitespace before
3846 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3848 * config/avr/avr.c (avr_mcu_types): Update for new devices.
3849 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
3850 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
3851 * config/avr/avr.md ("type" and "length" attributes): New type
3852 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
3853 output a single "call" or "rcall" insn depending on device size.
3854 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
3856 2002-06-09 David Edelsohn <edelsohn@gnu.org>
3858 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
3859 synonym for 630. Add power4. Remove embedded processors. Use -m604
3861 (CPP_CPU_SPEC): Add power3 and power4.
3862 (PROCESSOR_DEFAULT): Change to 604e.
3863 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
3864 (CPP_CPU_SPEC): Similar additions.
3865 (enum process_type): Add POWER4.
3866 (RTX_COSTS): Add POWER4.
3867 (CPP_CPU_SPEC): Similar additions.
3868 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
3869 (PROCESSOR_DEFAULT64): Define.
3870 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
3871 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
3873 (rs6000_issue_rate): Add Power4.
3874 * config/rs6000/rs6000.md (cpu attr): Add power4.
3875 (iu compare): Remove 604, 604e, 620, 630.
3876 Add basic Power4 scheduling information.
3877 (mfcr/mtcrf): Change type attribute to cr_logical.
3879 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3881 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
3883 * gengtype-lex.l: Fix format specifier warning.
3885 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
3887 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
3888 lieu of isspace/IDchar.
3889 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
3890 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
3893 2002-06-08 Zack Weinberg <zack@codesourcery.com>
3895 * Makefile.in (LIBCPP_OBJS): Take out version.o.
3896 * cpphash.h (cpp_reader): Take out print_version member.
3897 * cppinit.c: (cpp_handle_option): Don't do anything with
3898 -version. Just set help_only for --version, --target-help.
3899 Just set verbose option for -v.
3900 (cpp_post_options): Don't print a version string.
3902 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
3904 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
3905 (avr_section_type_flags): New, handle .noinit* sections.
3907 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3909 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
3910 and include netbsd_entry_point.
3911 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3912 (NETBSD_ENTRY_POINT): Define.
3914 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3916 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
3917 if not already defined.
3918 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
3920 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
3922 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
3923 in a noreturn function.
3924 (avr_output_function_prologue, avr_output_function_epilogue):
3925 Correct function size calculation. Do not crash on empty function.
3926 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
3928 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3930 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3931 netbsd_link_spec and netbsd_entry_point.
3932 (LINK_SPEC): Use %(netbsd_link_spec).
3933 (NETBSD_ENTRY_POINT): Define.
3935 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3937 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
3939 (LINK_ARCH64_SPEC): Likewise.
3940 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
3941 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
3943 2002-06-08 Marc Espie <espie@openbsd.org>
3945 * lists.c (free_list): Fix typo in comment.
3947 2002-06-08 Andreas Jaeger <aj@suse.de>
3949 * lcm.c (optimize_mode_switching): Add unused attribute for
3952 * sched-deps.c (sched_analyze): Remove unused variable.
3954 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
3956 * diagnostic.def: Don't capitalize diagnostict descriptors.
3958 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3960 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
3961 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3962 (NETBSD_ENTRY_POINT): Define.
3964 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3966 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
3967 NETBSD_LINK_SPEC_ELF.
3968 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
3969 (NETBSD_ENTRY_POINT): Define.
3970 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
3971 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
3973 (NETBSD_ENTRY_POINT): Define.
3975 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3977 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3978 netbsd_link_spec and netbsd_entry_point.
3979 (LINK_SPEC): Use %(netbsd_link_spec).
3980 (NETBSD_ENTRY_POINT): Define.
3982 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3984 * config/netbsd-elf.h (LINK_SPEC): Rename to...
3985 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
3986 to specify program entry point.
3988 2002-06-07 Jeff Law <law@redhat.com
3990 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
3991 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
3992 than creating a new register.
3993 (distribute_notes): Likewise.
3994 * df.c (df_reg_use_gen): Likewise.
3995 (df_reg_clobber_gen): Likewise.
3996 (df_ref_record): Likewise.
3997 * expr.c (use_regs): Likewise.
3998 * flow.c (propagate_one_insn): Likewise.
3999 (mark_set_1): Likewise.
4000 (mark_used_reg): Likewise.
4001 * reload.c (emit_reload_insns): Likewise.
4003 2002-06-07 Roger Sayle <roger@eyesopen.com>
4005 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
4006 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
4007 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
4008 comparison code comp can be reversed.
4010 2002-06-07 Roger Sayle <roger@eyesopen.com>
4012 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
4013 constants last in comparisons. Optimize (x+1.0)>0.0 into the
4014 equivalent x > -1.0 when -ffast-math.
4016 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4018 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
4019 * config/mips/t-netbsd: New file.
4021 2002-06-07 Zack Weinberg <zack@codesourcery.com>
4023 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4024 options their own entries.
4025 (parse_option): Clarify comment.
4026 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
4027 special case. Replace if/strcmp chain for -W options with
4028 use of new OPT_* entries for them.
4029 (cpp_handle_options): Update to match.
4030 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
4031 * c-decl.c: Update call to cpp_handle_option.
4033 2002-06-07 Akim Demaille <akim@epita.fr>
4035 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
4038 2002-06-07 Jeffrey Law <law@redhat.com>
4040 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
4043 2002-06-07 H.J. Lu (hjl@gnu.org)
4045 * configure.in: Add --enable-__cxa_atexit.
4046 * configure: Regenerated.
4047 * config.in: Likewise.
4049 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
4052 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
4054 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
4056 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4058 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
4060 2002-06-07 Jason Merrill <jason@redhat.com>
4062 * cppexp.c (num_equality_op): Use a temporary variable to work
4063 around gcc 3.0.4 bug.
4065 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
4067 * diagnostic.c (diagnostic_build_prefix): Tidy.
4069 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
4071 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
4072 scan_parameters, save_replacement_text, replacement_length): New.
4073 (scan_out_logical_line): Take a macro and save parameters if
4075 (_cpp_logical_line_trad): Update.
4076 (_cpp_create_trad_definition): Update to handle function-like
4078 * cpplex.c (new_buff): Update.
4079 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
4080 * cpphash.h: ...here.
4081 (CPP_ALIGN2, _cpp_save_parameter): New.
4082 * cppmacro.c (save_parameter): Rename, export.
4083 (parse_params): Update.
4085 2002-06-07 Andreas Jaeger <aj@suse.de>
4087 * config/mmix/mmix.c: Remove extra broken prototype for
4088 mmix_init_machine_status.
4090 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
4092 * gengtype.c: Add comments before all the routines.
4094 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4096 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
4097 from and add t-sh64 to ${tmake_file}.
4098 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
4099 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
4100 * config/sh/t-netbsd-sh5-32: Remove.
4101 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
4103 (MULTILIB_DIRNAMES): Define.
4105 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
4107 * i386.md (and promoting splitters): Disable QI to SImode promoting
4108 when doing so changes immediate to be 32bit.
4110 * rtl.h (emit_*_scope): Declare.
4111 * emit-rtl.c (emit_*_scope): New global functions.
4112 (try_split): Copy scope.
4113 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4114 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4115 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4116 noce_process_if_block, find_cond_trap): Copy scopes.
4117 * recog.c (peephole2_optimize): likewise.
4119 2002-06-06 Jeffrey Law <law@redhat.com>
4121 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
4123 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
4125 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
4127 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4129 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
4130 ($(docdir)/gccinstall.info): New target.
4131 (info): Depend on it.
4132 (gccinstall.dvi): New target.
4133 (dvi): Depend on it.
4134 * doc/.cvsignore: Ignore new info files.
4135 * doc/install.texi (@setfilename): Reflect new info filename.
4137 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
4139 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
4142 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
4145 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
4146 c_common_get_alias_set.
4147 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
4149 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4151 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
4153 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
4154 * avr/avr.c (avr_output_function_epilogue): Use above to determine
4156 * pa/pa.c (pa_output_function_prologue): Likewise.
4158 2002-06-05 David S. Miller <davem@redhat.com>
4160 * integrate.c (subst_constants): Handle 'B' RTL format.
4162 2002-06-05 Eric Christopher <echristo@redhat.com>
4164 * varasm.c (make_decl_rtl): Fix comment for removed
4167 2002-06-05 Eric Christopher <echristo@redhat.com>
4169 * Makefile.in: Remove missed halfpic bits.
4171 2002-06-05 Eric Christopher <echristo@redhat.com>
4173 * toplev.c: Remove half-pic.
4174 * config/mips/mips.c: Ditto.
4175 * config/mips/mips.h: Ditto. Remove unused defines.
4176 * config/mips/openbsd.h: Update comment to reflect above.
4177 * config/mips/mips.md: Remove half-pic constraints.
4178 * halfpic.h: Delete.
4181 2002-06-05 Jeffrey Law <law@redhat.com>
4183 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
4184 rejects (mem (lo_sum (reg) (unspec))), but will allow
4185 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
4187 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4189 * cpphash.h (_cpp_create_definition): Update prototype.
4190 (_cpp_push_text_context, _cpp_create_trad_definition): New.
4191 ( cpp_lex_identifier_trad): New.
4192 (_cpp_set_trad_context): New.
4193 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
4194 * cpplib.c (SEEN_EOL): Update.
4195 (lex_macro_node): Update for -traditional.
4196 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
4197 * cppmacro.c (_cpp_create_definition): Split into
4198 create_iso_definition() and _cpp_create_trad_definition().
4199 (warn_of_redefinition): Update prototype; handle traditional
4201 (_cpp_push_text_context): New.
4202 * cpptrad.c (skip_whitespace, push_replacement_text): New.
4203 (lex_identifier): Call ht_lookup with correct start.
4204 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
4205 _cpp_set_trad_context): New.
4206 (scan_out_logical_line): Update to handle changing contexts.
4208 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
4210 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
4212 * config/sh/t-be (MULTILIB_ENDIAN): Set.
4213 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
4214 * t-sh (MULTILIB_ENDIAN): Set.
4215 (MULTILIB_OPTIONS): Use it.
4216 * t-sh64 (MULTILIB_OPTIONS): Likewise.
4217 (MULTILIB_DIRNAMES): Likewise.
4219 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
4221 * toplev.h (report_error_function): Remove.
4223 * diagnostic.h (location_t): New datatype.
4224 (text_info): Likewise.
4225 (diagnostic_info): Likewise.
4226 (output_prefix): New macro.
4227 (diagnostic_last_function_changed): Likewise.
4228 (diagnostic_set_last_function): Likewise.
4229 (diagnostic_last_module_changed): Likewise.
4230 (diagnostic_set_last_module): Likewise.
4231 (report_diagnostic): Now macro.
4232 (diagnostic_set_info): Declare.
4234 * diagnostic.c (report_problematic_module): Rename to
4235 diagnostic_repor_current_module.
4236 (set_diagnostic_context): Remove.
4237 (count_error): Rename to diagnostic_error_count.
4238 (error_function_changed): Remove.
4239 (record_last_error_function): Likewise.
4240 (error_module_changed): Likewise.
4241 (record_last_error_module): Likewise.
4242 (context_as_prefix): Rename to diagnostic_build_prefix.
4243 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4244 (diagnostic_set_info): New function.
4246 * objc/objc-act.c: #include diagnostic.h
4247 (error_with_ivar): Adjust call to count_error.
4248 (warn_with_method): Likewise.
4249 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4251 2002-06-05 Bob Wilson <bob.wilson@acm.org>
4253 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4254 lang_hooks.types.make_type instead of make_node; set up
4255 __va_list_tag type decl.
4256 (xtensa_builtin_saveregs): Remove broken use of
4257 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4258 for saved registers; add varargs alias set.
4260 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4263 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4264 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4265 CPP_PREDEFINES and part of CPP_SPEC.
4266 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4267 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4269 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
4271 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4273 2002-06-05 Alan Modra <amodra@bigpond.net.au>
4275 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4277 2002-06-04 Zack Weinberg <zack@codesourcery.com>
4279 * gengtype-yacc.y: Make sure all rules end with a semicolon.
4281 2002-06-04 Bob Wilson <bob.wilson@acm.org>
4283 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4284 typo in function prototype and include "ggc.h" header.
4286 2002-06-04 Richard Henderson <rth@redhat.com>
4288 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4289 (print_operand) ['U']: Likewise.
4290 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4291 (alpha_expand_unaligned_store_words): Likewise.
4292 (alpha_expand_builtin_vector_binop): Fix typo.
4293 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4294 umulh, and cix insns.
4295 (one_arg_builtins): Add cix builtins.
4296 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4297 (alpha_expand_builtin): Fix typo in arity.
4298 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4299 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4300 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4301 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4302 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4303 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4304 builtin_ctlz, builtin_ctpop): New.
4305 * doc/extend.texi (Alpha Built-in Functions): Update.
4307 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
4309 * gengtype.c (write_gc_root): Don't unnecessarily prevent
4310 global variable-length arrays being roots.
4312 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4313 * configure.in (config_gtfiles): New variable.
4314 (all_gtfiles): Initialise from config_gtfiles.
4315 * configure: Regenerate.
4317 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4320 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4321 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4322 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4323 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4324 win32.h (CPP_SPEC): Remove cpp_cpu.
4325 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4326 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4328 2002-06-04 Janis Johnson <janis187@us.ibm.com>
4330 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4332 2002-06-04 Jeff Law <law@redhat.com.
4333 David Edelsohn <edelsohn@gnu.org>
4334 Michael Matz <matz@kde.org>
4336 * sched-int.h (struct deps): New field libcall_block_tail_insn.
4337 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4338 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4339 is set, then mark the current insn as being part of a libcall
4341 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4343 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4344 insns against the issue rate.
4346 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
4348 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4349 * final.c (final_scan_insn): Likewise.
4350 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4351 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4352 * haifa-sched.c (unlink_other_notes): Likeewise.
4353 (reemit_notes): Likewise.
4354 * print-rtl.c (print_rtx): Likewise.
4355 * sched-deps (sched-analyze): Likewise.
4356 * rtl.c (note_insn_name): Likewise.
4357 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4358 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4361 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4363 * varasm.c (mark_constants): Handle RTX format 'B'.
4365 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4367 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4368 (struct cpp_context): Add traditional fields.
4369 * cppmacro.c (paste_all_tokens, push_ptoken_context,
4370 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4371 * cpptrad.c (skip_comment, lex_identifier,
4372 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4374 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
4376 * gbl-ctors.h: Fix formatting.
4378 * gccspec.c: Likewise.
4380 * gcov-io.h: Likewise.
4382 * ggc-common.c: Likewise.
4384 * ggc-page.c: Likewise.
4385 * ggc-simple.c: Likewise.
4386 * global.c: Likewise.
4387 * graph.h: Likewise.
4388 * gthr-dce.h: Likewise.
4390 * gthr-posix.h: Likewise.
4391 * gthr-rtems.h: Likewise.
4392 * gthr-solaris.h: Likewise.
4393 * gthr-win32.h: Likewise.
4395 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
4397 Merge from pch-branch:
4399 * gengtype.h (UNION_OR_STRUCT_P): New macro.
4400 * gengtype.c (write_gc_structure_fields): Use it.
4401 (write_gc_root): Use it here too.
4403 * gengtype.c (write_gc_structure_fields): Assume that lengths
4404 of typenames fit into an 'int'; don't pass a size_t to "%d" in
4406 (write_gc_marker_routine_for_structure): Likewise.
4407 (write_gc_types): Likewise.
4408 (write_gc_root): Likewise.
4410 * varray.h (VARRAY_CLEAR): New.
4411 (varray_clear): Prototype.
4412 * varray.c (varray_clear): New.
4413 * cselib.c (reg_values_old): New.
4414 (used_regs_old): New.
4415 (cselib_init): Use cached varrays if available to avoid
4416 generating large amounts of garbage.
4417 (cselib_finish): Don't throw away old varrays.
4419 * final.c (insn_addresses_): Move out of ifdef.
4421 * varray.c (uses_ggc): Make more varray kinds GCable.
4422 * varray.h (union varray_data_tag): Let gengtype see
4423 fields 'generic' and 'te'.
4424 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4425 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4426 (reg_to_stack): Don't call VARRAY_FREE.
4427 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4428 (insn_addresses_): Use gengtype to mark.
4429 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4430 pointers; handle generic pointers in unused union fields.
4431 (get_output_file_with_visibility): Include cselib.h,
4432 insn-addr.h in gtype-desc.c.
4433 * function.c (prologue): Use gengtype to mark.
4434 (epilogue): Likewise.
4435 (sibcall_epilogue): Likewise.
4436 * dependence.c: Include gt-dependence.h, ggc.h.
4437 (struct def_use): Use gengtype to mark.
4438 (struct loop): Likewise.
4439 (struct induction): Likewise.
4440 (struct dependence): Likewise.
4441 (def_use_chain): Likewise.
4442 (dep_chain): Likewise.
4443 (loop_chain): Likewise.
4444 (induction_chain): Likewise.
4445 (init_dependence_analysis): Don't free anything, just clear pointers.
4446 (build_def_use): Use GGC to allocate def_use.
4447 (add_loop): Use GGC to allocate loop.
4448 (find_induction_variable): Use GGC to allocate induction.
4449 (check_node_dependence): Use GGC to allocate induction, dependence.
4450 (dump_node_dependence): Don't free varrays.
4451 (end_dependence_analysis): Likewise.
4452 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4453 (struct elt_loc_list): Likewise.
4454 (struct elt_list): Likewise.
4455 * cselib.c: Don't include obstack.h.
4456 (hash_table): Use gengtype to mark.
4457 (reg_values): Use gengtype to mark.
4458 (used_regs): Use gengtype to mark.
4459 (cselib_obstack): Delete.
4460 (cselib_startobj): Delete.
4461 (empty_vals): Mark as deletable.
4462 (empty_elt_lists): Mark as deletable.
4463 (empty_elt_loc_lists): Mark as deletable.
4464 (new_elt_list): Use GGC to allocate struct elt_list.
4465 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4466 (clear_table): Don't delete obstack; don't unnecessarily clear
4467 deletable variables.
4468 (new_cselib_val): Use GGC to allocate struct cselib_val.
4469 (cselib_init): Don't set up obstacks. Use GGC to allocate
4471 (cselib_finish): Just clear variables, don't free anything.
4472 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4473 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4474 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4475 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4476 (gt-reg-stack.h): New rule.
4477 (gt-dependence.h): New rule.
4478 (gtype-desc.o): Add cselib.h, insn-addr.h.
4480 * varray.c: Use only necessary headers.
4481 (element_size): New.
4483 (varray_init): Take type, not size. Use GGC if appropriate.
4484 (varray_grow): Update for change to struct varray_head_tag.
4485 Use GGC if appropriate.
4486 * varray.h (struct const_equiv_data): Use gengtype.
4487 (enum varray_data_enum): New.
4488 (union varray_data_tag): Use gengtype.
4489 (struct varray_head_tag): Use gengtype. Replace size field with
4490 enum varray_data_enum.
4491 (varray_init): Update prototype.
4492 (VARRAY_SCHED_INIT): Delete.
4493 (VARRAY_*_INIT): Update for change to varray_init.
4494 (VARRAY_SCHED): Delete.
4495 (VARRAY_PUSH_SCHED): Delete.
4496 (VARRAY_TOP_SCHED): Delete.
4497 * tree.h: Update for change to length specifier.
4498 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4499 (clone_body): Likewise.
4500 * ssa.h (ssa_definition): Use gengtype to mark.
4501 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4502 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4503 * rtl.h (struct rtvec_def): Update for change to length specifier.
4504 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4505 (struct initial_value_struct): Update for change to length specifier.
4506 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4507 (ggc_add_tree_varray_root): Delete prototype.
4508 (ggc_mark_rtx_varray): Delete prototype.
4509 (ggc_mark_tree_varray): Delete prototype.
4510 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4511 (ggc_add_tree_varray_root): Delete.
4512 (ggc_mark_rtx_varray): Delete.
4513 (ggc_mark_tree_varray): Delete.
4514 (ggc_mark_rtx_varray_ptr): Delete.
4515 (ggc_mark_tree_varray_ptr): Delete.
4516 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4517 (create_varray): Delete prototype.
4518 * gengtype.c (varrays): Delete.
4519 (create_varray): Delete.
4520 (adjust_field_type): Detect array of string pointers.
4521 (process_gc_options): Remove code to handle varray_type option.
4522 (set_gc_used_type): Remove TYPE_VARRAY case.
4523 (output_escaped_param): New.
4524 (write_gc_structure_fields): Use output_escaped_param on all
4525 parameters. Handle 'skip' with 'use_param' option. Handle
4526 arrays of strings. Remove TYPE_VARRAY handling.
4527 (write_gc_roots): Use boolean to detect 'length' option.
4528 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4529 (struct_fields): Call adjust_field_type on array fields.
4530 (type): Remove VARRAY_TYPE case.
4531 (type_option): Likewise.
4532 * gengtype-lex.l: Don't consider varray_type a keyword.
4533 * function.h: Update for change to length specifier.
4534 (free_eh_status): Delete prototype.
4535 * function.c (free_after_compilation): Don't call free_eh_status.
4536 (reorder_blocks): Don't use VARRAY_FREE.
4537 * except.c (struct eh_status): Update for change to length specifier.
4538 remove varray_type specifier.
4539 (free_eh_status): Delete.
4540 * dwarf2out.c: Include gt-dwarf2out.h.
4541 (used_rtx_varray): Use gengtype to mark, move
4543 (incomplete_types): Likewise.
4544 (decl_scope_table): Likewise.
4545 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
4546 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4547 * c-tree.h (struct lang_type): Update for change to length specifier.
4548 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4549 * c-objc-common.c: Include gt-c-objc-common.h.
4550 (deferred_fns): Mark for gengtype.
4551 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4552 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4553 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4554 (gtype-desc.o): Update dependencies.
4555 (dwarf2out.o): Add gt-dwarf2out.h.
4556 (varray.o): Update dependencies.
4557 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4558 (gt-c-objc-common.h): New rule.
4559 (gt-dwarf2out.h): New rule.
4560 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4562 * doc/gty.texi (GTY Options): Correct spelling.
4563 (GGC Roots): Likewise.
4564 * Makefile.in (TEXI_CPP_FILES): New.
4565 (TEXI_GCC_FILES): New.
4566 (TEXI_GCCINT_FILES): New.
4567 (TEXI_CPPINT_FILES): New.
4568 ($(docdir)/cpp.info): Use new macros.
4569 ($(docdir)/gcc.info): Likewise.
4570 ($(docdir)/gccint.info): Likewise.
4571 ($(docdir)/cppinternals.info): Likewise.
4572 (cpp.dvi): Likewise.
4573 (gcc.dvi): Likewise.
4574 (gccint.dvi): Likewise.
4575 (cppinternals.dvi): Likewise.
4577 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4578 * doc/gccint.texi (Top): Include gty.texi.
4579 * doc/gty.texi: New file.
4581 * bitmap.c: Include ggc.h, gt-bitmap.h.
4582 (bitmap_ggc_free): New.
4583 (bitmap_elem_to_freelist): New.
4584 (bitmap_element_free): Use bitmap_elem_to_freelist.
4585 (bitmap_element_allocate): Allow use of GGC.
4586 (bitmap_clear): Use bitmap_elem_to_freelist.
4587 (bitmap_copy): Update for change to bitmap_element_allocate.
4588 (bitmap_set_bit): Likewise.
4589 (bitmap_operation): Update for changes elsewhere.
4590 (bitmap_initialize): Allow to create bitmaps that will use GGC.
4591 * bitmap.h (struct bitmap_element_def): Use gengtype.
4592 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
4593 (bitmap_initialize): Add extra parameter.
4594 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4595 (BITMAP_ALLOCA): Delete.
4596 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4597 (BITMAP_GGC_ALLOC): New.
4598 * Makefile.in (gtype-desc.o): Add bitmap.h.
4599 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4600 (GTFILES): Add bitmap.c.
4601 (gt-bitmap.h): New rule.
4602 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4603 * basic-block.h: Update for changes to bitmap_initialize.
4604 * except.c (exception_handler_label_map): Move into...
4605 (struct eh_status): Here.
4606 (struct eh_region): Make 'aka' GCable.
4607 (free_eh_status): Don't need to specially handle
4608 exception_handler_label_map.
4609 (add_ehl_entry): Update for changes to exception_handler_label_map.
4610 (find_exception_handler_labels): Likewise.
4611 (remove_exception_handler_label): Likewise.
4612 (maybe_remove_eh_handler): Likewise.
4613 (for_each_eh_label): Likewise.
4614 (remove_eh_handler): Allocate 'aka' using GGC.
4615 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4616 to list of includes.
4618 * gengtype.c (write_gc_marker_routine_for_structure): Name
4619 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
4620 (write_gc_types): Arrange for the tests with NULL to be inlined.
4621 (write_gc_roots): Update uses of procedure pointers.
4622 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4624 * Makefile.in (explow.o): Add dependency on gt-explow.h.
4625 (sdbout.o): Add dependency on gt-sdbout.h.
4627 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4628 (mem_attrs_htab): Likewise.
4629 (init_emit_once): Don't call ggc_add_deletable_htab.
4630 * fold-const.c (size_htab): Use gengtype to clear unused entries.
4631 (size_int_type_wide): Don't call ggc_add_deletable_htab.
4632 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
4633 parameters, use them, change callers.
4634 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
4635 (write_gc_roots): Handle 'if_marked' option.
4636 (main): Don't need to call set_gc_used_type any more.
4637 * ggc.h (ggc_htab_marked_p): Delete.
4638 (ggc_htab_mark): Delete.
4639 (struct ggc_cache_tab): New.
4640 (gt_ggc_cache_rtab): New declaration.
4641 * ggc-common.c (struct d_htab_root): Delete.
4642 (d_htab_roots): Delete.
4643 (ggc_add_deletable_htab): Delete.
4644 (ggc_htab_delete): Handle new htab-deleting mechanism.
4645 (ggc_mark_roots): Use new htab-deleting mechanism.
4646 * tree.c (type_hash_table): Use gengtype to clear unused entries.
4648 (init_obstacks): Don't call ggc_add_deletable_htab.
4650 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
4651 (struct hashed_entry): Likewise.
4652 (nst_method_hash_list): Likewise.
4653 (cls_method_hash_list): Likewise.
4654 (HASH_ALLOC_LIST_SIZE): Delete.
4655 (ATTR_ALLOC_LIST_SIZE): Delete.
4656 * objc/objc-act.c (hash_init): Use ggc to allocate
4657 nst_method_hash_list, cls_method_hash_list.
4658 (hash_enter): Use ggc to allocate; allocate one entry at a time.
4659 (hash_add_attr): Likewise.
4660 (ggc_mark_hash_table): Delete.
4661 (objc_act_parse_init): Delete.
4662 (objc_init): Delete reference to objc_act_parse_init.
4663 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
4664 obstack.h. Replace references to 'struct hash_table' with htab_t.
4665 (struct symbol_hash_entry): Replace hash header with key field.
4666 (struct file_hash_entry): Replace hash header with key field.
4667 (struct demangled_hash_entry): Replace hash header with key field.
4668 (hash_string_eq): New.
4669 (hash_string_hash): New.
4670 (symbol_hash_newfunc): Delete.
4671 (symbol_hash_lookup): Modify to use htab_t.
4672 (file_hash_newfunc): Delete.
4673 (file_hash_lookup): Modify to use htab_t.
4674 (demangled_hash_newfunc): Delete.
4675 (demangled_hash_lookup): Modify to use htab_t.
4676 (tlink_init): Modify to use htab_t.
4679 * ggc.h: Delete forward structure declarations.
4680 Delete prototypes for deleted functions.
4681 * ggc-common.c: Don't include hash.h.
4682 (ggc_add_tree_hash_table_root): Delete.
4683 (ggc_mark_tree_hash_table_entry): Delete.
4684 (ggc_mark_tree_hash_table): Delete.
4685 (ggc_mark_tree_hash_table_ptr): Delete.
4686 * gengtype.c (write_gc_structure_fields): Allow param_is option.
4687 (write_gc_marker_routine_for_structure): Use visibility of
4688 the parameter if there is one.
4689 * function.c: Replace hash.h with hashtab.h. Replace references
4690 to 'struct hash_table *' with htab_t.
4691 (struct insns_for_mem_entry): Include a plain key.
4692 (fixup_var_refs_insns_with_hash): Update to use htab_t.
4693 (insns_for_mem_newfunc): Delete.
4694 (insns_for_mem_hash): Update to use htab_t.
4695 (insns_for_mem_comp): Likewise.
4696 (insns_for_mem_walk): Likewise.
4697 * c-lang.c: Include ggc.h.
4698 * Makefile.in (OBJS): Remove hash.o.
4699 (c-lang.o): Add GGC_H.
4700 (COLLECT2_OBJS): Remove hash.o.
4701 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
4702 (ggc-common.o): Remove hash.h.
4703 (function.o): Remove hash.h, add HASHTAB_H.
4704 (genautomata.o): Remove hash.h, add HASHTAB_H.
4706 * varasm.c (mark_const_str_htab_1): Delete.
4707 (mark_const_str_htab): Delete.
4708 (const_str_htab_del): Delete.
4709 (const_str_htab): Use gengtype to mark.
4710 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
4712 * tree.c (mark_tree_hashtable_entry): Delete.
4713 (mark_tree_hashtable): Delete.
4714 * tree.h (mark_tree_hashtable): Delete prototype.
4715 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
4716 (ggc_mark): Likewise.
4718 (htab_create_ggc): New.
4719 * ggc-common.c (ggc_calloc): New.
4720 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
4721 (struct type): Add param_struct structure.
4722 * gengtype.c (param_structs): New.
4723 (adjust_field_type): Handle param_is option.
4724 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
4725 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
4726 (write_gc_structure_fields): Add new PARAM parameter. Update
4727 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
4728 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
4729 Use it to generate function name. Update callers.
4730 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
4732 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
4734 (main): Define PTR as pointer-to-scalar. Don't specially
4735 mark deferred_string or ehl_map_entry.
4736 * gengtype-yacc.y (PARAM_IS): Add new token.
4737 (externstatic): Use adjust_field_type.
4738 (type_option): Add PARAM_IS.
4739 * gengtype-lex.l: Add rule for typedef of function pointers.
4740 Add rule for PARAM_IS.
4741 (IWORD): Add size_t.
4742 * except.c (exception_handler_label_map): Use gengtype to mark.
4743 (type_to_runtime_map): Likewise.
4744 (mark_ehl_map_entry): Delete.
4745 (mark_ehl_map): Delete.
4746 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
4747 (t2r_mark_1): Delete.
4749 * Makefile.in (gtype-desc.o): Correct dependencies.
4750 (GTFILES): Add hashtab.h.
4751 (genautomata.o): Actually uses hashtab.h.
4753 * Makefile.in (stringpool.o): Add $(GGC_H).
4754 (dwarf2asm.o): Likewise.
4755 (GTFILES): Add hashtable.h.
4756 * c-common.h (struct c_common_identifier): Use gengtype.
4757 * c-decl.h (c_mark_tree): Delete.
4758 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4759 * c-tree.h (struct lang_identifier): Use gengtype.
4760 (union lang_tree_node): New.
4761 (c_mark_tree): Delete prototype.
4762 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
4764 * gengtype-lex.l (IWORD): Allow 'bool'.
4766 * gengtype-yacc.y (ALIAS): New token.
4767 (type_option): New rule.
4768 (option): Use type_option.
4769 * gengtype.c (process_gc_options): New.
4770 (set_gc_used_type): Use it.
4771 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
4772 Add new variable 't' to hold the type of the field being processed.
4773 Add more error checking. Use UNION_P when looking at 'desc' option.
4774 Handle language-specific structures containing other
4775 language-specific structures.
4776 (write_gc_types): Handle 'ptr_alias' option.
4777 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
4778 * ggc-common.c (ggc_pending_trees): Delete.
4779 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
4780 (ggc_mark_trees): Delete.
4781 (gt_ggc_m_tree_node): Delete.
4782 * ggc.h (ggc_pending_trees): Delete.
4783 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
4784 * hashtable.h (ht_identifier): Use gengtype.
4785 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
4786 * langhooks.h (struct lang_hooks): Delete mark_tree.
4787 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
4789 * system.h: Poison LANG_HOOKS_MARK_TREE.
4790 * tree.c (tree_node_structure): New.
4791 * tree.h (struct tree_common): Use gengtype.
4792 (struct tree_int_cst): Likewise.
4793 (struct tree_real_cst): Likewise.
4794 (struct tree_string): Likewise.
4795 (struct tree_complex): Likewise.
4796 (struct tree_vector): Likewise.
4797 (struct tree_identifier): Likewise.
4798 (struct tree_list): Likewise.
4799 (struct tree_vec): Likewise.
4800 (struct tree_exp): Likewise.
4801 (struct tree_block): Likewise.
4802 (struct tree_type): Likewise.
4803 (struct tree_decl): Likewise.
4804 (enum tree_structure_enum): New.
4805 (union tree_node): Use gengtype, with an alias.
4806 (tree_node_structure): Prototype.
4807 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4809 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
4810 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
4811 to LANG_HOOKS_FUNCTION_FINAL.
4812 * Makefile.in (GTFILES): Add bitmap.h.
4813 * except.c (struct eh_region): Mark field 'aka' to be skipped.
4815 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
4816 (alpha_init_machine_status): Give proper type.
4817 * Makefile.in (c-lang.o): Depend on gtype-c.h.
4818 (optabs.o): Depend on gt-optabs.h.
4819 (GTFILES): Add optabs.o.
4820 (gt-optabs.h): Add rule.
4821 * optabs.c: Include gt-optabs.h.
4823 * gengtype.c (set_gc_used_type): Correct some errors in last change.
4824 (write_gc_structure_fields): If a field which should be NULL is
4826 * c-pragma.c: Move struct align_stack and variable alignment_stack
4829 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
4830 * config/xtensa/xtensa.c: Include gt-cris.h.
4831 (struct machine_function): Use gengtype to mark.
4832 * config/mmix/mmix.h (struct machine_function): Use gengtype
4834 * config/cris/t-cris: Add dependencies for gt-cris.h.
4835 * config/cris/cris.c: Include gt-cris.h.
4836 (struct machine_function): Use gengtype to mark.
4837 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
4839 * doc/tm.texi (Per-Function Data): Delete references to
4840 mark_machine_status.
4841 * config/ia64/ia64.c (ia64_override_options): Don't set
4842 mark_machine_status.
4843 * config/i386/i386.c (override_options): Likewise.
4844 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
4845 * config/arm/arm.c (arm_init_expanders): Likewise.
4846 * config/alpha/alpha.c (override_options): Likewise.
4847 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
4848 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
4849 (write_gc_structure_fields): Don't handle 'really' option.
4850 Handle 'maybe_null' option.
4851 (write_gc_types): Handle 'maybe_null' option.
4852 * function.h (struct function): Don't use "really".
4853 (mark_machine_status): Delete declaration.
4854 (mark_lang_status): Delete declaration.
4855 (gt_ggc_mr_machine_function): Delete prototype.
4856 (gt_ggc_mr_language_function): Delete prototype.
4857 * function.c (mark_machine_status): Delete.
4858 (mark_lang_status): Delete.
4859 (gt_ggc_mr_machine_function): Delete.
4860 (gt_ggc_mr_language_function): Delete.
4861 * c-tree.h (mark_c_function_context): Delete prototype.
4862 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
4863 * c-decl.c (struct language_function): Rename from struct
4864 c_language_function. Update uses. Use gengtype to mark.
4865 (mark_c_function_context): Delete.
4866 * c-common.h (struct c_language_function): Rename from struct
4868 (mark_stmt_tree): Delete prototype.
4869 (c_mark_lang_decl): Delete prototype.
4870 (mark_c_language_function): Delete prototype.
4871 * c-common.c (mark_stmt_tree): Delete.
4872 (c_mark_lang_decl): Delete.
4873 (mark_c_language_function): Delete.
4875 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
4876 (lang_bitmap): New typedef. Use where appropriate.
4877 (struct type): Add gc_used field, lang_struct field.
4878 (UNION_P): New macro.
4879 (new_structure): New prototype.
4880 (find_structure): Remove 'pos' parameter. Change all callers.
4881 * gengtype-lex.l: Update for changes to find_structure.
4882 * gengtype-yacc.y (typedef_struct): Use new_structure.
4883 (yacc_ids): Suppress warning.
4884 (type): Use new_structure.
4885 * gengtype.c (string_type): Update for changes to struct type.
4886 (find_structure): Just find a structure, don't worry about
4888 (new_structure): New.
4889 (note_yacc_type): Use new_structure.
4890 (set_gc_used_type): New.
4892 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
4893 (write_gc_types): Handle TYPE_LANG_STRUCT.
4894 (write_gc_marker_routine_for_structure): New.
4895 (main): Call set_gc_used. Add some calls to set_gc_used_type
4896 for places where GCC doesn't use gengtype properly yet.
4897 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
4898 (gt_ggc_m_tree_node): Likewise.
4900 * varasm.c (copy_constant): Call expand_constant if we hit
4901 something we can't recognise.
4903 * ggc-common.c (ggc_mark_rtvec_children): Delete.
4904 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
4905 (lang_mark_false_label_stack): Delete.
4906 * rtl.h (struct rtvec_def): Use gengtype to mark.
4907 * ggc.h (ggc_mark_rtvec): Delete.
4908 (gt_ggc_m_rtvec_def): Delete.
4909 (ggc_mark_nonnull_tree): Delete.
4910 (ggc_mark_rtvec_children): Delete prototype.
4911 (lang_mark_false_label_stack): Delete declaration.
4913 * gengtype.h (note_yacc_type): Add prototype.
4914 * gengtype.c (note_yacc_type): New function.
4915 * gengtype-lex.l: Add lexer support for yacc files.
4916 * gengtype-yacc.y (start): Extract union from yacc files.
4917 (yacc_union): New rule.
4918 (yacc_typematch): New rule.
4919 (yacc_ids): New rule.
4920 (enum_items): Tweak for efficiency.
4921 (optionseq): Likewise.
4923 * c-common.h (struct language_function): Use gengtype.
4924 (struct c_lang_decl): Likewise.
4925 * c-tree.h (struct lang_decl): Likewise.
4926 (struct lang_type): Likewise.
4927 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
4928 tree language substructures.
4930 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
4932 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
4934 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
4936 * stmt.c (struct nesting): Add discriminator. Use gengtype to
4937 mark. Remove 'data.block.cleanup_ptr' field.
4938 (struct stmt_status): Use usual technique to mark struct nesting.
4939 (gt_ggc_mr_nesting_cond): Delete.
4940 (gt_ggc_mr_nesting_loop): Delete.
4941 (gt_ggc_mr_nesting_block): Delete.
4942 (gt_ggc_mr_nesting_case_stmt): Delete.
4943 (expand_start_cond): Set discriminator.
4944 (expand_start_loop): Likewise.
4945 (expand_start_null_loop): Likewise.
4946 (expand_start_bindings_and_block): Set discriminator. Don't set
4948 (expand_decl_cleanup): Replace 'cleanup_ptr' with
4949 &thisblock->data.block.cleanups.
4950 (expand_start_case): Set discriminator.
4951 (expand_start_case_dummy): Set discriminator.
4953 * ggc-callbacks.c: Remove.
4955 * gengtype.h (struct type): Add 'u.s.bitmap' field.
4956 (find_structure): Add 'pos' parameter.
4957 * gengtype-lex.l: Update callers to find_structure.
4958 * gengtype-yacc.y: Likewise.
4959 * gengtype.c (find_structure): Allow for structures to be defined
4960 in multiple language backends.
4961 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
4962 (counter): Rename to gc_counter.
4963 (write_gc_structure_fields): Fail when writing out fields for
4964 an incomplete structure. Ignore arrays of scalars. Handle
4966 (write_gc_types): Reset counter for each procedure written.
4968 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
4969 (free_case_nodes): Delete.
4970 (expand_end_case_type): Delete call to free_case_nodes.
4972 * Makefile.in (cselib.o): Include gt-<filename>.h.
4974 (profile.o): Likewise.
4975 (alias.o): Likewise.
4976 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
4977 alphabetize backend files.
4978 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
4979 * alias.c: Use gengtype for roots.
4980 * c-common.h (struct stmt_tree_s): Use gengtype.
4981 * c-decl.c: Use gengtype for roots.
4982 * cselib.c: Use gengtype for roots.
4983 * expr.c: Use gengtype for roots.
4984 * fold-const.c: Use gengtype for roots.
4985 * gcse.c: Use gengtype for roots.
4986 * gengtype-lex.l: Handle typedefs of function types.
4987 Allow for empty array bounds.
4988 Allow processing to stop on initialisers.
4989 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
4990 (semiequal): New rule.
4991 * gengtype.c (create_file): Tidy output files.
4992 (get_output_file_with_visibility): Fix paren warning. Fix bug
4993 involving multiple input files mapping to one output file.
4994 (write_gc_structure_fields): Skip arrays of scalars.
4995 (write_gc_types): Tidy output files.
4996 (write_gc_root): New function.
4997 (write_gc_roots): Fix bugs, add support for roots that are
4999 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
5000 (ggc_mark_tree_ptr): Delete.
5001 (ggc_add_rtx_root): Delete.
5002 (ggc_add_tree_root): Delete.
5003 (ggc_del_root): Delete.
5004 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
5005 allocate struct initial_value_struct.
5006 * profile.c: Use gengtype for roots.
5007 * sdbout.c: Use gengtype for roots.
5008 * varasm.c (mark_weak_decls): Delete unused prototype.
5009 (mark_const_hash_entry): Delete unused function.
5010 * config/darwin-protos.h: Use gengtype for roots.
5011 (machopic_add_gc_roots): Delete.
5012 * config/arm/arm.c: Use gengtype for roots.
5013 * config/arm/arm.h: Use gengtype for roots.
5014 * config/c4x/c4x-protos.h: Use gengtype for roots.
5015 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
5016 * config/d30v/d30v-protos.h: Use gengtype for roots.
5017 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
5018 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
5019 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
5020 * config/ia64/ia64-protos.h: Use gengtype for roots.
5021 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
5022 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
5023 * config/m68hc11/m68hc11.c (z_reg): Make global.
5024 (z_reg_qi): Make global.
5025 (m68hc11_add_gc_roots): Delete.
5026 * config/mcore/mcore-protos.h: Use gengtype for roots.
5027 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
5028 * config/mips/mips.c (mips_add_gc_roots): Delete.
5029 * config/mips/mips.h: Use gengtype for roots.
5030 * config/mmix/mmix.c (override_options): Use gengtype for roots.
5031 * config/mmix/mmix.h: Use gengtype for roots.
5032 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
5033 * config/mn10200/mn10200.h: Use gengtype for roots.
5034 * config/pa/pa.c: Use gengtype for roots, marking.
5035 (struct deferred_plabel): Use GGC, gengtype.
5036 (pa_add_gc_roots): Delete.
5037 (mark_deferred_plabels): Delete.
5038 * config/pj/pj-protos.h: Use gengtype for roots.
5039 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
5040 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
5041 machopic_add_gc_roots.
5042 * config/rs6000/rs6000.h: Use gengtype for roots.
5043 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
5044 (gt-darwin.h): Add rule.
5045 * config/sh/sh.c: Use gengtype for roots.
5046 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
5047 (gt-sh.h): Add rule.
5048 * config/sparc/sparc.c: Use gengtype for roots.
5049 (sparc_add_gc_roots): Delete.
5050 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
5051 (mark_ultrasparc_pipeline_state): Delete.
5052 * config/sparc/sparc.h: Use gengtype for roots.
5054 * Makefile.in (c-parse.o): Update dependencies.
5055 (c-common.o): Likewise.
5056 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
5057 Add dependencies for the files they generate.
5058 * c-common.c: Replace ggc_add_* uses with GTY annotations.
5059 * c-common.h: Likewise.
5060 * c-decl.c: Likewise.
5061 (gt_ggc_mp_binding_level): Delete.
5062 * c-lang.c: Include gtype-c.h.
5063 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
5065 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
5066 (gt_ggc_mp_align_stack): Delete.
5067 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
5068 * function.c: Replace ggc_add_* uses with GTY annotations.
5069 (gt_ggc_mp_function): Delete.
5070 * function.h: Replace ggc_add_* uses with GTY annotations.
5071 * gengtype.c (lang_names): New.
5072 (NUM_BASE_FILES): New.
5073 (open_base_files): Create language base files.
5075 (get_file_basename): New.
5076 (get_base_file_bitmap): New.
5077 (get_output_file_with_visibility): Rename from get_output_file.
5078 Add more mappings for various C/Objc filenames.
5079 (finish_root_table): New.
5080 (write_gc_roots): Handle dependencies and scoping properly.
5081 * gengtype.h: Add prototypes for new functions.
5082 * ggc-common.c (struct deletable_root): Delete.
5083 (deletables): Delete.
5084 (ggc_add_deletable_root): Delete.
5085 (ggc_mark_roots): No need to deal with deleted functionality.
5086 * ggc.h (ggc_add_deletable_root): Delete prototype.
5087 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
5088 (gtype-objc.h): Add rule to create.
5089 * objc/config-lang.in (gtfiles): New.
5090 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
5091 ggc_add_* with GTY markers. Include gtype-objc.h.
5092 (ggc_mark_imp_list): Delete.
5093 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
5094 * objc/objc-lang.c: Random Whitespace Change.
5096 * except.h (exception_handler_labels): Delete.
5097 (get_exception_handler_labels): New.
5098 * except.c (exception_handler_labels): Delete.
5099 (struct eh_status): Add exception_handler_labels field.
5100 (doing_eh): Don't add exception_handler_labels as root.
5101 (free_eh_status): Don't need to free exception_handler_labels.
5102 (get_exception_handler_labels): New.
5103 (find_exception_handler_labels): Update for move of
5104 exception_handler_labels.
5105 (remove_exception_handler_label): Likewise.
5106 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
5107 * jump.c (rebuild_jump_labels): Likewise.
5108 * loop.c (find_and_verify_loops): Likewise.
5109 * sched-rgn.c (is_cfg_nonregular): Likewise.
5111 * gengtype.c (write_gc_structure_fields): Handle variable-length
5114 * varasm.c (struct weak_syms): Use GGC, gengtype.
5115 (mark_weak_decls): Delete.
5116 (weak_decls): Likewise.
5117 (add_weak): Likewise.
5118 (remove_from_pending_weak_list): Likewise.
5119 (init_varasm_once): Likewise.
5121 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
5122 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
5123 stor-layout.c, regclass.c, and lists.c.
5124 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
5125 gt-regclass.h and gt-lists.h on s-gtype.
5126 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
5127 * except.c: Use gengtype for roots.
5128 * explow.c: Use gengtype for roots. Include gt-explow.h.
5129 * expr.h (init_stor_layout_once): Delete prototype.
5130 * function.c: Use gengtype for roots.
5131 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
5132 * gengtype-yacc.y (start): Can also be an externstatic.
5133 (externstatic): New production.
5134 (struct_fields): Correct array bounds inversion for 2-d arrays.
5135 * gengtype.c (variables): New variable.
5136 (note_variable): New function.
5137 (get_output_file): Include libfuncs.h into gtype-desc.c.
5138 (get_output_file_name): New function.
5139 (write_gc_structure_fields): Suppress warnings.
5140 (write_gc_types): Make static.
5141 (put_mangled_filename): New function.
5142 (write_gc_roots): New function.
5143 (main): Call write_gc_roots.
5144 * gengtype.h (note_variable): Prototype.
5145 (get_output_file_name): Prototype.
5146 (write_gc_types): Delete prototype.
5147 * ggc.h: Clean up unnecessary structure predefinitions.
5148 (struct ggc_root_tab): Define.
5149 (gt_ggc_m_rtx_def): Make function, not macro.
5150 (gt_ggc_m_tree_node): Likewise.
5151 * libfuncs.h: Use gengtype for roots.
5152 * lists.c: Use gengtype for roots. Include gt-lists.h.
5153 (init_EXPR_INSN_LIST_cache): Delete.
5154 * optabs.c: Use gengtype for roots.
5155 (gt_ggc_mp_optab): Delete.
5156 * optabs.h: Use gengtype for roots.
5157 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
5158 * rtl.h: Use gengtype for roots.
5159 (init_EXPR_INSN_LIST_cache): Delete prototype.
5160 * stor-layout.c: Use gengtype for roots.
5161 Include gt-stor-layout.h.
5162 (init_stor_layout_once): Delete.
5163 * toplev.c: Use gengtype for roots. Delete calls to deleted
5165 * tree.c: Use gengtype for roots.
5166 * tree.h: Use gengtype for roots.
5167 * varasm.c: Use gengtype for roots.
5169 * Makefile.in (GTFILES): Add @all_gtfiles@.
5170 * configure: Regenerate.
5171 * configure.in: Construct all_gtfiles from the gtfiles definitions
5173 * gengtype-yacc.y (type): Warn about duplicate structure names.
5174 * gengtype.c (get_output_file): Handle .c files in language
5177 * Makefile.in (GTFILES): Run gengtype on all the config files
5178 and on the target .c file.
5179 * except.c (mark_eh_region): Delete.
5180 (init_eh_for_function): Use GGC on struct eh_status.
5181 (mark_eh_status): Delete.
5182 (free_eh_status): Use GGC.
5183 (expand_eh_region_start): Use GGC to
5184 (collect_eh_region_array): Allocate last_region_number using GGC.
5185 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
5186 (remove_eh_handler): Let GGC free struct eh_region.
5187 (add_call_site): Use GGC to reallocate call_site_record array.
5188 * function.c (init_machine_status): Update calling sequence.
5189 (mark_machine_status): Likewise.
5190 (mark_lang_status): Likewise.
5191 (prepare_function_start): Update init_machine_status call.
5192 (mark_function_status): Delete.
5193 (maybe_mark_struct_function): Delete.
5194 (ggc_mark_struct_function): Delete.
5195 (gt_ggc_mp_function): New.
5196 (gt_ggc_mr_machine_function): New.
5197 (gt_ggc_mr_language_function): New.
5198 (init_function_once): Use canonical names.
5199 * function.h (struct function): Use gengtype.
5200 (init_machine_status): Return the structure.
5201 (mark_machine_status): Take a 'void *'.
5202 (mark_lang_status): Likewise.
5203 * ggc-common.c (ggc_mark_trees): Use canonical name for
5204 ggc_mark_struct_function.
5205 * tree.h (ggc_mark_struct_function): Delete prototype.
5206 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
5207 (alpha_init_machine_status): Likewise.
5208 (override_options): Use canonical name for alpha_mark_machine_status.
5209 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
5210 * config/arm/arm.h (struct machine_function): Use gengtype.
5211 * config/arm/arm.c (arm_mark_machine_status): Delete.
5212 (arm_init_machine_status): Update calling sequence.
5213 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
5214 * config/cris/cris.c (cris_init_machine_status): Update
5216 * config/d30v/d30v.h (struct machine_function): Use gengtype.
5217 * config/d30v/d30v.c (d30v_init_machine_status): Update
5219 (d30v_mark_machine_status): Delete.
5220 * config/i386/i386.c: Include gt-i386.h.
5221 (struct machine_function): Use gengtype.
5222 (ix86_init_machine_status): Update calling sequence.
5223 (ix86_mark_machine_status): Delete.
5224 (override_options): Use canonical namke for ix86_mark_machine_status.
5225 * config/ia64/ia64.h (struct machine_function): Use gengtype.
5226 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
5228 (ia64_mark_machine_status): Delete.
5229 (ia64_override_options): Use canonical name for
5230 ia64_mark_machine_status.
5231 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
5233 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5234 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5235 * gengtype.c (get_output_file): Fix warning.
5236 (main): Add prototype to suppress warning.
5237 * tree.c: Remove tree_hash_mark prototype.
5239 * tree.h (init_stmt): Delete prototype.
5240 * toplev.c (lang_independent_init): Don't call init_stmt.
5241 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5242 (stmt_obstack): Delete.
5243 (POPSTACK): No need to free 'struct nesting'.
5244 (gt_ggc_mr_nesting_cond): Use canonical names.
5245 (gt_ggc_mr_nesting_loop): Use canonical names.
5246 (gt_ggc_mr_nesting_block): Use canonical names.
5247 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5248 (mark_stmt_status): Delete.
5249 (init_stmt): Delete.
5250 (clear_last_expr): Clear both last_expr_type and last_expr_value.
5251 Use it everywhere that last_expr_type was cleared.
5252 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5253 (zap_lists): Delete.
5254 * ggc.h (ggc_add_deletable_root): Prototype.
5255 (mark_stmt_status): Remove prototype.
5256 * ggc-common.c (ggc_add_deletable_root): New.
5257 (ggc_mark_roots): Handle deletable roots.
5258 * function.c (ggc_mark_struct_function): Use canonical name
5259 for mark_stmt_status.
5260 * emit-rtl.c (free_sequence_stack): New.
5261 (start_sequence): Use a freelist for sequences.
5262 (end_sequence): Likewise.
5263 (init_emit_once): Add free_sequence_stack as a deleteable root.
5264 * c-pragma.c Include gt-c-pragma.h.
5265 (struct align_stack): Use gengtype.
5266 (push_alignment): Use GGC for struct align_stack.
5267 (mark_align_stack): Delete.
5268 (gt_ggc_mp_align_stack): New.
5269 (init_pragma): Use canonical name for mark_align_stack.
5270 * c-decl.c: Include gt-c-decl.h.
5271 (struct binding_level): Use gengtype.
5272 (make_binding_level): Use GGC; handle the freelist here.
5273 (pop_binding_level): New.
5274 (pushlevel): Move code into make_binding_level.
5275 (push_label_level): Likewise.
5276 (poplevel): Move code into pop_binding_level.
5277 (pop_label_level): Likewise.
5278 (mark_binding_level): Delete.
5279 (gt_ggc_mp_binding_level): New.
5280 (c_init_decl_processing): Use canonical name for mark_binding_level.
5281 Add free_binding_level as deletable root.
5282 (mark_c_function_context): Use canonical name for mark_binding_level.
5283 * Makefile.in (c-decl.o): Add gt-c-decl.h.
5284 (c-pragma.o): Add gt-c-pragma.h.
5285 (GTFILES): Add c-decl.c and c-pragma.c.
5286 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5288 * tree.c (struct type_hash): Use gengtype.
5289 (init_obstacks): Use canonical name for type_hash_mark.
5290 (type_hash_mark): Delete.
5292 * rtl.h (struct mem_attrs): Use gengtype.
5293 * optabs.h (struct optab): Use gengtype.
5294 * optabs.c (expand_binop): Squish signed/unsigned warning.
5295 (mark_optab): Make local, use canonical name, use autogenerated
5297 (init_optabs): Use canonical name for mark_optab.
5298 (new_optab): Use GGC to allocate optabs.
5299 * ggc.h: Delete mark_optab prototype.
5300 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5301 mem_attrs marker procedure.
5302 * gengtype.c (get_output_file): Include headers in gtype-desc.c
5303 explicitly rather than deducing them from file names.
5304 (write_gc_structure_fields): Handle arrays of structures.
5305 (main): Return non-zero exit code if errors occur during output.
5306 * emit-rtl.c (mem_attrs_mark): Delete.
5307 (init_emit_once): Use canonical name for mem_attrs marker procedure.
5308 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5309 (tree.o): Depend on gt-tree.h.
5310 (GTFILES): Add rtl.h, optabs.h, tree.c.
5311 (gt-tree.h): Add it to s-gtype rule.
5313 * .cvsignore: Ignore gengtype flex/bison generated files.
5314 * Makefile.in (GGC_H): Add gtype-desc.h.
5315 (OBJS): Add gtype-desc.o.
5316 (GEN): Add gengtype.
5317 (STAGESTUFF): Add gengtype.
5318 (varasm.o): Add gt-varasm.h.
5319 (stmt.o): Add gt-stmt.h.
5320 (except.o): Add gt-except.h.
5321 (integrate.o): Add gt-integrate.h.
5323 Add new rules for new files.
5324 * configure: Regenerate.
5325 * configure.in: Correct defaults.h paths.
5326 * emit-rtl.c (mark_sequence_stack): Delete.
5327 (mark_emit_status): Delete.
5328 (start_sequence): Allocate sequence structures using GGC.
5329 (end_sequence): Allocate sequence structures using GGC.
5330 * except.c: Use gengtype for various structures. Include
5332 * expr.c (mark_expr_status): Delete.
5333 * function.c: Use gengtype for various structures. Include
5335 (mark_function_status): Use standard gt_ggc names for marker functions.
5336 (ggc_mark_struct_function): Likewise.
5337 * function.h: Use gengtype for various structures.
5338 * gengtype-lex.l: New file.
5339 * gengtype-yacc.y: New file.
5340 * gengtype.c: New file.
5341 * gengtype.h: New file.
5342 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
5343 the standard names. Remove some now-unnecessary prototypes.
5344 * integrate.c: Use gengtype for various structures. Include
5346 (mark_hard_reg_initial_vals): Delete.
5347 * integrate.h (mark_hard_reg_initial_vals): Delete.
5348 * stmt.c: Use gengtype for various structures. Include
5350 (mark_case_node): Delete.
5351 (mark_goto_fixup): Delete.
5352 (mark_stmt_status): Use standard gt_ggc names for marker functions.
5353 * system.h: Define GTY to empty. In flex/bison files,
5354 don't poison malloc or realloc, instead just define them to
5355 xmalloc and xrealloc.
5356 * varasm.c: Use gengtype for various structures. Include
5357 gt-varasm.h. Use standard gt_ggc names for marker functions.
5358 (mark_pool_constant): Delete.
5359 (mark_varasm_status): Delete.
5360 (decode_rtx_const): #if 0 out non-typesafe hack.
5362 * function.h (free_lang_status): Mark as obsolete.
5363 * function.c (free_lang_status): Mark as obsolete.
5364 * c-decl.c (push_c_function_context): Use GC to allocate and free
5365 struct language_function.
5366 (pop_c_function_context): Likewise.
5367 * c-common.c (mark_c_language_function): Mark struct
5370 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5371 Document that the machine_function structures must be allocated
5372 using GC. Update mark_machine_status documentation.
5373 * function.h: Don't declare free_machine_status.
5374 * function.c (free_machine_status): Don't define.
5375 (free_after_compilation): Don't call free_machine_status.
5376 (ggc_mark_struct_function): Mark f->machine. Call
5377 mark_machine_status only on non-NULL pointers.
5378 * system.h: Poison free_machine_status.
5379 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5380 struct machine_function.
5381 (xtensa_free_machine_status): Delete.
5382 (override_options): Don't set free_machine_status.
5383 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5384 free_machine_status.
5385 (rs6000_init_machine_status): Use GC on struct machine_function.
5386 (rs6000_free_machine_status): Delete.
5387 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5389 (ia64_mark_machine_status): Likewise.
5390 (ia64_free_machine_status): Delete.
5391 (ia64_override_options): Don't set free_machine_status.
5392 * config/i386/i386.c (override_options): Don't set
5393 free_machine_status.
5394 (ix86_init_machine_status): Use GC on struct machine_function.
5395 (ix86_mark_machine_status): Likewise.
5396 (ix86_free_machine_status): Delete.
5397 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5399 (d30v_mark_machine_status): Likewise.
5400 (d30v_free_machine_status): Delete.
5401 (d30v_init_expanders): Don't set free_machine_status.
5402 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5404 (arm_init_machine_status): Likewise.
5405 (arm_free_machine_status): Delete.
5406 (arm_init_expanders): Don't set free_machine_status.
5407 * config/alpha/alpha.c (override_options): Don't set
5408 free_machine_status.
5409 (alpha_init_machine_status): Use GC on struct machine_function.
5410 (alpha_mark_machine_status): Likewise.
5411 (alpha_free_machine_status): Delete.
5413 * varasm.c (compare_constant): Fix typo.
5415 * varasm.c: Don't include obstack.h.
5416 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5417 (struct rtx_const): Give substructures names, improve formatting.
5418 (struct constant_descriptor): Delete.
5419 (struct constant_descriptor_tree): New, based on constant_descriptor.
5420 (const_hash_table): Is a hash table of trees.
5421 (mark_const_hash_entry): Is used for hashes of trees. Mark
5422 constant_descriptor_tree structure.
5423 (mark_const_str_htab_1): Mark deferred_string structure.
5424 (compare_constant): Rewrite to compare trees.
5425 (compare_constant_1): Delete.
5426 (record_constant): Delete.
5427 (record_constant_1): Delete.
5428 (output_constant_def): Use struct constant_descriptor_tree.
5429 Don't duplicate trees twice.
5430 (struct constant_descriptor_rtx): New.
5431 (struct pool_constant): Used for rtx constants.
5432 (init_varasm_status): Update for change to struct varasm_status.
5433 (mark_varasm_status): Likewise.
5434 (free_varasm_status): Delete.
5435 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5436 (record_constant_rtx): Likewise.
5437 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5438 (force_const_mem): Likewise.
5439 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5440 * function.c (free_after_compilation): Don't use free_varasm_status.
5441 * function.h: Don't prototype free_varasm_status.
5443 * ggc-common.c (ggc_realloc): Handle X being NULL.
5445 * ggc-common.c (ggc_realloc): New function.
5446 * ggc.h: Prototype it.
5447 * emit-rtl.c (free_emit_status): Delete.
5448 (init_emit): Allocate emit subarrays using GC.
5449 (gen_reg_rtx): Reallocate subarrays using GC.
5450 (init_emit): Use GC to allocate 'struct emit_status' and its
5452 (mark_emit_status): Mark structure and its subarrays.
5453 * stmt.c (free_stmt_status): Delete.
5454 * expr.c (free_expr_status): Delete.
5455 * function.h: Remove prototypes for deleted functions.
5456 * function.c (free_after_compilation): Don't use deleted functions.
5457 Don't call free() on x_parm_reg_stack_loc.
5458 (free_after_parsing): Don't use free_stmt_status.
5459 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5460 (mark_function_status): Mark x_parm_reg_stack_loc.
5462 * varasm.c (init_varasm_status): Use GC to allocate
5463 'struct varasm_status' and its fields x_const_rtx_hash_table
5464 and x_const_rtx_sym_hash_table.
5465 (mark_varasm_status): Mark them.
5466 (free_varasm_status): Use GC to free them.
5467 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5468 (mark_expr_status): Mark the structure itself.
5469 (free_expr_status): Use GC to free the structure.
5470 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5471 (mark_stmt_status): Mark the 'struct stmt_status' itself.
5472 (init_stmt_for_function): Allocate the structure for GC.
5474 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5475 (equate_type_number_to_die): Likewise.
5476 * tree.h (TYPE_SYMTAB_DIE): New macro.
5477 (struct die_struct): Predeclare.
5478 (struct tree_type): Add field symtab.die. Add a tag
5479 to the union type of field symtab.
5481 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5482 'struct rtvec_def *', not 'struct rtvec_def'.
5484 * function.h (original_arg_vector): Make a real rtvec.
5485 * function.c (ggc_mark_struct_function): Adjust.
5486 * integrate.c (expand_inline_function): Adjust.
5488 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5490 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5491 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5492 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5493 (TARGET_VERSION_CPU): Define according to the
5495 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5497 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5498 if TARGET_SHMEDIA64.
5499 (LINK_DEFAULT_CPU_EMUL): Define according to the
5501 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5502 (SUBTARGET_LINK_SPEC): Define.
5503 (LINK_SPEC): Use SH_LINK_SPEC.
5505 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5506 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5507 and TARGET_SHMEDIA64 which abort, for now.
5508 * config/sh/t-netbsd-sh5: New file.
5509 * config/sh/t-netbsd-sh5-32: New file.
5510 * config/sh/t-netbsd-sh5-64: New file.
5512 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5513 Richard Henderson <rth@redhat.com>
5515 * config/alpha/alpha.c (reg_or_const_int_operand): New.
5516 (some_operand, input_operand): Accept CONST_VECTOR.
5517 (alpha_extra_constraint): Add 'W'.
5518 (alpha_expand_zap_mask): New.
5519 (alpha_expand_builtin_vector_binop): New.
5520 (enum alpha_builtin): New.
5521 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5522 (alpha_init_builtins, alpha_expand_builtin): New.
5523 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5524 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5525 (PREDICATE_CODES): Update.
5526 * config/alpha/alpha-protos.h: Update.
5527 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5528 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5529 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5530 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5531 (movv2si, movv2si_fix, movv2si_nofix): New.
5532 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5533 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5534 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5535 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5536 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5537 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5538 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5539 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5540 builtin_unpkbw, unpkbw): New.
5541 * doc/extend.texi (Alpha Built-in Functions): New.
5543 2002-06-03 Richard Henderson <rth@redhat.com>
5545 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5546 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5548 2002-06-03 Richard Henderson <rth@redhat.com>
5550 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5552 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5553 (const0_operand): New.
5554 (reg_or_fp0_operand, fp0_operand): Remove.
5555 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5556 * config/alpha/alpha-protos.h: Update.
5557 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5558 and fp0_operand with reg_or_0_operand and const0_operand.
5560 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5562 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5564 2002-06-03 Roger Sayle <roger@eyesopen.com>
5566 * gcse.c (cprop_jump): Use single_set to get the pattern
5567 from the setcc argument.
5569 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
5571 * diagnostic.h (diagnostic_count): Move from output_buffer to
5573 (diagnostic_kind_count): Adjust definition.
5575 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
5577 * except.c (except.c): Do not rebuild CFG.
5578 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5581 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5583 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5584 * toplev.c: Include cfglahout.h
5585 * Makefile.in (toplev.c): Add dependnecy.
5587 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
5589 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5590 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5591 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5593 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5595 * config/ns32k/netbsd.h: Update copyright years.
5596 (TARGET_OS_CPP_BUILTINS): Define.
5597 (CPP_PREDEFINES): Remove.
5598 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5599 (TARGET_CPU_CPP_BUILTINS): Define.
5601 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5603 * emit-rtl.c: Fix formatting.
5604 * errors.h: Likewise.
5605 * except.c: Likewise.
5606 * explow.c: Likewise.
5607 * expmed.c: Likewise.
5611 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5613 * config/h8300/elf.h: Fix formatting.
5614 * config/h8300/rtems.h: Likewise.
5616 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5618 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5620 2002-06-02 Tom Tromey <tromey@redhat.com>
5622 * fixinc/fixincl.x: Rebuilt.
5623 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5625 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5628 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5629 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
5633 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
5635 * final.c (final): Allow notes to not have computed addresses;
5636 kill no longer needed STACK_REGS ifdef.
5638 2002-06-02 Richard Henderson <rth@redhat.com>
5640 * gcse.c (bypass_conditional_jumps): Fix typo last change.
5642 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5644 * loop.c (emit_prefetch_instructions): Properly place the address
5647 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
5649 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
5650 (set_block_for_insn): Turn into macro.
5651 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
5652 * cfglayout.c (insn_scopes): Kill.
5653 (scope_to_insns_initialize): Do not use insn_scopes.
5654 (scope_to_insns_finalize): Likewise.
5655 (duplicate_insn_chain): Likewise.
5656 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
5657 * cfgrtl.c (basic_block_for_insn): Kill.
5658 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
5659 (create_basic_block_structure): Use reorder_insns.
5660 (compute_bb_for_insn): Do not use basic_block_for_insn.
5661 (merge_blocks_nomove): Likewise.
5662 (update_bb_for_insn): Likewise.
5663 (verify_flow_info): Likewise.
5664 (set_block_for_insn): Kill.
5665 * combine.c (try_combine): Update gen_rtx_INSN call.
5666 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
5667 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
5669 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
5670 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
5672 (emit_insns_after): Simplify.
5673 (emit_copy_of_insn_after): Copy scope.
5674 * final.c (final_start_function): Lower scopes.
5675 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
5676 * integrate.c (copy_insn_list): Cope scopes.
5677 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
5678 * loop.c (loop_optimize): Do not care block notes.
5679 * print-rtl.c (print_rtx): Print BB.
5680 * recog.c (apply_change_group): Simplify.
5681 * rtl.c (copy_rtx): Handle 'B'.
5682 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
5683 * rtl.h (Field accessors): Update indexes.
5684 * sched-ebb.c (schedule_ebbs): Do not lower notes.
5685 * sched-rgn.c (schedule_insns): Likewise.
5686 * toplev.c (rest_of_compilation): Lower notes.
5687 * unroll.c (unroll_loop): Do not care scoping notes.
5688 (copy_loop_body): Copy scopes.
5690 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5693 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5695 * rtems.h: Similarly.
5696 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
5697 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
5698 (TARGET_CPU_CPP_BUILTINS): Use.
5700 2002-06-02 Richard Henderson <rth@redhat.com>
5702 * alias.c: Include target.h.
5703 (mark_constant_function): Use targetm.binds_local_p instead
5704 of checking TREE_PUBLIC ourselves.
5705 * Makefile.in (alias.o): Add TARGET_H.
5707 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5709 * c-lex.c: Update copyright and file description.
5711 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5713 * config/fr30/fr30.h: Update to new CPP macros.
5715 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5717 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
5719 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5720 Zack Weinberg <zack@codesourcery.com>
5722 * c-common.c (c_common_init): Override cpplib's default
5723 warn_long_long setting.
5724 * c-lex.c (lex_number): Replace with interpret_integer,
5725 interpret_float, narrowest_unsigned_type and
5726 narrowest_signed_type, taking advantage of the new
5727 cpplib functionality.
5728 * cpperror.c (_cpp_begin_message): If a warning is turned
5729 into an error, avoid printing "warning:".
5730 * cppexp.c (cpp_num_sign_extend): New.
5731 * cppinit.c: Update comment.
5732 * cpplib.h (cpp_num_sign_extend): New.
5733 * tree.h: Update comment.
5735 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
5737 * diagnostic.h (struct diagnostic_context): Add new member
5739 (internal_error_function): Remove declaration.
5740 * diagnostic.c (internal_error_function): Remove definition..
5741 (internal_error): Adjust use.
5743 2002-06-02 Richard Henderson <rth@redhat.com>
5745 * rtl.h (CC0_P): New.
5746 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
5747 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
5748 (bypass_block): Save old dest block for dump text.
5749 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
5750 Allow only true SET insns, not single_set.
5752 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
5754 * diagnostic.c (diagnostic_finish): Rename to output_flush.
5755 (clear_disgnostic_info): Rename to output_clear_data. Use false
5756 instead of 0 for boolean value.
5757 Adjust function call throughout.
5759 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5761 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
5762 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
5764 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5766 * d30v.h (CPP_PREDEFINES): Replace with
5767 (TARGET_CPU_CPP_BUILTINS): New.
5769 2002-06-02 Roger Sayle <roger@eyesopen.com>
5771 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
5773 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
5775 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
5777 2002-06-02 Richard Henderson <rth@redhat.com>
5779 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
5781 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
5783 Support for C++ constructors/destructors.
5784 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
5785 instead of looping if main() returns.
5786 (asm_file_start): Output global symbols that cause .data and .bss
5787 initialization code to be linked in, unconditionally for now.
5788 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
5789 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
5790 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5792 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
5793 (__tablejump__): New.
5794 (__do_copy_data, __do_clear_bss): New.
5795 (__do_global_ctors, __do_global_dtors): New.
5796 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
5799 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5801 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
5802 (CPP_SPEC, CPP_PREDEFINES): Kill.
5803 * c4x/rtems.h (CPP_PREDEFINES): Kill.
5804 (TARGET_OS_CPP_BUILTINS): New.
5806 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
5808 * Makefile.in (tracer.o): New.
5809 * params.def (TRACER_*): New options.
5810 * rtl.h (tracer): Declare.
5811 * timevar.def (TV_TRACER): New.
5812 * toplev.c (dump_file_index): Add DFI_tracer.
5813 (dump_file_info): Add tracer.
5815 (lang_indepdenent_options): Add tracer.
5816 (rest_of_compilation): Call tracer.
5817 * tracer.c: New file.
5818 * invoke.texi (-ftracer): Document.
5819 (--param tracer-*): Document.
5821 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
5823 * tree-inline.c (expand_call_inline): Make the statement
5824 expression we generate have a COMPOUND_STMT.
5826 2002-06-01 Roger Sayle <roger@eyesopen.com>
5828 * gcse.c (cprop_cc0_jump): Function deleted.
5829 (cprop_jump): Take an additional argument which is the possibly
5830 NULL cc setting insn immediately before the conditional jump.
5831 When a MODE_CC set is present, substitute it into the JUMP_INSN
5832 before attempting the constant propagation.
5833 (cprop_insn): Recognize cc setters followed by conditional jumps
5834 as a special case. Use cprop_jump instead of cprop_cc0_jump.
5835 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
5836 (find_bypass_set): New function based upon find_avail_set used by
5837 cprop, but finds constant expressions available at the end of
5839 (bypass_block): New function. Given a basic block that begins
5840 with a conditional jump and multiple incoming edges, perform
5841 the jump bypass optimization.
5842 (bypass_conditional_jumps): New function. Call bypass_block with
5843 each suitable basic block in the CFG using a simple single pass.
5845 2002-06-01 Roger Sayle <roger@eyesopen.com>
5847 * tree.c (real_minus_onep): New function to test for -1.0.
5848 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
5850 2002-06-01 Roger Sayle <roger@eyesopen.com>
5852 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
5853 and "!p && !q" into "(p|q) == 0" under suitable conditions.
5855 2002-06-01 Andreas Jaeger <aj@suse.de>
5857 * cppexp.c (cpp_classify_number): Cast precission to int for
5858 correct printf format.
5860 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
5862 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
5863 expected, but don't really exist: atmega83, atmega85, attiny10.
5864 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
5865 emulations for all devices.
5866 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
5867 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
5869 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
5871 * config/h8300/h8300-protos.h: Add a prototype for
5872 h8300_shift_needs_scratch_p.
5873 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
5874 * config/h8300/h8300.h (OK_FOR_R): New.
5875 (OK_FOR_S): Likewise.
5876 (OK_FOR_T): Likewise.
5877 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
5878 * config/h8300/h8300.md (anonymous shift patterns): Use
5879 constraints R, S, and T.
5881 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5883 * basic-block.h (struct basic_block_def): New field loop_father.
5884 (BB_VISITED): New flag.
5885 (struct loop): New field pred, removed field shared.
5886 (struct loops): New field parray.
5887 (LOOP_EXITS_DOMS): Removed.
5888 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
5889 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
5890 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
5891 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
5892 verify_loop_structure): Declare.
5893 * cfg.c (entry_exit_blocks): Initialize loop_father field.
5894 * cfganal.c (dfs_enumerate_from): New function.
5895 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
5896 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5897 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
5898 flow_loop_dump, flow_loops_dump, flow_loops_free,
5899 flow_loop_tree_node_add, flow_loop_level_compute,
5900 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
5901 flow_loop_outside_edge_p): Modified for new infrastructure.
5902 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
5903 redirect_edge_with_latch_update, flow_loop_free): New static functions.
5904 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
5905 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
5906 find_common_loop, verify_loop_structure, loop_latch_edge,
5907 loop_preheader_edge): New functions.
5908 (flow_loops_cfg_dump): Do not show dominators, as this information
5909 does not remain up to date long.
5910 (flow_loops_find): Store results in new format.
5911 * predict.c (propagate_freq, estimate_probability,
5912 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
5915 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
5917 * except.c (nothrow_function_p): Walk epilogue delay list
5918 checking the insn, not the chain for potential throws.
5920 2002-05-31 Zack Weinberg <zack@codesourcery.com>
5922 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
5923 (install): Refer to install-cpp directly.
5924 (uninstall-cpp): Folded into uninstall rule.
5925 * configure.in: Delete all code relating to --disable-cpp.
5926 * configure: Regenerate.
5927 * config/t-install-cpp: Delete.
5929 2002-05-31 Richard Henderson <rth@redhat.com>
5931 * configure.in (HAVE_AS_TLS): Add alpha tests.
5932 * configure: Rebuild.
5933 * config/alpha/alpha.c (TARGET_AS_TLS): New.
5934 (alpha_tls_size, alpha_tls_size_string): New.
5935 (overide_options): Set it. Always install machine_status hooks.
5936 (input_operand): Accept got tls predicates.
5937 (local_symbol_p): Merge into ...
5938 (local_symbolic_operand): ... here. Reject tls symbols.
5939 (global_symbolic_operand): Likewise.
5940 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
5941 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
5942 (tp16_symbolic_operand, tp32_symbolic_operand): New.
5943 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
5944 (alpha_encode_section_info): Handle TLS symbols.
5945 (alpha_strip_name_encoding): Likewise.
5946 (alpha_legitimate_address_p): Likewise.
5947 (alpha_legitimize_address): Likewise.
5948 (alpha_expand_mov): Early exit to avoid nop moves.
5949 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
5950 (alpha_init_machine_status, alpha_mark_machine_status,
5951 alpha_free_machine_status): Always define.
5952 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5953 (print_operand, print_operand_address): Add TLS relocs.
5954 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
5955 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
5956 (TARGET_SWITCHES): Add -mtls-kernel.
5957 (alpha_tls_size, alpha_tls_size_string): New.
5958 (TARGET_OPTIONS): Add -mtls-size=.
5959 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
5960 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
5961 (ASM_OUTPUT_LABELREF): Skip %.
5962 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
5963 (PREDICATE_CODES): Update.
5964 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
5965 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
5966 UNSPEC_TP, UNSPECV_SET_TP): New.
5967 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
5968 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
5969 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
5970 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
5971 (call_value_osf_2_er): Accept anything as op4.
5972 * config/alpha/alpha-protos.h: Update.
5973 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
5975 2002-05-31 Zack Weinberg <zack@codesourcery.com>
5977 * cppinit.c (append_include_chain): Always pay attention to
5978 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
5981 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
5983 * target.h: Fix formatting.
5984 * timevar.h: Likewise.
5985 * tlink.c: Likewise.
5986 * toplev.c: Likewise.
5987 * toplev.h: Likewise.
5989 * tree-dump.h: Likewise.
5991 * tree-inline.h: Likewise.
5992 * unroll.c: Likewise.
5993 * unwind-dw2.c: Likewise.
5994 * unwind-dw2-fde.c: Likewise.
5995 * unwind-dw2-fde-glibc.c: Likewise.
5996 * unwind-dw2-fde.h: Likewise.
5997 * unwind.h: Likewise.
5998 * unwind-sjlj.c: Likewise.
5999 * varasm.c: Likewise.
6000 * varray.h: Likewise.
6001 * vmsdbg.h: Likewise.
6002 * vmsdbgout.c: Likewise.
6003 * xcoffout.h: Likewise.
6005 2002-05-31 Igor Shevlyakov <igor@microunity.com>
6007 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
6008 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
6010 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
6012 * gcc.c (cpp_unique_options): Remove "-d" options.
6013 (cpp_debug_options): New spec string.
6014 (default_compilers): Use it.
6015 * objc/lang-specs.h: Likewise.
6017 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
6019 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
6020 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
6021 * gcc/mklibgcc.in: Likewise.
6022 * gcc/config/arc/t-arc: Likewise.
6023 * gcc/configure.in: Likewise.
6024 * gcc/configure: Regenerate.
6026 2002-05-31 Stan Shebs <shebs@apple.com>
6027 Turly O'Connor <turly@apple.com>
6029 * c-decl.c (struct binding_level): Change int field n_incomplete
6030 to tree list incomplete_list.
6031 (clear_binding_level): Init field with NULL.
6032 (pushdecl): Add incomplete type to list.
6033 (mark_binding_level): Mark the incomplete list.
6034 (finish_struct): Scan the incomplete list for types instead
6035 of all decls in the current binding level.
6037 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6039 * pa.c (output_millicode_call): Add missing '%' characters.
6040 (output_call): Likewise.
6042 2002-05-31 David Edelsohn <edelsohn@gnu.org>
6044 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
6045 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6047 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
6049 * varasm.c (mark_constant_pool): Walk epilogue delay list
6050 checking the insn, not the chain for potential constants.
6052 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
6054 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
6056 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
6058 * i386.c (classify_argument): Properly handle base types.
6060 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
6061 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
6064 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6066 * gcse.c (gcse_emit_move_after): New.
6067 (pre_delete, hoist_store): Use it.
6069 * reload1.c (emit_input_reload_insns): Use constrain_operands
6070 instead of constraint_accepts_reg_p to verify optimization.
6071 (constraint_accepts_reg_p): Kill
6073 * reload1.c (reload_cse_delete_noop_set): Kill.
6074 (reload_cse_simplify): use delte_insn_and_edges.
6076 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6078 * cfgloop.c (flow_loops_find): Initialize first and last fields
6081 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
6083 * c-common.c (builtin_define_std): Correct logic.
6085 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6087 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
6088 (output_call): Likewise.
6090 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6092 * pa.c: Move output.h include after tree.h include.
6093 (pa_asm_output_mi_thunk): Constify identifier lab.
6095 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6097 * config/ns32k/ns32k.h: Define named constants for the
6098 bits in target_flags and use them.
6099 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
6101 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6103 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
6104 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
6105 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
6106 default scheduling model.
6107 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
6108 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
6109 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
6110 * doc/install.texi (hppa*-*-*): Document default scheduling.
6112 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6114 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
6116 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6118 * config.gcc (ns32k-*-netbsd*): Set tm_file to
6119 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
6120 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
6121 netbsd.h, or netbsd-aout.h.
6123 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6125 * longlong.h (count_trailing_zeros): Add missing \, and clean up
6126 whitespace in __ns32000__ case.
6128 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
6130 * expr.c (expand_expr): Output partially zeroed out vectors with
6131 output_constant_def.
6133 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6135 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
6137 (shl*-*-netbsdelf*): New targets.
6138 * config/sh/netbsd-elf.h: New file.
6139 * config/sh/t-netbsd: New file.
6141 2002-05-30 Richard Henderson <rth@redhat.com>
6142 Eric Botcazou <ebotcazou@multimania.com>
6144 PR optimization/6822
6145 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
6146 to unsigned int for op1 comparisons. Use gen_int_mode.
6148 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
6150 * expmed.c (const_mult_add_overflow_p): New.
6151 * expr.h: Declare it.
6152 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
6153 Don't eliminate the biv if the giv has a constant multiplier and
6154 the rhs argument of the comparison does satisfy the predicate.
6155 Use expand_mult_add to compute the replacement constant.
6157 2002-05-30 Osku Salerma <osku@iki.fi>
6159 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
6160 (c_common_get_alias_set): Handle it.
6161 * doc/extend.texi: Document it.
6163 2002-05-30 Richard Henderson <rth@redhat.com>
6165 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6166 * toplev.c (process_options): Don't check it.
6167 * doc/tm.texi: Don't document it.
6168 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
6169 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6170 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
6171 frame pointer optimization if current_function_profile.
6173 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
6175 * langhooks.c: Fix formatting.
6176 * langhooks.h: Likewise.
6178 * libgcc2.c: Likewise.
6179 * lists.c: Likewise.
6180 * local-alloc.c: Likewise.
6184 2002-05-30 Marc Espie <espie@openbsd.org>
6186 * config.gcc (sparc64-*-openbsd*): New.
6187 * config/sparc/openbsd1-64.h: New.
6188 * config/sparc/openbsd64.h: New.
6190 2002-05-30 Jeff Law <law@redhat.com>
6192 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
6193 a dead insn with a REG_RETVAL note when the entire libcall is not
6194 dead and remove the associated REG_LIBCALL note at the same time.
6196 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
6198 * lcm.c (output.h): #include.
6199 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
6200 as an ordinary block.
6201 (optimize_mode_switching): Don't pretend that the exit block is
6202 an ordinary block, or handle sucessors of entry block specially.
6203 Instead, split edges from entry block and to exit block, and
6204 put a computing definition on the thus gained post-entry-block,
6205 and a need on the pre-exit-block.
6207 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6209 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
6210 * rtl.texi: Document 'B'
6212 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6214 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
6216 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
6218 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
6220 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6221 const0_rtx instead of NULL_RTX when in error.
6222 (altivec_expand_abs_builtin): Same.
6223 (rs6000_expand_binop_builtin): Same.
6224 (altivec_expand_predicate_builtin): Same.
6225 (altivec_expand_stv_builtin): Same.
6226 (rs6000_expand_ternop_builtin): Same.
6227 (altivec_expand_builtin): Same.
6229 2002-05-29 David S. Miller <davem@redhat.com>
6231 * rtl.h (clear_emit_caches): Delete.
6232 * integrate.c (output_inline_function): Don't call it.
6233 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6234 (clear_emit_caches): Delete definition.
6235 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6237 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
6239 * config/mmix/mmix.c: Include real.h.
6240 (mmix_constant_address_p): Remove redundant test before switch.
6242 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6244 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6245 only if not already defined.
6247 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6249 * config/h8300/h8300-protos.h: Remove prototypes for
6250 ok_for_bclr and small_power_of_two.
6251 * config/h8300/h8300.c (small_power_of_two): Remove.
6252 (ok_for_blcr): Likewise.
6253 (fix_bit_operand): Make WHAT deal with an integer instead of a
6254 constraint character.
6255 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6256 (CONST_OK_FOR_P): Likewise.
6257 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6258 CONST_OK_FOR_P any more.
6259 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6264 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6266 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6267 (CPP_PREDEFINES): Make sure this is undefined.
6268 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6269 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
6270 or -U__MIPSEB__ before defining one or the other. Instead,
6271 use %(subtarget_endian_default) if neither -EB nor -EL are
6273 (SUBTARGET_EXTRA_SPECS): Define.
6274 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
6277 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6279 * doc/md.texi (Patterns): Note pattern condition pitfall
6282 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
6284 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6285 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
6286 ternary operations from here...
6287 (rs6000_expand_builtin): ...to here.
6288 New argument expandedp.
6289 Change all instances of altivec_expand_binop_builtin to
6290 rs6000_expand_binop_builtin.
6291 (altivec_expand_unop_builtin): Rename to
6292 rs6000_expand_unop_builtin.
6293 (altivec_expand_binop_builtin): Rename to
6294 rs6000_expand_binop_builtin.
6295 (altivec_expand_ternop_builtin): Rename to
6296 rs6000_expand_ternop_builtin.
6298 2002-05-29 Richard Henderson <rth@redhat.com>
6300 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6301 (TARGET_BI_ARCH): Likewise.
6302 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6303 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6304 (TARGET_64BIT_DEFAULT): Default to 0.
6305 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6307 2002-05-29 Richard Henderson <rth@redhat.com>
6309 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6310 (get_pc_thunk_name): New.
6311 (output_set_got): Use it.
6312 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6313 into linkonce sections.
6315 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6317 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6318 (CPP_PREDEFINES): Make sure this is undefined.
6319 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6320 (CPP_SUBTARGET_SPEC): Don't provide different versions for
6321 default-32 and default-64. Just always use %(netbsd_cpp_spec).
6322 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6323 cpp_subtarget_spec64. Add netbsd_cpp_spec.
6324 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6325 (CPP_PREDEFINES): Make sure this is undefined.
6326 (SUBTARGET_EXTRA_SPECS): Define.
6327 (CPP_SPEC): Use %(netbsd_cpp_spec).
6329 2002-05-29 Jeff Law <law@redhat.com>
6331 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6333 * flow.c (propagate_one_insn): Do not remove a dead insn if it
6334 contains a REG_RETVAL note.
6336 * haifa-sched (sched_analyze): Remove another useless clearing
6337 of SCHED_GROUP_P I missed yesterday.
6339 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6340 * pa.c (pa_asm_output_mi_thunk): New function.
6341 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6343 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6344 Marek Michalkiewicz <marekm@amelek.gda.pl>
6346 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6347 (avr_asm_only_p): Make non-static.
6348 (enum avr_arch): Remove.
6349 (avr_arch_types): New.
6350 (avr_mcu_types): Update.
6351 (avr_override_options): Use avr_arch_types table instead of switch.
6352 * avr.h (CPP_PREDEFINES): Die.
6353 (avr_base_arch_macro, avr_extra_arch_macro): New.
6354 (TARGET_CPU_CPP_BUILTINS): New.
6355 (CPP_SPEC, EXTRA_SPECS): Simplify.
6356 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6357 CPP_AVR5_SPEC): Die.
6359 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6361 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6362 NETBSD_OS_CPP_BUILTINS_AOUT.
6363 (SUBTARGET_EXTRA_SPECS): Define.
6364 (CPP_SPEC): Use %(netbsd_cpp_spec).
6366 2002-05-29 Richard Henderson <rth@redhat.com>
6368 * config/i386/i386.c (ix86_output_function_epilogue): New.
6369 (TARGET_ASM_FUNCTION_EPILOGUE): New.
6370 (pic_label_name): Remove.
6371 (pic_labels_used): New.
6372 (ix86_asm_file_end): Emit one pc load stub for each register used.
6373 (output_set_got): Generate deep pc load to any register.
6374 (ix86_select_alt_pic_regnum): New.
6375 (ix86_save_reg): Don't save pic register if we can find a valid
6376 call-clobbered replacement.
6377 (ix86_expand_prologue): If we found a valid replacement, renumber
6378 pic_offset_table_rtx.
6379 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6380 pic_offset_table_rtx after reload.
6381 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6382 * config/i386/i386.md (set_got): Make insn, not expander.
6383 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6385 2002-05-29 Richard Henderson <rth@redhat.com>
6387 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6388 alignment for alloca.
6390 2002-05-29 Richard Henderson <rth@redhat.com>
6392 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6393 (print_operand_address): Only add rip for symbolic addresses
6394 for which we do not have another relocation type.
6396 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6398 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6399 (EXTRA_SPECS): Add netbsd_cpp_spec.
6400 (CPP_SPEC): Use %(netbsd_cpp_spec).
6401 (CPP_PREDEFINES): Remove.
6402 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6403 (EXTRA_SPECS): Define.
6404 (CPP_SPEC): Use %(netbsd_cpp_spec).
6405 (CPP_PREDEFINES): Remove.
6407 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6409 PR preprocessor/6844
6410 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6413 2002-05-29 Eric Christopher <echristo@redhat.com>
6415 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6416 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6418 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
6420 * config/fr30/fr30.md: Remove previous restriction on splits.
6421 Enforce conformance through gen_lowpart and cont_int_operand.
6422 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
6423 as the assembler does not support ".bss".
6425 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6427 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6428 (CPP_PREDEFINES): Remove.
6429 (SUBTARGET_EXTRA_SPECS): Define.
6430 (CPP_SPEC): Use %(netbsd_cpp_spec).
6431 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6432 (CPP_PREDEFINES): Remove.
6433 (SUBTARGET_EXTRA_SPECS): Define.
6434 (CPP_SPEC): Use %(netbsd_cpp_spec).
6435 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6436 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6437 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6438 Add netbsd_cpp_spec.
6439 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6441 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6442 Zack Weinberg <zack@codesourcery.com>
6444 * cppexp.c (cpp_num): Move to cpplib.h.
6445 (CPP_ERROR): Remove.
6446 (interpret_float_suffix, interpret_int_suffix): New.
6447 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6448 (cpp_classify_number, cpp_interpret_integer): New.
6449 (interpret_number): Remove.
6450 (eval_token): Update to use new routines.
6451 * cpphash.h (cpp_num_part): Move to cpplib.h.
6452 * cppinit.c (cpp_post_options): Set warn_long_long.
6453 * cpplib.h (struct cpp_options): Add warn_long_long.
6454 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6455 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6456 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6457 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6458 cpp_interpret_integer): New.
6460 2002-05-29 Joel Sherrill <joel@OARcorp.com>
6462 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6464 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6466 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6467 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6468 (CPP_SUBTARGET_SPEC): Define.
6469 (SUBTARGET_EXTRA_SPECS): Define.
6472 2002-05-29 Chris Lattner <sabre@nondot.org>
6474 * ssa.c (rename_insn_1): Rename uses of undefined registers to
6475 prevent confusion if/when the register is defined.
6477 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6480 * config/cris/cris.md: Fix typos and thinkos in comments.
6481 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6483 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6484 ("*mov_sideqi_mem"): Similar, but for operand 3.
6485 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6486 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6487 Remove spurious mode specifier on operand 2.
6489 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6491 * config/h8300/h8300-protos.h: Remove the prototype for
6493 Add prototypes for single_one_operand and single_zero_operand.
6494 * config/h8300/h8300.c (o_operand): Remove.
6495 (single_one_operand): New.
6496 (single_zero_operand): Likewise.
6497 (print_operand): For 'V' operand, and the operand with 0xff.
6498 For 'V' and 'W' operands, do not and the bit position with 7.
6499 * config/h8300/h8300.md (various anonymous patterns): Replace
6500 use of exact_log2 with single_one_operand/single_zero_operand.
6502 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6504 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6506 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6508 * config/s390/s390.c (legitimate_pic_operand_p): Do not
6509 accept symbolic LARL operands.
6510 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
6513 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
6515 * config/s390/s390.md (cmpstr_64/31): Mark whole
6516 input registers as used.
6518 2002-05-28 Richard Henderson <rth@redhat.com>
6520 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6521 not current_function_uses_pic_offset_table and
6522 current_function_uses_const_pool; examine current_function_profile.
6523 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
6524 input to blockage if needed.
6525 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6526 (legitimize_pic_address): Likewise. Set regs_ever_live for
6527 pic_offset_table_rtx when invoked during reload.
6528 * config/i386/i386.h (FINALIZE_PIC): Remove.
6529 * config/i386/i386.md (tablejump): Reformat. Do not set
6530 current_function_uses_pic_offset_table.
6531 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6532 (blockage): Accept anything as operand 0.
6534 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6536 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6537 common CPP built-ins for all NetBSD a.out targets.
6538 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6539 common CPP built-ins for all NetBSD ELF targets.
6540 * config/netbsd.h: Add missing notice.
6541 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6542 for all NetBSD targets.
6543 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6544 for all NetBSD targets using an LP64 code model.
6545 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6548 2002-05-28 Richard Henderson <rth@redhat.com>
6550 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6551 update if UPDATE_LIFE_LOCAL.
6553 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6555 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6557 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6558 Jason R. Thorpe <thorpej@wasabisystems.com>
6560 config/sh reorganization to factor out endianness and coff:
6562 * config/sh/little.h: New file.
6563 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6564 defined, define to 0 to select big-endian.
6565 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
6566 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6567 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6568 * config/sh/t-be: New file.
6569 * config/sh/t-le: New file.
6571 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6572 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6573 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6574 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6575 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6576 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6577 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6578 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6579 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6580 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6581 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6582 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6583 (LINK_SPEC): Define to SH_LINK_SPEC.
6584 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6585 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6586 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6587 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6588 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6589 * config/sh/coff.h: New file.
6590 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6591 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6592 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6593 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6594 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6595 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6596 (PTRDIFF_TYPE): Likewise.
6597 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6598 (CPP_PREDEFINES): Don't define.
6599 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6600 (LINK_SPEC): Define to SH_LINK_SPEC.
6601 (LINK_EMUL_PREFIX): Redefine.
6602 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6603 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6604 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6605 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6606 (TARGET_OS_CPP_BUILTINS): Define.
6607 (TARGET_DEFAULT): Redefine.
6608 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6609 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6610 (LINK_SPEC): Don't redefine.
6611 (LINK_DEFAULT_CPU_EMUL): Redefine.
6612 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6613 * sh.c (sh_asm_named_section): Don't declare / define.
6614 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6615 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6616 (sh64-*-elf* tm_file): Likewise.
6617 (sh-*-rtemself* tm_file): Likewise.
6618 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
6619 (sh-*-linux* tmake_file): Add sh/t-le.
6620 (sh-*-rtems* tm_file): Add sh/coff.h
6621 (sh-*-* tm_file): Likewise.
6623 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6625 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6626 CONSTANT_POOL_ADDRESS_P.
6628 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6630 2002-05-28 David Edelsohn <edelsohn@gnu.org>
6631 Jeff Law <law@redhat.com>
6633 * optabs.c (expand_binop): Fix nwords sign warnings.
6634 generate pseudo for add_optab.
6636 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
6637 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
6639 2002-05-28 Marc Espie <espie@openbsd.org>
6641 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
6642 inherited from gas.h.
6643 (ASM_QUAD): Undef. OpenBSD does not support it.
6645 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
6647 * doc/install.texi (binaries): Change mingw binaries
6648 link to www.mingw.org.
6650 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6652 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
6654 2002-05-28 Richard Henderson <rth@redhat.com>
6656 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
6657 bottom alignment for leaf functions.
6659 2002-05-28 Zack Weinberg <zack@codesourcery.com>
6661 * config/pa/milli32.S, config/pa/lib1funcs.asm,
6662 config/sparc/sol2-g1.asm: Delete unused files.
6664 2002-05-28 Richard Henderson <rth@redhat.com>
6666 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
6668 * flow.c (calculate_global_regs_live): Rename call_used to
6669 invalidated_by_call. Initialize from regs_invalidated_by_call
6670 instead of call_used_regs.
6672 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
6675 2002-05-28 Zack Weinberg <zack@codesourcery.com>
6677 * tree.h: Don't include real.h.
6678 Forward-declare struct realvaluetype.
6679 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
6681 (TREE_REAL_CST_PTR): New accessor.
6682 (TREE_REAL_CST): Update.
6683 * real.h: Include machmode.h.
6684 (realvaluetype): Make it struct realvaluetype, not a typedef.
6685 (build_real): Prototype here.
6687 * tree.c: Include real.h.
6688 (build_real): Allocate the REAL_VALUE_TYPE as a separate
6689 object in GC memory, set TREE_REAL_CST_PTR to point to it.
6690 (build_real_from_int_cst): Use build_real.
6691 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
6694 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
6695 fold-const.c, print-tree.c, real.c: Include real.h.
6696 * Makefile.in: Update dependency lists.
6698 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6700 * basic-block.h (last_basic_block): Declare.
6701 (expunge_block_nocompact): Declaration removed.
6702 (compact_blocks): Declare.
6703 * cfg.c (last_basic_block): New variable.
6704 (expunge_block_nocompact): Removed.
6705 (expunge_block): Do not compact basic blocks.
6706 (compact_blocks): New.
6707 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
6709 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
6711 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
6712 real positions of blocks.
6713 (delete_unreachable_blocks): Simplified -- quadratic behavior now
6715 (cleanup_cfg): Compact blocks.
6716 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
6717 basic_block_info varray.
6718 (flow_delete_block): Comment update.
6719 (back_edge_of_syntactic_loop_p): Modify position check code.
6720 (verify_flow_info): Update checking.
6721 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
6722 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6723 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
6724 indices no longer change.
6725 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
6727 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
6728 * profile.c (branch_prob): Compact blocks.
6729 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
6732 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
6734 * config/h8300/h8300.md (two anonymous patterns): New.
6736 2002-05-28 David S. Miller <davem@redhat.com>
6738 * config/sparc/sparc.md (cpu): Tidy.
6739 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
6741 (in_call_delay): Delete reference to 'return' type.
6742 (eligible_for_return_delay, in_return_delay, define_delay
6743 referencing those): Delete.
6744 (rest of file): Use new type attributes as appropriate.
6745 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
6746 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
6747 * config/sparc/ultra1_2.md (us1_single): New reservation.
6748 (us1_ialuX): Likewise.
6749 * config/sparc/ultra3.md (us3_single): Likewise.
6750 (us3_ialuX): Likewise.
6751 (us3_imul, us3_idiv): Tweak.
6753 2002-05-28 Richard Henderson <rth@redhat.com>
6755 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
6758 2002-05-28 Richard Henderson <rth@redhat.com>
6760 * config.gcc: Obsolete mn10200.
6762 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
6764 * cppexp.c (interpret_number): Optimize for single-digit
6765 and less-than-half-precision cases.
6766 (num_trim, num_positive, num_div_op): Cast constants.
6768 2002-05-27 Bo Thorsen <bo@suse.de>
6770 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
6771 3.1 branch. The file was made by Jakub Jelinek.
6772 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
6773 support so multilib doesn't break. And don't define this at all
6774 when -Dinhibit_libc is used.
6775 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
6776 * config/i386/t-linux64: Implement full multilib support. Patch
6777 originally done by Andreas Jaeger and Jakub Jelinek.
6779 2002-05-27 Roger Sayle <roger@eyesopen.com>
6781 * c-common.c: Add support for __attribute__((nothrow)) to specify
6782 that a function cannot throw an exception (using TREE_NOTHROW).
6783 (handle_nothrow_attribute): New function to process this attribute.
6785 * doc/extend.texi: Document the new nothrow function attribute.
6787 2002-05-27 H.J. Lu (hjl@gnu.org)
6789 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
6790 (num_positive): Likewise.
6791 (num_div_op): Likewise.
6793 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6795 * c-common.c (c_common_init): Always use intmax_t.
6797 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6799 * c-common.c (c_common_init): Use intmax_t for now.
6801 2002-05-24 Andrew Haley <aph@redhat.com>
6803 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
6804 if T is a boolean type.
6806 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6808 * basic-block.h (last_basic_block): Defined as synonym for
6810 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
6811 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6812 flow_dfs_compute_reverse_init): Replaced relevant occurences of
6813 n_basic_blocks with last_basic_block.
6814 * cfgbuild.c (make_edges): Likewise.
6815 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
6816 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
6817 * combine.c (combine_instructions): Likewise.
6818 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
6819 iterative_dataflow_bitmap): Likewise.
6820 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6821 calc_idoms, idoms_to_doms): Likewise.
6822 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
6824 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
6825 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
6826 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
6827 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
6828 delete_null_pointer_checks, compute_code_hoist_vbeinout,
6829 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6830 compute_store_table, build_store_vectors): Likewise.
6831 * haifa-sched.c (sched_init): Likewise.
6832 * ifcvt.c (if_convert): Likewise.
6833 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6834 pre_edge_lcm, compute_available, compute_nearerout,
6835 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
6837 * predict.c (estimate_probability, process_note_prediction,
6838 note_prediction_to_br_prob): Likewise.
6839 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
6840 * recog.c (split_all_insns, peephole2_optimize): Likewise.
6841 * regrename.c (copyprop_hardreg_forward): Likewise.
6842 * resource.c (init_resource_info): Likewise.
6843 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
6844 init_regions, schedule_insns): Likewise.
6845 * ssa-ccp.c (ssa_const_prop): Likewise.
6846 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6847 * ssa.c (compute_dominance_frontiers,
6848 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
6850 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
6851 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
6854 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6856 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
6858 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
6859 hoist_insn_after, hoist_insn_to_edge): New.
6861 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
6863 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
6864 (PROP_FINAL): Include.
6865 * flow.c (life_analysis, update_life_info,
6866 init_propagate_block_info, mark_set_1, mark_used_rgs):
6867 Support SCAN_DEAD_STORE.
6869 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6871 * c-common.c (c_common_init): Set CPP arithmetic precision.
6872 * cppexp.c (cpp_num_part): Move typedef ...
6873 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
6874 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
6875 (sanity_checks): Update.
6877 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
6879 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
6880 (mkheaders): New rule.
6881 (install-mkheaders): New rule.
6882 * configure.in (all_outputs): Add mkheaders.
6883 * configure: Regenerate.
6884 * mkheaders.in: New file.
6886 2002-05-26 Jakub Jelinek <jakub@redhat.com>
6888 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
6890 2002-05-26 Andreas Jaeger <aj@suse.de>
6892 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
6894 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
6896 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
6897 right_shift): Remove.
6898 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
6900 (struct op): Use cpp_num.
6901 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
6902 num_part_mul, num_unary_op, num_binary_op, num_negate,
6903 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
6904 num_div_op, num_lshift, num_rshift, append_digit): New.
6905 (interpret_number, parse_defined, eval_token, reduce): Update
6906 for two-integer arithmetic.
6907 (binary_handler): New typedef.
6909 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
6910 (_cpp_parse_expr, reduce): Update to handle two-integers.
6911 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
6913 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
6915 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
6916 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
6917 branch insn into account, do not assume 1.
6918 (avr_out_sbxx_branch): New function. Optimize cases of skipping
6919 over single word insn. Handle upper half of I/O space too.
6920 * config/avr/avr.md (*sbrx_branch): Use it.
6921 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
6922 (*sbix_branch, *sbix_branch_bit7): Likewise.
6923 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
6924 Use RTL peepholes to optimize register operand sign tests.
6926 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
6928 * config/avr/avr.c (avr_asm_only_p): New variable.
6929 (avr_override_options): Set it here if AVR1.
6930 (asm_file_start): Test it here, report an error if set.
6932 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
6934 * alias.c: Fix formatting.
6935 * attribs.c: Likewise.
6936 * bb-reorder.c: Likewise.
6937 * bitmap.c: Likewise.
6938 * bitmap.h: Likewise.
6939 * builtins.c: Likewise.
6941 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
6943 * reload.c (find_valid_class): Accept new argument DEST,
6944 choose class accordingly.
6945 (push_reload): Update callers.
6947 2002-05-26 Andreas Jaeger <aj@suse.de>
6949 * combine.c (combine_instructions): Do not indent #if for
6952 2002-05-25 Richard Henderson <rth@redhat.com>
6954 * c-pragma.c (apply_pragma_weak): Convert value identifier to
6955 string for decl_attributes.
6956 (handle_pragma_weak): Call assemble_alias if we're modifying
6959 2002-05-25 Richard Henderson <rth@redhat.com>
6962 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
6963 using rtl instead of fprintf.
6964 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
6965 * config/sparc/sparc-protos.h: Update.
6967 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
6969 * Makefile.in (C_COMMON_H): Fix.
6970 Update other targets.
6971 * c-common.c: Don't include c-lex.h.
6972 (builtin_define_with_value): Make static and prototype.
6973 (builtin_define_std): Move from c-lex.h.
6974 * c-common.h (init_c_lex): Move from c-lex.h.
6975 * c-decl.c: Don't include c-lex.h.
6976 (make_pointer_declarator): Move from c-parse.in.
6977 * c-lex.c: Don't include c-lex.h.
6979 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
6980 (make_pointer_declarator): Move to c-decl.c.
6981 * c-pragma.c: Don't include c-lex.h.
6982 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
6983 * c-tree.h (make_pointer_declarator): New.
6985 * passes.texi, tm.texi: Update.
6987 * Make-lang.in: Update and correct.
6988 * objc-act.c: Don't include c-lex.h or cpplib.h.
6990 * treetree.c: Don't include c-lex.h.
6992 * darwin-c.c: Don't include c-lex.h.
6993 * c4x/c4x-c.c: Don't include c-lex.h.
6994 * c4x/t-c4x: Update.
6995 * i370/i370-c.c: Don't include c-lex.h.
6996 * i370/t-i370: Update.
6997 * i960/i960-c.c: Don't include c-lex.h.
6998 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
6999 * i960/t-960bare: Update.
7000 * i960/t-vxworks: Update.
7001 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
7002 * rs6000/t-darwin: Update.
7003 * rs6000/t-rs6000-c-rule: Update.
7004 * v850/v850-c.c: Don't include c-lex.h.
7005 * v850/v850.c: Don't include c-lex.h or cpplib.h.
7008 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7010 * tree.def: Fix typos.
7011 * doc/install.texi: Likewise.
7013 2002-05-25 Richard Henderson <rth@redhat.com>
7015 * configure.in (HAVE_AS_TLS): Add ia64 test.
7016 * configure: Rebuild.
7017 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
7018 (override_options): Set it.
7019 (TARGET_HAVE_TLS): New.
7020 (sdata_symbolic_operand): Look for 's'.
7021 (tls_symbolic_operand): New.
7022 (ia64_expand_load_address): Abort for tls symbols.
7023 (gen_tls_get_addr): New.
7024 (gen_thread_pointer): New.
7025 (ia64_expand_move): Split out from movdi. Handle tls symbols.
7026 (rtx_needs_barrier): Add new unspecs.
7027 (ia64_encode_section_info): Handle tls symbols.
7028 (ia64_strip_name_encoding): Strip two encoding chars.
7029 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
7030 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
7031 (TARGET_OPTIONS): Add tls-size.
7032 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
7033 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
7034 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
7035 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
7036 (movsf, movdf): Likewise.
7037 (movdi_symbolic): Use match_scratch. Don't split if we won't
7038 have a scratch availiable.
7039 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
7040 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
7041 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
7042 * config/ia64/ia64-protos.h: Update.
7043 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7044 sdata_symbolic_operand.
7045 (ASM_OUTPUT_LABELREF): Strip two characters.
7047 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7049 * combine.c (simplify_set): Remove an unnecessary subreg.
7051 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
7053 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
7055 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
7057 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7059 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
7061 2002-05-25 Roger Sayle <roger@eyesopen.com>
7063 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
7064 (cond (compare x y) 0) into the equivalent (cond x y).
7066 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7068 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
7070 2002-05-24 Zack Weinberg <zack@codesourcery.com>
7072 * config.gcc: Remove all stanzas for previously obsoleted
7073 systems. Where necessary, add explicit error stanzas to
7074 prevent removed systems from being misidentified as something
7075 else. Begin a fresh obsoletions list, with the systems that
7076 were reprieved last round.
7077 * doc/install.texi: Remove all mention of dead targets.
7078 * fixinc/mkfixinc.sh: Likewise.
7080 * config/arm/arm.h: Bit 31 of target_flags is no longer
7083 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
7084 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
7085 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
7086 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
7087 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
7088 config/alpha/osf12.h, config/alpha/osf2or3.h,
7089 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
7090 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
7091 config/clipper/clipper-protos.h, config/clipper/clipper.c,
7092 config/clipper/clipper.h, config/clipper/clipper.md,
7093 config/clipper/clix.h, config/convex/convex-protos.h,
7094 config/convex/convex.c, config/convex/convex.h,
7095 config/convex/convex.md, config/convex/fixinc.convex,
7096 config/convex/proto.h, config/elxsi/elxsi-protos.h,
7097 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
7098 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
7099 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
7100 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
7101 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
7102 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
7103 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
7104 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
7105 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
7106 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
7107 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
7108 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
7109 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
7110 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
7111 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
7112 config/m68k/altos3068.h, config/m68k/apollo68.h,
7113 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
7114 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
7115 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
7116 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
7117 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
7118 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
7119 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
7120 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
7121 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
7122 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
7123 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
7124 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
7125 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
7126 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
7127 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
7128 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
7129 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
7130 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
7131 config/mips/dec-osf1.h, config/mips/elflorion.h,
7132 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
7133 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
7134 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
7135 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
7136 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
7137 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
7138 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
7139 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
7140 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
7141 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
7142 config/ns32k/sequent.h, config/ns32k/tek6000.h,
7143 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
7144 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
7145 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
7146 config/sparc/rtems.h, config/we32k/we32k-protos.h,
7147 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
7150 2002-05-24 Richard Henderson <rth@redhat.com>
7152 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
7153 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
7154 * config/i386/i386.c (tls_model_chars): Add leading space.
7155 (tls_symbolic_operand): Don't bias by 1.
7156 (legitimize_address): Don't unbias by 1.
7158 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7160 * lcm.c (optimize_mode_switching): Change bb used as indices
7163 2002-05-24 Richard Henderson <rth@redhat.com>
7165 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
7166 of update_life_info_in_dirty_blocks.
7168 2002-05-24 Jakub Jelinek <jakub@redhat.com>
7171 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
7173 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
7175 PR preprocessor/6780
7176 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
7178 2002-05-24 Jim Blandy <jimb@redhat.com>
7180 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
7181 entry with a type code of zero, marking the end of the compilation
7184 2002-05-24 Richard Henderson <rth@redhat.com>
7186 * varasm.c (asm_output_bss): Always output one byte.
7187 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7189 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7191 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
7194 2002-05-24 Andreas Jaeger <aj@suse.de>
7196 * ggc-page.c (alloc_page): Cast variables of type size_t to
7197 unsigned long, adjust printf format string.
7198 (ggc_alloc): Likewise.
7199 (ggc_print_statistics): Likewise.
7200 (ggc_print_statistics): Correct printf format string for SCALE to
7203 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
7205 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
7207 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
7208 Zack Weinberg <zack@codesourcery.com>
7210 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
7212 * dwarf2out.c (lookup_filename): Properly quote filename in .file
7213 directive in assembly file.
7214 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7215 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7216 * config/pj/pj.h (ASM_FILE_START): Likewise.
7217 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7218 * config/avr/avr.c (asm_file_end): Likewise.
7219 * toplev.c (output_quoted_string): Handle possibly signed plain
7221 * toplev.h (output_clean_symbol_name): Declare
7222 * toplev.c (output_clean_symbol_name): Define.
7223 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7224 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7226 2002-05-24 Alan Modra <amodra@bigpond.net.au>
7228 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7230 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
7232 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7233 of size of unsigned.
7235 2002-05-23 Richard Henderson <rth@redhat.com>
7237 * configure.in (HAVE_AS_TLS): New test.
7238 * config.in, configure: Rebuild.
7239 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7240 (ix86_tls_dialect_string, ix86_tls_dialect): New.
7241 (override_options): Set it.
7242 (tls_model_chars, tls_symbolic_operand): New.
7243 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7244 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7245 (local_exec_symbolic_operand): New.
7246 (get_pic_label_name): Merge into output_set_got.
7247 (ix86_asm_file_end): Emit pic_label_name if defined.
7248 (legitimate_constant_p, constant_address_p): New.
7249 (legitimate_pic_operand_p): New.
7250 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7251 (legitimate_address_p): Likewise.
7252 (ix86_encode_section_info): Rename from i386_; handle tls decls.
7253 (ix86_strip_name_encoding): New.
7254 (get_thread_pointer): New.
7255 (legitimize_address): Handle tls symbols.
7256 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7258 (struct machine_function): Add some_ld_name.
7259 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7260 (print_operand) [&]: Use it. Handle UNSPEC_TP.
7261 (output_addr_const_extra): New.
7262 (maybe_get_pool_constant): New.
7263 (ix86_split_to_parts): Use it.
7264 (ix86_expand_move): Handle tls symbols.
7265 (ix86_tls_get_addr): New.
7266 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7267 (TARGET_OPTIONS): Add tls-dialect.
7268 (CONSTANT_ADDRESS_P): Use new out-of-line function.
7269 (LEGITIMATE_CONSTANT_P): Likewise.
7270 (LEGITIMATE_PIC_OPERAND_P): Likewise.
7271 (TARGET_STRIP_NAME_ENCODING): New.
7272 (ASM_OUTPUT_LABELREF): New.
7273 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7274 (OUTPUT_ADDR_CONST_EXTRA): New.
7275 (PREDICATE_CODES): Update.
7276 (ix86_tls_dialect, ix86_tls_dialect_string): New.
7277 * config/i386/i386.md: Regroup and renumber unspec constants.
7278 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7279 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7280 (tls_global_dynamic, tls_local_dynamic_base): New.
7281 (tls_local_dynamic_once): New.
7282 * config/i386/i386-protos.h: Update.
7284 2002-05-23 Richard Henderson <rth@redhat.com>
7286 * genemit.c (gen_insn): Print file:lineno comment before function.
7288 * gensupport.c (struct queue_elem): Add filename member.
7289 (queue_pattern): Initialize it; update all callers.
7290 (process_include): Don't free filename.
7291 (read_md_rtx): Set read_rtx_filename.
7293 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
7295 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7297 2002-05-23 Richard Henderson <rth@redhat.com>
7299 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7301 2002-05-23 Richard Henderson <rth@redhat.com>
7303 * doc/extend.texi (C++98 Thread-Local Edits): Update with
7304 commentary from Mark.
7306 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7308 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7309 Use FOR_EACH_BB macros to iterate over basic block chain.
7310 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7311 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7313 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7314 find_unreachable_blocks, create_edge_list, verify_edge_list,
7315 remove_fake_edges, add_noreturn_fake_exit_edges,
7316 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7318 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7319 find_sub_basic_blocks): Likewise.
7320 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7322 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7324 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7326 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7327 commit_edge_insertions, commit_edge_insertions_watch_calls,
7328 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7329 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7330 * conflict.c (conflict_graph_compute): Likewise.
7331 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7332 df_modified_p, df_refs_unlink, df_dump): Likewise.
7333 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7334 * final.c (compute_alignments): Likewise.
7335 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7336 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7337 count_or_remove_death_notes): Likewise.
7338 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7339 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7340 classic_gcse, compute_transp, cprop, compute_pre_data,
7341 compute_transpout, invalidate_nonnull_info,
7342 delete_null_pointer_checks_1, delete_null_pointer_checks,
7343 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7344 compute_store_table, build_store_vectors, store_motion): Likewise.
7345 * global.c (global_conflicts, mark_elimination): Likewise.
7346 * graph.c (print_rtl_graph_with_bb): Likewise.
7347 * haifa-sched.c (sched_init): Likewise.
7348 * ifcvt.c (if_convert): Likewise.
7349 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7350 compute_available, compute_nearerout, compute_rev_insert_delete,
7351 optimize_mode_switching): Likewise.
7352 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7353 * predict.c (estimate_probability, note_prediction_to_br_prob,
7354 propagate_freq, counts_to_freqs, expensive_function_p,
7355 estimate_bb_frequencies): Likewise.
7356 * profile.c (instrument_edges, get_exec_counts,
7357 compute_branch_probabilities, compute_checksum, branch_prob,
7358 find_spanning_tree): Likewise.
7359 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7360 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7362 * regclass.c (scan_one_insn, regclass): Likewise.
7363 * regmove.c (mark_flags_life_zones, regmove_optimize,
7364 record_stack_memrefs): Likewise.
7365 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7366 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7367 * resource.c (find_basic_block): Likewise.
7368 * sched-ebb.c (schedule_ebbs): Likewise.
7369 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7370 find_single_block_region, find_rgns, schedule_insns)
7371 * sibcall.c (optimize_sibling_and_tail_recursive_call)
7372 * ssa-ccp.c (optimize_unexecutable_edges,
7373 ssa_ccp_df_delete_unreachable_insns): Likewise.
7374 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7375 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7376 rename_block, convert_to_ssa, compute_conservative_reg_partition,
7377 compute_coalesced_reg_partition, rename_equivalent_regs,
7378 convert_from_ssa): Likewise.
7379 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7380 process_for_unwind_directive): Likewise.
7382 * df.c (FOR_ALL_BBS): Removed.
7383 * gcse.c (struct null_pointer_info): Type of current_block field
7385 (struct reg_avail_info): Type of last_bb field changed.
7386 * config/ia64/ia64.c (block_num): Removed.
7387 (need_copy_state): Type changed.
7390 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7392 * cppinit.c (mark_named_operators): Split out from init_builtins.
7393 (cpp_finish_options): Call it from here instead.
7395 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7397 * builtin-attrs.def: Update copyright years.
7398 (ATTR_NONNULL): New attribute identifier.
7399 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7400 attribute tree lists.
7401 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7403 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7404 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7405 attribute lists. Chain the appropriate nonnull attribute.
7406 * c-format.c (check_format_arg): Remove null format string
7408 * testsuite/gcc.dg/format/null-1.c: New test.
7410 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7412 * Makefile.in (ADAC): Define.
7414 (.SUFFIXES): Move before language makefile fragments.
7415 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7417 2002-05-23 Mark Mitchell <mark@codesourcery.com>
7419 * varasm.c (make_decl_rtl): Don't allow weak variables to be
7422 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7424 * cfg.c (dump_flow_info): Print results of
7425 maybe_hot/probably_never_executed predicates.
7426 * toplev.c (open_dump_file): Print function frequency.
7428 2002-05-23 David S. Miller <davem@redhat.com>
7430 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7433 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7435 * c-common.c (warn_nonnull): Declare.
7436 (c_common_attribute_table): Add "nonnull" attribute.
7437 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7438 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7439 check_function_arguments_recurse): New functions.
7440 * c-common.h (warn_nonnull): Declare extern.
7441 (check_function_arguments, check_function_arguments_recurse): New
7443 * c-decl.c (c_decode_option): Add -Wnonnull option.
7444 * c-format.c (set_Wformat): Set warn_nonnull if enabling
7446 (format_check_context): New structure.
7447 (check_format_info_recurse): Remove recursion and rename to...
7448 (check_format_arg): ...this. Update comment.
7449 (check_format_info): Use check_function_arguments_recurse.
7450 * c-typeck.c (build_function_call): Call check_function_arguments
7451 instead of check_function_format.
7452 * doc/extend.texi: Document "nonnull" attribute.
7453 * doc/invoke.texi: Docuemnt -Wnonnull option.
7454 * testsuite/gcc.dg/nonnull-1.c: New test.
7455 * testsuite/gcc.dg/nonnull-2.c: New test.
7457 2002-05-23 David S. Miller <davem@redhat.com>
7459 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7460 * cfgcleanup.c (cleanup_cfg): If it is set do not
7461 attempt to delete trivially dead insns.
7462 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7463 * toplev.c (rest_of_compilation): Document non-trivial aspect
7464 the RTL before optimize_save_area_alloca is run.
7466 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7468 * c-lex.c (indent_level): Remove.
7469 (cb_file_change, c_lex): Remove indent level handling.
7470 * c-lex.h (indent_level): Remove.
7471 * input.h (struct file_stack): Remove indent_level.
7472 * toplev.c (push_srcloc): Remove indent_level handling.
7474 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7477 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7478 of x in constraints for clarity.
7479 (sse_mov?fcc split): abort if op2 == op3.
7480 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7481 sse_movsfcc_const0_4): Add earlyclobber.
7482 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7483 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
7484 Use Y instead of x in constraints.
7486 2002-05-23 Richard Henderson <rth@redhat.com>
7488 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7489 (C++98 Thread-Local Edits): New subsection.
7491 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7492 (ix86_arch): Set type to enum processor_type.
7494 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
7495 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7497 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7499 * configure.in: Fix as version test for binutils 2.12.1 releases
7501 * configure: Rebuilt.
7503 2002-05-23 Richard Henderson <rth@redhat.com>
7505 * config/i386/i386.c (get_pic_label_name): New.
7506 (load_pic_register): Remove.
7507 (output_set_got): New.
7508 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7509 * config/i386/i386.md (UNSPEC_SET_GOT): New.
7510 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7511 (prologue_set_got, prologue_get_pc): Remove.
7512 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7513 (builtin_setjmp_receiver): Use gen_set_got.
7514 * config/i386/i386-protos.h: Update.
7516 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7518 * gcse.c (hash_expr): Do not use alias set for hashing.
7520 2002-05-22 Kevin Buettner <kevinb@redhat.com>
7522 * dbxout.c (dbxout_class_name_qualifiers): New function.
7523 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7525 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7527 * cpperror.c (_cpp_begin_message): No special casing
7529 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7530 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7531 * cpplib.c (do_include_common): Use DL_ERROR.
7532 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7534 * fix-header.c (read_scan_file): Update.
7536 2002-05-22 Richard Henderson <rth@redhat.com>
7538 * config/i386/i386.c (ix86_expand_call): New function, extracted
7539 from md call patterns. Add pic_offset_table_rtx to
7540 CALL_INSN_FUNCTION_USAGE when needed.
7541 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7542 (call_value_pop, call_value, untyped_call): Likewise.
7543 (call_exp, call_value_exp): Remove.
7544 * config/i386/i386-protos.h: Update.
7546 2002-05-22 Richard Henderson <rth@redhat.com>
7548 * varasm.c (default_section_type_flags): Check for VAR_DECL
7549 before using DECL_THREAD_LOCAL.
7551 2002-05-22 David Edelsohn <edelsohn@gnu.org>
7553 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7554 (STARTFILE_SPEC): Delete PE crt0.o.
7555 * config/rs6000/aix51.h: Same.
7556 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7557 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7558 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
7559 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7560 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7562 2002-05-22 Richard Henderson <rth@redhat.com>
7564 * varasm.c (default_section_type_flags): Handle tls data and
7566 (default_unique_section): Handle tls sections.
7568 2002-05-23 Alan Modra <amodra@bigpond.net.au>
7570 * configure.in (CROSS): Define NATIVE_CROSS.
7571 * configure: Regenerate.
7572 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7573 (startfile_prefix_spec): New var.
7574 (static_specs): Add startfile_prefix_spec.
7575 (do_spec_2): Split out from..
7577 (main): Process startfile_prefix_spec.
7578 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7580 (STARTFILE_PREFIX_SPEC): Define.
7581 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
7584 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7586 * cpperror.c: Fix formatting.
7587 * cppexp.c: Likewise.
7588 * cppfiles.c: Likewise.
7589 * cpphash.c: Likewise.
7590 * cpphash.h: Likewise.
7591 * cppinit.c: Likewise.
7592 * cpplex.c: Likewise.
7593 * cpplib.c: Likewise.
7594 * cppmacro.c: Likewise.
7595 * cppmain.c: Likewise.
7596 * cppspec.c: Likewise.
7598 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7600 * combine.c (force_to_mode): Use gen_int_mode.
7601 Don't clear CONST_INT bits outside of mode.
7603 2002-05-22 Richard Henderson <rth@redhat.com>
7605 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7606 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7608 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7611 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7612 if DECL_SIZE_UNIT is INTEGER_CST.
7614 2002-05-22 Richard Henderson <rth@redhat.com>
7616 * flow.c (life_analysis): Delete broken reg_label check.
7618 2002-05-22 Richard Henderson <rth@redhat.com>
7620 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7621 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7623 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7625 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7626 (embed-bb.c): New rule.
7627 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
7628 * config/sh/embed_bb.c: Delete.
7630 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
7632 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
7634 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7636 * config/h8300/h8300.md (*andorqi3): New.
7638 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
7640 PR preprocessor/6517
7641 * Makefile.in: Update.
7642 * c-common.c (c_common_post_options): Add preprocessor
7643 errors to the error count.
7644 * c-lang.c (c_post_options): Kill.
7645 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7646 * hooks.h: Add header guards.
7647 * langhooks-def.h: Include hooks.h.
7648 (LANG_HOOKS_POST_OPTIONS): Update.
7649 * langhooks.h (struct lang_hooks): Update post_options.
7650 * toplev.c (parse_options_and_default_flags): Update.
7652 * objc-lang.c (objc_post_options): Kill.
7653 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7655 2002-05-21 Bruce Korb <bkorb@gnu.org>
7657 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
7658 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
7659 * fixinc/fixincl.x: regen.
7661 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
7663 * cfgbuild.c: Fix formatting.
7665 * cfgcleanup.c: Likewise.
7666 * cfglayout.c: Likewise.
7667 * cfgloop.c: Likewise.
7668 * cfgrtl.c: Likewise.
7670 2002-05-21 Richard Henderson <rth@redhat.com>
7672 * c-common.h (enum rid): Add RID_THREAD.
7673 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
7674 (grokdeclarator): Grok __thread.
7675 * c-parse.in (reswords): Add __thread.
7676 (rid_to_yy): Add RID_THREAD.
7678 * tree.h (DECL_THREAD_LOCAL): New.
7679 (struct tree_decl): Add thread_local_flag.
7680 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
7681 * tree.c (staticp): TLS variables are not static.
7683 * target-def.h (TARGET_HAVE_TLS): New.
7684 * target.h (have_tls): New.
7685 * output.h (SECTION_TLS): New.
7686 * varasm.c (assemble_variable): TLS variables can't be common for now.
7687 (default_section_type_flags): Handle .tdata and .tbss.
7688 (default_elf_asm_named_section): Handle SECTION_TLS.
7689 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
7691 * flags.h (flag_tls_default): Declare.
7692 * toplev.c (flag_tls_default): Define.
7693 (display_help): Display help for it.
7694 (decode_f_option): Set it.
7696 * doc/extend.texi (Thread-Local): New node describing language-level
7697 thread-local storage.
7698 * doc/invoke.texi (-ftls-model): Document.
7700 * fixinc/inclhack.def (thread_keyword): New.
7701 * fixinc/fixincl.x: Rebuild.
7703 2002-05-21 Jeffrey A Law <law@redhat.com>
7705 * optabs.c (expand_binop): For double-word integer multiplies,
7706 do not compute intermediate results into something that is
7707 not a register (such as a SUBREG or MEM).
7709 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
7710 (ix86_sched_reorder): Make sure to initialize scheduling
7711 data even when there's only one insn in the ready queue.
7713 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7715 * genautomata.c (reserv_sets_hash_value): Fix a typo.
7717 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7719 * genautomata.c (reserv_sets_hash_value): Define hash_value as
7720 set_el_t. Transform the hash value into unsigned.
7721 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
7722 (transform_3): Add code to process `(A,B)+(D,E)'.
7724 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
7726 * reload1.c (do_output_reload): Run delete_output_reload
7729 2002-05-21 Roger Sayle <roger@eyesopen.com>
7732 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
7733 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
7734 (can_store_by_pieces): ... and here to limit the largest mode used.
7735 Add a comment to document this function.
7737 2002-05-21 Richard Henderson <rth@redhat.com>
7739 * flow.c (life_analysis): Fix test for deleted label.
7741 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
7743 * doc/tm.texi: Fix typo.
7745 2002-05-21 Zack Weinberg <zack@codesourcery.com>
7747 * c-common.c (c_common_init): Set options->unsigned_char from
7749 (cb_register_builtins): Define __STRICT_ANSI__ and
7750 __CHAR_UNSIGNED__ here...
7751 * cppinit.c (init_builtins): Not here.
7752 (cpp_create_reader): unsigned_char option defaults to 0, not
7753 !DEFAULT_SIGNED_CHAR.
7754 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
7755 and -funsigned-char.
7757 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
7758 * cpphash.c (_cpp_init_hashtable): Don't set it.
7759 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
7760 directly. Clarify comment.
7762 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7764 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
7765 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
7766 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
7767 BASIC_BLOCK (n_basic_blocks - 1).
7768 * cfganal.c (can_fallthru, flow_call_edges_add,
7769 flow_preorder_transversal_compute): Too.
7770 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7771 find_sub_basic_blocks): Too.
7772 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
7773 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
7774 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
7775 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
7776 * combine.c (this_basic_block): Type changed to basic_block.
7777 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
7778 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7779 get_last_value, distribute_notes, distribute_links): Too.
7780 * final.c (compute_alignments): Too.
7781 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
7782 * function.c (thread_prologue_and_epilogue_insns): Too.
7783 * gcse.c (compute_code_hoist_vbeinout): Too.
7784 * global.c (build_insn_chain): Too.
7785 * ifcvt.c (find_if_block, find_cond_trap): Too.
7786 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
7787 * regmove.c (regmove_optimize): Too.
7788 * resource.c (find_basic_block): Too.
7789 * sched-ebb.c (schedule_ebbs): Too.
7790 * ssa-dce.c (find_control_dependence, find_pdom): Too.
7792 2002-05-21 Andreas Jaeger <aj@suse.de>
7794 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
7796 2002-05-21 Richard Henderson <rth@redhat.com>
7798 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
7799 unspec names, not numbers.
7801 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
7803 * doc/sourcebuild.texi: Mention snapshot-README and
7804 snapshot-index.html as needing updating for new front ends.
7806 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7808 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
7809 disabling checking, and avoid multiple evaluation of RTX.
7811 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
7813 * bitmap.c (bitmap_find_bit): Return early if we have the correct
7816 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7818 * profile.c (gen_edge_profiler): Set alias set before the memory is
7821 2002-05-20 David S. Miller <davem@redhat.com>
7823 * cselib.c (max_value_regs): New.
7824 (cselib_lookup, cselib_invalidate_regno): Initialize it when
7825 adding new entries to the REG_VALUES table and we are dealing with
7827 (clear_table): Initialize it.
7828 (cselib_invalidate_regno): Use it to determine which hard
7829 registers to scan when mode is not VOIDmode.
7831 2002-05-20 Duraid Madina <duraid@fl.net.au>
7833 * tradcpp.c (fixup_newlines): Use old-style function header.
7835 2002-05-20 Krister Walfridsson <cato@df.lth.se>
7837 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
7839 2002-05-20 H.J. Lu (hjl@gnu.org)
7841 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
7843 * config/mips/mips.h (DFMODE_NAN): Defined.
7844 (SFMODE_NAN): Likewise.
7846 2002-05-20 Dale Johannesen <dalej@apple.com>
7848 * combine.c (cant_combine_insn_p): Back out my
7851 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7853 * params.c: Fix formatting.
7854 * params.h: Likewise.
7855 * predict.c: Likewise.
7856 * prefix.c: Likewise.
7857 * print-rtl.c: Likewise.
7858 * print-tree.c: Likewise.
7859 * profile.c: Likewise.
7861 2002-05-20 H.J. Lu (hjl@gnu.org)
7863 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
7865 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
7867 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
7868 switches straight on to the assembler, do not abbreviate them.
7869 * config/arm/elf.h (ASM_SPEC): As above.
7870 * config/arm/semi.h (ASM_SPEC): As above.
7871 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
7872 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
7873 -mcpu=xscale on to the assembler by default.
7874 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
7876 2002-05-20 Richard Henderson <rth@redhat.com>
7878 * cse.c (canon_hash): Reorder do_not_record test. Always
7879 allow pic_offset_table_rtx.
7881 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
7883 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
7884 (expand_binop): Ditto (3 times).
7886 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
7888 * Makefile.in (distclean): Remove QMTest stuff.
7889 (QMTEST_PATH): New variable.
7890 (QMTESTFLAGS): Likewise.
7891 (QMTESTRUNFLAGS): Likewise.
7893 (QMTEST_GPP_TESTS): Likewise.
7894 (QMTEST_DIR): Likewise.
7895 (QMTEST_DIR/context): New target.
7896 (qmtest-g++): Likeise.
7897 (qmtest-gui): Likewise.
7898 (QMTEST_DIR/gpp-expected.qmr): Likewise.
7900 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
7902 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
7903 an altivec register if TARGET_ALTIVEC.
7905 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
7906 to ALTIVEC_VECTOR_MODE.
7907 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
7908 (rs6000_va_arg): Vectors may go in registers if they are not
7911 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
7913 * protoize.c: Fix formatting.
7915 2002-05-19 Richard Henderson <rth@redhat.com>
7917 * gensupport.c (init_include_reader): Merge into ...
7918 (process_include): ... here. Simplify composite path creation.
7919 Plug memory leaks. Fix file/line number tracking. Do not
7920 process_define_cond_exec. Return void.
7921 (process_rtx): Don't check process_include return value.
7923 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7925 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
7927 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7928 traversing basic block chain.
7929 (create_basic_block_structure, create_basic_block): Declaration changed.
7930 (link_block, unlink_block): Declare.
7931 * cfg.c (entry_exit_blocks): Initialize new fields.
7932 (link_block, unlink_block): New.
7933 (expunge_block_nocompact): Unlink basic block.
7934 (dump_flow_info): Print prev_bb/next_bb fields.
7935 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
7936 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
7937 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
7938 * cfgrtl.c (create_basic_block_structure, create_basic_block,
7939 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
7940 (verify_flow_info): Check that list agrees with numbering.
7942 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
7944 * c-common.c (preprocessing_asm): New macro.
7945 * c-lex.h (builtin_define, builtin_assert): Use pfile.
7949 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
7950 (CPP_SPEC): Simplify.
7951 (TARGET_CPU_CPP_BUILTINS): Update.
7952 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
7953 (CPP_SPEC): Simplify.
7954 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
7955 (TARGET_OS_CPP_BUILTINS): Update.
7956 * osf.h (CPP_XFLOAT_SPEC): Kill.
7957 (TARGET_OS_CPP_BUILTINS): Update.
7958 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
7959 * osf5.h (CPP_XFLOAT_SPEC): Kill.
7960 * vms.h (CPP_SUBTARGET_SPEC): Kill.
7961 (TARGET_OS_CPP_BUILTINS): Update.
7963 2002-05-19 Richard Henderson <rth@redhat.com>
7965 * varasm.c (default_binds_local_p): Fix typo.
7967 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
7969 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
7970 CONST_INT operand to the correct mode after adding 1 to it.
7972 2002-05-19 Mark Mitchell <mark@codesourcery.com>
7974 * config.gcc (powerpc-wrs-windiss*): New target.
7976 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7978 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
7981 2002-05-18 Mark Mitchell <mark@codesourcery.com>
7983 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
7985 * config.in: Regenerated.
7986 * configure: Regenerated.
7988 2002-05-19 Richard Henderson <rth@redhat.com>
7990 * target-def.h (TARGET_BINDS_LOCAL_P): New.
7991 * target.h (struct gcc_target): Move boolean fields to the end.
7993 * varasm.c (default_binds_local_p): New.
7994 * output.h: Declare it.
7996 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
7997 * config/cris/cris.c (cris_encode_section_info): Likewise.
7998 * config/i386/i386.c (i386_encode_section_info): Likewise.
7999 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
8000 * config/sh/sh.c (sh_encode_section_info): Likewise.
8002 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
8003 (TARGET_BINDS_LOCAL_P): New.
8005 2002-05-19 Richard Henderson <rth@redhat.com>
8007 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
8008 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
8009 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
8011 * toplev.c (display_help): Kill -a -ax help.
8013 * config/1750a/1750a.h, config/alpha/alpha.h,
8014 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
8015 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
8016 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
8017 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
8019 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
8020 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
8022 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
8023 (ix86_output_function_block_profiler): Kill.
8024 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
8025 (m68hc11_function_block_profiler): Kill.
8026 * config/m68hc11/m68hc11-protos.h: Update.
8027 * config/m88k/m88k.c (output_block_profiler): Kill.
8028 (output_function_block_profiler): Kill.
8029 * config/m88k/m88k-protos.h: Update.
8031 2002-05-19 Richard Henderson <rth@redhat.com>
8033 * system.h (STRIP_NAME_ENCODING): Poison it.
8034 * output.h (STRIP_NAME_ENCODING): Remove.
8035 (default_strip_name_encoding): Declare.
8036 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
8037 * target.h (strip_name_encoding): New.
8038 * varasm.c (default_strip_name_encoding): New.
8040 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
8041 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
8042 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
8043 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
8044 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
8045 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
8046 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
8047 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
8048 config/v850/v850.h: Use the hook, not the macro.
8050 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8051 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
8052 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
8053 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
8054 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
8055 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
8056 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8057 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
8058 config/v850/v850.c, config/v850/v850.h:
8059 Move STRIP_NAME_ENCODING to out-of-line function and add
8060 TARGET_STRIP_NAME_ENCODING.
8062 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
8063 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
8064 with TARGET_STRIP_NAME_ENCODING referencing existing function;
8065 make function static.
8067 * xcoffout.c: Include target.h
8068 * Makefile.in (xcoffout.o): Update.
8070 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
8071 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
8072 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
8073 reloc argument unused.
8074 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
8076 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
8077 STRIP_NAME_ENCODING docs.
8079 2002-05-19 Andreas Jaeger <aj@suse.de>
8081 * gengenrtl.c: Add prototype for excluded_rtx.
8083 * real.h: Add prototype for exact_real_truncate.
8085 2002-05-18 Richard Henderson <rth@redhat.com>
8087 * system.h (ENCODE_SECTION_INFO): Poison it.
8088 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
8089 * target.h (encode_section_info): New.
8090 * varasm.c (make_decl_rtl, output_constant_def): Use it.
8091 * hooks.c (hook_tree_int_void): New.
8092 * hooks.h: Declare it.
8094 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8095 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
8096 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
8097 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
8098 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
8099 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
8100 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
8101 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
8102 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8103 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8104 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
8105 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
8106 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
8107 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
8108 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
8109 referencing existing function. Make function static.
8111 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8112 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
8113 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
8114 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
8115 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8116 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
8117 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
8118 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
8119 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
8120 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8121 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
8122 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
8123 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
8124 Move ENCODE_SECTION_INFO to out-of-line function and add
8125 TARGET_ENCODE_SECTION_INFO.
8127 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
8128 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8130 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
8132 (switch_to_section): Replace in_rdata case with in_readonly_data.
8134 * config/h8300/h8300.c (h8300_encode_label): Make static.
8135 * config/h8300/h8300-protos.h: Update.
8137 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
8138 from rs6000_encode_section_info; make static.
8139 (rs6000_xcoff_encode_section_info): New.
8141 * config/v850/v850.c (v850_encode_data_area): Make static.
8142 * config/v850/v850-protos.h: Update.
8144 * config/vax/vax.c: Include flags.h.
8145 (vms_select_section): Fix typo.
8147 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
8148 ENCODE_SECTION_INFO docs.
8150 2002-05-18 Richard Henderson <rth@redhat.com>
8152 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
8153 REGISTER_TARGET_PRAGMAS.
8154 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
8156 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
8158 2002-05-18 Richard Henderson <rth@redhat.com>
8160 * system.h (SELECT_RTX_SECTION): Poison.
8161 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
8162 * target.h (select_rtx_section): New.
8163 * varasm.c (output_constant_pool): Use it.
8164 (default_select_rtx_section, default_elf_select_rtx_section): New.
8165 * output.h: Declare them.
8167 * config/darwin.h (SELECT_RTX_SECTION): Move ...
8168 * config/darwin.c (machopic_select_rtx_section): ... here.
8169 * config/darwin-protos.h: Update.
8171 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
8172 * config/nextstep.c (machopic_select_rtx_section): ... here.
8173 (nextstep_select_section): Rename variable to avoid macro clash.
8174 * config/nextstep-protos.h: Update.
8176 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
8177 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
8178 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8179 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
8180 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
8181 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8182 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
8183 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
8184 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
8185 (SELECT_RTX_SECTION): Remove.
8187 * config/darwin.h, config/elfos.h, config/nextstep.h,
8188 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
8189 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
8190 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
8191 config/sparc/lynx.h, config/xtensa/xtensa.c
8192 (TARGET_ASM_SELECT_RTX_SECTION): New.
8194 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
8195 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
8196 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
8197 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
8198 (ia64_aix_select_rtx_section): New.
8199 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
8201 * config/mips/mips.c (mips_select_rtx_section): Make static.
8202 Support ELF SHF_MERGE features.
8203 * config/mips/mips-protos.h: Update.
8204 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
8205 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
8206 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
8207 make static, fall back to default_elf_select_rtx_section.
8208 * config/rs6000/rs6000-protos.h: Update.
8209 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
8210 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
8211 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
8212 * config/romp/romp.c (romp_select_rtx_section): New.
8213 * config/s390/s390.c (s390_select_rtx_section): New.
8214 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
8215 declarations before target macro definition.
8216 (xtensa_emit_call): Use static buffer.
8217 (xtensa_select_rtx_section): New.
8218 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8219 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8220 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8222 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8223 SELECT_RTX_SECTION docs.
8225 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8227 * i386.md (movsi/movdi): Fix template.
8228 (sse2 patterns): Set attributes consistently.
8230 * i386.md (pushqi2, ashrqi_*): Fix constraint.
8232 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
8234 * optabs.c (complex_part_zero_p): New.
8235 * (expand_cmplxdiv_straight): Use it.
8236 * (expand_cmplxdiv_wide): Ditto.
8237 * (expand_binop): Ditto.
8239 2002-05-18 Richard Henderson <rth@redhat.com>
8241 * final.c (HAVE_READONLY_DATA_SECTION): New.
8242 (shorten_branches): Use it instead of ifdefs.
8243 * varasm.c (enum in_section): Add in_readonly_data.
8244 (text_section, data_section): Tidy.
8245 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8247 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8248 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8249 (READONLY_DATA_SECTION): Don't undef.
8251 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8252 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8253 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8255 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8256 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8257 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8258 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8260 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8261 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8262 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8263 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8264 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8265 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8266 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8267 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8268 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8270 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8271 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8272 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8273 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8274 config/pa/pa64-hpux.h, config/sparc/litecoff.h
8275 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8277 * config/elfos.h, config/netware.h, config/svr3.h,
8278 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8279 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8280 config/h8300/h8300.h, config/i386/i386-interix.h,
8281 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8282 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8284 * config/elfos.h, config/netware.h, config/svr3.h,
8285 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8286 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8287 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8288 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8290 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8291 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8292 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8293 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8294 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8295 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8296 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8297 config/rs6000/sysv4.h, config/v850/v850.h
8298 (EXTRA_SECTIONS): Remove in_const/in_rdata.
8299 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8301 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8302 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8303 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8304 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8305 * config/alpha/alpha.c (alpha_start_function): Likewise.
8306 (alpha_write_linkage): Likewise.
8307 * config/m32r/m32r.c (m32r_select_section): Likewise.
8308 * config/m88k/m88k.c (m88k_select_section): Likewise.
8309 * config/mips/mips.c (mips_select_rtx_section): Likewise.
8310 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8311 (rs6000_elf_select_section): Likewise.
8312 * config/v850/v850.c (v850_select_section): Likewise.
8314 * config/1750a/1750a.h, config/i860/sysv3.h
8315 (READONLY_DATA_SECTION_ASM_OP): New.
8316 READONLY_DATA_SECTION_ASM_OP.
8317 * config/i386/interix.c, config/i386/winnt.c
8318 (i386_pe_unique_section): Always use .rdata prefix.
8319 * config/pa/som.h (readonly_data): Always switch to read-only section.
8320 (READONLY_DATA_SECTION): Predicate on flag_pic.
8321 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8322 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8323 (READONLY_DATA_SECTION): Update.
8325 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
8327 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8328 is used without -Wformat.
8329 * c-common.h (warn_format_zero_length): Declare extern.
8330 * c-decl.c (warn_options): Add "format-zero-length".
8331 * c-format.c (warn_format_zero_length): Declare.
8332 (set_Wformat): Set warn_format_zero_length for -Wformat.
8333 (check_format_info): Only warn about zero-length formats if
8334 warn_format_zero_length is true. Include the format type
8335 name in the warning message.
8336 * doc/invoke.texi: Document -Wformat-zero-length.
8337 * testsuite/gcc.dg/format/zero-length-1.c: New test.
8339 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
8341 * timevar.c: Fix formatting.
8342 * tlink.c: Likewise.
8343 * toplev.c: Likewise.
8344 * tree-dump.c: Likewise.
8345 * tree-inline.c: Likewise.
8347 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8349 * cppinit.c (cpp_post_options): If preprocessed, turn off
8350 traditional. If traditional, turn off column numbers.
8351 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8352 * cpptrad.c (handle_newline): Update line_base.
8353 (skip_comment): Handle -Wcomment.
8355 2002-05-17 Zack Weinberg <zack@codesourcery.com>
8357 * cppinit.c (struct builtin): Remove unused fields.
8358 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8359 (operator_array): New - was second half of builtin_array.
8360 (init_builtins): Simplify loop over builtin_array/operator_array.
8362 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8364 * defaults.h (UNIQUE_SECTION): Remove.
8365 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8367 2002-05-17 Richard Henderson <rth@redhat.com>
8369 * expr.c (init_expr_once): Don't use start/end_sequence.
8370 Use rtx_alloc instead of emit_insn.
8371 * toplev.c (lang_dependent_init): Run init_expr_once here ...
8372 (lang_independent_init): ... not here.
8374 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8376 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8378 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
8380 * config/avr/avr.c (avr_regs_to_save): New function. Also check
8381 for fixed registers, possibly used for global register variables.
8382 (initial_elimination_offset, avr_output_function_prologue,
8383 avr_output_function_epilogue): Move common code to avr_regs_to_save.
8385 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8387 * Makefile.in: Update for cpptrad.c.
8388 * cpphash.h (struct cpp_buffer): New members for buffer
8390 (struct cpp_reader): New members for traditional output.
8391 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8392 * cppinit.c (cpp_create_reader): Set trad_line.
8393 (cpp_destroy): Free trad_out_base if used.
8394 (cpp_read_main_file): Overlay an empty buffer if traditional.
8395 (cpp_finish_options): Don't do builtins.
8396 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8397 (cpp_handle_option): Handle it.
8398 * cpplex.c (continue_after_nul): New.
8399 (_cpp_lex_direct): Use handle_nul.
8400 * cpplib.h (struct cpp_options): New traditional option.
8401 * cpptrad.c: New file.
8403 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8405 * c-common.c (c_common_init_options): Use C89 for Objective-C,
8406 and set the options flag.
8407 * cppinit.c (lang_flags): Remove objc.
8408 (lang_defaults): Remove OBJC and OBJCXX.
8410 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8411 (cpp_handle_option): Remove -+ and -lang-objc++.
8412 For ObjC, just set a flag.
8413 (print_help): Update.
8414 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8416 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8418 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8419 bootstrap with -mips3.
8421 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
8423 * final.c: Fix formatting.
8424 * fix-header.c: Likewise.
8426 * fold-const.c: Likewise.
8427 * function.c: Likewise.
8429 2002-05-17 David S. Miller <davem@redhat.com>
8431 PR c/6689, PR optimization/6615
8432 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8433 and make it a pointer to rtx. Update comments.
8434 (update_equiv_regs): When scanning for equivalences, record
8435 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
8436 it while making the equiv replacements.
8438 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8440 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8442 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
8444 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8445 when encoding visibility into SYMBOL_REF_FLAG.
8447 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
8449 * expr.c (force_operand): Fix reversed move.
8451 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
8453 * doc/install.texi (Testing): Mention two common DejaGnu warnings
8454 that can be ignored.
8456 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8458 * doc/install.texi (Final install): Recommend to install into a
8459 "clean" target directory.
8461 2002-05-17 Richard Henderson <rth@redhat.com>
8463 * config/ia64/ia64.md: Use braced strings instead of quoted strings
8464 for code blocks. Tidy whitespace.
8466 2002-05-17 Richard Henderson <rth@redhat.com>
8468 * hooks.c (hook_tree_bool_false): New.
8469 * hooks.h: Declare it.
8470 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8471 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8472 * target.h (select_section, unique_section): New.
8473 (in_small_data_p): New.
8474 * varasm.c (resolve_unique_section): Use hooks instead of macros.
8475 (variable_section, output_constant_def_contents): Likewise.
8476 (default_select_section, default_unique_section): New.
8477 (categorize_decl_for_section, default_elf_select_section): New.
8478 * output.h: Declare them.
8480 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8481 (TARGET_ASM_SELECT_SECTION): New.
8482 (SELECT_SECTION): Move ...
8483 * config/darwin.c (machopic_select_section): ... here.
8484 * config/darwin-protos.h: Update.
8486 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8487 (SELECT_SECTION): Move ...
8488 * config/nextstep.c (nextstep_select_section): ... here.
8489 * config/nextstep-protos.h: Update.
8491 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8492 (TARGET_ASM_SELECT_SECTION): New.
8493 * config/svr3.h (SELECT_SECTION): Remove.
8495 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8496 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8497 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8498 (alpha_encode_section_info): Use it.
8499 * config/alpha/alpha-protos.h: Update.
8500 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8501 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8502 (TARGET_ASM_SELECT_SECTION): New.
8503 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8505 * config/arm/pe.h (UNIQUE_SECTION): Remove.
8506 (TARGET_ASM_UNIQUE_SECTION): New.
8508 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8509 (avr_unique_section): Rename from unique_section; make static.
8510 * config/avr/avr-protos.h: Update.
8511 * config/avr/avr.h (UNIQUE_SECTION): Remove.
8513 * config/c4x/c4x.h (SELECT_SECTION): Remove.
8515 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8516 (TARGET_ASM_UNIQUE_SECTION): New.
8517 * config/i386/i386-interix.h: Likewise.
8518 * config/i386/win32.h: Likewise.
8519 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8520 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8521 * config/i386/sco5.h (SELECT_SECTION): Remove.
8522 (TARGET_ASM_SELECT_SECTION): New.
8523 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8525 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8526 instead of SELECT_SECTION.
8527 * config/m68k/dpx2.h: Likewise.
8528 * config/rs6000/lynx.h: Likewise.
8530 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8531 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8532 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8533 (ia64_in_small_data_p): New.
8534 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
8535 (ia64_aix_select_section, ia64_aix_unique_section): New.
8536 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8537 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8539 * config/m32r/m32r.h (SELECT_SECTION): Remove.
8540 (TARGET_ASM_SELECT_SECTION): New.
8541 * config/m32r/m32r.c (m32r_select_section): Take align argument.
8542 * config/m32r/m32r-protos.h: Update.
8544 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8545 (SELECT_SECTION): Move ...
8546 * config/m88k/m88k.c (m88k_select_section): ... here.
8548 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8549 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8550 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8551 (mcore_unique_section): Make static.
8552 * config/mcore/mcore-protos.h: Update.
8554 * config/mips/elf.h (UNIQUE_SECTION): Remove.
8555 (TARGET_ASM_UNIQUE_SECTION): New.
8556 * config/mips/elf64.h: Likewise.
8557 * config/mips/iris6gld.h: Likewise.
8558 * config/mips/linux.h: Likewise.
8559 * config/mips/mips-protos.h: Update.
8560 * config/mips/mips.c (mips_select_section): Add align argument.
8561 * config/mips/mips.h (SELECT_SECTION): Remove.
8562 (TARGET_ASM_SELECT_SECTION): New.
8564 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8565 * config/mmix/mmix.c (mmix_select_section): Remove.
8566 (mmix_unique_section): Remove.
8567 * config/mmix/mmix-protos.h: Update.
8569 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8570 (SELECT_SECTION): Move ...
8571 * config/pa/pa.c (pa_select_section): ... here.
8572 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8574 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8575 from rs6000_select_section and make static.
8576 (rs6000_elf_unique_section): Similarly.
8577 (rs6000_xcoff_select_section): From xcoff.h.
8578 (rs6000_xcoff_unique_section): Likewise.
8579 * config/rs6000/rs6000-protos.h: Update.
8580 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8581 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8582 * config/rs6000/xcoff.h: Likewise.
8584 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8585 (SELECT_SECTION): Move ...
8586 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8588 * config/v850/v850.h (SELECT_SECTION): Move ...
8589 * config/v850/v850.c (v850_select_section): ... here.
8590 (TARGET_ASM_SELECT_SECTION): New.
8592 * config/vax/vms.h (SELECT_SECTION): Move ...
8593 * config/vax/vax.c (vms_select_section): ... here.
8594 (TARGET_ASM_SELECT_SECTION): New.
8596 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8597 for the target hooks.
8599 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
8601 * config/arm/arm.c (emit_multi_reg_push): Do not set
8602 RTX_FRAME_RELATED_P on the SEQUENCE.
8604 2002-05-16 Richard Henderson <rth@redhat.com>
8606 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8607 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
8609 2002-05-16 Richard Henderson <rth@redhat.com>
8611 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8613 * config/ia64/ia64.c (saveable_obstack): Do not declare.
8615 2002-05-16 Richard Henderson <rth@redhat.com>
8617 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8618 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8619 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8620 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8621 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8622 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8623 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8624 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8625 Revert "Basic block renumbering removal", and two followup patches.
8627 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8629 * lcm.c (optimize_mode_switching): Revert previous change.
8631 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8633 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8634 with only extant block numbers.
8636 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8638 * lcm.c (optimize_mode_switching): Fix typo.
8640 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8642 * flow.c (calculate_global_regs_live): Queue blocks in program order.
8644 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8646 * doc/install.texi (Configuration): Document PWDCMD.
8648 2002-05-16 Dale Johannesen <dalej@apple.com>
8650 * combine.c (cant_combine_insn_p): Reenable combinations
8651 involving hard regs unless CLASS_LIKELY_SPILLED_P.
8653 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8655 * c-common.c (cb_register_builtins): Handle more built-ins
8656 here rather than in gcc.c specs.
8657 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
8658 (cpp_options): Pass -O flags even when only preprocessing.
8659 * toplev.c (set_fast_math_flags): New prototype.
8660 (fast_math_flags_set_p): New.
8661 (set_no_fast_math_flags): Remove.
8662 (decode_f_option): Update.
8663 * toplev.h (set_fast_math_flags): Update.
8664 (fast_math_flags_set_p): New.
8665 (set_no_fast_math_flags): Remove.
8667 * c4x/c4x.c (c4x_override_options): Update.
8669 2002-05-16 Zack Weinberg <zack@codesourcery.com>
8671 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
8672 Default-define here.
8673 (builtin_define_with_value): Can now wrap the expansion in
8674 quotation marks if such is wanted.
8675 (cb_register_builtins): Update calls to builtin_define_with_value.
8676 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
8678 (c_common_init): Set options->stdc_0_in_system_headers.
8679 * c-lex.h: Update prototype of builtin_define_with_value.
8680 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
8681 and REGISTER_PREFIX.
8683 * cppinit.c (VERS, ULP, C, X): Kill.
8684 (builtin_array): Remove entries for __VERSION__,
8685 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
8686 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
8688 (init_builtins): Kill off a bunch of now-dead code.
8689 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
8690 -fno-leading-underscore.
8691 (cpp_handle_option): Remove code to set user_label_prefix.
8692 (cpp_post_options): Likewise.
8694 * cpplib.h (struct cpp_options): Remove user_label_prefix.
8695 (stdc_0_in_system_headers): New.
8696 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
8697 stdc_0_in_system_headers) too to decide the value of __STDC__.
8699 * tradcpp.c (user_label_prefix): Kill.
8700 (main): Remove code handling -f(no-)leading-underscore.
8701 (initialize_builtins): Don't define __REGISTER_PREFIX__
8702 or __USER_LABEL_PREFIX__.
8703 (install_value): Wrap compound statement in dummy loop so the
8704 macro works properly in an if statement.
8707 2002-05-16 Janis Johnson <janis187@us.ibm.com>
8709 * loop.h (struct loop_info): Add member has_prefetch.
8710 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
8711 (prescan_loop): Initialize has_prefetch.
8712 (struct prefetch_info): Change prefetch_in_loop and
8713 prefetch_before_loop from bit fields to ints.
8714 (emit_prefetch_instructions): Several small fixes.
8715 (check_dbra_loop): Don't reverse loop that uses prefetch.
8717 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8719 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
8720 * configure.in: Likewise.
8721 * fixinc/check.tpl: Likewise.
8722 * fixinc/fixinc.dgux: Likewise.
8723 * fixinc/fixinc.svr4: Likewise.
8724 * fixinc/fixinc.winnt: Likewise.
8725 * fixinc/fixincl.sh: Likewise.
8726 * fixproto: Likewise.
8727 * configure: Regenerate.
8729 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8731 Basic block renumbering removal:
8732 * basic_block.h (struct basic_block_def): Renamed index to sindex,
8733 added prev_bb and next_bb fields.
8734 (n_basic_blocks): Renamed to num_basic_blocks.
8735 (last_basic_block): New, index of last basic block.
8736 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8737 traversing basic block chain.
8738 (BLOCK_NUM): index -> sindex.
8739 (create_basic_block_structure, create_basic_block): Declaration changed.
8740 (debug_num2bb): Declare.
8741 (expunge_block_nocompact): Declaration removed.
8742 (link_block, unlink_block, compact_blocks): Declare.
8743 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
8744 * cfg.c (entry_exit_blocks): Initialize new fields.
8745 (clear_edges, alloc_block, expunge_block, cached_make_edge,
8746 redirect_edge_pred, dump_flow_info, dump_edge_info,
8747 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
8748 free_aux_for_edges): Modified.
8749 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
8750 (expunge_block_nocompact): Removed.
8751 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
8752 find_unreachable_blocks, create_edge_list, print_edge_list,
8753 verify_edge_list, flow_edge_list_print, remove_fake_successors,
8754 remove_fake_edges, flow_reverse_top_sort_order_compute,
8755 flow_depth_first_order_compute, flow_preorder_transversal_compute,
8756 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
8757 flow_dfs_compute_reverse_execute): Modified.
8758 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
8759 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
8761 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8762 merge_blocks_move_predecessor_nojumps,
8763 merge_blocks_move_successor_nojumps, merge_blocks,
8764 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
8765 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
8766 * cfglayout.c (skip_insns_after_block, label_for_bb,
8767 record_effective_endpoints, scope_to_insns_finalize,
8768 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
8769 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
8770 cfg_layout_duplicate_bb): Modified.
8771 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
8772 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8773 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
8774 flow_loops_find, flow_loop_outside_edge_p): Modified.
8775 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8776 flow_delete_block, compute_bb_for_insn, split_block,
8777 try_redirect_by_replacing_jump, redirect_edge_and_branch,
8778 force_nonfallthru_and_redirect, tidy_fallthru_edge,
8779 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
8780 commit_edge_insertions, commit_edge_insertions_watch_calls,
8781 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
8782 purge_all_dead_edges): Modified.
8783 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
8784 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8785 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
8787 * conflict.c (conflict_graph_compute): Modified.
8788 * df.c (FOR_ALL_BBS): Removed.
8789 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8790 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
8791 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
8792 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
8793 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8794 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
8795 * final.c (compute_alignments, final_scan_insn): Modified.
8796 * flow.c (verify_local_live_at_start, update_life_info,
8797 update_life_info_in_dirty_blocks, free_basic_block_vars,
8798 delete_noop_moves, calculate_global_regs_live,
8799 initialize_uninitialized_subregs, allocate_bb_life_data,
8800 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
8801 mark_used_reg, count_or_remove_death_notes): Modified.
8802 * function.c (thread_prologue_and_epilogue_insns): Modified.
8803 * gcse.c (struct null_pointer_info): Change typo of current_block
8805 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
8806 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
8807 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
8808 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
8809 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
8810 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
8811 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
8812 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
8813 pre_delete, one_pre_gcse_pass, compute_transpout,
8814 invalidate_nonnull_info, delete_null_pointer_checks_1,
8815 free_code_hoist_mem, compute_code_hoist_vbeinout,
8816 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8817 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
8818 compute_store_table, build_store_vectors, insert_insn_start_bb,
8819 insert_store, replace_store_insn, free_store_memory, store_motion):
8821 * global.c (global_alloc, global_conflicts, mark_elimination,
8822 build_insn_chain): Modified.
8823 * graph.c (print_rtl_graph_with_bb): Modified.
8824 * haifa-sched.c (sched_init): Modified.
8825 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8826 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
8827 if_convert): Modified.
8828 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
8829 compute_insert_delete, pre_edge_lcm, compute_available,
8830 compute_farthest, compute_nearerout, compute_rev_insert_delete,
8831 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
8833 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
8834 * loop.c (loop_dump_aux): Modified.
8835 * predict.c (combine_predictions_for_insn, estimate_probability,
8836 last_basic_block_p, process_note_prediction, process_note_predictions,
8837 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
8838 expensive_function_p, estimate_bb_frequencies,
8839 compute_function_frequency): Modified.
8840 * print-rtl.c (print_rtx): Modified.
8841 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
8842 get_exec_counts, compute_branch_probabilities, compute_checksum,
8843 branch_prob, find_spanning_tree): Modified.
8844 * recog.c (split_all_insns, peephole2_optimize): Modified.
8845 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
8846 convert_regs_1, convert_regs_2, convert_regs): Modified.
8847 * regclass.c (scan_one_insn, regclass): Modified.
8848 * regmove.c (mark_flags_life_zones, regmove_optimize,
8849 combine_stack_adjustments): Modified.
8850 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
8851 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
8852 * reorg.c (dbr_schedule): Modified.
8853 * resource.c (find_basic_block, init_resource_info): Modified.
8854 * sbitmap.c (sbitmap_intersection_of_succs,
8855 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
8856 sbitmap_union_of_preds): Modified.
8857 * sched-deps.c (init_dependency_caches): Modified.
8858 * sched-ebb.c (schedule_ebbs): Modified.
8859 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
8860 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
8861 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
8862 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
8863 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
8864 ssa_const_prop): Modified.
8865 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
8866 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
8867 * ssa.c (remove_phi_alternative, find_evaluations,
8868 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
8869 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
8870 make_regs_equivalent_over_bad_edges,
8871 make_equivalent_phi_alternatives_equival,
8872 compute_conservative_reg_partition,
8873 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
8874 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
8877 2002-05-16 Mark Mitchell <mark@codesourcery.com>
8879 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
8881 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
8883 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
8884 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8885 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
8886 calling CONSTANT_POOL_ADDRESS_P.
8887 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
8888 to decide whether to define __arm__ or __thumb.
8889 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
8890 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8892 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8894 * config/arc/arc.h (CPP_PREDEFINES): Remove.
8896 (TARGET_CPU_CPP_BUILTINS): New.
8898 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8900 * cpphash.h (cpp_macro): Move here, and make expansion a union.
8901 * cppmacro.c (cpp_macro): Remove.
8902 (enter_macro_context, replace_args, warn_of_redefinition,
8903 _cpp_create_definition, cpp_macro_definition): Update.
8905 2002-05-16 Jason Merrill <jason@redhat.com>
8907 * config/mips/mips.c (mips_output_external): Don't do sdata
8908 optimization for a variable with DECL_COMDAT set.
8910 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8912 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
8913 Cleanups for accepting modifiers on pointers.
8914 Fix predicate typos.
8915 Allow long pointers as well as int pointers.
8917 2002-05-15 Richard Henderson <rth@redhat.com>
8919 * varasm.c (merge_weak): Remove special case for extern and common.
8921 2002-05-15 Matt Hiller <hiller@redhat.com>
8923 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
8925 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
8926 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
8927 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
8928 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
8929 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
8930 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
8932 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8934 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
8936 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8938 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
8939 ("altivec_mfvscr"): Read from VSCR.
8941 Add vscr sets for the following insns: altivec_vctuxs,
8942 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
8943 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
8944 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
8945 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
8946 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
8947 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
8948 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
8949 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
8950 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
8951 altivec_vsum2sws, altivec_vsumsws.
8953 * config/rs6000/rs6000.h: Add VSCR fixed register.
8954 (CALL_REALLY_USED_REGISTERS): Add vscr.
8955 (CALL_USED_REGISTERS): Same.
8956 (FIXED_REGISTERS): Same.
8957 (REG_ALLOC_ORDER): Same.
8958 (reg_class): Add VSCR_REGS.
8959 (REG_CLASS_NAMES): Same.
8960 (REG_CLASS_CONTENTS): Same.
8962 (REGISTER_NAMES): Add vscr.
8963 (DEBUG_REGISTER_NAMES): Same.
8964 (ADDITIONAL_REGISTER_NAMES): Same.
8965 (FIRST_PSEUDO_REGISTER): Increment.
8966 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
8968 2002-05-15 Jakub Jelinek <jakub@redhat.com>
8970 * fold-const.c (fold): Fix a typo.
8972 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
8974 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
8975 comparison against the highest or lowest integer value before
8976 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
8977 transformation and that of an unsigned comparison against 0
8980 2002-05-15 Richard Henderson <rth@redhat.com>
8982 * varasm.c (merge_weak): Error for any weakening after definition.
8983 Adjust weakening after use warning to catch more cases.
8984 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
8985 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
8987 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
8989 * invoke.texi (-malign-double): Re-add lost warning.
8991 * i386-protos.h (x86_output_mi_thunk): Declare.
8992 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
8993 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
8995 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
8996 when flag_asynchronous_unwind_tables is set.
8998 * flags.h (flag_reorder_functions): Declare.
8999 * function.c (prepare_function_start): Initialize frequnecy.
9000 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
9001 * Makefile.in (predict.o): Add dependency on target.h and params.h
9002 * defaults.h (HOT_TEXT_SECTION_NAME,
9003 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
9004 * predict.c (choose_function_section): New function.
9005 (estimate_bb_frequencies): Use it.
9006 * toplev.c (flag_reorder_functions): New global variable.
9007 (lang_independent_options): New.
9008 (parse_options_and_default_flags): Set.
9009 * varasm.c (assemble_start_function): Bypass functdion alignment
9010 for never executed functions.
9011 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
9012 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
9013 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
9016 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
9018 * predict.c: Inlude profile.h
9019 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
9020 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
9021 Use the information about maximal counter in the program.
9023 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
9025 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
9026 probably_never_executed_bb_p): New functions.
9027 * cfgcleanup.c (outgoing_edges_match): Use them.
9028 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
9029 (maybe_hot_bb_p, probably_cold_bb_p,
9030 probably_never_executed_bb_p): New functions.
9032 * function.h (function): Add new field function_frequency.
9033 * predict.c (compute_function_frequency): New function.
9034 (estimate_probability): Call it.
9036 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9038 PR optimization/5172, optimization/5200
9039 * gcse.c (gcse_main): Disable store_motion.
9041 2002-05-14 Zack Weinberg <zack@codesourcery.com>
9043 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
9044 (c_common_nodes_and_builtins): Use it.
9045 (builtin_define_with_value): New function.
9046 (cb_register_builtins): Define __SIZE_TYPE__,
9047 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
9048 using builtin_define_with_value. Use consistent notation when
9049 defining __GXX_WEAK__.
9050 (WCHAR_TYPE_SIZE): Don't redefine.
9051 (combine_strings): Don't use WCHAR_TYPE_SIZE.
9053 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
9054 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
9055 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
9056 * tradcpp.c (initialize_builtins): Likewise.
9057 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
9059 * c-lex.h (builtin_define_with_value): Prototype.
9060 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
9061 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
9062 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
9064 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
9065 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
9066 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
9067 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
9068 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
9069 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
9070 config/sparc/sol2-bi.h, config/sparc/sparc.h:
9071 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
9072 to __SIZE_TYPE__ etc from all spec strings. When this makes
9073 extra specs empty, delete them.
9075 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
9077 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
9078 for PA8000 or generating dwarf2 call frame information.
9079 (output_call): Remove DO_FRAME_NOTES check from return pointer
9081 (following_call): Return 0 when scheduling for PA8000 or generating
9082 dwarf2 call frame information. Revise comment.
9084 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9087 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
9088 and __IEEE_FP_INEXACT as appropriate.
9089 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
9090 (CPP_SPEC): Remove ieee defines.
9091 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
9093 2002-05-14 Richard Henderson <rth@redhat.com>
9095 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
9096 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
9098 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9100 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
9102 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
9103 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
9104 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
9105 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
9106 (EXTRA_SPECS): Update.
9107 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
9108 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
9109 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
9110 define TARGET_OS_CPP_BUILTINS if necessary.
9112 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9114 * gcc.c (cpp_options): Must pass -m* and -f* options
9115 to the front end even when only preprocessing.
9116 (cc1_options): Remove redundant -lang-c.
9117 * tradcpp.c (main): Ignore -m options.
9119 * lang-specs.h: Similarly.
9121 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
9123 * genautomata.c (transform_3): Add code for transformation
9124 `(A,B,...)+C -> A+C,B,...'.
9126 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
9128 * final.c (end_final): Do not output profile_arcs constructor, when
9129 no functions are instrumented.
9131 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
9133 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
9135 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9137 * doc/install.texi: Remove special markup originally required for
9138 HTML generation with texi2html.
9140 2002-05-14 Andreas Schwab <schwab@suse.de>
9142 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
9144 (UNIQUE_SECTION): Define to get small data correctly.
9146 * varasm.c (resolve_unique_section): Add third parameter
9147 flag_function_or_data_sections and use it instead of
9148 flag_function_sections.
9149 (assemble_start_function): Pass flag_function_sections.
9150 (asm_emit_uninitialised): Pass flag_data_sections.
9151 (assemble_variable): Likewise.
9153 2002-05-14 Richard Henderson <rth@redhat.com>
9155 * config/i386/i386.md: Use define_constants for unspec numbers.
9156 * config/i386/i386.c: Likewise.
9158 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9160 * doc/contrib.texi: Update my entry.
9162 2002-05-13 Mark Mitchell <mark@codesourcery.com>
9164 * fixinc/inclhack.def (winidss_valist): Limit applicability.
9165 * fixinc/fixincl.x: Regenerated.
9166 * fixinc/tests/base/math.h: Update.
9167 * fixinc/tests/base/testing.h: Likewise.
9169 2002-05-13 Zack Weinberg <zack@codesourcery.com>
9171 * genattr.c (gen_attr): Don't emit a comma after the last
9174 2002-05-13 Richard Henderson <rth@redhat.com>
9176 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
9178 * recog.c (peephole2_optimize): Likewise.
9180 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
9182 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
9185 2002-05-13 Jeffrey A Law (law@redhat.com)
9187 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
9188 Update prototype and callers.
9189 (propagate_one_insn): Stack pointer adjustments kill MEMs on
9190 the mem_set_list which reference the stack pointer, as do
9191 calls to constant functions as they may clobber outgoing
9194 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
9196 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9197 (ia32_multipass_dfa_lookahead): New function.
9199 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9201 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
9202 (translate_options): Remove 'V'.
9203 (process_command): Similarly.
9205 * invoke.texi: Remove documentation of 'V'.
9207 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
9209 * config/s390/linux.h: Revert 2002-04-22 changes.
9211 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
9213 * config/fr30/fr30.md: Only allow splits of immediate loads
9214 if the destination is a register.
9216 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9218 * Makefile.in (c-common.o, cppinit.o): Update.
9219 * c-common.c: Include except.h.
9220 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9221 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9222 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9223 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9224 CPP_PREDEFINES): Handle here.
9226 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9227 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9228 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9229 TARGET_OS_CPP_BUILTINS.
9230 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9231 (CPP_SPEC, EXTRA_SPECS): Update.
9232 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9233 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9234 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9235 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9236 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9238 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9239 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9241 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9243 * emit-rtl.c (global_rtl): Update comment.
9244 (const_double_htab, const_double_htab_hash,
9245 const_double_htab_hash, lookup_const_double): New.
9246 (const_int_htab_hash, const_int_htab_eq): Remove const
9247 qualifiers, which cause tons of warnings with RTL checking on.
9248 (gen_rtx_CONST_DOUBLE): Deleted.
9249 (const_double_from_real_value): New function - bears some
9250 resemblance to the former immed_real_const_1.
9251 (immed_double_const): Moved here from varasm.c and
9253 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9254 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9255 (gen_rtx): Use immed_double_const.
9256 (init_emit_once): Initialize the const_double_htab. Use
9257 REAL_VALUE_FROM_INT where possible. Can now use
9258 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9259 * varasm.c (struct varasm_status): Remove x_const_double_chain.
9260 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9261 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9262 (init_varasm_status, mark_varasm_status): Don't touch
9263 x_const_double_chain.
9265 * output.h: Delete prototype for clear_const_double_mem.
9266 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
9267 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
9268 const_double_from_real_value, not immed_real_const_1, and use
9269 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
9271 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9272 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9273 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9274 (gen_rtx_REG): Second arg is unsigned.
9276 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9277 (excluded_rtx): New, return true for CONST_DOUBLE.
9278 (genmacro): Write nothing for excluded codes.
9279 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9280 * expr.c (expand_expr): Likewise.
9281 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9283 * toplev.c (rest_of_compilation): Don't call
9284 clear_const_double_mem.
9286 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9287 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9288 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9289 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9290 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9291 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9292 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9293 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9295 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9297 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9299 2002-05-12 Tom Tromey <tromey@redhat.com>
9301 * tree.h (copy_node): Don't mention TREE_PERMANENT.
9303 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9305 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9306 (scan_comma_elt): New function. Accepts whitespace in comma lists.
9307 * gensupport.h: Prototype new routines.
9308 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
9310 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9311 (next_comma_elt): Use scan_comma_elt.
9313 * config/i386/i386.md: Use new attribute notation to break up
9314 long lines in define_attr forms.
9316 2002-05-12 Richard Henderson <rth@redhat.com>
9318 * expr.c (compress_float_constant): New.
9319 (emit_move_insn): Use it.
9320 (float_extend_from_mem): New.
9321 (init_expr_once): Initialize it.
9322 * real.c (exact_real_truncate): New.
9324 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9325 dropped into memory; penalize for size.
9326 (RTX_COSTS): FLOAT_EXTEND is free.
9327 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9328 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9330 2002-05-12 Richard Henderson <rth@redhat.com>
9332 * profile.h (profile_info): Add missing extern to declaration.
9333 * profile.c (profile_info): Define it.
9335 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9337 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9338 used for DImode and TImode.
9340 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
9342 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9345 2002-05-11 Zack Weinberg <zack@codesourcery.com>
9347 * config/rs6000/rs6000.c (rs6000_default_long_calls,
9348 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9349 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9350 (rs6000_override_options): Handle -m(no-)longcall.
9351 (init_cumulative_args, output_mi_thunk): Check for both
9352 longcall and shortcall attributes on the function.
9353 (rs6000_attribute_table): Add "shortcall".
9354 (rs6000_handle_longcall_attribute): Update comment.
9355 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9356 altivec_expand_ternop_builtin): Add default clauses to switches
9357 to silence warnings.
9359 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9360 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
9361 (TARGET_OPTIONS): Add longcall and no-longcall.
9363 * config/rs6000/rs6000.md (call_nonlocal_sysv,
9364 call_value_nonlocal_sysv): Split by alternatives. One pair
9365 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9366 the call cookie. The other pair accepts only LR/CTR and has
9369 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9370 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9372 * config/rs6000/rs6000-c.c: New file.
9373 * config/rs6000/t-rs6000-c-rule: New file.
9374 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9375 Prototype rs6000_pragma_longcall.
9377 * doc/extend.texi: Document shortcall attribute.
9378 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9380 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9382 * reorg.c (dbr_schedule): Remove unnecessary test.
9384 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9386 * i386.md (testsi to testqi spliters): New.
9388 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
9390 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9392 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
9394 * basic-block.h: New flag EDGE_CAN_FALLTHRU
9395 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9396 that can be made fallthru.
9398 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
9400 * cfglayout.c (cleanup_unconditional_jumps): New static function.
9401 (cfg_layout_initialize): Use it.
9403 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
9405 * config/avr/avr.c (avr_mcu_types): Update supported devices.
9406 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9407 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9409 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
9411 * dbxout.c: Fix formatting.
9412 * dependence.c: Likewise.
9414 * diagnostic.c: Likewise.
9415 * doloop.c: Likewise.
9416 * dominance.c: Likewise.
9417 * doschk.c: Likewise.
9418 * dwarf2asm.c: Likewise.
9419 * dwarf2out.c: Likewise.
9420 * dwarfout.c: Likewise.
9422 2002-05-10 Richard Henderson <rth@redhat.com>
9424 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
9425 Convert integers constants as needed. Replace "nwords" field with
9427 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9428 * function.h: Fix typo in comment.
9429 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9431 2002-05-10 Roger Sayle <roger@eyesopen.com>
9433 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9434 into the equivalent (signed char)c > 0.
9436 2002-05-10 Janis Johnson <janis187@us.ibm.com>
9438 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9439 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9440 (struct prefetch_info): Fix spelling of member bytes_accessed.
9441 (emit_prefetch_instructions): Make dump messages more regular;
9442 restructure code to add more dump messages; use new macros for
9443 heuristics. (There are no code generation changes in any of this).
9445 2002-05-10 David S. Miller <davem@redhat.com>
9447 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9448 (struct rtx_def): Update unchanging flag comment.
9449 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9450 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9451 to be handled to INSN too.
9452 (dbr_schedule): Likewise.
9453 * resource.c (next_insn_no_annul): Likewise.
9455 * cse.c (rtx_cost): Remove multiplication by power of 2 special
9458 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9460 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9461 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9462 (possibly) work around broken /bin/sh.
9464 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9466 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9467 . as N64/N32 libgcc_s.so subdirs.
9469 2002-05-10 David S. Miller <davem@redhat.com>
9471 * config/sparc/sparc.md: Use define_constants for unspec numbers.
9473 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9475 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9477 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9478 * doc/rtl.texi: Document these macros more accurately.
9479 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9480 JUMP_INSNs and CALL_INSNs.
9481 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9482 or INSN_FROM_TARGET_P if the code is appropriate.
9484 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
9486 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9487 before using SYMBOL_REF_FLAG (addr).
9489 * config/avr/avr-protos.h (avr_io_address_p): Declare.
9490 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9491 Make non-static. Update all callers.
9492 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9493 New insns to clear/set/test a single bit in I/O address space.
9495 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9497 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9499 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9501 * Makefile.in: Update.
9502 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9503 builtin_define_std): New.
9504 (c_common_init): Register CPP builtins callback.
9505 * c-common.h (flag_iso, flag_undef): New.
9506 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9507 * c-lex.c: Don't include target.h.
9508 (cb_register_builtins): Move to c-common.c.
9509 (init_c_lex): Don't register hook here.
9510 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9511 (cpp_define, cpp_assert): Remove.
9512 * gcc.c (cc1_options): Pass -undef to front end.
9513 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9514 (TARGET_INITIALIZER): Update.
9515 * target.h (struct cpp_reader): Don't predeclare.
9516 (struct gcc_target): Remove cpp builtin hook.
9517 * tree.c (default_register_cpp_builtins): Remove.
9521 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9523 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9525 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9527 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9528 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9530 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9532 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9533 * config/sparc/libgcc-sparc-glibc.ver: New file.
9534 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9535 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9537 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9540 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9541 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9542 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9544 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9545 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9546 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9547 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9549 2002-05-09 Richard Henderson <rth@redhat.com>
9551 * config/ia64/ia64.md: Use define_constants for unspec numbers.
9552 * config/ia64/ia64.c: Likewise.
9554 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
9556 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9557 (save_restore_insns): Likewise.
9558 (mips_expand_prologue, mips_expand_epilogue): Update callers.
9559 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9561 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
9563 * athlon.md, k6.md, pentium.md, ppro.md): New files.
9564 * i386.md: Move scheduling information into new files.
9566 * i386.md (type attribute): Add "rotate" for rotate insns.
9567 (rotate insns): Set type to "rotate".
9568 (various attributes and function units): Treat rotate like shift.
9569 (pent_pair attribute): Only rotates by one bit position are
9571 (sbb insns): Explicitly set pent_pair attribute on a couple
9572 that were missing it.
9574 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9576 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9577 make sure that buffer starts on odd word address.
9578 (sh_va_arg): Skip odd fp registers when reading a double precision
9581 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9583 * tree.h (preserve_data, object_permanent_p, type_precision):
9586 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9588 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9589 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9591 * cpp.texi: Update for removal of obsolete features.
9593 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
9594 Jeffrey A Law (law@redhat.com)
9596 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
9597 the DFA interface for Pentium processors.
9598 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9599 (attr_pent_pair, ix86_pent_find_pair): Remove.
9600 (ix86_sched_reorder_pentium): Remove.
9601 (ix86_sched_reorder): Remove reordering for Pentium.
9602 * i386.md (Pentium scheduling): Rewrite using DFA description.
9604 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
9606 * cfganal.c (can_fallthru): Fix fast path.
9607 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9608 with edges to the next block.
9610 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
9611 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
9613 * final.c (end_final): Use C trees to output data structures for profiling.
9615 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
9616 (profile.o): New dependency profile.h
9617 (final.o): New dependency profile.h
9618 * profile.h: New file. New global structure profile_info.
9619 * final.h (count_edges_instrumented_now): Declare.
9620 (current_function_cfg_checksum): Declare.
9621 (function_list): New structure.
9622 (functions_head, functions_tail): New static variables.
9623 (end_final): Emits more data, removed some -ax stuff.
9624 (final): Stores function names and chcksums.
9625 * gcov-io.h (__write_gcov_string): New function.
9626 (__read_gcov_string): New function.
9627 * gcov.c (read_profile): New function.
9628 (create_program_flow_graph): Uses read_profile instead of reading
9630 (read_files): Removed da_file checking, it's done by read_profile now.
9631 * libgcc2.c (bb_function_info): New structure.
9632 (bb): New field in structure, removed some -ax stuff.
9633 (__bb_exit_func): Changed structure of da_file.
9634 * profile.c (count_edges_instrumented_now): New global variable.
9635 (current_function_cfg_checksum): New global variable.
9636 (max_counter_in_program): New global variable.
9637 (get_exec_counts): New function.
9638 (compute_checksum): New function.
9639 (instrument_edges): Sets count_edges_instrumented_now.
9640 (compute_branch_probabilities): Uses get_exec_counts instead of
9642 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
9643 (init_branch_prob): Removed da_file checking, done in get_exec_counts
9645 (end_branch_prob): Removed da_file checking, done in get_exec_counts
9647 * gcov.texi: Updated information about gcov file format.
9649 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
9651 * sbitmap.c: Fix formatting.
9653 * scan-decls.c: Likewise.
9654 * sched-deps.c: Likewise.
9655 * sched-ebb.c: Likewise.
9656 * sched-rgn.c: Likewise.
9657 * sched-vis.c: Likewise.
9658 * sdbout.c: Likewise.
9659 * sibcall.c: Likewise.
9660 * simplify-rtx.c: Likewise.
9662 * ssa-ccp.c: Likewise.
9663 * ssa-dce.c: Likewise.
9665 * stor-layout.c: Likewise.
9666 * stringpool.c: Likewise.
9668 2002-05-09 David S. Miller <davem@redhat.com>
9670 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
9672 2002-05-07 David S. Miller <davem@redhat.com>
9674 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
9675 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
9676 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
9677 library implementation clobbers the output before the inputs
9678 are fully consumed, use stack temporary for the output.
9680 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
9682 * config/netbsd.h (CPP_SPEC): Remove.
9683 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
9684 * config/i386/netbsd.h (CPP_SPEC): Define.
9685 * config/ns32k/netbsd.h (CPP_SPEC): Define.
9686 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
9687 * config/sparc/netbsd.h (CPP_SPEC): Define.
9688 * config/vax/netbsd.h (CPP_SPEC): Define.
9690 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
9692 * read-rtl.c: Fix formatting.
9694 * recog.c: Likewise.
9695 * regclass.c: Likewise.
9696 * regmove.c: Likewise.
9697 * reg-stack.c: Likewise.
9698 * reload1.c: Likewise.
9699 * reload.c: Likewise.
9700 * resource.c: Likewise.
9701 * rtlanal.c: Likewise.
9703 * rtl-error.c: Likewise.
9705 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9707 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
9708 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
9710 2002-05-08 Bernd Schmidt <bernds@redhat.com>
9712 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
9713 use __SSE2__ macro instead.
9714 * config/i386/xmmintrin.h: Likewise.
9716 2002-05-08 Janis Johnson <janis187@us.ibm.com>
9718 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
9719 and use it in all invocations of these macros. Clean up comments.
9720 * rtl.c (rtl_check_failed_flag): Add an argument for the name
9721 of the flag access macro whose check failed.
9722 * doc/rtl.texi (Flags): Document additional flag uses.
9724 2002-05-08 Robert Spier <rspier@pobox.com>
9725 Neil Booth <neil@daikokuya.demon.co.uk>
9727 PR preprocessor/6521
9728 * cppfiles.c (handle_missing_header): Don't do anything
9729 different for <> includes.
9731 * cppopts.texi: Update documentation for -MG.
9733 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
9735 * cpplex.c (cpp_interpret_charconst): Truncate as well as
9738 * cpp.texi: Clarify multichar charconst valuation.
9740 2002-05-08 Mark Mitchell <mark@codesourcery.com>
9742 * doc/invoke.texi: Document -mwindiss option.
9744 2002-05-08 Jason Merrill <jason@redhat.com>
9746 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
9748 * dwarf2out.c (gen_type_die): Abort on broken recursion.
9751 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
9754 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
9756 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
9757 little-endian multilibs to override arm/thumb multilibs.
9758 Do not build hardware floating point multilibs, nor apcs-26
9759 multilibs for the Thumb.
9761 2002-05-08 Mark Mitchell <mark@codesourcery.com>
9764 * varasm.c (mark_weak): New function.
9765 (merge_weak): Use it. Do not call declare_weak.
9766 (declare_weak): Use merge_weak.
9768 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
9770 * cse.c (dead_libcall_p): Update counts.
9771 (delete_trivially_dead_insns): Update call of dead_libcall_p.
9773 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
9775 * cfglayout.c (function_tail_eff_head): Rename to ...
9776 (function_footer): ... this one.
9777 (unlink_insn_chain): New functions.
9778 (label_for_bb): Only call block_label and emit debug message.
9779 (record_effective_endpoints): Actually unlink the headers and footers.
9780 (fixup_reorder_cahin): Re-insert the unlinked sequences.
9781 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
9782 * cfglayout.h (struct reorder_block_def): New fields footer/header;
9783 remove eff_head/eff_end.
9784 * rtl.h (set_first_insn): Declare.
9785 * emit-rtl.c (set_first_insn): New function.
9787 * cfglayout.c (fixup_reorder_chain): Dump duplicated
9788 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9789 cfg_layout_duplicate_bb): New global function.
9790 (duplicate_insn_chain): New static function.
9791 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9792 cfg_layout_duplicate_bb): Declare.
9793 (struct reorder_block_def): Add "original" field.
9794 * emit-rtl.c (emit_copy_of_insn_after): New function.
9795 * rtl.h (emit_copy_of_insn_after): Declare.
9797 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
9798 (fixup_reorder_chain): properly handle edges to exit block.
9800 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9801 Jan Hubicka <jh@suse.cz>
9803 * basic-block.h (note_prediction_to_br_prob): declare.
9804 * c-semantics.c: Inlucde predit.h
9805 (expand_stmt): predict GOTO_STMT as not taken.
9806 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
9807 (cleanup_cfg): Do not free tail_recursion_list.
9808 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
9809 (flow_delete_block): Kill predictions past end of basic block.
9810 * output.h (delete_unreachable_blocks): Declare.
9811 * predict.c (predicted_by_p, process_note_predictions,
9812 process_note_prediction, last_block_p): New function.
9813 (estimate_probability): Bypass loop on PRED_CONTINUE;
9814 do not handle noreturn heuristics; kill PRED_RETURN; add
9816 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
9817 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
9818 * predict.h (IS_TAKEN): New constant.
9819 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
9820 * rtl.c (NOTE_INSN_PREDICTION): New.
9821 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
9823 (insn_note): add NOTE_INSN_PREDICTION.
9824 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
9825 CFG; free tail_recursion_label_list.
9826 * stmt.c: Include predict.h;
9827 (return_prediction): New.
9828 (expand_value_return): Use it.
9829 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
9831 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
9833 * config/mips/mips.md: Name the unspecs with define_constant.
9834 (*HILO_delay): Rename to 'hilo_delay' (no star).
9835 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
9836 (reload_outdi, reload_outsi): Likewise.
9838 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
9840 * toplev.c: Fix formatting.
9842 2002-05-07 Janis Johnson <janis187@us.ibm.com>
9844 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
9845 * configure.in (ac_rtlflag_checking): New.
9846 * doc/install.texi (--enable-checking): Document RTL flag checking.
9848 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
9850 * c-common.c (c_common_init): Set options->unsigned_wchar.
9851 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
9852 group target dependencies.
9853 (init_builtins, cpp_handle_option): Update.
9854 * cpplex.c (cpp_interpret_charconst): Update.
9855 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
9856 signed_char to unsigned_char, group target dependencies.
9857 * defaults.h (WCHAR_UNSIGNED): Remove.
9858 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
9860 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
9861 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
9862 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
9863 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
9864 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
9866 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
9868 2002-05-07 Mark Mitchell <mark@codesourcery.com>
9870 * fixinc/inclhack.def (windiss_math1): New fix.
9871 (windiss_math2): Likewise.
9872 (windiss_valist): Likewise.
9873 * fixinc/fixincl.x: Regenerated.
9875 2002-05-07 Andreas Jaeger <aj@suse.de>
9877 * genautomata.c (output_internal_min_issue_delay_func): Add
9878 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
9879 (output_internal_trans_func): Likewise.
9881 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
9883 * pa.c (hppa_profile_hook): Use force_reg to get the address
9884 of the profile hook into an appropriate pseudo register.
9886 2002-05-07 Mark Mitchell <mark@codesourcery.com>
9888 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
9889 (LINK_START_SPEC): Handle it.
9890 (LINK_OS_SPEC): Likewise.
9891 (CPP_SPEC): Likewise.
9892 (STARTFILE_SPEC): Likewise.
9893 (LIB_SPEC): Likewise.
9894 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
9896 (CRTSAVRES_DEFAULT_SPEC): New macro.
9897 (LIB_WINDISS_SPEC): New macro.
9898 (CPP_OS_WINDISS_SPEC): Likewise.
9899 (STARTFILE_WINDISS_SPEC): Likewise.
9900 (ENDFILE_WINDISS_SPEC): Likewise.
9901 (LINK_START_WINDISS_SPEC): Likewise.
9902 (LINK_OS_WINDISS_SPEC): Likewise.
9903 * config/rs6000/windiss.h: New file.
9905 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
9907 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
9909 2002-05-06 David S. Miller <davem@redhat.com>
9911 * config/sparc/sparc.md (shift insns): Do not mask off
9912 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
9915 2002-05-06 Richard Henderson <rth@redhat.com>
9918 * expr.c (highest_pow2_factor_for_type): New.
9919 (expand_assignment): Use it.
9921 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
9923 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
9925 ("altivec_mfvscr"): Same.
9927 2002-05-06 Janis Johnson <janis187@us.ibm.com>
9929 * rtl.h (struct rtx_def): Update comments.
9930 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
9931 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
9932 RTL_FLAG_CHECK macros with list of expected RTL codes.
9933 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
9934 (rtl_check_failed_flag): New.
9935 * reload1.c (reload): Use REG macro before changing rtx to MEM.
9936 (reload_cse_noop_set_p): Check rtx code before using access macro.
9937 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
9938 before using access macro.
9940 2002-05-06 Janis Johnson <janis187@us.ibm.com>
9942 * doc/rtl.texi (Flags): Update to reflect current usage.
9944 2002-05-06 Roger Sayle <roger@eyesopen.com>
9947 * fold-const.c (sign_bit_p): New function.
9948 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
9949 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
9950 Reapply fold when converting (A & C) == C into (A & C) != 0.
9951 (fold_binary_op_with_conditional_arg): Fix typo in comment.
9953 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
9955 * c-common.c (warn_multichar): New.
9956 (c_common_init): Set CPP's warn_multichar.
9957 * c-common.h (warn_multichar): New.
9958 * c-decl.c (warn_multichar): Remove.
9959 * c-lex.c (lex_charconst): Update.
9960 * c-tree.h (warn_multichar): Remove.
9961 * cppexp.c (eval_token): Sign-extend charconst value.
9962 * cppinit.c (cpp_create_reader): Set warn_multichar.
9963 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
9964 each character. Update prototype. Sign-extend the result.
9965 * cpplib.h: Fix conditions.
9966 (struct cpp_options): Add new warning flag.
9967 (cpp_interpret_charconst): Update prototype.
9969 * cpp.texi: Update documentation.
9971 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
9973 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
9974 Fix typo in usage of allof instead of unit.
9976 2002-05-06 Richard Henderson <rth@redhat.com>
9978 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
9979 and any jump or call for IN.
9981 2002-05-06 Bernd Schmidt <bernds@redhat.com>
9983 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
9985 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
9987 2002-05-06 Roger Sayle <roger@eyesopen.com>
9989 * fold-const.c (lshift-double): Cast the high word to an unsigned
9990 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
9991 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
9992 avoid compiler warning. (fold): Remove redundant code from
9993 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
9995 2002-05-06 Jeff Law <law@redhat.com>
9997 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
9998 * pa.c (pa_adjust_cost): Remove all true dependency cost
9999 adjustments. Also remove support for non-DFA scheduling.
10000 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
10001 to adjust true dependency costs. Update various comments.
10002 (7100lc, 7200, 7300 scheduling): Simplify by combining the
10003 FP ALU & MPY units into a single unit.
10005 2002-05-06 Catherine Moore <clm@redhat.com>
10007 * config/v850/v850.c (compute_register_save_size): Make sure
10008 to count all of the registers that will be saved.
10010 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10012 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
10014 2002-05-06 David S. Miller <davem@redhat.com>
10016 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
10017 allow result to overlap input operands in memory.
10019 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10022 * cpp.texi: Update multichar charconst docs.
10024 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10026 * cpplex.c (cpp_interpret_charconst): Sign-extend each
10027 character. Don't ignore excess characters. Treat
10028 multicharacter character constants as signed.
10029 (cpp_parse_escape): Clarify diagnostic.
10031 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10033 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
10034 use add instead of shift.
10035 (ashldi3_sp64): Likewise.
10036 (ashlsi3_const1, ashldi3_const1): Remove.
10037 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
10038 * config/sparc/sparc.c (const1_operand): New.
10040 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
10042 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
10044 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10047 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
10049 2002-05-05 Richard Henderson <rth@redhat.com>
10051 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
10052 memory latency adjustments.
10053 (alpha_variable_issue): Remove.
10054 (alpha_use_dfa_pipeline_interface): New.
10055 (alpha_multipass_dfa_lookahead): New.
10056 * config/alpha/alpha.md: Remove define_function_unit scheduling;
10057 include new dfa scheduling.
10058 (attr type): Add none.
10059 (blockage): Use it.
10060 * config/alpha/ev4.md: New.
10061 * config/alpha/ev5.md: New.
10062 * config/alpha/ev6.md: New.
10064 2002-05-05 David S. Miller <davem@redhat.com>
10066 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
10068 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
10070 * cse.c: Fix formatting.
10071 * emit-rtl.c: Likewise.
10073 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10075 * genautomata.c (initiate_states): Add additional guard to
10076 initialize `units_array'.
10078 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10080 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
10081 process_unit_to_form_the_same_automaton_unit_lists,
10082 form_the_same_automaton_unit_lists
10083 check_unit_distributions_to_automata): New prototypes and
10085 (check_automata): Rename it into `check_automata_insn_issues'.
10086 (unit_decl): New fields `the_same_automaton_unit' and
10087 `the_same_automaton_message_reported_p'.
10088 (unit_decl_t): New typedef.
10089 (the_same_automaton_lists): New gloval variable.
10090 (unit_regexp, unit_set_el, units_array, units_cmp,
10091 output_get_cpu_unit_code_func): Use the typedef.
10092 (evaluate_max_reserv_cycles): Increment
10093 `description->max_insn_reserv_cycles'.
10094 (initiate_states): Don't increment `max_cycles_num'.
10095 (transform_insn_regexps): Move code around transformation of
10096 regexps from `generate'.
10097 (generate): Remove call of `transform_insn_regexps'.
10098 (expand_automata): Call `transform_insn_regexps' and
10099 `check_unit_distributions_to_automata'. Check errors before
10102 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
10103 automaton `ultrasparc3_1'.
10105 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
10107 * c-common.c (c_common_init): Set up CPP arithmetic.
10108 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
10109 something reasonable for the host.
10110 (sanity_checks): Add checks.
10111 (cpp_read_main_file): Call sanity_checks() from here...
10112 (cpp_post_options): ... not here.
10113 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
10114 * cpplib.h (struct cpp_options): New member int_precision.
10116 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10118 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
10120 2002-05-04 David S. Miller <davem@redhat.com>
10122 * config/sparc/linux.h, config/sparc/linux64.h
10123 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
10125 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
10127 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
10129 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
10132 2002-05-05 Tim Josling <tej@melbpc.org.au>
10134 * treelang; New directory for new sample language treelang.
10136 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10138 * Makefile.in (c-lex.o): Update.
10139 * c-lex.c: Include target.h.
10140 (cb_register_builtins): New.
10141 (init_c_lex): Set builtins callback.
10142 * c-lex.h (cpp_define, cpp_assert): New prototypes.
10143 * cppinit.c (init_builtins): Use callback, including for
10145 * cpplib.h (struct cpp_callbacks): New member.
10146 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
10147 (TARGET_INITIALIZER): Update.
10148 * target.h (struct gcc_target): New hook.
10149 * tree.c (default_register_cpp_builtins): New.
10150 * tree.h (default_register_cpp_builtins): New.
10152 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
10154 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10156 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
10157 (cpp_post_options): Move sanity checks to...
10158 (sanity_checks): New.
10159 * cpplex.c (maybe_read_ucs): Fix prototype.
10160 (parse_string, cpp_parse_escape): Cast for %c format specifier.
10161 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
10164 2002-05-04 Bernd Schmidt <bernds@redhat.com>
10166 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
10167 builtins. Use V2DI patterns instead of TI for logical operations.
10168 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
10169 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
10170 (ix86_expand_builtins): Change the pattern used for movntdq.
10171 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
10172 sse2_nandv2di3): New patterns.
10173 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
10175 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
10176 (cvtdq2pd): Correct mode on operand 1.
10177 (sse2_umulsidi3): Describe without unspec.
10178 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
10180 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
10181 (ashlv2di3): Likewise, from sse2_ashlv2di3.
10182 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
10183 ashlv4si3, ashlv2di3): Use SImode for shift count.
10184 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
10185 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
10187 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
10189 (__m128i, __m128d): New macros.
10190 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
10191 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
10192 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
10193 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
10194 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
10195 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
10196 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
10197 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
10198 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
10199 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
10200 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
10201 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
10202 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
10203 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
10204 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
10205 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
10206 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
10207 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
10208 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
10209 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
10210 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
10211 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
10212 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
10213 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
10214 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
10215 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
10216 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
10217 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
10218 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10219 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10220 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10221 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10222 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10223 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10224 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10225 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10226 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10228 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
10229 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10231 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
10233 * dwarf2out.c: Fix formatting.
10234 * varasm.c: Likewise.
10236 2002-05-04 David Edelsohn <edelsohn@gnu.org>
10239 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10240 clobber and use result as temporary value.
10242 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
10244 * expr.c (force_operand): Use expand_simple_* to handle more
10247 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10249 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10250 and sign-extension.
10251 (lex_charconst): Update for change in prototype of
10252 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
10254 * cpphash.h (BITS_PER_CPPCHAR_T): New.
10255 * cppinit.c (cpp_create_reader): Initialize them for no
10256 change in semantics.
10257 (cpp_post_options): Add sanity checks.
10258 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10259 and truncation issues. Calculate in type cppchar_t.
10260 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10261 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
10262 run-time dependent precision correctly. Return whether the
10263 result is signed or not.
10264 * cpplib.c (dequote_string): Use cppchar_t; update.
10265 * cpplib.h (cppchar_signed_t): New.
10266 struct cpp_options): New precision members.
10267 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
10268 * cppexp.c (eval_token): Update.
10270 2002-05-03 David S. Miller <davem@redhat.com>
10272 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10273 * config/sparc/sparc.c (sparc_rtx_costs): New function
10274 implementing RTX_COSTS and CONST_COSTS.
10275 * config/sparc/sparc.h (CONST_COSTS): Delete.
10276 (RTX_COSTS_CASES): Define.
10277 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10280 * config/sparc/sparc.md (DFA schedulers): Split out...
10281 * config/sparc/cypress.md, config/sparc/hypersparc.md,
10282 config/sparc/sparclet.md, config/sparc/supersparc.md,
10283 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10285 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10286 checks on it, always defined for Sparc.
10288 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10289 Tweak, and add more detailed comments.
10291 2002-05-03 Zack Weinberg <zack@codesourcery.com>
10293 * Re-apply patch accidentally reverted with
10294 DFA scheduler merge: remove all rules and variables to slurp
10295 source files out of libiberty and rebuild them with HOST_CC.
10296 ($(HOST_PREFIX_1)varray.o): New rule.
10297 (genattrtab rule): Word wrap.
10299 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10301 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10302 (CPP_SUBTARGET_SPEC): Define.
10303 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10304 cpp_subtarget specs.
10305 (CPP_SPEC): Redefine to include %(cpp_subtarget).
10307 2002-05-03 David S. Miller <davem@redhat.com>
10309 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10310 * target.h (struct gcc_target): Delete cycle_display member.
10312 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10313 (rtx_needs_barrier): Delete reference to cycle_display unspec.
10314 (ia64_sched_reorder2): Mention need for cycle display handling
10315 once such notes exist.
10317 2002-05-03 Richard Henderson <rth@redhat.com>
10319 * real.c (etoasc): Strip most trailing zeros for clarity.
10320 * sched-vis.c: Include real.h.
10321 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10322 * Makefile.in (sched-vis.o): Add real.h.
10324 2002-05-03 David S. Miller <davem@redhat.com>
10326 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10329 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
10331 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10332 when we get an out of range literal.
10333 (altivec_expand_ternop_builtin): Same.
10334 (altivec_expand_unop_builtin): Same.
10335 (altivec_expand_builtin): Same, for dss.
10336 (altivec_expand_builtin): Use trees instead of rtl when
10337 determining literal argument validity.
10339 2002-05-03 David S. Miller <davem@redhat.com>
10341 Delete cycle display scheduling hook.
10342 * config/ia64/ia64.c (ia64_cycle_display,
10343 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10344 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10345 and use emit_insn_before instead of ia64_emit_insn_before.
10346 * config/ia64/ia64.md (unspec usage): Delete cycle display.
10347 (cycle_display): Delete insn pattern.
10348 * config/sparc/sparc.md (unspec usage): Delete cycle display.
10349 (cycle_display): Delete insn pattern.
10350 * config/sparc/sparc.c (sparc_cycle_display,
10351 TARGET_SCHED_CYCLE_DISPLAY): Delete.
10352 * doc/md.texi (cycle_display): Don't mention.
10353 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
10355 2002-05-03 Richard Henderson <rth@redhat.com>
10357 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10358 * recog.h: Declare them.
10360 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10361 * config/sparc/sparc.md: Use store_data_bypass_p instead.
10362 * config/sparc/sparc-protos.h: Update.
10364 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10366 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10367 -D__arch64__. Add -D_LP64.
10368 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10370 (CPP_ARCH64_SPEC): Likewise.
10371 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10372 (NO_BUILTIN_SIZE_TYPE): Undef.
10374 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
10376 * genautomata.c (min_issue_delay_pass_states): Change return type
10378 (min_issue_delay_pass_states): Change the algorithm.
10379 (min_issue_delay): Set up min_insn_issue_delay for the state.
10380 (output_min_issue_delay_table): Interchange the nested loops and
10381 and initiate min_insn_issue_delay for states.
10383 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
10385 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
10386 jump is simplejump.
10388 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
10390 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
10393 2002-05-03 Richard Henderson <rth@redhat.com>
10396 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10397 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10398 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10399 code before JUMP, not EARLIEST.
10401 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
10403 * c-format.c (check_format_info_main): Don't check for presence of
10404 parameter for * width until after operand number has been read,
10405 and only check for it if format parameters are available.
10408 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10410 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10411 (LINK_SPEC): Undef before defining.
10413 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10415 PR preprocessor/6489
10416 * tradcpp.c (fixup_newlines): New.
10417 (main, finclude): Use it.
10419 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
10421 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10422 * config/mips/mips.c (mips_unique_section): Strip encoding from
10425 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10427 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10430 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10432 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10433 (Specific): Removed buildstats references.
10434 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10435 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10436 Accomodate Solaris versions beyond 8.
10437 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10438 (Specific, *-*-solaris2.8): Removed, obsolete.
10440 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10443 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10444 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10445 fill leaf_reg_remap with identity.
10446 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10448 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10450 * config/h8300/crti.asm: Remove trailing spaces.
10451 * config/h8300/h8300.c: Likewise.
10452 * config/h8300/lib1funcs.asm: Likewise.
10454 2002-05-02 Jason Merrill <jason@redhat.com>
10456 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10457 * c-decl.c (c_init_decl_processing): Use it.
10458 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10459 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10460 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10462 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10464 * regrename.c: Fix formatting.
10465 * tree.c: Likewise.
10467 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
10469 * i386.md (attribute memory): Handle compares properly.
10471 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
10473 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
10476 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
10478 * function.c: Fix formatting.
10480 2002-05-02 Jan Hubicka <jh@suse.cz>
10482 * haifa-sched.c (schedule_insn): Print table of instructions and
10484 (sched_block): Do not print ready list at verbosity level 1.
10485 * sched-vis.c (print_insn): Make global.
10486 * sched-ebb.c (ebb_print_insn): Rename from...
10487 (print_insn): ... this one.
10488 * sched-int.h (print_insn): Declare
10490 2002-05-02 Richard Henderson <rth@redhat.com>
10492 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10493 emitted by cycle_display.
10495 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
10497 * doc/install.texi (*-*-freebsd*): Update to latest status.
10499 2002-05-02 Jakub Jelinek <jakub@redhat.com>
10502 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10503 * config/float-sparc.h: Assume 128-bit long double if
10504 __LONG_DOUBLE_128__ is defined.
10506 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
10508 * genattrtab.c (write_function_unit_info): Add a dummy element
10509 when num_units == 0.
10511 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10513 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10514 TYPE_MODE (double_type_node) instead of DFmode.
10516 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
10518 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10520 * toplev.c (rest_of_compilation): Revert Richard's patch.
10522 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10524 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10526 2002-05-02 Catherine Moore <clm@redhat.com>
10528 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10530 2002-05-02 Kazu Hirata <kazu@hxi.com>
10532 * combine.c: Fix comment typos.
10533 * expr.c: Likewise.
10534 * genautomata.c: Likewise.
10535 * stmt.c: Likewise.
10536 * tree.h: Likewise.
10538 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
10540 * doc/install.texi: State GNAT version requirements.
10542 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
10544 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10545 of the frame pointer or arg pointer register which strict register
10546 checking is not enabled.
10548 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
10550 * gcc.dg/altivec-8.c: New.
10552 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10553 PRE_INC and PRE_DEC for altivec modes.
10555 2002-05-01 Bruce Korb <bkorb@gnu.org>
10557 * fixinc/check.tpl(set-writable): make sure the function exists first
10558 * fixinc/inclhack.def(alpha_assert): fix test_text
10559 * fixinc/tests/base/assert.h: add in missing result
10561 2002-05-01 Jeff Law <law@redhat.com>
10563 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10566 2002-05-01 Joel Brobecker <brobecker@gnat.com>
10568 * dbxout.c (dbxout_type): Emit size information for range types,
10569 as well, but only when using GDB extensions.
10571 2002-05-01 Richard Henderson <rth@redhat.com>
10573 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10574 target-independent gnu binutils date test.
10576 2002-05-01 Richard Henderson <rth@redhat.com>
10578 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10579 info before expunging the block.
10581 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10583 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10584 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
10585 -M -or -MM is in effect.
10587 2002-05-01 Zack Weinberg <zack@codesourcery.com>
10589 * config.gcc: Correct test of --enable-obsolete. Obsolete all
10590 A29k configurations.
10591 * doc/install.texi: Update to match.
10593 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10596 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10597 for duplicates. Always loop over whole list.
10599 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10601 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10603 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10605 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10608 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10610 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10612 2002-05-01 David Edelsohn <edelsohn@gnu.org>
10614 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10615 (nabs_nopower): Same.
10616 (floatdisf2): New pattern.
10617 (absdi2): Convert to define_insn_and_split.
10619 (trunctfsf2): Same.
10620 (floatditf2): Same.
10621 (floatsitf2): Same.
10622 (fix_trunctfdi2): Same.
10623 (fix_trunctfsi2): Same.
10625 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
10627 * doc/install.texi: Update Texinfo version requirement
10630 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10632 PR target/6512, PR target/5628
10633 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
10634 when memory is not aligned.
10635 (movdf_insn_v9only_vis): Likewise.
10636 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
10637 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
10638 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
10640 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
10642 * gcc.dg/altivec-7.c: New.
10644 * config/rs6000/altivec.h: Cleanup.
10646 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
10648 * doc/invoke.texi (Option Summary): Add -mvrsave=.
10649 (RS/6000 and PowerPC Options): Document -mvrsave=.
10651 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
10652 (rs6000_altivec_vrsave_string): Same.
10653 (rs6000_override_options): Call rs6000_parse_vrsave_option.
10654 (rs6000_parse_vrsave_option): New.
10655 (rs6000_stack_info): Only generate vrsave instructions when
10656 TARGET_ALTIVEC_VRSAVE.
10658 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
10659 (rs6000_altivec_vrsave_string): Define extern.
10660 (rs6000_altivec_vrsave): Same.
10661 (TARGET_ALTIVEC_VRSAVE): New.
10663 2002-04-30 Richard Henderson <rth@redhat.com>
10666 * toplev.c (rest_of_compilation): Don't run cross-jump before
10669 2002-04-30 Tom Rix <trix@redhat.com>
10671 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
10672 check which_alternative.
10674 2002-04-30 Kazu Hirata <kazu@hxi.com>
10676 * cpplex.c: Fix comment formatting.
10677 * function.c: Likewise.
10678 * integrate.c: Likewise.
10679 * regrename.c: Likewise.
10680 * sibcall.c: Likewise.
10681 * simplify-rtx.c: Likewise.
10682 * tree-inline.c: Likewise.
10684 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
10686 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
10687 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
10688 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
10689 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
10690 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
10691 * pa/x-ada: New file. Define ADA_CFLAGS.
10693 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
10695 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
10696 from MMIX_LAST_REGISTER_FILE_REGNUM.
10697 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
10698 (struct machine_function): New member highest_saved_stack_register
10699 previously static variable in mmix.c.
10700 (MACHINE_DEPENDENT_REORG): Define.
10701 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
10702 (MMIX_OUTPUT_REGNO): New.
10703 (mmix_target_asm_function_prologue): Move calculation of last used
10704 saved-stack-register into...
10705 (mmix_machine_dependent_reorg): New function. Update to also handle
10707 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
10708 register names, simplify somewhat by new variable regno.
10709 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
10711 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
10712 emitting register names.
10713 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
10714 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
10715 Remove fixed FIXME.
10716 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
10719 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
10721 2002-04-30 Richard Henderson <rth@redhat.com>
10723 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
10724 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
10725 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
10726 emit_tfmode_cvt): New.
10727 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
10728 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
10729 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
10730 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
10731 * config/sparc/sparc-protos.h: Update.
10733 2002-04-30 Janis Johnson <janis187@us.ibm.com>
10735 * install.texi (Final install): Add to the list of info to include
10736 in a report of a successful bootstrap, and add link to 3.1 list.
10738 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
10740 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
10741 (mode): Add vector modes
10742 (i387): Kill attribute.
10743 (unit): New attribute.
10744 (length_immediate): Grok new types.
10745 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
10746 (modrm): Use "unit".
10747 (memory): Handle MMX/SSE properly.
10748 (scheduling descriptions): Kill uses of fop1.
10749 (sse, mmx, fp patterns): Set type and mode properly.
10751 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
10753 * pa.c (override_options): Default to PA8000 scheduling.
10754 * doc/invoke.texi (HP-PA options): Mention newly added 7300
10755 scheduling parameter.
10757 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
10758 handling of double precision multiplies.
10760 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
10761 fpdiv and fpsqrt instructions.
10762 (7200 & 7300 scheduling): Fix typo in handling of
10763 store-load and store-store penalties.
10765 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10767 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
10768 mips. Add two missing commas.
10770 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
10772 * doc/contrib.texi (Contributors): Update Paolo Carlini's
10773 and Benjamin Kosnik's entries.
10775 2002-04-29 David S. Miller <davem@redhat.com>
10777 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
10778 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
10779 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
10780 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10782 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10784 * combine.c (find_split_point): Use gen_int_mode.
10786 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
10788 Merging code from dfa-branch:
10790 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
10792 * genautomata.c (output_reserv_sets): Fix typo.
10794 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
10796 * genautomata.c (output_reserv_sets): Remove
10797 next_cycle_output_flag.
10799 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
10801 * sched-rgn.c (init_ready_list): Make the DFA code handle
10802 USE/CLOBBER insns in the same way as the traditional
10804 (new_ready): Similarly..
10806 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
10808 * haifa-sched.c (schedule_block): Change the DFA state only after
10811 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
10813 * pa.c (hppa_use_dfa_pipeline_interface): New function.
10814 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
10815 (override_options): Add PA7300 scheduling support.
10816 (pa_adjust_cost): Update various comments. Properly
10817 handle anti and output dependencies when using the
10819 (pa_issue_rate): Add PA7300 scheduling support.
10820 (pa_can_combine_p): Call extract_insn before calling
10821 constrain_operands (taken from mainline tree).
10822 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
10823 * pa.md (cpu attr): Add 7300. Rewrite pipeline
10824 descriptions using DFA descriptions. Add PA7300
10825 scheduling support.
10827 2002-03-30 David S. Miller <davem@redhat.com>
10829 Add UltraSPARC-III DFA scheduling support.
10830 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
10831 Update FP conditional move on register insn patterns to use it, as
10833 (define_attr cpu): Add ultrasparc3.
10834 (define_attr us3load_type): New, update integer load patterns to
10835 set it, as appropriate.
10836 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
10837 (rest): Add UltraSPARC3 scheduling description.
10838 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
10839 (PROCESSOR_ULTRASPARC3): New.
10840 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
10841 ({ASM,CPP}_CPU_SPEC): Likewise.
10842 (REGISTER_MOVE_COST): Likewise.
10843 (RTX_COSTS): Likewise.
10844 * config/sparc/sparc.c (sparc_override_options,
10845 sparc_initialize_trampoline, sparc64_initialize_trampoline,
10846 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10847 sparc_issue_rate): Likewise.
10848 * config/sparc/sol2.h: Likewise.
10849 * config/sparc/sol2-sld-64.h: Likewise.
10850 * config/sparc/linux64.h: Likewise.
10852 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
10854 * doc/md.texi: Add comments about usage the latency time for the
10855 different dependencies and about case when two or more conditions
10856 in different define_insn_reservations returns TRUE for an insn.
10858 * doc/md.texi: Add reference for automaton based pipeline
10861 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
10863 * doc/passes.texi: Add missed information about genattrtab.
10865 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
10867 * genautomata.c (output_automata_list_transition_code): Check
10868 automata_list on NULL.
10870 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
10872 * genautomata.c (output_insn_code_cases,
10873 output_automata_list_min_issue_delay_code,
10874 output_automata_list_transition_code,
10875 output_automata_list_state_alts_code): Comment the functions.
10877 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
10879 * genautomata.c (automata_list_el_t): New typedef.
10880 (get_free_automata_list_el,free_automata_list_el,
10881 free_automata_list, automata_list_hash, automata_list_eq_p,
10882 initiate_automata_lists, automata_list_start, automata_list_add,
10883 automata_list_finish, finish_automata_lists,
10884 output_insn_code_cases, output_automata_list_min_issue_delay_code,
10885 output_automata_list_transition_code,
10886 output_automata_list_state_alts_code, add_automaton_state,
10887 form_important_insn_automata_lists): New functions and prototypes.
10888 (insn_reserv_decl): Add members important_automata_list and
10890 (ainsn): Add members important_p.
10891 (automata_list_el): New structure.
10892 (first_free_automata_list_el, current_automata_list,
10893 automata_list_table): New global variables.
10894 (create_ainsns): Initiate member important_p.
10895 (output_internal_min_issue_delay_func): Generate the switch and
10896 call output_insn_code_cases.
10897 (output_internal_trans_func, output_internal_state_alts_func):
10899 (generate): Call initiate_automata_lists.
10900 (automaton_states): New global variable.
10901 (expand_automata): Call form_important_insn_automata_lists.
10902 (write_automata): Call finish_automata_lists.
10904 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
10906 * genautomata.c (add_excls, add_presence_absence): Check that
10907 cpu units in the sets belong the same automaton.
10909 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
10910 about that cpu units in the sets belong the same automaton.
10912 * doc/md.texi: Ditto.
10914 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
10915 Nitin Gupta <niting@noida.hcltech.com>
10917 * config/sh/sh.c (sh_use_dfa_interface): New function.
10919 (sh_issue_rate): New Function.
10920 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
10921 TARGET_SCHED_ISSUE_RATE: define.
10923 * config/sh/sh.md: Add DFA based pipeline description for SH4.
10925 (define_attr insn_class): New attribute used for DFA
10927 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
10928 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
10929 cmpeqdi_t): Likewise.
10931 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
10932 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
10934 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
10936 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
10938 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
10941 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
10943 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
10944 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
10946 (output_dfa_start_func): Initiate new variable insn_codes_length,
10947 (write_automata): Output definition of the new variable.
10949 2001-10-02 David S. Miller <davem@redhat.com>
10951 * haifa-sched.c (advance_one_cycle): New function.
10952 (schedule_block): Use it.
10953 (queue_to_ready): Use it, and also make sure to advance the DFA
10954 state on all stall cycles, not just those where insn_queue links
10957 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
10959 * haifa-sched.c (max_issue): Remove last_p argument. Only return
10960 non-zero if the highest-priority instruction could be scheduled.
10961 (choose_ready): Remove last argument from max_issue call.
10963 2001-09-28 David S. Miller <davem@redhat.com>
10965 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
10966 ultrasparc and 3 for other multi-issue sparcs.
10968 2001-09-27 David S. Miller <davem@redhat.com>
10970 * config/sparc/sparc.md (cycle_display): New pattern.
10971 * config/sparc/sparc.c (sparc_cycle_display): New.
10972 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
10974 2001-09-25 David S. Miller <davem@redhat.com>
10976 Convert all of Sparc scheduling to DFA
10977 * config/sparc/sparc.md: Kill all define_function_unit
10978 directives and replace with DFA equivalent.
10979 * config/sparc/sparc.c (ultrasparc_adjust_cost,
10980 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
10981 ultra_fpmode_conflict_exists, ultra_find_type,
10982 ultra_build_types_avail, ultra_flush_pipeline,
10983 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
10984 ultrasparc_variable_issue, ultrasparc_sched_init,
10985 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
10986 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
10987 ultra_cur_hist, ultra_cycles_elapsed): Kill.
10988 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10989 ultrasparc_store_bypass_p): New.
10990 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
10993 2001-09-24 David S. Miller <davem@redhat.com>
10995 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
10996 ready->vec[foo] not ready[foo].
10998 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11000 * doc/md.texi: Correct examples for define_insn_reservations
11003 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11005 * genautomata.c (create_automata): Print message about creation of
11007 (generate): Remove printing meease about creation of
11010 2001-09-05 David S. Miller <davem@redhat.com>
11012 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11013 * config/sparc/linux64.h: Likewise.
11015 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
11017 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
11018 schedule_block, sched_init, sched_finish): Add missed calls of
11019 use_dfa_pipeline_interface.
11021 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
11024 * sched-vis.c (get_visual_tbl_length): Ditto.
11026 2001-08-27 Richard Henderson <rth@redhat.com>
11028 * genattr.c (main): Emit state_t even when not doing scheduling.
11030 2001-08-27 Richard Henderson <rth@redhat.com>
11032 * genautomata.c (expand_automata): Always create a description.
11034 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
11036 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
11037 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
11038 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
11041 * genattr.c (main): New variable num_insn_reservations. Increase
11042 it if there is DEFINE_INSN_RESERVATION. Output automaton based
11043 pipeline hazard recognizer interface.
11045 * genattrtab.h: New file.
11047 * genattrtab.c: Include genattrtab.h.
11048 (attr_printf, check_attr_test, make_internal_attr,
11049 make_numeric_value): Move protypes into genattrtab.h. Define them
11051 (num_dfa_decls): New global variable.
11052 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
11053 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
11054 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
11055 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
11057 * genautomata.c: New file.
11059 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
11061 * sched-int.h: (curr_state): Add the external definition for
11062 automaton pipeline interface.
11063 (haifa_insn_data): Add comments for members blockage and units.
11065 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11066 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11067 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11068 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11069 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11070 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11071 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
11073 (TARGET_SCHED): Use the new macros.
11075 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
11076 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
11077 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
11078 dfa_bubble): New members in gcc_target.sched.
11080 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
11081 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
11082 (insn_queue): Redefine it as pointer to array.
11083 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
11085 (max_insn_queue_index_macro_value): New variable.
11086 (curr_state, dfa_state_size, ready_try): New varaibles for
11087 automaton interface.
11088 (ready_element, ready_remove, max_issue): New function prototypes
11089 for automaton interface.
11090 (choose_ready): New function prototype.
11091 (insn_unit, blockage_range): Add comments.
11092 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
11093 FUNCTION_UNITS_SIZE == 0.
11094 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
11095 actual_hazard, potential_hazard): Add comments.
11096 (insn_cost): Use cost -1 as undefined value. Remove
11097 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
11098 pipeline interface.
11099 (ready_element, ready_remove): New functions for automaton
11101 (schedule_insn): Add new code for automaton pipeline interface.
11102 (queue_to_ready): Add new code for automaton pipeline interface.
11103 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
11104 (debug_ready_list): Print newline when the queue is empty.
11105 (max_issue): New function for automaton pipeline interface.
11106 (choose_ready): New function.
11107 (schedule_block): Add new code for automaton pipeline interface.
11108 Print ready list before scheduling each insn.
11109 (sched_init): Add new code for automaton pipeline interface.
11110 Initiate insn cost by -1.
11111 (sched_finish): Free the current automaton state and finalize
11112 automaton pipeline interface.
11114 * sched-rgn.c: Include target.h.
11115 (init_ready_list, new_ready, debug_dependencies): Add new code for
11116 automaton pipeline interface.
11118 * sched-vis.c: Include target.h.
11119 (get_visual_tbl_length): Add code for automaton interface.
11120 (target_units, print_block_visualization): Add comments.
11122 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
11123 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
11124 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
11125 (getruntime.o, genautomata.o): New entries.
11126 (genattrtab.o): Add new dependency file genattrtab.h.
11127 (genattrtab): Add new dependencies. Link it with `libm.a'.
11128 (getruntime.o, hashtab.o): New entries for canadian cross.
11130 * doc/md.texi: Description of automaton based model.
11132 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
11134 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11135 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11136 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11137 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11138 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11139 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11140 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
11142 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
11143 MAX_DFA_ISSUE_RATE): New macro descriptions.
11145 * doc/contrib.texi: Add dfa based scheduler contribution.
11147 * doc/gcc.texi: Add more information about genattrtab.
11149 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11151 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
11152 adjust_address_nv call.
11154 2002-04-29 Janis Johnson <janis187@us.ibm.com>
11156 * doc/install.texi (Testing): Provide additional information, and
11157 a stronger encouragement, for running the testsuites.
11159 2002-04-29 DJ Delorie <dj@redhat.com>
11161 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
11162 given in upper case.
11164 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11166 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
11167 Solaris 2 <widec.h> if missing.
11168 * fixinc/fixincl.x: Regenerate.
11169 * fixinc/tests/base/widec.h: New file.
11171 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
11173 * toplev.c (f_options): Add "profile" switch so that
11174 -fno-profile can be used to disable -p.
11176 2002-04-29 Bernd Schmidt <bernds@redhat.com>
11178 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
11180 * tree.c (build_common_tree_nodes_2): Likewise.
11181 * tree.h (enum tree_index): Likewise.
11182 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
11184 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
11186 (init_mmx_sse_builtins): Initialize SSE2 builtins.
11187 (ix86_expand_builtin): Add support for SSE2 builtins.
11188 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
11189 (VALID_SSE_REG_MODE): Use it.
11190 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
11191 (enum ix86_builtins): Add SSE2 builtins.
11192 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
11193 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
11194 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
11195 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
11196 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
11197 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
11198 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
11199 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
11200 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
11201 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
11202 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
11203 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
11204 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
11205 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11206 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
11207 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
11208 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
11209 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
11210 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
11211 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
11212 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
11213 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
11214 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
11215 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
11216 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
11217 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
11218 lfence_insn): New patterns.
11219 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11220 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11222 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
11224 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11226 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11228 * doc/contrib.texi (Contributors): Add Paolo Carlini and
11230 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11231 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11232 and CPU instead of cpu.
11234 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
11236 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11238 (lang_independent_options): Add -fif-conversion, -fif-conversion2
11239 (rest_of_compilation): Do if conversion only when asked for.
11240 (parse_options_and_default_flags): Set new variables to 1 for -O1
11241 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11243 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
11245 * i386.c (dbx64_register_map): Fix typo.
11247 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
11249 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11250 real_one_half, real_bb_freq_max): New static variables.
11251 (debug_profile_bbauxs): Kill.
11252 (process_note_predictions): Kill unused variable.
11253 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11255 (propagate_freq): Use REAL_ARITHMETICS.
11256 (estimate_bb_frequencies): Likevise; init new static variables.
11257 * Makefile.in (predict.o): Add dependency on real.h
11259 2002-04-28 David S. Miller <davem@redhat.com>
11262 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11263 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
11264 several {reads,writes} instead.
11265 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11268 2002-04-27 David S. Miller <davem@redhat.com>
11271 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11274 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11275 including signal.h and sys/ucontext.h, not needed.
11277 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
11279 * varasm.c (output_constant_def): Correct test for not calling
11280 ENCODE_SECTION_INFO for INTEGER_CST.
11282 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
11284 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11285 keep most cases as function eval_token.
11286 (eval_token): New function.
11287 (_cpp_parse_expr): Read token here for improved diagnostics.
11288 Don't use op_as_text. Detect bad ':' here.
11289 (reduce): Don't detect bad ':' here.
11290 (op_as_text): Remove.
11291 * cpphash.h (_cpp_test_assertion): Change prototype.
11292 * cpplib.c (_cpp_test_assertion): Change prototype.
11294 2002-04-28 Richard Henderson <rth@redhat.com>
11297 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11298 (ggc_mark_rtx_children): New.
11300 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11303 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11304 after call peepholes for UltraSPARC.
11305 (call + jump 64-bit peepholes): Remove.
11307 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11310 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11311 result as temporary value.
11313 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11316 * toplev.c (rest_of_compilation): Only run regrename and copy
11317 propagation if optimizing.
11319 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11321 PR optimization/6475
11322 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11323 register of REGNO_DECL (i).
11324 * Makefile.in (reload1.o): Add $(TREE_H).
11326 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
11328 * cppexp.c (lex): Update to use state.skip_eval.
11329 (struct op): Remove prio and flags members.
11330 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11331 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11332 (LEFT_ASSOC): New macro.
11333 (optab): New table of operator priorities and flags.
11335 (_cpp_parse_expr): Clean up logic. Return bool. Use a
11336 malloc-ed parser stack.
11337 (reduce): New; reduce the operator stack.
11338 (_cpp_expand_op_stack): Expand the operator stack as necessary.
11339 * cpphash.h (struct op): Predeclare.
11340 (struct cpp_reader): New members op_stack, op_limit.
11341 (struct lexer_state): New member skip_eval.
11342 (_cpp_parse_expr): Update.
11343 (_cpp_expand_op_stack): New.
11344 * cpplib.c (do_if): Update.
11345 * cppinit.c (cpp_create_reader): Create op stack.
11346 (cpp_destroy): And destroy it.
11347 * cpplib.h (CPP_LAST_CPP_OP): Correct.
11348 (TTYPE_TABLE): Correct.
11350 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11353 * c-decl.c (duplicate_decls): Call merge_weak.
11354 * c-pragma.c (apply_pragma_weak): Warn about misuse.
11355 * output.h (merge_weak): Prototype merge_weak.
11356 * varasm.c (merge_weak): New function.
11357 (declare_weak): Make sure we don't give an error on VAR_DECLs.
11358 Mark RTL with SYMBOL_REF_WEAK.
11360 2002-04-27 Kurt Garloff <garloff@suse.de>
11362 * tree-inline.c (inlinable_function_p): Improve heuristics
11363 by using a smoother function to cut down allowable inlinable size.
11364 * param.def: Add parameters max-inline-insns-single,
11365 max-inline-slope, min-inline-insns that determine the exact
11366 shape of the above function.
11367 * param.h: Likewise.
11369 2002-04-26 Richard Henderson <rth@redhat.com>
11371 * c-parse.in (malloced_yyss, malloced_yyvs): New.
11372 (yyoverflow): Re-add. Set them.
11373 (free_parser_stacks): New.
11374 * c-common.h: Declare it.
11375 * c-lex.c (c_common_parse_file): Call it.
11377 2002-04-26 Richard Henderson <rth@redhat.com>
11379 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11380 for fallthru search.
11382 2002-04-26 Eric Christopher <echristo@redhat.com>
11384 PR optimization/3700
11385 * config/mips/mips.c (mips_issue_rate): Define. New function.
11386 (TARGET_SCHED_ISSUE_RATE): Use.
11388 2002-04-25 David S. Miller <davem@redhat.com>
11391 * reorg.c (optimize_skip): Do not allow exception causing
11392 instructions to be considered for delay slots.
11393 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11394 (relax_delay_slots): Do not try to consider exception causing
11395 instructions as redundant.
11397 2002-04-26 Richard Henderson <rth@redhat.com>
11400 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11402 2002-04-26 Mark Mitchell <mark@codesourcery.com>
11405 * config/i386/i386.md (untyped_call): Return the value in a float
11406 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11409 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
11411 * tree.c (tree_int_cst_lt): Compare constants whose types differ
11412 in unsigned-ness correctly.
11414 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11416 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11417 portable runtime model.
11419 2002-04-26 Richard Henderson <rth@redhat.com>
11421 * c-parse.in (yyoverflow): Revert.
11423 2002-04-26 David Edelsohn <edelsohn@gnu.org>
11424 Richard Henderson <rth@redhat.com>
11426 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11427 result as temporary value.
11429 2002-04-26 Richard Henderson <rth@redhat.com>
11432 * c-common.c (fix_string_type): Split out of ...
11433 (combine_strings): ... here. Take a varray, not a tree list.
11434 (c_expand_builtin_printf): Use fix_string_type.
11435 * c-common.h: Update decls.
11436 * c-parse.in (string): Remove. Update all uses to use STRING
11437 instead, and not call combine_strings.
11438 (yylexstring): New.
11440 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11441 (build_asm_stmt): Likewise.
11442 * objc/objc-act.c (my_build_string): Use fix_string_type.
11443 (build_objc_string_object): Build varray for combine_strings.
11445 2002-04-26 Bo Thorsen <bo@suse.co.uk>
11447 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11450 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
11452 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11453 (HAVE_NO_R_OPERAND): Remove.
11454 (HAVE_VALUE): Remove.
11455 (op_to_prio): Update.
11456 (UNARY): Don't alter flags.
11457 (_cpp_parse_expr): want_value used to indicate whether
11458 a number or unary operator is expected next. Distinguish
11459 unary and binary +/-.
11460 (op_as_text): Update for unary operators.
11462 2002-04-25 Richard Henderson <rth@redhat.com>
11465 * c-parse.in (yyoverflow): New.
11467 2002-04-25 Richard Henderson <rth@redhat.com>
11470 * c-common.c (shorten_compare): Simplfy conditions leading to
11471 the generation of a warning.
11473 2002-04-25 Richard Henderson <rth@redhat.com>
11476 * expmed.c (extract_bit_field): Fall through to generic code rather
11477 than aborting on subreg special case.
11479 2002-04-25 David S. Miller <davem@redhat.com>
11481 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11482 for DECL being NULL.
11484 2002-04-25 Steve Christiansen <smc@us.ibm.com>
11486 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11488 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
11490 * c-decl.c (grokdeclarator): Remove outdated ??? note
11491 on invalid declaration of flexible array members.
11493 2002-04-25 Richard Henderson <rth@redhat.com>
11495 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11497 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
11499 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11500 needed by the compiler, even if they are used as global regs.
11502 2002-04-25 Matt Hiller <hiller@redhat.com>
11504 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11506 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11507 of the corresponding functions.
11508 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11511 2002-04-25 Matt Hiller <hiller@redhat.com>
11513 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11515 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11516 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11517 registers, adjust comment accordingly.
11518 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11519 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11520 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11521 for coprocessor registers.
11522 (ADDITIONAL_REGISTER_NAMES): Include
11523 ALL_COP_ADDITIONAL_REGISTER_NAMES.
11525 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11526 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11527 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11528 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11529 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11531 (mips_char_to_class): Adjust comment to include coprocessor
11532 constraint letters.
11534 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11536 (mips_reg_names, mips_regno_to_class): Include coprocessor
11538 (mips_sw_reg_names): Ditto, make non-static.
11539 (mips_move_1word): Handle moves to and from coprocessor registers.
11540 (mips_move_2words): Handle moves to and from coprocessor
11542 (mips_class_max_nregs, mips_register_move_cost): Handle
11543 coprocessor register classes.
11544 (override_options): Initialize mips_char_to_class and
11545 mips_hard_regno_mode_ok properly for coprocessor registers.
11547 * config/mips/mips.md (movdi_internal, movdi_internal2,
11548 movsi_internal1, movsi_internal2): Add constraint-sets for
11549 coprocessor registers.
11550 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11551 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11553 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11554 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11556 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11557 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11559 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11560 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11563 * doc/tm.texi: Document feature.
11565 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11567 * integrate.c (function_attribute_inlinable_p): Simplify.
11568 Check the table pointer is not NULL.
11570 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
11572 * doc/c-tree.texi: Fix typo in introduction.
11574 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11576 * c-common.h (c_common_parse_file): Update.
11577 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11578 * c-lex.c (YYDEBUG): Get from c-lex.h.
11579 (c_common_parse_file): Update.
11580 * c-lex.h (YYDEBUG, yydebug): New.
11581 * c-parse.in (YYDEBUG): Get from c-lex.h.
11582 (c_set_yydebug): Remove.
11583 * c-tree.h (c_set_yydebug): Remove.
11584 * langhooks-def.h (lhd_do_nothing_i): New.
11585 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11586 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11587 * langhooks.c (lhd_do_nothing_i): New.
11588 (lhd_set_yydebug): Remove.
11589 * langhooks.h (struct lang_hooks): Update.
11590 * toplev.c (set_yydebug): New.
11591 (compile_file): Update call to parse_file hook.
11592 (decode_d_option): Update.
11594 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11596 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
11598 * loop.c (load_mems): Don't change the interface of called functions.
11600 * calls.c (expand_call): Take current_function_pretend_args_size
11601 into account when setting argblock for sibcalls.
11603 2002-04-24 Matt Hiller <hiller@redhat.com>
11605 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11608 * cpplex.c (skip_line_comment): Process comment one multibyte
11609 character at a time rather than one char at a time, if
11611 (parse_string): Process string one multibyte character at a time
11612 rather than one char at a time, if appropriate.
11613 * c-lex.c (lex_string): Lex and copy multibyte strings
11615 * cpplib.h (cppchar_t): Change to unsigned.
11617 2002-04-24 Richard Henderson <rth@redhat.com>
11620 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11623 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
11625 * sh.c (sh_va_arg): If argument was passed by reference,
11626 dereference the pointer.
11628 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11630 * sh.md (divsi3_i4_media): Use match_operand for input values
11631 rather than hard registers.
11632 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
11633 unnecessarily through hard registers. Keep copies of pseudo
11634 registers outside of the libcall sequence.
11636 * sh.md (casesi_shift_media): Add modes.
11638 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
11641 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11643 * attribs.c (c_common_attribute_table): Move table and handlers
11645 (format_attribute_table, lang_attribute_table,
11646 lang_attribute_common): Remove.
11647 (init_attributes): Replace NULL pointers with pointers to the
11649 (handle_packed_attribute, handle_nocommon_attribute,
11650 handle_common_attribute, handle_noreturn_attribute,
11651 handle_noinline_attribute, handle_always_inline_attribute,
11652 handle_used_attribute, handle_unused_attribute,
11653 handle_const_attribute, handle_transparent_union_attribute,
11654 handle_constructor_attribute, handle_destructor_attribute,
11655 handle_mode_attribute, handle_section_attribute,
11656 handle_aligned_attribute, handle_weak_attribute,
11657 handle_alias_attribute, handle_visibility_attribute,
11658 handle_no_instrument_function_attribute, handle_malloc_attribute,
11659 handle_no_limit_stack_attribute, handle_pure_attribute,
11660 handle_deprecated_attribute, handle_vector_size_attribute,
11661 vector_size_helper): Move to c-common.c.
11662 * c-common.c (c_common_attribute_table,
11663 handle_packed_attribute, handle_nocommon_attribute,
11664 handle_common_attribute, handle_noreturn_attribute,
11665 handle_noinline_attribute, handle_always_inline_attribute,
11666 handle_used_attribute, handle_unused_attribute,
11667 handle_const_attribute, handle_transparent_union_attribute,
11668 handle_constructor_attribute, handle_destructor_attribute,
11669 handle_mode_attribute, handle_section_attribute,
11670 handle_aligned_attribute, handle_weak_attribute,
11671 handle_alias_attribute, handle_visibility_attribute,
11672 handle_no_instrument_function_attribute, handle_malloc_attribute,
11673 handle_no_limit_stack_attribute, handle_pure_attribute,
11674 handle_deprecated_attribute, handle_vector_size_attribute,
11675 vector_size_helper): Move from attribs.c.
11676 * c-common.h (c_common_attribute_table,
11677 c_common_format_attribute_table): New.
11678 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11679 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11680 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
11681 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
11682 (LANG_HOOKS_INITIALIZER): Update.
11683 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
11684 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
11685 * target.h: Update comment.
11686 * tree.c (default_target_attribute_table): Remove.
11687 * tree.h (default_target_attribute_table, format_attribute_table,
11688 lang_attribute_table, lang_attribute_common): Remove.
11690 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11691 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11693 2002-04-24 Jason Merrill <jason@redhat.com>
11695 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
11696 * dwarf2out.c (dwarf_attr_name): Support it.
11697 (gen_array_type_die): Emit it.
11698 (lookup_type_die): No special handling for VECTOR_TYPE.
11699 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
11701 2002-04-24 Richard Henderson <rth@redhat.com>
11703 * config/mips/mips.md (movdi_usd): Renumber.
11705 2002-04-24 David S. Miller <davem@redhat.com>
11708 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
11709 32-bit Sparc and current_function_returns_struct is true.
11711 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
11713 * loop.c (canonicalize_condition): Use gen_int_mode.
11715 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
11717 * config/rs6000/altivec.h: Cleanup file. Add non individual
11719 (vec_vaddubm): New.
11720 (vec_vadduhm): New.
11721 (vec_vadduwm): New.
11723 (vec_vaddcuw): New.
11724 (vec_vaddubs): New.
11725 (vec_vaddsbs): New.
11726 (vec_vadduhs): New.
11727 (vec_vadduws): New.
11728 (vec_vaddsws): New.
11738 (vec_vcmpbfp): New.
11739 (vec_vcmpequb): New.
11740 (vec_vcmpequh): New.
11741 (vec_vcmpequw): New.
11742 (vec_vcmpeqfp): New.
11743 (vec_vcmpgefp): New.
11744 (vec_vcmpgtub): New.
11745 (vec_vcmpgtsb): New.
11746 (vec_vcmpgtuh): New.
11747 (vec_vcmpgtsh): New.
11748 (vec_vcmpgtuw): New.
11749 (vec_vcmpgtsw): New.
11750 (vec_vcmpgtfp): New.
11751 (vec_vcmpgefp): New.
11756 (vec_vexptefp): New.
11761 (vec_lde): Add vector float variant.
11764 (vec_vlogefp): New.
11765 (vec_vmaddfp): New.
11766 (vec_vmhaddshs): New.
11788 (vec_vmladduhm): New.
11789 (vec_vmhraddshs): New.
11790 (vec_msumubm): New.
11791 (vec_vmsummbm): New.
11792 (vec_vmsumuhm): New.
11793 (vec_vmsumshm): New.
11794 (vec_vmsumuhs): New.
11795 (vec_vmsumshs): New.
11796 (vec_vmuleub): New.
11797 (vec_vmulesb): New.
11798 (vec_vmuleuh): New.
11799 (vec_vmulesh): New.
11800 (vec_vmuloub): New.
11802 (vec_vmulouh): New.
11803 (vec_vmulosh): New.
11804 (vec_vnmsubfp): New.
11807 (vec_vpkuhum): New.
11808 (vec_vpkuwum): New.
11810 (vec_vpkuhus): New.
11811 (vec_vpkshss): New.
11812 (vec_vpkuwus): New.
11813 (vec_vpkswss): New.
11814 (vec_vpkshus): New.
11815 (vec_vpkswus): New.
11822 (vec_vrsqrtefp): New.
11833 (vec_vspltisb): New.
11834 (vec_vspltish): New.
11835 (vec_vspltisw): New.
11849 (vec_vsububm): New.
11850 (vec_vsubuhm): New.
11851 (vec_vsubuwm): New.
11853 (vec_vsubcuw): New.
11854 (vec_vsububs): New.
11855 (vec_vsubsbs): New.
11856 (vec_vsubuhs): New.
11857 (vec_vsubshs): New.
11858 (vec_vsubuws): New.
11859 (vec_vsubsws): New.
11860 (vec_vsum4ubs): New.
11861 (vec_vsum4sbs): New.
11862 (vec_vsum4shs): New.
11863 (vec_vsum2sws): New.
11864 (vec_vsumsws): New.
11866 (vec_vupkhsb): New.
11867 (vec_vupkhpx): New.
11868 (vec_vupkhsh): New.
11869 (vec_vupklsb): New.
11870 (vec_vupklpx): New.
11871 (vec_vupklsh): New.
11874 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
11877 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
11878 added literals from substracted literals.
11879 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
11880 (fold) [associate]: Preserve MINUS_EXPR if needed.
11882 2002-04-23 Zack Weinberg <zack@codesourcery.com>
11884 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
11887 2002-04-23 Tom Tromey <tromey@redhat.com>
11889 * gcc.c: Added --resource. For PR java/6314.
11891 2002-04-23 David O'Brien <obrien@FreeBSD.org>
11893 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
11894 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
11897 2002-04-23 David O'Brien <obrien@FreeBSD.org>
11899 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
11901 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
11903 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
11905 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
11906 (ix86_expand_clrstr): Fix typo.
11907 * loop.c (gen_load_of_final_value): New.
11908 (loop_givs_rescan, strength_reduce, check_dbra_loop):
11911 2002-04-23 Roger Sayle <roger@eyesopen.com>
11913 * builtins.c (builtin_memset_gen_str): New function.
11914 (expand_builtin_memset): Optimize the case of constant length, but
11917 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
11919 * config/rs6000/altivec.h (vec_step): Remove extraneous
11921 (vec_ctu): Cast return.
11923 2002-04-23 Alan Modra <amodra@bigpond.net.au>
11926 * function.h: (struct function): Add profile_label_no field.
11927 (current_function_profile_label_no): Define.
11928 * function.c: (profile_label_no): New static var.
11929 (expand_function_start): Increment it, and copy to
11930 current_function_profile_label_no.
11931 * output.h (profile_label_no): Delete.
11932 * final.c (profile_label_no): Delete.
11933 (profile_function): Use current_function_profile_label_no.
11934 (final_end_function): Don't increment profile_label_no here.
11935 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
11936 profile_label_no with current_function_profile_label_no.
11937 * config/pa/pa.c (current_function_number): Delete.
11938 (pa_output_function_prologue): Don't output profile label here.
11939 (hppa_profile_hook): Use label_no param rather than
11940 current_function_number.
11941 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
11942 * config/pa/pa.h: .. here.
11943 (FUNCTION_PROFILER): Output profile label here.
11945 2002-04-22 Eric Christopher <echristo@redhat.com>
11947 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
11948 patch of 2002-04-09 due to binutils issues.
11949 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
11951 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
11953 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
11954 constraint to 'o' for m=r and r=m alternatives.
11955 ("*movv8hi_internal1"): Same.
11956 ("*movv16qi_internal1"): Same.
11957 ("*movv4sf_internal1"): Same.
11959 2002-04-22 Janis Johnson <janis187@us.ibm.com>
11961 * rtl.h (RTX_FLAG): New macro.
11962 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
11963 * final.c (alter_subreg): Use macro to access rtx flag.
11964 * integrate.c (copy_rtx_and_substitute): Use new access macro.
11965 * print-rtl.c (print_rtx): Use new access macro.
11967 * cse.c (insert): Check rtx code before accessing flag.
11969 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
11970 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
11971 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
11972 convert_const_symbol_ref, make_canonical, make_alternative_compare,
11973 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
11974 simplify_test_exp, optimize_attrs, simplify_by_exploding,
11975 find_and_mark_used_attributes, unmark_used_attributes,
11976 add_values_to_cover, simplify_with_current_value,
11977 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
11978 copy_rtx_unchanging, main): Use new access macros.
11980 2002-04-22 Tom Rix <trix@redhat.com>
11982 * expmed.c (init_expmed): Generate shifted constant once.
11984 2002-04-22 Zack Weinberg <zack@codesourcery.com>
11986 * c-lex.c (lex_charconst): Call convert to get constant in
11987 proper type; don't just smash the type field.
11990 * config.gcc: Add list of obsolete configurations. Disallow
11991 building these without --enable-obsolete.
11992 * doc/install.texi: Document --enable-obsolete and obsoletion
11993 policy. Mention obsoletion of individual targets in
11994 appropriate places.
11996 2002-04-22 Richard Henderson <rth@redhat.com>
11998 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
12000 2002-04-22 Mark Mitchell <mark@codesourcery.com>
12003 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
12004 (walk_fixup_memory_subreg): Likewise.
12005 (fixup_var_refs_insn): Adjust accordingly.
12006 (fixup_var_refs_1): Likewise.
12008 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
12010 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
12011 LIBPATH_ARCH64_SPEC): Define.
12012 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
12013 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
12014 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
12015 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
12017 2002-04-22 Joel Sherrill <joel@OARcorp.com>
12019 * gthr-rtems.h: Correct prototypes to remove warnings.
12021 2002-04-22 Richard Henderson <rth@redhat.com>
12024 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
12026 * gcse.c (free_insn_expr_list_list): New.
12027 (clear_modify_mem_tables): Use it. Fix bit set usage.
12028 (canon_list_insert): Use EXPR_LISTs for expressions.
12029 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
12031 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
12033 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
12034 file change and include code to _cpp_pop_buffer.
12035 * cpphash.h (struct pending_option): Predeclare.
12036 (struct cpp_reader): New member next_include_file.
12037 (_cpp_pop_file_buffer): Update.
12038 (_cpp_push_next_buffer): Update, rename.
12039 * cppinit.c (cpp_destroy): Free include chain and pending here.
12040 (cpp_finish_options): Simplify.
12041 (_cpp_push_next_buffer): Rename and clean up.
12042 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
12044 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
12046 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12048 * config/rs6000/altivec.h (vec_xor): Add variant for both args
12049 being vector signed int.
12051 (vec_xor): Add variant for both args being vector signed char.
12052 Remove redundant variant.
12055 2002-04-21 David S. Miller <davem@redhat.com>
12057 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
12058 compare mode in output RTL.
12060 2002-04-22 David Edelsohn <edelsohn@gnu.org>
12062 * config/rs6000/rs6000.c (rs6000_override_options): Correct
12063 style and formatting of previous patch.
12065 2002-04-22 Alan Modra <amodra@bigpond.net.au>
12067 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
12068 flag_pic for ABI_AIX.
12070 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12072 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
12073 * cppfiles.c (read_include_file): Similarly.
12074 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
12075 uxstrdup ustrchr, ufputs): Similarly.
12076 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
12077 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
12078 cpp_ideq, parse_identifier, parse_number): Similarly.
12079 * cpplib.c (struct directive, dequote_string, D, run_directive,
12080 cpp_push_buffer): Similarly.
12081 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
12082 _cpp_create_definition, check_trad_stringification,
12083 cpp_macro_definition): Similarly.
12085 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12087 * cppmacro.c (funlike_invocation_p): Don't step back
12090 2002-04-21 David Edelsohn <edelsohn@gnu.org>
12092 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
12095 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
12097 * doc/invoke.texi: Remove Chill references.
12098 * doc/gcc.texi: Update last modified date.
12100 2002-04-20 Kazu Hirata <kazu@hxi.com>
12102 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
12103 push and pop. Replace add.l with add.w.
12105 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12107 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
12108 multiply instructions for H8/300H case.
12110 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12112 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
12113 Bum three instructions from each routine.
12115 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
12117 * Makefile.in: Update.
12118 * decl.c (push_c_function_context, pop_c_function_context,
12119 mark_c_function_context): Rename for consistency.
12120 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
12121 * c-tree.h (push_c_function_context, pop_c_function_context,
12122 mark_c_function_context): Rename for consistency.
12123 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12124 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12125 * function.c (init_lang_status, save_lang_status,
12126 restore_lang_status, mark_lang_status, free_lang_status):
12127 Move to langhooks.h.
12128 (push_function_context_to, pop_function_context_from,
12129 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
12131 * function.h (init_lang_status, save_lang_status,
12132 restore_lang_status, mark_lang_status, free_lang_status):
12133 Move to langhooks.h.
12134 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
12135 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
12136 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
12137 LANG_HOOKS_FUNCTION_INITIALIZER): New.
12138 (LANG_HOOKS_INITIALIZER): Update.
12139 (lhd_do_nothing_f): New.
12140 * langhooks.h (struct lang_hooks_for_functions): New.
12141 (struct lang_hooks): New hooks.
12142 * langhooks.c (lhd_do_nothing_f): New.
12144 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12145 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12147 2002-04-19 David S. Miller <davem@redhat.com>
12149 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12150 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
12152 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12154 PR optimization/3756
12155 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
12156 x = ((int) y < 0) ? cst1 : cst2.
12158 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12161 * function.c: Reapply patch for c/6358.
12162 (expand_function_end): Copy decl_rtl's mode, not
12163 current_function_return_rtx mode.
12165 2002-04-19 Joel Sherrill <joel@OARcorp.com>
12167 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
12170 2002-04-19 Tom Tromey <tromey@redhat.com>
12172 * doc/install.texi (Specific): Update status of Solaris 2.8.
12173 For PR libgcj/6158.
12175 2002-04-19 Andreas Schwab <schwab@suse.de>
12177 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
12178 (PUT_REAL): Restore old definition.
12180 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
12181 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12183 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
12184 binutils 2.11.2 and higher generate smaller binaries than Sun's
12187 2002-04-19 Mark Mitchell <mark@codesourcery.com>
12190 * toplev.c (rest_of_compilation): Do not defer functions for which
12191 TREE_SYMBOL_REFERENCED has already been set.
12193 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
12195 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
12198 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
12200 * builtins.c: Include langhooks.h.
12201 (lang_type_promotes_to): Remove.
12202 (expand_builtin_va_arg): Use new hook.
12203 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
12204 (simple_type_promotes_to): Move to c-typeck.c.
12205 * c-common.h (simple_type_promotes_to): Remove.
12206 * c-decl.c (duplicate_decls, grokdeclarator): Update.
12207 * c-format.c: Include langhooks.h.
12208 (check_format_types): Update.
12209 * c-tree.h (c_type_promotes_to): New.
12210 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
12211 (type_lists_compatible_p): Update.
12212 * langhooks-def.h (lhd_type_promotes_to): New.
12213 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
12214 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12215 * langhooks.c (lhd_type_promotes_to): New.
12216 * langhooks.h (struct lang_hooks_for_types): New hook.
12217 * tree.h (lang_type_promotes_to): Remove.
12219 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12221 2002-04-18 Richard Henderson <rth@redhat.com>
12223 * function.c: Revert patch for c/6358.
12225 2002-04-18 Richard Henderson <rth@redhat.com>
12227 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12228 blocks. Handle multiple references to the TRAP block. Handle
12229 non-adjacent THEN and OTHER blocks.
12231 2002-04-18 Richard Henderson <rth@redhat.com>
12233 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12234 crash with no type for by-mode libcalls.
12236 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
12238 2002-04-18 Bob Wilson <bob.wilson@acm.org>
12240 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12241 __xtensa_nonlocal_goto): Use a syscall instructions to flush
12242 the register windows.
12244 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12246 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12247 appropriate. Document need for extended precision even when
12248 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
12249 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
12250 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
12251 instead of relying on later syntax error when REAL_WIDTH > 5.
12252 * real.c: Define NE based only on whether or not we have a
12253 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12254 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
12255 define GET_REAL and PUT_REAL as simple memcpy operations; no
12256 need to byteswap or round.
12257 Use #error instead of #ifdef-ing out the entire file, for
12258 prompt error detection.
12260 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12262 2002-04-18 David S. Miller <davem@redhat.com>
12264 * config/sparc/sparc.h (BRANCH_COST): Define.
12266 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12269 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
12271 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12272 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12273 propagate_block calls after relaxation loop using new variable
12274 stabilized_prop_flags.
12276 2002-04-18 Richard Henderson <rth@redhat.com>
12278 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12279 (ia64_va_arg): Expect variable sized types by reference.
12280 * config/ia64/ia64-protos.h: Update.
12281 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
12282 ia64_function_arg_pass_by_reference.
12284 2002-04-18 Richard Henderson <rth@redhat.com>
12286 * ifcvt.c: Include except.h.
12287 (block_has_only_trap): Break out from find_cond_trap.
12288 (find_cond_trap): Use it. Always delete the trap block.
12289 (merge_if_block): Allow then block null. Be less simplistic about
12290 what insns can end a block.
12291 * Makefile.in (ifcvt.o): Depend on except.h.
12293 * config/ia64/ia64.md (trap, conditional_trap): New.
12295 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12298 * function.c (assign_parms): Assign hard current_function_return_rtx
12300 (expand_function_end): ...not here.
12302 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
12304 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12305 * c-tree.h (c_incomplete_type_error): New.
12306 * c-typeck.c (require_complete_type, build_component_ref): Update.
12307 (incomplete_type_error): Rename.
12308 * langhooks-def.h (lhd_incomplete_type_error): New.
12309 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12310 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12311 * langhooks.c (lhd_incomplete_type_error): New.
12312 * langhooks.h (struct lang_hooks_for_types): New hook.
12313 * tree.c (size_in_bytes): Use new hook.
12314 * tree.h (incomplete_type_error): Remove.
12316 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12318 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12320 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12321 TARGET_FLOAT_FORMAT blocks.
12323 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12325 * doc/install.texi (Downloading the source): Do not mention Chill
12326 any longer, but mention Ada.
12327 (Configuration): Do not mention Chill any longer.
12329 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
12331 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12333 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
12335 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12338 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12340 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12341 instead of unsigned_type.
12343 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12345 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12346 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12349 2002-04-18 Bernd Schmidt <bernds@redhat.com>
12351 * attribs.c (vector_type_node_list): New static variable.
12352 (handle_vector_size_attribute): Use it to avoid generating a
12353 new type node each time we are called.
12355 * combine.c (subst): Avoid trying to make a vector mode subreg of
12356 an integer constant.
12357 (gen_lowpart_for_combine): Likewise.
12359 2002-04-18 Roger Sayle <roger@eyesopen.com>
12360 Jakub Jelinek <jakub@redhat.com>
12362 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12363 for integer constant c (if x has unsigned type or sign bit is not
12364 set in c). This folds the zero/sign extension into the bit-wise and
12367 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12370 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12373 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
12375 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12377 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
12379 * gcc.c (read_specs): Detect and fail if an attempt is made to
12380 rename a spec string to an already existing string.
12382 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12384 * config/s390/s390.c (legitimize_pic_address): Do not generate
12385 illegal address constant without CONST.
12387 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12389 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12390 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12392 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12394 PR optimization/6305
12395 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12396 to make sure previous reloads are taken into account. Generate
12397 better code if one operand is an in-range immediate constant.
12399 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
12401 * doc/install.texi (Building): libgcj requires GNU make.
12403 2002-04-17 Jakub Jelinek <jakub@redhat.com>
12406 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12407 even if hard quad and register is not floating.
12408 (movtf reg<-mem split): Disallow splitting if hard quad and
12409 register is floating.
12410 (movtf mem<-reg split): Likewise.
12411 * config/sparc/sparc.c (fp_register_operand): New predicate.
12412 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12414 2002-04-17 Zack Weinberg <zack@codesourcery.com>
12416 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12417 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12418 (unprotoize.o): Ditto. Build from protoize.c. Define
12419 UNPROTOIZE on command line.
12420 * protoize.c: Include cppdefault.h. Delete include_defaults.
12421 (in_system_include_dir): Use cpp_include_defaults (defined in
12423 * unprotoize.c: Delete file.
12425 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
12427 * config/rs6000/altivec.h (vec_ld): Add array variants.
12431 2002-04-17 Alan Matsuoka <alanm@redhat.com>
12432 Aldy Hernandez <aldyh@redhat.com>
12434 * config/rs6000/altivec.h: Define __ALTIVEC__.
12439 (vec_vmaddfp): New.
12441 Add parentheses to all macro arguments.
12443 2002-04-16 Richard Henderson <rth@redhat.com>
12446 * except.c (remove_eh_handler): Insert inner regions at beginning
12447 of sibling chain. Refactor expressions.
12449 2002-04-16 Richard Henderson <rth@redhat.com>
12451 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12452 * config/sparc/sol2-gas-bi.h: New file.
12453 * config.gcc (sparc*-solaris): Add it as needed.
12454 * configure.in (AS_SPARC64_FLAG): Remove check.
12455 * config.in, configure: Regenerate.
12457 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12459 2002-04-16 Richard Henderson <rth@redhat.com>
12461 * config/mips/mips.c (override_options): Don't override N32 for
12465 * config/mips/mips.md (can_delay): Split out of existing define_delays.
12466 (HILO_delay): Set can_delay false.
12468 2002-04-16 Dale Johannesen <dalej@apple.com>
12470 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12471 instruction addresses.
12472 (rs6000_output_function_epilogue): Likewise.
12474 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
12476 * c-parse.in (poplevel, compstmt_start,
12477 compstmt_primary_start): Add ending ';', in accordance
12480 2002-04-16 Richard Henderson <rth@redhat.com>
12482 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12483 Adjust tm_file order to get TARGET_DEFAULT set properly.
12484 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12485 * doc/install.texi (sparc-solaris): Update.
12487 2002-04-16 Dale Johannesen <dalej@apple.com>
12489 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12490 comparison operands do not match each other or if modes of
12491 conditions do not match result.
12493 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
12496 * config/s390/s390.md (mulsidi3): Set both subregs of the
12497 multiword register.
12499 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
12501 * config/rs6000/altivec.h (vec_addc): Type check.
12503 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12506 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12508 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12510 2002-04-15 Richard Henderson <rth@redhat.com>
12512 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12513 call_really_used_regs too.
12515 2002-04-15 Richard Henderson <rth@redhat.com>
12517 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12519 2002-04-15 David S. Miller <davem@redhat.com>
12521 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12522 as being CLOBBERed.
12524 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12527 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12528 CONST_VECTOR is { 0, ... 0 }.
12530 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
12532 * doc/install.texi (Installing GCC: Configuration): Clarify
12533 the only supported ways to configure gcc.
12535 2002-04-15 Roland McGrath <roland@frob.com>
12537 * config.gcc (alpha*-*-gnu*): New target configuration.
12538 * config/alpha/gnu.h: New file for it.
12539 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12541 2002-04-16 Mark Mitchell <mark@codesourcery.com>
12543 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12544 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12545 * tree.h (expand_start_stmt_expr): Update prototype.
12546 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12547 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12548 on the STMT_EXPR created for the inline function.
12550 2002-04-15 Richard Henderson <rth@redhat.com>
12552 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12553 config/i386/linux-aout.h, config/i386/linux-oldld.h,
12554 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12555 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12556 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12557 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12558 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12559 Define __gnu_linux__, not gnu_linux.
12560 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12562 2002-04-15 Mark Mitchell <mark@codesourcery.com>
12564 Remove Chill front end.
12565 * gcc.c (default_compilers): Remove Chill entries.
12566 * ch: Remove directory.
12567 * doc/frontends.texi: Remove information about Chill.
12568 * doc/sourcebuild.texi: Likewise.
12569 * doc/standards.texi: Likewise.
12571 2002-04-15 Douglas B Rupp <rupp@gnat.com>
12573 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12574 (LONGLONG_STANDALONE): Define.
12576 2002-04-15 David S. Miller <davem@redhat.com>
12578 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12579 Call emit_library_call with LCT_NORMAL.
12580 (sparc_initialize_trampoline): Use LCT_foo instead of
12581 magic constant in emit_library_call invocations.
12582 (sparc64_initialize_trampoline): Likewise.
12583 (sparc_profile_hook): Likewise.
12584 * config/sparc/sparc.md: Likewise.
12586 * config/sparc/sparc.c (sparc_extra_constraint_check):
12587 Fix type of argument 'c'.
12588 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12591 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
12593 * diagnostic.h (output_buffer_state): Redefine.
12594 (output_format_decoder): New macro.
12595 (output_prefixing_rule): Likewise.
12596 (output_line_cutoff): Likewise.
12597 (diagnostic_format_decoder): Adjust.
12598 (diagnostic_prefixing_rule): Likewise.
12599 (diagnostic_line_cutoff): Likewise.
12600 (diagnostic_state): Likewise.
12601 (diagnostic_kind_count): Likewise.
12602 (diagnostic_buffer): Now a macro.
12604 * diagnostic.c (diagnostic_buffer): Remove definition.
12605 (output_is_line_wrapping): Adjust.
12606 (set_real_maximum_length): Likewise.
12607 (output_set_maximum_length): Likewise.
12608 (init_output_buffer): Likewise.
12609 (lhd_print_error_function): Likewise.
12610 (output_do_verbatim): Likewise.
12612 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
12614 * cpperror.c (print_location): Don't print include chain
12616 (cpp_begin_message): Update to use DL_ macros.
12617 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12618 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12619 cpp_notice, cpp_notice_from_errno): Remove.
12620 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12623 * cppexp.c (CPP_ICE): Remove.
12624 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12625 lex, integer_overflow, _cpp_parse_expr): Update.
12626 * cppfiles.c (read_include_file, find_include_file,
12627 handle_missing_header, _cpp_read_file, remap_filename): Update.
12628 * cpphash.h (enum error_type): Remove.
12629 (_cpp_begin_message): Update.
12630 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
12631 cpp_handle_option, cpp_post_options): Update.
12632 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
12633 skip_whitespace, parse_identifier, parse_slow, parse_string,
12634 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
12635 cpp_interpret_charconst): Update.
12636 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
12637 lex_macro_node, do_undef, glue_header_name, parse_include,
12638 do_include_common, read_flag, do_line, do_linemarker, do_ident,
12639 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
12640 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
12641 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
12642 _cpp_pop_buffer, do_diagnostic): Update.
12643 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
12644 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
12645 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12646 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12647 cpp_notice, cpp_notice_from_errno): Remove.
12648 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12651 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
12652 collect_args, enter_macro_context, save_parameter, parse_params,
12653 _cpp_create_definition, check_trad_stringification,
12654 cpp_macro_definition): Update.
12655 * cppmain.c (cpp_preprocess_file): Update.
12656 * fix-header.c (read_scan_file): Update.
12658 2002-04-14 Andreas Schwab <schwab@suse.de>
12660 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
12662 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12664 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
12666 2002-04-13 Mark Mitchell <mark@codesourcery.com>
12668 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
12671 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
12673 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
12675 2002-04-13 Joel Sherrill <joel@OARcorp.com>
12677 * config/sparc/t-elf: Enable v8 multilibs. Impacts
12678 sparc-elf and sparc-rtems targets.
12680 2002-04-13 Mark Mitchell <mark@codesourcery.com>
12682 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
12683 defined, and __gnu_hurd__ wherever __GNU__ is defined.
12684 * arm/linux-elf.h: Likewise.
12685 * cris/aout.h: Likewise.
12686 * cris/linux.h: Likewise.
12687 * i370/linux.h: Likewise.
12688 * i386/gnu.h: Likewise.
12689 * i386/linux-aout.h: Likewise.
12690 * i386/linux-oldld.h: Likewise.
12691 * i386/linux.h: Likewise.
12692 * i386/linux64.h: Likewise.
12693 * ia64/linux.h: Likewise.
12694 * m68k/linux-aout.h: Likewise.
12695 * m68k/linux.h: Likewise.
12696 * mips/linux.h: Likewise.
12697 * pa/pa-linux.h: Likewise.
12698 * pj/linux.h: Likewise.
12699 * rs6000/sysv4.h: Likewise.
12700 * s390/linux.h: Likewise.
12701 * sh/linux.h: Likewise.
12702 * sparc/linux-aout.h: Likewise.
12703 * sparc/linux.h: Likewise.
12704 * sparc/linux64.h: Likewise.
12705 * xtensa/linux.h: Likewise.
12707 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
12709 * stmt.c (check_unique_operand_names): Expect operand names to
12710 be strings rather than identifiers. Use simple_cst_equal to
12712 (resolve_operand_name_1): Make same identifier to string change here.
12713 * c-parse.in (asm_operand): Convert a named operand into a string.
12714 * cp/parse.y (asm_operand): Likewise.
12716 2002-04-13 Andreas Schwab <schwab@suse.de>
12718 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
12720 2002-04-12 Mark Mitchell <mark@codesourcery.com>
12722 Revert these changes:
12724 2002-04-06 Mark Mitchell <mark@codesourcery.com>
12727 * stor-layout.c (layout_decl): Reset the RTL for the decl.
12729 2002-04-12 Richard Henderson <rth@redhat.com>
12731 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
12732 (sparc*-*-solaris): Clean up header files.
12733 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
12734 and plan on generating 64-bit code.
12735 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
12736 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
12737 * config/sparc/sol2-sld-64.h: Rename ...
12738 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
12739 for AS_SPARC64_FLAG not defined.
12740 * config/sparc/sol2-gld-bi.h: New.
12741 * config/sparc/sol2-sld.h: Remove.
12742 * config/sparc/sol26-sld.h: New.
12743 * config/sparc/sol2.h: Tidy comments.
12744 * doc/install.texi: Document sparc-solaris configury changes.
12746 2002-04-12 Richard Henderson <rth@redhat.com>
12748 * recog.c (offsettable_address_p): Match the logic in adjust_address.
12750 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
12751 in 64-bit mode only. Use only for 32-bit or MEDLOW.
12753 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12755 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
12757 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
12759 * pa.c (pa_can_combine_p): Call extract_insn before calling
12760 constrain_operands.
12762 2002-04-12 Douglas B Rupp <rupp@gnat.com>
12764 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
12765 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
12766 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12767 (CPP_PREDEFINES): Handle __declspec.
12768 * config/i386/t-interix (USER_H): Remove.
12770 2002-04-12 DJ Delorie <dj@redhat.com>
12772 * integrate.c (compare_blocks): Make comparisons safe for when
12773 sizeof(int) < sizeof(char *).
12774 (find_block): Likewise.
12776 2002-04-12 Jan Hubicka <jh@suse.cz>
12777 David Edelsohn <edelsohn@gnu.org>
12779 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
12781 (symbol_ref_operand): New.
12782 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
12783 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
12785 2002-04-12 Andreas Schwab <schwab@suse.de>
12787 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
12788 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
12789 overrides the definition in config/svr4.h.
12791 2002-04-12 Eric Norum <eric.norum@usask.ca>
12793 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
12794 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
12795 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
12796 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
12797 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
12798 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
12799 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
12800 definitions to config/rtems.h and make the targets more similar.
12802 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12804 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
12805 POINTERS_EXTEND_UNSIGNED.
12806 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
12807 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
12809 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
12812 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
12814 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
12815 depends on TARGET_SHMEDIA, not TARGET_SH5.
12817 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
12819 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
12820 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
12822 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
12824 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
12827 2002-04-12 Andreas Schwab <schwab@suse.de>
12829 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
12831 2002-04-12 Richard Henderson <rth@redhat.com>
12834 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
12836 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
12837 modes spanning multiple hard regs.
12839 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
12841 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12843 * pa.c (pa_output_function_prologue): Don't accumulate the total
12844 number of code bytes when using TARGET_64BIT, or gas, SOM and not
12845 the portable runtime.
12846 (output_deferred_plabels): Handle 64bit plabels.
12847 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
12848 generating pic code using the GAS assembler for object formats that
12849 are not SOM (ie., ELF32 and ELF64).
12850 (output_millicode_call): Check attribute type if attribute length is 28.
12851 Likewise use $PIC_pcrel$0. Only call get_attr_length and
12852 dbr_sequence_length once.
12853 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
12854 dbr_sequence_length once.
12855 * pa.h (TARGET_SOM): Define if not defined.
12856 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
12857 with GAS and not SOM.
12858 (jump, call_internal_reg, call_value_internal_reg): Likewise.
12859 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
12861 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12863 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
12864 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
12865 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
12866 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
12867 elfos.h and dbxelf.h values are fine now.
12868 * config/i386/freebsd.h, config/alpha/freebsd.h
12869 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
12871 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12873 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
12874 or set Acpu or Amachine. Reformat.
12875 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12877 (LINK_SPEC): Do not need to undef.
12878 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
12879 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
12880 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12882 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
12883 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
12884 (LINK_SPEC): Do not need to undef.
12885 (DONT_USE_BUILTIN_SETJMP): Do not define.
12886 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
12887 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
12888 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
12889 Remove trailing spaces.
12890 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
12891 __ELF__, or set Acpu or Amachine. Reformat.
12892 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12895 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12897 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
12898 all other *-*-freebsd* targets.
12900 2002-04-11 Richard Henderson <rth@redhat.com>
12902 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
12904 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12906 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
12907 Include {cpu}/{cpu}.h thru tm_file.
12908 (alpha*-*-linux*ecoff): Remove target.
12909 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
12910 (LINK_SPEC): Remove, is not OS independent.
12911 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
12912 (LINK_SPEC): Do not need to #undef any longer.
12913 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
12915 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
12917 (LINK_SPEC): Moved here from alpha/elf.h.
12918 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
12919 SUB_CPP_PREDEFINES.
12920 * config/alpha/linux-ecoff.h: Remove.
12921 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
12922 (CPP_SPEC): Define _POSIX_SOURCE as needed.
12923 (CPP_SUBTARGET_SPEC): Do not define.
12924 (LINK_SPEC): Do not need to #undef any longer.
12925 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
12926 * config/alpha/vms.h: Likewise.
12928 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
12930 * doc/extend.texi: Remove old claim that typedefs cannot have
12931 an alignment attribute.
12933 2002-04-11 Jakub Jelinek <jakub@redhat.com>
12935 PR optimization/6177
12936 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
12937 bitpos is 0 and bitsize CONCAT size.
12939 2002-04-11 Jakub Jelinek <jakub@redhat.com>
12942 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
12944 2002-04-10 David O'Brien <obrien@FreeBSD.org>
12946 * config/alpha/freebsd.h: Minor reformatting.
12947 (CPP_SPEC): Define ELF and add cpp_subtarget.
12948 (ASM_SPEC): No longer needed.
12950 2002-04-11 Richard Henderson <rth@redhat.com>
12952 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
12953 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
12954 (dimode mem/zero splitter): New.
12956 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
12958 * config/cris/cris.c (cris_override_options): Tweak error message
12959 for PIC not implemented.
12961 * config/cris/cris.h: Tweak comments related to parameter-passing.
12963 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
12965 2002-04-10 Richard Henderson <rth@redhat.com>
12967 * except.c (add_ehl_entry): Allow duplicates after landing pad
12970 2002-04-10 David Edelsohn <edelsohn@gnu.org>
12972 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
12974 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
12976 * c-decl.c (c_init_decl_processing): Move generation of
12977 decls for g77_integer_type_node and friends from here ...
12978 * c-common.c (c_common_nodes_and_builtins): ... to here.
12980 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
12982 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
12983 is only used as frame pointer when frame_pointer_needed is true.
12985 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
12988 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
12989 for the fact that the pool entry uses two words.
12990 (movdf_hard_insn): Similarly. Also, ADR instruction can span
12992 (movdf_soft_insn): Similarly.
12993 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
12994 for the fact that the pool entry uses three words.
12996 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
12998 * config/mips/mips.c (mips_va_arg): When using the struct version
12999 of the EABI va_list, allow arguments in the register save area to
13000 take up less room than a stack argument.
13002 2002-04-10 Richard Henderson <rth@redhat.com>
13004 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
13005 if EXPAND_INITIALIZER.
13007 2002-04-09 Richard Henderson <rth@redhat.com>
13009 * config/alpha/alpha.md (movdi_er_maybe_g): New.
13010 * config/alpha/alpha.c (alpha_expand_mov): Use it.
13012 2002-04-10 Alan Modra <amodra@bigpond.net.au>
13014 PR optimization/6233
13015 * rtlanal.c (pure_call_p): New function.
13016 * rtl.h (pure_call_p): Declare.
13017 * loop.c (prescan_loop): Use it to set has_nonconst_call.
13018 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
13020 2002-04-09 Eric Christopher <echristo@redhat.com>
13022 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
13023 information to .comm directive.
13025 2002-04-09 Richard Henderson <rth@redhat.com>
13028 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
13030 2002-04-09 Richard Henderson <rth@redhat.com>
13032 * basic-block.h (flow_delete_block_noexpunge): Declare.
13033 (expunge_block_nocompact): Declare.
13034 * cfg.c (expunge_block_nocompact): Split out from ...
13035 (expunge_block): ... here.
13036 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
13037 (flow_delete_block_noexpunge): Split out from ...
13038 (flow_delete_block): ... here.
13039 * cfgcleanup.c (delete_unreachable_blocks): Compact while
13040 removing dead blocks.
13041 * except.c (exception_handler_labels): Remove.
13042 (exception_handler_label_map): New.
13043 (struct eh_region): Add aka member.
13044 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
13045 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
13046 (for_each_eh_label, for_each_eh_label_1): New.
13047 (init_eh): Register exception_handler_label_map.
13048 (free_eh_status): Use free_region.
13049 (find_exception_handler_labels): Use the map, not the list.
13050 (remove_exception_handler_label): Likewise.
13051 (maybe_remove_eh_handler): Likewise.
13052 (remove_eh_handler): Use the region aka bitmap.
13053 * except.h (exception_handler_labels): Remove.
13054 (for_each_eh_label): Declare.
13055 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
13056 * loop.c (invalidate_loops_containing_label): New.
13057 (find_and_verify_loops): Use it. Use for_each_eh_label.
13058 * sched-rgn.c (is_cfg_nonregular): Use
13059 current_function_has_exception_handlers.
13061 2002-04-09 Richard Henderson <rth@redhat.com>
13063 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
13064 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
13065 Do not return changed status.
13066 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
13067 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
13068 New functions that do return changed status.
13069 * sbitmap.h: Update decls.
13070 * gcse.c, lcm.c: Use _cg functions as needed.
13072 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
13074 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
13075 (sh64-*-elf*, sh-*-rtemself*): Likewise.
13076 * config/sh/embed_bb.c: New file.
13077 * config/sh/embed-elf.h: New file.
13078 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
13079 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
13080 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13082 (SUBTARGET_CPP_PTR_SPEC): Don't define.
13083 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
13084 Add subtarget_asm_endian_spec.
13085 (ASM_SPEC): Use subtarget_asm_endian_spec.
13086 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
13087 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
13088 (WCHAR_UNSIGNED): Define.
13089 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
13090 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13091 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
13093 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
13094 (sh_adjust_cost): Likewise.
13095 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13097 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
13098 (WCHAR_TYPE_SIZE): Likewise.
13099 (ASM_SPEC): Use subtarget_asm_endian_spec.
13100 (SH_ELF_WCHAR_TYPE): #undef/ #define.
13101 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
13102 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
13103 (MAX_WCHAR_TYPE_SIZE): Don't #define .
13104 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
13105 (USER_LABEL_PREFIX): Don't #undef /#define .
13106 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13107 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
13108 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
13109 (ASM_SPEC): Likewise.
13110 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
13111 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
13112 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
13113 (LIB2FUNCS_EXTRA): Define.
13114 * t-sh64 (LIB2FUNCS_EXTRA): Define.
13115 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
13116 (LIB1ASMFUNCS_CACHE): Define.
13117 (LIB2FUNCS_EXTRA): Redefine empty.
13119 2002-04-08 Richard Henderson <rth@redhat.com>
13121 * reorg.c (get_branch_condition): Use reversed_comparison_code.
13123 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13125 * config/m68hc11/larith.asm (__map_data_section): Fix condition
13126 and optimize for size.
13127 (__do_global_ctors): Fix pointer comparison.
13128 (__do_global_dtors): Likewise.
13130 2002-04-09 David S. Miller <davem@redhat.com>
13132 * config/sparc/sparc.c (sparc_extra_constraint_check): New
13133 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
13134 allow reloading pseudos.
13135 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
13136 * config/sparc/sparc-protos.h: Declare it.
13138 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
13139 unsigned comparison warning.
13140 (output_restore_regs): Mark leaf_function as unused.
13142 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13144 * expr.c (is_aligning_offset): New function.
13145 (expand_expr, case COMPONENT_EXPR): Call it.
13147 2002-04-08 David S. Miller <davem@redhat.com>
13150 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
13152 Make init_priority work on Sparc when using GNU ld.
13153 * config/sparc/linux.h, config/sparc/linux64.h,
13154 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
13155 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
13156 * config/sparc/sol2-gld.h: New file to do the same.
13157 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
13158 sparc/sol2-gld.h to tm_file.
13160 PR optimization/4328
13161 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
13162 * doc/md.texi: Document it.
13163 * config/sparc/sparc.md (movdi_insn_sp64_novis,
13164 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
13165 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
13166 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
13167 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
13169 2002-04-08 Andreas Jaeger <aj@suse.de>
13171 * stmt.c (expand_asm_operands): Revert last patch from Richard
13174 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13176 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
13177 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
13179 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13181 * doc/contrib.texi (Contributors): Add David O'Brien.
13183 2002-04-08 Alan Modra <amodra@bigpond.net.au>
13185 * configure.in (auto-build.h): Use target_alias and build_alias
13186 when running configure.
13187 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
13188 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
13189 * configure: Regenerate.
13191 2002-04-07 David S. Miller <davem@redhat.com>
13193 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
13195 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13198 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
13199 generating 32-bit pic code.
13201 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
13203 * cppinit.c (cpp_create_reader): Initialize
13204 discard_comments_in_macro_exp.
13205 (COMMAND_LINE_OPTIONS): Add "-CC" option.
13206 (cpp_handle_option): Handle "-CC" option.
13207 * cpplex.c (save_comment): If saving a C++ comment in
13208 a directive, convert it to a C comment.
13209 (_cpp_lex_direct): Pass second comment start character to
13210 save_comment to indicate comment type.
13211 * cpplib.c (_cpp_handle_directive): If processing
13212 a "#define" directive and discard_comments_in_macro_exp
13213 is false, re-enable saving of comments.
13214 (lex_macro_node): If discard_comments_in_macro_exp is false,
13215 discard any comments before the macro identifier.
13216 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
13218 * cppmacro.c (cpp_get_token): If expanding a macro while
13219 processing a directive, discard any comments we might encounter.
13220 (parse_params): If discard_comments_in_macro_exp is false,
13221 ignore comments in the macro parameter list.
13222 * gcc.c (cpp_unique_options): Add "-CC" option.
13223 (option_map): Map "--comments-in-macros" to "-CC".
13224 * doc/cppopts.texi: Document "-CC" option.
13225 * f/lang-specs.h: Add "-CC" option.
13226 * testsuite/gcc.dg/cpp/maccom1.c: New test.
13227 * testsuite/gcc.dg/cpp/maccom2.c: New test.
13228 * testsuite/gcc.dg/cpp/maccom3.c: New test.
13229 * testsuite/gcc.dg/cpp/maccom4.c: New test.
13230 * testsuite/gcc.dg/cpp/maccom5.c: New test.
13231 * testsuite/gcc.dg/cpp/maccom6.c: New test.
13233 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
13236 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13238 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13241 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13244 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13245 RTX_UNCHANGING_P for the functions arguments when a tail call
13248 2002-04-06 Jason Merrill <jason@redhat.com>
13250 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13251 (parse_options_and_default_flags): Set them appropriately.
13252 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13254 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
13256 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13259 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13262 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13263 types come in by-reference. Fix typo in comment.
13265 2002-04-05 David S. Miller <davem@redhat.com>
13267 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13268 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13269 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13270 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13272 2002-04-05 David S. Miller <davem@redhat.com>
13274 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13275 are not going to emit return instructions, emit at least a nop
13276 for the sake of sane backtraces.
13278 2002-04-05 Richard Henderson <rth@redhat.com>
13280 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13282 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
13284 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13286 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
13288 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13289 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13290 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13292 2002-04-05 Andreas Schwab <schwab@suse.de>
13294 * c-convert.c: Include c-common.h.
13295 * Makefile.in (c-convert.o): Updated.
13297 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13299 * mklibgcc.in: Use separate libgcc.map for each multilib.
13300 * Makefile.in (distclean): Don't remove libgcc.map here.
13302 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13304 * Makefile.in (s-mlib): Handle --disable-multilib by separate
13305 genmultilib invocation.
13307 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
13309 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13310 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
13311 to num_gprs for symmetry.
13312 * config/mips/mips.c: Adjust accordingly.
13314 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13316 * c-common.c (truthvalue_conversion): Rename, update.
13317 * c-common.h (c_common_truthvalue_conversion): New.
13318 * c-convert.c (convert): Update.
13319 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13320 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13321 * c-typeck.c (build_binary_op, build_unary_op,
13322 build_conditional_expr): Update.
13323 * fold-const.c (constant_boolean_node, fold): Use langhook.
13324 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13325 * langhooks.h (struct lang_hooks): New hook.
13326 * stmt.c (expand_decl_cleanup): Use langhook.
13327 * tree.h (truthvalue_conversion): Remove.
13329 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13331 2002-04-05 Alan Modra <amodra@bigpond.net.au>
13333 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13334 Add rules to make null object file.
13336 2002-04-04 Jim Blandy <jimb@redhat.com>
13338 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13339 macro formal parameter names.
13341 2002-04-04 David S. Miller <davem@redhat.com>
13343 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13345 2002-04-04 Richard Henderson <rth@redhat.com>
13348 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13349 Support copies into and out of memory. Don't accept allows_reg
13350 and allows_mem as gospel.
13352 2002-04-04 Richard Henderson <rth@redhat.com>
13355 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13356 (write_dependence_p): Likewise.
13358 2002-04-04 Richard Henderson <rth@redhat.com>
13360 * predict.c (estimate_bb_frequencies): Do frequency calculation
13361 with a volatile temporary.
13363 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
13365 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13367 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13370 * final.c (final_start_function): Don't bump profile_label_no here...
13371 (final_end_function): ...but here.
13373 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13375 * config/sparc/sparc.md (pic): New attribute.
13376 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13378 (split after do_builtin_setjmp_setup): New.
13380 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13383 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13386 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13388 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13389 UNITS_PER_WORD for zero sized aggregates.
13391 2002-04-03 David S. Miller <davem@redhat.com>
13393 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13394 one-character spec for this, just use %(link_gcc_c_sequence).
13396 2002-04-03 David S. Miller <davem@redhat.com>
13398 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13401 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13403 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13404 (DWARF_FRAME_RETURN_COLUMN): Move.
13405 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13406 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13407 * pa.c (except.h, predict.h): Include.
13409 (store_reg_modify, set_reg_plus_d): Revise prototypes.
13410 (output_ascii): Add cast.
13411 (store_reg_modify): Revise to add frame notes.
13412 (set_reg_plus_d): Likewise.
13413 (compute_frame_size): Include space for eh data registers in frame if
13414 the current function calls eh_return.
13415 (hppa_expand_prologue): Ensure register %r2 is saved if the current
13416 function calls eh_return. Save eh data registers if the current
13417 function calls eh_return. Fix code to add frame notes. Emit
13418 blockage to prevent insns with frame notes being scheduled in the
13419 delay slot of calls.
13420 (hppa_expand_epilogue): Restore eh data registers and do final stack
13421 adjustment if the current function calls eh_return. Don't add frame
13423 (output_call): Revise for change in length of call insn. Don't do
13424 return pointer adjustment for an unconditional jump in the delay slot
13425 of a call when using frame notes.
13426 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13427 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13428 (ARG_POINTER_CFA_OFFSET): Define.
13429 * pa.md (return_external_pic): New pattern.
13430 (prologue): Correct formatting. Use return_external_pic if current
13431 function calls eh_return.
13432 (call_internal_symref, call_value_internal_symref,
13433 sibcall_internal_symref, sibcall_value_internal_symref): Change default
13434 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13436 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13438 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13439 list of targets to check using "nop" insn.
13440 * configure: Rebuilt.
13442 2002-04-04 Alan Modra <amodra@bigpond.net.au>
13444 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13446 2002-04-03 David S. Miller <davem@redhat.com>
13448 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13449 library sequence passed to the linker.
13450 (LINK_COMMAND_SPEC): Use it.
13451 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13452 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13453 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13455 2002-04-03 Jason Merrill <jason@redhat.com>
13457 * except.c (struct eh_status): Remove protect_list.
13458 (begin_protect_partials, end_protect_partials): Remove.
13459 (add_partial_entry): Remove.
13460 * except.h: Remove prototypes.
13462 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13463 expand_decl_cleanup_eh.
13466 * tree.h (CLEANUP_EH_ONLY): New macro.
13467 * stmt.c (expand_decl_cleanup_eh): New fn.
13468 (expand_cleanups): Check CLEANUP_EH_ONLY.
13469 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13470 Use expand_decl_cleanup_eh.
13471 (expand_stmt): Adjust.
13472 * c-common.h: Adjust prototype.
13474 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
13476 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13477 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13478 (cris_target_asm_function_epilogue): Ditto.
13479 (cris_initial_frame_pointer_offset): Ditto.
13480 (cris_simple_epilogue): Ditto.
13481 (cris_expand_builtin_va_arg): Variable-size types come in
13484 2002-04-03 David S. Miller <davem@redhat.com>
13486 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13488 (set_fast_math): Correct 'fsr' type.
13490 2002-04-03 Richard Henderson <rth@redhat.com>
13493 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13494 * toplev.c (check_global_declarations): Use it.
13495 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13496 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13497 (LANG_HOOKS_DECLS): Add it.
13498 * langhooks.c (lhd_warn_unused_global_decl): New.
13499 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13500 * c-objc-common.c (c_warn_unused_global_decl): New.
13501 * c-tree.h (c_warn_unused_global_decl): Declare.
13502 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13504 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
13506 * langhooks-def.h (lhd_set_decl_assembler_name,
13507 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13508 (LANG_HOOKS_INITIALIZER): Update.
13509 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13510 * langhooks.h (struct lang_hooks): New hook.
13511 * tree.c (set_decl_assembler_name): Move to langhooks.c.
13512 (lang_set_decl_assembler_name): Remove.
13513 (init_obstacks): Don't set hook.
13514 (decl_assembler_name): New function.
13515 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13516 (decl_assembler_name): New.
13517 (lang_set_decl_assembler_name): Remove.
13519 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13521 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13522 works properly with .hidden symbols.
13523 * configure: Rebuilt.
13524 * config.in: Rebuilt.
13525 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13526 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13527 properly with .hidden symbols.
13529 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13532 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13535 2002-04-03 Richard Henderson <rth@redhat.com>
13538 * sched-rgn.c (sets_likely_spilled): New.
13539 (sets_likely_spilled_1): New.
13540 (add_branch_dependences): Use it.
13542 2002-04-02 Richard Henderson <rth@redhat.com>
13545 * loop.h (LOOP_FIRST_PASS): New.
13546 * loop.c (strength_reduce): Mind it when deciding to unroll.
13547 * toplev.c (rest_of_compilation): Set it.
13549 2002-04-02 David S. Miller <davem@redhat.com>
13551 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13552 mems_ok_for_ldd_peep when the order of the loads being examined
13554 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13555 existing comment to increase comprehension of this situation.
13557 2002-04-02 Zack Weinberg <zack@codesourcery.com>
13559 * config/sh/sh.md: Don't use union real_extract.
13561 2002-04-02 Richard Henderson <rth@redhat.com>
13563 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13565 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13567 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13568 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13569 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13570 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13571 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13572 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13573 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13574 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13575 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13576 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13577 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13578 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13579 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13580 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13581 Include as many configury headers via tm_file as possible. This
13582 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13583 * config/openbsd-oldgas.h: New file.
13584 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13585 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13586 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13587 config/i386/i386-coff.h, config/i386/i386-interix.h,
13588 config/i386/iscdbx.h, config/i386/linux-aout.h,
13589 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13590 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13591 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13592 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13593 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13594 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13595 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13596 config/i386/vxi386.h: Do not directly include configury headers.
13597 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13598 Directly include configury headers that are no longer automatically
13599 included by the above headers.
13600 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13601 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13602 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13603 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13604 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13605 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13606 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13607 (TARGET_VERSION): Define.
13608 * config/i386/beos-elf.h, config/i386/freebsd.h,
13609 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13610 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13611 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13612 config/i386/sco5.h, config/i386/sysv4.h
13613 (TARGET_VERSION): Do not need to protect.
13614 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13615 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13616 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13617 config/i386/i386-interix.h, config/i386/linux-aout.h,
13618 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13619 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13620 (YES_UNDERSCORES): Do not define - not needed.
13621 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13622 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13623 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13624 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13625 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13626 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13627 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13628 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13630 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
13631 Richard Henderson <rth@redhat.com>
13634 * function.c (assign_temp): Accept either type or decl argument.
13635 Detect variables whose size is too large to fit into an integer.
13636 * stmt.c (expand_decl): Pass the decl, not the type.
13638 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13640 * protoize.c: Match include directory usage with cppdefault.c.
13642 2002-04-03 Jeffrey A Law (law@redhat.com)
13643 Hans-Peter Nilsson <hp@bitrange.com>
13645 * combine.c (simplify_comparison): Avoid narrowing a comparison
13646 with a paradoxical subreg when doing so would drop signficant bits.
13648 2002-04-02 Steve Ellcey <sje@cup.hp.com>
13650 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
13651 if POINTERS_EXTEND_UNSIGNED is defined.
13653 2002-04-02 Richard Henderson <rth@redhat.com>
13656 * local-alloc.c (contains_replace_regs): LO_SUM may contain
13659 2002-04-02 Richard Henderson <rth@redhat.com>
13661 * doc/standards.texi: Document required freestanding libc entry points.
13663 2002-04-02 Alan Modra <amodra@bigpond.net.au>
13665 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
13666 associated splitter. Remove MQ constraint.
13667 (ctrdi_internal4): Correct CCmode clobber.
13669 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
13671 * milli64.S ($$dyncall): New function.
13672 * t-linux (LIB1ASMFUNCS): Revise module list.
13673 (LIB1ASMSRC): Use pa/milli64.S.
13675 2002-04-02 Richard Henderson <rth@redhat.com>
13677 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
13678 rename solaris_sys_varargs_h.
13680 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13682 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
13683 the same mode as its component.
13685 2002-04-02 Richard Henderson <rth@redhat.com>
13688 * final.c (this_is_asm_operands): Export.
13689 * output.h (this_is_asm_operands): Declare.
13690 * config/i386/i386.c (print_operand): Error odd asm operands.
13692 2002-04-02 Richard Henderson <rth@redhat.com>
13695 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
13697 2002-04-01 Richard Henderson <rth@redhat.com>
13700 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
13701 * fixinc/fixincl.x: Rebuild.
13703 2002-04-01 Richard Henderson <rth@redhat.com>
13705 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
13706 (atomic_alloc, atomic_free): New.
13707 (SIZE, MASK_FOR, PTR_IN): New.
13708 (emergency_reg_state, emergency_reg_state_free): New.
13709 (emergency_labeled_state, emergency_labeled_state_free): New.
13710 (reg_state_alloced, labeled_state_alloced): New.
13711 (alloc_reg_state, free_reg_state): New.
13712 (alloc_label_state, free_label_state, free_label_states): New.
13713 (push, pop, dup_state_stack, free_state_stack): Use them.
13714 (desc_label_state): Likewise.
13715 (uw_frame_state_for): Free label states and state stack.
13716 (uw_update_reg_address): Eliminate warnings.
13718 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
13720 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
13721 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
13723 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13725 * c-decl.c (grokdeclarator): Update.
13726 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13727 * c-tree.h (c_mark_addressable): New.
13728 * c-typeck.c (default_function_array_conversion, build_unary_op,
13729 build_array_ref, convert_for_assignment): Update.
13730 (mark_addressable): Rename.
13731 * calls.c (try_to_integrate, expand_call): Use langhook.
13732 * expr.c (expand_expr): Use langhook.
13733 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
13734 * langhooks.h (struct lang_hooks): New hook.
13735 * stmt.c (expand_asm_operands): Use langhook.
13736 * tree.h (mark_addressable): Remove.
13738 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13740 2002-04-01 Bob Wilson <bob.wilson@acm.org>
13742 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
13743 in previous change.
13745 2002-04-01 Bob Wilson <bob.wilson@acm.org>
13747 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
13748 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
13750 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13752 * c-common.c (unsigned_conversion_warning, convert_and_check,
13753 unsigned_type, signed_type, shorten_compare,
13754 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
13755 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
13756 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
13758 * c-decl.c (grokdeclarator): Update.
13759 * c-format.c (check_format_types): Update.
13760 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13761 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13762 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
13763 * convert.c (convert_to_integer): Use new hooks.
13764 * expmed.c (make_tree): Use new hooks.
13765 * expr.c (store_expr): Use new hooks.
13766 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
13767 all_ones_mask_p, unextend, fold): Use new hooks.
13768 * langhooks.h (struct lang_hooks_for_types): New hooks.
13769 * tree.h (signed_or_unsigned_type, signed_type,
13770 unsigned_type): Remove.
13772 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13773 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13775 2002-03-31 Richard Henderson <rth@redhat.com>
13777 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
13778 (desc_frgr_mem): Fix reference to f16-f31.
13780 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13782 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
13783 RTVEC_ELT): Const-ify.
13784 * varray.h (VARRAY_CHECK): Const-ify.
13785 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
13786 ggc_mark_rtvec, ggc_mark): Const-ify.
13788 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13790 * diagnostic.c: Include langhooks-def.h.
13791 * Makefile.in (diagnostic.o): Update.
13793 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13795 * c-common.c (c_unsafe_for_reeval): Rename.
13796 * c-common.h (c_unsafe_for_reeval): Rename.
13797 * c-decl.c (finish_incomplete_decl): Rename.
13798 (c_init_decl_processing): Don't set langhook.
13799 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13800 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13801 * c-objc-common.c (c_objc_common_init): Don't set langhook.
13802 * c-tree.h (finish_incomplete_decl): Rename.
13803 * langhooks-def.h (lhd_unsafe_for_reeval): New.
13804 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
13805 (LANG_HOOKS_INITIALIZER): Update.
13806 * langhooks.c (lhd_unsafe_For_reeval): New.
13807 * langhooks.h (struct langhooks): New hooks.
13808 * toplev.c (incomplete_decl_finalize_hook): Remove.
13809 (wrapup_global_declarations): Update.
13810 * tree.c (lang_unsafe_for_reeval): Remove.
13811 (unsafe_for_reeval): Update.
13812 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
13815 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13816 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13818 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13820 * diagnostic.c (print_error_function): Remove.
13821 (default_print_error_function): Rename.
13822 (report_error_function): Update.
13823 * diagnostic.h (print_error_function): Remove.
13824 (default_print_error_function): Remove.
13825 * langhooks-def.h (struct diagnostic_context): Predeclare.
13826 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
13827 (LANG_HOOKS_INITIALIZER): Update.
13828 * langhooks.h (struct diagnostic context): Predeclare.
13829 (struct lang_hooks): New hook.
13831 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13833 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
13834 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
13836 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
13837 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
13838 of PIC_OFFSET_TABLE_REGNUM thruout.
13839 * config/rs6000/rs6000.md: Likewise.
13840 * config/rs6000/darwin.h: Likewise.
13842 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13844 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
13845 unsigned HOST_WIDE_INT, not unsigned int.
13847 2002-03-31 Jakub Jelinek <jakub@redhat.com>
13849 PR middle-end/6096, middle-end/6098, middle-end/6099
13850 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
13852 (fill_slots_from_thread): Likewise.
13854 2002-03-31 Jakub Jelinek <jakub@redhat.com>
13856 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
13857 floating fields in float regs.
13858 (function_arg_record_value_2): Likewise.
13860 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
13862 * config/mmix/mmix.md (define_constants): Remove misleading
13863 FIXME. Add MMIX_fp_rO_OFFSET.
13864 ("nonlocal_goto_receiver"): Don't have stack-frame address of
13865 saved rO as part of the pattern. Remove FIXME.
13866 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
13867 here, at output-time.
13869 2002-03-31 Jakub Jelinek <jakub@redhat.com>
13872 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
13874 (output_v9branch): Likewise.
13876 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
13878 * gcc.c: Revert previous patch for now.
13879 * config/i386/djgpp.h: Likewise.
13881 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
13883 * config/mmix/crti.asm (_init): Register _fini with atexit.
13884 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
13886 2002-03-31 Richard Henderson <rth@redhat.com>
13889 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
13890 (ASM_OUTPUT_DEF_FROM_DECLS): New.
13892 2002-03-31 Richard Henderson <rth@redhat.com>
13894 * libgcc2.c (__bb_exit_func): Make static.
13896 * config/alpha/alpha.md (trap): New.
13898 2002-03-31 Richard Henderson <rth@redhat.com>
13900 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
13901 promoted argument types; build trap.
13902 (expand_builtin_trap): New.
13903 (expand_builtin): Use it.
13904 * stmt.c (expand_nl_goto_receivers): Likewise.
13905 * expr.h (expand_builtin_trap): Declare.
13906 * libfuncs.h (LTI_abort, abort_libfunc): New.
13907 * optabs.c (init_optabs): Init abort_libfunc.
13909 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
13911 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
13912 (LINK_COMMAND_SPEC): ... from here.
13913 (init_gcc_specs): Duplicate it here too, omitting
13914 shared_name in the second copy.
13915 (init_spec): Test for duplicate
13916 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
13918 2002-03-30 David S. Miller <davem@redhat.com>
13920 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13921 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
13923 2002-03-30 Roger Sayle <roger@eyesopen.com>
13924 Richard Henderson <rth@redhat.com>
13926 * regmove.c (combine_stack_adjustments_for_block): Avoid
13927 emitting a stack adjustment of zero bytes. Let delete_insn
13930 2002-03-30 Richard Henderson <rth@redhat.com>
13932 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
13933 (sparc_emitting_epilogue): New.
13934 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
13935 * config/sparc/sparc-protos.h: Update.
13936 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
13937 (TARGET_SWITCHES): Update.
13938 * config/sparc/sparc.md (return): Remove.
13939 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
13940 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
13941 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
13942 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13943 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
13944 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
13945 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
13946 Remove MASK_EPILOGUE.
13947 * doc/invoke.texi: Update.
13949 2002-03-30 Daniel Berlin <dan@dberlin.org>
13951 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
13952 CPP will start the file for us.
13954 2002-03-30 Richard Henderson <rth@redhat.com>
13957 * config/ia64/ia64.c (group_barrier_needed_p): Special case
13958 prologue_allocate_stack.
13959 (ia64_single_set): Use insn codes for recognition of special
13960 cases, not rtl matching.
13961 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
13963 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
13965 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
13967 2002-03-30 Richard Henderson <rth@redhat.com>
13970 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
13971 or -fomit-frame-pointer with profiling.
13972 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13973 (FUNCTION_PROFILER): Do nothing.
13974 (PROFILE_HOOK): New.
13975 * config/sparc/sparc.c (sparc_override_options): Don't check
13976 code models for profiling.
13977 (sparc_function_profiler): Remove.
13978 (sparc_profile_hook): New.
13979 * config/sparc/sparc-protos.h: Update.
13981 2002-03-30 Jakub Jelinek <jakub@redhat.com>
13983 PR optimization/6086
13984 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
13985 of SUBREG of volatile MEM or because the MEM was mode dependent,
13986 return CLOBBER instead of unmodified SUBREG.
13988 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
13990 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
13991 when not optimizing.
13993 * toplev.c (rest_of_compilation): Cann mark_constant_function
13994 only when optimizing.
13996 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
13999 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
14000 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
14001 (try_optimize_cfg): clear all AUX fields.
14003 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
14004 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
14005 (ix86_address_cost): Be prepared for SUBREGed registers.
14006 (legitimate_address_p): Accept SUBREGed registers.
14008 2002-03-29 Richard Henderson <rth@redhat.com>
14011 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
14013 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14015 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
14016 for aggregate and TFmode types.
14018 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14020 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
14022 2002-03-29 Richard Henderson <rth@redhat.com>
14025 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
14026 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
14028 2002-03-29 Richard Henderson <rth@redhat.com>
14031 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
14032 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
14033 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
14034 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
14036 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
14038 2002-03-29 Dale Johannesen <dalej@apple.com>
14040 * loop.c (combine_movables): Do allow combination of pseudos.
14042 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
14044 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
14045 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
14046 No functional change except ...
14047 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
14048 * doc/install.texi (*-*-freebsd*): Document port configuration.
14050 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14052 * Makefile.in (convert.o, calls.o, expmed.o): Update.
14053 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
14055 * builtin-types.def (BT_PTRMODE): Update.
14056 * c-common.c (type_for_size): Rename c_common_type_for_size.
14057 (type_for_mode): Similarly.
14058 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
14060 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
14061 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
14062 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
14064 * c-typeck.c (common_type, comptypes, default_conversion):
14066 * calls.c: Include langhooks.h.
14067 (emit_library_call_value_1): Use new hooks. Avoid redundant
14069 * convert.c: Include langhooks.h
14070 (convert_to_pointer, convert_to_integer): Use new hooks.
14071 * except.c (init_eh): Similarly.
14072 * expmed.c: Include langhooks.h.
14073 (expand_mult_add): Use new hooks.
14074 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
14075 try_casesi): Similarly.
14076 * fold-const.c (optimize_bit_field_compare, make_range,
14077 decode_field_reference, fold_truthop, fold): Similarly.
14078 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
14079 put_var_into_stack): Similarly.
14080 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
14081 LANG_HOOKS_TYPE_FOR_SIZE): New.
14082 (LANG_HOOKS_TYPES_INITIALIZER): Update.
14083 * langhooks.h (lang_hooks_for_types): New hooks.
14084 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
14085 * tree.c (get_unwidened, get_narrower): Similarly.
14086 * tree.h (type_for_mode, type_for_size): Remove.
14087 * varasm.c (force_const_mem): Use new hooks.
14088 * utils2.c (nonbinary_modular_operation): Update.
14090 * objc-act.c (handle_impent): Update.
14091 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
14094 2002-03-29 Steve Ellcey <sje@cup.hp.com>
14096 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
14097 * config/ia64/ia64.c (basereg_operand): New.
14098 * config/ia64/ia64-protos.h (basereg_operand): Declare.
14099 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
14101 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14103 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
14104 unwind information when frame_pointer_needed.
14105 (mmix_assemble_integer): Tweak wording in comment.
14107 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14109 * Makefile.in (except.o): Update.
14110 * except.c: Include langhooks.h.
14111 (init_eh): Use langhook.
14112 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
14113 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
14114 (LANG_HOOKS_INITIALIZER): Update.
14115 * langhooks.h (lang_hooks_for_types): New.
14116 (struct lang_hooks): Add it.
14117 * tree.c (make_lang_type_fn, make_lang_type): Remove.
14118 * tree.h (make_lang_type_fn, make_lang_type): Remove.
14120 * alpha/alpha.c: Include langhooks.h.
14121 (alpha_build_va_list): Use langhook.
14122 * d30v/d30v.c: Include langhooks.h.
14123 (d30v_build_va_list): Use langhook.
14124 * i386/i386.c: Include langhooks.h.
14125 (ix86_build_va_list): Use langhook.
14126 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
14127 * s390/s390.c: Include langhooks.h.
14128 (s390_build_va_list): Use langhook.
14129 * stormy16/stormy16.c: Include langhooks.h.
14130 (stormy16_build_va_list): Use langhook.
14132 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14135 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
14137 (length): Compute variable length for branches/calls/jumps here.
14138 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
14139 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
14140 define branch_type attribute.
14141 (divsi3_sp32): Maximum length is 6 not 7.
14142 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
14143 call_address_untyped_struct_value_sp32,
14144 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
14145 * config/sparc/sparc.c (empty_delay_slot): New function.
14146 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
14147 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
14149 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14151 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
14152 nonzero_bits if not needed.
14153 (nonzero_bits) [XOR]: Likewise.
14154 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
14155 reg_last_set_mode and mode are both MODE_INT, but not equal.
14156 (record_value_for_reg): Compute reg_last_set_nonzero_bits
14157 in nonzero_bits_mode for MODE_INT modes.
14159 2002-03-28 Richard Henderson <rth@redhat.com>
14162 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
14163 to GAS. Correct drift between alternatives.
14165 2002-03-28 Richard Henderson <rth@redhat.com>
14168 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
14170 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
14172 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
14173 emulation to the linker.
14175 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
14177 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
14178 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14180 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
14182 * combine.c (simplify_and_const_int): Make sure to apply mask
14183 when force_to_mode returns a constant integer. PR3311.
14185 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14187 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
14189 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14191 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
14192 and Objective-C Dialect Options.
14194 2002-03-28 Richard Henderson <rth@redhat.com>
14196 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
14197 comparison should be done vs !=0 not >0 return code. Tidy cases.
14199 2002-03-28 Richard Henderson <rth@redhat.com>
14201 * c-decl.c (finish_function): New arg can_defer_p. Pass it
14202 on to c_expand_body.
14203 * c-tree.h (finish_function): Update decl.
14204 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
14206 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
14208 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
14210 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
14212 * rtlanal.c: Include flags.h
14213 (may_trap_p): Do not mark FP operations if trapping
14214 if !flag_trapping_math
14215 * Makefile.in (rtlanal.o): Add dependency on flag.h
14216 * ifcvt.c (noce_operand_ok): Avoid the lameness.
14218 2002-03-27 Zack Weinberg <zack@codesourcery.com>
14220 * mips.md: Use dconst1, not 1.0, as first argument of
14221 REAL_VALUE_LDEXP. Don't use union real_extract.
14223 2002-03-28 Alan Modra <amodra@bigpond.net.au>
14225 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14226 rather than $target. Heed program_prefix and
14227 program_transform_name. Search for gas in cross-compiler case too.
14228 "test -x" rather than "test -f".
14229 (gcc_cv_ld): Likewise.
14230 (gcc_cv_nm): Heed program_prefix and program_transform_name.
14231 (gcc_cv_objdump): Likewise.
14232 * configure: Regenerate.
14234 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14236 * Makefile.in (attribs.o): Update.
14237 * attribs.c: Include langhooks.h.
14238 (decl_attributes): Use langhook.
14239 * c-decl.c (insert_default_attributes): Rename.
14240 * c-tree.h (c_insert_default_attributes): New.
14241 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14242 (LANG_HOOKS_INITIALIZER): Update.
14243 * langhooks.h (struct lang_hooks): New hook.
14244 * tree.h (insert_default_attributes): Remove.
14246 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14248 2002-03-27 Andreas Schwab <schwab@suse.de>
14250 * config/i386/i386.c (classify_argument): Also check for
14253 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14255 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14258 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
14260 * i960.md (ret): Set PC.
14261 (nonlocal_goto): Fix expander.
14262 * builtins.c (epxand_builin_longjmp): Check that we've emitted
14265 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
14267 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14268 of libcall regions.
14270 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14272 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14273 assigning to BLOCK_FOR_INSN directly.
14275 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
14277 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14279 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14281 * c-common.c (c_expand_expr): Fix prototype.
14282 * c-common.h (c_expand_expr): Always declare, update.
14283 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14284 * c-objc-common.c (c_objc_common_init): No global hook.
14285 * expr.c (expand_expr): Use langhook.
14286 * expr.h (enum expand_modifier): Conditionally declare.
14287 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14288 (LANG_HOOKS_INITIALIZER): Update.
14289 * langhooks.c (lhd_expand_expr): New.
14290 * langhooks.h (struct lang_hooks): New hook.
14291 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14292 (lang_independent_init): Don't default hook.
14294 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14296 2002-03-27 Richard Henderson <rth@redhat.com>
14299 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14300 TARGET_CONST_GP. Simplify conditions.
14302 2002-03-27 Richard Henderson <rth@redhat.com>
14304 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14305 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14306 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14308 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
14310 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14311 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14312 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14313 Remove unnecessary masks.
14314 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14315 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14316 -mwindows, -mdll switches and their negations.
14318 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14320 * gcc-common.c (lang_mark_false_label_stack): Remove.
14321 * ggc.h (lang_mark_false_label_stack): Similarly.
14323 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
14325 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14327 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14328 or __rtems_ is defined.
14330 2002-03-26 Richard Henderson <rth@redhat.com>
14332 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14333 if a non-trivial load was emitted.
14334 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
14335 in high+extra+low case.
14337 2002-03-26 Richard Henderson <rth@redhat.com>
14339 * config.gcc (sparc*-solaris): Use float_format=sparc.
14341 2002-03-26 Richard Henderson <rth@redhat.com>
14343 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14344 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14345 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14346 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14347 (WINT_TYPE_SIZE): Fix at 32.
14349 2002-03-26 Richard Henderson <rth@redhat.com>
14351 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14352 until after eh landing pad generation.
14353 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14354 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14356 2002-03-26 Richard Henderson <rth@redhat.com>
14358 * expr.h (ADD_PARM_SIZE): One more convert for INC.
14360 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
14362 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
14363 and warning switches.
14364 (cc1_options): Likewise.
14366 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
14368 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14369 Restore more of the signal context. Set no_reg_stack_frame.
14370 * config/ia64/unwind-ia64.c (unw_state_record):
14371 Add no_reg_stack_frame, comments.
14372 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14373 (uw_update_context): Adjust bsp when unwinding from leaf,
14374 but not signal frame.
14376 2002-03-26 David Edelsohn <edelsohn@gnu.org>
14378 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14380 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14382 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14384 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14387 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14388 "Add a pool_range attribute", which was lost during the ARM/Thumb
14391 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14393 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14394 a register into the MAC16 accumulator.
14396 2002-03-26 Andrew Cagney <ac131313@redhat.com>
14398 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14399 (Warning Options): Document -Wswitch-enum.
14400 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
14402 (warn_switch_enum): Define variables.
14403 * flags.h (warn_switch_enum): Declare variables.
14404 * stmt.c (expand_end_case_type): When warn_switch_enum /
14405 -Wswitch-enum, perform switch checks.
14408 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14410 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14411 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14412 (reload_muladdsi_compare0_scratch): Delete.
14414 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
14416 * doc/install.texi (*-*-freebsd*): Update.
14418 2002-03-26 Richard Henderson <rth@redhat.com>
14420 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14421 (SUB_PARM_SIZE): Cast DEC to ssizetype.
14423 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14424 types from the normal argument frame.
14426 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14427 variable sized objects by reference.
14428 (sparc_va_arg): Receive them by reference too.
14430 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
14432 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
14433 code to not restoring global registers.
14435 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
14437 * Makefile.in (ggc-common.o): Update.
14438 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14439 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14440 * c-tree.h (c_mark_tree): New.
14441 * ggc-common.c: Include langhooks.h.
14442 (gcc_mark_trees): Use new langhook.
14443 * ggc-callbacks.c: Delete file.
14444 * ggc.h (lang_mark_tree): Remove.
14445 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14446 (LANG_HOOKS_INITIALIZER): Update.
14447 * langhooks.h (struct lang_hooks): New hook.
14449 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14451 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14453 * doc/cpp.texi: Exclude entire Top node from printed manual.
14454 Move option index after directive index. Insert page breaks
14455 before GFDL and concept index. Index environment variables
14456 with command line options.
14457 * doc/cppenv.texi: Use @vtable for environment variable list.
14458 Add paragraph explaining semantics of empty elements in path
14459 variables. Exclude a cross-reference to Fishkill from the
14460 manpage. Remove an unnecessary cross-reference of the entry
14461 right above the referer. Don't use @anchor in text that goes
14463 * doc/cppopts.texi: Cross-reference the environment variables
14464 section, not the specific environment variable, for consistency.
14466 2002-03-25 Richard Henderson <rth@redhat.com>
14468 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14469 anywhere in the block. Don't refer to insns that have been
14470 removed from the chain. Iterate backward through the new insns.
14471 Don't refer to edges that have been removed.
14473 2002-03-26 Alan Modra <amodra@bigpond.net.au>
14475 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14476 test for overflow of constant.
14478 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
14481 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14482 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14483 these patterns on arm_archv4.
14485 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
14487 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14490 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14492 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
14493 float_handled, float_handler, float_signal, set_float_handler,
14494 and do_float_handler. Set handler for SIGFPE to crash_signal.
14495 * toplev.h: Don't prototype do_float_handler.
14497 * c-lex.c: Fold parse_float into lex_number. Make warning
14498 about portability of hex float constants more informative, and
14499 don't issue it on top of a syntax error.
14500 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14502 * real.h: Define REAL_VALUE_ABS here...
14503 * simplify-rtx.c: ... not here. Fold check_fold_consts,
14504 simplify_unary_real, simplify_binary_real, and
14505 simplify_binary_is2orm1 into their callers.
14506 * tree.c: Fold build_real_from_int_cst_1 into caller.
14508 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14510 * tsystem.h: Include float.h here...
14511 * libgcc2.c: ... not here.
14513 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
14515 Fixes for: PR bootstrap/3591, target/5676
14516 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14517 defined. Do not disable exceptions or rtti.
14518 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14519 mcore.h. Disable exceptions and rtti, since they are not
14522 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
14524 * c-decl.c (maybe_build_cleanup): Remove.
14525 * expr.c (expand_expr): Use langhook.
14526 * langhooks-def.h (lhd_return_null_tree,
14527 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14528 (LANGHOOKS_INITIALIZER): Update.
14529 * langhooks.c (lhd_return_null_tree): New.
14530 * langhooks.h (struct lang_hooks): New hook.
14531 * tree-inline.c (initialize_inlined_parameters): Use langhook.
14532 * tree.h (maybe_build_cleanup): Remove.
14534 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14536 * regrename.c (build_def_use): Move recog_memoized
14537 before extract_insn.
14539 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14542 * expr.c (emit_group_store): Handle storing into CONCAT.
14544 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14546 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14547 corresponding MATCH_DUP.
14549 2002-03-24 Richard Henderson <rth@redhat.com>
14551 * unroll.c (unroll_loop): Zero label_map.
14553 * gcse.c: Include except.h.
14554 * Makefile.in (gcse.o): Update.
14556 2002-03-24 Richard Henderson <rth@redhat.com>
14558 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14559 Do resolve_unique_section before shared data clause.
14561 2002-03-24 Richard Henderson <rth@redhat.com>
14563 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14565 2002-03-24 Richard Henderson <rth@redhat.com>
14567 * recog.c (peephole2_optimize): Split blocks when EH insns are
14568 generated in the middle of a block. Do global life update if
14571 2002-03-24 Richard Henderson <rth@redhat.com>
14573 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14575 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14578 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
14579 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14580 (init_dependency_output): Don't make no_output decision here.
14582 2002-03-24 Andrew Cagney <ac131313@redhat.com>
14584 * stmt.c (check_for_full_enumeration_handling): Remove tests of
14585 warn_switch. Update description.
14586 (expand_end_case_type): Call check_for_full_enumeration_handling
14589 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14591 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14592 (m68hc11_split_move): Call it to see if the source and destination
14593 operands use the same direction auto inc/dec mode, otherwise make the
14594 source an offsetable memory operand and generate an add.
14596 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14598 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14599 register for operand 2.
14600 ("*subsi3_zero_extendqi"): Likewise.
14601 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14602 bits so that it is compatible with a pop.
14603 ("*andhi3_gen"): Likewise.
14604 ("xorhi3"): Likewise.
14606 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14608 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14610 (cpp_post_options): ... not here.
14612 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14613 Aldy Hernandez <aldyh@redhat.com>
14615 Removal of separate preprocessor cpp0.
14617 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14618 cpp0, install-common): Update.
14619 * c-common.c (flag_preprocess_only): New.
14620 (c_common_init): Preprocess for -E.
14621 * c-common.h (flag_preprocess_only): New.
14622 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14623 * c-objc-common.c (c_init_decl_processing): Exit quickly
14624 for NULL return from c_common_init.
14625 * cpplib.h (cpp_preprocess_file): New.
14626 * cppmain.c (main, general_init, pfile, progname): Remove.
14627 (do_preprocessing): Rename cpp_preprocess_file, don't call
14628 cpp_finish. Don't close stdout here.
14629 (setup_callbacks): Update prototype.
14630 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
14632 * tradcpp.c (main): Ignore -quiet.
14634 * lang-specs.h (default_compilers): Preprocess with cc1obj.
14636 2002-03-24 Richard Henderson <rth@redhat.com>
14638 PR optimization/5742
14639 * machmode.def: Add inner mode field to complex modes.
14640 * config/mips/mips.c (mips_function_value): Always define. Add
14641 new argument to handle libcalls.
14642 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
14643 (FUNCTION_VALUE): Likewise.
14644 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
14645 * config/mips/mips-protos.h: Update.
14647 2002-03-23 Richard Henderson <rth@redhat.com>
14649 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
14650 * config/sparc/sparc-protos.h: Update.
14651 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
14653 2002-03-23 Richard Henderson <rth@redhat.com>
14655 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
14656 _start or _init begins the text segment.
14658 2002-03-23 David Edelsohn <edelsohn@gnu.org>
14660 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
14661 not HOST_WIDEST_INT.
14662 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
14664 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
14667 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
14668 operand argument to output_return_instruction.
14669 * arm.c (arm_print_operand, case 'd'): If the operand is
14670 const_true_rtx then just return.
14671 (arm_print_operand, case 'D'): If the operand is const_true_rtx
14674 2002-03-23 Andrew Cagney <ac131313@redhat.com>
14676 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
14677 (Warning Options): Document -Wswitch-default.
14678 * toplev.c (W_options): Add -Wswitch-default. Update comment on
14680 (warn_switch_default): Define variable.
14681 (warn_switch): Update comment.
14682 * flags.h (warn_switch_default): Declare variable.
14683 (warn_switch): Update comment.
14684 * stmt.c (expand_end_case): Check for and, when
14685 warn_switch_no_default, warn of a missing default case.
14687 2002-03-23 Alan Modra <amodra@bigpond.net.au>
14689 * real.h (N): Special case 128 bit doubles.
14691 * combine.c (simplify_comparison): When widening modes, ignore
14692 sign extension on CONST_INTs.
14694 2002-03-22 Bob Wilson <bob.wilson@acm.org>
14696 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
14697 passed to adjust_address. Fix comment formatting.
14700 2002-03-22 Zack Weinberg <zack@codesourcery.com>
14702 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
14703 Always make REAL_VALUE_TYPE a struct containing an array of
14704 HOST_WIDE_INT, not a double. Tidy up the code deciding how
14705 big it is. Don't declare or use union real_extract.
14707 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
14708 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
14709 (print_operand), config/arm/arm.c (output_move_double),
14710 config/arm/arm.md (consttable_4, consttable_8),
14711 config/romp/romp.c (output_fpops), config/s390/s390.h
14712 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
14713 (xtensa_output_literal): Don't use union real_extract.
14715 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
14716 (sfmode_constant_to_ulong), config/ns32k/merlin.h
14717 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
14718 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
14719 (PRINT_OPERAND): Don't use local version of union
14722 * config/convex/convex.c (check_float_value), config/vax/vax.c
14723 (vax_float_literal), config/m88k/m88k.md (divdf3),
14724 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
14725 config/pdp11/pdp11.c (output_move_quad): Don't do host
14726 arithmetic on target floating point quantities.
14728 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
14729 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
14731 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
14732 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
14734 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
14735 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
14737 * print-rtl.c (print_rtx): Disable code which needs
14738 floating-point emulator.
14739 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
14740 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
14741 depending on HOST_FLOAT_FORMAT to be defined properly.
14743 * config/1750a/1750a.c (get_double, float_label): Delete.
14744 (print_operand): Delete huge commented-out chunk. Use
14745 REAL_VALUE_TO_DECIMAL.
14746 * config/1750a/1750a-protos.h: Delete prototypes of deleted
14748 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
14750 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
14751 Use REAL_VALUE_TO_DECIMAL as ELF version does.
14752 * config/m88k/m88k.c (real_power_of_2_operand,
14753 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
14754 real_extract out of the union; run the input through
14755 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
14756 from that into the union.
14757 * config/pdp11/pdp11.c (output_move_double): Rearrange
14758 parentheses to make automatic indenter happy.
14760 * doc/tm.texi (Cross-compilation): Rename node to "Floating
14761 Point" and rewrite to describe current situation. Also adjust
14762 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
14764 * doc/rtl.texi: Adjust cross reference.
14766 2002-03-22 Bob Wilson <bob.wilson@acm.org>
14768 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
14769 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
14770 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
14771 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
14772 prevent use of sp as a reload register.
14773 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
14774 non_acc_reg_operand.
14775 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
14776 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
14777 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14778 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
14780 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
14782 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
14783 * cpplex.c (unterminated): Delete.
14784 (parse_string): No string literal may extend over multiple
14785 lines. Suppress the error when preprocessing assembly.
14786 * cppmain.c (scan_translation_unit): Strings are single-line.
14788 * doc/cpp.texi: Update to match.
14790 2002-03-22 Jakub Jelinek <jakub@redhat.com>
14792 PR optimization/5854
14793 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
14795 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
14796 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
14797 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
14798 const0 if scratch register was not allocated.
14799 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
14800 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
14801 with GEN_INT (...).
14802 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
14803 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
14804 with GEN_INT (...) everywhere. Remove constraints in define_split
14806 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
14807 require scratch register for setting 0 into regs/non-pushable memory.
14809 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
14811 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
14812 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
14814 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
14816 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
14817 * cppinit.c (cpp_create_reader): On by default.
14818 (cpp_handle_option): Handle -W[no-]endif-labels.
14819 (cpp_post_options): Also enable if -pedantic.
14820 * cpplib.c (do_else): Use it.
14821 (do_endif): Likewise.
14822 * doc/cppopts.texi: Document new option.
14823 * doc/invoke.texi: Document new option.
14825 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
14827 * config/i386/i386.c, config/i386/i386.md: Change all occurences
14828 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
14830 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
14832 * flow.c (calculate_global_regs_live): Clear aux fields of
14835 2002-03-22 Jakub Jelinek <jakub@redhat.com>
14837 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
14838 REG or MEM subregs, pass rtx * instead of rtx to it.
14839 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
14840 rtx * instead of rtx to alter_subreg.
14841 * config/m32r/m32r.c (gen_split_move_double): Likewise.
14842 * config/pj/pj.c (pj_output_rval): Likewise.
14844 2002-03-22 Richard Henderson <rth@redhat.com>
14847 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
14848 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
14849 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
14850 (ia64_expand_prologue): Look at int_regs, not words, for number
14851 of incomming int regs.
14853 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
14855 * expr.c (expand_expr): A RESULT_DECL is part of a call.
14857 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
14859 * toplev.c (flag_loop_optimize, flag_crossjumping):
14860 New static variables.
14861 (rest_of_compilation): Conditionalize crossjumping and
14863 (parse_options_and_default_flags): Default loop_optimize and
14865 (lang_independent_options): Add -fcrossjumping and -floop-optimize
14866 * invoke.texi (crossjumping, loop-optimize): Document.
14868 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
14870 * real.c (eiisneg): Move outside #ifdef NANS.
14872 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
14874 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
14875 frequencies match; avoid match on different loop depths.
14876 (try_crossjump_to_bb): Kill tests that no longer brings time
14878 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
14880 (split_edge): Likewise.
14882 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
14885 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
14886 * cfgrtl.c: Include insn-config.h
14887 (split_block) Dirtify block in presence of conditional execution
14889 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
14891 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
14892 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
14893 (function_arg): Constify CUMULATIVE_ARGS.
14894 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
14895 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
14896 (UNITS_PER_DOUBLE): New macro.
14897 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
14898 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
14899 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
14900 fp_regs and stack_words.
14901 (EABI_FLOAT_VARARGS_P): New macro.
14902 * config/mips/mips.c (struct mips_arg_info): New.
14903 (mips_arg_info): New function.
14904 (function_arg_advance): Use it. Add adjustment instructions here
14905 rather than in function_arg.
14906 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
14907 for VOIDmode at the beginning of the function.
14908 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
14909 (function_arg_pass_by_reference): Likewise.
14910 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
14911 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
14912 (mips_va_start): Likewise. Use the new stack_words field of
14913 CUMULATIVE_ARGS to set up overflow area. Reformat.
14914 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
14915 doubles and other types, aligning the overflow pointer for non-doubles
14916 too. Remove some code duplication. Replace hard-coded constants.
14918 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
14920 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
14921 (CLASS_UNITS): Undefine.
14922 (CLASS_MAX_NREGS): Use FP_INC.
14923 * config/mips/mips.c (compute_frame_size): Likewise.
14924 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
14926 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
14928 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
14929 prototype, and handle lexing numbers and identifiers.
14930 (parse_identifier): Update to new form of parse_slow.
14931 (parse_number): Fast path only, use parse_slow otherwise.
14932 (_cpp_lex_direct): Update calls to parse_number.
14934 2002-03-21 DJ Delorie <dj@redhat.com>
14936 * bb-reorder.c (make_reorder_chain_1): Protect against
14937 when redundant edges are omitted.
14938 * predict.c (dump_prediction): Likewise.
14940 2002-03-21 Richard Henderson <rth@redhat.com>
14943 * fixinc/inclhack.def (solaris_stdio_tag): New.
14944 * fixinc/fixincl.x: Regenerate.
14946 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
14949 * c-typeck.c (process_init_element): Flag non-static
14950 initialization of a flexible array member as illegal.
14952 2002-03-22 Alan Modra <amodra@bigpond.net.au>
14954 * config/rs6000/t-linux64: New.
14955 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
14956 t-ppccomm. Use t-rs6000 and t-linux64.
14957 (powerpc64-*-gnu* <tmake_file>): Likewise.
14958 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
14959 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
14960 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
14962 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
14964 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
14965 flag_really_no_inline instead of optimize == 0.
14967 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
14969 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
14971 * flags.h (flag_really_no_inline): New.
14973 * c-common.c (c_common_post_options): Initialize
14974 flag_really_no_inline.
14976 * toplev.c (flag_really_no_inline): New.
14978 2002-03-21 Jakub Jelinek <jakub@redhat.com>
14980 * config/avr/avr.md (length): Fix length computation for
14981 conditional branches.
14983 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
14985 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
14986 sdbout.o, profile.o): Update.
14987 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
14989 * c-common.h (gettags): Move here from tree.h.
14990 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
14991 insert_block, getdecls, kept_level_p, global_bindings_p): New.
14992 * dbxout.c (dbxout_init): Use getdecls langhook.
14993 * expr.c (expand_expr): Use insert_block langhook.
14994 * fold-const.c: Include langhooks.h.
14995 (fold_range_test, fold_binary_op_with_conditional_arg,
14996 fold): Use global_bindings_p langhook.
14997 * integrate.c (expand_inline_function): Use insert_block langhook.
14998 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
14999 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
15000 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
15001 LANG_HOOKS_GETDECLS): New.
15002 (LANG_HOOKS_INITIALIZER): Update.
15003 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
15005 * langhooks.h (struct lang_hooks_for_decls): New.
15006 (struct lang_hooks): Update.
15007 * profile.c: Include langhooks.h.
15008 (output_func_start_profiler): Use new langhooks.
15009 * sdbout.c: Include langhooks.h.
15010 (sdbout_init, sdbout_finish): Use getdecls langhook.
15011 * stmt.c: Include langhooks.h.
15012 (expand_fixup, fixup_gotos): Use new langhooks.
15013 * stor-layout.c: Include langhooks.h.
15014 (variable_size): Use global_bindings_p langhook.
15015 * toplev.c (compile_file): Use getdecls langhook.
15016 * tree-inline.c (remap_block): Use insert_block langhook.
15017 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
15018 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
15020 2002-03-21 Richard Henderson <rth@redhat.com>
15022 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
15023 constants in .data when -fpic.
15025 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15027 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
15030 2002-03-21 Tom Tromey <tromey@redhat.com>
15032 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
15034 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15036 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
15038 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
15040 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15041 Richard Henderson <rth@redhat.com>
15044 * c-common.c (c_expand_expr): Preserve result of a statement
15045 expression if needed.
15047 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15050 * genrecog.c (maybe_both_true_mode): Remove.
15051 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
15052 * machmode.def (Pmode): Likewise.
15054 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
15056 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
15057 (nonlocal_mentioned_p_1): New function.
15058 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
15059 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
15060 (mark_constant_function): Recognize pure functions.
15061 * rtl.h (global_reg_mentioned_p): New prototype.
15062 * rtlanal.c (global_reg_mentioned_p,
15063 global_reg_mentioned_p_1): New function.
15065 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15067 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
15069 * fixinc/fixincl.x: Regenerate.
15071 2002-03-20 Jason Merrill <jason@redhat.com>
15073 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
15075 2002-03-20 Michael Meissner <meissner@redhat.com>
15077 * doc/invoke.texi (Optimize Options): Document that -O2 sets
15080 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15082 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
15083 ".literal_position" directive before the constant pool.
15085 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15087 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
15088 Add Craig Rodrigues.
15089 Add Brad Lucier to testers.
15091 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15094 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
15096 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
15097 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
15098 instead of insn_extract.
15100 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15103 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
15105 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
15106 stmt if some case has been output.
15108 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15111 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
15112 movsfcc_1, movdfcc_1): Add %O2.
15113 * config/i386/i386.c (print_operand): Handle %ON.
15114 Print . before float condition codes in Sun as cmov syntax.
15115 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
15116 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
15119 2002-03-20 Philip Blundell <pb@nexus.co.uk>
15121 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
15122 return instruction if PC was popped.
15124 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15126 * config/xtensa/xtensa.md: Remove unused type attributes.
15127 (adddi_carry, subddi_carry): Change type attribute to "multi".
15129 2002-03-19 Dale Johannesen <dalej@apple.com>
15131 PR optimization/5999, middle-end/5731
15132 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
15133 multiplications by reciprocals.
15135 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
15137 * Makefile.in: Update.
15138 * c-common.c: Include langhooks.h.
15139 (inline_forbidden_p): Use new hook.
15140 * diagnostic.c: Include langhooks.h.
15141 (format_with_decl, announce_function,
15142 default_print_error_function): Use new hook.
15143 * dwarf2out.c (dwarf2_name): Use new hook.
15144 * function.c: Include langhooks.h.
15145 (init_function_start): Use new hook.
15146 * langhooks-def.h (lhd_decl_printable_name): New.
15147 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
15148 (LANGHOOKS_INITIALIZER): Update.
15149 * langhooks.c (lhd_decl_printable_name): New.
15150 * langhooks.h (struct lang_hooks): New hook.
15151 * toplev.c (decl_name, decl_printable_name): Remove.
15152 (open_dump_file): Use new hook.
15153 (process_options): Remove old hook.
15154 * tree.h (decl_printable_name): Remove.
15156 * objc-act.c (objc_init): Remove old hook.
15157 (objc_printable_name): Export.
15158 * objc-act.h (objc_printable_name): New.
15159 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
15161 2002-03-19 Jim Blandy <jimb@redhat.com>
15163 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
15164 the start_source_file debug hook, not the current line number.
15166 2002-03-19 Richard Henderson <rth@redhat.com>
15168 * flow.c (EH_USES): Provide default.
15169 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
15170 * doc/tm.texi (EH_USES): New.
15172 * config/ia64/ia64.c (ia64_eh_uses): New.
15173 * config/ia64/ia64-protos.h: Update.
15174 * config/ia64/ia64.h (EH_USES): New.
15176 2002-03-19 Richard Henderson <rth@redhat.com>
15178 * varasm.c (output_constant_def): Fix stupid typo.
15180 2002-03-19 Richard Henderson <rth@redhat.com>
15183 * except.c (current_function_has_exception_handlers): New.
15184 * except.h: Declare it.
15185 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
15186 Combine tests that disable all sibcalls for the function.
15188 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
15190 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
15193 2002-03-19 Richard Henderson <rth@redhat.com>
15196 * config/ia64/ia64.c: Revert 2002-03-01 patch.
15197 * config/ia64/ia64.h (INIT_EXPANDERS): New.
15199 2002-03-19 Jim Blandy <jimb@redhat.com>
15201 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
15202 name, even if the replacement list contains no tokens, as required
15205 2002-03-19 Jason Merrill <jason@redhat.com>
15207 * varasm.c (globalize_decl): Get the name from the RTL, not
15208 DECL_ASSEMBLER_NAME.
15210 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
15212 2002-03-19 Bob Wilson <bob.wilson@acm.org>
15214 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
15215 subdi_carry): Define.
15217 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15219 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15220 about -fpic/-fPIC if extra_warnings set.
15222 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15224 * expr.c (expand_expr): Sign-extend CONST_INT generated from
15225 TREE_STRING_POINTER.
15226 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
15228 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15230 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15231 in favor of SP if FRAME_POINTER_REQUIRED is false.
15233 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
15235 * emit-rtl.c (gen_int_mode): New function.
15236 * rtl.h: Prototype for it.
15237 * combine.c (make_extraction, simplify_comparison), expmed.c
15238 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15239 (convert_modes, store_field), optabs.c (expand_fix),
15240 simplify-rtx.c (neg_const_int, simplify_unary_real),
15242 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15243 Use it instead of GEN_INT (trunc_int_for_mode (...)).
15245 2002-03-19 Jakub Jelinek <jakub@redhat.com>
15248 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15249 convert_parm_for_inlining.
15250 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15252 * langhooks-def.h: Likewise.
15253 * objc/objc-lang.c: Likewise.
15254 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15256 * tree-inline.c (initialize_inlined_parameters):
15257 Call convert_parm_for_inlining lang hook if needed.
15258 * c-typeck.c (c_convert_parm_for_inlining): New function.
15259 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15261 2002-03-18 Mark Mitchell <mark@codesourcery.com>
15263 * calls.c (precompute_arguments): Do not assume that temporaries
15264 can be destroyed after expanding the argument.
15265 (expand_call): Likewise.
15267 2002-03-15 Eric Christopher <echristo@redhat.com>
15269 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15270 Fix register preference on last change.
15271 * config/mips/mips.c (mips_return_in_memory): New function.
15272 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15273 * config/mips/mips-protos.h: Declare.
15274 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15275 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15277 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
15279 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15281 (anddi3, iorsi3): Likewise.
15283 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15284 use %gprel for symbols that are going to be placed in linkonce
15287 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15288 RETURN_ADDRESS_POINTER_REGNUM to $ra.
15289 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15290 not needed. Disregard leaf_function_p().
15291 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15292 mips16 frame pointer.
15293 * config/mips/mips.md (store ra): Only to small SP offsets.
15294 2001-08-22 Graham Stott <grahams@redhat.com>
15295 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15296 return a REG rtx for the return address register.
15298 2002-03-18 Bob Wilson <bob.wilson@acm.org>
15300 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15301 constant-pool addresses as "mode-dependent".
15302 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15304 2002-03-18 Jakub Jelinek <jakub@redhat.com>
15307 * expr.c (emit_group_load): Use extract_bit_field if
15308 needed for CONCAT arguments.
15310 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
15313 * arm.md (tablejump): Make this a define_expand. For PIC add the
15314 offset to the base of the table.
15315 (thumb_tablejump): Matcher for Thumb tablejump insn.
15316 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15317 as the difference of two labels.
15318 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15319 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15320 tables in the code.
15321 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15322 * arm.c (get_jump_table_size): If the table is not in the text
15323 section, return zero.
15325 2002-03-18 Bernd Schmidt <bernds@redhat.com>
15327 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15329 (arm_reload_out_hi): Use gen_lowpart instead of
15330 gen_rtx_SUBREG to access QImode components.
15331 * config/arm/arm.md: Disable zero_extend split for QImode
15332 subregs in BIG_ENDIAN mode.
15333 (storehi_bigend): Match use of least significant byte.
15334 (storeinthi): Remove extraneous SUBREG.
15335 Add missing construction of operands[2].
15336 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15337 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15338 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15340 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
15342 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15345 2002-03-17 Richard Henderson <rth@redhat.com>
15347 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15350 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15352 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15353 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15355 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15357 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15359 * predict.c (estimate_bb_frequencies): Delete unused variables.
15361 2002-03-17 Richard Henderson <rth@redhat.com>
15363 * config/ia64/ia64.c (ia64_attribute_table): Move before
15364 targetm definition. Make static.
15366 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
15368 * c-common.h (yyparse, c_common_parse_file): New.
15369 * c-lang.c: Include c-common.h.
15370 (LANG_HOOKS_PARSE_FILE): Redefine.
15371 * c-lex.c: Include c-common.h.
15372 (yyparse): Rename c_common_parse_file. Call yyparse.
15373 * c-parse.in (yyparse): Remove macro.
15374 * c-tree.h (yyparse_1): Remove.
15375 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15376 (LANG_HOOKS_INITIALIZER): Update.
15377 * langhooks.h (struct lang_hoooks): New hook parse_file.
15378 * toplev.c (compile_file): Use parse_file hook.
15379 * tree.h (yyparse): Remove.
15380 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
15382 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15384 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15385 float_truncate, not fix.
15386 ("*truncdfsf2_real"): Ditto.
15387 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15389 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15391 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
15393 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15394 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
15395 where appropriate. Make the second reference to
15396 leaf_function_p a function call, as intended. Reindented.
15398 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15399 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15401 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15402 add register to non-constant into sp.
15404 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15405 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15406 (mips16_gp_pseudo_rtx): Lose.
15407 (INIT_EXPANDERS): Deleted.
15408 * config/mips/mips.c (mips_init_machine_status): New.
15409 (mips_free_machine_status): New.
15410 (mips_mark_machine_status): New.
15411 (override_options): Set them.
15412 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15413 (struct machine_function): ... new. Replaced all references.
15414 (mips_add_gc_roots): Don't mark them.
15415 (embedded_pic_fnaddr_reg): New, extracted from...
15416 (embedded_pic_offset): ... here.
15417 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15420 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15422 * cppinit.c: Revert -MD removal.
15424 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15426 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15427 soft registers by default for 68HC12.
15428 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15429 when compiling with -fomit-frame-pointer.
15430 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15431 (expand_epilogue): Likewise.
15432 (m68hc11_gen_rotate): Use exg when rotating by 8.
15434 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15436 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15437 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15438 (splits): Remove unused add splits.
15439 ("*addhi3_68hc12"): Tune constraints.
15440 ("addhi_sp"): Try to use X instead of Y in all cases and if the
15441 constant fits in 8-bits and D is dead use abx/aby instructions.
15442 ("*addhi3"): Remove extern declaration of ix_reg.
15443 ("*subsi3"): Optimize and provide new split.
15444 ("subhi3"): Cleanup.
15445 ("*subhi3_sp"): Avoid saving X if we know it is dead.
15446 (arith splits): For 68hc12 save the address register on the stack
15447 and do the arithmetic operation with a pop.
15449 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15451 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15452 allocating QImode in address registers.
15453 ("*movqi_m68hc11"): Likewise.
15455 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
15457 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15459 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15461 * cppinit.c (print_help): Display -MD and -MMD.
15462 Don't display usage string. Update assertion syntax and
15464 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15465 (cpp_handle_option): Update.
15467 2002-03-15 Chris Demetriou <cgd@broadcom.com>
15469 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15470 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15471 and define it so that regardless of target CPU size,
15472 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15473 of "int" rather than "long."
15475 2002-03-15 Richard Henderson <rth@redhat.com>
15477 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15480 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15482 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15483 ("tstqi" split): Avoid using memory for tstqi on address register.
15484 (splits): Remove constraints.
15485 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15486 ("cmpdf", "cmpsf"): Remove since not used.
15487 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15488 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15490 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15492 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15493 ("neghi2"): Tighten constraints.
15494 ("one_cmplsi2"): Optimize and simplify split.
15495 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15497 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15499 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15500 and split of AND operation to clear the upper bits.
15501 ("*logicalsi3_zextqi"): Likewise.
15502 ("*logicallhi3_zexthi_ashift8"): Likewise.
15503 ("*logicalsi3_silshr16"): Likewise.
15504 ("logicalsi3_silshl16"): Likewise.
15505 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15507 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15509 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15510 (m68hc11_indirect_p): New function.
15511 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15512 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15514 (asm_print_register): Likewise.
15515 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15516 (m68hc11_indirect_p): Declare.
15517 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15518 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15519 (TARGET_SWITCHES): New option -mrelax.
15520 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15522 ("iorsi3", "xorsi3"): Likewise.
15523 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15524 ("*andhi3_mem"): New to handle destination in memory with bclr
15525 and a scratch register.
15526 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15527 ("*andhi3_const"): New when operand2 is constant.
15528 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15529 ("*andhi3_gen"): Cleanup of the old "andhi3".
15530 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15531 ("xorqi3"): Update constraints.
15533 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15535 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15536 for reg_equiv_memory_loc when the operand is a register that does
15537 not get a hard register (stack location).
15538 (tst_operand): After reload, accept all memory operand.
15539 (symbolic_memory_operand): Fix detection of symbolic references.
15540 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15541 accept symbols and any constant.
15543 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15545 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15546 note on the insn that sets the soft frame register.
15547 (must_parenthesize): ix and iy are also reserved names.
15548 (print_operand_address): One more place where parenthesis are required
15549 to avoid confusion with register names.
15550 (m68hc11_gen_movhi): Allow push of stack pointer.
15551 (m68hc11_check_z_replacement): Fix handling of parallel with a
15553 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15554 the replacement register is.
15555 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15556 and D8_REGS classes.
15557 (MODES_TIEABLE_P): All modes are tieable except QImode.
15559 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15561 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15562 (___subdi3): Likewise.
15563 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15564 (__map_data_section): Optimize 68hc11 case.
15566 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15568 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15569 than a shift to avoid adding a register with itself.
15570 (m68hc11_memory_move_cost): Take into account NO_REGS.
15571 (m68hc11_register_move_cost): Update and use memory move cost
15572 for soft registers.
15573 (m68hc11_address_cost): Make cost of valid offset not 0 so that
15574 it gives more opportunities to cse to optimize.
15575 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15576 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15578 2002-03-15 Mark Mitchell <mark@codesourcery.com>
15580 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15581 * c-common.def (CLEANUP_STMT): New tree node.
15582 * c-common.h (CLEANUP_DECL): New macro.
15583 (CLEANUP_EXPR): Likewise.
15584 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15585 * expr.c (expand_expr): Tidy.
15586 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15587 * tree-inline.c (initialize_inlined_parameters): Clean up
15588 new local variables.
15590 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15593 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15594 before movrXX only, use reg_overlap_mentioned_p.
15595 Only special case NE if just one insn can be generated.
15597 2002-03-15 Jason Merrill <jason@redhat.com>
15599 * varasm.c (assemble_variable): Call resolve_unique_section before
15600 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
15601 of error_mark_node.
15603 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15606 * arm.md (split pattern for thumb shiftable immediates): Add comment
15607 explaining non-obvious test.
15609 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15612 * arm.md (movaddr, movaddr_insn): Delete.
15614 2002-03-15 Jason Merrill <jason@redhat.com>
15616 * toplev.c (wrapup_global_declarations): Clarify variable handling.
15617 -fkeep-static-consts doesn't apply to comdats.
15619 2002-03-14 Richard Henderson <rth@redhat.com>
15621 * c-decl.c: Include c-pragma.h.
15622 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15623 (finish_function): Tidy.
15624 * c-pragma.c: Include c-common.h.
15625 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15626 (handle_pragma_weak): Use them.
15627 (init_pragma): Register pending_weaks.
15628 * c-pragma.h (maybe_apply_pragma_weak): Declare.
15629 * print-tree.c (print_node): Print DECL_WEAK.
15630 * varasm.c (mark_weak_decls): Remove.
15631 (remove_from_pending_weak_list): Remove.
15632 (add_weak): Remove.
15633 (asm_emit_uninitialised): Call globalize_decl for weak commons.
15634 (weak_decls): Make a tree_list.
15635 (declare_weak): Cons weak_decls directly.
15636 (globalize_decl): Remove weak_decls elements directly.
15637 (weak_finish): Simplify weak_decls walk. Don't weaken unused
15638 symbols. Don't pretend to handle aliases.
15639 (init_varasm_once): Update weak_decls registry.
15640 * Makefile.in: Update dependencies.
15642 2002-03-14 Richard Henderson <rth@redhat.com>
15645 * config/ia64/ia64.c: Include tm_p.h last.
15646 (gen_nop_type): Remove duplicate definition.
15647 (cycle_end_fill_slots): Set sched_data for second L slot.
15648 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
15649 (nop_cycles_until): Fix typos.
15651 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15653 PR optimization/5891
15654 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
15656 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
15658 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
15659 descriptors correctly.
15661 2002-03-14 Michael Meissner <meissner@redhat.com>
15663 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
15664 100, allowing MAX_UNROLLED_INSNS to be overridden.
15666 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
15669 * unroll.c (params.h): Include.
15670 (MAX_UNROLLED_INSNS): Delete, now in params.h.
15672 * doc/invoke.texi (--param max-unroll-insns): Document.
15674 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
15676 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
15678 * arm.md: Fix warnings about constraints in peepholes and splits.
15680 2002-03-14 Zack Weinberg <zack@codesourcery.com>
15682 * cpphash.h (struct lexer_state): Remove line_extension member.
15683 * cpplib.c (dequote_string, do_linemarker): New functions.
15684 (linemarker_dir): New data object.
15685 (DIRECTIVE_TABLE): No longer need to interpret #line in
15686 preprocessed source. Delete obsolete comment about return
15687 values of handlers.
15688 (end_directive, directive_diagnostics, _cpp_handle_directive):
15689 Don't muck with line_extension.
15690 (directive_diagnostics): No need to issue warnings for
15692 (_cpp_handle_directive): Issue warnings for linemarkers here,
15693 when appropriate. Dispatch linemarkers to do_linemarker, not
15695 (do_line): Code to handle linemarkers split out to do_linemarker.
15696 Convert escape sequences in filename argument, both places.
15698 * cppmacro.c (quote_string): Rename cpp_quote_string and
15699 export. All callers changed.
15700 * cpplib.h (cpp_quote_string): Prototype.
15701 * cppmain.c (print_line): Call cpp_quote_string on to_file
15702 before printing it.
15704 * doc/cpp.texi: Document that escapes are now interpreted in
15705 #line and in linemarkers, and that non-printing characters are
15706 converted to octal escapes when linemarkers are generated.
15708 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
15710 * emit-rtl.c (try_split): Use delete_insns.
15711 * recog.c (split_all_insns): Fix terminating condition.
15713 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
15714 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
15717 * arm.c (arm_output_epilogue): Fix floating-point register save
15718 adjustment when using a frame pointer.
15720 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
15722 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
15723 * config/mips/mips.c (compute_frame_size): Retrofit them here.
15724 (save_restore_insns, mips_expand_epilogue): And here.
15725 (build_mips16_call_stub): And here.
15726 (mips_function_value): Use the new macros to decide whether a single
15727 or complex float can be returned in floating-point registers. Return
15728 a parallel rtx in the complex case.
15730 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
15732 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
15733 call after liveness analysis.
15735 * recog.c (split_insn): Use delete_insn_and_edges.
15737 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
15738 instructions to have branch prediction notes.
15739 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
15741 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
15743 * configure.in: Don't pass -Wno-long-long to a ADA compiler
15744 that doesn't support it.
15745 * configure: Regenerate.
15747 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15750 * config/sparc/sparc.md (normal_branch, inverted_branch,
15751 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
15752 inverted_fp_branch): Adjust calls to output_cbranch.
15753 Set length attribute.
15754 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
15755 output_v9branch. Set length attribute.
15756 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
15758 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
15759 (output_cbranch): Likewise. Handle far branches.
15760 (output_v9branch): Handle far branches.
15761 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
15763 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
15764 noov_compare64_op predicates.
15766 2002-03-13 Jason Merrill <jason@redhat.com>
15768 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
15769 into the function and constify it.
15770 * gthr-dce.h, gthr-solaris.h: Likewise.
15772 2002-03-13 David Edelsohn <edelsohn@gnu.org>
15774 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
15775 * config/rs6000/rs6000.c (rs6000_va_arg): Use
15776 std_expand_builtin_va_arg if not ABI_V4.
15778 2002-03-13 Jason Merrill <jason@redhat.com>
15780 * varasm.c (globalize_decl): New fn.
15781 (assemble_start_function): Use it.
15782 (asm_emit_uninitialized): Use it.
15783 (assemble_alias): Use it.
15784 (assemble_variable): Use it.
15786 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
15788 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
15789 2002-03-12 internal visibility change.
15790 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
15791 visibility into SYMBOL_REF_FLAG.
15793 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
15795 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
15796 VOIDmode operand. Add compile-time optimization for constant results.
15798 2002-03-12 Jason Merrill <jason@redhat.com>
15800 * c-typeck.c (convert_for_assignment): Don't allow conversions
15801 between pointers and references. Only allow lvalues to convert to
15804 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
15806 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
15807 before prologue, to avoid scheduling problems.
15809 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15811 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
15812 (ELIMINABLE_REGS): Add sfp->sp.
15813 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
15815 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15817 PR optimization/5892
15818 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
15820 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15822 * loop.c (basic_induction_var): Don't call convert_modes if mode
15823 classes are different.
15825 2002-03-12 Richard Henderson <rth@redhat.com>
15827 PR optimization/5901
15828 * function.c (reposition_prologue_and_epilogue_notes): Position
15829 the markers after/before the last/first insn not deleted.
15831 2002-03-12 Richard Henderson <rth@redhat.com>
15833 PR optimization/5878
15834 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
15835 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
15836 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
15838 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
15839 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
15840 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
15842 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
15843 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
15844 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
15845 also. Don't set it if not flag_pic.
15846 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
15847 to be INVALID_REGNUM when not used.
15849 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
15851 * expmed.c (store_bit_field): Reset alias set for memory.
15852 (extract_bit_field): Same.
15854 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15856 * c-common.c (c_tree_code_type, c_tree_code_length,
15857 c_tree_code_name, add_c_tree_codes): Delete.
15858 * c-common.h (add_c_tree_codes): Delete.
15859 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
15861 * c-objc-common.c (c_objc_common_init): Don't call
15862 add_c_tree_codes, instead set lang_unsafe_for_reeval.
15863 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
15864 objc_tree_code_name, add_objc_tree_codes): Delete.
15865 (objc_init): Don't call add_objc_tree_codes.
15866 * objc/objc-lang.c (tree_code_type, tree_code_length,
15867 tree_code_name): Define.
15868 * toplev.c (lang_independent_init): Don't set
15869 tree_code_length[IDENTIFIER_NODE].
15870 * tree.c (tree_code_type, tree_code_length, tree_code_name):
15871 Delete definitions, moved to language front-ends.
15872 * tree.def (IDENTIFIER_NODE): Hardwire the length.
15873 * tree.h (tree_code_type, tree_code_length, tree_code_name):
15875 (tree_code_length): Change type to unsigned char.
15877 2002-03-12 Richard Henderson <rth@redhat.com>
15879 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
15880 internal visibility change.
15882 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15884 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
15885 validize_mem() instead of change_address to avoid clobbering
15888 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
15890 * c-lex.h (position_after_whitespace): Remove.
15892 2002-03-12 Jakub Jelinek <jakub@redhat.com>
15894 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
15895 (lex_string): Use unsigned char pointers.
15897 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
15899 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
15900 is not a valid memory_operand.
15902 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15904 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
15905 * config/xtensa/lib1funcs.asm: Fix copyright to include
15906 special case for libgcc files.
15907 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
15908 (__divsi3): Likewise.
15909 (__umodsi3): Likewise.
15910 (__modsi3): Likewise.
15911 * config/xtensa/lib2funcs.S: Fix copyright to include
15912 special case for libgcc files.
15914 2002-03-12 Tom Rix <trix@redhat.com>
15916 * collect2.c (resolve_lib_name): Move outside of
15917 OBJECT_FORMAT_COFF ifdef.
15918 (ignore_library): Same.
15920 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15922 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
15924 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15926 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
15927 to function_section before writing out the constant pool.
15929 2002-03-12 David Edelsohn <edelsohn@gnu.org>
15931 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
15933 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
15935 2002-03-12 Alan Modra <amodra@bigpond.net.au>
15937 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
15938 (adddi3): Likewise.
15941 (cmpsi splitter): Likewise.
15942 (modsi3): Fail if <= 0.
15943 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
15944 redundant test when HOST_BITS_PER_WIDE_INT != 32.
15945 (reg_or_sub_cint64_operand): Likewise.
15946 (num_insns_constant_wide): Optimize sign extension.
15947 (rs6000_legitimize_address): Likewise.
15949 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
15951 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15952 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15954 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
15956 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
15957 address calculation.
15959 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
15961 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
15962 scratch register to DImode / TImode.
15963 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
15964 register used does not overlap the target.
15966 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15968 * Makefile.in (debug.o): Depend on debug.h.
15969 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
15970 * debug.c (do_nothing_debug_hooks): Likewise.
15971 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
15972 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
15973 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
15974 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
15975 * dwarfout.c (dwarf_debug_hooks): Likewise.
15976 * integrate.c (output_inline_function): Likewise.
15977 * objc/objc-act.c (synth_module_prologue): Likewise.
15978 * sdbout.c (sdb_debug_hooks): Likewise.
15979 * toplev.c (debug_hooks): Likewise.
15980 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15982 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15984 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
15985 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
15986 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
15987 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
15988 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
15989 * defaults.h (POINTER_SIZE): Define.
15990 * doc/tm.texi (POINTER_SIZE): Document default.
15992 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15994 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
15996 2002-03-11 Richard Henderson <rth@redhat.com>
15998 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
15999 if rebuild_label_notes_after_reload.
16001 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
16003 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
16004 emit pic register load if "internal" visibility.
16005 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
16006 (cris_expand_builtin_va_arg): Do all computations on trees.
16008 2002-03-11 Richard Henderson <rth@redhat.com>
16010 * rtlanal.c: Include recog.h.
16011 (keep_with_call_p): Fix thinko.
16012 * Makefile.in (rtlanal.o): Update dependencies.
16014 2002-03-11 Chris Meyer <cmeyer@gatan.com>
16016 * genflags.c (gen_insn): Use IS_VSPACE.
16017 * genoutput.c (output_insn_data): Likewise.
16018 (process_template): Likewise.
16020 2002-03-11 Richard Henderson <rth@redhat.com>
16022 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
16024 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
16026 * Makefile.in: Update.
16027 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
16028 Update documentation.
16029 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
16030 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
16032 2002-03-11 Zack Weinberg <zack@codesourcery.com>
16034 * Makefile.in: Give texi2pod its input file as a command line
16035 argument, not on stdin.
16037 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
16038 Daniel Berlin <dan@dberlin.org>
16040 C++ alias analysis improvement.
16041 * alias.c (record_component_aliases): Record aliases for base
16044 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
16046 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
16048 2002-03-11 Douglas B Rupp <rupp@gnat.com>
16050 * toplev.c (vms_fopen): Remove, not needed.
16052 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
16054 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
16056 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
16057 for FP, already done later.
16059 * toplev.c (debug_args): Add entry for VMS_DEBUG.
16060 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
16062 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
16064 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
16065 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
16066 LARGEST_EXPONENT_IS_NORMAL for the given mode.
16067 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
16068 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
16069 (ediv, emul, eldexp, esqrt): Likewise.
16070 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
16071 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
16072 (saturate): New function.
16073 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
16074 (make_nan): Use a saturation value instead of a NaN if
16075 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
16076 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
16077 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
16078 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
16079 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
16080 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
16081 !ROUND_TOWARDS_ZERO.
16082 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
16083 (ROUND_TOWARDS_ZERO): Document.
16085 2002-03-11 Andreas Jaeger <aj@suse.de>
16087 * cfg.c (dump_flow_info): Remove unused variable.
16089 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
16091 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
16092 computations on trees.
16094 2002-03-10 Richard Henderson <rth@redhat.com>
16097 * reload.c (copy_replacements_1): New.
16098 (copy_replacements): Use it to recurse through the rtx.
16100 2002-03-10 Richard Henderson <rth@redhat.com>
16102 * loop.c (strength_reduce): Compute number of iterations as
16103 unsigned HOST_WIDE_INT.
16105 2002-03-10 Richard Henderson <rth@redhat.com>
16107 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
16108 to move away from the end of the block.
16110 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
16112 PR preprocessor/5899
16113 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
16115 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16117 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
16119 * attribs.c (decl_attributes): Fix signed/unsigned warning.
16121 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
16123 * config/mmix/mmix.c: Improve comments.
16124 (mmix_target_asm_function_prologue): Drop variable
16125 empty_stack_frame. Don't allocate unused slot above fp.
16126 (mmix_target_asm_function_epilogue): Mirror prologue changes.
16127 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
16128 brace in first column.
16129 (enum reg_class): Ditto.
16130 (FIRST_PARM_OFFSET): Now 0.
16131 (USER_LABEL_PREFIX): Remove #if 0:d definition.
16133 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16135 * combine.c (make_extraction): Fix error in last change.
16137 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16139 * c4x.c (c4x_fp_reglist): Const-ify.
16140 * cris.c (cris_print_operand): Likewise.
16141 * i386.c (ix86_va_arg): Likewise.
16142 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
16143 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
16144 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
16145 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
16146 * mcore.h (regno_reg_class): Likewise.
16147 * mips.c (gen_int_relational): Likewise.
16148 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
16149 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
16150 * pdp11.c (move_costs): Likewise.
16151 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
16152 * s390.c (s390_branch_condition_mnemonic, regclass_map):
16154 * s390.h (regclass_map): Likewise.
16155 * sh.c (shift_amounts): Likewise.
16156 * sh.md (rotlsi3): Likewise.
16158 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16160 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
16161 (ne0+5): Use new clobber to generate proper shift pattern.
16162 Patch by Michael Matz <matz@kde.org>.
16164 2002-03-09 Andreas Schwab <schwab@suse.de>
16166 * gcc.c (validate_all_switches): Also handle `%W{...}'.
16168 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16170 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
16172 2002-03-09 Jakub Jelinek <jakub@redhat.com>
16175 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
16176 even for non-representable constants.
16178 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16180 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
16181 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
16182 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
16183 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
16184 (pop_function_context): Compute MAY_SHARE parameter for
16186 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
16187 (gen_mem_addressof): Call fixup_var_refs with new parm.
16189 * combine.c (make_extraction): Don't make extension of CONST_INT.
16191 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16193 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
16194 in o32 and o64 ABIs.
16195 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
16196 but getting fixed-size structs passed in registers regardless of
16197 padding in o32 and o64 ABIs.
16199 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
16200 offset before loading address of argument passed by transparent
16203 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
16205 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
16207 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16209 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
16210 marker such that registers after it are saved.
16212 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16214 * sparc.c (arith_4096_operand): Fix error in last change.
16216 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16218 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16219 defaults for MEABI.
16221 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16223 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16226 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16228 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
16230 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
16232 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16233 removed; fix return value.
16234 * combine.c (combine_instructions): Dirtify blocks where we failed to
16235 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16236 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16238 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16240 * gcse.c (insert_insn_end_bb): Fix typo in last change.
16242 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
16244 * recog.c (peephole2_optimize): Re-distribute EH edges.
16246 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
16248 * expr.c (expand_expr): Use unsave lang hook.
16249 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16250 (LANG_HOOKS_INITIALIZER): Update.
16251 * langhooks.h (struct lang_hooks): New hook unsave.
16252 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16253 (unsave_expr_1): Remove unused lang_unsave_expr_now.
16254 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
16255 (unsave_expr_now): Remove.
16256 * tree.h (unsave_expr_now, lang_unsave,
16257 lang_unsave_expr_now): Remove.
16260 2002-03-08 Andreas Jaeger <aj@suse.de>
16262 * flow.c (propagate_block_delete_insn): Remove unused variable.
16264 2002-03-08 Kazu Hirata <kazu@hxi.com>
16266 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16267 insn length for memory load/store.
16269 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
16271 * doc/install.texi (--with-libiconv-prefix): Document.
16273 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
16275 * doc/sourcebuild.texi: Fix typo.
16277 2002-03-08 Jakub Jelinek <jakub@redhat.com>
16280 * builtins.c (std_expand_builtin_va_arg): Do all computations on
16283 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16285 * rtl.c (copy_most_rtx): Move from here ...
16286 * emit-rtl.c (copy_most_rtx): ... to here.
16288 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16290 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16291 SUBTARGET_CPP_SIZE_SPEC.
16292 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16294 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16296 2002-03-07 Matt Hiller <hiller@redhat.com>
16298 * gensupport.c (first_dir_md_include): Renamed from include;
16299 change all references.
16300 (last_dir_md_include): Renamed from last_include; change all
16302 (init_md_reader): Unconditionally initialize base_dir whether or
16303 not filename is a relative path.
16305 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
16307 * config/fp-bit.c (_unord_f2): Compile it in even if
16308 US_SOFTWARE_GOFAST is enabled.
16310 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16311 NULL_RTX. Set all HFmode operations as NULL_RTX.
16312 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16313 NULL_RTX, try reversing the comparison and the operands.
16315 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16317 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16318 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16321 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
16323 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16325 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16327 * basic-block.h (fixup_abnormal_edges): Declare.
16328 * reload1.c (fixup_abnormal_edges): New function.
16329 * reg-stack.c (convert_regs): Use it.
16331 * gcse.c (insert_insn_end_bb): Handle trapping insns.
16333 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16335 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
16337 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16338 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16339 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16340 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16341 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16342 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16343 unless x and y could be infinite.
16344 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16345 Check that the common type of both arguments is a real, even for
16346 targets without unordered comparisons. Allow an integer argument
16347 to be compared against a real.
16348 (expand_tree_builtin): Use expand_unordered_cmp.
16349 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16350 * cse.c (fold_rtx): Likewise. Fix indentation.
16351 * fold-const.c (fold_real_zero_addition_p): New.
16352 (fold): Use it, and the new HONOR_... macros.
16353 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16354 * jump.c (reversed_comparison_code_parts): After searching for
16355 the true comparison mode, use HONOR_NANS to decide whether it
16356 can be safely reversed.
16357 (reverse_condition_maybe_unordered): Remove IEEE check.
16358 * simplify-rtx.c (simplify_binary_operation): Use the new macros
16359 to decide which simplifications are valid. Allow the following
16360 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16361 and (a - -b) to (a + b).
16362 (simplify_relational_operation): Use HONOR_NANS.
16363 * doc/tm.texi: Document the MODE_HAS_... macros.
16365 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
16367 * combine.c (simplify_comparison): If simplifying a logical shift
16368 right and compare with constant, force the comparison to unsigned.
16370 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
16372 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
16374 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16376 (alt_reg_names): Remove % for vrsave.
16378 2002-03-06 Richard Henderson <rth@redhat.com>
16380 PR optimization/5844
16381 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
16382 if used indicates we've already emitted one copy of an operand.
16383 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16384 (gen_split): Supply a non-null used.
16386 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16388 * reload1.c (reload): Unshare all rtl after reload is done.
16390 * simplify-rtx.c (simplify_plus_minus): Do not abort,
16391 but simply fail if the expression is too complex to simplify.
16392 (simplify_gen_binary): Handle simplify_plus_minus failures.
16394 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
16396 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16397 consistently call delete_trivially_dead_insns after CSE and GCSE;
16398 fix DFI_life dumping; do jump threading after liveness; do crossjumping
16399 after liveness2; update comment in last crossjumping.
16400 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16402 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
16404 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16405 after completing fast dead code elimination.
16407 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16410 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
16412 * version.c: Fix misplaced leading blanks on first line.
16414 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
16416 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16418 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
16420 * cfgcleanup.c (mentions_nonequal_regs): New function.
16421 (thread_jump): Use it.
16422 * toplev.c (rest_of_compilation): Run jump threading after
16425 2002-03-06 Jakub Jelinek <jakub@redhat.com>
16427 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16430 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
16432 * predict.c (estimate_bb_frequencies): Do not reload the
16433 frequencies from notes.
16435 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
16437 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16438 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16440 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16441 delete_noop_moves): Return indeger.
16442 * flow.c (ndead): New variable.
16443 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16444 BB argument; update callers.
16445 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16446 (life_analysis): Do not call purge_all_dead_edges.
16447 (update_life_info): Return number of deleted insns; print statistics.
16448 (update_life_info_in_dirty_blocks): likewise.
16449 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16450 return number of insns deleted.
16452 * cse.c: Include timevar.h
16453 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16454 iterate until stabilizes; print statistics; return number of killed
16456 * Makefile.in: (cse.o): Add timevar.h dependency
16457 * rtl.h (delete_trivially_dead_insns): New.
16458 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16459 * toplev.c (rest_of_compilation): Update callers.
16461 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16462 (try_optimize_cfg): Do not update liveness.
16463 (cleanup-cfg): Loop until try_optimize_cfg and dead code
16464 removal stabilizes; use delete_trivially_dead_insns.
16466 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16468 2002-03-05 Zack Weinberg <zack@codesourcery.com>
16470 * cppmain.c (setup_callbacks): Disable #pragma and #ident
16471 callbacks when processing assembly language.
16473 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16475 * pa.h (ASM_FILE_END): Define.
16476 * som.h (ASM_FILE_END): Delete.
16478 * pa.c (function_arg): Don't pass floats in general registers in
16479 indirect calls if TARGET_ELF32.
16481 2002-03-05 Richard Henderson <rth@redhat.com>
16483 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16485 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
16487 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16489 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16491 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16492 -r command line. Don't hide any symbols if not building
16495 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
16497 * cfg.c (dump_flow_info): Warn about profile mismatches.
16498 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16499 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16501 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16503 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16504 wide volatile memory by parts.
16506 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16508 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16511 2002-03-05 Richard Henderson <rth@redhat.com>
16513 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
16515 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16517 * toplev.c (documented_lang_options): Document more
16518 language-specific options.
16519 * doc/invoke.texi (Warning Options): Correct documentation for
16520 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16521 * c-decl.c (c_decode_option): Use a table to handle warning options.
16523 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
16525 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16526 parameter to mmix_encode_section_info.
16527 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16528 relocatably. Always produce ELF, not mmo if linking relocatably.
16529 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16530 first is non-zero, don't add symbol prefix.
16531 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16532 prototype accordingly.
16534 2002-03-04 Krister Walfridsson <cato@df.lth.se>
16536 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16538 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
16540 * configure.in: Increase required makeinfo version to 4.1.
16541 * configure: Regenerate.
16543 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16545 * .cvsignore: Remove *.info* and genrtl*; these files are generated
16548 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
16550 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16551 * doc/invoke.texi: Fix @math uses.
16553 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16555 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16558 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
16560 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16561 (powerpc-*-eabisimaltivec*): Same.
16563 * config/rs6000/t-ppcendian: New.
16565 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16567 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16568 nonimmediate_src_operand and nonimmediate_lsrc_operand to
16569 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16571 2002-03-03 Richard Henderson <rth@redhat.com>
16573 * toplev.c (rest_of_decl_compilation): Revert last two changes.
16575 2002-03-03 Zack Weinberg <zack@codesourcery.com>
16577 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16578 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16579 tree.c, config/m68k/m68k.c:
16580 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16581 REAL_ARITHMETIC blocks unconditional. Delete some further
16582 #ifdef blocks predicated on REAL_ARITHMETIC.
16583 * flags.h, toplev.c: Delete remaining references to
16584 flag_pretend_float.
16586 * doc/invoke.texi: Remove documentation of -fpretend-float.
16587 * doc/tm.texi: Describe the various REAL_* macros as provided by
16588 real.h, not by the target configuration files.
16590 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16591 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16592 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16593 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16594 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16595 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16596 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16597 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16598 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16599 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16600 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16601 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16602 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16603 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16604 config/xtensa/xtensa.h:
16605 Do not define, undefine, or mention in comments any of
16606 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16607 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16608 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16609 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16610 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16611 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16612 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16613 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16614 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16616 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16618 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16619 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16620 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16621 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16622 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16623 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16625 * defaults.h (BITS_PER_WORD): Define.
16626 * doc/tm.texi (BITS_PER_WORD): Document default value.
16628 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16629 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16630 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
16632 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16634 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
16635 lieu of explicit sizeof/sizeof.
16636 * i386.c (override_options, ix86_init_mmx_sse_builtins,
16637 ix86_expand_builtin): Likewise.
16638 * mips.c (mips_add_gc_roots): Likewise.
16639 * mmix.c (mmix_output_condition): Likewise.
16640 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
16641 altivec_init_builtins): Likewise.
16642 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
16643 * cppexp.c (Nsuff, parse_number): Likewise.
16644 * cppinit.c (builtin_array_end): Likewise.
16645 * gcc.c (n_default_compilers, process_command): Likewise.
16646 * genpreds.c (output_predicate_decls): Likewise.
16647 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
16648 * lcm.c (N_ENTITIES): Likewise.
16649 * stor-layout.c (set_sizetype): Likewise.
16651 2002-03-03 Richard Henderson <rth@redhat.com>
16653 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
16654 for types or labels.
16656 2002-03-03 Richard Henderson <rth@redhat.com>
16658 * c-decl.c (start_decl): Initialized variables are not common.
16660 2002-03-02 Per Bothner <per@bothner.com>
16662 * gcc.c (option_map): Suport new --bootclasspath option.
16663 --CLASSPATH is now just an alias for --classpath.
16665 2002-03-02 Richard Henderson <rth@redhat.com>
16667 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
16668 load if "internal" visibility.
16669 * doc/extend.texi: Document visibility meanings.
16671 2002-03-02 Richard Henderson <rth@redhat.com>
16673 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
16674 to functions as well.
16676 2002-03-02 Richard Henderson <rth@redhat.com>
16678 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
16679 (handle_visibility_attribute): Don't call assemble_visibility.
16680 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
16681 without asmspec. Invoke assemble_alias when needed.
16682 * varasm.c (maybe_assemble_visibility): New.
16683 (assemble_start_function, assemble_variable, assemble_alias): Use it.
16685 2002-03-02 Richard Henderson <rth@redhat.com>
16687 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
16688 invoke ENCODE_SECTION_INFO with first call flag.
16690 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
16691 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
16692 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
16693 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
16694 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
16695 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
16696 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
16697 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
16698 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
16699 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
16700 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
16701 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
16702 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
16703 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
16704 config/mcore/mcore-protos.h, config/mcore/mcore.c,
16705 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
16706 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
16707 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
16708 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
16709 config/sh/sh.h, config/sparc/sparc.h,
16710 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
16711 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
16712 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
16713 FIRST argument. As needed, examine it and do nothing.
16715 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
16716 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16717 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
16719 * config/arm/t-pe (pe.o): Add dependencies.
16721 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16723 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
16724 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
16725 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
16726 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
16727 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
16728 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
16729 * defaults.h (BITS_PER_UNIT): Define.
16730 * doc/tm.texi (BITS_PER_UNIT): Document default value.
16732 2002-03-02 Kazu Hirata <kazu@hxi.com>
16734 * config/h8300/h8300-protos.h: Add a prototype for
16735 compute_a_shift_length.
16736 * config/h8300/h8300.c (h8300_asm_insn_count): New.
16737 (compute_a_shift_length): Likewise.
16738 (h8300_adjust_insn_length): Do not adjust insn length of shift
16740 * config/h8300/h8300.md (anonymous shift patterns): Use
16741 compute_a_shift_length.
16743 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16745 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
16746 trunc_int_for_mode.
16748 * emit-rtl.c (offset_address): Call update_temp_slot_address.
16750 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16752 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
16753 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
16754 * flags.h (flag_zero_initialized_in_bss): Declare.
16755 * toplev.c (flag_zero_initialized_in_bss): New flag.
16756 (lang_independent_options): Add flag_zero_initialized_in_bss.
16757 * tree.c (initializer_zerop): New function.
16758 * tree.h (initializer_zerop): Declare.
16759 * varasm.c (assemble_variable): If we can emit bss, put zero
16760 initializers in the bss section.
16762 2002-03-02 Alan Modra <amodra@bigpond.net.au>
16764 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
16765 like more than one symbol per .weak directive.
16767 2002-03-01 Richard Henderson <rth@redhat.com>
16769 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
16770 adjust argument_pointer by pretend_args_size.
16771 (ia64_va_start): Adjust va_start address by -pretend_args_size.
16773 2002-03-01 Kazu Hirata <kazu@hxi.com>
16775 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
16777 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
16779 * toplev.c (rest_of_compilation): Delete dead jumptables before
16781 * flow.c (delete_dead_jumptables): Make global.
16782 * rtl.h (delete_dead_jumptables): Declare.
16784 2002-03-01 David Edelsohn <edelsohn@gnu.org>
16786 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
16787 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
16788 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
16790 2002-03-01 Kazu Hirata <kazu@hxi.com>
16792 * config/h8300/h8300-protos.h: Fix formatting.
16793 * config/h8300/h8300.c: Likewise.
16794 * config/h8300/h8300.h: Likewise.
16796 2002-03-01 Kazu Hirata <kazu@hxi.com>
16798 * config/h8300/h8300.c (print_operand): Support 16-bit
16799 constant addresses.
16800 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
16802 2002-02-28 Richard Henderson <rth@redhat.com>
16804 * expmed.c (store_bit_field): Prevent generation of CONCATs;
16805 pun complex values as integers; use gen_lowpart instead of
16807 (extract_bit_field): Likewise.
16809 2002-03-01 Alan Modra <amodra@bigpond.net.au>
16810 David Edelsohn <edelsohn@gnu.org>
16812 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
16813 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
16814 (SUPPORTS_WEAK): Likewise.
16815 * output.h (add_weak): Add tree param.
16816 * varasm.c (add_weak): Likewise. Save decl.
16817 (struct weak_syms): Add decl field.
16818 (mark_weak_decls): New function.
16819 (init_varasm_once): ggc_add_root mark_weak_decls.
16820 (assemble_start_function): Use ASM_WEAKEN_DECL.
16821 (assemble_variable): Likewise.
16822 (assemble_alias): Likewise.
16823 (declare_weak): Pass decl to add_weak.
16824 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
16825 (remove_from_pending_weak_list): Declare and define for
16827 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
16828 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
16829 * defaults.h (SUPPORTS_WEAK): Likewise.
16830 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16831 .weak for code sym. Do emit .size for descriptor sym.
16832 (ASM_DECLARE_FUNCTION_SIZE): Define.
16833 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
16834 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
16835 .lglobl unless TARGET_XCOFF. Formatting fixes.
16836 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16837 .weak for code sym.
16838 (HANDLE_PRAGMA_WEAK): Remove.
16839 (ASM_WEAKEN_LABEL): Remove.
16840 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
16842 2002-03-01 Jason Merrill <jason@redhat.com>
16844 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
16845 (TARGET_EXPR_CLEANUP): New macro.
16847 2002-02-28 Steve Ellcey <sje@cup.hp.com>
16849 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
16850 to take ptr_extend into account as third type of extension.
16851 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
16852 fields used by SUBREG_PROMOTED_UNSIGNED_P.
16853 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
16854 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
16855 * calls.c (precompute_arguments): Use new macro.
16856 (expand_call): Ditto.
16857 * combine.c (nonzero_bits): Ditto.
16858 (record_promoted_value): Ditto.
16859 * expr.c (store_expr): Ditto.
16860 (expand_expr): Ditto.
16861 * function.c (assign_parms): Ditto.
16863 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
16865 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
16866 override -shared and -shared-libgcc.
16868 2002-02-28 David O'Brien <obrien@FreeBSD.org>
16870 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
16872 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
16875 2002-02-28 Richard Henderson <rth@redhat.com>
16877 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
16878 4 cycle latency from MM producers.
16879 (ia64_internal_sched_reorder): Likewise with pipeline flush.
16881 2002-02-28 Jakub Jelinek <jakub@redhat.com>
16883 * mklibgcc.in: Don't use GNU make extension.
16885 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
16887 * c-parse.in (STATIC): New terminal.
16888 (scspec): New non-terminal. Update productions accordingly.
16889 (program): Remove bogus ifc / end ifc.
16890 (array_declarator): Simplify production using STATIC.
16892 2002-02-28 Jim Meyering <meyering@lucent.com>
16894 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
16895 \a still means TARGET_BELL.
16897 2002-02-28 Richard Henderson <rth@redhat.com>
16899 * haifa-sched.c (sched_emit_insn): New.
16900 (schedule_block): Use last_scheduled_insn to track last insn.
16901 * sched-int.h (sched_emit_insn): Prototype.
16902 * config/ia64/ia64.c (last_issued): Remove.
16903 (ia64_variable_issue): Don't set it.
16904 (nop_cycles_until): Use sched_emit_insn.
16906 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
16908 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
16909 extended constants.
16911 2002-02-28 Kazu Hirata <kazu@hxi.com>
16913 * config/h8300/h8300.c: Fix formatting.
16914 * config/h8300/h8300.h: Likewise.
16916 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
16918 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
16919 which may overwrite the high byte of the frame pointer.
16921 2002-02-28 Bo Thorsen <bo@suse.de>
16923 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
16924 (STARTFILE_SPEC): Add 64 bit files.
16925 (ENDFILE_SPEC): Likewise.
16927 2002-02-28 Jason Merrill <jason@redhat.com>
16929 * c-decl.c (finish_function): Only warn about missing return
16930 statement with -Wreturn-type.
16932 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
16934 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
16936 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
16937 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
16939 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
16941 * basic-block.h (BB_REACHABLE): Renumber.
16942 (BB_DIRTY, BB_NEW): New flags.
16943 (clear_bb_flags): Declare.
16944 (update_life_info_in_dirty_blocks): Declare.
16945 * cfg.c (clear_bb_flags): New function.
16946 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
16947 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
16948 reorder_insns, emit_insn_after): Mark block as dirty.
16949 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
16950 (update_life_info_in_dirty_blocks): New function.
16951 * recog.c (apply_change_group): Dirtify block.
16953 * cse.c (cse_insn): Reorder emitting of jump insn to keep
16955 * gcse.c (delete_null_pointer_checks): Likewise.
16957 * toplev.c (dump_file_index): Move cse2 after bp,
16959 (dump_file_info): Similary.
16960 (rest_of_compilation): Avoid most of CFG rebuilds;
16961 do first if converision after null pointer checks, do cse2
16962 after branch prediction; avoid full liveness rebuild after
16963 initializing subregs.
16964 * invoke.texi (-d options): Document -du, renumber.
16966 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
16967 (notice_new_block): Do not set BB_UPDATE_LIFE.
16968 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
16969 merge_blocks_move_successor_nojumps, merge_blocks,
16970 try_crossjump_to_edge): Likewise.
16971 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
16972 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
16973 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
16974 (merge_of_block): Do not use life_data_ok.
16975 (find_if_case_1): Do not use SET_UPDATE_LIFE.
16976 (if_convert): Use BB_DIRTY mechanizm to update life.
16977 * lcm.c (optimize_mode_switching): Update
16978 update_life_info_in_dirty_blocks
16980 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
16982 * Makefile.in (integrate.o): Update.
16983 * c-decl.c (copy_lang_decl): Rename.
16984 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16985 * integrate.c: Include langhooks.h.
16986 (copy_decl_for_inlining): Update to use langhook.
16987 * langhooks-def.h (lhd_do_nothing_t,
16988 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
16989 (LANG_HOOKS_INITIALIZER): Update.
16990 * langhooks.c (lhd_do_nothing_t): New.
16991 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
16992 * tree.h (copy_lang_decl): Remove.
16994 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16996 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
16998 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
16999 POST_DEC, and POST_MODIFY.
17001 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17003 * c-typeck.c (digest_init): Remove unused parameter; all
17006 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
17008 * expmed.c (expand_shift): Correctly test for low part of a
17011 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17013 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
17014 insn UIDs with insn addresses.
17016 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17018 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
17019 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
17020 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
17021 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
17022 gcc.c, toplev.c: Delete code implementing -traditional mode.
17024 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
17025 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
17026 Document removal of -traditional mode for compilation, and
17027 remove documentation only relevant to that mode.
17029 * config/nextstep.h, config/ptx4.h, config/svr4.h,
17030 config/convex/convex.h, config/d30v/d30v.h,
17031 config/i386/dgux.h, config/i386/osf1elf.h,
17032 config/i386/osfelf.h, config/i386/osfrose.h,
17033 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
17034 config/m68k/hp310.h, config/m88k/dgux.h,
17035 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
17036 config/m88k/m88k.h, config/m88k/openbsd.h,
17037 config/mips/abi64.h, config/mips/osfrose.h,
17038 config/mips/svr4-5.h, config/mips/svr4-t.h,
17039 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17040 config/stormy16/stormy16.h: Remove all references to
17041 -traditional from target specs. Delete all mention of the
17042 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
17043 delete a couple of commented-out definitions of
17044 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
17047 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
17048 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
17050 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17052 * mklibgcc.in: Don't use \n in a line subject to
17053 interpretation by echo.
17055 2002-02-27 Graham Stott <grahams@redhat.com>
17057 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
17060 * loop.c (prescan_loop): Handle PARALLEL.
17062 * unroll.c (loop_iterations): Return 0 if the add_val for
17065 * final.c (output_operand_lossage): Constify PFX_STR.
17067 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
17069 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
17071 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
17072 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
17074 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
17076 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17078 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
17080 * cpplex.c (_cpp_lex_token): Handle directives in macro
17082 * cpplib.c (_cpp_handle_directive): Save and restore state
17083 if parsing macro args when entering a directive.
17084 * cppmacro.c (collect_args): No need to handle directives
17085 in macro arguments.
17086 (enter_macro_context, replace_args): Use the original macro
17087 definition in case it was redefined whilst collecting arguments.
17089 * cpp.texi: Update.
17091 2002-02-26 David Edelsohn <edelsohn@gnu.org>
17093 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
17094 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
17095 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
17097 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
17098 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
17099 (load_toc_v4_PIC_2): Same.
17101 2002-02-26 Alan Modra <amodra@bigpond.net.au>
17103 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
17105 2002-02-26 Richard Henderson <rth@redhat.com>
17107 * config/alpha/alpha.md (ashldi_se): Re-enable.
17109 2002-02-26 Richard Henderson <rth@redhat.com>
17111 * config/alpha/alpha.c (alpha_encode_section_info): Examine
17112 MODULE_LOCAL_P; improve commentary.
17114 2002-02-26 Zack Weinberg <zack@codesourcery.com>
17116 * doc/cpp.texi: Clarify documentation of relationship between
17117 #line and #include.
17119 2002-02-26 Kazu Hirata <kazu@hxi.com>
17121 * config/h8300/h8300-protos.h: Update the prototype for
17122 compute_logical_op_length. Add the prototype for
17123 compute_logical_op_cc.
17124 * config/h8300/h8300.c (compute_logical_op_length): Figure out
17125 code from operands.
17126 (compute_logical_op_cc): New.
17127 * config/h8300/h8300.md: Combine all the logical op patterns
17128 in HImode and SImode. Use compute_logical_op_cc.
17130 2002-02-26 Kelley Cook <kelleycook@comcast.net>
17132 * config/i386/i386.c (print_operand): Don't append ATT-style
17133 length suffixs to x87 opcodes when in Intel mode.
17135 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
17137 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
17138 (init_emit_once): Update calls.
17139 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
17140 (init_syntax_once): Prototype.
17142 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
17144 * pa-linux.h (LIB_SPEC): Update definition.
17145 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17147 2002-02-26 Richard Henderson <rth@redhat.com>
17149 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
17150 if we emitted a stop bit.
17152 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17154 * configure.in (libgcc_visibility): Substitute.
17155 * configure: Rebuilt.
17156 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
17157 defined symbols .hidden.
17159 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17161 * attribs.c (c_common_attribute_table): Add visibility.
17162 (handle_visibility_attribute): New function.
17163 * varasm.c (assemble_visibility): New function.
17164 * output.h (assemble_visibility): Add prototype.
17165 * tree.h (MODULE_LOCAL_P): Define.
17166 * crtstuff.c (__dso_handle): Use visibility attribute.
17167 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
17168 for MODULE_LOCAL_P symbols too.
17169 * config/ia64/ia64.c (ia64_encode_section_info): Handle
17170 MODULE_LOCAL_P symbols the same way as local symbols.
17171 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
17172 into .sdata/.sbss by the user.
17173 * doc/extend.texi (Function Attributes): Document visibility
17176 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17179 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
17180 STRING_CST initializer spanning the whole variable without
17182 If expand_expr returned MEM, don't use it.
17184 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
17186 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
17187 generate a die for the lexical block.
17189 2002-02-26 Kazu Hirata <kazu@hxi.com>
17191 * config/h8300/h8300-protos.h: Add a prototype for
17192 compute_logical_op_length.
17193 * config/h8300/h8300.c (compute_logical_op_length): New.
17194 * config/h8300/h8300.md (anonymous logical patterns): Use
17195 compute_logical_op_length for length.
17197 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17199 * dwarf2out.c (modified_type_die): Do not call type_main_variant
17201 (gen_type_die): Same.
17203 * attribs.c (handle_vector_size_attribute): Set debug information.
17205 2002-02-26 Daniel Egger <degger@fhm.edu>
17207 * config/rs6000/rs6000.md: Swap define_insn attributes to
17208 fix incorrect generation of merge high instructions instead
17211 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17213 * c-typeck.c (really_start_incremental_init): Use
17214 bitsize_zero_node for vectors.
17216 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17218 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17219 ("*set_vrsave_internal"): Same.
17221 2002-02-25 Richard Henderson <rth@redhat.com>
17223 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17224 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
17226 2002-02-25 Jakub Jelinek <jakub@redhat.com>
17229 * config/i386/i386.c (ix86_return_pops_args): Only pop
17230 fake structure return argument if it was passed on the stack.
17232 2002-02-25 Jason Merrill <jason@redhat.com>
17234 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17237 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17239 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17240 link with shared_name only.
17241 * doc/invoke.texi (Link Options): Document new behavior.
17243 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17245 * c-typeck.c (push_init_level): Handle vectors.
17247 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17249 * config/sparc/sparc.c (const64_high_operand): Zero-extend
17250 operands of SPARC_SETHI_P.
17251 (input_operand): Likewise.
17252 (sparc_emit_set_const32): Likewise.
17253 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17254 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17255 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
17256 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17257 (movdi_insn_sp64_vis): Likewise.
17258 (movdi split, movdf split): Use SETHI32.
17259 * doc/md.texi: Document SPARC constraints L, M and N.
17261 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17263 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17264 ("*set_vrsave_internal"): use mfspr for Darwin.
17266 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17267 gen_get_vrsave_internal.
17269 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17271 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17273 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
17275 * cpplex.c (cpp_interpret_charconst): Get signedness or
17276 otherwise of wide character constants correct.
17277 * cppexp.c (lex): Get signedness of wide charconsts correct.
17279 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17281 * optabs.c (widen_operand): Only call convert_modes for
17282 promoted SUBREG if signedness matches.
17283 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17285 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17287 * cpplib.c (glue_header_name): Use local buffer to build up
17290 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17292 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17294 2002-02-23 Kazu Hirata <kazu@hxi.com>
17296 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17297 H8/300[HS] separately.
17298 * config/h8300/h8300.md: Remove the early clobber constraint
17299 from bit field patterns.
17301 2002-02-23 Kazu Hirata <kazu@hxi.com>
17303 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17305 (mulhisi3): Likewise.
17306 (umulqisi3): Likewise.
17307 (umulhisi3): Likewise.
17309 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17311 * cppinit.c (output_deps): Correct test for stdout output.
17312 (init_dependency_output): Cure warning.
17314 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17316 * expr.c (store_expr): When converting expression to promoted
17317 equivalent type, allow using SUBREG_REG of TARGET as the target
17318 of the expansion of EXP.
17319 * loop.c (basic_induction_var, case SUBREG): Always look inside.
17320 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17321 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17322 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17323 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17325 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
17327 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17328 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17329 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17331 2002-02-23 Jakub Jelinek <jakub@redhat.com>
17333 PR optimization/5747
17334 * loop.c (scan_loop): Update reg info if move_movables created new
17337 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17339 * gcc.c (init_gcc_spec): Revert last change.
17341 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17343 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17344 gpc_reg_operand constraint.
17346 2002-02-23 Alan Modra <amodra@bigpond.net.au>
17348 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17349 Simplify comparison of `low'.
17350 (add_operand): Fix formatting.
17351 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
17352 (mask_operand): Disallow mask to wrap in 64-bit mode.
17353 (rs6000_stack_info): Remove redundant test setting push_p.
17354 (output_toc): Fix formatting.
17355 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17356 cc_reg_not_cr0_operand constraint.
17357 (booldi3, boolcdi3 splitters): Same.
17359 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
17361 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
17363 2002-02-22 David Edelsohn <edelsohn@gnu.org>
17365 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17366 gcc invoked with -shared-libgcc.
17368 2002-02-22 Jakub Jelinek <jakub@redhat.com>
17371 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17372 decl if any of elements was TREE_USED.
17374 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
17376 * config/sparc/sol2.h: Don't include sys/mman.h.
17377 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17378 (arith_4096_operand): Don't throw high bits away.
17379 (const64_operand): Take sign extension of CONST_INTs into account.
17380 (const64_high_operand, sparc_emit_set_const32): Likewise.
17381 (GEN_HIGHINT64): Likewise.
17382 (sparc_emit_set_const64_quick1): Likewise.
17383 (const64_is_2insns): Likewise.
17384 (print_operand): Use trunc_int_for_mode for sign extension.
17385 * config/sparc/sparc.h (SMALL_INT32): Likewise.
17386 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17387 chars. Assume CONST_INT is already properly sign-extended.
17388 (movdi split): Sign-extend each SImode part.
17389 (andsi3 split): Don't mask high bits off, so that result
17390 remains properly sign-extend.
17391 (iorsi3 split): Likewise.
17392 (xorsi3 split): Likewise.
17394 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
17396 * fold-const.c (fold): Fix typo in comments.
17398 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17400 * Makefile.in (langhooks.o): Update dependencies.
17402 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17404 * langhooks.c: Include flags.h.
17406 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
17408 * testsuite/gcc.dg/attr-alwaysinline.c: New.
17410 * c-common.c (c_common_post_options): Set inline trees by
17413 * doc/extend.texi (Function Attributes): Document always_inline
17415 Update documentation about inlining when not optimizing.
17417 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17419 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17420 unless DECL_ALWAYS_INLINE.
17422 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17423 unless DECL_ALWAYS_INLINE.
17424 (c_disregard_inline_limits): Disregard if always_inline set.
17426 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17427 Disregard if always_inline set.
17428 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17429 unless DECL_ALWAYS_INLINE.
17431 * attribs.c (handle_always_inline_attribute): New.
17432 (c_common_attribute_table): Add always_inline.
17434 * config/rs6000/altivec.h: Add prototypes for builtins
17435 requiring the always_inline attribute.
17437 2002-02-21 Eric Christopher <echristo@redhat.com>
17439 * expmed.c (store_bit_field): Try to simplify the subreg
17440 before generating a new one when when the mode size of
17441 value is less than maxmode.
17443 2002-02-21 Richard Henderson <rth@redhat.com>
17445 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17446 than gen_rtx_PLUS to form the sum.
17447 * explow.c (force_reg): Rearrange to not allocate new pseudo
17448 when force_operand returns a register.
17449 * expr.c (expand_assignment): Allow offset_rtx expansion to
17450 return a sum. Do not force addresses into registers.
17451 (expand_expr): Likewise.
17452 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17453 to canonicalize arithmetic that didn't simpify.
17454 (simplify_plus_minus): New argument force; update
17455 all callers. Don't split CONST unless we can do something with it,
17456 and wouldn't lose the constness of the operands.
17458 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17459 that we generated earlier.
17461 2002-02-21 Tom Tromey <tromey@redhat.com>
17463 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17464 (output_line_info): Use constant `1', with a long explanatory
17466 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17468 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
17470 * jump.c (redirect_jump): If old label has no UID, don't try to
17473 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
17475 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17476 If input is constant, do shifts at compile time.
17478 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
17480 * doc/extend.texi: Fix some more overfull hboxes.
17482 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17484 PR optimization/4994
17485 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17488 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17491 * expr.h (expand_and): Add mode argument.
17492 * expmed.c (expand_and): Add mode argument.
17493 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17494 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17495 * except.c (expand_builtin_extract_return_addr): Likewise.
17496 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17497 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17498 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17499 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17500 * config/c4x/c4x.md: Use GEN_INT (x) instead of
17501 gen_rtx (CONST_INT, VOIDmode, x).
17503 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17506 * stmt.c (warn_if_unused_value): Move side effects test once more.
17508 2002-02-20 Torbjorn Granlund <tege@swox.com>
17510 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
17511 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
17513 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
17515 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17516 SUBREG or ZERO_EXTEND.
17518 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
17520 * sh.h (current_function_anonymous_args): Remove.
17521 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17522 of current_function_varargs and current_function_stdarg is set.
17523 * sh.c (sh_expand_prologue): Check current_function_varargs /
17524 current_function_stdarg / TARGET_SH5 instead of
17525 current_function_anonymous_args.
17527 * sh64.h (TARGET_VERSION): Define.
17529 2002-02-20 David Edelsohn <edelsohn@gnu.org>
17531 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17532 VRSAVE_REGNO on TARGET_ALTIVEC.
17534 2002-02-20 Alan Modra <amodra@bigpond.net.au>
17536 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17537 bits of SImode const_int.
17538 (includes_rshift_p): Likewise.
17539 (print_operand): Call mask_operand and mask64_operand with correct
17541 (rs6000_output_function_epilogue): Pad traceback table to word.
17542 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17543 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17544 mask64_operand with correct mode.
17545 (FUNCTION_ARG_REGNO_P): Correct parentheses.
17547 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17550 * varasm.c (get_pool_constant_mark): New.
17551 * rtl.h (get_pool_constant_mark): Add prototype.
17552 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17553 be represented if it has not been output.
17555 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17557 * combine.c (do_SUBST): Sanity check substitutions of
17558 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17559 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17560 CONST_INT into its operand.
17561 (known_cond): Likewise, for ZERO_EXTEND.
17562 * simplify-rtx.c (simplify_unary_operation): Fix condition to
17563 allow for simplification of wide modes. Reject CONST_INTs in
17564 ZERO_EXTEND when their actual mode is not given.
17566 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17568 * c-decl.c (pushdecl): If no global declaration is found for an
17569 extern declaration in block scope, try a limbo one.
17571 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17574 * c-common.c (pointer_int_sum): Moved from...
17575 * c-typeck.c (pointer_int_sum): ...here.
17576 * c-common.h (pointer_int_sum): Add prototype.
17578 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17581 * c-decl.c (duplicate_decls): Return 0 if issued error about
17584 2002-02-20 Roger Sayle <roger@eyesopen.com>
17585 Jakub Jelinek <jakub@redhat.com>
17588 * tree.c (host_integerp): Ensure that the constant integer is
17589 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17590 when pos is zero or non-zero respectively. Clarify comment.
17591 * c-format.c (check_format_info_recurse): Fix host_integerp
17592 usage; the pos argument should be zero when assigning to a
17593 signed HOST_WIDE_INT.
17595 2002-02-20 Richard Henderson <rth@redhat.com>
17597 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17598 of the operand, rather than assuming TImode.
17599 (ix86_expand_binop_builtin): Cope with commutative patterns
17600 using nonimmediate_operand for both operands.
17601 (ix86_expand_timode_binop_builtin): Likewise.
17602 (ix86_expand_store_builtin): Validate operand 1.
17603 (ix86_expand_unop1_builtin): Likewise.
17605 2002-02-20 Philip Blundell <philb@gnu.org>
17608 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17610 2002-02-20 Richard Henderson <rth@redhat.com>
17613 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17615 2002-02-20 Tom Tromey <tromey@redhat.com>
17617 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17618 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17619 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17620 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17621 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17624 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17626 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17627 for (const_int 0) in X not just INTVAL.
17629 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
17631 * doc/extend.texi: Avoid or reduce overfull hboxes.
17633 2002-02-20 Diego Novillo <dnovillo@redhat.com>
17635 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
17636 operations if the field does not start at a mode boundary.
17638 2001-02-20 Joel Sherrill <joel@OARcorp.com>
17640 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
17641 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
17642 Also done for -Acpu and -Amachine.
17644 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
17646 * cppinit.c (init_dependency_output): Take deps output file
17647 from -o if none given with -MF. Suppress normal output.
17648 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
17649 * doc/cpp.texi, doc/invoke.texi: Update.
17651 2002-02-19 Zack Weinberg <zack@codesourcery.com>
17653 * toplev.c (output_quoted_string): Write unprintable
17654 characters with octal escapes.
17656 2002-02-19 David Edelsohn <edelsohn@gnu.org>
17658 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
17659 really_call_used[VRSAVE_REGNO] if not Altivec.
17661 2002-02-19 Alan Modra <amodra@bigpond.net.au>
17663 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
17665 (constant_pool_expr_1): Fix formatting.
17666 (rs6000_legitimize_reload_address): Likewise.
17668 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17670 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
17671 now that we have one.
17673 2002-02-19 Zack Weinberg <zack@codesourcery.com>
17675 * tree.h (struct tree_common): Remove aux. Add unused_0 at
17676 end of first block of bitfields (which was only seven bits);
17677 rename dummy to unused_1; remove comment which is no longer true.
17679 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
17681 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
17683 2002-02-19 Philip Blundell <pb@nexus.co.uk>
17686 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
17690 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
17691 arm_is_longcall_p rather than inspecting call-type cookie
17693 (call_value_insn) [TARGET_THUMB]: Likewise.
17695 2002-02-19 Graham Stott <grahams@redhat.com>
17697 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
17699 2002-02-19 David Edelsohn <edelsohn@gnu.org>
17701 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
17702 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
17703 (FP_SAVE_INLINE): Delete.
17705 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
17706 * config/rs6000/eabi.asm: Remove ABI save restore routines.
17707 * config/rs6000/t-ppccomm: Build crtsavres.o.
17708 * config/rs6000/crtsavres.asm: New file.
17710 2002-02-19 Philip Blundell <philb@gnu.org>
17712 * config/arm/arm.c (use_return_insn): Don't reject interrupt
17714 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
17715 (output_return_instruction): Allow interrupt functions to return with
17716 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
17717 (arm_expand_prologue): Subtract 4 before stacking LR in an
17718 interrupt function.
17720 2002-02-19 Philip Blundell <pb@nexus.co.uk>
17722 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
17723 decl, not just FUNCTION_DECL.
17724 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
17725 (arm_assemble_integer): Likewise.
17726 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
17729 2002-02-19 matthew green <mrg@eterna.com.au>
17731 * config.gcc (sparc-*-netbsdelf*): Enable target.
17732 (sparc64-*-netbsd*): New target.
17733 * config/sparc/netbsd-elf.h: New file.
17734 * config/sparc/t-netbsd64: New file.
17736 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
17738 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
17740 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
17742 * doc/invoke.texi: explicitly list the style guidelines that
17743 -Weffc++ checks for.
17745 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
17747 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
17749 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
17752 * gcc.c (cpp_unique_options): Treat -o as indicating object file
17753 only if not -E. If -E, pass -o through to the preprocessor.
17755 2002-02-19 Kazu Hirata <kazu@hxi.com>
17757 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
17758 register number with an appropriate macro.
17760 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
17762 * doc/rtl.texi (Constants): Close @code tag.
17764 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
17766 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
17767 ("mmx_uavgv4hi3"): Same.
17768 ("pmulhrwv4hi3"): Same.
17770 * tree-inline.c (walk_tree): Handle vectors.
17772 * c-common.c (constant_expression_warning): Handle vectors.
17773 (overflow_warning): Same.
17775 * sched-deps.c (sched_analyze_2): Handle vectors.
17777 * rtlanal.c (rtx_unstable_p): Handle vectors.
17778 (rtx_varies_p): Same.
17779 (count_occurrences): Same.
17780 (regs_set_between_p): Same.
17781 (modified_between_p): Same.
17782 (modified_in_p): Same.
17783 (volatile_insn_p): Same.
17784 (volatile_refs_p): Same.
17785 (side_effects_p): Same.
17786 (may_trap_p): Same.
17787 (inequality_comparisons_p): Same.
17788 (replace_regs): Same.
17789 (computed_jump_p_1): Same.
17791 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
17793 (inner_mode_array): New.
17794 (copy_rtx): Handle vectors.
17795 (copy_most_rtx): Same.
17796 (rtx_equal_p): Same.
17797 (get_mode_alignment): Adjust for vectors.
17799 * resource.c (mark_referenced_resources): Handle vectors.
17800 (mark_set_resources): Same.
17802 * reload1.c (eliminate_regs): Handle vectors.
17803 (elimination_effects): Same.
17804 (scan_paradoxical_subregs): Same.
17806 * reload.c (subst_reg_equivs): Handle vectors.
17808 * regrename.c (scan_rtx): Handle vectors.
17810 * regclass.c (reg_scan_mark_refs): Handle vectors.
17812 * recog.c (find_single_use_1): Handle vectors.
17814 * local-alloc.c (equiv_init_varies_p): Handle vectors.
17815 (contains_replace_regs): Same.
17816 (memref_referenced_p): Same.
17818 * integrate.c (copy_rtx_and_substitute): Handle vectors.
17819 (subst_constants): Same.
17821 * genattrtab.c (attr_copy_rtx): Handle vectors.
17822 (encode_units_mask): Same.
17823 (clear_struct_flag): Same.
17824 (count_sub_rtxs): Same.
17826 * gcse.c (want_to_gcse_p): Handle vectors.
17827 (oprs_unchanged_p): Same.
17828 (hash_expr_1): Same.
17829 (oprs_not_set_p): Same.
17830 (expr_killed_p): Same.
17831 (compute_transp): Same.
17832 (store_ops_ok): Same.
17834 * function.c (purge_addressof_1): Do not allow paradoxical subregs
17836 (fixup_var_refs_1): Same.
17837 (instantiate_virtual_regs_1): Same.
17839 * fold-const.c (operand_equal_p): Handle vectors.
17841 (rtl_expr_nonnegative_p): Same.
17843 * flow.c (mark_used_regs): Handle vectors.
17845 * df.c (df_uses_record): Handle vectors.
17847 * cselib.c (cselib_subst_to_values): Handle vectors.
17848 (cselib_mem_conflict_p): Same.
17851 * cse.c (canon_reg): Handle vectors.
17853 (cse_process_notes): Same.
17854 (count_reg_usage): Same.
17855 (canon_hash): Same.
17857 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
17859 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
17861 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
17862 (gen_rtx): Handle CONST_VECTOR.
17863 (gen_const_vector_0): New.
17864 (copy_rtx_if_shared): CONST_VECTORs can be shared.
17865 (reset_used_flags): Same.
17866 (copy_insn_1): Same.
17867 (initializer_constant_valid_p): Handle VECTOR_CST.
17869 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
17871 * doc/rtl.texi (Constants): Document const_vector.
17872 (CONST0_RTX): Update for vectors.
17873 (RTL sharing): Same.
17875 * print-tree.c (print_node): Add case for VECTOR_CST.
17877 * tree.h (TREE_VECTOR_CST_ELTS): New.
17878 (struct tree_vector): New.
17879 (union tree_node): Add vector node.
17880 (build_vector): Add prototype.
17882 * tree.def (VECTOR_CST): New.
17884 * tree.c (build_vector): New.
17886 * expmed.c (make_tree): Handle CONST_VECTOR.
17888 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
17889 (CONST_VECTOR_ELT): New.
17890 (CONST_VECTOR_NUNITS): New.
17892 * machmode.h (GET_MODE_INNER): New.
17893 (DEF_MACHMODE): Accept 8th arg.
17895 * machmode.def: Add 8th argument for vector inner mode.
17896 Add inner vector modes for vectors.
17898 * rtl.def (VEC_CONST): Remove.
17899 (CONST_VECTOR): New.
17901 * expr.c (clear_storage): Allow vectors.
17902 (is_zeros_p): Handle VECTOR_CST.
17904 * varasm.c (output_constant_pool): Handle vectors.
17905 (rtx_const): Add veclo and vechi fields.
17906 (kind): Add RTX_VECTOR.
17907 (decode_rtx_const): Add case for vector.
17909 * config/rs6000/rs6000-protos.h: Add zero_constant.
17911 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
17912 constants. Force easy vector constants into memory.
17913 (easy_vector_constant): New.
17914 (emit_easy_vector_constant): New.
17915 (rs6000_legitimize_reload_address): Do not generate bad reloads on
17918 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
17920 ("altivec_lvxl"): Same.
17921 (altivec_lvebx): Same.
17922 (altivec_lvehx): Same.
17923 (altivec_lvewx): Same.
17924 ("*movv4si_const0"): New.
17925 ("*movv4sf_const0"): New.
17926 ("*movv8hi_const0"): New.
17927 ("*movv16qi_const0"): New.
17929 2002-02-18 Kazu Hirata <kazu@hxi.com>
17931 * config/h8300/h8300.c (notice_update_cc): Use
17934 2002-02-18 Kazu Hirata <kazu@hxi.com>
17936 * config/h8300/h8300.md (divmod patterns): Change the
17937 constraints for operands[1] to register_operand.
17939 2002-02-18 Kazu Hirata <kazu@hxi.com>
17941 * config/h8300/h8300-protos.h: Remove the prototype for
17943 * config/h8300/h8300.c (p_operand): Remove.
17944 * config/h8300/h8300.md: Replace p_operand with
17947 2002-02-18 Philip Blundell <pb@nexus.co.uk>
17949 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
17951 (output_return_instruction): Allow use of LDR to unstack
17952 return addresss even for interrupt handlers or when
17953 interworking. If compiling for ARMv5, use interworking-safe
17954 return instructions by default. Remove duplicated code and
17955 lengthy "strcat" sequences.
17957 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17959 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
17960 (LINK_EH_SPEC): Define.
17961 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
17963 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
17965 * config/s390/s390.c (s390_emit_prologue): Do not set the
17966 frame_related flag for call-clobbered registers.
17968 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
17970 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
17971 (construct_container): Fix handling of SSE operands.
17972 (ix86_expand_builtin): Fix handling of 64bit pointers.
17973 (mmx_maskmovq_rex): New pattern.
17975 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
17977 * regrename.c (kill_set_value): Handle subregs properly.
17979 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
17981 * objc/objc-act.c (handle_impent): Remove leading '*'
17982 from objc_class_name.
17984 2002-02-17 Richard Henderson <rth@redhat.com>
17986 * config/alpha/alpha.c (some_small_symbolic_operand,
17987 some_small_symbolic_operand_1, split_small_symbolic_operand,
17988 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
17989 Handle small SYMBOL_REFs anywhere, not just inside memories.
17990 * config/alpha/alpha-protos.h: Update.
17991 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17992 * config/alpha/alpha.md (small symbolic operand splitter): Update.
17994 2002-02-17 Roland McGrath <roland@frob.com>
17996 * config.gcc (powerpc-*-gnu-gnualtivec*,
17997 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
17998 * config/rs6000/gnu.h: New file.
17999 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
18000 Grok "gnu" in rs6000_abi_name.
18001 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
18002 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
18003 Grok -mcall-gnu analogous to -mcall-linux et al.
18004 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18005 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
18006 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
18008 2002-02-17 Jakub Jelinek <jakub@redhat.com>
18011 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
18014 2002-02-17 Philipp Thomas <pthomas@suse.de>
18016 * config/cris/cris.h: Undefine STARTFILE_SPEC and
18017 ENDFILE_SPEC before (re)defining them.
18019 2002-02-17 Kazu Hirata <kazu@hxi.com>
18021 * config/h8300/h8300.c: Fix formatting.
18022 * config/h8300/h8300.h: Likewise.
18024 2002-02-17 Philipp Thomas <pthomas@suse.de>
18026 * doc/tm.texi: Explain why empty strings should not be
18027 marked for translation.
18029 2002-02-17 Philipp Thomas <pthomas@suse.de>
18031 * final.c (output_operand_lossage): Changed to accept
18032 printf style arguments. Change calls where necessary.
18033 * output.h (output_operand_lossage): Change declaration
18034 accordingly. Update copyright.
18035 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
18036 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
18037 Update copyright date where necessary.
18039 * config/i386/i386.c (print_operand): Likewise. Remove use of
18042 * config/cris/cris.c (cris_operand_lossage): Likewise.
18043 Rename parameter so that exgettext recognizes it as
18044 translatable message.
18045 (LOSE_AND_RETURN): Rename parameter to msgid.
18047 2002-02-17 Kazu Hirata <kazu@hxi.com>
18049 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
18050 hard coded register number with an appropriate macro.
18051 (HARD_REGNO_MODE_OK): Likewise.
18052 (ARG_POINTER_REGNUM): Likewise.
18053 (STATIC_CHAIN_REGNUM): Likewise.
18054 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
18055 * config/h8300/h8300.md (define_constants): Define more
18058 2002-02-17 Philipp Thomas <pthomas@suse.de>
18060 * config/i386/i386.h: Don't mark empty strings for translation.
18062 2002-02-16 H.J. Lu <hjl@gnu.org>
18064 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
18066 2002-02-16 Zack Weinberg <zack@codesourcery.com>
18068 * cppinit.c (merge_include_chains): Check for brack being
18069 NULL before attempting to merge it with qtail.
18071 2002-02-16 Andrew Cagney <ac131313@redhat.com>
18073 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
18076 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18078 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
18080 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18082 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
18083 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
18084 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
18086 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18088 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
18089 now only if !TARGET_FIX.
18090 (*movsi_nt_vms_fix): New pattern.
18092 2002-02-16 Douglas B Rupp <rupp@gnat.com>
18094 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
18095 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
18096 (alpha_sa_mask, alpha_sa_size): Reflect above change.
18097 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
18098 (alpha_start_function, alpha_expand_epilogue): Likewise.
18099 (unicosmk_gen_dsib): Likewise.
18101 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18103 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
18105 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
18107 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
18108 check_and_change_labels, s390_final_chunkify): Delete.
18109 (s390_split_branches, s390_chunkify_pool): New functions.
18110 (s390_function_prologue): Call them.
18112 * config/s390/s390.h (S390_REL_MAX): Delete.
18113 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
18115 * config/s390/s390.md (cjump, icjump, jump): Fix length
18116 attribute calculation.
18119 2002-02-15 David Edelsohn <edelsohn@gnu.org>
18121 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
18122 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
18124 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18126 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
18127 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
18128 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
18130 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18132 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
18134 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18136 * reload.c (find_dummy_reload): Check that an output register
18137 is valid for its mode.
18139 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
18141 * combine.c (known_cond): After replacing the REG of a SUBREG, try
18144 * function.c (assign_parms): Demote promoted argument passed by
18145 transparent reference.
18147 2001-02-14 Joel Sherrill <joel@OARcorp.com>
18149 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
18150 -Acpu() and -Amachine() to eliminate warnings.
18152 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
18154 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
18156 2002-02-14 Kazu Hirata <kazu@hxi.com>
18158 * config/h8300/h8300-protos.h: Update the prototype for
18160 * config/h8300/h8300.c (const_costs): Treat SET as a little
18161 more expensive operation.
18162 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
18163 reference to const_costs.
18165 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
18167 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
18169 2002-02-14 Jakub Jelinek <jakub@redhat.com>
18172 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
18173 use arguments from newtype.
18175 2002-02-13 Eric Christopher <echristo@redhat.com>
18177 * config/mips/mips.c (override_options): Add check for march/mipsX
18178 on the same command line. Fix error message in cpu processing.
18179 Remove architecture and ISA checks.
18181 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18183 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
18185 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
18187 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18189 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
18191 ("*movv8hi_internal1"): Same.
18192 ("*movv16qi_internal1"): Same.
18193 ("*movv4sf_internal1"): Same.
18195 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
18196 not push_reload for altivec modes.
18198 2002-02-13 Joel Sherrill <joel@OARcorp.com>
18200 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
18201 all RTEMS targets including removal of #includes from config/*/rtems*.h
18202 file and adding them to tm_file setting. Added xm_defines=POSIX to
18204 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
18205 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
18206 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
18207 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
18208 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
18209 config/m68k/rtemself.h: Ditto.
18210 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
18211 config/mips/rtems64.h: Ditto.
18212 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
18213 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
18215 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
18216 config/sparc/rtemself.h: Ditto.
18217 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
18218 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18219 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18221 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18222 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18223 target made more similar to i386-elf.
18224 * config/i386/t-rtems-i386: Added soft float support and multilibs.
18225 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18226 be similar to config/m68k/t-m68kelf.
18227 * gthr-rtems.h: Encapsulate with extern "C" for C++.
18229 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
18231 * regmove.c (kill_value): Handle subregs.
18233 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
18235 * i386.md (mul patterns): Allow memory operand to be first;
18236 add expanders where needed; fix constraints.
18237 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18238 Allow memory operand to be the first.
18240 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18243 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18246 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18249 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18251 PR optimization/5547:
18252 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18253 all valid IA-32 address modes involving non-scaled %ebx and
18254 GOT/GOTOFF as displacement.
18256 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
18258 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18259 after emitting ltorg insns.
18261 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18262 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18263 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18264 *abssf2): Fix "op_type" attribute.
18266 2002-02-13 Douglas B Rupp <rupp@gnat.com>
18268 * mkconfig.sh: Avoid using a subshell redirect.
18269 ($output.T): Change to $(output)T.
18270 (ENABLE_NLS): Remove unneeded undef.
18272 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18273 * config/alpha/x-vms (libsubdir): Define.
18275 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18276 register frame procedures. Optimize retrieving context.
18278 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18279 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18280 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18282 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18284 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18285 Make same change as for find_base_value.
18287 2002-02-13 Kazu Hirata <kazu@hxi.com>
18289 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18290 of QImode and SImode.
18292 2002-02-13 Kazu Hirata <kazu@hxi.com>
18294 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18295 length computation of movsi.
18296 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18298 2002-02-13 Kazu Hirata <kazu@hxi.com>
18300 * config/h8300/h8300.md (subqi3): Tighten the predicate for
18301 operands[2] to register_operand.
18303 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
18305 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18307 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
18309 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18310 for altivec_lvx* and altivec_stvx*.
18311 ("*movv4si_internal"): Add constraint for loading from GPRs.
18312 ("*movv8hi_internal1"): Same.
18313 ("*movv16qi_internal1"): Same.
18314 ("*movv4sf_internal1"): Same.
18316 * config/rs6000/rs6000.c (altivec_register_operand): New.
18318 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18319 altivec_register_operand.
18321 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
18323 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18326 2002-02-13 Stan Shebs <shebs@apple.com>
18328 * c-typeck.c (digest_init): Handle vectors.
18329 (really_start_incremental_init): Same.
18330 (pop_init_level): Same.
18331 (process_init_element): Same.
18333 * varasm.c (output_constant): Same.
18335 * expr.c (clear_storage): Same.
18336 (store_constructor): Same.
18338 2002-02-12 Eric Christopher <echristo@redhat.com>
18340 * explow.c (hard_function_value): Add comment explaining
18341 signed/unsigned comparison.
18343 2002-02-12 Jakub Jelinek <jakub@redhat.com>
18345 * jump.c (never_reached_warning): Add finish argument.
18346 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18347 real insn after end.
18348 * rtl.h (never_reached_warning): Adjust prototype.
18349 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18350 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18351 never_reached_warning.
18353 2002-02-12 Graham Stott <grahams@redhat.com>
18355 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18357 2002-02-12 Kazu Hirata <kazu@hxi.com>
18359 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18360 logical shifts on H8/300.
18361 (shift_alg_si): Improve several shifts on H8/300.
18362 (get_shift_alg): Likewise.
18364 2002-02-12 Graham Stott <grahams@redhat.com>
18366 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18368 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18370 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18371 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18373 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
18375 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18376 non-CONST_INT through default_assemble_integer.
18377 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18378 <case 8>: Abort for CONST_DOUBLE.
18380 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
18382 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18384 * config/pa/pa-linux.h (LIB_SPEC): Delete.
18385 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18387 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
18389 * config/stormy16/stormy16.md (zero_extendqihi2): New.
18391 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
18393 * regrename.c (regrename_optimize): Don't accept a
18394 part-clobbered register if the replaced register is not part
18397 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18398 take padding into account when computing the argument value.
18400 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18402 * combine.c (try_combine): Apply substitutions in
18403 CALL_INSN_FUNCTION_USAGE too.
18405 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
18407 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18408 __builtin_altivec_abs*.
18411 * config/rs6000/rs6000.h (rs6000_builtins): Add
18412 ALTIVEC_BUILTIN_ABS*.
18414 * config/rs6000/altivec.h: Use const char for builtins expecting
18416 (vec_abs): New versions for C and C++.
18419 2002-02-10 Kazu Hirata <kazu@hxi.com>
18421 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18424 2002-02-10 Kazu Hirata <kazu@hxi.com>
18426 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18427 constant definition from h8300.md.
18428 (FRAME_POINTER_REGNUM): Likewise.
18429 * config/h8300/h8300.md (define_constants): Add FP_REG.
18431 2002-02-10 Kazu Hirata <kazu@hxi.com>
18433 * config/h8300/h8300.c (print_operand): Remove redundant code.
18435 2002-02-10 Kazu Hirata <kazu@hxi.com>
18437 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18438 * config/h8300/h8300.c (byte_reg): Make it static.
18440 2002-02-10 Richard Henderson <rth@redhat.com>
18443 * c-typeck.c (incomplete_type_error): Handle flexible array members.
18445 2002-02-10 Richard Henderson <rth@redhat.com>
18448 * tree.c (append_random_chars): Don't abort if main_input_filename
18451 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
18453 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18455 2002-02-10 Kazu Hirata <kazu@hxi.com>
18457 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
18458 (pushhi1): Likewise.
18460 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
18462 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18463 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18465 2002-02-09 David O'Brien <obrien@FreeBSD.org>
18467 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18469 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
18471 2002-02-09 Kazu Hirata <kazu@hxi.com>
18473 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18474 a half of an SImode register on H8/300.
18476 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
18478 * i386.md (movdi_2): Add missing '!'.
18480 2002-02-09 Kazu Hirata <kazu@hxi.com>
18482 * config/h8300/h8300.h: Fix formatting. Remove commented-out
18485 2002-02-09 Kazu Hirata <kazu@hxi.com>
18487 * config/h8300/h8300.md (length): Correct the distance valid
18488 for the short branch.
18490 2002-02-09 Kazu Hirata <kazu@hxi.com>
18492 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18494 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18496 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18497 registers in SImode.
18498 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18501 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18504 Contribute sh64-elf.
18505 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18506 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18507 (sh_cannot_modify_jumps_p): New function.
18508 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
18509 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18510 (sh_ms_bitfield_layout_p): New function.
18511 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
18512 Zack Weinberg <zack@codesourcery.com>
18513 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18514 expand_simple_binop instead of expand_binop.
18515 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
18516 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18517 use of .quad and .uaquad.
18518 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18519 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18520 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18521 * config/sh/sh.md (movdi_const, movdi_const_32bit,
18522 movdi_const_16bit): Make sure all CONSTs have modes.
18523 (sym2PIC): Ditto, but by adjusting all callers.
18524 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18525 if the prologue calls the SHmedia argument decoder or register
18527 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18528 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18529 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18530 (sh_expand_epilogue): Don't emit USE of return target register.
18531 (prepare_move_operands): Legitimize DImode PIC addresses.
18532 (sh_media_register_for_return): Skip tr0, used to initialize the
18534 (sh_expand_prologue): Remove explicit USE of return register.
18535 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
18536 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
18537 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18538 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18539 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18540 EXTRA_CONSTRAINT_T.
18541 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18542 (MOVI_SHORI_BASE_OPERAND_P): New.
18543 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18544 (EXTRA_CONSTRAINT_T): Define in terms of them.
18545 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18546 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18547 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18548 alternatives supporting TARGET_REGS.
18549 (UNSPEC_GOTPLT): New constant.
18550 (movdi split): Move incrementing of LABEL_NUSES...
18551 (movdi_const, movdi_const_32bit): Here. Use
18552 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18553 (movdi_const_16bit): New.
18554 (call, call_value) [flag_pic]: Use GOTPLT.
18555 (call_pop, call_value_pop): New expands.
18556 (call_pop_compact, call_pop_rettramp): New insns.
18557 (call_value_pop_compact, call_value_pop_rettramp): New insns.
18558 (sibcall) [flag_pic]: Use GOT.
18559 (builtint_setjmp_receiver): Remove bogus, unused expand.
18560 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18561 (*pt, *ptb, ptrel): New insns.
18562 (sym2GOT): Handle DImode GOT.
18563 (sym2GOTPLT, symGOTPLT2reg): New expands.
18564 (sym2PIC): New expand.
18565 (shcompact_return_tramp): Use GOTPLT to return trampoline.
18566 (shcompact_return_tramp_i): Use return register explicitly.
18567 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18568 disable flag_reorder_blocks.
18569 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
18570 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18571 clobbers, for clarity.
18572 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18573 restoring of r0 in macl as MAYBE_DEAD.
18574 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
18575 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18576 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18577 alter_subreg all over.
18578 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18579 reload, instead of emitting instructions that would require
18581 (casesi_load_media): Add missing modes.
18582 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
18583 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18584 as used if the argument decoder is called.
18585 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18586 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18587 Pmode, then extend it to DImode if necessary.
18588 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18589 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18590 constants in FPU-enabled SHmedia, let them be loaded from memory.
18591 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18592 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18593 Adjust whitespace in assembly output templates.
18594 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18595 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18596 mode of if_then_else.
18597 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
18598 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18600 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
18601 Joern Rennecke <amylaar@redhat.com>
18602 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18603 (SUBTARGET_CPP_PTR_SPEC): New.
18604 (SUBTARGET_CPP_SPEC): Remove.
18605 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18606 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18607 Fix typo in previous checkin.
18608 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
18609 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18610 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
18611 Alexandre Oliva <aoliva@redhat.com>
18612 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18613 what single FP register can hold for SHmedia target.
18614 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18615 Alexandre Oliva <aoliva@redhat.com>
18616 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18617 Do not split into SUBREG.
18618 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
18619 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18620 and added new functions as specified in SH5 ABI r9.
18621 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
18622 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18624 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
18625 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18626 gen_consttable_4 and gen_consttable_8. Emit multiple labels
18627 and consttable_window_ends.
18628 2001-06-03 Graham Stott <grahams@redhat,com>
18629 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18630 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
18631 * config/sh/sh.c (print_operand): Handle floating-point pair,
18632 vector and matrix registers.
18633 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
18634 vector modes into account.
18635 * config/sh/sh.md (movv2sf): Split move between registers into
18637 (movv4sf, movv16sf): Introduce insns that get split only after
18639 * config/sh/shmedia.h: Fix Copyright dates.
18640 * config/sh/ushmedia.h: Likewise. Move loop counter
18641 declarations into conditionals that uses them.
18642 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
18644 * config/sh/sshmedia.h: Fix Copyright dates.
18645 (sh_media_PUTCFG): Fix constraints.
18646 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
18647 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
18648 ptrmemfunc_vbit_in_delta for SH5.
18649 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
18650 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
18651 * invoke.texi: Likewise.
18652 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
18653 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
18654 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
18655 GCC_pop_shmedia_regs_nofpu): New global symbols.
18656 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
18657 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
18658 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
18659 compact function with nonlocal labels.
18660 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
18661 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
18662 (initial_elimination_offset): Account for their stack space.
18663 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
18664 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
18665 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
18666 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
18667 least one of the operands to be a register.
18668 (movv2sf): Likewise. Renamed to movv2sf_i.
18669 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
18670 prepare_move_operands() before emitting SHmedia insns.
18671 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
18672 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
18673 Don't save nor initialize r12. Don't mis-align the stack.
18674 Pad the code with a nop.
18675 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
18677 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
18678 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
18679 [__SHMEDIA__]: Implement.
18680 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
18681 * config/sh/sh.md: Set latency of `pt' closer to reality.
18682 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
18683 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
18684 Set move, load and store type attributes.
18685 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
18686 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
18688 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
18689 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
18690 * config/sh/sh.c (sh_media_register_for_return): New function.
18691 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
18692 branch-target register.
18693 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
18694 * config/sh/sh.md (return_media_i): Use any call-clobbered
18695 branch-target register.
18696 (return_media): If r18 wasn't copied in the prologue, copy it
18698 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
18699 Clear class FP0_REGS.
18700 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
18702 2001-03-08 DJ Delorie <dj@redhat.com>
18703 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
18704 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
18705 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
18706 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
18707 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
18708 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
18709 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
18710 return value correctly for call_cookie.
18711 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
18712 * config/sh/crt1.asm (start): Modified so as to call
18713 ___setup_argv_and_call_main.
18714 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
18715 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
18717 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
18718 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
18719 (STRIP_NAME_ENCODING): Use it.
18720 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
18721 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
18722 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
18723 prepare_scc_operands().
18724 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
18725 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
18726 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
18727 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
18728 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
18729 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
18730 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
18731 used in shcompact_incoming_args.
18732 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
18734 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
18736 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
18737 Adjust accordingly.
18738 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18739 Simplify. Adjust. Add sanity check.
18740 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
18742 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
18744 (udivsi3, divsi3): Use them.
18745 (force_mode_for_call): New insn.
18746 (call, call_value, sibcall_value): Emit it before SHcompact
18748 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
18749 * config/sh/sh.md (call, call_value, sibcall): Make sure the
18750 call cookie is non-NULL before taking its value.
18751 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
18752 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
18753 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
18754 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
18756 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
18757 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
18758 temporary for stack adjusts. Use MACL and MACH to pass
18759 arguments to shcompact_incoming_args.
18760 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
18762 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
18763 (nested_trampoline): Load static chain address into r1.
18764 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
18765 2001-01-07 Alexandre Oliva <aoliva@redhat.com
18766 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
18767 fp_arith_reg_operand().
18768 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
18769 * config/sh/sh.md (casesi): Sign-extend the first two operands,
18770 and use signed compares for them.
18771 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
18772 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
18773 ones properly aligned.
18774 (find_barrier): Account for extra alignment needed for 8-byte wide
18776 (machine_dependent_reorg): Require a label for the second 4-byte
18777 constant after an 8-byte one.
18778 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
18780 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
18781 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
18782 last_float when switching float modes.
18783 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
18784 auto-increment for general-purpose registers.
18785 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
18787 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
18789 * config/sh/sh.c (sh_builtin_saveregs): Support using all
18790 registers for varargs.
18791 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
18792 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
18793 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
18794 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
18795 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
18796 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
18797 call_cookie accordingly.
18798 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
18799 (SHCOMPACT_BYREF): Likewise.
18800 (SHCOMPACT_FORCE_ON_STACK): New macro.
18801 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
18802 (sh_builtin_saveregs): Likewise.
18803 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18804 shcompact_incoming_args): Use new shift values. Support
18805 sequences of consecutive and non-consecutive pushes/pops.
18806 * config/sh/sh.md (return): Don't explicitly use PR_REG.
18807 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
18808 * config/sh/sh.h (TEXT_SECTION): Define.
18809 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
18810 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
18811 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
18812 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
18813 return values on FPU-enabled SHmedia.
18814 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
18815 FPU-enabled SHmedia.
18816 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
18817 value is returned in a non-FP reg and is not returned by
18819 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
18821 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
18822 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
18823 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
18824 quad-aligned to be passed by callee-copy reference.
18825 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
18826 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
18827 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
18828 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
18829 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
18830 copying low-numbered FP regs to r7 and r8.
18831 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
18832 FP regs to general-purpose regs only if the copy was passed on the
18834 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
18835 copying FP reg to r9.
18836 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
18837 copy FP regs to general-purpose regs only in outgoing calls.
18838 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
18839 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
18841 * config/sh/sh.h (struct sh_args): Document all fields.
18842 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
18843 passed partially on the stack should not consider making
18845 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
18846 stack_regs only for incoming calls. When passing FP args,
18847 make sure there are FP regs available before modifying
18849 (SHCOMPACT_BYREF): Pass double args in general-purpose
18850 registers by reference.
18851 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
18852 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
18853 attempt to generate sibcalls if the caller got any arguments
18855 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
18856 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
18857 to 8-byte boundaries.
18858 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
18859 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
18860 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
18861 stored in the stack.
18862 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
18863 for the offsets to have the ISA bit set.
18864 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
18865 invocation. Use beq instead of bgt to mark end of sequence of
18867 (shcompact_incoming_args): Fix store of r2. Use beq instead of
18868 bgt to mark end of sequence of stores.
18869 * config/sh/sh.c (arith_operand): Don't check whether
18870 CONST_OK_FOR_J for now.
18871 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
18872 instead of long for conversion.
18873 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
18874 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
18875 before passing it to fprintf.
18876 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
18877 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
18878 Call set_fpscr before reading/writing SR.
18879 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
18881 * config/sh/lib1funcs.asm: Add `.align 2' directives before
18883 (FMOVD_WORKS): Define on SH5 with FPU.
18884 (set_fpscr): Define on SH5. Remove separate _fpscr_values
18886 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
18888 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
18889 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
18891 (ia_main_table): Ditto.
18892 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
18893 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
18894 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
18895 the definitions from sh.h.
18896 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
18898 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
18899 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
18900 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18901 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
18902 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
18903 Increment LABEL_NUSES.
18905 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
18907 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
18909 * config/sh/elf.h (SIZE_TYPE): Likewise.
18910 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18911 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18912 shcompact_incoming_args): Load switch table addresses using
18914 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18915 (NO_BUILTIN_SIZE_TYPE): Define.
18916 (SIZE_TYPE): Don't define.
18917 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18918 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
18919 definition of __SH5__=32 for -m5-compact-nofpu.
18920 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
18922 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
18923 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
18924 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
18925 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
18926 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
18927 (INSN_LENGTH_ALIGNMENT): Likewise.
18928 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18929 * config/sh/sh.md (call, call_value, sibcall): Simplify
18930 copying of non-branch-target register.
18931 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18932 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
18933 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
18934 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18935 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
18936 floating-point values as structs.
18937 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
18938 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
18939 general-purpose register.
18940 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
18941 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
18942 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
18943 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
18944 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
18945 (ENCODE_SECTION_INFO): Enclose variables and constants in
18947 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
18948 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
18949 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
18950 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
18951 only for LABEL_REFs. For SYMBOL_REFs, prepend
18952 SH_DATALABEL_ENCODING to the symbol name.
18953 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
18955 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
18956 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
18958 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
18959 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
18960 (DATALABEL_REF_P): Don't require CONST.
18961 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
18963 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
18964 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
18966 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
18967 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
18968 Use shallow_copy_rtx and PUT_MODE to change the mode of
18969 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
18970 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
18971 on SHmedia using GENERAL_REGs.
18972 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18973 bltu_media_i): Fix reversion of conditions.
18974 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
18975 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
18976 * config/sh/sh.c (output_far_jump): Save r13 in macl.
18977 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
18978 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
18979 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
18980 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
18981 (GCC_nested_trampoline): Likewise.
18982 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
18983 * config/sh/sh.c (gen_datalabel_ref): Define.
18984 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
18985 (INITIALIZE_TRAMPOLINE): Likewise.
18986 (TRAMPOLINE_ADJUST_ADDRESS): Define.
18987 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
18988 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
18989 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
18990 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
18991 (ic_invalidate): Adjust for SH5.
18992 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
18993 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
18994 _nested_trampoline.
18995 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
18996 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
18997 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
18998 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
18999 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
19000 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
19001 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19002 * config/sh/sh.c (target_reg_operand): Match only target-branch
19003 registers and pseudos that aren't virtual registers.
19004 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19005 Copy operands that don't match target_reg_operand to pseudos.
19006 (call_media, call_value_media, sibcall_media): Use
19007 target_reg_operand instead of target_operand.
19008 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
19009 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
19010 * config/sh/sh.c (target_reg_operand): Match hardware registers
19011 other than branch-target registers.
19012 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
19013 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
19014 (fpscr_values) [SH5 == 32]: Define.
19015 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
19016 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19017 Handle function addresses coming in SUBREGs.
19018 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
19019 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19020 shcompact_return_trampoline): Use datalabel where appropriate.
19021 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
19022 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
19023 general-purpose register to copy one branch-target register to
19025 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19026 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
19027 SYMBOL_REFs with VOIDmode.
19028 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19029 bltu_media_i): New insns.
19030 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19031 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
19032 (INIT_CUMULATIVE_ARGS): Likewise.
19033 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
19034 * machmode.def (V16SFmode): New mode.
19035 * c-common.c (type_for_mode): Support V2SF and V16SF.
19036 * tree.c (build_common_tree_nodes_2): Likewise.
19037 * tree.h (tree_index): Likewise.
19038 * calls.c (emit_call_1): Take args_so_far. Adjust all
19039 callers. Introduce CALL_POPS_ARGS.
19040 * tm.texi (CALL_POPS_ARGS): Document.
19041 * config/sh/crt1.asm: Implement in SHmedia mode.
19042 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
19043 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
19044 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
19045 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
19046 Implement divsi and udivsi in SHmedia mode. Introduce
19047 SHcompact trampolines.
19048 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
19050 (regno_reg_class): Rewrite.
19051 (fp_reg_names): Remove.
19052 (sh_register_names, sh_additional_register_names): New.
19053 (print_operand): Added `u'. Support SUBREGs in addresses.
19054 Add parentheses around shifted CONSTs.
19055 (output_file_start): Output .mode and .abi directives.
19056 (shiftcosts, addsubcosts, multcosts): Adjust.
19057 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
19058 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
19059 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
19060 bytes, not registers. Take into account the need for the
19061 SHcompact incoming args trampoline. Adjust all callers.
19062 (sh_expand_prologue): Take stack_regs into account. Call
19063 incoming args trampoline. Keep stack aligned as per SH5 ABI.
19064 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
19065 stack aligned as per SH5 ABI.
19066 (sh_builtin_saveregs): Support SH5 ABI.
19067 (sh_build_va_list, sh_va_start): Likewise.
19068 (initial_elimination_offset): Take alignment into account.
19069 Compute location of PR according to the SH5 stack frame.
19070 (arith_reg_operand): Reject branch-target registers.
19071 (shmedia_6bit_operand): New.
19072 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
19073 (target_reg_operand): Match DImode only. Accept SUBREGs.
19074 (target_operand): New.
19075 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
19076 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
19077 SIBCALL_REGS for SHmedia.
19078 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
19079 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
19080 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
19081 (TARGET_SWITCHES): New SH5 flags.
19082 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
19083 VALID_REGISTER_P to disable unsupported registers.
19084 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
19085 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
19086 (FUNCTION_ARG_PADDING): Define.
19087 (FASTEST_ALIGNMENT): Adjust.
19088 (SH_REGISTER_NAMES_INITIALIZER): New.
19089 (sh_register_names): Declare.
19090 (DEBUG_REGISTER_NAMES): Define.
19091 (REGISTER_NAMES): Define based on sh_register_names.
19092 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
19093 (sh_additional_register_names): Declare.
19094 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
19095 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
19096 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
19097 (REGISTER_NATURAL_MODE): Define.
19098 (FIRST_PSEUDO_REGISTER): Adjust.
19099 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
19100 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
19101 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
19102 (VECTOR_MODE_SUPPORTED_P): Define.
19103 (REG_CLASS_CONTENTS): Adjust.
19104 (SMALL_REGISTER_CLASSES): Adjust.
19105 (REG_ALLOC_ORDER): Adjust.
19106 (INDEX_REG_CLASS): Adjust.
19107 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
19108 (CONST_OK_FOR_LETTER_P): Adjust.
19109 (PREFERRED_RELOAD_CLASS): Adjust.
19110 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
19111 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
19112 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
19113 (FIRST_FP_PARM_REG): Adjust.
19114 (CALL_POPS_ARGS): Define.
19115 (FUNCTION_ARG_REGNO_P): Adjust.
19116 (struct sh_args): New fields.
19117 (GET_SH_ARG_CLASS): Adjust.
19118 (INIT_CUMULATIVE_ARGS): Adjust.
19119 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
19120 (FUNCTION_ARG_ADVANCE): Adjust.
19121 (FUNCTION_ARG): Adjust.
19122 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
19123 (FUNCTION_ARG_CALLEE_COPIES): Define.
19124 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
19125 (STRICT_ARGUMENT_NAMING): Define.
19126 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
19127 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
19128 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
19129 (SETUP_INCOMING_VARARGS): Adjust.
19130 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
19131 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
19132 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
19133 (SUBREG_OK_FOR_INDEX_P): Adjust.
19134 (EXTRA_CONSTRAINT_S): Update.
19135 (EXTRA_CONSTRAINT_T): New.
19136 (EXTRA_CONSTRAINT): Adjust.
19137 (GO_IF_LEGITIMATE_INDEX): Adjust.
19138 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
19139 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
19140 (MOVE_MAX): Adjust.
19141 (MAX_MOVE_MAX): Define.
19143 (CONST_COSTS): Adjust.
19144 (REGISTER_MOVE_COST): Adjust.
19145 (BRANCH_COST): Adjust.
19146 (TEXT_SECTION_ASM_OP): Adjust.
19147 (DBX_REGISTER_NUMBER): Adjust.
19148 (ASM_OUTPUT_DOUBLE_INT): New.
19149 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
19150 (PREDICATE_CODES): Adjust.
19151 (PROMOTE_MODE): Adjust.
19152 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
19153 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
19154 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
19155 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
19156 (DR0_REG, DR2_REG, DR4_REG): Renumber.
19157 (TR0_REG, TR1_REG, TR2_REG): New.
19158 (XD0_REG): Renumber.
19159 (UNSPEC_COMPACT_ARGS): New.
19160 (type): Added pt and ptabs.
19161 (length): Default to 4 on SHmedia. Default pt length to 12
19162 and 20 on SHmedia32 and SHmedia64, respectively.
19163 (pt): New function unit.
19164 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
19165 Add whitespace between operands of SHmedia instructions.
19167 (adddi3_media, addsi3_media): Adjust constraints.
19168 (subsi3) [SHmedia]: Force operand 1 into a register.
19169 (udivsi3_i1_media, udivsi3_i4_media): New.
19170 (udivsi3): Support SHmedia.
19171 (divsi3_i1_media, divsi3_i4_media): New.
19172 (divsi3): Support SHmedia.
19173 (anddi3, iordi3, xordi3): Adjust constraints.
19174 (zero_extendhidi2, zero_extendqidi2): New.
19175 (extendsidi2, extendhidi2, extendqidi2): New.
19176 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
19177 (pop_e, pop_fpul, pop_4): Likewise.
19178 (movsi_media): Support FP and BT registers.
19179 (movsi_media_nofpu): New. Adjust splits to DImode.
19180 (lduw, ldub): Renamed to zero_extend* above.
19181 (movqi_media): Fix typo.
19182 (movdi_media): Support FP and BT registers.
19183 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
19184 (movdi_const_32bit): New.
19185 (shori_media): Require immediate operand. Use `u' for output.
19186 (movdf_media, movsf_media): Simplified.
19187 (movdf_media_nofpu, movsf_media_nofpu): New.
19188 (movdf, movsf): Adjust
19189 (movv2sf, movv2sf, movv16sf): New.
19190 (beq_media, beq_media_i): Adjust constraints. Don't use
19191 scratch BT register.
19192 (bne_media, bne_media_i): Likewise.
19193 (bgt_media, bgt_media_i): Likewise.
19194 (bge_media, bge_media_i): Likewise.
19195 (bgtu_media, bgtu_media_i): Likewise.
19196 (bgeu_media, bgeu_media_i): Likewise.
19197 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
19198 bunordered): Emit jump insn. Force operands to registers when
19200 (jump_media, jump): Simplify.
19201 (call_compact, call_compact_rettramp): New.
19202 (call_value_compact, call_value_compact_rettramp): New.
19203 (call_media, call_value_media): Simplify.
19204 (sibcall_compact, sibcall_media): New.
19205 (call, call_value): Adjust for SHmedia and SHcompact.
19206 (sibcall, sibcall_value, untyped_call): Likewise.
19207 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
19208 (indirect_jump): Adjust for SHmedia.
19209 (casesi_jump_media): New.
19210 (nop): Re-enable for SHmedia.
19211 (call_site): Restrict to SH1.
19212 (casesi): Adjust for SHmedia.
19213 (casesi_shift_media, casesi_load_media): New.
19214 (return): Explicitly use PR register. Call return trampoline
19216 (return_i): Explicitly use PR register.
19217 (shcompact_return_tramp, shcompact_return_tramp_i): New.
19218 (return_media): Adjust.
19219 (shcompact_incoming_args): New.
19220 (epilogue): Adjust.
19221 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19222 (movstrsi): Disable on SH5.
19223 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19224 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19225 (subsf3, subsf3_media): Likewise.
19226 (mulsf3, mulsf3_media, mac_media): Likewise.
19227 (divsf3, divsf3_media): Likewise.
19228 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
19229 (floatsisf2, fux_truncsfsi2): Likewise.
19230 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
19232 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19233 (cmpunsf_media, cmpsf): Likewise.
19234 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19235 (abssf2, abssf2_media): Likewise.
19236 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19237 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19238 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
19239 (floatsidf2, fix_truncdfsi2): Likewise.
19240 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
19242 (cmpeqdf_media, cmpgtdf_media): Likewise.
19243 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19244 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19245 (absdf2, absdf2_media): Likewise.
19246 (extendsfdf2, extendsfdf2_media): Likewise.
19247 (truncsfdf2, truncsfdf2_media): Likewise.
19248 * config/sh/sh64.h: New file.
19249 * config/sh/t-sh64: New file.
19250 * config/sh/shmedia.h: New file.
19251 * config/sh/ushmedia.h: New file.
19252 * config/sh/sshmedia.h: New file.
19253 * configure.in: Added sh64-*-elf.
19254 * configure: Rebuilt.
19255 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
19256 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19257 (reg_class_from_letter): Use `b' for TARGET_REGS.
19258 (print_operand): Support `%M', `%m', `AND' and
19259 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
19260 (andcosts): Adjust for SHmedia.
19261 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19263 (target_reg_operand): New function.
19264 * config/sh/sh-protos.h (target_reg_operand): Declare.
19265 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19266 FP registers on SH5.
19267 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19269 (TARGET_REGISTER_P): New macro.
19270 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19271 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19272 (EXTRA_CONSTRAINT_S): New macro.
19273 (EXTRA_CONSTRAINT): Adjust.
19274 (FLOAT_TYPE_SIZE): Define to 32.
19275 (Pmode): DImode on SHmedia.
19276 (CONST_COSTS): Adjust for SHmedia literals.
19277 (PREDICATE_CODES): Added target_reg_operand.
19278 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19279 * config/sh/sh.md: Remove all attrs from SHmedia insns.
19280 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19281 (cmpdi): Accept SHmedia.
19282 (movdicc_false, movdicc_true): New insns.
19283 (movdicc): New expand.
19284 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19286 (addsi3_media): Match `S' constraint.
19287 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19288 (negdi2): Expand for SHmedia.
19289 (one_cmpldi2): New expand.
19290 (zero_extendsidi2): Change from expand to insn.
19291 (extendsidi2): Add constraints.
19292 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
19293 LD/ST address. Fix SI immediate loading split.
19294 (movhi_media, movqi_media, lduw, ldub): New insns.
19295 (movhi, movqi): Accept SHmedia.
19296 (shori_media, movdi_media): Relax input constraints. Split
19297 symbolic constants.
19298 (movdf_media, movsf_media): New insn. New split to movdi.
19299 (movdf, movsf): Match on SHmedia.
19300 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19301 bgeu_media): New insns and splits. New insns with `_i' suffix.
19302 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19303 (bunordered): New expand.
19304 (jump_compact): Renamed from `jump'.
19305 (jump_media): New insn.
19306 (jump): New expand.
19307 (call_media, call_value_media): New insns.
19308 (call, call_value): Adjust.
19309 (indirect_jump_compact): Renamed from `indirect_jump'.
19310 (indirect_jump_media): New insn.
19311 (indirect_jump): New expand.
19312 (untyped_call, return): Accept SHmedia.
19313 (return_media): New insn.
19314 (prologue, epilogue, blockage): Accept SHmedia.
19315 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19316 (sunordered): New expand.
19317 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19318 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19319 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19320 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19321 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19322 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19323 abssf2_media): New insns.
19324 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19325 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19326 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19327 floatdidf2, floatsidf2_media, fix_truncdfdi2,
19328 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19329 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19330 absdf2_media): New insns.
19331 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19332 (extendsfdf2_media, truncdfsf2_media): New insns.
19333 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
19334 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19335 * config/sh/sh.h (CONST_OK_FOR_J): Document.
19336 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19337 * config/sh/sh.md (adddi3): New expand.
19338 (adddi3_media, adddi3z_media): New insns.
19339 (adddi3_compact): Renamed from adddi3.
19340 (addsi3_media): Use add.l r63 to add constant zero.
19341 (subdi3): New expand.
19342 (subdi3_media): New insn.
19343 (subdi3_compact): Renamed from subdi3.
19344 (mulsidi3): New expand.
19345 (mulsidi3_media): New insn.
19346 (mulsidi3_compact): Renamed from mulsidi3.
19347 (umulsidi3): New expand.
19348 (umulsidi3_media): New insn.
19349 (umulsidi3_compact): Renamed from umulsidi3.
19350 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19351 (ashlsi3, ashrsi3, lshrsi3): Use them.
19352 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19353 (ashldi3, ashrdi3, lshrdi3): Use them.
19354 (zero_extendsidi2): New expand.
19355 (extendsidi2): New insn.
19356 (movsi_media): New insn. Split to movdi to load constants.
19357 (movsi): Enable for shmedia.
19358 (movdi_media): New insn. Use shori_media to load wide constants.
19359 (short_media): New insn.
19360 (movdi): Enable for shmedia.
19361 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
19362 * config/sh/sh.h (CPP_SPEC): Added `m5'.
19363 (SUBTARGET_CPP_SPEC): Added `!m5'.
19364 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19365 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
19366 to all other SH variants.
19367 (TARGET_DEFAULT): Set to SH1_BIT.
19368 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19369 (BITS_PER_WORD): Raise to 64 on shmedia.
19370 (MAX_BITS_PER_WORD): Change to 64.
19371 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19372 (INT_TYPE_SIZE): Keep as 32.
19373 (UNITS_PER_WORD): Raise to 8 on shmedia.
19374 (MIN_UNITS_PER_WORD): Keep as 4.
19375 (POINTER_SIZE): Raise to 64 on shmedia.
19376 (CONST_OK_FOR_J): New macro.
19377 (CONST_OK_FOR_LETTER_P): Use it.
19378 (processor_type): Add PROCESSOR_SH5.
19379 * config/sh/sh.md: Conditionalize all expands, insns and
19380 splits to TARGET_SH1.
19382 (addsi3_compact): Renamed from...
19383 (addsi3): Now an expand.
19384 (addsi3_media, subsi3_media): New insns.
19385 (subsi3): Don't negate constants with SHmedia.
19387 * hooks.c: New file.
19388 * hooks.h: New file.
19389 * Makefile.in (HOOKS_H): New.
19390 (TARGET_DEF_H): Added $(HOOKS_H).
19391 (OBJS): Added hooks.o.
19392 (cfgcleanup.o, bb-reorder.o): Added target.h.
19393 (hooks.o): Added dependencies.
19394 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19395 (TARGET_INITIALIZER): this.
19396 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19397 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19398 * bb-reorder.c: Include target.h.
19399 (reorder_basic_blocks): Skip if cannot modify jumps.
19400 * cfgcleanup.c: Include target.h.
19401 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19403 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19405 * config/mips/mips.md (casesi_internal, casesi_internal_di):
19406 Protect jump delay slot instructions with .set noreorder and
19409 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19411 * config/mips/mips.md (casesi_internal_di): Calculate
19412 the index into the target offset table correctly.
19414 2002-02-08 Richard Henderson <rth@redhat.com>
19416 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19417 * final.c (output_addr_const): Accept and discard SUBREG.
19418 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19419 mark them unknown instead.
19420 (simplify_subtraction): Handle RTX_UNKNOWN.
19421 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19423 2002-02-08 David Edelsohn <edelsohn@gnu.org>
19425 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19427 2002-02-08 Richard Henderson <rth@redhat.com>
19429 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19431 2002-02-08 Andreas Jaeger <aj@suse.de>
19433 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19434 * config/i386/t-linux64: New file.
19436 2002-02-08 Jakub Jelinek <jakub@redhat.com>
19438 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19439 * c-parse.in (compstmt): Clear last_expr_type.
19441 2002-02-07 Richard Henderson <rth@redhat.com>
19443 * loop.c (strength_reduce): Sink final_value when not
19446 2002-02-07 David O'Brien <obrien@FreeBSD.org>
19448 * config/sparc/freebsd.h: Fix mismatched spec {.
19450 2002-02-07 Richard Henderson <rth@redhat.com>
19452 * cfgrtl.c: Include recog.h and insn-config.h.
19453 (keep_with_call_p): Fix general_operand invocation.
19454 * Makefile.in (cfgrtl.o): Update dependencies.
19456 2002-02-07 Kazu Hirata <kazu@hxi.com>
19458 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19459 comment. Accept HImode only if TARGET_H8300.
19461 2002-02-07 Eric Christopher <echristo@redhat.com>
19463 * config/mips/crtn.asm: Cleanup #ifdefs.
19465 2002-02-07 Eric Christopher <echristo@redhat.com>
19467 * config/mips/crti.asm: Add changes for mips16. mips16 uses
19468 register 7 as RA instead of $31.
19469 * config/mips/crtn.asm: Ditto.
19470 * config/mips/mips.c (mips_move_2words): Add case for
19471 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19472 (compute_frame_size): Fix typo.
19473 (save_restore_insns): Ditto. Make documentation about using
19474 register $7 as return register more precise.
19475 (mips_expand_epilogue): Fix comment. Add code to work around not
19476 being able to add to the stack pointer directly.
19477 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19478 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19481 2002-02-07 Tom Rix <trix@redhat.com>
19483 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
19484 immediates in ldu and stdu DS opcode field.
19485 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19486 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19487 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19489 2002-02-07 Jeff Sturm <jsturm@one-point.com>
19491 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19492 offset for stack bias.
19494 2002-02-07 H.J. Lu <hjl@gnu.org>
19496 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19498 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
19500 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19502 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
19504 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19505 * i386.c (x86_order_regs_for_local_alloc): New global function.
19506 * i386.h (REG_ALLOC_ORDER): CLeanup.
19507 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19509 2002-02-07 Richard Henderson <rth@redhat.com>
19511 PR optimization/2463
19512 * alias.c (find_base_value): Recall base values for fixed hard regs.
19513 * loop.c (loop_regs_update): Don't use single_set on non-insns.
19515 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
19517 * config/mips/mips.md (define_delay) [mips16]: Adjust required
19520 2002-02-06 Richard Henderson <rth@redhat.com>
19523 * stmt.c (resolve_operand_name_1): Take more care with mixed
19524 named and unnamed operands.
19526 2002-02-06 Janis Johnson <janis187@us.ibm.com>
19527 Jan Hubicka <jh@suse.cz>
19529 * loop.c (remove_constant_addition): Avoid clobbering a shared
19532 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19534 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19535 * config/s390/t-linux64: New file.
19536 * config/s390/libgcc-glibc.ver: New file.
19538 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19540 * config/s390/linux64.h: Delete file.
19541 * config/s390/s390x.h: New file.
19542 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19543 as target header file.
19544 * config/s390/linux.h (TARGET_VERSION): Define depending on
19545 DEFAULT_TARGET_64BIT.
19546 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19547 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19548 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19549 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19550 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19551 (EXTRA_SPEC): New define.
19552 * config/s390/s390.h (TARGET_VERSION): Define depending on
19553 DEFAULT_TARGET_64BIT.
19554 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19556 2002-02-06 Jason Merrill <jason@redhat.com>
19558 * c-decl.c (finish_function): Warn about a non-void function with
19559 no return statement and no abnormal exit.
19560 (current_function_returns_abnormally): New variable.
19561 (start_function): Clear it.
19562 (struct c_language_function): Add returns_abnormally.
19563 (push_c_function_context): Save it.
19564 (pop_c_function_context): Restore it.
19565 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19566 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19567 an explicit return type.
19568 * c-tree.h: Declare current_function_returns_abnormally.
19569 (C_FUNCTION_IMPLICIT_INT): New macro.
19570 * c-typeck.c (build_function_call): Set it.
19571 (c_expand_return): Set current_function_returns_value even if the
19572 value is erroneous.
19574 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19577 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19578 unsafe for reevaluation.
19580 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19583 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19584 EXPR_STMT, but COMPOUND_STMT, recurse into it.
19586 2002-02-06 Richard Henderson <rth@redhat.com>
19588 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19589 be a general_operand. Dest for function value must be a pseudo.
19591 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
19593 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19594 as SYMBOL_REFs from the constant pool.
19596 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
19598 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19599 passed by invisible reference.
19601 2002-02-05 Richard Henderson <rth@redhat.com>
19603 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19605 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
19607 Implement using "base addresses" in insn operands as default.
19608 * config/mmix/mmix.c (mmix_conditional_register_usage): if
19609 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19610 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19611 used to read the rtx value.
19612 (mmix_target_asm_function_epilogue): Fix spacing.
19613 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19614 (mmix_legitimate_address): Ditto.
19615 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19616 should be loaded with a GETA insn. Don't allocate needless extra
19617 char for nul termination and fix misleading comment.
19618 (mmix_print_operand_address): Handle constants if
19619 TARGET_BASE_ADDRESSES.
19620 (mmix_output_register_setting): Use base addressing if
19621 TARGET_BASE_ADDRESSES and the number of insns is 3.
19622 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19623 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19624 to use R as constraint, add LDA to match s.
19625 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19626 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19627 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19628 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19629 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19630 order with other fixed registers.
19631 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
19632 other parameter/call-clobbered registers.
19633 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
19634 -mbase-addresses, -mno-base-addresses.
19635 (MMIX Options): Ditto.
19637 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
19639 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
19641 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
19643 * config/rs6000/altivec.h: Change elem to _S_elem.
19645 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19647 * config/netbsd.h (WCHAR_TYPE): Define.
19648 (WCHAR_TYPE_SIZE): Ditto.
19649 (WINT_TYPE): Ditto.
19650 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
19651 (WCHAR_UNSIGNED): Ditto.
19652 (WCHAR_TYPE_SIZE): Ditto.
19653 (WINT_TYPE): Ditto.
19654 * config/arm/netbsd.h: Likewise.
19655 * config/i386/netbsd-elf.h: Likewise.
19656 * config/i386/netbsd.h: Likewise.
19657 * config/m68k/netbsd-elf.h: Likewise.
19658 * config/m68k/netbsd.h: Likewise.
19659 * config/ns32k/netbsd.h: Likewise.
19660 * config/sparc/netbsd.h: Likewise.
19661 * config/vax/netbsd.: Likewise.
19663 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
19665 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
19666 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
19667 (TARGET_INITIALIZER): this.
19668 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
19669 (BITFIELD_NBYTES_LIMITED): Markup fix.
19670 * tree.h (default_ms_bitfield_layout_p): Declare.
19671 (record_layout_info): Added prev_field.
19672 * tree.c (default_ms_bitfield_layout_p): New fn.
19673 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
19674 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
19675 * stor-layout.c: Include target.h.
19676 (start_record_layout): Initialize prev_field.
19677 (place_field): Handle MS bit-field layout, and disregard
19678 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
19679 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
19680 * Makefile.in (stor-layout.o): Adjust dependencies.
19682 2002-02-05 Jason Merrill <jason@redhat.com>
19684 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
19686 2002-02-05 Andreas Jaeger <aj@suse.de>
19688 * crtstuff.c: Fix comments.
19690 2002-02-05 Richard Henderson <rth@redhat.com>
19693 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
19694 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
19697 * config/mips/mips.c (function_arg): Handle TImode.
19698 (function_arg_advance): Likewise.
19700 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19702 * config/rs6000/altivec.h (vec_step_help): Rename to
19705 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19707 * config/rs6000/altivec.h: Fix typos.
19709 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19711 * config/arm/netbsd.h: Correct a comment.
19713 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19715 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
19716 building void typed builtins.
19718 * config/rs6000/altivec.h (vec_ld*): Fix typos.
19719 (vec_step): Implement for C++.
19721 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19723 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
19725 2002-02-04 Richard Henderson <rth@redhat.com>
19727 * combine.c (nonzero_bits): Re-introduce special case for
19728 sp/fp/ap wrt REGNO_POINTER_ALIGN.
19730 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19732 * doc/extend.texi: Warn about unsupported usage of altivec
19735 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
19736 (altivec_predicate_*): New.
19738 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
19739 Add C++ version of vec_*() functions.
19741 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
19742 (bdesc_2arg): Remove altivec predicates.
19743 (altivec_expand_builtin): Handle predicates.
19744 (altivec_init_builtins): Handle predicates.
19745 (altivec_expand_predicate_builtin): New.
19747 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19749 * pa.c (DO_FRAME_NOTES): Move forward.
19750 (store_reg): Revise handling of frame notes.
19751 (load_reg): Likewise.
19752 (set_reg_plus_d): Likewise.
19753 (hppa_expand_prologue): Likewise.
19754 (hppa_expand_epilogue): Likewise.
19756 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19758 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
19760 2002-02-04 Jakub Jelinek <jakub@redhat.com>
19762 PR c/4475, c++/3780:
19763 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
19764 * c-common.h (SWITCH_TYPE): Define.
19765 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
19766 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
19767 Rename spareness variable to sparseness.
19768 (expand_end_case_type): Renamed from expand_end_case, use orig_type
19769 if non-NULL instead of TREE_TYPE (orig_index).
19770 * tree.h (expand_end_case_type): Renamed from expand_end_case.
19771 (expand_end_case): Define using expand_end_case_type.
19772 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
19773 to expand_end_case_type.
19774 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
19776 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19778 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
19779 (BIGGEST_ALIGNMENT): Change to 128.
19781 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19783 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
19785 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19787 * pa.md (call_internal_reg_64bit): Remove unused variable.
19789 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
19791 * config/arm/arm.h (machine_function): Add uses_anonymous_args
19793 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
19794 * config/arm/arm.c (current_function_anonymous_args): Delete,
19795 replace uses with cfun->machine->uses_anonymous_args.
19796 (arm_reorg): Do not reset uses_anonymous_args.
19798 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
19799 any geenral register.
19801 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
19803 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
19806 2002-02-04 Richard Henderson <rth@redhat.com>
19808 * combine.c (force_to_mode): Remove STACK_BIAS code.
19809 (nonzero_bits): Likewise. Replace sp/fp special case with
19810 REGNO_POINTER_ALIGN.
19812 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
19813 (HARD_FRAME_POINTER_REGNUM): New.
19814 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
19815 (FIXED_REGS, CALL_USED_REGS): Update.
19816 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
19817 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
19818 (HARD_REGNO_NREGS): Update for SFP.
19819 (STACK_POINTER_OFFSET): Include bias here ...
19820 (FIRST_PARM_OFFSET): ... not here.
19821 (STACK_BIAS): Remove.
19822 (INIT_EXPANDERS): New.
19823 (STARTING_FRAME_OFFSET): Do not include bias.
19824 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
19825 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
19826 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
19827 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
19828 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
19829 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
19830 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
19831 (MUST_SAVE_REGISTER): Likewise.
19832 (sparc_flat_function_prologue): Likewise.
19833 (sparc_flat_function_epilogue): Likewise.
19834 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
19835 (sparc_init_modes): SFP is GENERAL_REGS.
19836 (sparc_builtin_saveregs): SFP does not have bias applied.
19838 2002-02-04 Richard Henderson <rth@redhat.com>
19840 * config/alpha/alpha.c (current_function_is_thunk): Don't check
19841 current_function_is_thunk.
19842 (alpha_sa_mask): Distinguish between current_function_is_thunk
19843 called from ASM_OUTPUT_MI_THUNK and not.
19844 (alpha_does_function_need_gp): Thunks always need gp.
19845 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19846 (alpha_output_mi_thunk_osf): New.
19847 * config/alpha/alpha-protos.h: Update.
19848 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
19850 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
19852 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
19853 function types, not when they're taken away.
19855 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
19857 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
19858 CODE_LABEL and jump table when replacing a table jump with a
19861 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
19863 * config/s390/s390-protos.h (legitimize_la_operand,
19864 s390_secondary_input_reload_class, s390_plus_operand,
19865 s390_expand_plus_operand): Add prototypes.
19867 config/s390/s390.c (s390_secondary_input_reload_class,
19868 s390_plus_operand, s390_expand_plus_operand): New functions.
19870 (struct s390_address): New member 'pointer'.
19871 (s390_decompose_address): Compute it.
19872 (legitimate_la_operand_p): Use it.
19873 (legitimize_la_operand): New function.
19874 (movti, movdi, movdf splitters): Call it.
19876 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
19877 (PREDICATE_CODES): Add s390_plus_operand.
19879 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
19880 (la_ccclobber): Allow GENERAL_REGS as output operand.
19882 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
19883 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
19884 (*la_64, *la_31, reload_indi, reload_insi): ... these.
19886 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
19888 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
19889 register names for regular asm () construct.
19891 2002-02-04 Jakub Jelinek <jakub@redhat.com>
19893 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
19896 2002-02-04 Jakub Jelinek <jakub@redhat.com>
19898 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
19901 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
19903 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
19904 constant pool to be identical by string address and index.
19906 2002-02-04 Anthony Green <green@redhat.com>
19908 * output.h (SECTION_OVERRIDE): Define.
19909 * varasm.c (named_section): Obey SECTION_OVERRIDE.
19911 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
19913 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
19914 by existing arm*-*-netbsd* (a.out) target.
19915 (ns32k-*-netbsdelf*): Likewise.
19916 (sparc-*-netbsdelf*): Likewise.
19917 (vax-*-netbsdelf*): Likewise.
19919 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
19921 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
19922 headers and libobjc headers.
19924 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
19926 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
19927 (_mingw.h): Remove duplicate include.
19929 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
19931 * config.gcc: Set cpu_type to m68k for 68010, as well.
19932 (m68010-*-netbsdelf*): New...
19933 (m68k*-*-netbsdelf*): ...targets.
19934 * config/m68k/netbsd-elf.h: New file.
19936 2002-02-02 Kazu Hirata <kazu@hxi.com>
19938 * config/h8300/h8300.c (hand_list): Move inside function_arg.
19940 2002-02-02 Kazu Hirata <kazu@hxi.com>
19942 * config/h8300/h8300.c (h8_push_ops): Move inside
19944 (h8_pop_ops): Likewise.
19945 (h8_move_ops): Likewise.
19947 2002-02-02 Kazu Hirata <kazu@hxi.com>
19949 * config/h8300/h8300.c (os_task): Make it static.
19950 (monitor): Likewise.
19951 (pragma_saveall): Likewise.
19953 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
19955 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
19956 constant is a valid sign-extension for Pmode.
19958 2002-02-02 Kazu Hirata <kazu@hxi.com>
19960 * config/h8300/h8300.c: Fix formatting.
19962 2002-02-02 Kazu Hirata <kazu@hxi.com>
19964 * config/h8300/h8300.md: Fix formatting.
19966 2002-02-02 Kazu Hirata <kazu@hxi.com>
19968 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
19969 predicates of operands[1]. Split the patterns for each
19972 2002-02-02 Kazu Hirata <kazu@hxi.com>
19974 * config/h8300/h8300.md (xor patterns): Tighten the predicates
19975 of operands[1] to register_operand.
19977 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
19979 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
19980 * cpphash.c (_cpp_init_hashtable): Similarly.
19981 * cppinit.c (cpp_create_reader): Default the signed_char flag.
19982 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
19983 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
19984 (cpp_handle_option): Handle the new options.
19985 * cpplex.c (cpp_interpret_charconst): Use new flag.
19986 * cpplib.h (struct cpp_options): New member signed_char.
19987 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
19988 (cpp_options): Handle -fsigned-char and -funsigned-char.
19989 (static_specs): Remove signed_char_spec.
19990 (do_spec1): Don't handle %c.
19991 * system.h: Poison SIGNED_CHAR_SPEC.
19992 * tradcif.y (yylex): Use flag_signed_char.
19993 * tradcpp.h (flag_signed_char): New.
19994 * tradcpp.c (flag_signed_char): New.
19995 (main): Handle new command-line options.
19996 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
19998 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
19999 * avr/avr.h: Remove old comments.
20000 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
20001 (CC1_SPEC): Pass -fsigned-char if -mic*.
20002 (SIGNED_CHAR_SPEC): Remove.
20004 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
20006 2002-02-01 Eric Christopher <echristo@redhat.com>
20008 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
20009 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
20010 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
20011 (ASM_OUTPUT_REG_POP): Ditto.
20013 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20015 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
20018 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20020 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
20022 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20025 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
20028 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20030 * cfganal.c: Include tm_p.h.
20031 (keep_with_call_p): Fix the test that determines if a register holds
20032 the return value of a call.
20034 2002-02-01 DJ Delorie <dj@redhat.com>
20036 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
20037 we are given conflicting registers, switch to the other one we
20038 had allocated for us.
20039 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
20040 as TImode so we know when the "other" register is available.
20042 2002-02-01 David O'Brien <obrien@FreeBSD.org>
20044 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
20047 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20049 * cfganal.c (keep_with_call_p): New function.
20050 (flow_call_edges_add): Prevent splitting a block between a call and
20051 a single-set instruction that should be kept in the same block.
20053 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
20055 * doc/install.texi (avr): Update outdated URL.
20057 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
20059 * config/stormy16/stormy16.md (pushqi): New.
20063 (movhi): Remove stack operands.
20065 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
20066 nonimmediate_nonstack_operand.
20067 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
20069 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
20072 2002-01-31 Jason Merrill <jason@redhat.com>
20074 * Makefile.in (c-parse.c): Handle .output file.
20075 * objc/Make-lang.in (objc-parse.c): Likewise.
20077 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
20079 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
20080 the -me[lb] option is given. Don't output the default flag
20083 2002-01-31 Zack Weinberg <zack@codesourcery.com>
20085 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
20086 the primary source file; this has not been done yet.
20087 * c-decl.c (c_expand_body): Reset input_filename from
20088 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
20090 2002-01-31 Kazu Hirata <kazu@hxi.com>
20092 * rtlanal.c (subreg_regno_offset): Do not use
20093 SUBREG_REGNO_OFFSET.
20094 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
20095 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
20097 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20099 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
20100 version rather than GNATS version in --version output.
20102 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
20104 * ifcvt.c (noce_process_if_block): Make a copy of the destination
20105 when copying back from a temporary.
20107 2002-01-30 Richard Henderson <rth@redhat.com>
20109 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
20110 and new_dest are the same.
20112 2002-01-30 Richard Henderson <rth@redhat.com>
20115 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
20116 * rtl.c (note_insn_name): Update.
20117 * emit-rtl.c (remove_unnecessary_notes): Kill it.
20118 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
20119 to perform loop rotation.
20120 (expand_exit_loop_top_cond): New.
20121 * tree.h (expand_exit_loop_top_cond): Declare it.
20122 * c-semantics.c (genrtl_while_stmt): Use it.
20123 (genrtl_for_stmt): Likewise.
20125 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
20127 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
20128 arguments to 64-bit boundaries on 64-bit ABIs.
20130 2002-01-30 Steve Ellcey <sje@cup.hp.com>
20132 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
20134 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20136 * c-decl.c (grokdeclarator): Handle type being a typedef for an
20139 2002-01-30 David O'Brien <obrien@FreeBSD.org>
20141 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
20142 * config/sparc/sparc_bi.h: Remove file.
20143 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
20145 2002-01-30 Richard Henderson <rth@redhat.com>
20147 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
20149 2002-01-30 Zack Weinberg <zack@codesourcery.com>
20151 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
20153 2002-01-30 Jason Merrill <jason@redhat.com>
20155 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
20156 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
20157 (reg_save): Use DW_CFA_offset_extended_sf instead.
20159 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
20161 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20163 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
20166 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
20168 * rs6000.md ("*call_value_local32"): Remove constraints.
20169 ("*call_value_local64"): Same.
20170 ("*call_value_indirect_nonlocal_aix32"): Same.
20171 ("*call_value_nonlocal_aix32"): Same.
20172 ("*call_value_indirect_nonlocal_aix64"): Same.
20173 ("*call_value_nonlocal_aix64"): Same.
20174 ("*call_value_nonlocal_sysv"): Same.
20176 2002-01-29 Richard Henderson <rth@redhat.com>
20178 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
20180 2002-01-29 Richard Henderson <rth@redhat.com>
20182 * expr.c (force_operand): Ignore flag_pic for detecting pic
20184 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
20185 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
20186 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
20187 instead of open-coded loop.
20188 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
20189 be fixed when in use.
20191 2002-01-29 Richard Henderson <rth@redhat.com>
20193 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
20194 * sched-rgn.c (propagate_deps): Update them.
20195 * sched-deps.c (sched_analyze_insn): Update them. Flush the
20196 clobbers list when either gets too long.
20198 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20200 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
20201 and INDEX_REGS the same as GENERAL_REGS.
20202 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
20204 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20206 * tree.c (build_nonstandard_integer_type): Correct prototype.
20208 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
20210 * config/s390/s390.md (movstrsico, movstrdix_64,
20211 movstrsix_31): Remove, replace by ...
20212 (movstrdi_short, movstrsi_short, movstrdi_long,
20213 movstrsi_long): ... these. New.
20214 (movstrdi, movstrsi): Adapt.
20216 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
20217 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
20218 Remove unnecessary CC clobber.
20219 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20220 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20222 (divmoddi4): Don't partially initialize TImode register.
20224 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
20226 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20228 2002-01-29 Richard Henderson <rth@redhat.com>
20230 * flow.c (print_rtl_and_abort): Remove.
20231 (print_rtl_and_abort_fcn): Remove.
20232 (verify_local_live_at_start): Use dump_bb instead.
20233 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20234 (verify_wide_reg_1): Return 2 on mode test failure.
20236 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20238 PR c/3325, c/3326, c/2511, c/3347
20239 * c-decl.c (enum_decl_context): Remove BITFIELD.
20240 (grokdeclarator): Take bitfield width as an input.
20241 Ensure bitfields are given the correct type. Perform
20242 bitfield width validation with build_bitfield_integer_type
20243 rather than waiting for finish_struct.
20244 (grok_typename, grok_typename_in_parm_context, start_decl,
20245 push_parmdecl, grokfield, start_function): Update calls to
20247 (build_bitfield_integer_type): New function.
20248 (finish_struct): Move bitfield validation to grokdeclarator
20249 and build_bitfield_integer_type.
20250 * tree.c (build_nonstandard_integer_type): New function.
20251 * tree.h (build_nonstandard_integer_type): New prototype.
20253 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20255 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20258 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20259 don't ignore unrecognized -W* options.
20260 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20261 * cpplib.h (cpp_handle_option): Adjust prototype.
20262 * c-decl.c (c_decode_options): Pass 0 as last argument to
20266 * gcc.c (cpp_unique_options): Split from cpp_options.
20267 (cpp_options): Source cpp_unique_options.
20268 (default_compilers): Use cpp_unique_options instead of cpp_options
20269 when used together with cc1_options.
20270 (static_specs): Add cpp_unique_options.
20271 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20272 when used together with cc1_options.
20274 2002-01-29 Kazu Hirata <kazu@hxi.com>
20276 * config/h8300/h8300-protos.h: Update the prototype of
20278 * config/h8300/h8300.c (output_a_shift): Remove an unused
20279 argument 'insn'. Remove redundant code.
20280 * config/h8300/h8300.md: Adust to the new prototype of
20283 2002-01-29 Kazu Hirata <kazu@hxi.com>
20285 * config/h8300/h8300-protos.h: Update the prototypes of
20286 emit_a_rotate and expand_a_rotate.
20287 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20288 first argument to 'enum rtx_code'.
20289 (expand_a_rotate): Likewise.
20291 2002-01-28 Kazu Hirata <kazu@hxi.com>
20293 * config/h8300/h8300-protos.h: Update the prototype of
20295 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20297 * config/h8300/h8300.md: Adjust to the new prototype.
20299 2002-01-28 Kazu Hirata <kazu@hxi.com>
20301 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20304 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
20306 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20307 is a fixed register before returning pic_offset_table_rtx.
20308 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20309 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20311 2002-01-28 Jason Merrill <jason@redhat.com>
20313 * dwarf2.h: Sync with src version.
20315 2002-01-28 Paul Koning <pkoning@equallogic.com>
20317 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20318 BT_FN_VOID_PTR_VAR.
20319 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20320 * doc/extend.texi (__builtin_prefetch): Update documentation:
20321 first argument is now const void ptr.
20323 2002-01-28 Kazu Hirata <kazu@hxi.com>
20325 * config/h8300/h8300-protos.h: Remove an unused prototype.
20327 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
20329 * toplev.c (lang_independent_init): Round up identifier size.
20331 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20333 * config.gcc: Revert previous change.
20335 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
20337 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20339 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20341 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20342 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
20343 other non-elf netbsd config frags.
20344 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20345 collect2 will does that.
20346 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20347 shared-lib frobbing will work.
20349 2002-01-28 Kazu Hirata <kazu@hxi.com>
20351 * config/h8300/h8300.h: Fix formatting.
20352 * config/h8300/h8300.md: Likewise.
20354 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
20356 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20357 the old, removed AAA_standards fix.
20358 * fixinc/fixincl.x: Rebuilt.
20360 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
20362 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20363 atexit call in crtbegin, hooked in after call to frame_dummy;
20364 register EH before registering __fini__start.
20366 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
20368 * config/rs6000/altivec.h: Remove spurious semicolons.
20370 2002-01-27 Kazu Hirata <kazu@hxi.com>
20372 * config/h8300/h8300.md: Replace dead bit extraction patterns
20373 with ones that work.
20375 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20377 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20378 if not STRICT_ALIGNMENT.
20379 * rtl.h (MEM_ALIGN): Likewise.
20381 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
20383 * doc/invoke.texi (-fdump-translation-unit): Revert this
20384 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
20386 2002-01-27 Kazu Hirata <kazu@hxi.com>
20388 * config/h8300/h8300.md (define_constants): New.
20389 (anonymous patterns) Use defined constants appropriately.
20391 2002-01-27 Kazu Hirata <kazu@hxi.com>
20393 * config/h8300/h8300.c (function_arg): Remove redundant code.
20395 2002-01-26 Richard Henderson <rth@redhat.com>
20397 * sched-deps.c (reg_pending_uses_head): New.
20398 (reg_pending_barrier): Rename from reg_pending_sets_all.
20399 (find_insn_list): Don't mark inline.
20400 (find_insn_mem_list): Remove.
20401 (add_dependence_list, add_dependence_list_and_free): New.
20402 (flush_pending_lists): Replace only_write param with separate
20403 for_read and for_write parameters. Update all callers. Use
20404 add_dependence_list_and_free.
20405 (sched_analyze_1): Do not add reg dependencies here; just set
20406 the pending bits. Use add_dependence_list.
20407 (sched_analyze_2): Likewise.
20408 (sched_analyze_insn): Replace schedule_barrier_found with
20409 reg_pending_barrier. Add all dependencies for pending reg
20410 uses, sets, and clobbers.
20411 (sched_analyze): Don't add reg dependencies for calls, just
20412 set pending bits. Use regs_invalidated_by_call. Treat
20413 sched_before_next_call as a normal list, not a fake insn.
20414 (init_deps): No funny init for sched_before_next_call.
20415 (free_deps): Free pending mems lists. Don't zero reg_last.
20416 (init_deps_global): Init reg_pending_uses.
20417 (finish_deps_global): Free it.
20418 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
20419 (find_insn_mem_list): Remove.
20420 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20421 (propagate_deps): Use them. Zero temp mem lists.
20423 2002-01-26 Richard Henderson <rth@redhat.com>
20425 * Makefile.in (CRTSTUFF_CFLAGS): New.
20426 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20427 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20428 crtstuff.c instead of alpha assembly version.
20429 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20430 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
20431 not FORCE_{INIT,FINI}_SECTION_ALIGN.
20432 (__do_global_dtors_aux): Mark used.
20433 (frame_dummy, __do_global_ctors_aux): Mark used.
20434 (fini_dummy, init_dummy): Remove.
20436 * config/alpha/crtbegin.asm: Remove file.
20437 * config/alpha/crtend.asm: Remove file.
20438 * config/alpha/t-crtbe: Remove file.
20439 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20440 (LINK_EH_SPEC): New.
20442 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20443 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
20444 calling constructors.
20445 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20447 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20448 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20449 CRT_END_INIT_DUMMY hack.
20450 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20451 FORCE_{INIT,FINI}_SECTION_ALIGN.
20453 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20454 FORCE_{INIT,FINI}_SECTION_ALIGN.
20456 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20457 invocation sequence.
20458 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20460 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20461 (FORCE_CODE_SECTION_ALIGN): New.
20463 2002-01-26 Richard Henderson <rth@redhat.com>
20465 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20467 2002-01-26 Richard Henderson <rth@redhat.com>
20469 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20470 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20472 2002-01-26 Kazu Hirata <kazu@hxi.com>
20474 * config/h8300/h8300.md: Remove bit extraction patterns that
20475 cannot be triggered.
20476 Restrict each bit extraction pattern to a variant on which the
20479 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
20481 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20483 2002-01-26 Kazu Hirata <kazu@hxi.com>
20485 * config/h8300/h8300.md: Remove bit test patterns that cannot
20487 Restrict each bit test pattern to a variant on which the
20490 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20492 * builtins.c (expand_builtin_strncat): Remove redundant check for
20495 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20497 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20499 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20502 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20504 * dbxout.c (dbxout_init): Use assemble_name rather than just
20505 stripping off the first character.
20506 (dbxout_source_file): Likewise.
20508 2002-01-25 DJ Delorie <dj@redhat.com>
20510 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20511 using rtx_equal_p, not by comparing pointers.
20513 2002-01-25 Steve Ellcey <sje@cup.hp.com>
20515 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20516 for PIC_OFFSET_TABLE_REGNUM.
20517 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20519 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20521 * config.gcc (x86_64-*-freebsd*): New target.
20522 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20524 (i[34567]86-*-freebsd*): Don't include svr4.h.
20525 * config/i386/freebsd64.h: New file.
20527 2002-01-25 Douglas B Rupp <rupp@gnat.com>
20529 * config/alpha/x-vms (version): Make static.
20531 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20532 in previous checkin.
20534 * Makefile.in (install-headers-cp): New target.
20535 * config.gcc (alpha-dec-*vms*): Install headers with
20538 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
20540 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20543 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20545 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20546 of compare_tree_int.
20547 (expand_builtin_strncat): Likewise.
20548 * c-decl.c (finish_struct): Use tree_low_cst.
20549 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20550 * tree.c (compare_tree_int): Likewise.
20552 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
20554 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20555 adjustments even if they are implemented by more than two insns.
20557 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
20559 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
20560 * df.h (struct ref): Kill B.
20561 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20563 * basic-block.h (PROP_EQUAL_NOTES): New flag.
20564 * flow.c (propagate_one_insn): Use it.
20565 (mark_used_regs): Handle NIL.
20567 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20569 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20572 2002-01-25 David Edelsohn <edelsohn@gnu.org>
20574 * rs6000.md (prefetch): Make address V4SI mode so that the address
20575 is restricted to legitimate form for instruction.
20577 2002-01-25 Bob Wilson <bob.wilson@acm.org>
20579 * doc/install.texi (xtensa-*-elf): New target.
20580 (xtensa-*-linux*): New target.
20581 * doc/contrib.texi: Add myself.
20583 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
20585 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20586 purpose register to hold an SImode (or smaller) value.
20588 2002-01-25 Jakub Jelinek <jakub@redhat.com>
20590 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20592 * crtstuff.c: Likewise.
20594 2002-01-25 Kazu Hirata <kazu@hxi.com>
20596 * config/h8300/h8300.md (negation patterns): Tighten
20597 predicates to register_operand.
20599 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
20601 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20604 * builtins.c (expand_builtin_prefetch): Same.
20606 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20608 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20611 2002-01-24 Kazu Hirata <kazu@hxi.com>
20613 * config/h8300/h8300.c (print_operand): Remove support for
20614 operand character 'A'.
20615 * config/h8300/h8300.md (three anonymous patterns): Replace
20616 operand character 'A' with either 'T' or 'S'.
20618 2002-01-24 Kazu Hirata <kazu@hxi.com>
20620 * config/h8300/h8300.c (print_operand): Remove support for
20621 operand character 'U'.
20623 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
20625 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
20627 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
20629 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20630 values to be assigned to the stack pointer.
20632 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
20634 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
20635 to const_double needs to be done right for big-endian systems.
20637 2002-01-24 Jason Merrill <jason@redhat.com>
20640 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
20641 to can_throw_internal.
20643 2002-01-23 Richard Henderson <rth@redhat.com>
20645 * fold-const.c (fold): Change UINT_MAX test to check vs precision
20646 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
20648 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20650 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
20651 (symGOT2reg): Use them, then set as GOT value as unchanging.
20652 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
20653 as a temporary, if possible.
20654 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
20655 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
20657 2002-01-23 Kazu Hirata <kazu@hxi.com>
20659 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
20660 accept to accept 0x80 as operands[2].
20662 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20664 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
20666 2002-01-23 Richard Henderson <rth@redhat.com>
20668 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
20670 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
20672 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
20673 (parmlist_or_identifiers_1): Verify that only a parmlist follows
20676 2002-01-23 Richard Henderson <rth@redhat.com>
20678 * expr.c (move_by_pieces_1): Extend size before negation.
20680 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
20681 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
20682 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
20683 * config/m68k/t-m68kelf: Likewise.
20685 2002-01-23 Bob Wilson <bob.wilson@acm.org>
20687 * config/xtensa/elf.h: New file.
20688 * config/xtensa/lib1funcs.asm: New file.
20689 * config/xtensa/lib2funcs.S: New file.
20690 * config/xtensa/linux.h: New file.
20691 * config/xtensa/t-xtensa: New file.
20692 * config/xtensa/xtensa-config.h: New file.
20693 * config/xtensa/xtensa-protos.h: New file.
20694 * config/xtensa/xtensa.c: New file.
20695 * config/xtensa/xtensa.h: New file.
20696 * config/xtensa/xtensa.md: New file.
20697 * config.gcc (xtensa-*-elf*): New target.
20698 (xtensa-*-linux*): New target.
20699 * cse.c (canon_hash): Compare rtx pointers instead of register
20700 numbers. This is required for the Xtensa port.
20701 * integrate.c (copy_insn_list): Handle case where the static
20702 chain is in memory and the memory address has to be copied to
20704 * doc/invoke.texi (Option Summary): Add Xtensa options.
20705 (Xtensa Options): New node.
20706 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
20708 2002-01-23 Zack Weinberg <zack@codesourcery.com>
20710 * diagnostic.c (internal_error): Do ICE suppression only
20711 when ENABLE_CHECKING is not defined.
20713 * c-typeck.c (require_complete_type): Return error_mark_node
20714 if type is error_mark_node.
20716 2002-01-23 Janis Johnson <janis187@us.ibm.com>
20718 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
20719 -Os and issue a warning.
20721 2002-01-23 Zack Weinberg <zack@codesourcery.com>
20723 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
20724 current (lack of) need for host configuration by hand.
20726 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
20727 references. Documentation of some target macros moved from
20728 hostconfig.texi to tm.texi.
20730 2002-01-23 Will Cohen <wcohen@redhat.com>
20732 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
20735 2002-01-23 Kazu Hirata <kazu@hxi.com>
20737 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
20740 2002-01-23 Jason Merrill <jason@redhat.com>
20742 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
20744 * function.c (assign_parms): Don't put args of inline functions
20745 into registers when not optimizing.
20747 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
20749 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
20750 (prologue_use): New pattern.
20751 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
20752 preference to gen_rtx_USE.
20753 (thumb_expand_prologue): Use gen_prologue_use in preference to
20755 (thumb_expand_epilogue): Use gen_prologue_use in preference to
20758 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
20760 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
20762 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
20765 * doc/extend.texi: Correct documentation of __alignof__.
20767 2002-01-22 Zack Weinberg <zack@codesourcery.com>
20769 * params.h: Rename arguments of DEFPARAM so that it will be
20770 recognized as a translation keyword.
20772 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
20774 * extend.texi: Document altivec functions.
20775 Fix N-bit adjectives in X86 builtin documentation.
20777 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
20779 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
20780 auto_inc_dec values.
20782 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
20784 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
20786 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
20788 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
20790 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
20792 2002-01-22 Richard Henderson <rth@redhat.com>
20794 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
20795 copy_insn not copy_rtx.
20797 2002-01-23 Alan Modra <amodra@bigpond.net.au>
20799 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
20800 "nonzero" as that might add "1" bits. Ensure "constop" is
20801 properly sign extened.
20802 (force_to_mode): Tweak for sign extended constop.
20804 2002-01-22 Richard Henderson <rth@redhat.com>
20806 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
20807 for_each_rtx instead of assuming we're already looking at the MEM.
20808 (split_small_symbolic_mem_operand): Likewise.
20809 * config/alpha/alpha.h (PREDICATE_CODES): Update.
20810 * config/alpha/alpha.md (small symbolic memory splitters): Update.
20812 2002-01-22 Richard Henderson <rth@redhat.com>
20814 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
20815 sequence number for the literal.
20816 (divmoddi_internal_er): Likewise.
20818 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
20821 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
20822 in LIBICONV variable.
20823 * configure: Regenerated.
20825 2002-01-22 Krister Walfridsson <cato@df.lth.se>
20827 * dependence.c (build_def_use): Remove array_idx.
20829 * dwarfout.c (last_filename): Remove.
20830 (output_compile_unit_die): Remove last_filename.
20832 2002-01-22 Roger Sayle <roger@eyesopen.com>
20833 Richard Henderson <rth@redhat.com>
20836 * fold-const.c (fold): Optimize unsigned comparisons against
20837 UINT_MAX (and similar unsigned constants).
20839 2002-01-22 Janis Johnson <janis187@us.ibm.com>
20841 * Makefile.in (loop.o): Depend on OPTABS_H.
20842 * loop.c (emit_prefetch_instructions): Check the prefetch operand
20843 against the predicate.
20846 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
20847 for the address operand.
20849 2002-01-22 Richard Henderson <rth@redhat.com>
20851 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
20853 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
20856 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
20857 preprocessor flags.
20859 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
20861 * config.gcc (x86_64-*-netbsd*): New target.
20862 * config/i386/netbsd64.h: New file.
20864 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
20866 * regrename.c (kill_value): Fix typo.
20868 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
20870 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
20872 * config/rs6000/rs6000.h: Same.
20874 * function.c (instantiate_virtual_regs): Remove
20875 STARTING_FRAME_PHASE.
20876 (assign_stack_local_1): Same.
20877 Calculate frame phase.
20879 2002-01-22 Nick Clifton <nickc@redhat.com>
20881 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
20882 variable declaration to outer scope in order to simplify
20884 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
20885 arm_hard_regno_mode_ok.
20886 * config/arm/arm-protos.h: Add a prototype for
20887 arm_hard_regno_mode_ok.
20888 * config/arm/arm.c (soft_df_operand): Remove now redundant
20889 check for DImode values using IP_REGNUM.
20890 (nonimmediate_soft_df_operand): Remove now redundant check for
20891 DImode values using IP_REGNUM.
20892 (arm_hard_regno_mode_ok): New function. New check: make sure
20893 that DImode values are not stored in IP_REGNUM.
20895 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
20897 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
20899 2002-01-22 Jason Merrill <jason@redhat.com>
20901 * c-semantics.c (genrtl_compound_stmt): Only check nesting
20902 consistency if this COMPOUND_STMT is scoped.
20904 2002-01-22 Kazu Hirata <kazu@hxi.com>
20906 * predict.c: Fix formatting.
20907 * print-tree.c: Likewise.
20908 * protoize.c: Likewise.
20909 * real.h: Likewise.
20911 * sbitmap.h: Likewise.
20912 * scan.c: Likewise.
20913 * sched-deps.c: Likewise.
20914 * sched-vis.c: Likewise.
20915 * sdbout.c: Likewise.
20916 * sibcall.c: Likewise.
20918 * ssa-ccp.c: Likewise.
20919 * ssa-dce.c: Likewise.
20920 * stmt.c: Likewise.
20921 * stor-layout.c: Likewise.
20922 * system.h: Likewise.
20924 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20926 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
20927 if fits in bounds of base type.
20929 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
20930 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
20931 (add_bound_info, default): If can't find a context, make a
20933 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
20935 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
20937 * c-typeck.c (parser_build_binary_op): If result from
20938 build_binary_op is ERROR_MARK just return error_mark_node without
20939 further processing.
20941 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
20943 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
20944 Split a.out-specific bits into...
20945 * config/netbsd-aout.h: ...this.
20946 * config/netbsd-elf.h: New file.
20947 * config/alpha/netbsd-elf.h: Remove.
20948 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
20949 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
20950 (STARTFILE_SPEC): Remove redundant definition.
20951 (ENDFILE_SPEC): Likewise.
20952 (LINK_SPEC): Likewise.
20953 (CPP_SPEC): Likewise.
20954 (ASM_SPEC): Likewise.
20955 (LIB_SPEC): Likewise.
20956 (SWITCH_TAKES_ARG): Likewise.
20957 (TARGET_MEM_FUNCTIONS): Likewise.
20958 (CPP_PREDEFINES): Redefine.
20959 (ASM_FINAL_SPEC): Remove redefinition.
20960 (ASM_COMMENT_START): Redefine.
20961 (FUNCTION_PROFILER): Define.
20962 (TARGET_VERSION): Redefine.
20963 Comment and formatting cleanup.
20964 * config/i386/netbsd.h: Include <netbsd-aout.h>.
20965 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
20966 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
20967 big- or little-endian.
20968 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
20969 * config.gcc (*-*-netbsd*): Add definitions common to all
20971 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
20972 gnu_ld definitions. Add netbsd-elf.h to and remove
20973 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
20974 tmake_file, and don't lose previous tmake_file contents.
20975 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
20976 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
20977 gnu_ld definitions. Add netbsd-elf.h to tm_file.
20978 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
20979 (mipsel-*-netbsd*): Rename this to...
20980 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
20981 mips/little.h to tm_file for mips*el-*.
20982 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
20983 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
20984 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
20986 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
20988 * pa-protos.h (reg_before_reload_operand): New function prototype.
20989 * pa.c (reg_before_reload_operand): New function implementation.
20990 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
20991 contraints to "*m".
20993 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20995 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
20997 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
20999 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
21000 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
21001 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
21002 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
21003 (ENDFILE_SPEC): Undefine.
21004 (STARTFILE_SPEC): Redefine for PA.
21006 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21008 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
21010 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
21012 * config.gcc: Add entries to supported PowerPC --with-cpu
21015 2002-01-21 Jakub Jelinek <jakub@redhat.com>
21017 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
21018 true for 64-bit mode only SSE registers in 32-bit mode.
21020 2002-01-21 Kazu Hirata <kazu@hxi.com>
21022 * unwind-dw2.c: Fix formatting.
21023 * unwind-dw2-fde.c: Likewise.
21024 * unwind-dw2-fde.h: Likewise.
21025 * unwind-pe.h: Likewise.
21026 * varasm.c: Likewise.
21027 * varray.h: Likewise.
21029 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
21031 Remove workaround for register stack overwrite bug in mmix.
21032 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
21033 support for TARGET_REG_STACK_FILL_BUG.
21034 * config/mmix/mmix.h: Remove member has_call_without_parameters.
21035 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
21037 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
21038 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
21039 -mno-reg-stack-fill-bug-workaround.
21040 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
21041 machine member has_call_without_parameters.
21042 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
21043 -mreg-stack-fill-bug-workaround and
21044 -mno-reg-stack-fill-bug-workaround.
21045 (MMIX Options): Ditto.
21047 2002-01-21 Kazu Hirata <kazu@hxi.com>
21049 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
21051 Remove redundant code.
21053 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
21055 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
21056 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21057 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21058 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
21059 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
21060 out target macro definitions and non-target-specific comments
21061 mostly taken from old versions of the manual.
21063 2002-01-20 Kazu Hirata <kazu@hxi.com>
21065 * config/h8300/h8300.h: Fix comment formatting.
21066 * config/ia64/aix.h: Likewise.
21067 * config/ia64/ia64-protos.h: Likewise.
21068 * config/ia64/ia64.c: Likewise.
21069 * config/ia64/ia64.h: Likewise.
21070 * config/ia64/ia64intrin.h: Likewise.
21071 * config/ia64/linux.h: Likewise.
21072 * config/ia64/unwind-aix.c: Likewise.
21073 * config/ia64/unwind-ia64.c: Likewise.
21075 2002-01-20 Kazu Hirata <kazu@hxi.com>
21077 * config/h8300/h8300.c: Revise comments about shift code.
21079 2002-01-20 Kazu Hirata <kazu@hxi.com>
21081 * config/h8300/h8300.c (function_arg): Update a comment.
21083 2002-01-20 Kazu Hirata <kazu@hxi.com>
21085 * config/h8300/h8300.md: Update the comments at the beginning
21088 2002-01-20 Kazu Hirata <kazu@hxi.com>
21090 * config/i370/i370.c: Fix comment formatting.
21091 * config/i370/i370.h: Likewise.
21092 * config/i370/i370.md: Likewise.
21093 * config/i370/linux.h: Likewise.
21095 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21097 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
21099 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
21100 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
21101 in incomplete case.
21103 2002-01-20 Graham Stott <grahams@redhat.com>
21105 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
21107 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
21109 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
21111 2002-01-19 Tom Rix <trix@redhat.com>
21113 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
21115 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
21117 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
21119 * function.c (assign_stack_local_1): Adjust x_frame_offset with
21120 STARTING_FRAME_PHASE.
21121 (STARTING_FRAME_PHASE): New.
21122 (instantiate_virtual_regs): Check saneness of
21123 STARTING_FRAME_PHASE.
21125 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
21127 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
21129 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
21131 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
21133 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
21134 be used for bootstrapping GCC 3.0.
21136 2002-01-18 Kazu Hirata <kazu@hxi.com>
21138 * config/h8300/h8300.md: Fix an insn length.
21140 2002-01-18 Kazu Hirata <kazu@hxi.com>
21142 * bitmap.h: Fix comment formatting.
21143 * combine.c: Likewise.
21144 * cppfiles.c: Likewise.
21145 * c-pragma.h: Likewise.
21146 * c-typeck.c: Likewise.
21148 * dwarf2out.c: Likewise.
21149 * function.c: Likewise.
21151 * genattrtab.c: Likewise.
21152 * gthr-win32.h: Likewise.
21153 * haifa-sched.c: Likewise.
21154 * predict.c: Likewise.
21155 * rtlanal.c: Likewise.
21157 * unwind-dw2-fde.h: Likewise.
21158 * unwind-pe.h: Likewise.
21159 * vmsdbgout.c: Likewise.
21161 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21163 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
21164 if type_required and passed decl.
21166 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
21168 * config.gcc (cpu_type): Include altivec.h in powerpc
21172 * config/rs6000/altivec.h: New.
21174 2002-01-17 David Edelsohn <edelsohn@gnu.org>
21176 * doc/install.texi (*-ibm-aix*): Update assembler and exception
21177 handling information.
21178 * doc/trouble.texi (Interoperation): Add libstdc++ information
21180 (Misunderstandings): Add template instantiation and static template
21181 member information for AIX.
21183 2002-01-17 Jason Merrill <jason@redhat.com>
21185 * dbxout.c (dbxout_type): Support const and volatile.
21187 * except.c (add_partial_entry): Remove backwards compatibility code.
21188 (end_protect_partials): Likewise.
21190 2002-01-17 Jakub Jelinek <jakub@redhat.com>
21192 * config/ia64/ia64.md (prologue_use): New.
21193 * config/ia64/ia64.c (ia64_expand_prologue): Use
21194 gen_prologue_use instead of gen_rtx_USE.
21195 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
21196 as CODE_FOR_pred_rel_mutex.
21197 (ia64_sched_reorder2): Likewise.
21199 2002-01-16 Eric Christopher <echristo@redhat.com>
21201 * config/mips/r3900.h: Reformat.
21202 (SUBTARGET_CPP_SIZE_SPEC): Remove.
21203 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
21204 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
21205 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
21206 * config/mips/t-elf: Remove mips3 multilib.
21208 2002-01-16 H.J. Lu <hjl@gnu.org>
21210 * config/mips/linux.h: Include "mips/abi64.h".
21212 2002-01-16 H.J. Lu <hjl@gnu.org>
21214 * config/mips/t-linux: New.
21216 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
21218 * config/mips/linux.h: Don't include "gofast.h".
21219 (INIT_SUBTARGET_OPTABS): Removed.
21221 2002-01-16 Kazu Hirata <kazu@hxi.com>
21223 * config/h8300/h8300-protos.h: Replace emit_a_shift with
21225 * config/h8300/h8300.c: Likewise.
21226 * config/h8300/h8300.md: Likewise.
21228 2002-01-16 Kazu Hirata <kazu@hxi.com>
21230 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21231 spaces after an opcode name.
21232 (pushqi1_h8300hs): Likewise.
21233 (pushhi1_h8300hs): Likewise.
21235 2002-01-16 Kazu Hirata <kazu@hxi.com>
21237 * doc/extend.texi: Replace "option" with "attribute"
21240 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21242 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21243 (and:DI () (const_int -8)).
21244 (split_small_symbolic_mem_operand): Split
21245 (mem (and:DI () (const_int -8)).
21247 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21250 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
21251 same way as TYPE_IMUL.
21252 (ultrasparc_sched_reorder): Likewise.
21253 * config/sparc/sparc.md (type): Add comment to update
21254 ultrasparc_sched_reorder when making changes.
21256 2002-01-16 Kazu Hirata <kazu@hxi.com>
21258 * doc/invoke.texi: Change the dump file name of block
21259 reordering pass from 28.bbro to 29.bbro.
21260 Mention -dk option.
21262 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
21264 * i386.md (minsf splitter): Fix pasto.
21266 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21268 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21269 to frame pointer initialisation instruction.
21270 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21271 initialisation instruction.
21272 (soft_df_operand): Do not accept the IP register.
21273 (nonimmediate_soft_df_operand): Do not accept the IP register.
21275 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21278 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21279 MASK_V8 being both set.
21281 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
21283 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21284 insn for GOT register; add REG_MAYBE_DEAD notes instead.
21285 config/s390/s390.md (call, call_value): Add GOT register to
21286 CALL_INSN_FUNCTION_USAGE where needed.
21287 (call_exp, call_value_exp): New.
21289 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21291 * config/arm/arm.c: General formatting tidy up.
21293 2002-01-16 Graham Stott <grahams@redhat.com>
21295 * calls.c (try_to_integrate): Use "(size_t)" intermediate
21296 cast and when casting an integer literal to "rtx" pointer.
21297 (expand_call): Likewise.
21298 * flow.c (try_pre_increment): Likewise.
21299 (find_use_as_address): Likewise.
21300 * integrate.c (expand_iline_function): Likewise.
21301 * regmove.c (try_auto_increment): Likewise.
21303 2002-01-16 Graham Stott <grahams@redhat.com>
21305 * sched-rgn.c (passed): Use sbitmap_free.
21306 (header): Likewise.
21308 (in_queue): Likewise.
21309 (in_stack): Likewise.
21311 2002-01-15 Eric Christopher <echristo@redhat.com>
21313 * flow.c (propagate_one_insn): Change to use fatal_insn.
21315 2002-01-15 Kazu Hirata <kazu@hxi.com>
21317 * expmed.c (extract_fixed_bit_field): Remove unused code.
21318 * system.h: Poison SLOW_ZERO_EXTEND.
21319 * doc/tm.texi: Remove.
21320 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21321 * config/arm/arm.h: Likewise.
21322 * config/avr/avr.h: Likewise.
21323 * config/clipper/clipper.h: Likewise.
21324 * config/convex/convex.h: Likewise.
21325 * config/d30v/d30v.h: Likewise.
21326 * config/dsp16xx/dsp16xx.h: Likewise.
21327 * config/elxsi/elxsi.h: Likewise.
21328 * config/fr30/fr30.h: Likewise.
21329 * config/h8300/h8300.h: Likewise.
21330 * config/i370/i370.h: Likewise.
21331 * config/i386/i386.h: Likewise.
21332 * config/m68k/m68k.h: Likewise.
21333 * config/mips/mips.h: Likewise.
21334 * config/ns32k/ns32k.h: Likewise.
21335 * config/pdp11/pdp11.h: Likewise.
21336 * config/pj/pj.h: Likewise.
21337 * config/s390/s390.h: Likewise.
21338 * config/sh/sh.h: Likewise.
21339 * config/stormy16/stormy16.h: Likewise.
21340 * config/v850/v850.h: Likewise.
21341 * config/vax/vax.h: Likewise.
21342 * config/we32k/we32k.h: Likewise.
21344 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21346 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21347 (altivec_lvsl): Change constraint to b.
21348 (altivec_lvsr): Same.
21349 (altivec_lvebx): Same.
21350 (altivec_lvehx): Same.
21351 (altivec_lvewx): Same.
21352 (altivec_lvxl): Same.
21353 (altivec_lvx): Same.
21354 (altivec_stvx): Add parallel.
21355 (altivec_stvxl): Same.
21356 (altivec_stvehx): Same.
21357 (altivec_stvebx): Same.
21358 (altivec_stvebx): Same.
21360 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21362 * config.gcc: Change altivec.h to altivec-defs.h.
21364 * config/rs6000/altivec.h: Delete.
21366 * config/rs6000/altivec-defs.h: Add.
21368 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
21370 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21373 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21374 less than or equal to eight bytes.
21376 * vax.md (andsi3): Remove constraints and change SET destination
21377 operand type to nonimmediate_operand.
21378 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
21379 when it is a CONST_INT.
21381 2002-01-15 Jason Merrill <jason@redhat.com>
21383 * c-common.def (FILE_STMT): New code.
21384 * c-common.c (statement_code_p): It's a statement.
21385 * c-common.h (stmt_tree_s): Add x_last_filename.
21386 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21387 (last_expr_filename): New macro.
21388 * c-semantics.c (begin_stmt_tree): Initialize it.
21389 (add_stmt): If the filename changed, also insert a
21391 (expand_stmt): Handle seeing one.
21393 2002-01-15 Eric Christopher <echristo@redhat.com>
21395 * flow.c (propagate_one_insn): Add error message and print out
21396 insn for debugging.
21398 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21400 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21401 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21402 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21403 TRAMPOLINE_ALIGNMENT.
21404 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
21406 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21407 PCC_BITFIELD_TYPE_MATTERS.
21408 * config/interix.h (STDC_VALUE): Remove. Use
21409 STDC_0_IN_SYSTEM_HEADERS.
21410 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21411 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21412 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21414 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
21416 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21417 not work on this platform currently.
21419 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21421 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21422 readonly_warning in _().
21424 2002-01-15 Douglas B Rupp <rupp@gnat.com>
21426 * gcc.c (delete_if_ordinary): Backout previous change.
21428 2002-01-15 Kazu Hirata <kazu@hxi.com>
21430 * config/h8300/h8300.c (print_operand): Remove support for
21431 unused operand characters.
21433 * read-rtl.c: Fix formatting.
21434 * real.c: Likewise.
21435 * recog.c: Likewise.
21436 * regclass.c: Likewise.
21437 * regmove.c: Likewise.
21438 * reg-stack.c: Likewise.
21439 * reload1.c: Likewise.
21440 * rtlanal.c: Likewise.
21442 2002-01-15 Kazu Hirata <kazu@hxi.com>
21444 * config/i386/i386.c: Fix formatting.
21446 2002-01-15 Jakub Jelinek <jakub@redhat.com>
21448 * c-typeck.c (process_init_element): Don't save_expr
21449 COMPOUND_LITERAL_EXPR if just its initializer will be used.
21451 2002-01-15 David Edelsohn <edelsohn@gnu.org>
21453 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21454 emit optional traceback table if optimize_size or TARGET_ELF.
21455 * config/rs6000/rs6000.md (prefetch): New.
21457 2002-01-15 Andreas Jaeger <aj@suse.de>
21459 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21461 2002-01-15 Kazu Hirata <kazu@hxi.com>
21463 * mips-tfile.c: Fix formatting.
21465 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
21467 * unroll.c (final_reg_note_copy): Fix previous commit.
21469 2002-01-14 Kazu Hirata <kazu@hxi.com>
21471 * config/h8300/h8300-protos.h: Remove the prototype for
21473 * config/h8300/h8300.c (eq_operator): Remove.
21475 2002-01-14 Richard Henderson <rth@redhat.com>
21477 * config/i386/i386.md (prefetch): Tidy.
21478 (prefetch_3dnow): Fix locality operand.
21480 2002-01-14 Richard Henderson <rth@redhat.com>
21482 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21483 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21485 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
21487 * reload1.c (reload_combine): Pass reg_sum replacement through
21488 copy_rtx in loop performing multiple changes.
21490 2002-01-14 Jakub Jelinek <jakub@redhat.com>
21492 * except.c (remove_unreachable_regions): New.
21493 (free_eh_status): Clear exception_handler_labels.
21494 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21495 (find_exception_handler_labels): Don't add the same label more than
21497 (remove_exception_handler_label): Don't die if
21498 find_exception_handler_labels hasn't been called for the current
21501 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
21503 * toplev.c (rest_of_compilation): Rebuild jump labels after
21506 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
21508 * doc/extend.texi: Move documentation of X86 built-in functions
21510 * doc/invoke.texi: From here.
21511 * doc/sourcebuild.texi: Document location of documentation for
21512 machine built-in functions.
21514 2002-01-13 Christopher Faylor <cgf@redhat.com>
21516 * cppfiles.c (TEST_THRESHOLD): New macro.
21517 (SHOULD_MMAP): Ditto.
21518 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21521 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
21523 * unroll.c (final_reg_note_copy): Properly handle
21525 (unroll_loops): Fix LOOP_CONDITION heuristics.
21527 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
21529 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21530 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21532 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
21534 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21537 2002-01-14 Tom Rix <trix@redhat.com>
21539 * config/rs6000/rs6000.md: Fix typo with sradi.
21541 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
21543 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21544 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21545 (clrstrdi, clrstrsi): Adapt callers.
21547 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21549 (movti splitter): Never use register 0 as base register.
21551 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21553 * combine.c (simplify_shift_const): Always generate new rtx
21554 for shift expression instead of reusing given expression.
21556 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21558 * config/alpha/alpha.c (alpha_expand_mov): Don't call
21559 alpha_legitimize_address unless mode is Pmode.
21561 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
21563 * doc/md.texi (Modifiers): Document the '*' constraint for the
21566 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21567 * doc/extend.texi (Function Attributes): 'interrupt' is valid
21570 2002-01-13 Richard Henderson <rth@redhat.com>
21572 * reload.c (find_reloads): Use a hard reg destination as reload reg
21573 for an input reload of the source.
21575 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21577 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21580 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
21582 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21583 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21585 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21587 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21589 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21591 2002-01-12 Tom Rix <trix@redhat.com>
21593 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
21596 2002-01-12 Richard Henderson <rth@redhat.com>
21598 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21600 * doc/invoke.texi: Update Alpha options.
21602 * doc/invoke.texi: Update i386 built-in function lists.
21604 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
21606 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21607 referencing outside.
21609 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21611 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21612 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21613 offsets, and change line folding.
21614 * optabs.c (expand_binop): Remove warnings.
21615 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
21617 2002-01-12 Graham Stott <grahams@redhat.com>
21619 * attribs.c (handle_deprecated_attribute): constify WHAT.
21620 * diagnostic.c (warn_deprecated_use): Add braces, fixes
21621 dangling else warning and constify WHAT.
21622 * except.h (struct function, struct inline_remap): Move
21623 struct tag forward defs before all prototypes.
21624 (duplicate_eh_regions): Whitespace.
21626 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
21628 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21629 MODE_BASE_REG_CLASS.
21630 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
21632 2002-01-12 Richard Henderson <rth@redhat.com>
21634 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
21635 (ix86_expand_vector_move): New.
21636 (bdesc_2arg): Remove andps, andnps, orps, xorps.
21637 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
21638 Remove old prefetch builtins. Special case the logicals removed above.
21639 (ix86_expand_builtin): Likewise.
21640 (safe_vector_operand): Use V4SFmode, not TImode.
21641 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
21642 (ix86_expand_timode_binop_builtin): New.
21643 * config/i386/i386-protos.h: Update.
21644 * config/i386/i386.h (enum ix86_builtins): Update.
21645 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
21646 Use ix86_expand_vector_move in vector move expanders.
21647 (movti_internal, movti_rex64): Add xorps alternative.
21648 (sse_clrv4sf): Rename and adjust from sse_clrti.
21649 (prefetch): Don't work so hard.
21650 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
21651 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
21652 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
21654 2002-01-11 Richard Henderson <rth@redhat.com>
21656 * config/i386/mmintrin.h: New file.
21657 * config/i386/xmmintrin.h: New file.
21658 * config.gcc (i?86-*-*): Add extra_headers.
21659 * simplify-rtx.c (simplify_unary_operation): Handle saturating
21661 (simplify_binary_operation): Handle saturating arithmetic codes.
21662 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
21663 not the lowpart subreg.
21664 (ix86_expand_builtin): Return a TImode dummy register instead of 0
21666 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
21668 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21670 * conflict.c (conflict_graph_compute): Free regsets when finished.
21671 * ssa.c (compute_coalesced_reg_partition): Likewise.
21673 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21675 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
21676 every where we allocate a register.
21678 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21680 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
21681 * lcm.c (compute_earliest, compute_farthest): Likewise.
21683 2002-01-11 Janis Johnson <janis187@us.ibm.com>
21685 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
21687 2002-01-11 Janis Johnson <janis187@us.ibm.com>
21689 * doc/rtl.texi (Insns): Fix 2 typos.
21691 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
21693 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
21694 options. Use @table @gcctabopt for MMIX options. Add index
21695 entries for MMIX options. Start new paragraph with first
21696 heading of the machine-dependent options.
21698 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
21701 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
21702 * combine.c (force_to_mode): Same.
21703 * reload1.c (clear_reload_reg_in_use): Same.
21705 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
21707 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
21710 2002-01-11 Andreas Jaeger <aj@suse.de>,
21711 Brad Lucier <lucier@math.purdue.edu>
21713 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
21716 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
21718 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
21719 Protect with IN_LIBGCC.
21720 (LINK_EH_SPEC): Add required trailing space.
21722 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
21724 * c-tree.h: Move function declarations so that they are listed
21725 under the filename which contains them.
21726 (check_identifier, finish_decl_top_level,
21727 lookup_name_current_level_global, shadow_record_fields): Remove.
21729 2002-01-11 Andreas Jaeger <aj@suse.de>
21731 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
21734 2002-01-10 Richard Henderson <rth@redhat.com>
21736 * config/alpha/alpha.c (print_operand): Add 'J'.
21737 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
21738 new operand with the sequence number for the lituse. When splitting
21739 the insns, use gen_movdi_er_high_g and generate a sequence number.
21740 (gen_movdi_er_high_g): Print the sequence number if non-zero.
21742 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
21744 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
21745 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
21747 (altivec_expand_builtin): Same.
21748 (altivec_expand_stv_builtin): New.
21750 * config/rs6000/rs6000.h (rs6000_builtins): Same.
21752 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
21753 ("altivec_lvehx"): New.
21754 ("altivec_lvewx"): New.
21755 ("altivec_lvxl"): New.
21756 ("altivec_lvx"): New.
21757 ("altivec_stvx"): New.
21758 ("altivec_stvebx"): New.
21759 ("altivec_stvehx"): New.
21760 ("altivec_stvewx"): New.
21761 ("altivec_stvxl"): New.
21763 2002-01-10 Richard Henderson <rth@redhat.com>
21765 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
21766 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
21767 care not to delete instructions twice.
21769 2002-01-10 Zack Weinberg <zack@codesourcery.com>
21771 * toplev.c: Don't declare environ (it's not used anywhere).
21772 * configure.in: Don't check for declaration of environ.
21773 * config/i386/xm-mingw32.h: Don't #define environ.
21774 * config.in, configure: Regenerate.
21776 2002-01-10 Zack Weinberg <zack@codesourcery.com>
21778 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
21779 * configure: Regenerate.
21781 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
21782 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
21783 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
21785 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
21786 LIMITS_H_TEST here, not in m68k/x-next.
21787 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
21788 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
21790 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
21791 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
21792 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
21794 * config/i386/x-djgpp: Renamed i386/t-djgpp.
21795 * config/m88k/x-dolph: Renamed m88k/t-dolph.
21796 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
21797 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
21798 replacement of quadlib.asm with quadlib.c.
21800 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
21801 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
21802 config/rs6000/xm-beos.h: Delete file.
21804 * config.gcc: Update to match above changes.
21806 2002-01-10 Kazu Hirata <kazu@hxi.com>
21808 * config/h8300/h8300.h: Fix comment typos.
21809 * config/h8300/h8300.md: Likewise.
21810 * config/h8300/lib1funcs.asm: Likewise.
21812 2002-01-10 Dale Johannesen <dalej@apple.com>
21814 PR optimization/5269
21815 * unroll.c (precondition_loop_p): Make *increment be the correct
21816 sign when n_iterations known, to avoid confusing caller.
21818 2002-01-10 Kazu Hirata <kazu@hxi.com>
21820 * doc/extend.texi (deprecated): Fix a typo.
21822 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
21824 * basic-block.h (update_br_prob_note): Declare.
21825 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
21826 (try_forward_edges): Care negative frequencies and update note.
21827 (outgoing_edges_match): Tweek conditional merging heuristics.
21828 (try_crossjump_to_edge): use update_br_prob_note.
21829 * cfglayout.c (fixup_reorder_chain): Likewise.
21830 * cfrtl.c (update_br_prob_note): New.
21831 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
21833 * i386.c (ix86_decompose_address): Return -1 if address contains
21835 (legitimate_address_p): Require ix86_decompose_address to return 1.
21837 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
21838 (cprop_insn): Likewise.
21840 2002-01-10 Kazu Hirata <kazu@hxi.com>
21842 * toplev.c: Fix formatting.
21843 * tree.c: Likewise.
21844 * tree-dump.c: Likewise.
21845 * unroll.c: Likewise.
21846 * unwind-dw2.c: Likewise.
21847 * unwind-dw2-fde.c: Likewise.
21848 * unwind-dw2-fde-glibc.c: Likewise.
21849 * unwind-sjlj.c: Likewise.
21851 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
21853 * doc/invoke.texi: Document PDP-11 options.
21855 2002-01-10 Kazu Hirata <kazu@hxi.com>
21857 * config/h8300/h8300.h: Fix formatting.
21859 2002-01-10 Ira Ruben <ira@apple.com>
21861 Add __attribute__ ((deprecated)).
21862 * extend.texi: Document __attribute__ ((deprecated)).
21863 * invoke.texi: Document -Wno-deprecated-declarations.
21864 * testsuite/g++.dg/other/deprecated.C: New C++ test.
21865 * testsuite/gcc.dg/deprecated.c: New C test.
21866 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
21867 (c_common_attribute_table): Add "deprecated" entry.
21868 (handle_deprecated_attribute): New function.
21869 * c-decl.c (deprecated_states): New enum.
21870 deprecated_state: State of "deprecated" handling.
21871 (start_decl): Set deprecated_state based on attributes.
21872 (grokdeclarator): Test for deprecated uses, propagate attribute.
21873 * c-typeck.c (build_component_ref): Test for deprecated fields.
21874 (build_external_ref): Test for deprecated primaries.
21875 * diagnostic.c (warn_deprecated_use) New function to issue
21876 warnings about __attribute__ ((depricated)) references.
21877 * flags.h (warn_deprecated_decl): Extern declared for
21878 -W[no-]deprecated-declarations option.
21879 * print-tree.c (print_node): Show deprecated flag status.
21880 * toplev.c (warn_deprecated_decl): Defined.
21881 (W_options): Added "deprecated-declaration".
21882 * toplev.h (warn_deprecated_use): Extern declared.
21883 * tree.h (struct tree_common): Define deprecated_flag.
21884 (TREE_DEPRECATED): New macro to access flag.
21885 * cp/call.c (build_call): Test for deprecated calls.
21886 * cp/class.c (add_implicitly_declared_members): Set global
21887 flag to tell grokdeclarator to not issue deprecated warnings.
21888 * cp/cp-tree.h: Add extern for adding_implicit_members.
21889 * cp/decl.c (deprecated_states): New enum.
21890 (start_decl): Set deprecated_state based on attributes.
21891 (grokdeclarator): Test for deprecated uses, propagate attribute.
21892 * cp/lex.c (do_identifier): Test for deprecated primaries.
21893 * cp/typeck.c (build_component_ref): Test for deprecated fields.
21895 2002-01-10 Ira Ruben <ira@apple.com>
21897 Fix to assign attributes to inline member functions.
21898 * cp/decl.c (start_method): Handle attrlist.
21900 2002-01-10 Kazu Hirata <kazu@hxi.com>
21902 * combine.c (expand_field_assignment): Use subreg_lsb().
21904 2002-01-10 David Edelsohn <edelsohn@gnu.org>
21906 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
21907 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
21908 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
21909 Recurse for any operand of AND as long as constant is non-zero.
21911 2002-01-10 Kazu Hirata <kazu@hxi.com>
21913 * config/h8300/h8300.md: Remove constraints from expanders.
21915 2002-01-10 Kazu Hirata <kazu@hxi.com>
21917 * varasm.c: Fix formatting.
21918 * varray.c: Likewise.
21919 * vmsdbgout.c: Likewise.
21920 * xcoffout.c: Likewise.
21922 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
21924 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
21925 update edge probabilities to match.
21927 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
21929 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
21931 * doc/languages.texi, doc/sourcebuild.texi: New files.
21932 * doc/configfiles.texi: Make a subsubsection. Update.
21933 * doc/configterms.texi: Add @node. Remove warning that this isn't
21934 instructions for building GCC.
21935 * doc/makefile.texi: Make a subsection.
21936 * doc/gccint.texi: Update.
21938 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
21940 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
21942 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
21944 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
21946 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
21948 * optabs.c (expand_fix): Look for wider integer modes first.
21950 * i386.md (mov?f): Avoid the fake const double trick for medium
21952 (min?f*/max?f*): Prohibit memory operands for i387 variant.
21953 (fop_df_4): Disable for SSE compilation.
21955 2002-01-10 Graham Stott <grahams@redhat.com>
21957 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
21958 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
21960 2002-01-10 Richard Henderson <rth@redhat.com>
21962 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
21964 2002-01-10 Richard Henderson <rth@redhat.com>
21966 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
21967 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
21969 2002-01-10 Kazu Hirata <kazu@hxi.com>
21971 * combine.c (can_combine_p): Fix a comment typo.
21973 2002-01-09 Zack Weinberg <zack@codesourcery.com>
21975 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
21976 empty list correctly. Change loop index $t to $f for
21977 consistency with rest of Makefile.
21979 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
21981 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
21982 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21984 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
21985 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
21986 (altivec_init_builtins): Same.
21987 (altivec_expand_unop_builtin): Return NULL_RTX on error.
21988 (altivec_expand_binop_builtin): Same.
21989 (altivec_expand_ternop_builtin): Same.
21992 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
21993 ("altivec_vctuxs"): Fix typo.
21994 ("altivec_vnmsubfp"): Same.
21995 ("altivec_dssall"): New.
21996 ("altivec_mfvscr"): New.
21997 ("altivec_dss"): New.
21998 ("altivec_lvsl"): New.
21999 ("altivec_lvsr"): New.
22000 ("altivec_dstt"): New.
22001 ("altivec_dstst"): New.
22002 ("altivec_dststt"): New.
22003 ("altivec_dst"): New.
22005 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
22006 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22008 2002-01-09 Richard Henderson <rth@redhat.com>
22010 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
22012 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
22014 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
22016 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
22018 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
22020 2002-01-09 Kazu Hirata <kazu@hxi.com>
22022 * read-rtl.c: Fix formatting.
22023 * real.c: Likewise.
22024 * regclass.c: Likewise.
22025 * regrename.c: Likewise.
22026 * reg-stack.c: Likewise.
22027 * reload1.c: Likewise.
22028 * reload.c: Likewise.
22031 2002-01-09 Kazu Hirata <kazu@hxi.com>
22033 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
22034 to extract items in the expr_list chain.
22036 2002-01-09 Richard Henderson <rth@redhat.com>
22038 * config/vax/vax.c (vax_rtx_cost): Never abort.
22040 * config/vax/vax.h (REAL_ARITHMETIC): Define.
22042 2002-01-09 Jan Hubicka <jh@suse.cz>
22044 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
22046 2002-01-09 Richard Henderson <rth@redhat.com>
22048 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
22049 Unify code from various alternatives.
22051 2002-01-09 Richard Henderson <rth@redhat.com>
22053 * regrename.c (copy_value): Ignore the copy if the source register
22054 is present in the value chain with a narrower mode.
22056 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22058 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
22059 for the c4x target. Also improve layout.
22061 2002-01-09 Richard Henderson <rth@redhat.com>
22063 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
22064 * config/m32r/m32r.md (and ior xor splitters): Swap operands
22065 to match insn patterns.
22067 2002-01-09 Richard Henderson <rth@redhat.com>
22069 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
22070 (copyprop_hardreg_forward_1): Likewise.
22072 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
22074 * pa.md (decrement_and_branch_until_zero): Change predicate for
22075 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
22077 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
22079 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
22080 gets undefined. For Darwin.
22082 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22084 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
22086 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22088 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
22090 2002-01-08 Richard Henderson <rth@redhat.com>
22092 * regrename.c (copy_value): Ignore overlapping copies.
22094 2002-01-08 Richard Henderson <rth@redhat.com>
22096 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
22097 as needed to avoid shared structure.
22099 2002-01-08 Kazu Hirata <kazu@hxi.com>
22101 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
22104 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22106 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
22107 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
22108 documentation of obsolete macros.
22109 * system.h: Poison these macros.
22110 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
22111 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
22112 config/c4x/c4x.h, config/clipper/clipper.h,
22113 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
22114 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
22115 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
22116 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
22117 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
22118 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
22119 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22120 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
22121 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
22122 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22123 config/sparc/sparc.h, config/stormy16/stormy16.h,
22124 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
22125 definitions and commented out definitions of obsolete macros.
22126 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
22127 of MAX_INT_TYPE_SIZE.
22129 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22131 * config/s390/s390.c (s390_preferred_reload_class): Never
22132 return ADDR_REGS if it isn't a subset of the given class.
22133 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
22134 FP_REGS, but all superclasses as well.
22136 * config/s390/s390.c (s390_function_profiler): Fix thinko.
22138 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
22139 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
22140 must not be a const_int.
22142 2002-01-08 Richard Henderson <rth@redhat.com>
22144 * Makefile.in (toplev.o): Depend on options.h.
22145 (gcc.o): Depend on specs.h.
22147 2002-01-08 Jakub Jelinek <jakub@redhat.com>
22149 * expr.c (store_expr): Convert VOIDmode constants back to target's
22152 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22154 * doc/invoke.texi: Markup gcc as @command. Refer to
22155 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
22156 of http://gcc.gnu.org/thanks.html.
22158 2002-01-08 Dale Johannesen <dalej@apple.com>
22160 * config/rs6000/rs6000.md: Add missing int register
22161 target case to movdf_low.
22163 2002-01-08 Zack Weinberg <zack@codesourcery.com>
22165 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
22166 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
22167 (cppinit.o): Depend on except.h.
22168 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
22169 s-specs): New rules.
22171 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
22172 Don't create specs.h/options.h/gencheck.h here. Remove
22173 unnecessary variable settings from last argument of AC_OUTPUT.
22174 * config.in, configure: Regenerate.
22175 * intl.c: Hardcode package name as "gcc".
22177 * cppinit.c: Include except.h.
22178 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
22180 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
22181 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
22182 (!)USING_SJLJ_EXCEPTIONS.
22183 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
22185 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22187 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
22188 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
22189 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
22190 documentation of obsolete macros.
22191 * system.h: Poison these macros.
22192 * config/d30v/d30v.h, config/ns32k/encore.h,
22193 config/stormy16/stormy16.h: Remove definitions and commented out
22194 definitions of obsolete macros.
22196 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
22198 * objc/objc-act.c (handle_class_ref): Mark the declaration of
22199 %sobjc_class_ref_%s as used - to prevent unwanted compiler
22202 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22204 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
22205 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
22206 to insn adjusting stack/frame pointer.
22207 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
22208 accept operands that cause the insn to be non-splittable.
22210 2002-01-08 Graham Stott <grahams@redhat.com>
22212 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
22213 (C_TYPE_FIELDS_VOLATILE): Likewise.
22214 (C_TYPE_BEING_DEFINED): Likewise.
22215 (C_IS_RESERVED_WORD): Likewise.
22216 (C_TYPE_VARIABLE_SIZE): Likewise.
22217 (C_DECL_VARIABLE_SIZE): Likewise.
22218 (C_MISSING_PROTOTYPE_WARNED): Likewise.
22219 (C_SET_EXP_ORIGINAL_CODE): Likewise.
22220 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22222 (C_DECL_ANTICIPATED): Likewise.
22223 (c_build_type_variant): Add parenthesis.
22225 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22227 * gcc.c (option_map): Remove --version.
22228 (process_command): Handle -fversion following the GNU Coding
22229 Standards. Partially addresses PR other/704.
22231 2002-01-08 Graham Stott <grahams@redhat.com>
22233 * combine.c (combine_instructions): Fix typo.
22235 2002-01-08 Graham Stott <grahams@redhat.com>
22237 * debug.h: Use "tree" and "rtx" throughout.
22239 * debug.c: Likewise.
22241 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
22243 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22244 constant pool, use the pool's version of the symbol instead.
22246 2002-01-07 Richard Henderson <rth@redhat.com>
22248 * regrename.c (find_oldest_value_reg): Ignore the value chain if
22249 the original register was copied in a mode with a fewer number of
22250 hard registers than the desired mode.
22251 (copyprop_hardreg_forward_1): Likewise.
22252 (debug_value_data): Fix loop test.
22253 * toplev.c (parse_options_and_default_flags): Reenable
22254 -fcprop-registers at -O1.
22256 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22258 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22259 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
22261 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22264 * config/rs6000/rs6000.md: Add altivec predicate patterns.
22266 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
22268 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22269 (pa_output_function_prologue): Output local label at the beginning of
22270 the prologue when profiling.
22271 (hppa_profile_hook): Use the local label rather than the function label.
22272 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22274 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22276 * config/rs6000/rs6000.c (print_operand): Remove extra space.
22277 (altivec_expand_unop_builtin): Fix thinko.
22278 (altivec_expand_binop_builtin): Same.
22279 (altivec_expand_ternop_builtin): Same.
22280 (altivec_expand_builtin): Same.
22282 2002-01-07 Richard Henderson <rth@redhat.com>
22284 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22286 2002-01-07 Jason Merrill <jason@redhat.com>
22288 * unwind-dw2.c (execute_cfa_program): Use < again.
22290 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22292 * predict.c (combine_predictions_for_insn): Avoid division by zero.
22294 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22296 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22297 Don't allow -1 - x -> ~x simplifications in the first pass.
22299 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22301 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22303 (altivec_expand_binop_builtin): Same.
22304 (altivec_expand_unop_builtin): Same.
22305 (print_operand): Fix typo.
22306 (bdesc_1arg): Add vupk* variants.
22308 * rs6000.h (rs6000_builtins): Add vupk* enums.
22310 * rs6000.md: Add altivec_vupk* variants.
22312 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
22314 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22315 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22316 and last update dates.
22318 2002-01-07 Janis Johnson <janis187@us.ibm.com>
22320 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22322 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
22324 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22325 * config/avr/avr.h (CPP_SPEC): Likewise.
22326 (LINK_SPEC): Likewise.
22327 (CRT_BINUTILS_SPECS): Likewise.
22328 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22329 * doc/invoke.texi (AVR Options): Document them.
22331 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
22333 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22336 2002-01-07 Graham Stott <grahams@redhat.com>
22338 * config/i386/i386.h: Update copyright date.
22339 (HALF_PIC_PTR): Add parenthesis.
22340 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22341 (CONSTANT_ALIGNMENT): Add parenthesis.
22342 (DATA_ALIGNMENT): Likewise.
22343 (LOCAL_ALIGNMENT): Likewise.
22344 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22345 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22346 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22347 (HARD_REGNO_NREGS): Add paranethesis.
22348 (VALID_SSE_REG_MODE): Whitespace.
22349 (VALID_MMX_REG_MODE): Whitespace.
22350 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22351 (ix86_hard_regno_mode_ok): Add parenthesis.
22352 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22353 (RETURN_IN_MEMORY): Whitespace.
22354 (N_REG_CLASSES): Add parenthesis.
22355 (INTEGER_CLASS_P): Add parenthesis and wrap.
22356 (FLOAT_CLASS_P): Likewise.
22357 (SSE_CLASS_P): Likewise.
22358 (MMX_CLASS_P): Likewise.
22359 (MAYBE_INTEGER_CLASS_P): Likewise.
22360 (MAYBE_FLOAT_CLASS_P): Likewise.
22361 (MAYBE_SSE_CLASS_P): Likewise.
22362 (MAYBE_MMX_CLASS_P): Likewise.
22363 (Q_CLASS_P): Likewise.
22364 (GENERAL_REGNO_P): Uppercase macro parameter.
22365 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22366 (FP_REGNO_P): Likewise.
22367 (ANY_FP_REGNO_P): Uppercase macro parameter.
22368 (SSE_REGNO_P): Likewise.
22369 (SSE_REGNO): Likewise.
22370 (SSE_REG_P): Likewise.
22371 (SSE_FLOAT_MODE_P): Likewise.
22372 (MMX_REGNO_P): Likewise.
22373 (MMX_REG_P):Likewise.
22374 (STACK_REG_P): Likewise.
22375 (NON_STACK_REG_P): Likewise.
22376 (STACK_TOP_P): Likewise.
22377 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22378 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22379 (SECONDARY_MEMORY_NEEDED): Likewise.
22380 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22381 (MD_ASM_CLOBBERS): Whitespace and wrap.
22382 (MUST_PASS_IN_STACK): Whitespace and wrap.
22383 (RETURN_POPS_ARGS): Add parenthesis.
22384 (INIT_CUMULATIVE_ARGS): Likewise.
22385 (FUNCTION_ARG): Likewise.
22386 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22387 (SETUP_INCOMING_VARARGS): Likewise.
22388 (BUILD_VA_LIST_TYPE): Add parenthesis.
22389 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22391 (EXPAND_BUILTIN_VA_ARG): Likewise.
22392 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22393 (INITIALIZE_TRAMPOLINE): Add parenthesis.
22394 (INITIAL_ELIMINATION_OFFSET): Likewise.
22395 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22396 (REGNO_OK_FOR_BASE_P): Likewise.
22397 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22398 (REGNO_OK_FOR_DIREG_P): Likewise.
22399 (REG_OK_FOR_INDEX_P): Whitespace.
22400 (REG_OK_FOR_BASE_P): Whitespace.
22401 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22403 (FIND_BASE_TERM): Fix typo.
22404 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
22405 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22406 (SYMBOLIC_CONST; Whitespace.
22407 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
22408 (ENCODE_SECTION_INFO): Whitespace.
22409 (FINALIZE_PIC): Remove do { ... } while (0).
22410 (PROMOTE_MODE): Wrap in do { ... } while (0).
22411 (CONST_COSTS): Whitespace.
22412 (RTX_COSTS): Add paramethesis, whitespace and wrap.
22413 (REGISTER_MOVE_COST): Add parenthesis.
22414 (MEMORY_MOVE_COST): Likewise.
22415 (EXTRA_CC_MODES): Whitespace.
22416 (SELECT_CC_MODE): Add parenthesis and whitespace.
22417 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22418 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22419 (ASM_OUTPUT_LABEL): Add paramethesis.
22420 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22421 (ASM_OUTPUT_REG_POP): Likewise.
22422 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22423 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22425 * config/i386/i386.c: Update copyright.
22426 (CHECK_STACK_LIMIT): Add parenthesis.
22427 (AT_BP): Uppercase macro parameter.
22428 (x86_64_int_parameter_registers): Constify.
22429 (x86_64_int_return_registers): Likewise.
22430 (ix86_compare_op0): Use rtx.
22431 (construct_container): Constify INTREG parameter.
22432 (function_arg): Use rtx.
22434 * diagnostic.h: Update copyright date.
22435 (output_buffer_state): Add parenthesis.
22436 (output_buffer_format_args): Likewise.
22438 * combine.c (combine_instructions): Replace XEXP (links, 0)
22441 2002-01-06 H.J. Lu <hjl@gnu.org>
22443 * cfgcleanup.c (thread_jump): Fix 2 typos.
22445 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
22447 * config.gcc: Add support for --enable-altivec.
22449 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22451 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22453 2002-01-06 Jakub Jelinek <jakub@redhat.com>
22455 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22456 __objc_class_name_*.
22458 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22460 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22462 2002-01-06 Richard Henderson <rth@redhat.com>
22464 * reorg.c (emit_delay_sequence): Remove death notes, not merely
22465 nop them out. Increment label reference count for REG_LABEL.
22466 (fill_slots_from_thread): Frob label reference count around
22467 delete_related_insns.
22469 2002-01-05 Richard Henderson <rth@redhat.com>
22471 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22474 2002-01-05 Richard Henderson <rth@redhat.com>
22476 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22477 * integrate.c (output_inline_function): Likewise.
22478 * toplev.c (rest_of_compilation): Do it here instead. Move call
22479 to remove_unnecessary_notes after emitting abstract instance.
22480 Force an emitted nested function to have its parent emited as well.
22481 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22483 (rtl_for_decl_location): Do not look at reload data structures
22484 before reload has run.
22486 2002-01-05 Kazu Hirata <kazu@hxi.com>
22488 * cse.c: Fix formatting.
22489 * dwarf2asm.c: Likewise.
22490 * dwarf2out.c: Likewise.
22491 * explow.c: Likewise.
22492 * expmed.c: Likewise.
22493 * function.c: Likewise.
22494 * gcov.c: Likewise.
22495 * gencheck.c: Likewise.
22496 * genrecog.c: Likewise.
22497 * ggc-common.c: Likewise.
22498 * ggc-page.c: Likewise.
22499 * global.c: Likewise.
22501 2002-01-05 Kazu Hirata <kazu@hxi.com>
22503 * combine.c: Fix formatting.
22505 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
22508 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22510 2002-01-05 David Edelsohn <edelsohn@gnu.org>
22512 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22513 as 1 for __powerpc64__ as well.
22515 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22517 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22520 2002-01-05 Daniel Berlin <dan@dberlin.org>
22522 * lcm.c: Revert change, due to performance regression it causes on
22523 SPEC because it's slightly more conservative (sigh, I hate
22526 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
22528 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22530 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
22532 * doc/cppinternals.texi: Update.
22534 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
22536 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22537 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22539 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
22540 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22541 kludge for pre-october-14th mmix versions to handle new-found bug
22542 with PUSHJ/PUSHGO and the register stack.
22543 * config/mmix/mmix.h (struct machine_function): Rename member
22544 has_call_value_without_parameters to has_call_without_parameters.
22545 All referers changed.
22546 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22547 TARGET_MASK_BRANCH_PREDICT): New macros.
22548 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22549 -mno-reg-stack-fill-bug-workaround.
22550 * config/mmix/mmix.md ("call"): Set struct machine member
22551 has_call_without_parameters.
22553 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
22555 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22557 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
22559 * cfgcleanup.c: Include tm_p.h
22560 (mark_effect): Fix handling of hard register; fix handling of SET
22562 2002-01-04 Kazu Hirata <kazu@hxi.com>
22564 * config/h8300/h8300.md (anonymous patterns): Check that
22565 operands are registers before using REGNO on them.
22567 2002-01-03 Roland McGrath <roland@frob.com>
22569 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22571 2002-01-04 Jakub Jelinek <jakub@redhat.com>
22573 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22574 * c-common.h (genrtl_expr_stmt_value): Likewise.
22575 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22576 (expand_expr_stmt_value): Add maybe_last argument.
22577 Don't warn about statement with no effect if it is the last statement
22578 in expression statement.
22579 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22580 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22581 expand_expr_stmt_value.
22582 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22583 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22584 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22585 as maybe_last to expand_expr_stmt_value.
22587 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
22589 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22590 be passed in, do not build it.
22591 (c_begin_if_stmt): New function.
22592 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22593 * c-common.h (c_expand_start_cond): Update prototype.
22594 (c_begin_if_stmt): Prototype new function.
22595 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22596 * c-parse.in (if_prefix): Use c_begin_if_stmt,
22597 c_begin_while_stmt and c_finish_while_stmt_cond.
22599 2002-01-04 William Cohen <wcohen@redhat.com>
22601 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22602 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22603 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22604 * config/pa/som.h (ASM_FILE_START): Likewise.
22606 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
22608 * lcm.c: Include df.h.
22609 Add available_transfer_function prototype.
22610 (compute_available): Rework to use iterative dataflow framework.
22611 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22612 with bb_info in df.h
22613 (available_transfer_function): New function.
22615 * Makefile.in (lcm.o): add df.h to dependencies.
22617 2002-01-04 Richard Henderson <rth@redhat.com>
22619 * config/alpha/alpha.c (some_operand): Accept HIGH.
22620 (input_operand): Likewise; accept simple references to globals.
22621 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22622 (alpha_const_double_ok_for_letter_p): Likewise.
22623 (alpha_extra_constraint): Likewise.
22624 (alpha_preferred_reload_class): Likewise. Do not force
22625 symbolic constants to memory.
22626 (alpha_legitimate_address_p): Accept simple references
22627 to small_symbolic_operand.
22628 (alpha_legitimize_address): New arg scratch. Be prepared to be
22629 called when no_new_pseudos. Emit simple symbolic references.
22630 Split integers into low, high, and rest.
22631 (alpha_expand_mov): Use alpha_legitimize_address.
22632 (some_small_symbolic_mem_operand): New.
22633 (split_small_symbolic_mem_operand): New.
22634 * config/alpha/alpha-protos.h: Update.
22635 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
22636 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
22637 (EXTRA_CONSTRAINT): Likewise.
22638 (PREFERRED_RELOAD_CLASS): Likewise.
22639 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
22640 (PREDICATE_CODES): Update.
22641 * config/alpha/alpha.md: New post-reload splitters to convert
22642 simplfied symbolic operands to the form that references $29.
22643 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
22644 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
22646 2002-01-03 Richard Henderson <rth@redhat.com>
22648 * local-alloc.c (function_invariant_p): Update commentary.
22650 2002-01-04 H.J. Lu <hjl@gnu.org>
22652 * toplev.c (rest_of_compilation): Fix a typo when calling
22655 2002-01-03 Kazu Hirata <kazu@hxi.com>
22657 * c-common.c: Fix formatting.
22658 * diagnostic.c: Likewise.
22659 * doloop.c: Likewise.
22660 * dwarf2out.c: Likewise.
22662 2002-01-03 Kazu Hirata <kazu@hxi.com>
22664 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
22665 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
22667 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22669 * cpperror.c: Update comments and copyright.
22670 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
22671 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
22673 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
22675 * collect2.c (main): Use strcmp when testing for "-shared".
22677 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22679 * cppmacro.c: Don't include intl.h. Update comments.
22680 (new_number_token): Allocate enough buffer for 64-bit unsigned
22681 integers; update prototype.
22682 * cppmain.c: Update comments.
22684 2002-01-03 William Cohen <wcohen@redhat.com>
22686 * function.h (struct function): Add profile.
22687 (current_function_profile): New.
22688 doc/extend.texi: Update documentation.
22689 * final.c (final_start_function): Use current_function_profile
22690 instead of profile_flag.
22691 (profile_after_prologue): Likewise.
22692 * function.c (expand_function_start): Likewise.
22693 (expand_function_start): Likewise.
22694 * config/alpha/alpha.c (direct_call_operand):
22695 (alpha_does_function_need_gp): Likewise.
22696 (alpha_expand_prologue): Likewise.
22697 * config/arm/arm.c (arm_expand_prologue): Likewise.
22698 thumb_expand_prologue: Likewise.
22699 * config/d30v/d30v.c (d30v_stack_info): Likewise.
22700 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
22701 (fr30_expand_prologue): Likewise.
22702 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
22703 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
22704 * config/i386/i386.h (FINALIZE_PIC): Likewise.
22705 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
22706 * config/i960/i960.c (i960_output_function_prologue): Likewise.
22707 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
22708 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
22709 (m32r_expand_prologue): Likewise.
22710 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
22711 (m88k_expand_prologue): Likewise.
22712 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
22713 * config/mips/mips.c (compute_frame_size): Likewise.
22714 (mips_expand_prologue): Likewise.
22715 (mips_can_use_return_insn): Likewise.
22716 * config/pa/elf.h (ASM_FILE_START): Likewise.
22717 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22718 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22719 * config/pa/som.h (ASM_FILE_START): Likewise.
22720 * config/romp/romp.c (romp_using_r14): Likewise.
22721 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
22722 (rs6000_stack_info): Likewise.
22723 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22724 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
22725 * config/v850/v850.c (compute_register_save_size): Likewise.
22727 2002-01-03 Jakub Jelinek <jakub@redhat.com>
22729 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
22730 gen_lowpart_common fails, use gen_lowpart_SUBREG.
22732 2002-01-03 Turly O'Connor <turly@apple.com>
22734 * darwin.c (machopic_output_possible_stub_label): Don't generate
22735 stub routines for pseudo-stubs which we've just defined.
22737 2002-01-03 Kazu Hirata <kazu@hxi.com>
22739 * builtins.c: Fix formatting.
22740 * c-typeck.c: Likewise.
22741 * combine.c: Likewise.
22742 * expr.c: Likewise.
22743 * loop.c: Likewise.
22745 2002-01-03 Andreas Schwab <schwab@suse.de>
22747 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
22748 and return true if _cpp_push_next_buffer pushed a new include
22750 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
22751 _cpp_pop_file_buffer did not push a new file.
22752 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
22754 2002-01-02 Eric Christopher <echristo@redhat.com>
22756 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
22757 FIND_REG_INC_NOTE call. Update copyright.
22758 * loop.c (canonicalize_condition): Ditto.
22759 * reorg.c (delete_scheduled_jump): Ditto.
22761 2002-01-03 Kazu Hirata <kazu@hxi.com>
22763 * gcse.c: Fix formatting.
22765 2002-01-03 Graham Stott <grahams@redhat.com>
22767 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
22768 forward defs for struct tags rtx_def, union_tree, rtvec_def
22769 also output corresponding typedefs for rtx, tree, and rtvec.
22771 * system.h: Move forward defs for struct tags rtx_def, union_tree,
22772 rtvec_def along with corresponding typedefs for rtx, tree, and
22773 rtvec to config.h, hconfig.h, tconfig.h.
22775 2002-01-03 Graham Stott <grahams@redhat.com>
22777 * tree.h: Update copyright date.
22778 (IS_EXPR_CODE_CLASS): Add parenthesis.
22779 (TREE_SET_CODE): Add whitespace.
22780 (TREE_CHECK): Add parenthesis.
22781 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
22782 (CST_OR_CONSTRUCTOR_CHECK):
22783 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
22784 (TREE_SYMBOL_REFERENCED): Whitespace.
22785 (INT_CST_LT): Likewise.
22786 (INT_CST_LT_UNSIGNED): Likewise.
22787 (tree_real_cst): Unwrap comment.
22788 (tree_string): Likewise.
22789 (tree_complex): Likewise.
22790 (IDENTIFIER_POINTER): correct cast.
22791 (SAVE_EXPR_CONTEXT): Whitespace.
22792 (EXPR_WFL_FILENAME_NODE): Likewise.
22793 (EXPR_WFL_FILENAME): Remove parenthesis.
22794 (DECL_ORIGIN): Add parenthesis.
22795 (DECL_FROM_INLINE): Use NULL_TREE.
22796 (build_int_2): Whitespace.
22797 (build_type_variant): Add parenthesis.
22799 * gcc/jcf-parse.c: Update copyright date.
22800 (yyparse): Constify resource_filename.
22802 2002-01-03 Graham Stott <grahams@redhat.com>
22804 * rtl.h: Update copyright date.
22805 (RTL_CHECK1): Wrap long line.
22806 (RTL_CHECK2): Likewise.
22807 (RTL_CHECKC1): Wrap long line and whitespace.
22808 (RTL_CHECKC2): Likewise.
22809 (XWINT): Whitespace.
22815 (XBITMAP): Likewise.
22817 (XBBDEF): Likewise.
22819 (X0WINT): Likewise.
22821 (X0UINT): Likewise.
22825 (X0MODE): Likewise.
22826 (X0BITMAP): Likewise.
22827 (X0TREE): Likewise.
22828 (X0BBDEF): Likewise.
22829 (X0ADVFLAGS): Likewise.
22830 (X0CSELIB): Likewise.
22831 (X0MEMATTR): Likewise.
22832 (XCWINT): Likewise.
22834 (XCUINT): Likewise.
22838 (XCMODE): Likewise.
22839 (XCBITMAP): Likewise.
22840 (XCTREE): Likewise.
22841 (XCBBDEF): Likewise.
22842 (XCADVFLAGS): Likewise.
22843 (XCCSELIB): Likewise.
22844 (XC2EXP): Likewise.
22845 (INSN_UID): Likewise.
22846 (PREV_INSN): Likewise.
22847 (PATTERN): Likewise.
22848 (INSN_CODE): Likewise.
22849 (PUT_REG_NOTE_KIND): Likewise.
22850 (CODE_LABEL_NUMBER): Likewise.
22851 (NOTE_SOURCE_FILE): Likewise.
22852 (NOTE_BLOCK): Likewise.
22853 (NOTE_EH_HANDLER): Likewise.
22854 (NOTE_RANGE_INFO): Likewise.
22855 (NOTE_LIVE_INFO): Likewise.
22856 (NOTE_BASIC_BLOCK): Likewise.
22857 (NOTE_EXPECTED_VALUE): Likewise.
22858 (NOTE_LINE_NUMBER): Likewise.
22859 (LABEL_NAME): Likewise.
22860 (LABEL_NUSES): Likewise.
22861 (LABEL_ALTERNATE_NAME): Likewise.
22862 (ADDRESSOF_DECL): Likewise.
22863 (JUMP_LABEL): Likewise.
22864 (LABEL_NEXTREF): Likewise.
22866 (ORIGINAL_REGNO: Likewise.
22867 (HARD_REGISTER_NUM_P): Add parenthesis.
22868 (SUBREG_REG): Whitespace.
22869 (SUBREG_BYTE): Likewise.
22870 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
22871 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
22872 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
22873 (ASM_OPERANDS_INPUT_VEC): Likewise.
22874 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
22875 (ASM_OPERANDS_INPUT): Likewise.
22876 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
22877 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
22878 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
22879 (ASM_OPERANDS_INPUT_MODE): Likewise.
22880 (ASM_OPERANDS_SOURCE_FILE): Likewise.
22881 (ASM_OPERANDS_SOURCE_LINE): Likewise.
22882 (MEM_SET_IN_STRUCT_P): Minor reformat.
22883 (TRAP_CONDITION): Whitespace.
22884 (TRAP_CODE): Likewise.
22885 (COND_EXEC_TEST): Likewise.
22886 (COND_EXEC_CODE): Likewise.
22887 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
22888 (PHI_NODE_P): Add parenthesis.
22889 (plus_constant): Whitespace and add parenthesis.
22891 2002-01-03 Kazu Hirata <kazu@hxi.com>
22893 * config/avr/avr.c: Fix comment typos.
22894 * config/c4x/c4x.md: Likewise.
22895 * config/dsp16xx/dsp16xx.h: Likewise.
22896 * config/dsp16xx/dsp16xx.md: Likewise.
22897 * config/i386/i386.md: Likewise.
22898 * config/ia64/ia64.c: Likewise.
22899 * config/m32r/m32r.h: Likewise.
22900 * config/m68hc11/m68hc11.md: Likewise.
22901 * config/mmix/mmix.c: Likewise.
22902 * config/mn10200/mn10200.c: Likewise.
22903 * config/romp/romp.c: Likewise.
22904 * config/sh/sh.c: Likewise.
22905 * config/stormy16/stormy16.c: Likewise.
22906 * config/stormy16/stormy16.h: Likewise.
22907 * config/stormy16/stormy16.md: Likewise.
22909 2002-01-03 Graham Stott <grahams@redhat.com>
22911 * loop.h: Update copyright date.
22912 (LOOP_MOVABLES): Fix typo.
22913 (LOOP_REGS): Likewise.
22914 (LOOP_IVS): Likewise.
22916 2002-01-03 Graham Stott <grahams@redhat.com>
22918 * cppinit.c: Update copyright date.
22919 Don't include output.h
22920 * Makefile.in: Update copyright date.
22923 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
22926 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
22927 (-pthread) Add to RS/6000 options.
22929 2002-01-02 Kazu Hirata <kazu@hxi.com>
22931 * except.c: Fix comment typos.
22932 * loop.c: Likewise.
22933 * varasm.c: Likewise.
22934 * doc/tm.texi: Fix a typo.
22936 2002-01-02 Jakub Jelinek <jakub@redhat.com>
22938 * c-typeck.c (output_init_element): Allow initializing static storage
22939 duration objects with compound literals.
22941 2002-01-02 Richard Henderson <rth@redhat.com>
22943 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
22946 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22948 * gcc.c (default_compilers): Const-ify.
22949 * mips-tdump.c (stab_names): Likewise.
22950 * mips-tfile.c (map_coff_types, map_coff_storage,
22951 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
22952 pseudo_ops_t, pseudo_ops): Likewise.
22953 * protoize.c (default_include): Likewise
22955 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
22956 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
22957 Add array size in declaration.
22958 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
22959 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
22960 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
22961 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
22962 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
22963 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
22964 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
22965 emtens, make_nan): Const-ify.
22966 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
22967 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
22969 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
22971 * config.gcc (ia64-*-*): Set extra_headers.
22972 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
22973 * config/alpha/t-osf: Remove.
22974 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
22976 2002-01-02 David Edelsohn <edelsohn@gnu.org>
22978 * config/rs6000/t-aix43: Revert previous change.
22980 2002-01-02 Jason Merrill <jason@redhat.com>
22982 * c-decl.c (c_expand_body): Call outlining_inline_function when
22983 emitting an inline function out of line.
22985 2002-01-02 Richard Henderson <rth@redhat.com>
22987 * dwarf2out.c (limbo_die_node): Add created_for member.
22988 (new_die): New argument created_for. Update all callers.
22989 (mark_limbo_die_list): New.
22990 (dwarf2out_init): Register limbo_die_list as a root.
22991 (dwarf2out_finish): Force insert limbo dies into their function
22994 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
22997 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
22999 2002-01-02 Kazu Hirata <kazu@hxi.com>
23001 * config/h8300/fixunssfsi.c: Update copyright.
23004 * config/h8300/h8300.c: Update copyright.
23005 Eliminate warnings.
23007 2002-01-02 Kazu Hirata <kazu@hxi.com>
23009 * config/romp/romp.c: Fix comment formatting.
23010 * config/romp/romp.h: Likewise.
23011 * config/romp/romp.md: Likewise.
23012 * config/s390/s390.c: Likewise.
23013 * config/stormy16/stormy16.c: Likewise.
23014 * config/stormy16/stormy16.h: Likewise.
23016 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
23018 * c-common.h (genrtl_expr_stmt_value): Declare.
23019 * c-semantics.c (genrtl_goto_stmt): Redirect to...
23020 (genrtl_goto_stmt_value): ... this new function. Pass new
23021 argument down to expand_expr_stmt_value, taking
23022 TREE_ADDRESSABLE into account.
23023 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
23024 STMT_EXPR as addressable, i.e., one whose result we want.
23025 * expr.c (expand_expr): Don't save expression statement value
23026 of labeled_blocks or loop_exprs.
23027 * stmt.c (expand_expr_stmt): Redirect to...
23028 (expand_expr_stmt_value): ... this new function. Use new
23029 argument to tell whether to save expression value.
23030 (expand_end_stmt_expr): Reset last_expr_type and
23031 last_expr_value if we don't have either.
23032 * tree-inline.c (declare_return_variable): Mark its use
23033 statement as addressable.
23034 * tree.h: Document new use of TREE_ADDRESSABLE.
23035 (expand_expr_stmt_value): Declare.
23037 2002-01-01 Tom Rix <trix@redhat.com>
23039 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
23040 rs6000_emit_allocate_stack.
23042 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
23044 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
23045 ${srcdir}/ginclude/ to every entry in extra_headers.
23046 * configure: Regenerate.
23047 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
23048 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
23049 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
23050 * ginclude/proto.h: Rename to config/convex/proto.h.
23052 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23054 * attribs.c (handle_vector_size_attribute): Use host_integerp
23055 and tree_int_cst; remove warnings.
23056 * caller-save.c (insert_restore): Add cast to get rid of warning.
23057 (insert_save): Likewise.
23058 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
23059 * regmove.c (find_matches): Add temporary var to kill a warning.
23061 2002-01-01 Douglas B Rupp <rupp@gnat.com>
23063 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
23064 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
23065 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
23066 (vms-dwarf2eh.o): Add Makefile rule.
23067 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
23068 * config/alpha/vms-dwarf2eh.asm: New file.
23070 * gcc.c (delete_if_ordinary): Delete all versions.
23072 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
23074 * config/mmix/mmix.md: Update FIXME to not mention
23076 (MMIX_rJ_REGNUM): New define_constants constant.
23077 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
23078 "*movdicc_real"): Adjust contraints formatting.
23079 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
23080 for branch prediction.
23081 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
23083 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
23084 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
23085 number. Delete related FIXMEs.
23086 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
23087 from number to MMIX_rJ_REGNUM.
23088 (TARGET_MASK_BRANCH_PREDICT): New.
23089 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
23090 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
23091 value. Add -mbranch-predict and -mno-branch-predict.
23092 (TARGET_VERSION): Drop date.
23093 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
23094 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
23095 for finding out global symbols.
23096 (mmix_asm_output_labelref): Revert condition for global symbol.
23097 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
23098 (mmix_print_operand_punct_valid_p): A '+' is valid.
23100 See ChangeLog.6 for earlier changes.