1 2002-07-21 Richard Henderson <rth@redhat.com>
3 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
4 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
6 2002-07-21 Richard Henderson <rth@redhat.com>
8 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
9 that are not unrolled completely.
11 2002-07-21 Richard Henderson <rth@redhat.com>
13 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
14 * loop.c (strength_reduce): Update.
15 * toplev.c (rest_of_compilation): Do unrolling in the first
16 loop pass, not the second.
18 2002-07-21 Richard Henderson <rth@redhat.com>
20 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
21 when flag_argument_noalias == 2.
22 * alias.c (nonoverlapping_memrefs_p): Handle that.
23 * print-rtl.c (print_mem_expr): Likewise.
25 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
27 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
28 instead of __negdi2 directly.
30 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
32 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
33 * function.c (SYMBOL__MAIN): Remove definition.
34 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
35 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
36 * profile.c (GCOV_INDEX_TO_BB): Remove.
37 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
38 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
40 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
42 * c-lex.c (GET_ENVIRONMENT): Remove.
43 * collect2.c (GET_ENV_PATH_LIST): Remove.
44 (prefix_from_env): Use GET_ENVIRONMENT.
45 * cppinit.c (GET_ENV_PATH_LIST): Remove.
46 (init_standard_includes): Use GET_ENVIRONMENT.
47 * defaults.h (GET_ENVIRONMENT): Define here if not already.
48 * gcc.c (GET_ENV_PATH_LIST): Remove.
49 (make_relative_prefix, process_command): Update.
50 * protoize.c (GET_ENV_PATH_LIST): Remove.
51 (do_processing): Update.
53 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
55 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
56 (grokdeclarator): Likewise.
57 * c-format.c (C_STD_NAME): Likewise.
58 * c-lex.c (interpret_integer): Likewise.
59 * c-typeck.c (build_array_ref): Likewise.
60 * cpplex.c (_cpp_lex_direct): Likewise.
61 * toplev.c (documented_lang_options): Likewise.
63 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
65 * c-format.c (T99_I, T99_UI): Remove.
67 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
69 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
71 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
73 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
76 2002-07-21 Andreas Jaeger <aj@suse.de>
78 * reload1.c (fixup_abnormal_edges): Remove unused variable.
80 2002-07-21 Bernd Schmidt <bernds@redhat.com>
82 Improvements for the ifcvt pass from Michael Meissner, with patches
83 by Richard Sandiford <rsandifo@redhat.com>
84 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
85 * ifcvt.c (cond_exec_changed_p): New static variable.
86 (last_active_insn): New function, renamed from last_active_insn_p
87 and changed to return the last active insn in a basic block. All
89 (block_fallthru): New function.
90 (cond_exec_process_insns): New argument CE_INFO. Pass it to
91 IFCVT_MODIFY_INSN. All callers updated.
92 Return false if START or END are NULL.
93 Handle case where we're processing an insn that is already
96 (noce_process_if_block): CE_INFO argument rather than
97 multiple args containing the involved basic blocks. All callers
99 (process_if_block, merge_if_block, find_if_block,
100 cond_exec_process_if_block): Likewise.
102 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
104 Use new function last_active_insn to simplify some code.
105 New code to handle multiple tests.
106 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
107 cond_exec_changed_p to TRUE.
109 (process_if_block): New code to handle multiple tests.
110 (merge_if_block): Likewise.
111 (find_if_header): New arg PASS. Changed to return the currently
112 processed basic block or NULL instead of true/false. All callers
114 Call IFCVT_INIT_EXTRA_FIELDS.
115 (block_jumps_and_fallthru_p): New function.
116 (find_if_block): Discover opportunities to convert multiple tests.
117 Add additional debugging output.
118 Update the ce_info structure before returning.
120 (if_convert): Run multiple passes of if-conversion.
121 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
122 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
123 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
126 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
128 * gcse.c: Include cselib.h
129 (constptop_register): Break out from ...
130 (cprop_insn): ... here; kill basic_block argument.
131 (do_local_cprop, local_cprop_pass): New functions.
132 (one_cprop_pass): Call local_cprop_pass.
134 2002-07-20 Roger Sayle <roger@eyesopen.com>
136 * simplify-rtx.c (simplify_relational_operation): Optimize
137 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
139 2002-07-20 Michae Matz <matz@suse.de>
141 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
143 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
145 * cppexp.c (struct op): Add token pointer.
146 (check_promotion, CHECK_PROMOTION): New.
148 (_cpp_parse_expr): Update, use token pointer of struct op.
149 (reduce): Warn about change of sign owing to promotion.
150 * cppinit.c (cpp_handle_option): New warning if -Wall.
151 * cpplib.h (struct cpp_options): New member.
153 2002-07-19 David Edelsohn <edelsohn@gnu.org>
155 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
156 fpu list. Separate Power4 compare and delayed_compare. Correct
158 (fix_truncdfsi2_internal): Restore FPR preference.
159 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
160 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
162 2002-07-19 Momchil Velikov <velco@fadata.bg>
164 * reload1.c (reload_as_needed): Duplicate oldpat.
166 2002-07-20 Alan Modra <amodra@bigpond.net.au>
169 * loop.h (struct loop_info): Add "preconditioned".
170 * unroll.c (unroll_loop): Set it.
171 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
173 2002-07-19 Zack Weinberg <zack@codesourcery.com>
175 * rtl.def (CODE_LABEL): Remove slot 8.
176 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
177 (LABEL_ALTERNATE_NAME): Delete.
178 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
179 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
181 * final.c (output_alternate_entry_point): New.
182 (final_scan_insn): Use it instead of
183 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
184 of a case label being an alternate entry point.
186 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
187 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
188 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
190 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
192 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
193 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
194 * doc/tm.texi: Delete documentation of
195 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
197 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
199 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
200 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
202 (STARTFILE_SPEC): Define.
203 (ENDFILE_SPEC): Define.
205 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
206 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
208 * config/mips/iris6-o32-gas.h: New file.
209 * config.gcc (mips-sgi-irix6*o32): Use it.
211 * config/mips/t-iris5-gas: New file.
212 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
214 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
216 * cppexp.c (ALWAYS_EVAL): Remove.
217 (optab, reduce): Always evaluate.
218 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
219 only if not skipping evaluation.
221 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
223 * config/avr/avr.c (debug_hard_reg_set): Remove.
225 2002-07-19 Chris Demetriou <cgd@broadcom.com>
227 * gcc.c (cpp_options): Include "%1" (cc1_spec).
229 2002-07-19 Richard Henderson <rth@redhat.com>
231 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
233 2002-07-19 Alan Modra <amodra@bigpond.net.au>
235 * prefix.c (update_path): Don't zap single `.' path components
236 unless followed by another `.' and fix typo last patch.
238 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
240 * cppexp.c (cpp_num_mul): Remove unused parameter.
241 (UNARY, BINARY, OTHER, binary_handler): Remove.
244 (reduce): Refactor to a large switch, don't use a function
247 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
249 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
251 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
253 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
254 (sh_expand_binop_v2sf): Likewise.
255 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
256 (int_gpr_dest, trunc_hi_operand): New functions.
257 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
259 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
260 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
261 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
262 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
263 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
264 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
265 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
266 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
267 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
268 (movsf_ie+1): Likewise.
269 (loaddi_trunc): Use int_gpr_dest predicate.
270 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
271 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
272 (casesi_worker_0+[12], casesi_worker): Likewise.
273 (shcompact_preserve_incoming_args): Likewise.
274 (mov_nop): Use any_register_operand predicate.
275 (mperm_w0): Use trunc_hi_operand predicate.
277 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
279 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
280 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
283 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
285 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
287 2002-07-18 Richard Henderson <rth@redhat.com>
290 * ifcvt.c (noce_get_condition): Make certain that the condition
293 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
295 * sh.c (barrier_align, push): Shut up compiler warnings.
296 (initial_elimination_offset,sh_media_init_builtins): Likewise.
297 (reg_no_subreg_operand): Delete.
299 2002-07-17 Bo Thorsen <bo@suse.de>
301 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
302 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
303 (STARTFILE_SPEC): Remove hardcoded library paths.
304 (ENDFILE_SPEC): Likewise.
306 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
308 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
310 * gcse.c (try_replace_reg): Do not return false positives.
312 2002-07-18 Alan Modra <amodra@bigpond.net.au>
314 * prefix.c: (update_path): Strip ".." components when prior dir
315 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
317 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
318 (ASM_OUTPUT_REG_POP): Likewise.
320 2002-07-18 Alan Modra <amodra@bigpond.net.au>
322 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
323 adjustments to first_reg for profiling case.
324 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
325 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
326 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
327 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
328 (ASM_OUTPUT_REG_POP): Define.
329 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
330 (ASM_OUTPUT_REG_POP): Undef.
332 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
334 * cpplib.c (do_sccs): Handle #sccs on all systems.
335 * system.h (SCCS_DIRECTIVE): Poison.
336 * config/darwin.h, config/freebsd.h, config/netbsd.h,
337 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
338 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
339 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
340 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
341 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
342 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
343 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
344 Remove all references to SCCS_DIRECTIVE.
345 * doc/cpp.texi, doc/tm.texi: Update.
347 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
349 * regrename.c (maybe_mode_change): New function.
350 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
352 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
354 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
355 suppress addition when either ct or cf are zero.
357 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
358 Glen Nakamura <glen@imodulo.com>
361 * loop.c (loop_givs_rescan): Explicitly delete the insn that
362 sets a non-replaceable giv after issuing the new one.
364 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
366 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
367 eval_token): Clarify and correct use of "bool" variables.
368 * cpplib.h (struct cpp_options): Similarly.
369 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
370 * cpptrad.c (recursive_macro): Similarly.
372 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
374 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
377 * sh.md (cmpgtudi_media): Remove spurious @.
379 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
380 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
382 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
383 * sh-protos.h (sh_initialize_trampoline): Declare.
384 * sh.c (sh_initialize_trampoline): New function.
385 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
386 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
387 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
388 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
389 * sh.md (initialize_trampoline, double_shori): New patterns.
390 (initialize_trampoline_compact): Likewise.
391 (shmedia32_initialize_trampoline_big): Remove.
392 (shmedia32_initialize_trampoline_little): Likewise.
394 * sh-protos.h (binary_float_operator): Remove declaration.
395 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
396 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
397 (unary_float_operator, sh_expand_unop_v2sf): New functions.
398 (sh_expand_binop_v2sf): Likewise.
399 (zero_vec_operand): Delete.
400 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
402 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
403 Enable nsb and byterev.
404 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
405 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
407 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
408 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
410 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
412 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
413 lowpart fp regs - only for big endian for now.
414 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
416 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
417 (LOAD_EXTEND_OP): NIL for SImode.
418 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
419 general and fp registers is 4.
420 PREDICATE_CODES: Amend binary_float_operator entry.
421 Remove zero_vec_operand. Add unary_float_operator.
422 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
424 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
425 (truncdiqi2): Do sign extension.
426 (movsi_media, movdi_media): Allow to use r63 to an fp register.
427 (movdf_media, movsf_media): Likewise.
428 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
429 Collapse to one define_insn_and_split. Allow immediate sources.
430 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
431 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
432 (movv4sf): Allow immediate sources.
433 (movsf_media_nofpu+1): Don't split moves to FP registers.
434 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
435 (movv8qi_i+3): Check against CONST0_RTX.
436 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
437 for input and output operands. Fix argument 3 to gen_mextr_rl.
438 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
439 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
440 (mshf0_w, fipr, ftrv): Likewise.
441 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
443 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
445 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
446 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
449 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
451 * config/mips/mips-protos.h (mips_sign_extend): Declare.
452 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
453 (TARGET_SWITCHES): Remove debugh.
454 (ISA_HAS_TRUNC_W): New macro.
455 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
456 (PREDICATE_CODES): Remove se_nonimmediate_operand.
457 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
458 any SImode move_operand.
459 (se_nonimmediate_operand): Remove.
460 (mips_sign_extend): New.
461 (mips_move_2words): Use it for sign-extended source operands.
462 (override_options): Allow integers to be put into single FPRs.
463 (mips_secondary_reload_class): Handle integers in float registers.
464 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
465 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
466 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
467 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
468 (fix_truncdfdi2): Provide only a single alternative, in which the
469 integer is in a float register. Depend on TARGET_FLOAT64 rather
471 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
472 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
473 (movdi_internal2): Don't allow the source operand to be sign-extended.
474 Add alternatives for float registers.
475 (*movdi_internal2_extend): New. Version of movdi_internal2 that
476 allows sign-extension.
477 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
478 (movsi_internal2): Rename to movsi_internal. Add alternatives for
479 float registers. Remove TARGET_DEBUG_H_MODE test.
480 (movhi_internal1): Rename to movhi_internal. Don't check
481 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
482 (movqi_internal1): Rename to movqi_internal and remove
483 TARGET_DEBUG_H_MODE dependency.
484 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
486 2002-07-16 Jim Wilson <wilson@redhat.com>
488 * toplev.c (lang_dependent_init): Create function context for
491 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
493 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
495 * config/cris/cris.h: Ditto.
497 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
499 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
500 the comparison directly gives a mask suppress addition when cf is
501 zero by complementing the mask.
503 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
505 * Makefile.in: Delete references to enquire.
506 * enquire.c: Move to contrib.
508 2002-07-16 Stan Shebs <shebs@apple.com>
510 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
511 config/rs6000/darwin.h.
512 (ASM_OUTPUT_SKIP): Ditto.
513 (TEXT_SECTION_ASM_OP): Ditto.
514 (DATA_SECTION_ASM_OP): Ditto.
515 (ASM_APP_ON): Define.
516 (ASM_APP_OFF): Define.
517 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
518 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
520 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
521 (machopic_function_base_name): Declare result to be const.
522 (machopic_non_lazy_ptr_name): Ditto.
523 (machopic_stub_name): Ditto.
524 * config/darwin-protos.h: Ditto for the prototypes.
526 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
528 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
530 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
532 * i386.md (prefetch): Fix for 64bit mode.
533 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
535 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
537 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
538 * i386.c (x86_machine_dependent_reorg): New function.
539 * i386-protos.h (x86_machine_dependent_reorg): Declare.
541 2002-07-16 Zack Weinberg <zack@codesourcery.com>
543 * builtins.c (std_expand_builtin_va_start): Remove unused
545 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
546 std_expand_builtin_va_start with just two arguments.
547 * expr.h: Update prototypes.
549 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
550 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
551 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
552 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
553 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
554 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
555 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
556 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
557 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
558 argument from all implementations of EXPAND_BUILTIN_VA_START
559 and all uses of std_expand_builtin_va_start.
561 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
563 * regrename.c (copy_value): Don't record high part copies.
565 2002-07-16 Steve Ellcey <sje@cup.hp.com>
567 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
568 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
569 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
571 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
573 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
575 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
576 into addsi3 using register class "x" and "y".
578 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
579 "earlyclobber" constraint modifier for some alternative.
581 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
582 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
584 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
586 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
587 (TARGET_SWITCHES): Add -mieee-compare option.
588 (OVERRIDE_OPTIONS): 32332 is a subset of
589 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
590 (TARGET_SWITCHES): Fix description of bitfield option.
591 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
592 -mieee-compare option. Remove 32332 flag.
594 2002-07-16 Steve Ellcey <sje@cup.hp.com>
596 * explow.c (convert_memory_address): Remove special handling
597 when POINTERS_EXTEND_UNSIGNED < 0.
598 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
599 (movedi_symbolic): Fix typo.
600 (load_fptr): Remove mode restriction so it works for SI and DI.
601 (load_fptr_internal1): Ditto.
603 (load_symptr_internal1): Ditto.
605 * config/ia64.c (call_operand): Modify mode check.
606 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
607 (ia64_expand_move): Ditto.
608 (ia64_assemble_integer): Handle SImode function pointers.
609 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
610 (ia64_expand_op_and_fetch): Ditto.
611 (ia64_expand_compare_and_swap): Ditto.
612 (ia64_expand_lock_test_and_set): Ditto.
613 (ia64_expand_lock_release): Ditto.
615 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
617 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
619 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
620 Richard Earnshaw <rearnsha@arm.com>
622 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
623 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
625 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
627 * arm.md (stack_tie): New insn. Use an idiom that the alias code
628 understands to be a memory clobber.
629 * arm.c (arm_expand_prologue): Use it.
631 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
633 * ra-rewrite.c: #include reload.h, insn-config.h
634 * ra-build.c: #include reload.h
635 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
636 depend on reload.h, insn-config.h.
638 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
640 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
641 the same size as a word.
643 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
644 BYTES_BIG_ENDIAN into account.
646 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
648 * i386.md (prefetch): Fix for 64bit mode.
649 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
651 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
653 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
655 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
657 2002-07-15 Zack Weinberg <zack@codesourcery.com>
659 * ginclude/varargs.h: Replace with stub which issues #error.
660 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
663 * builtins.def (BUILT_IN_VARARGS_START): Delete.
664 (BUILT_IN_VA_START): New.
665 * builtins.c (expand_builtin_va_start): Eliminate first
666 argument and code to implement pre-ISO varargs.
667 (std_expand_builtin_va_start): Ignore first argument; it is
669 (expand_builtin): Handle BUILT_IN_VA_START and
670 BUILT_IN_STDARG_START identically. Delete
671 BUILT_IN_VARARGS_START case.
673 * function.c (assign_parms): Delete hide_last_arg and all
675 (mark_varargs): Delete function.
676 * function.h (struct function): Delete 'varargs' bit.
677 (current_function_varargs): Delete macro.
678 * tree.h: Don't declare mark_varargs.
680 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
681 (c_expand_body): Don't call mark_varargs.
682 * c-objc-common.c: Handle BUILT_IN_VA_START and
683 BUILT_IN_STDARG_START identically. Delete
684 BUILT_IN_VARARGS_START case.
685 * c-tree.h: Don't declare c_mark_varargs.
686 * c-parse.in: Remove grammar rules for '&...' (which has been
687 commented out since before 2.7.2) and for '...' in K+R
688 argument declarations.
690 * builtins.c, function.c, integrate.c, sibcall.c,
691 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
692 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
693 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
694 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
695 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
696 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
697 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
698 config/stormy16/stormy16.c: Delete all references to
699 current_function_varargs, and code predicated on that flag.
701 * config/alpha/alpha.c (alpha_va_start),
702 config/arc/arc.c (arc_va_start),
703 config/i386/i386.c (ix86_va_start),
704 config/mips/mips.c (mips_va_start),
705 config/mn10300/mn10300.c (mn10300_va_start),
706 config/rs6000/rs6000.c (rs6000_va_start),
707 config/s390/s390.c (s390_va_start),
708 config/sh/sh.c (sh_va_start),
709 Ignore first argument; it is always 1.
711 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
712 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
713 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
714 Delete m68hc11_va_start.
715 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
716 No need to define EXPAND_BUILTIN_VA_START.
718 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
719 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
721 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
724 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
725 dies in more than one insn.
727 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
729 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
731 2002-07-15 Michael Matz <matz@suse.de>,
732 Daniel Berlin <dberlin@dberlin.org>,
733 Denis Chertykov <denisc@overta.ru>
735 Add a new register allocator.
739 * ra-build.c: New file.
740 * ra-colorize.c: New file.
741 * ra-debug.c: New file.
742 * ra-rewrite.c: New file.
744 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
745 (ra-rewrite.o): New .o files for libbackend.a.
746 (GTFILES): Add basic-block.h.
748 * toplev.c (flag_new_regalloc): New.
749 (f_options): New option "new-ra".
750 (rest_of_compilation): Call initialize_uninitialized_subregs()
751 only for the old allocator. If flag_new_regalloc is set, call
752 new allocator, instead of local_alloc(), global_alloc() and
755 * doc/invoke.texi: Document -fnew-ra.
756 * basic-block.h (FOR_ALL_BB): New.
757 * config/rs6000/rs6000.c (print_operand): Write small constants
760 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
761 (df_reg_table_realloc): Make size at least as large as max_reg_num().
762 (df_insn_table_realloc): Size argument now is absolute, not relative.
765 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
766 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
768 2002-06-20 Michael Matz <matz@suse.de>
770 * df.h (struct ref.id): Make unsigned.
771 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
773 2002-06-13 Michael Matz <matz@suse.de>
775 * df.h (DF_REF_MODE_CHANGE): New flag.
776 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
777 involving subregs with invalid mode changes, when
778 CLASS_CANNOT_CHANGE_MODE is defined.
780 2002-05-07 Michael Matz <matz@suse.de>
782 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
784 2002-05-03 Michael Matz <matz@suse.de>
786 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
788 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
790 * regclass.c (regclass): Work with all regs which have sets or
792 (reg_scan_mark_refs): Count regs inside (clobber ...).
794 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
796 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
797 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
799 (df_bb_refs_update): Don't clear insns_modified here, ...
800 (df_analyse): ... but here.
802 * sbitmap.c (dump_sbitmap_file): New.
803 (debug_sbitmap): Use it.
805 * sbitmap.h (dump_sbitmap_file): Add prototype.
807 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
809 * df.c (df_insn_modify): Grow the UID table if necessary, rather
810 than assume all emits go through df_insns_modify.
812 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
814 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
815 increase REG_N_REFS (like flow does), so that regclass doesn't
816 think a reg is useless, and thus, not calculate a class, when it
819 2001-01-28 Daniel Berlin <dberlin@redhat.com>
821 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
824 2002-07-15 Jakub Jelinek <jakub@redhat.com>
827 * config/i386/i386.c (const_int_1_31_operand): New.
828 * config/i386/i386.h (PREDICATE_CODES): Add it.
829 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
830 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
831 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
833 2002-07-14 Alan Modra <amodra@bigpond.net.au>
836 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
837 (floatunssidf2): Likewise.
838 (floatsidf_ppc64): New insn_and_split.
839 (floatunssidf_ppc64): Likewise.
841 2002-07-14 Andreas Jaeger <aj@suse.de>
843 * config.gcc (sh64): Remove unused
844 target_requires_64bit_host_wide_int.
846 2002-07-12 Roger Sayle <roger@eyesopen.com>
848 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
849 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
850 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
851 whether clear_by_pieces should be used to clear storage.
852 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
854 * doc/tm.texi: Document these two new target macros.
856 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
858 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
859 the scratch register.
860 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
861 of it, forbid reload to use it.
863 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
865 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
866 usage on 64-bit hosts, return value was truncated to 32 bits.
868 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
870 * simplify-rtx.c (simplify_subreg): Handle floating point
871 CONST_DOUBLEs. When an integer subreg of a smaller mode than
872 the element mode is requested, compute a subreg with an
873 integer mode of the same size as the element mode first.
875 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
877 * combine.c (try_combine): When converting a paradoxical subreg
878 to an extension, take LOAD_EXTEND_OP into account.
880 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
882 * config.gcc (mips-sgi-irix6*o32): New configuration.
884 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
886 * configure: Regenerate.
888 * config/mips/iris6-o32-as.h: New file.
889 * config/mips/iris6-o32.h: New file.
891 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
893 (HAVE_AS_SHF_MERGE): Undefine.
895 * config/mips/t-iris5-as: New file.
896 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
898 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
899 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
900 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
901 dp-bit.c, fp-bit.c): Move ...
902 * config/mips/t-iris5-6: ... here.
903 New file, shared by IRIX 5 and IRIX 6.
904 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
905 mips-sgi-irix5*): Use it.
907 * config/mips/iris6.h: Remove duplicate comment.
909 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
910 !TARGET_IRIX6]: Define.
911 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
913 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
915 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
917 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
918 and delete code to force constant to register.
919 * pa-protos.h (adddi3_operand): Add prototype.
920 * pa.c (adddi3_operand): New function.
922 2002-07-11 Roger Sayle <roger@eyesopen.com>
924 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
925 non-ANSI builtin functions.
927 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
929 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
930 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
931 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
932 (gen_const_vector_0): Use it.
934 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
936 * pa.md (adddi3): For 32-bit targets, force constants to a register
937 if they don't fit in an 11-bit immediate. Change insn predicate to
938 arith11_operand. Remove comment.
939 * pa.c (cint_ok_for_move): Fix comment.
940 (emit_move_sequence): Don't directly split DImode constants on 32-bit
943 2002-07-11 Tim Josling <tej@melbpc.org.au>
945 Remove front end hard coding from gengtype.c.
948 (STAGESTUFF): add gtyp-gen.h
949 (GTFILES): Remove front end specific files.
950 (GTFILES_FILES_LANGS): New, from configure..
951 (GTFILES_FILES_FILES): Likewise.
952 (GTFILES_LANG_DIR_NAMES): Likewise.
953 (GTFILES_SRCDIR): Likewise.
954 (gtyp-gen.h): Build from configure information.
955 (s-gtype): Remove command line parameters from gengtype.
956 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
957 (mostlyclean): Delete files generated by and for gengtype.
959 * c-config-lang.in: New file.
961 * configure.in (all_gtfiles_files_langs): New. Accumulate files
963 (all_gtfiles_files_files): New. Accumulate language for each file
965 (gtfiles): Pick up value for C.
966 (srcdir): AC-SUBST this variable.
967 (all_gtfiles_files_langs): AC-SUBST this variable.
968 (all_gtfiles_files_files): AC-SUBST this variable.
970 * configure: Regenerate.
972 * gengtype-lex.l (parse_file): Make parameter const.
974 * gengtype.c (toplevel): include gtyp-gen.h.
975 (BASE_FILE_<language> unnamed enum): Delete.
976 (lang_names): Delete (replaced by gtyp-gen.h)
977 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
980 (NUM_LANG_FILES): New.
982 (NUM_BASE_FILES): Change calculation.
983 (open_base_files): Change prototype to avoid warning.
984 (startswith): Delete.
985 (get_file_basename): Iterate through generated language list not
987 (get_base_file_bitmap): Use generated list of files and languages.
988 (close_output_files): Add prototype to rmove warning.
989 (main): Iterate through list of generated files from gtyp-gen.h
990 rather than command line paramaters. Ignore duplicated file
993 * gengtype.h (parse_file): Amend prototype for const parameter.
995 * doc/sourcebuild.texi: Document gtfiles variable.
997 * doc/gty.texi: Document changes to gtfiles variable for front
1000 * objc/config-lang.in (gtfiles): Add files needed for objc front
1003 2002-07-10 Roger Sayle <roger@eyesopen.com>
1006 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
1007 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
1009 2002-07-10 Roger Sayle <roger@eyesopen.com>
1010 Zack Weinberg <zack@codesourcery.com>
1012 * builtins.def: Make the argument types of abort and exit
1013 independent of the front-end.
1015 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1017 * config/rs6000/linux64.h (ASM_SPEC): Define.
1019 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
1021 * config/rs6000/rs6000.c (emit_frame_save): New.
1022 (rs6000_frame_related): Replace reg2 before reg.
1023 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
1024 and eh_return registers.
1026 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
1028 Revert all patches for optimization of Complex .op. Real.
1029 * complex_part_zero_p: Remove
1030 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
1032 * expand_cmplxdiv_wide: Ditto.
1033 * expand_binop: Ditto.
1035 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1037 * config/avr/avr.md: Fix two 0x80000000 constants to make them
1038 negative also on 64-bit hosts.
1040 Default to -fno-reorder-blocks when optimizing for size.
1041 * config/avr/avr-protos.h (avr_optimization_options): Declare.
1042 * config/avr/avr.c (avr_optimization_options): New function.
1043 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
1045 Optimize returning from simple functions.
1046 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
1047 * config/avr/avr.c (avr_simple_epilogue): New function.
1048 * config/avr/avr.md (return): New insn.
1050 2002-07-10 Douglas B Rupp <rupp@gnat.com>
1052 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
1053 HAS_INIT_SECTION to protection.
1055 2002-07-10 Mark Mitchell <mark@codesourcery.com>
1057 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
1060 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
1062 * combine.c (gen_lowpart_for_combine): Handle vector modes.
1063 Supply non-VOID mode to simplify_gen_subreg.
1065 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
1067 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
1069 2002-07-10 Jeffrey A Law <law@redhat.com>
1071 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
1074 * mn10200.c (expand_epilogue): Fix test to determine which scratch
1077 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
1079 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
1081 If simplify_gen_subreg fails, try next equivalent.
1083 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
1085 * diagnostic.h: #include location.h
1086 (location_t): Move definition to..
1087 * location.h: ... here. New file.
1088 * tree.h: #include location.h
1089 (DECL_SOURCE_LOCATION): New macro.
1090 (DECL_SOURCE_FILE): Use.
1091 (DECL_SOURCE_LINE): Likewise.
1092 (struct tree_decl): REplace filename and linenum with locus.
1093 * Makefile.in (TREE_H): add location.h
1094 (diagnostic.o): Depends on gt-location.h
1095 (gt-location.h): Depends on s-gtype
1097 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
1099 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
1100 TARGET_OS_CPP_BUILTINS.
1101 * config/rs6000/aix31.h: Likewise.
1102 * config/rs6000/aix41.h: Likewise.
1103 * config/rs6000/aix43.h: Likewise.
1104 * config/rs6000/aix51.h: Likewise.
1105 * config/rs6000/beos.h: Likewise.
1106 * config/rs6000/darwin.h: Likewise.
1107 * config/rs6000/eabi.h: Likewise.
1108 * config/rs6000/eabisim.h: Likewise.
1109 * config/rs6000/linux.h: Likewise.
1110 * config/rs6000/linux64.h: Likewise.
1111 * config/rs6000/lynx.h: Likewise.
1112 * config/rs6000/mach.h: Likewise.
1113 * config/rs6000/rtems.h: Likewise.
1114 * config/rs6000/sysv4.h: Likewise.
1115 * config/rs6000/vxppc.h: Likewise.
1117 2002-07-09 Devang Patel <dpatel@apple.com>
1118 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
1119 Do not allow ObjC objects as a parameter type for Objective-C methods.
1120 My previous patch restricted 'struct' also.
1122 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
1124 * cpperror.c (cpp_error): Default to directive_line within
1126 * cppexp.c (cpp_interpret_integer): Only use traditional
1127 number semantics in directives.
1128 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
1129 (do_include_common): Similarly.
1130 * cpptrad.c (scan_out_logical_line): Implement accurate
1131 quoting of <> in #include.
1132 * doc/cpp.texi: Update.
1134 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
1135 J"orn Rennecke <joern.rennecke@superh.com>
1137 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
1138 * sh.md (attribute issues): Replace with:
1139 (attribute pipe_model). All users changed.
1140 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
1142 (function units sh5issue, sh5fds): New.
1143 (attribute is_mac_media): New.
1144 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
1145 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
1146 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
1147 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
1148 (call_media, call_value_media, sibcall_media): Likewise.
1149 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
1150 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
1151 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
1152 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
1153 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
1154 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
1155 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
1156 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
1157 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
1158 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
1159 (truncdfsf2_media): Likewise.
1160 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
1161 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
1163 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
1165 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
1166 * sh.c (general_extend_operand, inqhi_operand): New functions.
1167 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
1168 alternatives using 'N' modifier. Add type.
1169 (adddi3z_media): Likewise. Enable generator function generation.
1170 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
1171 exact predicates / constraints. Add type.
1172 (subsi3): Allow 0 for SHMEDIA.
1173 (udivsi3_i4_media): Use match_operand for input values
1174 rather than hard registers.
1175 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1176 unnecessarily through hard registers. Keep copies of pseudo
1177 registers outside of the libcall sequence.
1178 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
1179 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
1180 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
1181 (extendhidi2, extendqidi2): Likewise.
1182 (andsi3_compact): Name.
1183 (andcdi3): Enable generator function generation.
1184 (zero_extendhisi2, zero_extendqisi2): Rename to
1185 (zero_extendhisi2_compact, zero_extendqisi2_compact).
1186 (extendhisi2, extendqisi2): Rename to
1187 (extendhisi2_compact, extendqisi2_compact).
1188 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
1189 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
1190 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
1191 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
1192 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
1193 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
1194 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
1195 (shmedia32_initialize_trampoline_big): Likewise.
1196 (shmedia32_initialize_trampoline_little): Likewise.
1197 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
1198 (negdi2): Remove spurious T clobber.
1199 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
1200 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
1201 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
1202 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
1203 (ic_invalidate_line_media): Write back data cache before invalidating
1204 instruction cache. Add type.
1205 (movsf_media): Sign-extend when the destination is a general
1206 purpose register. Add type.
1207 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
1208 (casesi_worker_0+1): Only increment ref count for proper label.
1209 (casesi_worker_0+2): Likewise.
1211 2002-07-09 Mark Mitchell <mark@codesourcery.com>
1213 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
1215 2002-07-09 Steve Ellcey <sje@cup.hp.com>
1217 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
1218 from Pmode to ptr_mode.
1219 (get_exception_pointer): Ditto.
1220 (connect_post_landing_pads): Ditto.
1221 (dw2_build_landing_pads): Ditto.
1223 2002-07-08 Steve Ellcey <sje@cup.hp.com>
1224 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
1225 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
1226 (handle_pragma_redefine_extname): Change to use new function.
1228 2002-07-08 Roger Sayle <roger@eyesopen.com>
1230 * combine.c (combine_simplify_rtx): Add an explicit cast
1231 to avoid signed/unsigned comparison warning.
1232 (simplify_if_then_else): Likewise.
1233 (extended_count): Likewise.
1234 (simplify_shift_const): Likewise.
1235 (simplify_comparison): Likewise.
1237 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
1239 * config/mips/mips.md: Add imadd type. Update scheduler description
1240 to use imadd as well as imul.
1241 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
1242 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
1243 (*mul_sub_si): Likewise for first alternative. Change second
1244 alternative from imul to multi.
1246 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
1248 * c-common.c (c_common_post_options): Update prototype;
1249 don't init backends if preprocessing only.
1250 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
1251 * langhooks.h (struct lang_hooks): Update post_options to
1253 * toplev.c (parse_options_and_default_flags, do_compile,
1254 lang_independent_init): Update prototypes. Allow the
1255 front end to specify that there is no need to initialize
1257 (general_init): Move call to hex_init here...
1258 (toplev_main): ...from here. Pass flag for back end init
1261 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1263 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
1264 (PREDICATE_CODES): Add entries for equality_comparison_operator,
1265 greater_comparison_operator and less_comparison_operator.
1266 * sh.c (print_operand): Add '\'' code. Make 'o' handle
1268 (equality_comparison_operator): New function.
1269 (greater_comparison_operator, less_comparison_operator): Likewise.
1270 * sh.md (beq_media_i): Disable generator function generation.
1271 Use match_operator to handle a whole class of comparisons. Add
1272 modifier in output template to provide branch prediction. Add type.
1273 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
1274 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
1275 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
1276 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
1278 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
1280 Emit MMIX function prologue and epilogue as rtl.
1281 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
1282 not unprototyped get_hard_reg_initial_val.
1283 ("call_value", "nonlocal_goto_receiver"): Ditto.
1284 ("return"): Make define_expand. Move real insn to...
1285 ("*expanded_return"): New pattern.
1286 ("prologue", "epilogue"): New define_expands.
1287 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
1288 (struct machine_function): New member in_prologue.
1289 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
1290 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
1291 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
1292 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
1293 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
1294 (LOCAL_REGNO): Define. Adjust comment.
1295 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
1296 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
1298 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
1300 (mmix_target_asm_function_prologue): Make static. Just mark that
1301 the prologue is being emitted. Move guts to...
1302 (mmix_expand_prologue): New function. Adjust for emitting
1303 prologue as rtl. For sizes, use HOST_WIDE_INT only.
1304 (mmix_target_asm_function_epilogue): Make static. Simply emit a
1306 (mmix_expand_epilogue): New function. Adjust for emitting
1307 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
1308 (mmix_target_asm_function_end_prologue): Mark that the prologue
1310 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1311 (mmix_conditional_register_usage): Improve comments.
1312 (mmix_local_regno): New function.
1313 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
1314 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
1315 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
1316 (mmix_get_hard_reg_initial_val): Ditto.
1318 2002-07-06 Andreas Jaeger <aj@suse.de>
1320 * toplev.c (set_fast_math_flags): Don't use ISO C style function
1322 * gengtype.c (open_base_files): Likewise.
1323 (close_output_files): Likewise.
1324 * tracer.c (find_best_predecessor): Likewise.
1325 (find_best_successor): Likewise.
1326 (ignore_bb_p): Likewise.
1328 2002-07-05 Roger Sayle <roger@eyesopen.com>
1331 * builtin-attrs.def: Define new attribute lists for use in
1333 * builtins.def [DEF_BUILTIN]: Modify to take an additional
1334 ATTRS argument, an enumerated value defined in builtin-attrs.def
1335 that represents the attribute list for the builtins. Modify
1336 all builtin functions to pass an appropriate attribute list.
1337 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
1338 their required noreturn attributes.
1339 * tree.h (enum_builtin_function): Ignore the additional parameter
1341 * builtins.c (built_in_names): Likewise.
1342 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
1343 argument with a tree representing the functions attribute list.
1344 Pass this "attrs" argument to builtin_function. No longer handle
1345 the noreturn_p processing manually.
1346 (built_in_attributes): Move the definitions from builtin-attrs.def
1347 before c_common_nodes_and_builtins.
1348 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
1349 DEF_BUILTIN, passing it to both builtin_function and the changed
1352 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
1353 __builtin__exit and __builtin__Exit.
1355 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1357 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1358 QI mode registers in soft registers.
1359 ("zero_extendqihi2"): Do not take into account soft registers
1360 for register allocation (use '*' constraint).
1362 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1364 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1366 ("*ashrsi3"): Likewise.
1367 ("*lshrsi3"): Likewise.
1369 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
1371 * genautomata.c (output_max_insn_queue_index_def): Take latencies
1374 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1376 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1377 address computation and memory moves.
1379 2002-07-03 Mark Mitchell <mark@codesourcery.com>
1382 * dwarfout.c (output_reg_number): Fix warning message.
1383 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1386 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1388 * gcc/gcc.c (asm_debug): Move initialization ...
1389 (init_spec): ... here.
1391 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
1393 * c-parse.in (extdef): Append ';'.
1394 (old_style_parm_decls): Append ';'.
1396 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1398 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1399 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1400 to gcc_cv_as_gstabs_flag.
1401 * configure: Rebuilt.
1403 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
1405 * ggc.h (ggc_add_root): Document as obsolete.
1407 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
1409 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1410 (mshflo_w): Likewise.
1412 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1414 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1415 vector mode subregs of constants to finding integer mode
1416 subregs of constants.
1417 * cse.c (cse_insn): Use simplify_gen_subreg.
1418 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1419 From a vector mode expression of different size than the
1422 2002-07-03 Eric Christopher <echristo@redhat.com>
1424 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1425 * config/mips/mips.h: Remove deprecated -m<processor> options
1426 and cc1_cpu_spec associated.
1427 (CONSTANT_ADDRESS_P): Fix last patch.
1428 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1429 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1432 2002-07-03 Stan Shebs <shebs@apple.com>
1434 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1435 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1436 (CPP_SPEC): Remove insertion of APPLE_CC definition.
1438 2002-07-03 Roger Sayle <roger@eyesopen.com>
1440 * combine.c (struct_undo): Change types of recorded substitutions
1441 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1442 (do_SUBST_INT): Change types of the substitution from unsigned int
1443 to int, to avoid compilation warning from SUBST_INT's only caller.
1445 (make_extraction): Add cast to avoid compilation warning.
1446 (force_to_mode): Remove cast to avoid compilation warning.
1448 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
1449 Jeff Law <law@redhat.com>
1451 * i386.md (length_immediate attribute): Fix typo.
1452 (length_address attribute): Likewise.
1453 (modrm attribute): Set it to 0 for immediate call instructions.
1454 (jcc_1 pattern): Set modrm attribute to 0.
1455 (jcc_2 pattern ): Likewise.
1456 (jump pattern): Likewise.
1457 (doloop_end_internal pattern): Explicitly set length.
1458 (leave pattern): Fix typo.
1459 (leave_rex64 pattern): Likewise.
1461 2002-07-03 David Edelsohn <edelsohn@gnu.org>
1463 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1464 in FPR as preference.
1466 (floatdidf2, fix_truncdfdi2): Same.
1467 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1469 (floatsitf2, fix_trunctfsi2): SImode in GPR.
1470 (ctrdi): Remove FPR alternative and splitter.
1472 2002-07-03 Will Cohen <wcohen@redhat.com>
1474 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1476 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
1478 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1479 than UNITS_PER_WORD, unless this is little endian and the first unit
1480 in this word. Let extract_bit_field decide how to load an element.
1481 Force arguments to matching mode.
1482 (expand_vector_unop): Likewise.
1484 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1485 consist of word_mode elements.
1486 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1487 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1488 (build_unary_op): Allow vector types for BIT_NOT_EPR.
1489 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1491 * optabs.c (expand_vector_binop): Try to perform operation in
1492 smaller vector modes with same inner size. Add handling of AND, IOR
1493 and XOR. Reject expansion to inner-mode sized scalars when using
1494 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
1495 (expand_vector_unop): Try to perform operation in smaller vector
1496 modes with same inner size. Add handling of one's complement.
1497 When there is no vector negate operation, try a vector subtract
1498 operation. Use simplify_gen_subreg on constants.
1499 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1500 constants into smaller vectors with same inner mode, and to
1501 integer CONST_DOUBLEs.
1503 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1505 * c-parse.in (parsing_iso_function_signature): New variable.
1506 (extdef_1): New, copied from...
1507 (extdef): ... here. Reset parsing_iso_function_signature.
1508 (old_style_parm_decls): Reset parsing_iso_function_signature.
1509 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1510 Warn about ISO C style function definitions.
1511 (nested_function, notype_nested_function): Reset
1512 parsing_iso_function_signature.
1513 (parmlist_2): Set parsing_iso_function_signature.
1515 * doc/invoke.texi (-Wtraditional): Document new behavior.
1517 2002-07-02 Chris Demetriou <cgd@broadcom.com>
1519 * config.gcc (mips*el-*-*): Use tm_defines to set
1520 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1521 * config/mips/little.h: Remove.
1523 2002-07-02 Devang Patel <dpatel@apple.com>
1525 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
1526 object as parameter. Prevent something like 'NSObject' to be
1527 used as the type for a method argument.
1529 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
1531 * cpptrad.c: Update comment.
1533 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1535 * doc/cpp.texi: Update for traditional preprocessing changes.
1536 * goc/cppopts.texi: Similarly.
1538 2002-07-02 Ziemowit Laski <zlaski@apple.com>
1540 * c-parse.in (designator): Enable designated initializers if ObjC.
1541 (objcmessageexpr): Remove references to objc_receiver_context.
1542 * objc/objc-act.h (objc_receiver_context): Remove decl.
1543 * objc/objc-act.c (objc_receiver_context): Remove.
1544 (lookup_objc_ivar): Test objc_method_context instead of
1545 objc_receiver_context.
1547 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1549 * sh.c (print_operand, case 'N'): Allow zero vector.
1550 (arith_reg_or_0_operand): Likewise.
1551 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
1552 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
1553 IOR, XOR, PLUS and SET and take their respective constant
1554 ranges into account.
1555 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1556 * sh.md (subdi3, subdi3_media): Allow zero operand.
1557 (movv8qi_i+3): Only vector that is not split is the zero vector.
1558 Fix operand 3 to simplify_subreg.
1559 (movv2si_i): Split alternative 1.
1560 (mshfhi_l_di_rev+1): New splitter.
1562 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1564 PR preprocessor/7029
1565 * cppinit.c (cpp_handle_option): Suppress warnings with an
1566 implicit "-w" for "-M" and "-MM".
1567 * doc/cppopts.texi: Update.
1569 2002-07-01 Roger Sayle <roger@eyesopen.com>
1571 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1572 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
1575 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1577 * README.Portability: Fix typos.
1579 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
1582 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1583 of indirections for register inside sign-extended mem part.
1585 2002-07-01 Roger Sayle <roger@eyesopen.com>
1587 * tree.h: Modify builtin_function interface to take an extra
1588 argument ATTRS, which is a tree representing an attribute list.
1590 * c-decl.c (builtin_function): Accept additional parameter.
1591 * objc/objc-act.c (builtin_function): Likewise.
1592 * f/com.c (builtin_function): Likewise.
1593 * java/decl.c (builtin_function): Likewise.
1594 * ada/utils.c (builtin_function): Likewise.
1595 * cp/decl.c (builtin_function): Likewise.
1596 (builtin_function_1): Likewise.
1598 * c-common.c (c_common_nodes_and_builtins): Pass an additional
1599 NULL_TREE argument to builtin_function. (builtin_function_2):
1601 * cp/call.c (build_java_interface_fn_ref): Likewise.
1602 * objc/objc-act.c (synth_module_prologue): Likewise.
1603 * java/decl.c (java_init_decl_processing): Likewise.
1604 * f/com.c (ffe_com_init_0): Likewise.
1606 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1607 NULL_TREE argument to builtin_function.
1608 * config/arm/arm.c (def_builtin): Likewise.
1609 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1610 * config/i386/i386.c (def_builtin): Likewise.
1611 * config/ia64/ia64.c (def_builtin): Likewise.
1612 * config/rs6000/rs6000.c (def_builtin): Likewise.
1614 2002-07-01 Zack Weinberg <zack@codesourcery.com>
1616 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1617 * config/mips/t-isa3264: Likewise.
1618 * config/mmix/t-mmix: Likewise.
1620 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1622 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1624 2002-07-01 Roger Sayle <roger@eyesopen.com>
1627 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1628 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1631 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
1633 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1635 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
1637 * README.Portability (Function prototypes): Give an example of
1638 declaring and defining a function with no arguments.
1640 * README.Portability (Function prototypes): Document new
1641 variable-argument function macros.
1643 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
1645 * sh.c (langhooks.h): Include.
1646 (sh_init_builtins, sh_media_init_builtins): New functions.
1647 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1648 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1649 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1650 (builtin_description): New struct tag.
1651 (signature_args, bdesc): New arrays.
1652 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1653 (print_operand): Add 'N' modifier.
1654 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1655 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1656 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1657 (CONST_COSTS): Add special case for SHmedia AND.
1658 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1659 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1660 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1661 target_operand can also be const or unspec.
1662 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1663 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1664 (attribute type): Add new types.
1665 (anddi3): Add splitter.
1666 (movdi_const_16bit+1): Add code to handle vector constants and
1667 bitmasks efficiently.
1668 (shori_media): Have generator function made.
1669 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1670 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1671 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1672 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1673 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1674 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1675 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1676 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1677 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1678 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1679 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1680 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1681 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1682 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1683 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1684 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1685 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1686 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1687 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1690 (fpu_switch+1, fpu_switch+2): Remove constraint.
1692 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
1694 * tree.c (build_function_type_list): Update function comment.
1695 Rename first argument to return_type.
1697 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1699 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1700 tradcif.y and related files.
1702 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1704 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1706 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1708 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1710 2002-06-30 Devang Patel <dpatel@apple.com>
1712 * objc/objc-act.c (finish_file): Avoid finish_objc() if
1715 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
1716 Frank Ch. Eigler <fche@redhat.com>
1717 Matthew Green <mrg@redhat.com>
1718 Richard Henderson <rtl@redhat.com>
1719 Dave Hudson <dave.hudson@ubicom.com>
1720 Jeff Johnston <jjohnstn@redhat.com>
1721 Alan Lehotsky <apl@alum.mit.edu>
1722 Bernd Schmidt <bernds@redhat.com>
1723 Graham Stott <grahams@redhat.com>
1725 * doc/extend.texi: Add ip2k port to description of attribute
1727 * doc/install.texi (Specific): Add ip2k description.
1728 * doc/install-old.texi (Configurations): Add ip2k to possible
1730 * doc/md.texi: Document ip2k constraints.
1731 * config/ip2k/crt0.S: New file.
1732 * config/ip2k/ip2k-protos.h: New file.
1733 * config/ip2k/ip2k.c: New file.
1734 * config/ip2k/ip2k.h: New file.
1735 * config/ip2k/ip2k.md: New file.
1736 * config/ip2k/libgcc.S: New file.
1737 * config/ip2k/t-ip2k: New file.
1739 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
1741 * config/mmix/mmix.md ("return"): New pattern.
1742 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1743 (TARGET_USE_RETURN_INSN): New macros.
1744 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1745 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1746 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1747 (MMIX_POP_ARGUMENT): New macro.
1748 (mmix_target_asm_function_prologue): When no epilogue is executed,
1749 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
1750 (mmix_print_operand) <case '.'>: New case.
1751 (mmix_print_operand_punct_valid_p): Match '.'.
1752 (mmix_use_simple_return): New function.
1753 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1754 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1755 -msingle-exit, -mno-single-exit.
1756 (MMIX Options): Ditto.
1758 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
1760 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
1762 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1764 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1766 2002-06-30 Alan Modra <amodra@bigpond.net.au>
1768 * unroll.c (loop_iterations): Handle EQ loops.
1770 2002-06-29 David Edelsohn <edelsohn@gnu.org>
1772 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1773 constraint in define_expand, not splitter.
1776 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
1778 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1779 build_function_type_list instead of build_function_type.
1781 * config/ia64/ia64.c (ia64_init_builtins): Same.
1783 * config/alpha/alpha.c (alpha_init_builtins): Same.
1785 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
1787 * config/arm/arm.c (arm_init_builtins): Same.
1789 * tree.h: Add build_function_type_list prototype.
1791 * tree.c (build_function_type_list): New.
1793 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1795 * collect2.c (scan_prog_file): Fix typo in message.
1797 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
1799 * fold-cont.c: Remove unused CHARMASK.
1801 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
1803 PR preprocessor/7150
1804 * cppmain.c (scan_translation_unit_trad): Simplify.
1805 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
1807 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
1809 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
1810 Don't use CPP_PREDEFINES.
1811 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
1812 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
1813 * config/i386/djgpp.h, config/i386/i386-coff.h,
1814 config/i386/i386-interix.h, config/i386/i386-interix3.h,
1815 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
1816 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
1817 config/i386/uwin.h: Similarly.
1819 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1821 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
1822 flag_inline_trees to enable inlining.
1824 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
1826 * configure.in (gcc_gxx_include_dir): Change to match versioned
1827 C++ headers if --enable-version-specific-runtime-libs is used.
1828 * configure: Regenerate.
1830 2002-06-28 Jan Hubicka <jh@suse.cz>
1832 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
1834 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
1836 * combine.c (combine_simplify_rtx): Pass the mode of the
1837 shift count, not the shift operation when trying to simplify
1838 a shift on a SHIFT_COUNT_TRUNCATED target.
1840 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1842 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
1843 avoid the auto increment addressing modes.
1844 ("*subsi3"): Likewise.
1845 (split for add/sub on address): For 68HC12 push the value on
1846 the stack and do the operation with a pop.
1848 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
1850 * cpplib.c (_cpp_handle_directive): Move #define-specific
1851 code to the #define handler...
1852 (do_define): ...here.
1853 (lex_macro_node): No longer a need to check for comments here.
1855 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1857 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
1858 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1860 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
1861 do not reorder basic blocks at the end when optimizing for size.
1863 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1865 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
1866 (m68hc11_make_autoinc_notes): New function.
1867 (m68hc11_split_move): Be very cautious when spliting a move with
1868 auto increment/decrement modes because this may result in incompatible
1869 directions; add REG_INC notes to the resulting insn for CSE reg.
1871 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
1873 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
1874 can be a valid address.
1876 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
1878 * config/rs6000/rs6000.c: Remove unusued variables from last
1881 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1884 * config/rs6000/rs6000.c (rs6000_override_options): Move
1885 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1887 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1889 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
1890 lvx/stv/dst builtins...
1891 (altivec_expand_ld_builtin): ...to here.
1892 (altivec_expand_st_builtin): ...here.
1893 (altivec_expand_dst_builtin): ...and here (respectively).
1895 2002-06-28 Bob Wilson <bob.wilson@acm.org>
1897 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
1899 2001-06-08 Bernd Schmidt <bernds@redhat.com>
1901 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
1903 * recog.c (general_operand, register_operand): Disallow them.
1905 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
1907 PR preprocessor/7138
1908 * cpplib.c (_cpp_handle_directive): Do traditional
1909 preparation after setting state.angled_headers.
1910 * cpptrad.c (scan_out_logical_line): Fix potential
1913 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1915 * config/rs6000/rs6000.c (rs6000_override_options): Move
1916 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1918 2002-06-27 Bob Wilson <bob.wilson@acm.org>
1920 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
1921 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
1922 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
1924 2002-06-27 Roger Sayle <roger@eyesopen.com>
1926 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
1927 * config/stormy16/stormy16.h: Likewise.
1929 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
1932 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1934 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
1935 Hitachi entry. Make punctuation more consistent.
1937 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
1939 * doc/install.texi: Change ` bit' to `-bit'.
1940 * doc/md.texi: Change `-bits' to `-bit'.
1941 * doc/tm.texi: Change `-bits' to ` bits'.
1943 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
1945 * gcse.c (hoist_code): Rewrite to only get list of dominated
1946 blocks once per BB. Also fix reversed test (by removing need for
1949 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
1951 * cpphash.h (_cpp_set_trad_context): Remove.
1952 * cpplib.c (prepare_directive_trad): Do nothing for #define.
1953 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
1954 * cpptrad.c: Update comments.
1955 (_cpp_read_logical_line_trad): Let scan_logical_line handle
1956 updating the current context.
1957 (scan_logical_line): Update the current context.
1958 (_cpp_create_trad_definition): Similarly.
1959 (_cpp_set_trad_context): Remove.
1961 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
1963 PR preprocessor/7070
1964 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
1966 2002-06-26 Bob Wilson <bob.wilson@acm.org>
1968 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
1969 config/xtensa/xtensa.c (xtensa_return_addr): New function.
1970 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
1971 config/xtensa/xtensa.md (fix_return_addr): New pattern.
1973 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1975 * mips.c (coprocessor_operand, coprocessor2_operand,
1976 symbolic_operand): Move prototypes from here...
1977 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
1978 symbolic_operand): ...to here.
1980 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1982 * config/sh/crt1.asm: remove _stack label definition
1985 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1987 * varasm.c: Include real.h before output.h.
1989 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
1991 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
1992 check for TARGET_ALTIVEC.
1994 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
1996 * config.gcc (vax-*-vms*): Make obselete.
1998 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2000 * gcc.c (warn_std): Delete.
2002 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
2004 * doc/extend.texi: Fix formatting of last checkin.
2006 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2008 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
2009 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
2011 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
2013 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2014 discrepancies from motorola's documentation.
2016 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
2018 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
2019 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
2021 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
2022 produce a 32 bit result before normalization, then normalize with a
2023 left shift. Compute approximative error of 2nd reciprocal
2024 approximation in 2's complement. Fix mask generation from upper
2025 longword of second divide stage result.
2026 For large divisor, fix shift count used to truncate first stage
2027 divide result; make decision if to adjust upwards based on comparison
2028 of higher parts of normalized values.
2029 (udivdi): Likewise. Undo normalization of result for large divisor
2032 2002-06-25 David S. Miller <davem@redhat.com>
2034 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
2036 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
2038 * cpplib.c (do_include_common): Revert to correct line number
2040 * cpptrad.c (scan_out_logical_line): Treat null directive as
2041 white space. Invlidate MI optimization for non-whitespace
2042 text outside a directive.
2044 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2046 * Makefile.in (SHELL): Set to @SHELL@.
2047 * fixinc/Makefile.in (SHELL): Likewise.
2049 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
2050 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
2053 2002-06-24 Jeff Law <law@redhat.com>
2055 * flow.c (propagate_one_insn): When removing an insn
2056 with a REG_LIBCALL note but not the entire libcall sequence,
2057 delete the associated REG_RETVAL note.
2059 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
2061 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
2062 (udivsi3): Likewise. Rewrite SH1 implementation.
2063 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
2064 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
2065 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
2066 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
2067 (_moddi3): Likewise.
2069 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
2071 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
2072 arguments into account for stack_regs.
2074 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
2076 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
2079 2002-06-24 Art Haas <ahaas@neosoft.com>
2081 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
2082 * doc/tm.texi (Frame Layout): Likewise.
2084 2002-06-20 Steve Ellcey <sje@cup.hp.com>
2086 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
2087 Set float_format to i128.
2089 2002-06-24 David S. Miller <davem@redhat.com>
2091 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
2092 32-bit ABI libfuncs to NULL.
2094 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
2095 strings instead of quoted strings for code blocks.
2097 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
2098 optabs if op1 is const0_rtx.
2100 * Makefile.in (GTFILES): Add basic-block.h
2101 * basic-block.h (label_value_list, tail_recursion_label_list):
2104 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
2106 * cpptrad.c (scan_out_logical_line): Check recursing only when
2107 we know we have a macro invocation in the function-like case.
2108 Only call _cpp_handle_directive if we know we have a good
2109 directive, or we want to reject a bad directive.
2111 2002-06-24 Alan Modra <amodra@bigpond.net.au>
2113 * doloop.c (doloop_valid_p): Correct comment.
2114 (doloop_modify_runtime <abs_inc != 1>): Simplify.
2115 (doloop_modify_runtime <do-while>): Don't emit code when NE.
2117 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
2119 * config.gcc: Add support for ip2k.
2121 2002-06-23 Jan Hubicka <jh@suse.cz>
2122 Jeff Law <law@redhat.com>
2124 * function.h (struct emit_status): Clarify potential contents
2125 of regno_reg_rtx array.
2126 * integrate.c (copy_rtx_and_substitute): Update comments. Make
2127 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
2129 * reg-stack.c (convert_regs_exit): Push the registers to stack in
2132 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2135 * function.c (assign_stack_temp_for_type): Do not return
2136 the same MEM rtx for multiple uses of a stack slot.
2138 2002-06-22 David S. Miller <davem@redhat.com>
2140 PR target/6841 target/6770 target/6719
2141 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
2142 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
2143 GENERAL_OR_EXTRA_FP_REGS.
2145 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
2147 * cpptrad.c (struct fun_macro): Add line number.
2148 (scan_out_logical_line): Set it, and use it to report unterminated
2151 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2153 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
2154 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
2155 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
2156 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
2157 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
2158 REGEXP_ONEOF, check_name): Const-ify.
2160 2002-06-21 Matt Thomas <matt@3am-software.com>
2162 * config/vax/vax.c (vax_output_function_prologue): Use
2163 REGISTER_PREFIX. Fix some indentation.
2164 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
2165 (VAX_ISTREAM_SYNC): Define.
2166 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
2167 i-stream sync to the end.
2168 (REGISTER_PREFIX): Define as "".
2169 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
2171 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2173 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
2176 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2178 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
2179 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
2181 2002-06-21 Matt Thomas <matt@3am-software.com>
2183 * config/vax/netbsd.h: Adjust a comment.
2184 (TARGET_DEFAULT): Redefine as 0.
2186 2002-06-21 Richard Henderson <rth@redhat.com>
2188 * bb-reorder.c (make_reorder_chain_1): Search harder for the
2189 vax casesi fallthru edge.
2190 * cfglayout.c (cleanup_unconditional_jumps): Use
2191 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
2192 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
2193 block after ADDR_VEC.
2195 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2197 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2199 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
2201 * cpperror.c (cpp_error): For traditional CPP, default to
2202 diagnostics on pfile->line.
2203 * cpplib.c (prepare_directive_trad): Set line number for
2204 diagnostics for #define too.
2205 * cpptrad.c (skip_whitespace): Skip comments properly.
2206 (_cpp_expansions_different_trad): Initialize quote2.
2208 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
2210 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
2211 * config/mmix/mmix.h: Ditto.
2212 * config/mmix/mmix-protos.h: Ditto.
2213 * config/mmix/mmix.c: Ditto. Fix typo in comment.
2214 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
2215 comment. Comment extra CC modes.
2217 2002-06-20 Jan Hubicka <jh@suse.cz>
2219 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
2220 (scope_to_insns_finalize): Do not call set_block_levels; handle
2222 (choose_inner_scope): New.
2223 * rtl.h (choose_inner_scope): Declare.
2225 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
2227 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
2229 * pa.c (pa_asm_output_mi_thunk): Likewise.
2230 (n_deferred_plabels): Change type to size_t.
2231 (output_deferred_plabels, output_call): Use size_t instead of int.
2233 2002-06-20 Richard Henderson <rth@redhat.com>
2236 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
2237 pattern and adjust constraints for coldfire.
2239 2002-06-20 Richard Henderson <rth@redhat.com>
2241 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
2243 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2245 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
2247 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2249 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
2251 2002-06-20 Stan Shebs <shebs@apple.com>
2253 * dominance.c: Include errors.h instead of error.h.
2255 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
2257 * cppexp.c (cpp_interpret_integer): Don't force traditional
2258 numbers to be unsigned.
2259 * cpplib.c (prepare_directive_trad): Set line number for
2261 * cpptrad.c (scan_out_logical_line): Continue scanning out
2263 * gcc.c (trad_capable_cpp): Use cc1 always.
2265 2002-06-20 Jeffrey Law <law@redhat.com>
2267 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
2268 elimination in leaf functions by default yet.
2270 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
2272 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
2274 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2276 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
2278 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2279 Fixes PR other/6836.
2281 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
2282 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2284 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
2286 * basic-block.h: Do not include et-forest.h
2287 (dominance_info): Declare as struct dominance-info.
2288 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
2290 * dominance.c (struct dominance_info): Define.
2291 (BB_NODE, SET_BB_NODE): New macros.
2292 (bb_hash_func, bb_eq_func): Kill.
2293 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
2294 nearest_common_dominator, dominated_by_p, recount_dominator,
2295 add_to_dominance_info, delete_from_dominance_info): update for new
2297 (get_dominated_by, redirect_immediate_dominators): Rewrite using
2299 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
2300 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
2303 * et-forest.h: Update copyright; revamp all function to operate on
2305 (et_forest_value): Kill.
2306 (et_forest_enumerate_sons, et_forest_node_value): New.
2307 * et-forest.c: Update copyright.
2308 * et-forest.h: Update copyright; revamp all function to operate on
2310 (et_forest_value): Kill.
2311 (et_forest_enumerate_sons, et_forest_node_value): New.
2313 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2315 * basic-block.h: Inlude et-forest.h
2316 (basic_block_def): Kill dominator.
2317 (dominance_info): New type.
2318 (loops): Use dominace_info.
2319 (dominace handling functions): Take dominace_info as argument
2321 (create_preheader): Likewise.
2322 * cfg.c (entry_exit_blocks): Kill dominator.
2323 (dump_flow_info): Do not dump dominators.
2324 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
2326 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
2327 (flow_loops_pre_header_scan, make_forwarder_block,
2328 canonicale_loop_headers, flow_loops_find): Likewise.
2329 * dominance.c: Include error.h
2330 (idoms_to_doms): Kill.
2331 (bb_hash_func, bb_eq_func): New static functions.
2332 (debug_dominace_info): New global function.
2333 (calculate_dominance_info): Use new et forest structure.
2334 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
2335 get_dominated_by, redirect_immediate_dominators,
2336 nearest_common_dominator, dominated_by_p, verify_dominators,
2337 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
2338 delete_from_dominance_info): New global functions.
2339 * gcse.c (domnators): CHange to dominance_info.
2340 (alloc_hoist_mem): Do not alloc dominators
2341 (free_code_hoist_mem): Use free_dominance_info.
2342 (compute_code_hoist_data): Use dominance_info.
2343 (hoist_code): Likewise.
2344 * ifcvt.c (post_dominators): Likewise.
2345 (find_if_case_2, if_convert): Likewise.
2346 * predict.c (process_note_predictions, process_note_prediction,
2347 estimate-probability): Likewise.
2348 * sched-rgn.c (find_rgns, init_regions): Likewise.
2349 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
2350 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
2351 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
2352 find_evaluations, convert_to_ssa): Likewise.
2353 * ssa.h (compute_dominance_frontiers): Likewise.
2355 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2357 * Makefile.in (et-forest.c): Add.
2358 * et-forest.c: New file.
2359 * at-forest.h: New file.
2361 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2363 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
2364 array size calculation.
2365 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
2368 * diagnostic.c (diagnostic_kind_text): Const-ify.
2369 * gengtype.c (lang_names): Likewise.
2371 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
2373 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2375 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2377 * config/sol2.h: New file.
2378 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2379 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2380 (sparc-*-chorusos*): Likewise.
2381 (sparc-*-elf*): Likewise.
2382 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2383 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2384 (sparc-hal-solaris2*): Likewise.
2385 (sparc-*-solaris2*): Likewise.
2386 (sparclite-*-elf*): Likewise.
2387 (sparc86x-*-elf*): Likewise.
2388 (sparc64-*-elf*): Likewise.
2390 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2392 (ASM_SPEC): Override config/sol2.h version for now.
2393 Removed obsolete GAS_REJECTS_MINUS_S variant.
2394 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2395 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2396 (TARGET_OS_CPP_BUILTINS): Likewise.
2398 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2399 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2401 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2402 (ASM_CPU_SPEC): Define.
2403 (SUBTARGET_EXTRA_SPECS): Define.
2405 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2406 in config/sparc/sol2.h.
2407 (ASM_SPEC): Moved to config/sol2.h.
2408 (CPP_CPU_SPEC): Simplified.
2409 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2411 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2412 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2413 STARTFILE_ARCH64_SPEC.
2414 (STARTFILE_SPEC): Moved to config/sol2.h
2415 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2416 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2417 (LINK_ARCH64_SPEC): Simplified.
2418 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2419 (LINK_SPEC): Moved to config/sol2.h
2421 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2423 Use BITS_PER_WORD for size.
2424 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2425 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2426 (CPP_PREDEFINES): Removed OS-specific part handled by
2427 TARGET_OS_CPP_BUILTINS.
2428 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2429 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2430 (ASM_SPEC): Moved to config/sol2.h.
2431 (PREFERRED_DEBUGGING_TYPE): Likewise.
2432 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2433 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2434 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2435 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
2437 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2438 * config/i386/sol2gas.h: Removed.
2440 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2442 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2444 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
2446 * gcc.c-torture/execute/simd-1.c: New.
2448 * gcc.dg/simd-1.c: New.
2450 * doc/extend.texi (Vector Extensions): Document that we can
2451 specify simd types not specifically supported by the hardware.
2452 Document that simd types can be used as function arguments.
2453 Document that signness does make a difference in SIMD types.
2454 Misc cleanups and revisions to the vector extensions section.
2456 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2459 * expr.c (vector_mode_valid_p): New.
2461 * expr.h: Add vector_mode_valid_p.
2463 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2465 * c-common.c (type_for_mode): Always build vector nodes regardless
2466 of VECTOR_MODE_SUPPORTED_P.
2467 (handle_mode_attribute): Error if we can't emulate a nonexisting
2469 (handle_vector_size_attribute): Same.
2471 * optabs.c (expand_binop): Open-code vector operations.
2472 (expand_unop): Open-code vector unops.
2473 (expand_vector_binop): New.
2474 (expand_vector_unop): New.
2476 * c-typeck.c (build_binary_op): Allow vectors in binops.
2477 Allow vectors in conditional operatiors.
2478 (build_unary_op): Allow vectors in unary minus.
2480 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2483 2002-05-20 Richard Henderson <rth@redhat.com>
2485 * c-common.c (c_common_get_alias_set): Correctly handle characters.
2486 Rearrange order of expressions; don't handle vectors here.
2487 * alias.c (get_alias_set): Let vectors match their components.
2489 2002-06-19 Chris Demetriou <cgd@broadcom.com>
2491 * config/mips/mips.c (mips_emit_prefetch): Use hints which
2492 match desired locality.
2494 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2496 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2497 (h8300_insert_attributes): New.
2499 2002-06-19 Akim Demaille <akim@epita.fr>
2501 * c-parse.in (initelt: identifier ':' initval): Add an empty
2502 action to fix a type clash.
2503 (aliasdecl, classdef): Add the missing closing `;'.
2505 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2506 $$ = $1 type clashes.
2508 2002-06-19 Eric Christopher <echristo@redhat.com>
2510 * config/mips/mips.c (symbol_operand): New function.
2511 (mips_emit_prefetch): Ditto.
2512 * config/mips/mips-protos.h: Define.
2513 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2514 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2515 (LEGITIMIZE_ADDRESS): Ditto.
2516 * config/mips/mips.md (prefetch, prefetch_si_address,
2517 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2519 2002-06-19 Eric Christopher <echristo@redhat.com>
2521 * config/fp-bit.h: Add unordered defines for gofast.
2523 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
2525 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2526 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2527 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2528 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2529 checking and without it.
2530 (decl_name, decl_mode_check_failed, regexp_name,
2531 regexp_mode_check_failed): New functions.
2532 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2533 gen_presence_set, gen_absence_set, gen_automaton,
2534 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2535 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2536 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2537 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
2538 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2539 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
2540 (decl_hash, decl_eq_p): Use the macros.
2541 (find_decl): Ditto. Set up mode of work_decl.
2542 (process_excls, process_presence_absence, process_decls,
2543 check_automaton_usage, process_regexp, process_regexp_decls,
2544 check_usage, loop_in_regexp, check_loops_in_regexps,
2545 process_regexp_cycles, add_advance_cycle_insn_decl,
2546 initiate_states, initiate_excl_sets,
2547 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2548 transform_2): Use the macros.
2549 (transform_3): Ditto. Check mode before making transformations of
2551 (regexp_transform_func, transform_insn_regexps,
2552 process_unit_to_form_the_same_automaton_unit_lists,
2553 form_the_same_automaton_unit_lists_from_regexp,
2554 form_the_same_automaton_unit_lists,
2555 process_seq_for_forming_states, process_alts_for_forming_states,
2556 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2557 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2558 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2559 units_to_automata_heuristic_distr, create_ainsns,
2560 units_to_automata_distr, create_automata): Use the macros.
2561 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
2562 (longest_path_length, min_issue_delay_pass_states,
2563 output_dead_lock_vect, output_tables, output_insn_code_cases,
2564 output_internal_insn_latency_func, output_print_reservation_func,
2565 output_description, output_automaton_units, generate): Use the
2567 (make_insn_alts_attr): Ditto. Check case when there are not
2568 alternatives in the reservation.
2569 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2570 make_bypass_attr, form_important_insn_automata_lists,
2571 expand_automata): Use the macros.
2573 2002-06-20 Tim Josling <tej@melbpc.org.au>
2575 * Makefile.in: Clean up code to check for misspecified languages
2576 in enable-languages.
2578 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
2580 * cpptrad.c (_cpp_replacement_text_len): initialize len.
2582 2002-06-19 Jason Merrill <jason@redhat.com>
2584 * Makefile.in (unstrap, restrap): New targets.
2585 (bootstrap): Mention restrap.
2587 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
2589 * except.c (ehl_free): Remove.
2591 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2592 builtin_define and builtin_define_std.
2594 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2596 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2597 (sCOND): Restrict operand class so that gcc knows how to reload them.
2598 (bitfield_set): Merge two unnamed insn's using alternatives.
2599 (call_value): Remove constraint on unused uperand.
2600 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2601 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
2603 * longlong.h (count_trailing_zeros): Escape newline and beautify.
2605 2002-06-19 Mark Mitchell <mark@codesourcery.com>
2607 * Makefile.in (QMTEST_DIR): Simplify definition.
2609 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
2611 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2614 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
2616 * cpphash.h (struct cpp_reader): Make date and time strings.
2617 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2618 _cpp_replacement_text_len): New.
2619 * cppinit.c (cpp_create_reader): Update.
2620 (init_builtins): Register appropriate builtins for -traditional-cpp.
2621 * cppmacro.c (new_number_token): Remove.
2622 (_cpp_builtin_macro_text): New.
2623 (builtin_macro): Use it.
2624 (cpp_macro_definition): Update to handle traditional macros.
2625 * cppmain.c (cb_line_change): Don't do column positioning for
2627 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
2629 (skip_whitespace): Fix.
2630 (maybe_start_funlike): Don't set state.parsing_args.
2631 (scan_out_logical_line): Remove duplicate error. Use lex_state
2632 rather than state.parsing_args.
2633 (push_replacement_text): Handle builtins.
2634 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2636 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2637 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2639 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2640 attribute __always_inline__.
2642 2002-06-18 Bob Wilson <bob.wilson@acm.org>
2644 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2645 when generating the call to _mcount.
2646 (NO_PROFILE_COUNTERS): Define.
2648 2002-06-18 Richard Henderson <rth@redhat.com>
2650 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2653 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
2655 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2656 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2657 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2658 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
2660 * sh-protos.h (sh_pr_interrupt): Declare.
2661 * sh.c (sh_pr_interrupt): New function.
2662 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2663 (sh_hard_regno_rename_ok): Likewise.
2664 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2666 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
2668 * rtl.def (DEFINE_AUTOMATON): Add description of new options
2669 `time' and `v'. Fix incorrect description of option `w'.
2671 * doc/md.texi: Ditto.
2673 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2674 (gen_automata_option): Process the new options.
2675 (transform_2, transform_3): Initialize some variables.
2676 (initiate_automaton_gen): Use the new macros.
2678 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
2680 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2681 (mips_set_return_address, mips_restore_gp): Declare.
2682 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2683 (current_frame_info): Remove.
2684 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2685 * config/mips/mips.c: Remove uses of current_frame_info.
2686 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
2687 (struct machine_function): Add 'frame' and 'insns_len'.
2688 (current_frame_info, zero_frame_info): Remove.
2689 (mips_restore_gp, mips_set_return_address): New.
2690 (mips_initial_elimination_offset): New.
2691 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2692 (eh_return define_split): Use mips_set_return_address.
2694 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
2696 * cpplib.c (dtable): Update.
2697 (end_directive): Decrement expansion prevention count.
2698 Clear state.in_expression.
2699 (prepare_directive_trad): Set state.in_expression.
2700 Increment expansion prevention count.
2701 * cpptrad.c (enum ls): New.
2702 (_cpp_overlay_buffer): Set overlaid_buffer.
2703 (_cpp_remove_overlay): Use overlaid_buffer.
2704 (_cpp_read_logcial_line_trad): Update buffer when it might
2706 (scan_out_logical_line): Handle state transitions for assertions
2707 and defined() in #if, and for funlike invocations including the
2708 directive case. Handle '<' and '>' as a quote mechanism in
2709 #include. Warn about unterminated macro invocations.
2710 * cpphash.h (struct lexer_state): New member in_expression.
2711 (struct cpp_reader): New member overlaid buffer.
2713 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2715 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2718 2002-06-18 Alan Modra <amodra@bigpond.net.au>
2720 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2722 * doloop.c (doloop_optimize): Extract pattern from insn.
2724 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
2726 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2728 2002-06-17 Jeff Law <law@redhat.com>
2730 * libgcc2.c: Do not include symcat.h or machmode.h.
2732 2002-06-17 Richard Henderson <rth@redhat.com>
2735 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2737 2002-06-17 Tom Tromey <tromey@redhat.com>
2739 * dwarfout.c: Include function.h.
2741 2002-06-17 Andreas Schwab <schwab@suse.de>
2743 * print-rtl.c (print_rtx): Print space before vector, not after.
2744 (debug_rtx): Clear sawclose before printing.
2745 (debug_rtx_list): Print newline after each list element.
2746 (debug_rtx_range): Likewise.
2748 2002-06-17 Richard Henderson <rth@redhat.com>
2750 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2751 (current_function_funcdef_no): Similarly.
2752 * function.c (funcdef_no): Similarly.
2753 (prepare_function_start): Set current_function_funcdef_no.
2754 (expand_function_start): Don't set current_function_profile_label_no.
2755 * dwarf2out.h (current_funcdef_number): Remove.
2756 * dwarf2out.c (current_funcdef_number): Remove. Replace with
2757 current_function_funcdef_no throughout.
2758 * dwarfout.c, vmsdbgout.c: Similarly.
2759 * except.c (sjlj_funcdef_number): Remove.
2760 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2761 (output_function_exception_table): Likewise.
2762 * final.c (profile_function): Use current_function_funcdef_no
2763 instead of current_function_profile_label_no.
2765 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
2767 * sched-ebb.c (init_ready_list): Check INSN_P first.
2769 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
2771 * sh.md (divsi3): Update way how to find insns in a sequence.
2773 * reload1.c (merge_assigned_reloads): Don't change reloads
2774 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2775 to RELOAD_OTHER when there are conflicting input reloads.
2777 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
2779 * function.c (epilogue_done): Correctly build a sequence of insns for
2782 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
2784 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
2787 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
2789 2002-06-16 Richard Henderson <rth@redhat.com>
2791 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2792 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2794 2002-06-16 Richard Henderson <rth@redhat.com>
2797 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
2799 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
2801 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
2802 * config/i386/i386-aout.h, config/i386/i386elf.h,
2803 config/i386/sysv4.h: Remove CPP_PREDEFINES.
2804 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
2805 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
2806 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
2807 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
2808 CPP_PREDEFINES and part of CPP_SPEC.
2809 * config/i386/sysv4-cpp.h: New.
2811 2002-06-16 Richard Henderson <rth@redhat.com>
2814 * dwarf2out.c (modified_type_die): Don't assign the qualified die
2815 to the unqualified type.
2817 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
2819 * i386-protos.h (x86_field_alignment): Declare.
2820 * i386.c (x86_field_alignment): Define.
2821 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
2822 (BIGGEST_FIELD_ALIGNMENT): Kill.
2824 2002-06-16 Richard Henderson <rth@redhat.com>
2826 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
2828 2002-06-16 Richard Henderson <rth@redhat.com>
2830 * c-common.c (flag_ms_extensions): Move from c++ front end.
2831 * c-common.h (flag_ms_extensions): Declare.
2832 * c-decl.c (c_decode_option): Add -fms-extensions.
2833 (grokfield): Don't accept anonymous structures in ISO C mode;
2834 accept only unnamed anonymous structures in GNU C mode; accept
2835 Plan 9 extensions in MS mode.
2836 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
2837 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
2838 (extension): Clear flag_iso.
2839 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
2841 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
2844 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
2845 early if current_function_epilogue_delay_list is non-empty.
2846 * config/cris/cris.md ("return"): Add sanity check asserting that
2847 current_function_epilogue_delay_list is empty.
2849 2002-06-16 Jeff Law <law@redhat.com>
2851 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
2852 sharing of hard registers.
2854 * toplev.c (rest_of_compilation): Remove redundant conditional.
2856 * toplev.c (rest_of_compilation): Perform a simpler, less costly
2857 cleanup of the CFG when not optimizing.
2859 2002-06-16 Alan Modra <amodra@bigpond.net.au>
2861 * gcc.c (main): Correct startfile_prefix_spec check.
2863 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
2865 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
2866 include both darwin.o and rs6000-c.o.
2868 2002-06-15 Roger Sayle <roger@eyesopen.com>
2870 * expr.c (compare_from_rtx): Call simplify_relational_operation
2871 on all comparisons, not just those between integer constants,
2872 with the correct (possibly unsigned) comparison code.
2873 (do_compare_rtx_and_jump): Likewise.
2875 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
2877 * Makefile.in (tm_defines): New configuration variable.
2878 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
2879 Pass tm_defines in TM_DEFINES.
2880 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
2881 * config.gcc (tm_defines): New configuration variable.
2882 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
2883 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
2884 * configure.in: Substitute tm_defines.
2885 * configure: Rebuilt.
2886 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
2887 * doc/install.texi: Update.
2888 * pa/pa-700.h: Delete file.
2889 * pa/pa-7100.h: Delete file.
2891 2002-06-15 Roger Sayle <roger@eyesopen.com>
2893 * fold-const.c (comparison_to_compcode): New function to convert
2894 an comparison TREE CODE into a bit-based representation.
2895 (compcode_to_comparison): New function to convert from this bit
2896 based representation back to a comparison TREE CODE.
2897 (fold_truthop): Simplify (x<y) && (x==y) and related composite
2900 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
2902 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
2904 * stor-layout.c (compute_record_mode): Remove check for
2905 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
2906 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
2907 MEMBER_TYPE_FORCES_BLK.
2909 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
2911 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
2913 2002-06-14 Jeff Sturm <jsturm@one-point.com>
2915 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
2917 2002-06-14 Steve Ellcey <sje@cup.hp.com>
2919 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
2920 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
2921 * configure, config.in: Regenerate.
2923 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2925 * loop.c (check_final_value): Use v->always_executed
2926 instead of v->always_computable.
2927 * unroll.c (final_giv_value): Don't calculate the final
2928 value as a function of the biv if the giv is not computed
2929 for every loop iteration.
2931 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2933 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
2935 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2938 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
2939 the truncation down when the target type is signed.
2940 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
2941 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
2942 the conversion if the target type is a smaller type.
2944 2002-06-14 Richard Henderson <rth@redhat.com>
2946 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
2947 earlier. Re-factor comparisons vs extrema.
2949 2002-06-14 Richard Henderson <rth@redhat.com>
2951 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
2953 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2955 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
2956 * sched-deps.c (add_dependence): Likewise.
2957 (group_leader): Likewise.
2958 * sched-rgn.c (init_ready_list): Likewise.
2959 * doc/rtl.texi: Adjust accordingly.
2961 2002-06-13 Jeffrey Law <law@redhat.com>
2963 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
2964 null pointer checks were eliminated. Update prototype.
2965 (delete_null_pointer_checks): Similarly.
2966 * rtl.h (delete_null_pointer_checks): Update prototype.
2967 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
2968 delete_null_pointer_checks deletes one or more null
2969 pointer checks. Do not run cleanup_cfg before gcse, the
2970 CFG is accurate and optimized at that point..
2972 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
2975 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2977 * Makefile.in (libgcc.mk): Depend on specs.
2979 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
2981 * sh.md (mulsi3): Update way how to find insns in a sequence.
2983 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2985 * sh.h: Define HARD_REGNO_RENAME_OK
2986 * sh.c: sh_hard_regno_rename_ok: New. If current function has
2987 interrupt_handler attribute, only registers saved on stack are OK.
2988 * sh-protos.h: Declare sh_hard_regno_rename_ok.
2990 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
2992 * config/sh/sh.md (jump): Emit jump insn.
2993 (call_pcrel): Get pattern of the result of gen_call_site.
2994 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
2996 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
2998 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
2999 * cpptrad.c: Update comments.
3000 (skip_whitespace, copy_comment): Take a new parameter.
3001 (skip_escaped_newlines): Don't duplicate escaped newline test.
3002 (copy_comment): Different location for CUR, decide here how
3003 to copy / replace the comment.
3004 (skip_whitespace): Copy whitespace.
3005 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
3006 (scan_out_logical_line): Let copy comment handle keeping or
3008 (scan_parameters, _cpp_create_trad_definition): Update.
3010 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
3012 * reload.c (get_secondary_mem,find_reloads_address,
3013 find_reloads_address_1): Pass reference to MEM to find_reloads_address
3014 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
3016 2002-06-13 Jessica Han <jessica@cup.hp.com>
3018 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3019 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3020 * doc/tm.texi: Document them.
3021 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3022 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3023 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
3024 (ASM_OUTPUT_FDESC): Likewise.
3026 2002-06-13 Eric Christopher <echristo@redhat.com>
3028 * diagnostic.c (output_format): Fix thinko.
3030 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
3032 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
3033 (DWARF2_UNWIND_INFO): Define to 0.
3035 * config/sh/sh.c (calc_live_regs): Don't use initial_value
3036 optimization for PR_MEDIA_REG.
3038 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3040 * cpphash.h (_cpp_lex_identifier_trad): Remove.
3041 * cpplib.c (end_directive): Don't skip, always remove overlay
3043 (prepare_directive_trad): Handle NULL pfile->directive.
3044 (_cpp_handle_directive): Always call prepare_directive_trad
3046 * cppmain.c (check_multiline_token): Rename account_for_newlines,
3048 (scan_translation_unit_trad): Use it.
3049 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
3050 output, get escaped newline in comment close correct.
3051 (check_output_buffer, skip_whitespace): Update.
3052 (_cpp_lex_identifier_trad): Remove.
3053 (scan_out_logical_line): Handle -C and comments in directives
3056 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3058 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
3059 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3060 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
3061 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
3062 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
3063 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
3064 (SELECT_SH5_COMPACT_NOFPU): Likewise.
3065 (TARGET_SWITCHES): Use them.
3066 (TARGET_CPU_DEFAULT): Define if not already defined.
3067 (TARGET_DEFAULT): Use it.
3068 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
3069 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
3070 * config/sh/t-monolib: New file.
3072 2002-06-13 Roger Sayle <roger@eyesopen.com>
3074 * toplev.c (rest_of_compilation): Simplify (and correct) the
3075 logic of the first delete-null-pointer-checks pass.
3077 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3079 * i386.c (ix86_expand_movstr): Fix pasto.
3081 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3083 * reload.c (find_valid_class): Fix thinko in my previous patch.
3085 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3087 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
3088 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
3089 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
3090 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
3092 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3094 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3097 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3099 * diagnostic.c (output_format): Recognize "%H" as a format
3100 specifier for a location_t.
3101 (text_specifies_location): New function.
3102 (diagnostic_set_info): Use it.
3104 2002-06-13 Jeffrey Law <law@redhat.com>
3106 * emit-rtl.c (static_regno_reg_rtx): Define.
3107 (init_emit_once): Initialize static_regno_reg_rtx.
3108 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
3109 of building new hard reg objects once per function.
3110 (gen_rtx_REG): Try to share hard regs.
3111 * regclass.c (init_fake_stack_mems): New function broken out from
3113 * rtl.h (init_fake_stack_mems): Declare.
3114 * toplev.c (lang_independent_init): Call init_regs before
3115 init_emit_once. Call init_fake_stack_mems after init_emit_once.
3117 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
3119 * alias.c (argument_registers): Remove.
3120 (init_alias_once): Initialize static_reg_base_value here. Remove
3121 initialization of argument_registers.
3122 (init_alias_once_per_function): Remove.
3123 (init_alias_analysis): Copy all the entries from static_reg_base_value
3124 into new_reg_base_value all at once.
3125 * rtl.h (init_alias_once_per_function): Remove declaration.
3126 * function.c (prepare_function_start): Do not call
3127 init_alias_once_per_function.
3129 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
3130 starting a sequence and emitting an INSN.
3132 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
3134 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
3136 2002-06-13 David S. Miller <davem@redhat.com>
3138 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
3140 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3142 * cpplib.c (end_directive): Handle line skipping. Only remove
3143 the rest of the line if the directive was valid.
3144 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
3145 expanding a traditional macro.
3146 * cpptrad.c (recursive_macro): New.
3147 (read_logical_line_trad): Handle skipping.
3148 (scan_out_logical_line): Continue after a successful directive.
3149 Don't expand macros whilst skipping, or if recursing.
3150 (_cpp_create_trad_definition): scan_out_logical_line now sets
3151 the output current position.
3153 2002-06-12 Eric Christopher <echristo@redhat.com>
3155 From Chris Demetriou <cgd@broadcom.com>
3156 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
3158 (ISA_HAS_MADD_MSUB): Ditto.
3159 (ISA_HAS_NMADD_NMSUB): Ditto.
3161 2002-06-12 Eric Christopher <echristo@redhat.com>
3163 * config.gcc: Consolidate little endian handling and
3164 little/big endian targets.
3165 * config/mips/elfl.h: Remove file.
3166 * config/mips/elfl64.h: Ditto.
3167 * config/mips/ecoffl.h: Ditto.
3168 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
3170 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3172 * gengtype.h (xvasprintf): New prototype.
3173 (xasprintf): New prototype.
3175 (get_output_file): Return an outf_p.
3176 (header_file): Is now an outf_p.
3177 (base_files): Now are outf_p.
3179 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
3180 rather than stdio operations. Use xasprintf in a few places,
3184 (struct filemap): Delete.
3186 (output_files): New.
3188 (create_file): Create an outf_p. Add parameter to indicate output
3189 file name, change all callers.
3190 (open_base_files): Create gtype-desc.c here.
3191 (get_output_file_with_visibility): Rewrite.
3192 (get_output_file_name): Just look at 'name' field in struct outf.
3193 (close_output_files): Rewrite.
3195 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
3197 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3198 (MASK_G_FLOAT): Define.
3199 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
3200 (TARGET_SWITCHES): Likewise.
3201 (TARGET_DEFAULT): Likewise.
3203 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
3205 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
3206 * config/mips/mips.c (mips_output_filename): Don't print a
3207 ".file" directive if we are using DWARF-2.
3208 (mips_output_function_prologue): Do not emit source file
3209 name for TARGET_GAS.
3211 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
3213 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
3214 decide whether emit the short opcode.
3215 * i386.h (x86_shift1): Declare.
3216 (TARGET_SHIFT1): New macro.
3217 * i386.c (x86_shift1): New global variable.
3219 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
3220 unconditionally; make loop to rebuild CFG; kill unnecesary
3221 find_basic_block calls; kill compute_bb_for_insn call.
3222 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
3223 * haifa-sched.c (sched_init): Likewise.
3224 * ssa-ccp.c (ssa_const_prop): Likewise.
3225 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3227 2002-06-11 David S. Miller <davem@redhat.com>
3229 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
3232 2002-06-11 Richard Henderson <rth@redhat.com>
3234 * c-common.c (builtin_define_type_max): New.
3235 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
3236 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
3238 From Joseph S. Myers:
3239 * glimits.h: Rewrite to expect the double underscore definitions
3242 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
3243 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
3244 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
3245 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3246 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
3247 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
3248 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
3249 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
3251 2002-06-11 Richard Henderson <rth@redhat.com>
3253 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
3254 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
3255 (code_for_builtns): Update.
3256 (alpha_init_builtins): Add __builtin_thread_pointer and
3257 __builtin_set_thread_pointer.
3258 (alpha_expand_builtin): Handle void builtins.
3259 * doc/extend.texi (Alpha Built-in Functions): Update.
3261 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
3264 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
3266 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3268 * config.gcc: Make the name of the extra-modes file adjustable
3270 (s390x, strongarm, xscale stanzas): Use this facility.
3271 * configure.in: Update to match.
3272 * configure: Regenerate.
3274 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
3276 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
3277 max/mins as unsigned GE compares.
3279 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
3281 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
3282 * config/vax/bsd.h: New file.
3283 * config/vax/netbsd.h: Add missing notice.
3284 (CPP_PREDEFINES): Remove.
3285 (TARGET_OS_CPP_BUILTINS): Define.
3286 (CPP_SPEC): Use NETBSD_CPP_SPEC.
3287 * config/vax/openbsd.h: Update copyright years.
3288 (CPP_PREDEFINES): Remove.
3289 (TARGET_OS_CPP_BUILTINS): Define.
3290 * config/vax/ultrix.h: Likewise.
3291 * config/vax/vaxv.h: Likewise.
3292 * config/vax/vms.h: Likewise.
3293 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
3294 (CPP_PREDEFINES, CPP_SPEC): Remove.
3296 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
3298 * i386.md (addqi_1_slp, subqi_1_slp
3299 (andqi_ext0, testqi_ext0): Remove unnecesary check.
3300 (addhi*, addqi*): Simplify "dec" condition.
3301 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
3302 (and, or, xor to QImode splitters): New.
3305 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
3306 (andqi_ext_1_rex64): New.
3310 (rotrqi3*_slp): New.
3311 (rotlqi3*_slp): New.
3313 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3315 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
3317 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
3318 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3319 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
3320 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
3321 __LONG_DOUBLE_128__ setting, _CALL_* setting.
3322 (CPP_DEFAULT_SPEC): Delete.
3323 (CPP_FLOAT_DEFAULT_SPEC): Delete.
3324 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
3325 (CPP_SYSV_DEFAULT_SPEC): Delete.
3326 (CPP_ENDIAN_BIG_SPEC): Delete.
3327 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3328 (CPP_ENDIAN_SPEC): Delete.
3329 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
3330 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
3331 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
3332 cpp_longdouble_default.
3333 * config/rs6000/softfloat.h: Delete.
3334 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
3335 (EXTRA_SPECS): Delete cpp_cpu.
3336 (TARGET_CPU_CPP_BUILTINS): New.
3337 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
3339 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
3340 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
3341 (CPP_DEFAULT_SPEC): Delete.
3342 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
3343 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
3344 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
3345 (CPP_DEFAULT_SPEC): Delete.
3346 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3347 (CPLUSPLUS_CPP_SPEC): Likewise.
3348 (CPP_CPU_SPEC): Delete.
3349 (CPP_DEFAULT_SPEC): Delete.
3350 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3351 (CPLUSPLUS_CPP_SPEC): Likewise.
3352 (CPP_CPU_SPEC): Delete.
3353 (CPP_DEFAULT_SPEC): Delete.
3354 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
3355 (CPP_DEFAULT_SPEC): Delete.
3356 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
3357 (CPP_DEFAULT_SPEC): Delete.
3359 * doc/gty.texi: Small updates.
3361 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
3363 * objc/objc-act.c (warn_with_ivar): Adjust calls to
3364 diagnostic_count_error.
3365 (warn_with_method): Likewise.
3367 * diagnostic.h (warnings_are_errors_message): New field of
3369 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
3371 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3372 (diagnostic_count_diagnostic): Make aware of other kinds of
3374 (diagnostic_initialize): Initialize warnings_are_errors_message field.
3376 2002-06-11 Tom Tromey <tromey@redhat.com>
3379 * fold-const.c (fold_convert): Don't modify existing tree's type.
3381 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3383 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3385 2002-06-11 Richard Henderson <rth@redhat.com>
3387 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3389 2002-06-11 Richard Henderson <rth@redhat.com>
3391 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
3392 DWARF2_UNWIND_INFO is false.
3394 2002-06-11 Bob Wilson <bob.wilson@acm.org>
3396 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3398 * config/s390/s390.c (emit_prologue): gen_store_multiple
3399 returns an insn now, not a pattern.
3401 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3403 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3406 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3408 * i386.c (x86_promote_QImode): Set for Athlon
3409 (x86_fast_prefix): New global variable.
3410 (x86_arch_always_fancy_math_387): Fix formating.
3411 * i386.h (x86_fast_prefix): Declare
3412 (TARGET_FAST_PREFIX): define.
3413 * i386.md (and to strict_low_part, HI to SI
3414 promoting splitter): Use new macro.
3416 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3418 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3420 * Makefile.in (distclean): Delete junk left in testsuite
3423 2002-06-11 Jeffrey Law <law@redhat.com>
3425 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3426 last insn created by the splitter.
3428 * caller-save.c (init_caller_save): Move creation of SAVEINSN
3429 and RESTINSN into into the scope of the sequence.
3431 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3434 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3436 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3437 not the pattern. So extract the pattern from the insn.
3439 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3441 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3443 * config/s390/s390.md (movsi): Only use floating point
3444 register alternatives when operands are already fprs.
3445 (movdi_31, movdi_64): Likewise.
3447 2002-06-11 David S. Miller <davem@redhat.com>
3449 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3450 Only run RTX equality checks on INSN_P rtl.
3452 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3454 * config/s390/s390.md (reload_base, ltorg): Remove.
3455 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3456 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3457 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3458 s390_asm_output_pool_prologue): Likewise.
3459 * s390.h (s390_pool_start_insn): Likewise.
3461 * s390.c (s390_output_symbolic_const): Remove support for
3462 old-style pool chunks.
3463 (s390_function_epilogue): Likewise.
3464 (s390_output_constant_pool): Likewise. Also, fix incorrect
3465 alignment for 64-bit literal pools.
3466 (print_operand_address): Remove 'y' and 'Y' format flags.
3467 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3468 old-style pool chunks.
3469 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3470 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3471 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3473 * s390.c (consttable_operand): New function.
3474 * s390-protos.h (consttable_operand): Declare it.
3475 * s390.h (PREDICATE_CODES): Add consttable_operand.
3476 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3477 consttable_sf, consttable_df, pool_start_31, pool_end_31,
3478 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3479 * s390.c (struct constant, struct constant_pool): New data types.
3480 (constant_modes, gen_consttable): New variables.
3481 (s390_start_pool, s390_end_pool, s390_add_pool,
3482 s390_dump_pool, s390_free_pool): New functions.
3483 (s390_chunkify_pool): Completely reimplement literal pool
3486 * s390.c (s390_pool_overflow): New variable.
3487 * s390.h (s390_pool_overflow): Declare it.
3488 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
3489 jumps in literal pool overflow situations.
3491 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
3492 (s390_frame_info): Account for possible use of RETURN_REGNUM
3493 by new literal pool overflow code.
3494 (s390_emit_prologue): Likewise.
3496 2002-06-05 David S. Miller <davem@redhat.com>
3498 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3499 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3500 emit_insns_before_scope, emit_insns_after,
3501 emit_insns_after_scope): Delete declaration.
3502 * ada/misc.c (insert_code_for): Use emit_insn* instead of
3504 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3505 (alpha_set_memflags): Fix comment.
3506 (set_frame_related_p): Use get_insns instead of gen_sequence.
3507 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3509 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3511 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3512 * config/fr30/fr30.c (fr30_move_double): Likewise.
3513 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3515 * config/ia64/ia64.c (spill_restore_mem): Likewise.
3516 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3518 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3519 instead of gen_sequence.
3520 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3521 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3522 * config/sh/sh.c (sh_need_epilogue): Likewise.
3523 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3525 (setjmp pattern and split): Use them to avoid splitter which emits
3527 * genattrtab.c (main): Emit include of function.h
3528 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3529 get_insns instead of gen_sequence.
3530 * config/cris/cris.c (cris_split_movdx): Likewise.
3531 * emit-rtl.c (emit_insns*): Kill.
3532 (try_split): Expect insn list instead of SEQUENCE.
3533 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3534 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3535 Make them abort if a SEQUENCE is given and RTL checking is
3537 (emit_*_scope): Don't forget to set scope on final insn.
3538 (gen_sequence): Move from here...
3539 * ssa.c (gen_sequence): To here as private function.
3540 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3542 (expand_builtin_return, expand_builtin_mathfn): Likewise.
3543 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3544 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3545 (expand_builtin_expect_jump): Use get_insns and fix comments.
3546 * calls.c (try_to_integrate): Use emit_insn_foo.
3547 (expand_call, emit_library_call_value_1): Likewise.
3548 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3549 (emit_move_insn_1): Use get_insns instead of gen_sequence.
3550 (expand_expr): Use emit_insn_foo.
3551 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3552 * except.c (build_post_landing_pads): Likewise.
3553 * flow.c (attempt_auto_inc): Likewise.
3554 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3555 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3556 * function.c (fixup_var_refs_insn): Use get_insns instead of
3558 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3559 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3560 (fixup_stack_1, purge_addressof_1, expand_main_function,
3561 get_arg_pointer_save_area): Likewise.
3562 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3563 expand_function_end): Use emit_insn_foo.
3564 (record_insns, keep_stack_depressed): Work with insn list instead
3565 of SEQUENCE, fix comments.
3566 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3567 noce_try_store_flag_constants, noce_try_store_flag_inc,
3568 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3569 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3570 (noce_process_if_block): Use get_insns instead of gen_sequence.
3571 * optabs.c (add_equal_note): Work with insn list, fix comments.
3572 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3573 (expand_unop, expand_complex_abs, expand_unop_insn,
3574 expand_no_conflict_block): Likewise.
3575 (gen_move_insn): Use get_insns instead of gen_sequence.
3576 (gen_cond_trap): Likewise.
3577 * integrate.c (copy_rtx_and_substitute): Likewise.
3578 (emit_initial_value_sets): Use emit_insn_foo.
3579 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3580 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3581 now that RTL generators give insn lists.
3582 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3583 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3584 instead of gen_sequence.
3585 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3586 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3587 instead of gen_sequence.
3588 * loop.c (move_movables, emit_prefetch_instructions,
3589 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3591 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3592 (product_cheap_p): Likewise, and add commentary about RTL wastage
3594 * lcm.c (optimize_mode_switching): Use get_insns instead of
3596 * profile.c (gen_edge_profiler): Likewise.
3597 * regmove.c (copy_src_to_dest): Likewise.
3598 * reg-stack.c (compensate_edge): Likewise and fix comment.
3599 * gcse.c (process_insert_insn): Likewise.
3600 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3601 * jump.c (delete_prior_computation): Update comment.
3602 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3603 of gen_sequence, update comments to match.
3604 * recog.c (peephole2_optimize): Work with insn lists instead of
3606 * sched-vis.c (print_pattern): Abort on SEQUENCE.
3607 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3608 Use get_insns instead of gen_sequence.
3609 (copy_loop_body): Likewise and don't emit dummy NOTE.
3610 * genrecog.c: Don't mention SEQUENCE rtl in comments.
3611 * combine.c (try_combine): Expect insn lists from split generator.
3612 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3615 2002-06-11 Roger Sayle <roger@eyesopen.com>
3616 Andreas Jaeger <aj@suse.de>
3618 * cfgbuild.c: Update copyright years.
3620 2002-06-11 Andreas Schwab <schwab@suse.de>
3622 * config/m68k/m68k.h (PREDICATE_CODES): Define.
3624 2002-06-11 Eric Christopher <echristo@redhat.com>
3626 * doc/tm.texi (Run-time Target): Add comment about flag_iso
3628 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3629 * config/mips/ecoffl.h: Ditto.
3630 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3631 (CPP_PREDEFINES): Ditto.
3632 * config/mips/elfl64.h: Ditto.
3633 * config/mips/elfl.h: Ditto.
3634 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3635 out until irix header consolidation.
3636 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3637 with SUBTARGET_OS_CPP_BUILTINS.
3638 * config/mips/iris6.h: Ditto.
3639 (CPLUSPLUS_CPP_SPEC): Remove.
3640 * config/mips/linux.h: Ditto.
3641 * config/mips/netbsd.h: Ditto.
3642 * config/mips/openbsd.h: Ditto.
3643 * config/mips/rtems.h: Ditto.
3644 * config/mips/rtems64.h: Ditto.
3645 * config/mips/sni-svr4.h: Ditto.
3646 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3647 ISA_MIPS32, ISA_MIPS64): New defines.
3648 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3649 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3650 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3651 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3652 (TARGET_CPU_CPP_BUILTINS): Define.
3653 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3654 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3655 (movdicc): Remove check for ISA_MIPS32.
3656 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3657 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3658 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3659 sunge_sf, sunle_df, sunle_sf): New patterns.
3661 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
3663 * Makefile.in: Update cppmain.o.
3664 * cpphash.h (struct cpp_reader): Move some members to a
3666 (trad_line): Rename saved_line.
3667 (_cpp_read_logical_line_trad): Update.
3668 (_cpp_remove_overlay): New.
3669 * cppinit.c (cpp_create_reader): No need to set saved_line.
3670 (cpp_destroy): Update.
3671 (cpp_read_main_file): Only overlay if compiling.
3672 * cpplex.c (continue_after_nul): Return false if in directive.
3673 * cpplib.c (EXPAND): New.
3674 (directive_table, SEEN_EOL): Update.
3675 (end_directive): Remove overlay if traditional; don't skip
3676 line in traditional #define.
3677 (prepare_directive_trad): New.
3678 (_cpp_handle_directive, run_directive): Update for traditional
3680 (lex_macro_node): Simplify, don't use lex_identifier_trad.
3681 * cpplib.h (struct options): Add preprocess_only.
3682 * cppmain.c: Don't include intl.h.
3683 (cpp_preprocess_file): Set options->preprocess_only.
3684 (scan_translation_unit_trad): Fix, and print line numbers.
3685 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3686 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3687 save_replacement_text, _cpp_create_trad_definition): Update for
3689 (_cpp_overlay_buffer): Save line number.
3690 (_cpp_remove_overlay): Rename from restore_buff, restore line.
3691 (_cpp_read_logical_line_trad): Don't handle overlays here.
3692 (scan_out_logical_line): Process directives.
3694 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
3696 * gthr-win32.h: Wrap functions in extern "C".
3697 (__gthread_key_t): Typedef as unsigned long,
3699 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3700 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3701 (__gthr_win32_once, __gthr_win32_key_create,
3702 __gthr_win32_key_delete, __gthr_win32_getspecific,
3703 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3704 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3705 __gthr_win32_mutex_unlock): Declare.
3706 (__gthread_once,__gthread_key_create,
3707 __gthread_key_delete, __gthread_getspecific,
3708 __gthread_setspecific, __gthread_mutex_init_function,
3709 __gthread_mutex_lock,__gthread_mutex_trylock,
3710 __gthread_mutex_unlock): Call corresponding
3711 __gthr_win32_* extern implementations if #defined
3712 __GTHREAD_HIDE_WIN32API.
3713 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
3714 $(srcdir)/config/i386/gthr-win32.c
3715 * config/i386/gthr-win32.c: New implementation file.
3716 (__gthr_win32_once, __gthr_win32_key_create,
3717 __gthr_win32_key_delete, __gthr_win32_getspecific,
3718 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3719 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3720 __gthr_win32_mutex_unlock): New functions, based on
3721 static inlines in gthr-win32.h.
3723 2002-06-10 Bob Wilson <bob.wilson@acm.org>
3725 * config/xtensa/xtensa.c (override_options): Don't warn about
3726 using -fpic or -fPIC when PIC is enabled by default.
3728 2002-06-10 Roger Sayle <roger@eyesopen.com>
3730 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3732 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3734 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
3735 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
3736 exists, substitute its pathname as @extra_modes_file@, define
3737 EXTRA_MODES_FILE to be an appropriate string to #include it
3738 with, and define EXTRA_CC_MODES to 1.
3740 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
3741 it's defined. Get rid of redundancy in calling sequence for
3742 CC; don't use it to define CCmode, to avoid a warning.
3743 * libgcc2.c: Include symcat.h for the sake of machmode.def.
3745 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3746 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3747 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3749 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3750 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3752 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3753 defining extra CC modes.
3755 2002-06-10 Roger Sayle <roger@eyesopen.com>
3756 Andreas Jaeger <aj@suse.de>
3758 * cfgrtl.c (create_basic_block_structure): Remove index argument
3759 and use last_basic_block++ instead. (create_basic_block): Update.
3760 * cfgbuild.c (find_basic_blocks_1): Likewise.
3762 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3763 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3764 * sched-ebb.c (schedule_ebbs): Likewise.
3765 * sched-rgn.c (schedule_insns): Likewise.
3766 * ssa-ccp.c (ssa_const_prop): Likewise.
3767 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3768 * toplev.c (rest_of_compilation): Likewise.
3769 * config/ia64/ia64.c (ia64_reorg): Likewise.
3771 2002-06-10 Roger Sayle <roger@eyesopen.com>
3773 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3774 of matching registers.
3776 2002-06-10 Roger Sayle <roger@eyesopen.com>
3778 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3779 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3781 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
3783 * config/mmix/mmix.h: Improve comments.
3784 (CPP_SPEC, CPP_PREDEFINES): Don't define.
3785 (TARGET_CPU_CPP_BUILTINS): Define.
3786 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
3787 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
3789 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
3791 (mmix_constant_address_p): Remove another
3792 redundant test before case.
3793 (mmix_canonicalize_comparison): Remove unused function.
3794 (mmix_print_operand_address): Don't test and adjust for operand in
3795 non-canonical format.
3796 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
3797 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
3799 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3801 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
3802 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
3803 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
3804 (gen_compare): Use CCmode unconditionally.
3806 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3808 PR optimization/6759
3809 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
3812 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3815 * c-decl.c (grokfield): Allow user defined types if they declare
3816 structs or unions for unnamed fields.
3818 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3821 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
3823 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3825 PR optimization/6842
3826 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
3827 operand subreg cannot be simplified.
3829 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3831 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
3832 (compare_constant): Likewise.
3833 (output_addressed_constants): Likewise.
3835 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3837 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
3838 merge bb with itself.
3840 2002-06-10 Richard Henderson <rth@redhat.com>
3842 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
3843 (builtin_zapnot): Likewise.
3845 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
3848 2002-06-10 Eric Christopher <echristo@redhat.com>
3850 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
3851 prototype and function.
3852 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
3853 (call_insn_operand): Remove half pic references.
3854 (legitimate_address_p): Ditto.
3855 * config/i386/i386.h: Remove half pic defines.
3857 2002-06-10 Eric Christopher <echristo@redhat.com>
3859 * doc/extend.texi (Return Address): Add note explaining the side-
3860 effects of inlining on __builtin_return_address.
3862 2002-06-10 Tom Tromey <tromey@redhat.com>
3864 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
3865 (c-common.o): Depend on langhooks.h.
3867 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
3869 * cpphash.h (_cpp_read_logical_line_trad,
3870 _cpp_expansions_different_trad): Update prototypes.
3871 * cpplex.c (continue_after_nul): New.
3872 * cppmain.c: Include cpphash.h.
3873 (scan_translation_unit_trad): New.
3874 (cpp_preprocess_file): Call it.
3875 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
3877 (_cpp_expansions_different_trad): Update prototype.
3879 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3881 Fix cfi generation for SH[1-4]:
3883 * sh.c (frame_insn): New function.
3884 (output_stack_adjust): Add parameter emit_fn. All callers changed.
3885 (push): Now returns rtx. Use frame_insn.
3886 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
3888 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
3890 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3892 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
3894 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
3895 (distclean): ... not here. But do delete all testsuite/*.log,
3896 testsuite/*.sum files here. Delete mkheaders. Delete
3897 po/*.gmo and the testsuite directory in a split tree build.
3899 2002-06-10 Jeffrey Law <law@redhat.com>
3901 * alias.c (static_reg_base_value): New to hold RTL for
3902 items allocated once per function for the aliasing code.
3903 (init_alias_once_per_function): Initialize static_reg_base_value.
3904 (init_alias_analysis): Avoid throw-away allocations of RTL by
3905 using pre-computed values in static_reg_base_value.
3906 * function.c (prepare_function_start): Call
3907 init_alias_once_per_function appropriately.
3908 * rtl.h (init_alias_once_per_function): Declare.
3909 * caller-save (init_caller_save): Restructure slightly to
3910 avoid lots of silly RTL generation.
3911 * expr.c (init_expr_once): Likewise.
3912 * reload1.c (reload_cse_regs_1): Allocate throw-away register
3913 RTL object here. Pass it into children.
3914 (reload_cse_simplify_operands): Use passed-in register RTL
3916 (reload_cse_simplify): Pass through throw-away register
3919 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
3921 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
3923 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
3925 * gcc.c (process_command): Avoid assignment to read-only location.
3926 Fix sizeof calculation.
3928 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
3930 * cpphash.h (struct cpp_macro): Put comments on their own lines.
3931 (_cpp_expansions_different_trad): New.
3932 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
3933 * cpptrad.c (canonicalize_text): New.
3934 (scan_out_logical_line): Handle no arguments correctly.
3935 (save_replacement_text): Commit memory when finished.
3936 (_cpp_expansions_different_trad): New.
3938 2002-06-10 Tim Josling <tej@melbpc.org.au>
3940 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
3942 (lang_names): Add treelang and cobol.
3943 (get_file_basename): Add code to support treelang and cobol as
3944 4th and 5th users of c-common.c.
3946 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
3948 * Makefile.in (install-driver): Install driver as
3949 $(target_alias)-gcc-$(version).
3950 * gcc.c (spec_version): Make const.
3951 (process_command): Handle -V and -b by using exec.
3952 * doc/invoke.texi (Target Options): Restore -V option,
3953 update docs for -b option.
3955 2002-06-10 Tim Josling <tej@melbpc.org.au>
3957 * configure.in (remaining_languages_check):
3958 Added check that all languages specified were found.
3959 Exit if not found. Previous behaviour was silent failure.
3960 * configure: Regenerated.
3962 2002-06-10 Tim Josling <tej@melbpc.org.au>
3964 First steps to making treelang documentation compliant, based on
3965 instructions in sourcebuild.texi. Also add to gcc.c list of
3968 * doc/contrib.texi: Add self as contributor of treelang.
3970 * doc/frontends.texi: Add mention of treelang.
3972 * doc/invoke.texi (Overall Options): Add mention of treelang.
3974 * doc/standards.texi: Add mention of treelang.
3976 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
3978 * config/cris/cris.c: Include ggc.h
3980 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
3982 * cpphash.h (_cpp_push_text_context): Update.
3983 (_cpp_arguments_ok): New.
3984 * cppmacro.c (_cpp_arguments_ok): New, split out from...
3985 (collect_args): ...here.
3986 (_cpp_push_text_context): Change inputs.
3987 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
3988 replace_args_and_push): New.
3989 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
3990 Don't use IS macros directly.
3991 (scan_out_logical_line): Handle function-like macro argument
3993 (push_replacement_text): Update.
3994 (replacement_length): Remove.
3995 (_cpp_create_trad_definition): Don't skip whitespace before
3998 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4000 * config/avr/avr.c (avr_mcu_types): Update for new devices.
4001 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
4002 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
4003 * config/avr/avr.md ("type" and "length" attributes): New type
4004 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
4005 output a single "call" or "rcall" insn depending on device size.
4006 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
4008 2002-06-09 David Edelsohn <edelsohn@gnu.org>
4010 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
4011 synonym for 630. Add power4. Remove embedded processors. Use -m604
4013 (CPP_CPU_SPEC): Add power3 and power4.
4014 (PROCESSOR_DEFAULT): Change to 604e.
4015 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
4016 (CPP_CPU_SPEC): Similar additions.
4017 (enum process_type): Add POWER4.
4018 (RTX_COSTS): Add POWER4.
4019 (CPP_CPU_SPEC): Similar additions.
4020 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
4021 (PROCESSOR_DEFAULT64): Define.
4022 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
4023 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
4025 (rs6000_issue_rate): Add Power4.
4026 * config/rs6000/rs6000.md (cpu attr): Add power4.
4027 (iu compare): Remove 604, 604e, 620, 630.
4028 Add basic Power4 scheduling information.
4029 (mfcr/mtcrf): Change type attribute to cr_logical.
4031 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4033 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
4035 * gengtype-lex.l: Fix format specifier warning.
4037 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
4039 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
4040 lieu of isspace/IDchar.
4041 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
4042 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
4045 2002-06-08 Zack Weinberg <zack@codesourcery.com>
4047 * Makefile.in (LIBCPP_OBJS): Take out version.o.
4048 * cpphash.h (cpp_reader): Take out print_version member.
4049 * cppinit.c: (cpp_handle_option): Don't do anything with
4050 -version. Just set help_only for --version, --target-help.
4051 Just set verbose option for -v.
4052 (cpp_post_options): Don't print a version string.
4054 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4056 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
4057 (avr_section_type_flags): New, handle .noinit* sections.
4059 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4061 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
4062 and include netbsd_entry_point.
4063 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4064 (NETBSD_ENTRY_POINT): Define.
4066 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4068 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
4069 if not already defined.
4070 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
4072 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4074 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
4075 in a noreturn function.
4076 (avr_output_function_prologue, avr_output_function_epilogue):
4077 Correct function size calculation. Do not crash on empty function.
4078 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
4080 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4082 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4083 netbsd_link_spec and netbsd_entry_point.
4084 (LINK_SPEC): Use %(netbsd_link_spec).
4085 (NETBSD_ENTRY_POINT): Define.
4087 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4089 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
4091 (LINK_ARCH64_SPEC): Likewise.
4092 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
4093 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
4095 2002-06-08 Marc Espie <espie@openbsd.org>
4097 * lists.c (free_list): Fix typo in comment.
4099 2002-06-08 Andreas Jaeger <aj@suse.de>
4101 * lcm.c (optimize_mode_switching): Add unused attribute for
4104 * sched-deps.c (sched_analyze): Remove unused variable.
4106 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
4108 * diagnostic.def: Don't capitalize diagnostict descriptors.
4110 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4112 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
4113 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4114 (NETBSD_ENTRY_POINT): Define.
4116 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4118 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
4119 NETBSD_LINK_SPEC_ELF.
4120 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
4121 (NETBSD_ENTRY_POINT): Define.
4122 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
4123 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
4125 (NETBSD_ENTRY_POINT): Define.
4127 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4129 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4130 netbsd_link_spec and netbsd_entry_point.
4131 (LINK_SPEC): Use %(netbsd_link_spec).
4132 (NETBSD_ENTRY_POINT): Define.
4134 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4136 * config/netbsd-elf.h (LINK_SPEC): Rename to...
4137 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
4138 to specify program entry point.
4140 2002-06-07 Jeff Law <law@redhat.com
4142 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
4143 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
4144 than creating a new register.
4145 (distribute_notes): Likewise.
4146 * df.c (df_reg_use_gen): Likewise.
4147 (df_reg_clobber_gen): Likewise.
4148 (df_ref_record): Likewise.
4149 * expr.c (use_regs): Likewise.
4150 * flow.c (propagate_one_insn): Likewise.
4151 (mark_set_1): Likewise.
4152 (mark_used_reg): Likewise.
4153 * reload.c (emit_reload_insns): Likewise.
4155 2002-06-07 Roger Sayle <roger@eyesopen.com>
4157 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
4158 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
4159 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
4160 comparison code comp can be reversed.
4162 2002-06-07 Roger Sayle <roger@eyesopen.com>
4164 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
4165 constants last in comparisons. Optimize (x+1.0)>0.0 into the
4166 equivalent x > -1.0 when -ffast-math.
4168 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4170 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
4171 * config/mips/t-netbsd: New file.
4173 2002-06-07 Zack Weinberg <zack@codesourcery.com>
4175 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4176 options their own entries.
4177 (parse_option): Clarify comment.
4178 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
4179 special case. Replace if/strcmp chain for -W options with
4180 use of new OPT_* entries for them.
4181 (cpp_handle_options): Update to match.
4182 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
4183 * c-decl.c: Update call to cpp_handle_option.
4185 2002-06-07 Akim Demaille <akim@epita.fr>
4187 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
4190 2002-06-07 Jeffrey Law <law@redhat.com>
4192 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
4195 2002-06-07 H.J. Lu (hjl@gnu.org)
4197 * configure.in: Add --enable-__cxa_atexit.
4198 * configure: Regenerated.
4199 * config.in: Likewise.
4201 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
4204 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
4206 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
4208 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4210 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
4212 2002-06-07 Jason Merrill <jason@redhat.com>
4214 * cppexp.c (num_equality_op): Use a temporary variable to work
4215 around gcc 3.0.4 bug.
4217 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
4219 * diagnostic.c (diagnostic_build_prefix): Tidy.
4221 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
4223 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
4224 scan_parameters, save_replacement_text, replacement_length): New.
4225 (scan_out_logical_line): Take a macro and save parameters if
4227 (_cpp_logical_line_trad): Update.
4228 (_cpp_create_trad_definition): Update to handle function-like
4230 * cpplex.c (new_buff): Update.
4231 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
4232 * cpphash.h: ...here.
4233 (CPP_ALIGN2, _cpp_save_parameter): New.
4234 * cppmacro.c (save_parameter): Rename, export.
4235 (parse_params): Update.
4237 2002-06-07 Andreas Jaeger <aj@suse.de>
4239 * config/mmix/mmix.c: Remove extra broken prototype for
4240 mmix_init_machine_status.
4242 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
4244 * gengtype.c: Add comments before all the routines.
4246 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4248 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
4249 from and add t-sh64 to ${tmake_file}.
4250 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
4251 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
4252 * config/sh/t-netbsd-sh5-32: Remove.
4253 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
4255 (MULTILIB_DIRNAMES): Define.
4257 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
4259 * i386.md (and promoting splitters): Disable QI to SImode promoting
4260 when doing so changes immediate to be 32bit.
4262 * rtl.h (emit_*_scope): Declare.
4263 * emit-rtl.c (emit_*_scope): New global functions.
4264 (try_split): Copy scope.
4265 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4266 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4267 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4268 noce_process_if_block, find_cond_trap): Copy scopes.
4269 * recog.c (peephole2_optimize): likewise.
4271 2002-06-06 Jeffrey Law <law@redhat.com>
4273 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
4275 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
4277 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
4279 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4281 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
4282 ($(docdir)/gccinstall.info): New target.
4283 (info): Depend on it.
4284 (gccinstall.dvi): New target.
4285 (dvi): Depend on it.
4286 * doc/.cvsignore: Ignore new info files.
4287 * doc/install.texi (@setfilename): Reflect new info filename.
4289 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
4291 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
4294 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
4297 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
4298 c_common_get_alias_set.
4299 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
4301 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4303 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
4305 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
4306 * avr/avr.c (avr_output_function_epilogue): Use above to determine
4308 * pa/pa.c (pa_output_function_prologue): Likewise.
4310 2002-06-05 David S. Miller <davem@redhat.com>
4312 * integrate.c (subst_constants): Handle 'B' RTL format.
4314 2002-06-05 Eric Christopher <echristo@redhat.com>
4316 * varasm.c (make_decl_rtl): Fix comment for removed
4319 2002-06-05 Eric Christopher <echristo@redhat.com>
4321 * Makefile.in: Remove missed halfpic bits.
4323 2002-06-05 Eric Christopher <echristo@redhat.com>
4325 * toplev.c: Remove half-pic.
4326 * config/mips/mips.c: Ditto.
4327 * config/mips/mips.h: Ditto. Remove unused defines.
4328 * config/mips/openbsd.h: Update comment to reflect above.
4329 * config/mips/mips.md: Remove half-pic constraints.
4330 * halfpic.h: Delete.
4333 2002-06-05 Jeffrey Law <law@redhat.com>
4335 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
4336 rejects (mem (lo_sum (reg) (unspec))), but will allow
4337 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
4339 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4341 * cpphash.h (_cpp_create_definition): Update prototype.
4342 (_cpp_push_text_context, _cpp_create_trad_definition): New.
4343 ( cpp_lex_identifier_trad): New.
4344 (_cpp_set_trad_context): New.
4345 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
4346 * cpplib.c (SEEN_EOL): Update.
4347 (lex_macro_node): Update for -traditional.
4348 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
4349 * cppmacro.c (_cpp_create_definition): Split into
4350 create_iso_definition() and _cpp_create_trad_definition().
4351 (warn_of_redefinition): Update prototype; handle traditional
4353 (_cpp_push_text_context): New.
4354 * cpptrad.c (skip_whitespace, push_replacement_text): New.
4355 (lex_identifier): Call ht_lookup with correct start.
4356 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
4357 _cpp_set_trad_context): New.
4358 (scan_out_logical_line): Update to handle changing contexts.
4360 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
4362 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
4364 * config/sh/t-be (MULTILIB_ENDIAN): Set.
4365 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
4366 * t-sh (MULTILIB_ENDIAN): Set.
4367 (MULTILIB_OPTIONS): Use it.
4368 * t-sh64 (MULTILIB_OPTIONS): Likewise.
4369 (MULTILIB_DIRNAMES): Likewise.
4371 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
4373 * toplev.h (report_error_function): Remove.
4375 * diagnostic.h (location_t): New datatype.
4376 (text_info): Likewise.
4377 (diagnostic_info): Likewise.
4378 (output_prefix): New macro.
4379 (diagnostic_last_function_changed): Likewise.
4380 (diagnostic_set_last_function): Likewise.
4381 (diagnostic_last_module_changed): Likewise.
4382 (diagnostic_set_last_module): Likewise.
4383 (report_diagnostic): Now macro.
4384 (diagnostic_set_info): Declare.
4386 * diagnostic.c (report_problematic_module): Rename to
4387 diagnostic_repor_current_module.
4388 (set_diagnostic_context): Remove.
4389 (count_error): Rename to diagnostic_error_count.
4390 (error_function_changed): Remove.
4391 (record_last_error_function): Likewise.
4392 (error_module_changed): Likewise.
4393 (record_last_error_module): Likewise.
4394 (context_as_prefix): Rename to diagnostic_build_prefix.
4395 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4396 (diagnostic_set_info): New function.
4398 * objc/objc-act.c: #include diagnostic.h
4399 (error_with_ivar): Adjust call to count_error.
4400 (warn_with_method): Likewise.
4401 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4403 2002-06-05 Bob Wilson <bob.wilson@acm.org>
4405 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4406 lang_hooks.types.make_type instead of make_node; set up
4407 __va_list_tag type decl.
4408 (xtensa_builtin_saveregs): Remove broken use of
4409 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4410 for saved registers; add varargs alias set.
4412 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4415 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4416 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4417 CPP_PREDEFINES and part of CPP_SPEC.
4418 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4419 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4421 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
4423 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4425 2002-06-05 Alan Modra <amodra@bigpond.net.au>
4427 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4429 2002-06-04 Zack Weinberg <zack@codesourcery.com>
4431 * gengtype-yacc.y: Make sure all rules end with a semicolon.
4433 2002-06-04 Bob Wilson <bob.wilson@acm.org>
4435 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4436 typo in function prototype and include "ggc.h" header.
4438 2002-06-04 Richard Henderson <rth@redhat.com>
4440 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4441 (print_operand) ['U']: Likewise.
4442 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4443 (alpha_expand_unaligned_store_words): Likewise.
4444 (alpha_expand_builtin_vector_binop): Fix typo.
4445 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4446 umulh, and cix insns.
4447 (one_arg_builtins): Add cix builtins.
4448 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4449 (alpha_expand_builtin): Fix typo in arity.
4450 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4451 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4452 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4453 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4454 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4455 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4456 builtin_ctlz, builtin_ctpop): New.
4457 * doc/extend.texi (Alpha Built-in Functions): Update.
4459 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
4461 * gengtype.c (write_gc_root): Don't unnecessarily prevent
4462 global variable-length arrays being roots.
4464 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4465 * configure.in (config_gtfiles): New variable.
4466 (all_gtfiles): Initialise from config_gtfiles.
4467 * configure: Regenerate.
4469 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4472 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4473 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4474 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4475 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4476 win32.h (CPP_SPEC): Remove cpp_cpu.
4477 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4478 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4480 2002-06-04 Janis Johnson <janis187@us.ibm.com>
4482 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4484 2002-06-04 Jeff Law <law@redhat.com.
4485 David Edelsohn <edelsohn@gnu.org>
4486 Michael Matz <matz@kde.org>
4488 * sched-int.h (struct deps): New field libcall_block_tail_insn.
4489 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4490 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4491 is set, then mark the current insn as being part of a libcall
4493 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4495 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4496 insns against the issue rate.
4498 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
4500 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4501 * final.c (final_scan_insn): Likewise.
4502 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4503 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4504 * haifa-sched.c (unlink_other_notes): Likeewise.
4505 (reemit_notes): Likewise.
4506 * print-rtl.c (print_rtx): Likewise.
4507 * sched-deps (sched-analyze): Likewise.
4508 * rtl.c (note_insn_name): Likewise.
4509 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4510 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4513 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4515 * varasm.c (mark_constants): Handle RTX format 'B'.
4517 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4519 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4520 (struct cpp_context): Add traditional fields.
4521 * cppmacro.c (paste_all_tokens, push_ptoken_context,
4522 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4523 * cpptrad.c (skip_comment, lex_identifier,
4524 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4526 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
4528 * gbl-ctors.h: Fix formatting.
4530 * gccspec.c: Likewise.
4532 * gcov-io.h: Likewise.
4534 * ggc-common.c: Likewise.
4536 * ggc-page.c: Likewise.
4537 * ggc-simple.c: Likewise.
4538 * global.c: Likewise.
4539 * graph.h: Likewise.
4540 * gthr-dce.h: Likewise.
4542 * gthr-posix.h: Likewise.
4543 * gthr-rtems.h: Likewise.
4544 * gthr-solaris.h: Likewise.
4545 * gthr-win32.h: Likewise.
4547 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
4549 Merge from pch-branch:
4551 * gengtype.h (UNION_OR_STRUCT_P): New macro.
4552 * gengtype.c (write_gc_structure_fields): Use it.
4553 (write_gc_root): Use it here too.
4555 * gengtype.c (write_gc_structure_fields): Assume that lengths
4556 of typenames fit into an 'int'; don't pass a size_t to "%d" in
4558 (write_gc_marker_routine_for_structure): Likewise.
4559 (write_gc_types): Likewise.
4560 (write_gc_root): Likewise.
4562 * varray.h (VARRAY_CLEAR): New.
4563 (varray_clear): Prototype.
4564 * varray.c (varray_clear): New.
4565 * cselib.c (reg_values_old): New.
4566 (used_regs_old): New.
4567 (cselib_init): Use cached varrays if available to avoid
4568 generating large amounts of garbage.
4569 (cselib_finish): Don't throw away old varrays.
4571 * final.c (insn_addresses_): Move out of ifdef.
4573 * varray.c (uses_ggc): Make more varray kinds GCable.
4574 * varray.h (union varray_data_tag): Let gengtype see
4575 fields 'generic' and 'te'.
4576 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4577 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4578 (reg_to_stack): Don't call VARRAY_FREE.
4579 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4580 (insn_addresses_): Use gengtype to mark.
4581 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4582 pointers; handle generic pointers in unused union fields.
4583 (get_output_file_with_visibility): Include cselib.h,
4584 insn-addr.h in gtype-desc.c.
4585 * function.c (prologue): Use gengtype to mark.
4586 (epilogue): Likewise.
4587 (sibcall_epilogue): Likewise.
4588 * dependence.c: Include gt-dependence.h, ggc.h.
4589 (struct def_use): Use gengtype to mark.
4590 (struct loop): Likewise.
4591 (struct induction): Likewise.
4592 (struct dependence): Likewise.
4593 (def_use_chain): Likewise.
4594 (dep_chain): Likewise.
4595 (loop_chain): Likewise.
4596 (induction_chain): Likewise.
4597 (init_dependence_analysis): Don't free anything, just clear pointers.
4598 (build_def_use): Use GGC to allocate def_use.
4599 (add_loop): Use GGC to allocate loop.
4600 (find_induction_variable): Use GGC to allocate induction.
4601 (check_node_dependence): Use GGC to allocate induction, dependence.
4602 (dump_node_dependence): Don't free varrays.
4603 (end_dependence_analysis): Likewise.
4604 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4605 (struct elt_loc_list): Likewise.
4606 (struct elt_list): Likewise.
4607 * cselib.c: Don't include obstack.h.
4608 (hash_table): Use gengtype to mark.
4609 (reg_values): Use gengtype to mark.
4610 (used_regs): Use gengtype to mark.
4611 (cselib_obstack): Delete.
4612 (cselib_startobj): Delete.
4613 (empty_vals): Mark as deletable.
4614 (empty_elt_lists): Mark as deletable.
4615 (empty_elt_loc_lists): Mark as deletable.
4616 (new_elt_list): Use GGC to allocate struct elt_list.
4617 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4618 (clear_table): Don't delete obstack; don't unnecessarily clear
4619 deletable variables.
4620 (new_cselib_val): Use GGC to allocate struct cselib_val.
4621 (cselib_init): Don't set up obstacks. Use GGC to allocate
4623 (cselib_finish): Just clear variables, don't free anything.
4624 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4625 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4626 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4627 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4628 (gt-reg-stack.h): New rule.
4629 (gt-dependence.h): New rule.
4630 (gtype-desc.o): Add cselib.h, insn-addr.h.
4632 * varray.c: Use only necessary headers.
4633 (element_size): New.
4635 (varray_init): Take type, not size. Use GGC if appropriate.
4636 (varray_grow): Update for change to struct varray_head_tag.
4637 Use GGC if appropriate.
4638 * varray.h (struct const_equiv_data): Use gengtype.
4639 (enum varray_data_enum): New.
4640 (union varray_data_tag): Use gengtype.
4641 (struct varray_head_tag): Use gengtype. Replace size field with
4642 enum varray_data_enum.
4643 (varray_init): Update prototype.
4644 (VARRAY_SCHED_INIT): Delete.
4645 (VARRAY_*_INIT): Update for change to varray_init.
4646 (VARRAY_SCHED): Delete.
4647 (VARRAY_PUSH_SCHED): Delete.
4648 (VARRAY_TOP_SCHED): Delete.
4649 * tree.h: Update for change to length specifier.
4650 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4651 (clone_body): Likewise.
4652 * ssa.h (ssa_definition): Use gengtype to mark.
4653 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4654 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4655 * rtl.h (struct rtvec_def): Update for change to length specifier.
4656 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4657 (struct initial_value_struct): Update for change to length specifier.
4658 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4659 (ggc_add_tree_varray_root): Delete prototype.
4660 (ggc_mark_rtx_varray): Delete prototype.
4661 (ggc_mark_tree_varray): Delete prototype.
4662 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4663 (ggc_add_tree_varray_root): Delete.
4664 (ggc_mark_rtx_varray): Delete.
4665 (ggc_mark_tree_varray): Delete.
4666 (ggc_mark_rtx_varray_ptr): Delete.
4667 (ggc_mark_tree_varray_ptr): Delete.
4668 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4669 (create_varray): Delete prototype.
4670 * gengtype.c (varrays): Delete.
4671 (create_varray): Delete.
4672 (adjust_field_type): Detect array of string pointers.
4673 (process_gc_options): Remove code to handle varray_type option.
4674 (set_gc_used_type): Remove TYPE_VARRAY case.
4675 (output_escaped_param): New.
4676 (write_gc_structure_fields): Use output_escaped_param on all
4677 parameters. Handle 'skip' with 'use_param' option. Handle
4678 arrays of strings. Remove TYPE_VARRAY handling.
4679 (write_gc_roots): Use boolean to detect 'length' option.
4680 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4681 (struct_fields): Call adjust_field_type on array fields.
4682 (type): Remove VARRAY_TYPE case.
4683 (type_option): Likewise.
4684 * gengtype-lex.l: Don't consider varray_type a keyword.
4685 * function.h: Update for change to length specifier.
4686 (free_eh_status): Delete prototype.
4687 * function.c (free_after_compilation): Don't call free_eh_status.
4688 (reorder_blocks): Don't use VARRAY_FREE.
4689 * except.c (struct eh_status): Update for change to length specifier.
4690 remove varray_type specifier.
4691 (free_eh_status): Delete.
4692 * dwarf2out.c: Include gt-dwarf2out.h.
4693 (used_rtx_varray): Use gengtype to mark, move
4695 (incomplete_types): Likewise.
4696 (decl_scope_table): Likewise.
4697 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
4698 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4699 * c-tree.h (struct lang_type): Update for change to length specifier.
4700 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4701 * c-objc-common.c: Include gt-c-objc-common.h.
4702 (deferred_fns): Mark for gengtype.
4703 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4704 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4705 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4706 (gtype-desc.o): Update dependencies.
4707 (dwarf2out.o): Add gt-dwarf2out.h.
4708 (varray.o): Update dependencies.
4709 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4710 (gt-c-objc-common.h): New rule.
4711 (gt-dwarf2out.h): New rule.
4712 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4714 * doc/gty.texi (GTY Options): Correct spelling.
4715 (GGC Roots): Likewise.
4716 * Makefile.in (TEXI_CPP_FILES): New.
4717 (TEXI_GCC_FILES): New.
4718 (TEXI_GCCINT_FILES): New.
4719 (TEXI_CPPINT_FILES): New.
4720 ($(docdir)/cpp.info): Use new macros.
4721 ($(docdir)/gcc.info): Likewise.
4722 ($(docdir)/gccint.info): Likewise.
4723 ($(docdir)/cppinternals.info): Likewise.
4724 (cpp.dvi): Likewise.
4725 (gcc.dvi): Likewise.
4726 (gccint.dvi): Likewise.
4727 (cppinternals.dvi): Likewise.
4729 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4730 * doc/gccint.texi (Top): Include gty.texi.
4731 * doc/gty.texi: New file.
4733 * bitmap.c: Include ggc.h, gt-bitmap.h.
4734 (bitmap_ggc_free): New.
4735 (bitmap_elem_to_freelist): New.
4736 (bitmap_element_free): Use bitmap_elem_to_freelist.
4737 (bitmap_element_allocate): Allow use of GGC.
4738 (bitmap_clear): Use bitmap_elem_to_freelist.
4739 (bitmap_copy): Update for change to bitmap_element_allocate.
4740 (bitmap_set_bit): Likewise.
4741 (bitmap_operation): Update for changes elsewhere.
4742 (bitmap_initialize): Allow to create bitmaps that will use GGC.
4743 * bitmap.h (struct bitmap_element_def): Use gengtype.
4744 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
4745 (bitmap_initialize): Add extra parameter.
4746 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4747 (BITMAP_ALLOCA): Delete.
4748 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4749 (BITMAP_GGC_ALLOC): New.
4750 * Makefile.in (gtype-desc.o): Add bitmap.h.
4751 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4752 (GTFILES): Add bitmap.c.
4753 (gt-bitmap.h): New rule.
4754 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4755 * basic-block.h: Update for changes to bitmap_initialize.
4756 * except.c (exception_handler_label_map): Move into...
4757 (struct eh_status): Here.
4758 (struct eh_region): Make 'aka' GCable.
4759 (free_eh_status): Don't need to specially handle
4760 exception_handler_label_map.
4761 (add_ehl_entry): Update for changes to exception_handler_label_map.
4762 (find_exception_handler_labels): Likewise.
4763 (remove_exception_handler_label): Likewise.
4764 (maybe_remove_eh_handler): Likewise.
4765 (for_each_eh_label): Likewise.
4766 (remove_eh_handler): Allocate 'aka' using GGC.
4767 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4768 to list of includes.
4770 * gengtype.c (write_gc_marker_routine_for_structure): Name
4771 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
4772 (write_gc_types): Arrange for the tests with NULL to be inlined.
4773 (write_gc_roots): Update uses of procedure pointers.
4774 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4776 * Makefile.in (explow.o): Add dependency on gt-explow.h.
4777 (sdbout.o): Add dependency on gt-sdbout.h.
4779 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4780 (mem_attrs_htab): Likewise.
4781 (init_emit_once): Don't call ggc_add_deletable_htab.
4782 * fold-const.c (size_htab): Use gengtype to clear unused entries.
4783 (size_int_type_wide): Don't call ggc_add_deletable_htab.
4784 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
4785 parameters, use them, change callers.
4786 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
4787 (write_gc_roots): Handle 'if_marked' option.
4788 (main): Don't need to call set_gc_used_type any more.
4789 * ggc.h (ggc_htab_marked_p): Delete.
4790 (ggc_htab_mark): Delete.
4791 (struct ggc_cache_tab): New.
4792 (gt_ggc_cache_rtab): New declaration.
4793 * ggc-common.c (struct d_htab_root): Delete.
4794 (d_htab_roots): Delete.
4795 (ggc_add_deletable_htab): Delete.
4796 (ggc_htab_delete): Handle new htab-deleting mechanism.
4797 (ggc_mark_roots): Use new htab-deleting mechanism.
4798 * tree.c (type_hash_table): Use gengtype to clear unused entries.
4800 (init_obstacks): Don't call ggc_add_deletable_htab.
4802 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
4803 (struct hashed_entry): Likewise.
4804 (nst_method_hash_list): Likewise.
4805 (cls_method_hash_list): Likewise.
4806 (HASH_ALLOC_LIST_SIZE): Delete.
4807 (ATTR_ALLOC_LIST_SIZE): Delete.
4808 * objc/objc-act.c (hash_init): Use ggc to allocate
4809 nst_method_hash_list, cls_method_hash_list.
4810 (hash_enter): Use ggc to allocate; allocate one entry at a time.
4811 (hash_add_attr): Likewise.
4812 (ggc_mark_hash_table): Delete.
4813 (objc_act_parse_init): Delete.
4814 (objc_init): Delete reference to objc_act_parse_init.
4815 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
4816 obstack.h. Replace references to 'struct hash_table' with htab_t.
4817 (struct symbol_hash_entry): Replace hash header with key field.
4818 (struct file_hash_entry): Replace hash header with key field.
4819 (struct demangled_hash_entry): Replace hash header with key field.
4820 (hash_string_eq): New.
4821 (hash_string_hash): New.
4822 (symbol_hash_newfunc): Delete.
4823 (symbol_hash_lookup): Modify to use htab_t.
4824 (file_hash_newfunc): Delete.
4825 (file_hash_lookup): Modify to use htab_t.
4826 (demangled_hash_newfunc): Delete.
4827 (demangled_hash_lookup): Modify to use htab_t.
4828 (tlink_init): Modify to use htab_t.
4831 * ggc.h: Delete forward structure declarations.
4832 Delete prototypes for deleted functions.
4833 * ggc-common.c: Don't include hash.h.
4834 (ggc_add_tree_hash_table_root): Delete.
4835 (ggc_mark_tree_hash_table_entry): Delete.
4836 (ggc_mark_tree_hash_table): Delete.
4837 (ggc_mark_tree_hash_table_ptr): Delete.
4838 * gengtype.c (write_gc_structure_fields): Allow param_is option.
4839 (write_gc_marker_routine_for_structure): Use visibility of
4840 the parameter if there is one.
4841 * function.c: Replace hash.h with hashtab.h. Replace references
4842 to 'struct hash_table *' with htab_t.
4843 (struct insns_for_mem_entry): Include a plain key.
4844 (fixup_var_refs_insns_with_hash): Update to use htab_t.
4845 (insns_for_mem_newfunc): Delete.
4846 (insns_for_mem_hash): Update to use htab_t.
4847 (insns_for_mem_comp): Likewise.
4848 (insns_for_mem_walk): Likewise.
4849 * c-lang.c: Include ggc.h.
4850 * Makefile.in (OBJS): Remove hash.o.
4851 (c-lang.o): Add GGC_H.
4852 (COLLECT2_OBJS): Remove hash.o.
4853 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
4854 (ggc-common.o): Remove hash.h.
4855 (function.o): Remove hash.h, add HASHTAB_H.
4856 (genautomata.o): Remove hash.h, add HASHTAB_H.
4858 * varasm.c (mark_const_str_htab_1): Delete.
4859 (mark_const_str_htab): Delete.
4860 (const_str_htab_del): Delete.
4861 (const_str_htab): Use gengtype to mark.
4862 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
4864 * tree.c (mark_tree_hashtable_entry): Delete.
4865 (mark_tree_hashtable): Delete.
4866 * tree.h (mark_tree_hashtable): Delete prototype.
4867 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
4868 (ggc_mark): Likewise.
4870 (htab_create_ggc): New.
4871 * ggc-common.c (ggc_calloc): New.
4872 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
4873 (struct type): Add param_struct structure.
4874 * gengtype.c (param_structs): New.
4875 (adjust_field_type): Handle param_is option.
4876 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
4877 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
4878 (write_gc_structure_fields): Add new PARAM parameter. Update
4879 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
4880 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
4881 Use it to generate function name. Update callers.
4882 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
4884 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
4886 (main): Define PTR as pointer-to-scalar. Don't specially
4887 mark deferred_string or ehl_map_entry.
4888 * gengtype-yacc.y (PARAM_IS): Add new token.
4889 (externstatic): Use adjust_field_type.
4890 (type_option): Add PARAM_IS.
4891 * gengtype-lex.l: Add rule for typedef of function pointers.
4892 Add rule for PARAM_IS.
4893 (IWORD): Add size_t.
4894 * except.c (exception_handler_label_map): Use gengtype to mark.
4895 (type_to_runtime_map): Likewise.
4896 (mark_ehl_map_entry): Delete.
4897 (mark_ehl_map): Delete.
4898 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
4899 (t2r_mark_1): Delete.
4901 * Makefile.in (gtype-desc.o): Correct dependencies.
4902 (GTFILES): Add hashtab.h.
4903 (genautomata.o): Actually uses hashtab.h.
4905 * Makefile.in (stringpool.o): Add $(GGC_H).
4906 (dwarf2asm.o): Likewise.
4907 (GTFILES): Add hashtable.h.
4908 * c-common.h (struct c_common_identifier): Use gengtype.
4909 * c-decl.h (c_mark_tree): Delete.
4910 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4911 * c-tree.h (struct lang_identifier): Use gengtype.
4912 (union lang_tree_node): New.
4913 (c_mark_tree): Delete prototype.
4914 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
4916 * gengtype-lex.l (IWORD): Allow 'bool'.
4918 * gengtype-yacc.y (ALIAS): New token.
4919 (type_option): New rule.
4920 (option): Use type_option.
4921 * gengtype.c (process_gc_options): New.
4922 (set_gc_used_type): Use it.
4923 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
4924 Add new variable 't' to hold the type of the field being processed.
4925 Add more error checking. Use UNION_P when looking at 'desc' option.
4926 Handle language-specific structures containing other
4927 language-specific structures.
4928 (write_gc_types): Handle 'ptr_alias' option.
4929 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
4930 * ggc-common.c (ggc_pending_trees): Delete.
4931 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
4932 (ggc_mark_trees): Delete.
4933 (gt_ggc_m_tree_node): Delete.
4934 * ggc.h (ggc_pending_trees): Delete.
4935 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
4936 * hashtable.h (ht_identifier): Use gengtype.
4937 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
4938 * langhooks.h (struct lang_hooks): Delete mark_tree.
4939 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
4941 * system.h: Poison LANG_HOOKS_MARK_TREE.
4942 * tree.c (tree_node_structure): New.
4943 * tree.h (struct tree_common): Use gengtype.
4944 (struct tree_int_cst): Likewise.
4945 (struct tree_real_cst): Likewise.
4946 (struct tree_string): Likewise.
4947 (struct tree_complex): Likewise.
4948 (struct tree_vector): Likewise.
4949 (struct tree_identifier): Likewise.
4950 (struct tree_list): Likewise.
4951 (struct tree_vec): Likewise.
4952 (struct tree_exp): Likewise.
4953 (struct tree_block): Likewise.
4954 (struct tree_type): Likewise.
4955 (struct tree_decl): Likewise.
4956 (enum tree_structure_enum): New.
4957 (union tree_node): Use gengtype, with an alias.
4958 (tree_node_structure): Prototype.
4959 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4961 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
4962 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
4963 to LANG_HOOKS_FUNCTION_FINAL.
4964 * Makefile.in (GTFILES): Add bitmap.h.
4965 * except.c (struct eh_region): Mark field 'aka' to be skipped.
4967 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
4968 (alpha_init_machine_status): Give proper type.
4969 * Makefile.in (c-lang.o): Depend on gtype-c.h.
4970 (optabs.o): Depend on gt-optabs.h.
4971 (GTFILES): Add optabs.o.
4972 (gt-optabs.h): Add rule.
4973 * optabs.c: Include gt-optabs.h.
4975 * gengtype.c (set_gc_used_type): Correct some errors in last change.
4976 (write_gc_structure_fields): If a field which should be NULL is
4978 * c-pragma.c: Move struct align_stack and variable alignment_stack
4981 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
4982 * config/xtensa/xtensa.c: Include gt-cris.h.
4983 (struct machine_function): Use gengtype to mark.
4984 * config/mmix/mmix.h (struct machine_function): Use gengtype
4986 * config/cris/t-cris: Add dependencies for gt-cris.h.
4987 * config/cris/cris.c: Include gt-cris.h.
4988 (struct machine_function): Use gengtype to mark.
4989 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
4991 * doc/tm.texi (Per-Function Data): Delete references to
4992 mark_machine_status.
4993 * config/ia64/ia64.c (ia64_override_options): Don't set
4994 mark_machine_status.
4995 * config/i386/i386.c (override_options): Likewise.
4996 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
4997 * config/arm/arm.c (arm_init_expanders): Likewise.
4998 * config/alpha/alpha.c (override_options): Likewise.
4999 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
5000 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
5001 (write_gc_structure_fields): Don't handle 'really' option.
5002 Handle 'maybe_null' option.
5003 (write_gc_types): Handle 'maybe_null' option.
5004 * function.h (struct function): Don't use "really".
5005 (mark_machine_status): Delete declaration.
5006 (mark_lang_status): Delete declaration.
5007 (gt_ggc_mr_machine_function): Delete prototype.
5008 (gt_ggc_mr_language_function): Delete prototype.
5009 * function.c (mark_machine_status): Delete.
5010 (mark_lang_status): Delete.
5011 (gt_ggc_mr_machine_function): Delete.
5012 (gt_ggc_mr_language_function): Delete.
5013 * c-tree.h (mark_c_function_context): Delete prototype.
5014 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
5015 * c-decl.c (struct language_function): Rename from struct
5016 c_language_function. Update uses. Use gengtype to mark.
5017 (mark_c_function_context): Delete.
5018 * c-common.h (struct c_language_function): Rename from struct
5020 (mark_stmt_tree): Delete prototype.
5021 (c_mark_lang_decl): Delete prototype.
5022 (mark_c_language_function): Delete prototype.
5023 * c-common.c (mark_stmt_tree): Delete.
5024 (c_mark_lang_decl): Delete.
5025 (mark_c_language_function): Delete.
5027 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
5028 (lang_bitmap): New typedef. Use where appropriate.
5029 (struct type): Add gc_used field, lang_struct field.
5030 (UNION_P): New macro.
5031 (new_structure): New prototype.
5032 (find_structure): Remove 'pos' parameter. Change all callers.
5033 * gengtype-lex.l: Update for changes to find_structure.
5034 * gengtype-yacc.y (typedef_struct): Use new_structure.
5035 (yacc_ids): Suppress warning.
5036 (type): Use new_structure.
5037 * gengtype.c (string_type): Update for changes to struct type.
5038 (find_structure): Just find a structure, don't worry about
5040 (new_structure): New.
5041 (note_yacc_type): Use new_structure.
5042 (set_gc_used_type): New.
5044 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
5045 (write_gc_types): Handle TYPE_LANG_STRUCT.
5046 (write_gc_marker_routine_for_structure): New.
5047 (main): Call set_gc_used. Add some calls to set_gc_used_type
5048 for places where GCC doesn't use gengtype properly yet.
5049 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
5050 (gt_ggc_m_tree_node): Likewise.
5052 * varasm.c (copy_constant): Call expand_constant if we hit
5053 something we can't recognise.
5055 * ggc-common.c (ggc_mark_rtvec_children): Delete.
5056 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
5057 (lang_mark_false_label_stack): Delete.
5058 * rtl.h (struct rtvec_def): Use gengtype to mark.
5059 * ggc.h (ggc_mark_rtvec): Delete.
5060 (gt_ggc_m_rtvec_def): Delete.
5061 (ggc_mark_nonnull_tree): Delete.
5062 (ggc_mark_rtvec_children): Delete prototype.
5063 (lang_mark_false_label_stack): Delete declaration.
5065 * gengtype.h (note_yacc_type): Add prototype.
5066 * gengtype.c (note_yacc_type): New function.
5067 * gengtype-lex.l: Add lexer support for yacc files.
5068 * gengtype-yacc.y (start): Extract union from yacc files.
5069 (yacc_union): New rule.
5070 (yacc_typematch): New rule.
5071 (yacc_ids): New rule.
5072 (enum_items): Tweak for efficiency.
5073 (optionseq): Likewise.
5075 * c-common.h (struct language_function): Use gengtype.
5076 (struct c_lang_decl): Likewise.
5077 * c-tree.h (struct lang_decl): Likewise.
5078 (struct lang_type): Likewise.
5079 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
5080 tree language substructures.
5082 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
5084 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
5086 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
5088 * stmt.c (struct nesting): Add discriminator. Use gengtype to
5089 mark. Remove 'data.block.cleanup_ptr' field.
5090 (struct stmt_status): Use usual technique to mark struct nesting.
5091 (gt_ggc_mr_nesting_cond): Delete.
5092 (gt_ggc_mr_nesting_loop): Delete.
5093 (gt_ggc_mr_nesting_block): Delete.
5094 (gt_ggc_mr_nesting_case_stmt): Delete.
5095 (expand_start_cond): Set discriminator.
5096 (expand_start_loop): Likewise.
5097 (expand_start_null_loop): Likewise.
5098 (expand_start_bindings_and_block): Set discriminator. Don't set
5100 (expand_decl_cleanup): Replace 'cleanup_ptr' with
5101 &thisblock->data.block.cleanups.
5102 (expand_start_case): Set discriminator.
5103 (expand_start_case_dummy): Set discriminator.
5105 * ggc-callbacks.c: Remove.
5107 * gengtype.h (struct type): Add 'u.s.bitmap' field.
5108 (find_structure): Add 'pos' parameter.
5109 * gengtype-lex.l: Update callers to find_structure.
5110 * gengtype-yacc.y: Likewise.
5111 * gengtype.c (find_structure): Allow for structures to be defined
5112 in multiple language backends.
5113 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
5114 (counter): Rename to gc_counter.
5115 (write_gc_structure_fields): Fail when writing out fields for
5116 an incomplete structure. Ignore arrays of scalars. Handle
5118 (write_gc_types): Reset counter for each procedure written.
5120 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
5121 (free_case_nodes): Delete.
5122 (expand_end_case_type): Delete call to free_case_nodes.
5124 * Makefile.in (cselib.o): Include gt-<filename>.h.
5126 (profile.o): Likewise.
5127 (alias.o): Likewise.
5128 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
5129 alphabetize backend files.
5130 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
5131 * alias.c: Use gengtype for roots.
5132 * c-common.h (struct stmt_tree_s): Use gengtype.
5133 * c-decl.c: Use gengtype for roots.
5134 * cselib.c: Use gengtype for roots.
5135 * expr.c: Use gengtype for roots.
5136 * fold-const.c: Use gengtype for roots.
5137 * gcse.c: Use gengtype for roots.
5138 * gengtype-lex.l: Handle typedefs of function types.
5139 Allow for empty array bounds.
5140 Allow processing to stop on initialisers.
5141 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
5142 (semiequal): New rule.
5143 * gengtype.c (create_file): Tidy output files.
5144 (get_output_file_with_visibility): Fix paren warning. Fix bug
5145 involving multiple input files mapping to one output file.
5146 (write_gc_structure_fields): Skip arrays of scalars.
5147 (write_gc_types): Tidy output files.
5148 (write_gc_root): New function.
5149 (write_gc_roots): Fix bugs, add support for roots that are
5151 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
5152 (ggc_mark_tree_ptr): Delete.
5153 (ggc_add_rtx_root): Delete.
5154 (ggc_add_tree_root): Delete.
5155 (ggc_del_root): Delete.
5156 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
5157 allocate struct initial_value_struct.
5158 * profile.c: Use gengtype for roots.
5159 * sdbout.c: Use gengtype for roots.
5160 * varasm.c (mark_weak_decls): Delete unused prototype.
5161 (mark_const_hash_entry): Delete unused function.
5162 * config/darwin-protos.h: Use gengtype for roots.
5163 (machopic_add_gc_roots): Delete.
5164 * config/arm/arm.c: Use gengtype for roots.
5165 * config/arm/arm.h: Use gengtype for roots.
5166 * config/c4x/c4x-protos.h: Use gengtype for roots.
5167 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
5168 * config/d30v/d30v-protos.h: Use gengtype for roots.
5169 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
5170 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
5171 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
5172 * config/ia64/ia64-protos.h: Use gengtype for roots.
5173 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
5174 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
5175 * config/m68hc11/m68hc11.c (z_reg): Make global.
5176 (z_reg_qi): Make global.
5177 (m68hc11_add_gc_roots): Delete.
5178 * config/mcore/mcore-protos.h: Use gengtype for roots.
5179 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
5180 * config/mips/mips.c (mips_add_gc_roots): Delete.
5181 * config/mips/mips.h: Use gengtype for roots.
5182 * config/mmix/mmix.c (override_options): Use gengtype for roots.
5183 * config/mmix/mmix.h: Use gengtype for roots.
5184 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
5185 * config/mn10200/mn10200.h: Use gengtype for roots.
5186 * config/pa/pa.c: Use gengtype for roots, marking.
5187 (struct deferred_plabel): Use GGC, gengtype.
5188 (pa_add_gc_roots): Delete.
5189 (mark_deferred_plabels): Delete.
5190 * config/pj/pj-protos.h: Use gengtype for roots.
5191 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
5192 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
5193 machopic_add_gc_roots.
5194 * config/rs6000/rs6000.h: Use gengtype for roots.
5195 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
5196 (gt-darwin.h): Add rule.
5197 * config/sh/sh.c: Use gengtype for roots.
5198 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
5199 (gt-sh.h): Add rule.
5200 * config/sparc/sparc.c: Use gengtype for roots.
5201 (sparc_add_gc_roots): Delete.
5202 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
5203 (mark_ultrasparc_pipeline_state): Delete.
5204 * config/sparc/sparc.h: Use gengtype for roots.
5206 * Makefile.in (c-parse.o): Update dependencies.
5207 (c-common.o): Likewise.
5208 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
5209 Add dependencies for the files they generate.
5210 * c-common.c: Replace ggc_add_* uses with GTY annotations.
5211 * c-common.h: Likewise.
5212 * c-decl.c: Likewise.
5213 (gt_ggc_mp_binding_level): Delete.
5214 * c-lang.c: Include gtype-c.h.
5215 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
5217 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
5218 (gt_ggc_mp_align_stack): Delete.
5219 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
5220 * function.c: Replace ggc_add_* uses with GTY annotations.
5221 (gt_ggc_mp_function): Delete.
5222 * function.h: Replace ggc_add_* uses with GTY annotations.
5223 * gengtype.c (lang_names): New.
5224 (NUM_BASE_FILES): New.
5225 (open_base_files): Create language base files.
5227 (get_file_basename): New.
5228 (get_base_file_bitmap): New.
5229 (get_output_file_with_visibility): Rename from get_output_file.
5230 Add more mappings for various C/Objc filenames.
5231 (finish_root_table): New.
5232 (write_gc_roots): Handle dependencies and scoping properly.
5233 * gengtype.h: Add prototypes for new functions.
5234 * ggc-common.c (struct deletable_root): Delete.
5235 (deletables): Delete.
5236 (ggc_add_deletable_root): Delete.
5237 (ggc_mark_roots): No need to deal with deleted functionality.
5238 * ggc.h (ggc_add_deletable_root): Delete prototype.
5239 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
5240 (gtype-objc.h): Add rule to create.
5241 * objc/config-lang.in (gtfiles): New.
5242 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
5243 ggc_add_* with GTY markers. Include gtype-objc.h.
5244 (ggc_mark_imp_list): Delete.
5245 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
5246 * objc/objc-lang.c: Random Whitespace Change.
5248 * except.h (exception_handler_labels): Delete.
5249 (get_exception_handler_labels): New.
5250 * except.c (exception_handler_labels): Delete.
5251 (struct eh_status): Add exception_handler_labels field.
5252 (doing_eh): Don't add exception_handler_labels as root.
5253 (free_eh_status): Don't need to free exception_handler_labels.
5254 (get_exception_handler_labels): New.
5255 (find_exception_handler_labels): Update for move of
5256 exception_handler_labels.
5257 (remove_exception_handler_label): Likewise.
5258 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
5259 * jump.c (rebuild_jump_labels): Likewise.
5260 * loop.c (find_and_verify_loops): Likewise.
5261 * sched-rgn.c (is_cfg_nonregular): Likewise.
5263 * gengtype.c (write_gc_structure_fields): Handle variable-length
5266 * varasm.c (struct weak_syms): Use GGC, gengtype.
5267 (mark_weak_decls): Delete.
5268 (weak_decls): Likewise.
5269 (add_weak): Likewise.
5270 (remove_from_pending_weak_list): Likewise.
5271 (init_varasm_once): Likewise.
5273 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
5274 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
5275 stor-layout.c, regclass.c, and lists.c.
5276 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
5277 gt-regclass.h and gt-lists.h on s-gtype.
5278 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
5279 * except.c: Use gengtype for roots.
5280 * explow.c: Use gengtype for roots. Include gt-explow.h.
5281 * expr.h (init_stor_layout_once): Delete prototype.
5282 * function.c: Use gengtype for roots.
5283 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
5284 * gengtype-yacc.y (start): Can also be an externstatic.
5285 (externstatic): New production.
5286 (struct_fields): Correct array bounds inversion for 2-d arrays.
5287 * gengtype.c (variables): New variable.
5288 (note_variable): New function.
5289 (get_output_file): Include libfuncs.h into gtype-desc.c.
5290 (get_output_file_name): New function.
5291 (write_gc_structure_fields): Suppress warnings.
5292 (write_gc_types): Make static.
5293 (put_mangled_filename): New function.
5294 (write_gc_roots): New function.
5295 (main): Call write_gc_roots.
5296 * gengtype.h (note_variable): Prototype.
5297 (get_output_file_name): Prototype.
5298 (write_gc_types): Delete prototype.
5299 * ggc.h: Clean up unnecessary structure predefinitions.
5300 (struct ggc_root_tab): Define.
5301 (gt_ggc_m_rtx_def): Make function, not macro.
5302 (gt_ggc_m_tree_node): Likewise.
5303 * libfuncs.h: Use gengtype for roots.
5304 * lists.c: Use gengtype for roots. Include gt-lists.h.
5305 (init_EXPR_INSN_LIST_cache): Delete.
5306 * optabs.c: Use gengtype for roots.
5307 (gt_ggc_mp_optab): Delete.
5308 * optabs.h: Use gengtype for roots.
5309 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
5310 * rtl.h: Use gengtype for roots.
5311 (init_EXPR_INSN_LIST_cache): Delete prototype.
5312 * stor-layout.c: Use gengtype for roots.
5313 Include gt-stor-layout.h.
5314 (init_stor_layout_once): Delete.
5315 * toplev.c: Use gengtype for roots. Delete calls to deleted
5317 * tree.c: Use gengtype for roots.
5318 * tree.h: Use gengtype for roots.
5319 * varasm.c: Use gengtype for roots.
5321 * Makefile.in (GTFILES): Add @all_gtfiles@.
5322 * configure: Regenerate.
5323 * configure.in: Construct all_gtfiles from the gtfiles definitions
5325 * gengtype-yacc.y (type): Warn about duplicate structure names.
5326 * gengtype.c (get_output_file): Handle .c files in language
5329 * Makefile.in (GTFILES): Run gengtype on all the config files
5330 and on the target .c file.
5331 * except.c (mark_eh_region): Delete.
5332 (init_eh_for_function): Use GGC on struct eh_status.
5333 (mark_eh_status): Delete.
5334 (free_eh_status): Use GGC.
5335 (expand_eh_region_start): Use GGC to
5336 (collect_eh_region_array): Allocate last_region_number using GGC.
5337 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
5338 (remove_eh_handler): Let GGC free struct eh_region.
5339 (add_call_site): Use GGC to reallocate call_site_record array.
5340 * function.c (init_machine_status): Update calling sequence.
5341 (mark_machine_status): Likewise.
5342 (mark_lang_status): Likewise.
5343 (prepare_function_start): Update init_machine_status call.
5344 (mark_function_status): Delete.
5345 (maybe_mark_struct_function): Delete.
5346 (ggc_mark_struct_function): Delete.
5347 (gt_ggc_mp_function): New.
5348 (gt_ggc_mr_machine_function): New.
5349 (gt_ggc_mr_language_function): New.
5350 (init_function_once): Use canonical names.
5351 * function.h (struct function): Use gengtype.
5352 (init_machine_status): Return the structure.
5353 (mark_machine_status): Take a 'void *'.
5354 (mark_lang_status): Likewise.
5355 * ggc-common.c (ggc_mark_trees): Use canonical name for
5356 ggc_mark_struct_function.
5357 * tree.h (ggc_mark_struct_function): Delete prototype.
5358 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
5359 (alpha_init_machine_status): Likewise.
5360 (override_options): Use canonical name for alpha_mark_machine_status.
5361 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
5362 * config/arm/arm.h (struct machine_function): Use gengtype.
5363 * config/arm/arm.c (arm_mark_machine_status): Delete.
5364 (arm_init_machine_status): Update calling sequence.
5365 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
5366 * config/cris/cris.c (cris_init_machine_status): Update
5368 * config/d30v/d30v.h (struct machine_function): Use gengtype.
5369 * config/d30v/d30v.c (d30v_init_machine_status): Update
5371 (d30v_mark_machine_status): Delete.
5372 * config/i386/i386.c: Include gt-i386.h.
5373 (struct machine_function): Use gengtype.
5374 (ix86_init_machine_status): Update calling sequence.
5375 (ix86_mark_machine_status): Delete.
5376 (override_options): Use canonical namke for ix86_mark_machine_status.
5377 * config/ia64/ia64.h (struct machine_function): Use gengtype.
5378 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
5380 (ia64_mark_machine_status): Delete.
5381 (ia64_override_options): Use canonical name for
5382 ia64_mark_machine_status.
5383 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
5385 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5386 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5387 * gengtype.c (get_output_file): Fix warning.
5388 (main): Add prototype to suppress warning.
5389 * tree.c: Remove tree_hash_mark prototype.
5391 * tree.h (init_stmt): Delete prototype.
5392 * toplev.c (lang_independent_init): Don't call init_stmt.
5393 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5394 (stmt_obstack): Delete.
5395 (POPSTACK): No need to free 'struct nesting'.
5396 (gt_ggc_mr_nesting_cond): Use canonical names.
5397 (gt_ggc_mr_nesting_loop): Use canonical names.
5398 (gt_ggc_mr_nesting_block): Use canonical names.
5399 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5400 (mark_stmt_status): Delete.
5401 (init_stmt): Delete.
5402 (clear_last_expr): Clear both last_expr_type and last_expr_value.
5403 Use it everywhere that last_expr_type was cleared.
5404 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5405 (zap_lists): Delete.
5406 * ggc.h (ggc_add_deletable_root): Prototype.
5407 (mark_stmt_status): Remove prototype.
5408 * ggc-common.c (ggc_add_deletable_root): New.
5409 (ggc_mark_roots): Handle deletable roots.
5410 * function.c (ggc_mark_struct_function): Use canonical name
5411 for mark_stmt_status.
5412 * emit-rtl.c (free_sequence_stack): New.
5413 (start_sequence): Use a freelist for sequences.
5414 (end_sequence): Likewise.
5415 (init_emit_once): Add free_sequence_stack as a deleteable root.
5416 * c-pragma.c Include gt-c-pragma.h.
5417 (struct align_stack): Use gengtype.
5418 (push_alignment): Use GGC for struct align_stack.
5419 (mark_align_stack): Delete.
5420 (gt_ggc_mp_align_stack): New.
5421 (init_pragma): Use canonical name for mark_align_stack.
5422 * c-decl.c: Include gt-c-decl.h.
5423 (struct binding_level): Use gengtype.
5424 (make_binding_level): Use GGC; handle the freelist here.
5425 (pop_binding_level): New.
5426 (pushlevel): Move code into make_binding_level.
5427 (push_label_level): Likewise.
5428 (poplevel): Move code into pop_binding_level.
5429 (pop_label_level): Likewise.
5430 (mark_binding_level): Delete.
5431 (gt_ggc_mp_binding_level): New.
5432 (c_init_decl_processing): Use canonical name for mark_binding_level.
5433 Add free_binding_level as deletable root.
5434 (mark_c_function_context): Use canonical name for mark_binding_level.
5435 * Makefile.in (c-decl.o): Add gt-c-decl.h.
5436 (c-pragma.o): Add gt-c-pragma.h.
5437 (GTFILES): Add c-decl.c and c-pragma.c.
5438 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5440 * tree.c (struct type_hash): Use gengtype.
5441 (init_obstacks): Use canonical name for type_hash_mark.
5442 (type_hash_mark): Delete.
5444 * rtl.h (struct mem_attrs): Use gengtype.
5445 * optabs.h (struct optab): Use gengtype.
5446 * optabs.c (expand_binop): Squish signed/unsigned warning.
5447 (mark_optab): Make local, use canonical name, use autogenerated
5449 (init_optabs): Use canonical name for mark_optab.
5450 (new_optab): Use GGC to allocate optabs.
5451 * ggc.h: Delete mark_optab prototype.
5452 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5453 mem_attrs marker procedure.
5454 * gengtype.c (get_output_file): Include headers in gtype-desc.c
5455 explicitly rather than deducing them from file names.
5456 (write_gc_structure_fields): Handle arrays of structures.
5457 (main): Return non-zero exit code if errors occur during output.
5458 * emit-rtl.c (mem_attrs_mark): Delete.
5459 (init_emit_once): Use canonical name for mem_attrs marker procedure.
5460 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5461 (tree.o): Depend on gt-tree.h.
5462 (GTFILES): Add rtl.h, optabs.h, tree.c.
5463 (gt-tree.h): Add it to s-gtype rule.
5465 * .cvsignore: Ignore gengtype flex/bison generated files.
5466 * Makefile.in (GGC_H): Add gtype-desc.h.
5467 (OBJS): Add gtype-desc.o.
5468 (GEN): Add gengtype.
5469 (STAGESTUFF): Add gengtype.
5470 (varasm.o): Add gt-varasm.h.
5471 (stmt.o): Add gt-stmt.h.
5472 (except.o): Add gt-except.h.
5473 (integrate.o): Add gt-integrate.h.
5475 Add new rules for new files.
5476 * configure: Regenerate.
5477 * configure.in: Correct defaults.h paths.
5478 * emit-rtl.c (mark_sequence_stack): Delete.
5479 (mark_emit_status): Delete.
5480 (start_sequence): Allocate sequence structures using GGC.
5481 (end_sequence): Allocate sequence structures using GGC.
5482 * except.c: Use gengtype for various structures. Include
5484 * expr.c (mark_expr_status): Delete.
5485 * function.c: Use gengtype for various structures. Include
5487 (mark_function_status): Use standard gt_ggc names for marker functions.
5488 (ggc_mark_struct_function): Likewise.
5489 * function.h: Use gengtype for various structures.
5490 * gengtype-lex.l: New file.
5491 * gengtype-yacc.y: New file.
5492 * gengtype.c: New file.
5493 * gengtype.h: New file.
5494 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
5495 the standard names. Remove some now-unnecessary prototypes.
5496 * integrate.c: Use gengtype for various structures. Include
5498 (mark_hard_reg_initial_vals): Delete.
5499 * integrate.h (mark_hard_reg_initial_vals): Delete.
5500 * stmt.c: Use gengtype for various structures. Include
5502 (mark_case_node): Delete.
5503 (mark_goto_fixup): Delete.
5504 (mark_stmt_status): Use standard gt_ggc names for marker functions.
5505 * system.h: Define GTY to empty. In flex/bison files,
5506 don't poison malloc or realloc, instead just define them to
5507 xmalloc and xrealloc.
5508 * varasm.c: Use gengtype for various structures. Include
5509 gt-varasm.h. Use standard gt_ggc names for marker functions.
5510 (mark_pool_constant): Delete.
5511 (mark_varasm_status): Delete.
5512 (decode_rtx_const): #if 0 out non-typesafe hack.
5514 * function.h (free_lang_status): Mark as obsolete.
5515 * function.c (free_lang_status): Mark as obsolete.
5516 * c-decl.c (push_c_function_context): Use GC to allocate and free
5517 struct language_function.
5518 (pop_c_function_context): Likewise.
5519 * c-common.c (mark_c_language_function): Mark struct
5522 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5523 Document that the machine_function structures must be allocated
5524 using GC. Update mark_machine_status documentation.
5525 * function.h: Don't declare free_machine_status.
5526 * function.c (free_machine_status): Don't define.
5527 (free_after_compilation): Don't call free_machine_status.
5528 (ggc_mark_struct_function): Mark f->machine. Call
5529 mark_machine_status only on non-NULL pointers.
5530 * system.h: Poison free_machine_status.
5531 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5532 struct machine_function.
5533 (xtensa_free_machine_status): Delete.
5534 (override_options): Don't set free_machine_status.
5535 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5536 free_machine_status.
5537 (rs6000_init_machine_status): Use GC on struct machine_function.
5538 (rs6000_free_machine_status): Delete.
5539 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5541 (ia64_mark_machine_status): Likewise.
5542 (ia64_free_machine_status): Delete.
5543 (ia64_override_options): Don't set free_machine_status.
5544 * config/i386/i386.c (override_options): Don't set
5545 free_machine_status.
5546 (ix86_init_machine_status): Use GC on struct machine_function.
5547 (ix86_mark_machine_status): Likewise.
5548 (ix86_free_machine_status): Delete.
5549 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5551 (d30v_mark_machine_status): Likewise.
5552 (d30v_free_machine_status): Delete.
5553 (d30v_init_expanders): Don't set free_machine_status.
5554 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5556 (arm_init_machine_status): Likewise.
5557 (arm_free_machine_status): Delete.
5558 (arm_init_expanders): Don't set free_machine_status.
5559 * config/alpha/alpha.c (override_options): Don't set
5560 free_machine_status.
5561 (alpha_init_machine_status): Use GC on struct machine_function.
5562 (alpha_mark_machine_status): Likewise.
5563 (alpha_free_machine_status): Delete.
5565 * varasm.c (compare_constant): Fix typo.
5567 * varasm.c: Don't include obstack.h.
5568 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5569 (struct rtx_const): Give substructures names, improve formatting.
5570 (struct constant_descriptor): Delete.
5571 (struct constant_descriptor_tree): New, based on constant_descriptor.
5572 (const_hash_table): Is a hash table of trees.
5573 (mark_const_hash_entry): Is used for hashes of trees. Mark
5574 constant_descriptor_tree structure.
5575 (mark_const_str_htab_1): Mark deferred_string structure.
5576 (compare_constant): Rewrite to compare trees.
5577 (compare_constant_1): Delete.
5578 (record_constant): Delete.
5579 (record_constant_1): Delete.
5580 (output_constant_def): Use struct constant_descriptor_tree.
5581 Don't duplicate trees twice.
5582 (struct constant_descriptor_rtx): New.
5583 (struct pool_constant): Used for rtx constants.
5584 (init_varasm_status): Update for change to struct varasm_status.
5585 (mark_varasm_status): Likewise.
5586 (free_varasm_status): Delete.
5587 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5588 (record_constant_rtx): Likewise.
5589 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5590 (force_const_mem): Likewise.
5591 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5592 * function.c (free_after_compilation): Don't use free_varasm_status.
5593 * function.h: Don't prototype free_varasm_status.
5595 * ggc-common.c (ggc_realloc): Handle X being NULL.
5597 * ggc-common.c (ggc_realloc): New function.
5598 * ggc.h: Prototype it.
5599 * emit-rtl.c (free_emit_status): Delete.
5600 (init_emit): Allocate emit subarrays using GC.
5601 (gen_reg_rtx): Reallocate subarrays using GC.
5602 (init_emit): Use GC to allocate 'struct emit_status' and its
5604 (mark_emit_status): Mark structure and its subarrays.
5605 * stmt.c (free_stmt_status): Delete.
5606 * expr.c (free_expr_status): Delete.
5607 * function.h: Remove prototypes for deleted functions.
5608 * function.c (free_after_compilation): Don't use deleted functions.
5609 Don't call free() on x_parm_reg_stack_loc.
5610 (free_after_parsing): Don't use free_stmt_status.
5611 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5612 (mark_function_status): Mark x_parm_reg_stack_loc.
5614 * varasm.c (init_varasm_status): Use GC to allocate
5615 'struct varasm_status' and its fields x_const_rtx_hash_table
5616 and x_const_rtx_sym_hash_table.
5617 (mark_varasm_status): Mark them.
5618 (free_varasm_status): Use GC to free them.
5619 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5620 (mark_expr_status): Mark the structure itself.
5621 (free_expr_status): Use GC to free the structure.
5622 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5623 (mark_stmt_status): Mark the 'struct stmt_status' itself.
5624 (init_stmt_for_function): Allocate the structure for GC.
5626 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5627 (equate_type_number_to_die): Likewise.
5628 * tree.h (TYPE_SYMTAB_DIE): New macro.
5629 (struct die_struct): Predeclare.
5630 (struct tree_type): Add field symtab.die. Add a tag
5631 to the union type of field symtab.
5633 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5634 'struct rtvec_def *', not 'struct rtvec_def'.
5636 * function.h (original_arg_vector): Make a real rtvec.
5637 * function.c (ggc_mark_struct_function): Adjust.
5638 * integrate.c (expand_inline_function): Adjust.
5640 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5642 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5643 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5644 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5645 (TARGET_VERSION_CPU): Define according to the
5647 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5649 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5650 if TARGET_SHMEDIA64.
5651 (LINK_DEFAULT_CPU_EMUL): Define according to the
5653 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5654 (SUBTARGET_LINK_SPEC): Define.
5655 (LINK_SPEC): Use SH_LINK_SPEC.
5657 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5658 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5659 and TARGET_SHMEDIA64 which abort, for now.
5660 * config/sh/t-netbsd-sh5: New file.
5661 * config/sh/t-netbsd-sh5-32: New file.
5662 * config/sh/t-netbsd-sh5-64: New file.
5664 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5665 Richard Henderson <rth@redhat.com>
5667 * config/alpha/alpha.c (reg_or_const_int_operand): New.
5668 (some_operand, input_operand): Accept CONST_VECTOR.
5669 (alpha_extra_constraint): Add 'W'.
5670 (alpha_expand_zap_mask): New.
5671 (alpha_expand_builtin_vector_binop): New.
5672 (enum alpha_builtin): New.
5673 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5674 (alpha_init_builtins, alpha_expand_builtin): New.
5675 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5676 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5677 (PREDICATE_CODES): Update.
5678 * config/alpha/alpha-protos.h: Update.
5679 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5680 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5681 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5682 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5683 (movv2si, movv2si_fix, movv2si_nofix): New.
5684 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5685 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5686 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5687 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5688 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5689 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5690 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5691 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5692 builtin_unpkbw, unpkbw): New.
5693 * doc/extend.texi (Alpha Built-in Functions): New.
5695 2002-06-03 Richard Henderson <rth@redhat.com>
5697 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5698 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5700 2002-06-03 Richard Henderson <rth@redhat.com>
5702 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5704 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5705 (const0_operand): New.
5706 (reg_or_fp0_operand, fp0_operand): Remove.
5707 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5708 * config/alpha/alpha-protos.h: Update.
5709 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5710 and fp0_operand with reg_or_0_operand and const0_operand.
5712 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5714 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5716 2002-06-03 Roger Sayle <roger@eyesopen.com>
5718 * gcse.c (cprop_jump): Use single_set to get the pattern
5719 from the setcc argument.
5721 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
5723 * diagnostic.h (diagnostic_count): Move from output_buffer to
5725 (diagnostic_kind_count): Adjust definition.
5727 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
5729 * except.c (except.c): Do not rebuild CFG.
5730 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5733 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5735 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5736 * toplev.c: Include cfglahout.h
5737 * Makefile.in (toplev.c): Add dependnecy.
5739 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
5741 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5742 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5743 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5745 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5747 * config/ns32k/netbsd.h: Update copyright years.
5748 (TARGET_OS_CPP_BUILTINS): Define.
5749 (CPP_PREDEFINES): Remove.
5750 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5751 (TARGET_CPU_CPP_BUILTINS): Define.
5753 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5755 * emit-rtl.c: Fix formatting.
5756 * errors.h: Likewise.
5757 * except.c: Likewise.
5758 * explow.c: Likewise.
5759 * expmed.c: Likewise.
5763 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5765 * config/h8300/elf.h: Fix formatting.
5766 * config/h8300/rtems.h: Likewise.
5768 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5770 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5772 2002-06-02 Tom Tromey <tromey@redhat.com>
5774 * fixinc/fixincl.x: Rebuilt.
5775 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5777 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5780 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5781 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
5785 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
5787 * final.c (final): Allow notes to not have computed addresses;
5788 kill no longer needed STACK_REGS ifdef.
5790 2002-06-02 Richard Henderson <rth@redhat.com>
5792 * gcse.c (bypass_conditional_jumps): Fix typo last change.
5794 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5796 * loop.c (emit_prefetch_instructions): Properly place the address
5799 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
5801 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
5802 (set_block_for_insn): Turn into macro.
5803 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
5804 * cfglayout.c (insn_scopes): Kill.
5805 (scope_to_insns_initialize): Do not use insn_scopes.
5806 (scope_to_insns_finalize): Likewise.
5807 (duplicate_insn_chain): Likewise.
5808 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
5809 * cfgrtl.c (basic_block_for_insn): Kill.
5810 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
5811 (create_basic_block_structure): Use reorder_insns.
5812 (compute_bb_for_insn): Do not use basic_block_for_insn.
5813 (merge_blocks_nomove): Likewise.
5814 (update_bb_for_insn): Likewise.
5815 (verify_flow_info): Likewise.
5816 (set_block_for_insn): Kill.
5817 * combine.c (try_combine): Update gen_rtx_INSN call.
5818 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
5819 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
5821 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
5822 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
5824 (emit_insns_after): Simplify.
5825 (emit_copy_of_insn_after): Copy scope.
5826 * final.c (final_start_function): Lower scopes.
5827 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
5828 * integrate.c (copy_insn_list): Cope scopes.
5829 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
5830 * loop.c (loop_optimize): Do not care block notes.
5831 * print-rtl.c (print_rtx): Print BB.
5832 * recog.c (apply_change_group): Simplify.
5833 * rtl.c (copy_rtx): Handle 'B'.
5834 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
5835 * rtl.h (Field accessors): Update indexes.
5836 * sched-ebb.c (schedule_ebbs): Do not lower notes.
5837 * sched-rgn.c (schedule_insns): Likewise.
5838 * toplev.c (rest_of_compilation): Lower notes.
5839 * unroll.c (unroll_loop): Do not care scoping notes.
5840 (copy_loop_body): Copy scopes.
5842 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5845 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5847 * rtems.h: Similarly.
5848 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
5849 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
5850 (TARGET_CPU_CPP_BUILTINS): Use.
5852 2002-06-02 Richard Henderson <rth@redhat.com>
5854 * alias.c: Include target.h.
5855 (mark_constant_function): Use targetm.binds_local_p instead
5856 of checking TREE_PUBLIC ourselves.
5857 * Makefile.in (alias.o): Add TARGET_H.
5859 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5861 * c-lex.c: Update copyright and file description.
5863 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5865 * config/fr30/fr30.h: Update to new CPP macros.
5867 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5869 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
5871 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5872 Zack Weinberg <zack@codesourcery.com>
5874 * c-common.c (c_common_init): Override cpplib's default
5875 warn_long_long setting.
5876 * c-lex.c (lex_number): Replace with interpret_integer,
5877 interpret_float, narrowest_unsigned_type and
5878 narrowest_signed_type, taking advantage of the new
5879 cpplib functionality.
5880 * cpperror.c (_cpp_begin_message): If a warning is turned
5881 into an error, avoid printing "warning:".
5882 * cppexp.c (cpp_num_sign_extend): New.
5883 * cppinit.c: Update comment.
5884 * cpplib.h (cpp_num_sign_extend): New.
5885 * tree.h: Update comment.
5887 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
5889 * diagnostic.h (struct diagnostic_context): Add new member
5891 (internal_error_function): Remove declaration.
5892 * diagnostic.c (internal_error_function): Remove definition..
5893 (internal_error): Adjust use.
5895 2002-06-02 Richard Henderson <rth@redhat.com>
5897 * rtl.h (CC0_P): New.
5898 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
5899 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
5900 (bypass_block): Save old dest block for dump text.
5901 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
5902 Allow only true SET insns, not single_set.
5904 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
5906 * diagnostic.c (diagnostic_finish): Rename to output_flush.
5907 (clear_disgnostic_info): Rename to output_clear_data. Use false
5908 instead of 0 for boolean value.
5909 Adjust function call throughout.
5911 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5913 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
5914 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
5916 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5918 * d30v.h (CPP_PREDEFINES): Replace with
5919 (TARGET_CPU_CPP_BUILTINS): New.
5921 2002-06-02 Roger Sayle <roger@eyesopen.com>
5923 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
5925 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
5927 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
5929 2002-06-02 Richard Henderson <rth@redhat.com>
5931 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
5933 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
5935 Support for C++ constructors/destructors.
5936 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
5937 instead of looping if main() returns.
5938 (asm_file_start): Output global symbols that cause .data and .bss
5939 initialization code to be linked in, unconditionally for now.
5940 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
5941 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
5942 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5944 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
5945 (__tablejump__): New.
5946 (__do_copy_data, __do_clear_bss): New.
5947 (__do_global_ctors, __do_global_dtors): New.
5948 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
5951 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5953 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
5954 (CPP_SPEC, CPP_PREDEFINES): Kill.
5955 * c4x/rtems.h (CPP_PREDEFINES): Kill.
5956 (TARGET_OS_CPP_BUILTINS): New.
5958 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
5960 * Makefile.in (tracer.o): New.
5961 * params.def (TRACER_*): New options.
5962 * rtl.h (tracer): Declare.
5963 * timevar.def (TV_TRACER): New.
5964 * toplev.c (dump_file_index): Add DFI_tracer.
5965 (dump_file_info): Add tracer.
5967 (lang_indepdenent_options): Add tracer.
5968 (rest_of_compilation): Call tracer.
5969 * tracer.c: New file.
5970 * invoke.texi (-ftracer): Document.
5971 (--param tracer-*): Document.
5973 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
5975 * tree-inline.c (expand_call_inline): Make the statement
5976 expression we generate have a COMPOUND_STMT.
5978 2002-06-01 Roger Sayle <roger@eyesopen.com>
5980 * gcse.c (cprop_cc0_jump): Function deleted.
5981 (cprop_jump): Take an additional argument which is the possibly
5982 NULL cc setting insn immediately before the conditional jump.
5983 When a MODE_CC set is present, substitute it into the JUMP_INSN
5984 before attempting the constant propagation.
5985 (cprop_insn): Recognize cc setters followed by conditional jumps
5986 as a special case. Use cprop_jump instead of cprop_cc0_jump.
5987 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
5988 (find_bypass_set): New function based upon find_avail_set used by
5989 cprop, but finds constant expressions available at the end of
5991 (bypass_block): New function. Given a basic block that begins
5992 with a conditional jump and multiple incoming edges, perform
5993 the jump bypass optimization.
5994 (bypass_conditional_jumps): New function. Call bypass_block with
5995 each suitable basic block in the CFG using a simple single pass.
5997 2002-06-01 Roger Sayle <roger@eyesopen.com>
5999 * tree.c (real_minus_onep): New function to test for -1.0.
6000 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
6002 2002-06-01 Roger Sayle <roger@eyesopen.com>
6004 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
6005 and "!p && !q" into "(p|q) == 0" under suitable conditions.
6007 2002-06-01 Andreas Jaeger <aj@suse.de>
6009 * cppexp.c (cpp_classify_number): Cast precission to int for
6010 correct printf format.
6012 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
6014 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
6015 expected, but don't really exist: atmega83, atmega85, attiny10.
6016 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
6017 emulations for all devices.
6018 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
6019 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
6021 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
6023 * config/h8300/h8300-protos.h: Add a prototype for
6024 h8300_shift_needs_scratch_p.
6025 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
6026 * config/h8300/h8300.h (OK_FOR_R): New.
6027 (OK_FOR_S): Likewise.
6028 (OK_FOR_T): Likewise.
6029 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
6030 * config/h8300/h8300.md (anonymous shift patterns): Use
6031 constraints R, S, and T.
6033 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6035 * basic-block.h (struct basic_block_def): New field loop_father.
6036 (BB_VISITED): New flag.
6037 (struct loop): New field pred, removed field shared.
6038 (struct loops): New field parray.
6039 (LOOP_EXITS_DOMS): Removed.
6040 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
6041 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
6042 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
6043 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
6044 verify_loop_structure): Declare.
6045 * cfg.c (entry_exit_blocks): Initialize loop_father field.
6046 * cfganal.c (dfs_enumerate_from): New function.
6047 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
6048 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6049 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
6050 flow_loop_dump, flow_loops_dump, flow_loops_free,
6051 flow_loop_tree_node_add, flow_loop_level_compute,
6052 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
6053 flow_loop_outside_edge_p): Modified for new infrastructure.
6054 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
6055 redirect_edge_with_latch_update, flow_loop_free): New static functions.
6056 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
6057 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
6058 find_common_loop, verify_loop_structure, loop_latch_edge,
6059 loop_preheader_edge): New functions.
6060 (flow_loops_cfg_dump): Do not show dominators, as this information
6061 does not remain up to date long.
6062 (flow_loops_find): Store results in new format.
6063 * predict.c (propagate_freq, estimate_probability,
6064 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
6067 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
6069 * except.c (nothrow_function_p): Walk epilogue delay list
6070 checking the insn, not the chain for potential throws.
6072 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6074 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
6075 (install): Refer to install-cpp directly.
6076 (uninstall-cpp): Folded into uninstall rule.
6077 * configure.in: Delete all code relating to --disable-cpp.
6078 * configure: Regenerate.
6079 * config/t-install-cpp: Delete.
6081 2002-05-31 Richard Henderson <rth@redhat.com>
6083 * configure.in (HAVE_AS_TLS): Add alpha tests.
6084 * configure: Rebuild.
6085 * config/alpha/alpha.c (TARGET_AS_TLS): New.
6086 (alpha_tls_size, alpha_tls_size_string): New.
6087 (overide_options): Set it. Always install machine_status hooks.
6088 (input_operand): Accept got tls predicates.
6089 (local_symbol_p): Merge into ...
6090 (local_symbolic_operand): ... here. Reject tls symbols.
6091 (global_symbolic_operand): Likewise.
6092 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
6093 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
6094 (tp16_symbolic_operand, tp32_symbolic_operand): New.
6095 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
6096 (alpha_encode_section_info): Handle TLS symbols.
6097 (alpha_strip_name_encoding): Likewise.
6098 (alpha_legitimate_address_p): Likewise.
6099 (alpha_legitimize_address): Likewise.
6100 (alpha_expand_mov): Early exit to avoid nop moves.
6101 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
6102 (alpha_init_machine_status, alpha_mark_machine_status,
6103 alpha_free_machine_status): Always define.
6104 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
6105 (print_operand, print_operand_address): Add TLS relocs.
6106 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
6107 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
6108 (TARGET_SWITCHES): Add -mtls-kernel.
6109 (alpha_tls_size, alpha_tls_size_string): New.
6110 (TARGET_OPTIONS): Add -mtls-size=.
6111 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
6112 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
6113 (ASM_OUTPUT_LABELREF): Skip %.
6114 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
6115 (PREDICATE_CODES): Update.
6116 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
6117 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
6118 UNSPEC_TP, UNSPECV_SET_TP): New.
6119 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
6120 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
6121 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
6122 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
6123 (call_value_osf_2_er): Accept anything as op4.
6124 * config/alpha/alpha-protos.h: Update.
6125 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
6127 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6129 * cppinit.c (append_include_chain): Always pay attention to
6130 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
6133 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
6135 * target.h: Fix formatting.
6136 * timevar.h: Likewise.
6137 * tlink.c: Likewise.
6138 * toplev.c: Likewise.
6139 * toplev.h: Likewise.
6141 * tree-dump.h: Likewise.
6143 * tree-inline.h: Likewise.
6144 * unroll.c: Likewise.
6145 * unwind-dw2.c: Likewise.
6146 * unwind-dw2-fde.c: Likewise.
6147 * unwind-dw2-fde-glibc.c: Likewise.
6148 * unwind-dw2-fde.h: Likewise.
6149 * unwind.h: Likewise.
6150 * unwind-sjlj.c: Likewise.
6151 * varasm.c: Likewise.
6152 * varray.h: Likewise.
6153 * vmsdbg.h: Likewise.
6154 * vmsdbgout.c: Likewise.
6155 * xcoffout.h: Likewise.
6157 2002-05-31 Igor Shevlyakov <igor@microunity.com>
6159 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
6160 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
6162 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
6164 * gcc.c (cpp_unique_options): Remove "-d" options.
6165 (cpp_debug_options): New spec string.
6166 (default_compilers): Use it.
6167 * objc/lang-specs.h: Likewise.
6169 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
6171 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
6172 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
6173 * gcc/mklibgcc.in: Likewise.
6174 * gcc/config/arc/t-arc: Likewise.
6175 * gcc/configure.in: Likewise.
6176 * gcc/configure: Regenerate.
6178 2002-05-31 Stan Shebs <shebs@apple.com>
6179 Turly O'Connor <turly@apple.com>
6181 * c-decl.c (struct binding_level): Change int field n_incomplete
6182 to tree list incomplete_list.
6183 (clear_binding_level): Init field with NULL.
6184 (pushdecl): Add incomplete type to list.
6185 (mark_binding_level): Mark the incomplete list.
6186 (finish_struct): Scan the incomplete list for types instead
6187 of all decls in the current binding level.
6189 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6191 * pa.c (output_millicode_call): Add missing '%' characters.
6192 (output_call): Likewise.
6194 2002-05-31 David Edelsohn <edelsohn@gnu.org>
6196 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
6197 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6199 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
6201 * varasm.c (mark_constant_pool): Walk epilogue delay list
6202 checking the insn, not the chain for potential constants.
6204 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
6206 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
6208 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
6210 * i386.c (classify_argument): Properly handle base types.
6212 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
6213 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
6216 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6218 * gcse.c (gcse_emit_move_after): New.
6219 (pre_delete, hoist_store): Use it.
6221 * reload1.c (emit_input_reload_insns): Use constrain_operands
6222 instead of constraint_accepts_reg_p to verify optimization.
6223 (constraint_accepts_reg_p): Kill
6225 * reload1.c (reload_cse_delete_noop_set): Kill.
6226 (reload_cse_simplify): use delte_insn_and_edges.
6228 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6230 * cfgloop.c (flow_loops_find): Initialize first and last fields
6233 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
6235 * c-common.c (builtin_define_std): Correct logic.
6237 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6239 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
6240 (output_call): Likewise.
6242 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6244 * pa.c: Move output.h include after tree.h include.
6245 (pa_asm_output_mi_thunk): Constify identifier lab.
6247 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6249 * config/ns32k/ns32k.h: Define named constants for the
6250 bits in target_flags and use them.
6251 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
6253 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6255 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
6256 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
6257 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
6258 default scheduling model.
6259 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
6260 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
6261 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
6262 * doc/install.texi (hppa*-*-*): Document default scheduling.
6264 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6266 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
6268 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6270 * config.gcc (ns32k-*-netbsd*): Set tm_file to
6271 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
6272 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
6273 netbsd.h, or netbsd-aout.h.
6275 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6277 * longlong.h (count_trailing_zeros): Add missing \, and clean up
6278 whitespace in __ns32000__ case.
6280 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
6282 * expr.c (expand_expr): Output partially zeroed out vectors with
6283 output_constant_def.
6285 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6287 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
6289 (shl*-*-netbsdelf*): New targets.
6290 * config/sh/netbsd-elf.h: New file.
6291 * config/sh/t-netbsd: New file.
6293 2002-05-30 Richard Henderson <rth@redhat.com>
6294 Eric Botcazou <ebotcazou@multimania.com>
6296 PR optimization/6822
6297 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
6298 to unsigned int for op1 comparisons. Use gen_int_mode.
6300 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
6302 * expmed.c (const_mult_add_overflow_p): New.
6303 * expr.h: Declare it.
6304 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
6305 Don't eliminate the biv if the giv has a constant multiplier and
6306 the rhs argument of the comparison does satisfy the predicate.
6307 Use expand_mult_add to compute the replacement constant.
6309 2002-05-30 Osku Salerma <osku@iki.fi>
6311 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
6312 (c_common_get_alias_set): Handle it.
6313 * doc/extend.texi: Document it.
6315 2002-05-30 Richard Henderson <rth@redhat.com>
6317 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6318 * toplev.c (process_options): Don't check it.
6319 * doc/tm.texi: Don't document it.
6320 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
6321 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6322 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
6323 frame pointer optimization if current_function_profile.
6325 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
6327 * langhooks.c: Fix formatting.
6328 * langhooks.h: Likewise.
6330 * libgcc2.c: Likewise.
6331 * lists.c: Likewise.
6332 * local-alloc.c: Likewise.
6336 2002-05-30 Marc Espie <espie@openbsd.org>
6338 * config.gcc (sparc64-*-openbsd*): New.
6339 * config/sparc/openbsd1-64.h: New.
6340 * config/sparc/openbsd64.h: New.
6342 2002-05-30 Jeff Law <law@redhat.com>
6344 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
6345 a dead insn with a REG_RETVAL note when the entire libcall is not
6346 dead and remove the associated REG_LIBCALL note at the same time.
6348 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
6350 * lcm.c (output.h): #include.
6351 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
6352 as an ordinary block.
6353 (optimize_mode_switching): Don't pretend that the exit block is
6354 an ordinary block, or handle sucessors of entry block specially.
6355 Instead, split edges from entry block and to exit block, and
6356 put a computing definition on the thus gained post-entry-block,
6357 and a need on the pre-exit-block.
6359 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6361 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
6362 * rtl.texi: Document 'B'
6364 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6366 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
6368 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
6370 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
6372 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6373 const0_rtx instead of NULL_RTX when in error.
6374 (altivec_expand_abs_builtin): Same.
6375 (rs6000_expand_binop_builtin): Same.
6376 (altivec_expand_predicate_builtin): Same.
6377 (altivec_expand_stv_builtin): Same.
6378 (rs6000_expand_ternop_builtin): Same.
6379 (altivec_expand_builtin): Same.
6381 2002-05-29 David S. Miller <davem@redhat.com>
6383 * rtl.h (clear_emit_caches): Delete.
6384 * integrate.c (output_inline_function): Don't call it.
6385 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6386 (clear_emit_caches): Delete definition.
6387 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6389 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
6391 * config/mmix/mmix.c: Include real.h.
6392 (mmix_constant_address_p): Remove redundant test before switch.
6394 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6396 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6397 only if not already defined.
6399 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6401 * config/h8300/h8300-protos.h: Remove prototypes for
6402 ok_for_bclr and small_power_of_two.
6403 * config/h8300/h8300.c (small_power_of_two): Remove.
6404 (ok_for_blcr): Likewise.
6405 (fix_bit_operand): Make WHAT deal with an integer instead of a
6406 constraint character.
6407 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6408 (CONST_OK_FOR_P): Likewise.
6409 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6410 CONST_OK_FOR_P any more.
6411 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6416 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6418 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6419 (CPP_PREDEFINES): Make sure this is undefined.
6420 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6421 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
6422 or -U__MIPSEB__ before defining one or the other. Instead,
6423 use %(subtarget_endian_default) if neither -EB nor -EL are
6425 (SUBTARGET_EXTRA_SPECS): Define.
6426 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
6429 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6431 * doc/md.texi (Patterns): Note pattern condition pitfall
6434 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
6436 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6437 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
6438 ternary operations from here...
6439 (rs6000_expand_builtin): ...to here.
6440 New argument expandedp.
6441 Change all instances of altivec_expand_binop_builtin to
6442 rs6000_expand_binop_builtin.
6443 (altivec_expand_unop_builtin): Rename to
6444 rs6000_expand_unop_builtin.
6445 (altivec_expand_binop_builtin): Rename to
6446 rs6000_expand_binop_builtin.
6447 (altivec_expand_ternop_builtin): Rename to
6448 rs6000_expand_ternop_builtin.
6450 2002-05-29 Richard Henderson <rth@redhat.com>
6452 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6453 (TARGET_BI_ARCH): Likewise.
6454 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6455 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6456 (TARGET_64BIT_DEFAULT): Default to 0.
6457 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6459 2002-05-29 Richard Henderson <rth@redhat.com>
6461 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6462 (get_pc_thunk_name): New.
6463 (output_set_got): Use it.
6464 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6465 into linkonce sections.
6467 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6469 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6470 (CPP_PREDEFINES): Make sure this is undefined.
6471 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6472 (CPP_SUBTARGET_SPEC): Don't provide different versions for
6473 default-32 and default-64. Just always use %(netbsd_cpp_spec).
6474 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6475 cpp_subtarget_spec64. Add netbsd_cpp_spec.
6476 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6477 (CPP_PREDEFINES): Make sure this is undefined.
6478 (SUBTARGET_EXTRA_SPECS): Define.
6479 (CPP_SPEC): Use %(netbsd_cpp_spec).
6481 2002-05-29 Jeff Law <law@redhat.com>
6483 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6485 * flow.c (propagate_one_insn): Do not remove a dead insn if it
6486 contains a REG_RETVAL note.
6488 * haifa-sched (sched_analyze): Remove another useless clearing
6489 of SCHED_GROUP_P I missed yesterday.
6491 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6492 * pa.c (pa_asm_output_mi_thunk): New function.
6493 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6495 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6496 Marek Michalkiewicz <marekm@amelek.gda.pl>
6498 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6499 (avr_asm_only_p): Make non-static.
6500 (enum avr_arch): Remove.
6501 (avr_arch_types): New.
6502 (avr_mcu_types): Update.
6503 (avr_override_options): Use avr_arch_types table instead of switch.
6504 * avr.h (CPP_PREDEFINES): Die.
6505 (avr_base_arch_macro, avr_extra_arch_macro): New.
6506 (TARGET_CPU_CPP_BUILTINS): New.
6507 (CPP_SPEC, EXTRA_SPECS): Simplify.
6508 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6509 CPP_AVR5_SPEC): Die.
6511 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6513 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6514 NETBSD_OS_CPP_BUILTINS_AOUT.
6515 (SUBTARGET_EXTRA_SPECS): Define.
6516 (CPP_SPEC): Use %(netbsd_cpp_spec).
6518 2002-05-29 Richard Henderson <rth@redhat.com>
6520 * config/i386/i386.c (ix86_output_function_epilogue): New.
6521 (TARGET_ASM_FUNCTION_EPILOGUE): New.
6522 (pic_label_name): Remove.
6523 (pic_labels_used): New.
6524 (ix86_asm_file_end): Emit one pc load stub for each register used.
6525 (output_set_got): Generate deep pc load to any register.
6526 (ix86_select_alt_pic_regnum): New.
6527 (ix86_save_reg): Don't save pic register if we can find a valid
6528 call-clobbered replacement.
6529 (ix86_expand_prologue): If we found a valid replacement, renumber
6530 pic_offset_table_rtx.
6531 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6532 pic_offset_table_rtx after reload.
6533 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6534 * config/i386/i386.md (set_got): Make insn, not expander.
6535 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6537 2002-05-29 Richard Henderson <rth@redhat.com>
6539 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6540 alignment for alloca.
6542 2002-05-29 Richard Henderson <rth@redhat.com>
6544 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6545 (print_operand_address): Only add rip for symbolic addresses
6546 for which we do not have another relocation type.
6548 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6550 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6551 (EXTRA_SPECS): Add netbsd_cpp_spec.
6552 (CPP_SPEC): Use %(netbsd_cpp_spec).
6553 (CPP_PREDEFINES): Remove.
6554 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6555 (EXTRA_SPECS): Define.
6556 (CPP_SPEC): Use %(netbsd_cpp_spec).
6557 (CPP_PREDEFINES): Remove.
6559 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6561 PR preprocessor/6844
6562 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6565 2002-05-29 Eric Christopher <echristo@redhat.com>
6567 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6568 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6570 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
6572 * config/fr30/fr30.md: Remove previous restriction on splits.
6573 Enforce conformance through gen_lowpart and cont_int_operand.
6574 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
6575 as the assembler does not support ".bss".
6577 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6579 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6580 (CPP_PREDEFINES): Remove.
6581 (SUBTARGET_EXTRA_SPECS): Define.
6582 (CPP_SPEC): Use %(netbsd_cpp_spec).
6583 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6584 (CPP_PREDEFINES): Remove.
6585 (SUBTARGET_EXTRA_SPECS): Define.
6586 (CPP_SPEC): Use %(netbsd_cpp_spec).
6587 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6588 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6589 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6590 Add netbsd_cpp_spec.
6591 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6593 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6594 Zack Weinberg <zack@codesourcery.com>
6596 * cppexp.c (cpp_num): Move to cpplib.h.
6597 (CPP_ERROR): Remove.
6598 (interpret_float_suffix, interpret_int_suffix): New.
6599 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6600 (cpp_classify_number, cpp_interpret_integer): New.
6601 (interpret_number): Remove.
6602 (eval_token): Update to use new routines.
6603 * cpphash.h (cpp_num_part): Move to cpplib.h.
6604 * cppinit.c (cpp_post_options): Set warn_long_long.
6605 * cpplib.h (struct cpp_options): Add warn_long_long.
6606 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6607 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6608 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6609 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6610 cpp_interpret_integer): New.
6612 2002-05-29 Joel Sherrill <joel@OARcorp.com>
6614 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6616 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6618 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6619 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6620 (CPP_SUBTARGET_SPEC): Define.
6621 (SUBTARGET_EXTRA_SPECS): Define.
6624 2002-05-29 Chris Lattner <sabre@nondot.org>
6626 * ssa.c (rename_insn_1): Rename uses of undefined registers to
6627 prevent confusion if/when the register is defined.
6629 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6632 * config/cris/cris.md: Fix typos and thinkos in comments.
6633 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6635 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6636 ("*mov_sideqi_mem"): Similar, but for operand 3.
6637 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6638 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6639 Remove spurious mode specifier on operand 2.
6641 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6643 * config/h8300/h8300-protos.h: Remove the prototype for
6645 Add prototypes for single_one_operand and single_zero_operand.
6646 * config/h8300/h8300.c (o_operand): Remove.
6647 (single_one_operand): New.
6648 (single_zero_operand): Likewise.
6649 (print_operand): For 'V' operand, and the operand with 0xff.
6650 For 'V' and 'W' operands, do not and the bit position with 7.
6651 * config/h8300/h8300.md (various anonymous patterns): Replace
6652 use of exact_log2 with single_one_operand/single_zero_operand.
6654 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6656 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6658 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6660 * config/s390/s390.c (legitimate_pic_operand_p): Do not
6661 accept symbolic LARL operands.
6662 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
6665 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
6667 * config/s390/s390.md (cmpstr_64/31): Mark whole
6668 input registers as used.
6670 2002-05-28 Richard Henderson <rth@redhat.com>
6672 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6673 not current_function_uses_pic_offset_table and
6674 current_function_uses_const_pool; examine current_function_profile.
6675 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
6676 input to blockage if needed.
6677 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6678 (legitimize_pic_address): Likewise. Set regs_ever_live for
6679 pic_offset_table_rtx when invoked during reload.
6680 * config/i386/i386.h (FINALIZE_PIC): Remove.
6681 * config/i386/i386.md (tablejump): Reformat. Do not set
6682 current_function_uses_pic_offset_table.
6683 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6684 (blockage): Accept anything as operand 0.
6686 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6688 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6689 common CPP built-ins for all NetBSD a.out targets.
6690 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6691 common CPP built-ins for all NetBSD ELF targets.
6692 * config/netbsd.h: Add missing notice.
6693 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6694 for all NetBSD targets.
6695 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6696 for all NetBSD targets using an LP64 code model.
6697 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6700 2002-05-28 Richard Henderson <rth@redhat.com>
6702 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6703 update if UPDATE_LIFE_LOCAL.
6705 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6707 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6709 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6710 Jason R. Thorpe <thorpej@wasabisystems.com>
6712 config/sh reorganization to factor out endianness and coff:
6714 * config/sh/little.h: New file.
6715 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6716 defined, define to 0 to select big-endian.
6717 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
6718 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6719 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6720 * config/sh/t-be: New file.
6721 * config/sh/t-le: New file.
6723 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6724 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6725 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6726 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6727 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6728 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6729 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6730 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6731 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6732 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6733 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6734 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6735 (LINK_SPEC): Define to SH_LINK_SPEC.
6736 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6737 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6738 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6739 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6740 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6741 * config/sh/coff.h: New file.
6742 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6743 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6744 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6745 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6746 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6747 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6748 (PTRDIFF_TYPE): Likewise.
6749 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6750 (CPP_PREDEFINES): Don't define.
6751 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6752 (LINK_SPEC): Define to SH_LINK_SPEC.
6753 (LINK_EMUL_PREFIX): Redefine.
6754 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6755 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6756 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6757 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6758 (TARGET_OS_CPP_BUILTINS): Define.
6759 (TARGET_DEFAULT): Redefine.
6760 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6761 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6762 (LINK_SPEC): Don't redefine.
6763 (LINK_DEFAULT_CPU_EMUL): Redefine.
6764 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6765 * sh.c (sh_asm_named_section): Don't declare / define.
6766 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6767 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6768 (sh64-*-elf* tm_file): Likewise.
6769 (sh-*-rtemself* tm_file): Likewise.
6770 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
6771 (sh-*-linux* tmake_file): Add sh/t-le.
6772 (sh-*-rtems* tm_file): Add sh/coff.h
6773 (sh-*-* tm_file): Likewise.
6775 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6777 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6778 CONSTANT_POOL_ADDRESS_P.
6780 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6782 2002-05-28 David Edelsohn <edelsohn@gnu.org>
6783 Jeff Law <law@redhat.com>
6785 * optabs.c (expand_binop): Fix nwords sign warnings.
6786 generate pseudo for add_optab.
6788 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
6789 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
6791 2002-05-28 Marc Espie <espie@openbsd.org>
6793 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
6794 inherited from gas.h.
6795 (ASM_QUAD): Undef. OpenBSD does not support it.
6797 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
6799 * doc/install.texi (binaries): Change mingw binaries
6800 link to www.mingw.org.
6802 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6804 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
6806 2002-05-28 Richard Henderson <rth@redhat.com>
6808 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
6809 bottom alignment for leaf functions.
6811 2002-05-28 Zack Weinberg <zack@codesourcery.com>
6813 * config/pa/milli32.S, config/pa/lib1funcs.asm,
6814 config/sparc/sol2-g1.asm: Delete unused files.
6816 2002-05-28 Richard Henderson <rth@redhat.com>
6818 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
6820 * flow.c (calculate_global_regs_live): Rename call_used to
6821 invalidated_by_call. Initialize from regs_invalidated_by_call
6822 instead of call_used_regs.
6824 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
6827 2002-05-28 Zack Weinberg <zack@codesourcery.com>
6829 * tree.h: Don't include real.h.
6830 Forward-declare struct realvaluetype.
6831 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
6833 (TREE_REAL_CST_PTR): New accessor.
6834 (TREE_REAL_CST): Update.
6835 * real.h: Include machmode.h.
6836 (realvaluetype): Make it struct realvaluetype, not a typedef.
6837 (build_real): Prototype here.
6839 * tree.c: Include real.h.
6840 (build_real): Allocate the REAL_VALUE_TYPE as a separate
6841 object in GC memory, set TREE_REAL_CST_PTR to point to it.
6842 (build_real_from_int_cst): Use build_real.
6843 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
6846 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
6847 fold-const.c, print-tree.c, real.c: Include real.h.
6848 * Makefile.in: Update dependency lists.
6850 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6852 * basic-block.h (last_basic_block): Declare.
6853 (expunge_block_nocompact): Declaration removed.
6854 (compact_blocks): Declare.
6855 * cfg.c (last_basic_block): New variable.
6856 (expunge_block_nocompact): Removed.
6857 (expunge_block): Do not compact basic blocks.
6858 (compact_blocks): New.
6859 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
6861 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
6863 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
6864 real positions of blocks.
6865 (delete_unreachable_blocks): Simplified -- quadratic behavior now
6867 (cleanup_cfg): Compact blocks.
6868 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
6869 basic_block_info varray.
6870 (flow_delete_block): Comment update.
6871 (back_edge_of_syntactic_loop_p): Modify position check code.
6872 (verify_flow_info): Update checking.
6873 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
6874 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6875 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
6876 indices no longer change.
6877 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
6879 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
6880 * profile.c (branch_prob): Compact blocks.
6881 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
6884 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
6886 * config/h8300/h8300.md (two anonymous patterns): New.
6888 2002-05-28 David S. Miller <davem@redhat.com>
6890 * config/sparc/sparc.md (cpu): Tidy.
6891 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
6893 (in_call_delay): Delete reference to 'return' type.
6894 (eligible_for_return_delay, in_return_delay, define_delay
6895 referencing those): Delete.
6896 (rest of file): Use new type attributes as appropriate.
6897 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
6898 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
6899 * config/sparc/ultra1_2.md (us1_single): New reservation.
6900 (us1_ialuX): Likewise.
6901 * config/sparc/ultra3.md (us3_single): Likewise.
6902 (us3_ialuX): Likewise.
6903 (us3_imul, us3_idiv): Tweak.
6905 2002-05-28 Richard Henderson <rth@redhat.com>
6907 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
6910 2002-05-28 Richard Henderson <rth@redhat.com>
6912 * config.gcc: Obsolete mn10200.
6914 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
6916 * cppexp.c (interpret_number): Optimize for single-digit
6917 and less-than-half-precision cases.
6918 (num_trim, num_positive, num_div_op): Cast constants.
6920 2002-05-27 Bo Thorsen <bo@suse.de>
6922 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
6923 3.1 branch. The file was made by Jakub Jelinek.
6924 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
6925 support so multilib doesn't break. And don't define this at all
6926 when -Dinhibit_libc is used.
6927 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
6928 * config/i386/t-linux64: Implement full multilib support. Patch
6929 originally done by Andreas Jaeger and Jakub Jelinek.
6931 2002-05-27 Roger Sayle <roger@eyesopen.com>
6933 * c-common.c: Add support for __attribute__((nothrow)) to specify
6934 that a function cannot throw an exception (using TREE_NOTHROW).
6935 (handle_nothrow_attribute): New function to process this attribute.
6937 * doc/extend.texi: Document the new nothrow function attribute.
6939 2002-05-27 H.J. Lu (hjl@gnu.org)
6941 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
6942 (num_positive): Likewise.
6943 (num_div_op): Likewise.
6945 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6947 * c-common.c (c_common_init): Always use intmax_t.
6949 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6951 * c-common.c (c_common_init): Use intmax_t for now.
6953 2002-05-24 Andrew Haley <aph@redhat.com>
6955 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
6956 if T is a boolean type.
6958 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6960 * basic-block.h (last_basic_block): Defined as synonym for
6962 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
6963 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6964 flow_dfs_compute_reverse_init): Replaced relevant occurences of
6965 n_basic_blocks with last_basic_block.
6966 * cfgbuild.c (make_edges): Likewise.
6967 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
6968 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
6969 * combine.c (combine_instructions): Likewise.
6970 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
6971 iterative_dataflow_bitmap): Likewise.
6972 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6973 calc_idoms, idoms_to_doms): Likewise.
6974 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
6976 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
6977 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
6978 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
6979 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
6980 delete_null_pointer_checks, compute_code_hoist_vbeinout,
6981 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6982 compute_store_table, build_store_vectors): Likewise.
6983 * haifa-sched.c (sched_init): Likewise.
6984 * ifcvt.c (if_convert): Likewise.
6985 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6986 pre_edge_lcm, compute_available, compute_nearerout,
6987 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
6989 * predict.c (estimate_probability, process_note_prediction,
6990 note_prediction_to_br_prob): Likewise.
6991 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
6992 * recog.c (split_all_insns, peephole2_optimize): Likewise.
6993 * regrename.c (copyprop_hardreg_forward): Likewise.
6994 * resource.c (init_resource_info): Likewise.
6995 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
6996 init_regions, schedule_insns): Likewise.
6997 * ssa-ccp.c (ssa_const_prop): Likewise.
6998 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6999 * ssa.c (compute_dominance_frontiers,
7000 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
7002 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
7003 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
7006 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
7008 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
7010 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
7011 hoist_insn_after, hoist_insn_to_edge): New.
7013 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
7015 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
7016 (PROP_FINAL): Include.
7017 * flow.c (life_analysis, update_life_info,
7018 init_propagate_block_info, mark_set_1, mark_used_rgs):
7019 Support SCAN_DEAD_STORE.
7021 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7023 * c-common.c (c_common_init): Set CPP arithmetic precision.
7024 * cppexp.c (cpp_num_part): Move typedef ...
7025 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
7026 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
7027 (sanity_checks): Update.
7029 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
7031 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
7032 (mkheaders): New rule.
7033 (install-mkheaders): New rule.
7034 * configure.in (all_outputs): Add mkheaders.
7035 * configure: Regenerate.
7036 * mkheaders.in: New file.
7038 2002-05-26 Jakub Jelinek <jakub@redhat.com>
7040 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
7042 2002-05-26 Andreas Jaeger <aj@suse.de>
7044 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
7046 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
7048 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
7049 right_shift): Remove.
7050 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
7052 (struct op): Use cpp_num.
7053 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
7054 num_part_mul, num_unary_op, num_binary_op, num_negate,
7055 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
7056 num_div_op, num_lshift, num_rshift, append_digit): New.
7057 (interpret_number, parse_defined, eval_token, reduce): Update
7058 for two-integer arithmetic.
7059 (binary_handler): New typedef.
7061 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
7062 (_cpp_parse_expr, reduce): Update to handle two-integers.
7063 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
7065 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7067 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
7068 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
7069 branch insn into account, do not assume 1.
7070 (avr_out_sbxx_branch): New function. Optimize cases of skipping
7071 over single word insn. Handle upper half of I/O space too.
7072 * config/avr/avr.md (*sbrx_branch): Use it.
7073 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
7074 (*sbix_branch, *sbix_branch_bit7): Likewise.
7075 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
7076 Use RTL peepholes to optimize register operand sign tests.
7078 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7080 * config/avr/avr.c (avr_asm_only_p): New variable.
7081 (avr_override_options): Set it here if AVR1.
7082 (asm_file_start): Test it here, report an error if set.
7084 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
7086 * alias.c: Fix formatting.
7087 * attribs.c: Likewise.
7088 * bb-reorder.c: Likewise.
7089 * bitmap.c: Likewise.
7090 * bitmap.h: Likewise.
7091 * builtins.c: Likewise.
7093 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
7095 * reload.c (find_valid_class): Accept new argument DEST,
7096 choose class accordingly.
7097 (push_reload): Update callers.
7099 2002-05-26 Andreas Jaeger <aj@suse.de>
7101 * combine.c (combine_instructions): Do not indent #if for
7104 2002-05-25 Richard Henderson <rth@redhat.com>
7106 * c-pragma.c (apply_pragma_weak): Convert value identifier to
7107 string for decl_attributes.
7108 (handle_pragma_weak): Call assemble_alias if we're modifying
7111 2002-05-25 Richard Henderson <rth@redhat.com>
7114 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
7115 using rtl instead of fprintf.
7116 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
7117 * config/sparc/sparc-protos.h: Update.
7119 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
7121 * Makefile.in (C_COMMON_H): Fix.
7122 Update other targets.
7123 * c-common.c: Don't include c-lex.h.
7124 (builtin_define_with_value): Make static and prototype.
7125 (builtin_define_std): Move from c-lex.h.
7126 * c-common.h (init_c_lex): Move from c-lex.h.
7127 * c-decl.c: Don't include c-lex.h.
7128 (make_pointer_declarator): Move from c-parse.in.
7129 * c-lex.c: Don't include c-lex.h.
7131 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
7132 (make_pointer_declarator): Move to c-decl.c.
7133 * c-pragma.c: Don't include c-lex.h.
7134 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
7135 * c-tree.h (make_pointer_declarator): New.
7137 * passes.texi, tm.texi: Update.
7139 * Make-lang.in: Update and correct.
7140 * objc-act.c: Don't include c-lex.h or cpplib.h.
7142 * treetree.c: Don't include c-lex.h.
7144 * darwin-c.c: Don't include c-lex.h.
7145 * c4x/c4x-c.c: Don't include c-lex.h.
7146 * c4x/t-c4x: Update.
7147 * i370/i370-c.c: Don't include c-lex.h.
7148 * i370/t-i370: Update.
7149 * i960/i960-c.c: Don't include c-lex.h.
7150 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
7151 * i960/t-960bare: Update.
7152 * i960/t-vxworks: Update.
7153 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
7154 * rs6000/t-darwin: Update.
7155 * rs6000/t-rs6000-c-rule: Update.
7156 * v850/v850-c.c: Don't include c-lex.h.
7157 * v850/v850.c: Don't include c-lex.h or cpplib.h.
7160 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7162 * tree.def: Fix typos.
7163 * doc/install.texi: Likewise.
7165 2002-05-25 Richard Henderson <rth@redhat.com>
7167 * configure.in (HAVE_AS_TLS): Add ia64 test.
7168 * configure: Rebuild.
7169 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
7170 (override_options): Set it.
7171 (TARGET_HAVE_TLS): New.
7172 (sdata_symbolic_operand): Look for 's'.
7173 (tls_symbolic_operand): New.
7174 (ia64_expand_load_address): Abort for tls symbols.
7175 (gen_tls_get_addr): New.
7176 (gen_thread_pointer): New.
7177 (ia64_expand_move): Split out from movdi. Handle tls symbols.
7178 (rtx_needs_barrier): Add new unspecs.
7179 (ia64_encode_section_info): Handle tls symbols.
7180 (ia64_strip_name_encoding): Strip two encoding chars.
7181 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
7182 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
7183 (TARGET_OPTIONS): Add tls-size.
7184 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
7185 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
7186 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
7187 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
7188 (movsf, movdf): Likewise.
7189 (movdi_symbolic): Use match_scratch. Don't split if we won't
7190 have a scratch availiable.
7191 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
7192 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
7193 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
7194 * config/ia64/ia64-protos.h: Update.
7195 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7196 sdata_symbolic_operand.
7197 (ASM_OUTPUT_LABELREF): Strip two characters.
7199 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7201 * combine.c (simplify_set): Remove an unnecessary subreg.
7203 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
7205 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
7207 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
7209 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7211 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
7213 2002-05-25 Roger Sayle <roger@eyesopen.com>
7215 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
7216 (cond (compare x y) 0) into the equivalent (cond x y).
7218 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7220 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
7222 2002-05-24 Zack Weinberg <zack@codesourcery.com>
7224 * config.gcc: Remove all stanzas for previously obsoleted
7225 systems. Where necessary, add explicit error stanzas to
7226 prevent removed systems from being misidentified as something
7227 else. Begin a fresh obsoletions list, with the systems that
7228 were reprieved last round.
7229 * doc/install.texi: Remove all mention of dead targets.
7230 * fixinc/mkfixinc.sh: Likewise.
7232 * config/arm/arm.h: Bit 31 of target_flags is no longer
7235 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
7236 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
7237 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
7238 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
7239 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
7240 config/alpha/osf12.h, config/alpha/osf2or3.h,
7241 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
7242 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
7243 config/clipper/clipper-protos.h, config/clipper/clipper.c,
7244 config/clipper/clipper.h, config/clipper/clipper.md,
7245 config/clipper/clix.h, config/convex/convex-protos.h,
7246 config/convex/convex.c, config/convex/convex.h,
7247 config/convex/convex.md, config/convex/fixinc.convex,
7248 config/convex/proto.h, config/elxsi/elxsi-protos.h,
7249 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
7250 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
7251 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
7252 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
7253 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
7254 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
7255 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
7256 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
7257 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
7258 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
7259 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
7260 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
7261 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
7262 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
7263 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
7264 config/m68k/altos3068.h, config/m68k/apollo68.h,
7265 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
7266 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
7267 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
7268 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
7269 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
7270 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
7271 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
7272 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
7273 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
7274 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
7275 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
7276 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
7277 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
7278 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
7279 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
7280 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
7281 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
7282 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
7283 config/mips/dec-osf1.h, config/mips/elflorion.h,
7284 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
7285 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
7286 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
7287 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
7288 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
7289 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
7290 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
7291 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
7292 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
7293 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
7294 config/ns32k/sequent.h, config/ns32k/tek6000.h,
7295 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
7296 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
7297 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
7298 config/sparc/rtems.h, config/we32k/we32k-protos.h,
7299 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
7302 2002-05-24 Richard Henderson <rth@redhat.com>
7304 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
7305 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
7306 * config/i386/i386.c (tls_model_chars): Add leading space.
7307 (tls_symbolic_operand): Don't bias by 1.
7308 (legitimize_address): Don't unbias by 1.
7310 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7312 * lcm.c (optimize_mode_switching): Change bb used as indices
7315 2002-05-24 Richard Henderson <rth@redhat.com>
7317 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
7318 of update_life_info_in_dirty_blocks.
7320 2002-05-24 Jakub Jelinek <jakub@redhat.com>
7323 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
7325 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
7327 PR preprocessor/6780
7328 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
7330 2002-05-24 Jim Blandy <jimb@redhat.com>
7332 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
7333 entry with a type code of zero, marking the end of the compilation
7336 2002-05-24 Richard Henderson <rth@redhat.com>
7338 * varasm.c (asm_output_bss): Always output one byte.
7339 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7341 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7343 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
7346 2002-05-24 Andreas Jaeger <aj@suse.de>
7348 * ggc-page.c (alloc_page): Cast variables of type size_t to
7349 unsigned long, adjust printf format string.
7350 (ggc_alloc): Likewise.
7351 (ggc_print_statistics): Likewise.
7352 (ggc_print_statistics): Correct printf format string for SCALE to
7355 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
7357 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
7359 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
7360 Zack Weinberg <zack@codesourcery.com>
7362 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
7364 * dwarf2out.c (lookup_filename): Properly quote filename in .file
7365 directive in assembly file.
7366 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7367 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7368 * config/pj/pj.h (ASM_FILE_START): Likewise.
7369 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7370 * config/avr/avr.c (asm_file_end): Likewise.
7371 * toplev.c (output_quoted_string): Handle possibly signed plain
7373 * toplev.h (output_clean_symbol_name): Declare
7374 * toplev.c (output_clean_symbol_name): Define.
7375 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7376 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7378 2002-05-24 Alan Modra <amodra@bigpond.net.au>
7380 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7382 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
7384 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7385 of size of unsigned.
7387 2002-05-23 Richard Henderson <rth@redhat.com>
7389 * configure.in (HAVE_AS_TLS): New test.
7390 * config.in, configure: Rebuild.
7391 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7392 (ix86_tls_dialect_string, ix86_tls_dialect): New.
7393 (override_options): Set it.
7394 (tls_model_chars, tls_symbolic_operand): New.
7395 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7396 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7397 (local_exec_symbolic_operand): New.
7398 (get_pic_label_name): Merge into output_set_got.
7399 (ix86_asm_file_end): Emit pic_label_name if defined.
7400 (legitimate_constant_p, constant_address_p): New.
7401 (legitimate_pic_operand_p): New.
7402 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7403 (legitimate_address_p): Likewise.
7404 (ix86_encode_section_info): Rename from i386_; handle tls decls.
7405 (ix86_strip_name_encoding): New.
7406 (get_thread_pointer): New.
7407 (legitimize_address): Handle tls symbols.
7408 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7410 (struct machine_function): Add some_ld_name.
7411 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7412 (print_operand) [&]: Use it. Handle UNSPEC_TP.
7413 (output_addr_const_extra): New.
7414 (maybe_get_pool_constant): New.
7415 (ix86_split_to_parts): Use it.
7416 (ix86_expand_move): Handle tls symbols.
7417 (ix86_tls_get_addr): New.
7418 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7419 (TARGET_OPTIONS): Add tls-dialect.
7420 (CONSTANT_ADDRESS_P): Use new out-of-line function.
7421 (LEGITIMATE_CONSTANT_P): Likewise.
7422 (LEGITIMATE_PIC_OPERAND_P): Likewise.
7423 (TARGET_STRIP_NAME_ENCODING): New.
7424 (ASM_OUTPUT_LABELREF): New.
7425 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7426 (OUTPUT_ADDR_CONST_EXTRA): New.
7427 (PREDICATE_CODES): Update.
7428 (ix86_tls_dialect, ix86_tls_dialect_string): New.
7429 * config/i386/i386.md: Regroup and renumber unspec constants.
7430 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7431 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7432 (tls_global_dynamic, tls_local_dynamic_base): New.
7433 (tls_local_dynamic_once): New.
7434 * config/i386/i386-protos.h: Update.
7436 2002-05-23 Richard Henderson <rth@redhat.com>
7438 * genemit.c (gen_insn): Print file:lineno comment before function.
7440 * gensupport.c (struct queue_elem): Add filename member.
7441 (queue_pattern): Initialize it; update all callers.
7442 (process_include): Don't free filename.
7443 (read_md_rtx): Set read_rtx_filename.
7445 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
7447 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7449 2002-05-23 Richard Henderson <rth@redhat.com>
7451 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7453 2002-05-23 Richard Henderson <rth@redhat.com>
7455 * doc/extend.texi (C++98 Thread-Local Edits): Update with
7456 commentary from Mark.
7458 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7460 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7461 Use FOR_EACH_BB macros to iterate over basic block chain.
7462 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7463 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7465 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7466 find_unreachable_blocks, create_edge_list, verify_edge_list,
7467 remove_fake_edges, add_noreturn_fake_exit_edges,
7468 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7470 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7471 find_sub_basic_blocks): Likewise.
7472 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7474 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7476 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7478 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7479 commit_edge_insertions, commit_edge_insertions_watch_calls,
7480 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7481 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7482 * conflict.c (conflict_graph_compute): Likewise.
7483 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7484 df_modified_p, df_refs_unlink, df_dump): Likewise.
7485 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7486 * final.c (compute_alignments): Likewise.
7487 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7488 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7489 count_or_remove_death_notes): Likewise.
7490 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7491 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7492 classic_gcse, compute_transp, cprop, compute_pre_data,
7493 compute_transpout, invalidate_nonnull_info,
7494 delete_null_pointer_checks_1, delete_null_pointer_checks,
7495 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7496 compute_store_table, build_store_vectors, store_motion): Likewise.
7497 * global.c (global_conflicts, mark_elimination): Likewise.
7498 * graph.c (print_rtl_graph_with_bb): Likewise.
7499 * haifa-sched.c (sched_init): Likewise.
7500 * ifcvt.c (if_convert): Likewise.
7501 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7502 compute_available, compute_nearerout, compute_rev_insert_delete,
7503 optimize_mode_switching): Likewise.
7504 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7505 * predict.c (estimate_probability, note_prediction_to_br_prob,
7506 propagate_freq, counts_to_freqs, expensive_function_p,
7507 estimate_bb_frequencies): Likewise.
7508 * profile.c (instrument_edges, get_exec_counts,
7509 compute_branch_probabilities, compute_checksum, branch_prob,
7510 find_spanning_tree): Likewise.
7511 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7512 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7514 * regclass.c (scan_one_insn, regclass): Likewise.
7515 * regmove.c (mark_flags_life_zones, regmove_optimize,
7516 record_stack_memrefs): Likewise.
7517 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7518 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7519 * resource.c (find_basic_block): Likewise.
7520 * sched-ebb.c (schedule_ebbs): Likewise.
7521 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7522 find_single_block_region, find_rgns, schedule_insns)
7523 * sibcall.c (optimize_sibling_and_tail_recursive_call)
7524 * ssa-ccp.c (optimize_unexecutable_edges,
7525 ssa_ccp_df_delete_unreachable_insns): Likewise.
7526 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7527 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7528 rename_block, convert_to_ssa, compute_conservative_reg_partition,
7529 compute_coalesced_reg_partition, rename_equivalent_regs,
7530 convert_from_ssa): Likewise.
7531 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7532 process_for_unwind_directive): Likewise.
7534 * df.c (FOR_ALL_BBS): Removed.
7535 * gcse.c (struct null_pointer_info): Type of current_block field
7537 (struct reg_avail_info): Type of last_bb field changed.
7538 * config/ia64/ia64.c (block_num): Removed.
7539 (need_copy_state): Type changed.
7542 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7544 * cppinit.c (mark_named_operators): Split out from init_builtins.
7545 (cpp_finish_options): Call it from here instead.
7547 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7549 * builtin-attrs.def: Update copyright years.
7550 (ATTR_NONNULL): New attribute identifier.
7551 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7552 attribute tree lists.
7553 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7555 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7556 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7557 attribute lists. Chain the appropriate nonnull attribute.
7558 * c-format.c (check_format_arg): Remove null format string
7560 * testsuite/gcc.dg/format/null-1.c: New test.
7562 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7564 * Makefile.in (ADAC): Define.
7566 (.SUFFIXES): Move before language makefile fragments.
7567 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7569 2002-05-23 Mark Mitchell <mark@codesourcery.com>
7571 * varasm.c (make_decl_rtl): Don't allow weak variables to be
7574 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7576 * cfg.c (dump_flow_info): Print results of
7577 maybe_hot/probably_never_executed predicates.
7578 * toplev.c (open_dump_file): Print function frequency.
7580 2002-05-23 David S. Miller <davem@redhat.com>
7582 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7585 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7587 * c-common.c (warn_nonnull): Declare.
7588 (c_common_attribute_table): Add "nonnull" attribute.
7589 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7590 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7591 check_function_arguments_recurse): New functions.
7592 * c-common.h (warn_nonnull): Declare extern.
7593 (check_function_arguments, check_function_arguments_recurse): New
7595 * c-decl.c (c_decode_option): Add -Wnonnull option.
7596 * c-format.c (set_Wformat): Set warn_nonnull if enabling
7598 (format_check_context): New structure.
7599 (check_format_info_recurse): Remove recursion and rename to...
7600 (check_format_arg): ...this. Update comment.
7601 (check_format_info): Use check_function_arguments_recurse.
7602 * c-typeck.c (build_function_call): Call check_function_arguments
7603 instead of check_function_format.
7604 * doc/extend.texi: Document "nonnull" attribute.
7605 * doc/invoke.texi: Docuemnt -Wnonnull option.
7606 * testsuite/gcc.dg/nonnull-1.c: New test.
7607 * testsuite/gcc.dg/nonnull-2.c: New test.
7609 2002-05-23 David S. Miller <davem@redhat.com>
7611 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7612 * cfgcleanup.c (cleanup_cfg): If it is set do not
7613 attempt to delete trivially dead insns.
7614 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7615 * toplev.c (rest_of_compilation): Document non-trivial aspect
7616 the RTL before optimize_save_area_alloca is run.
7618 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7620 * c-lex.c (indent_level): Remove.
7621 (cb_file_change, c_lex): Remove indent level handling.
7622 * c-lex.h (indent_level): Remove.
7623 * input.h (struct file_stack): Remove indent_level.
7624 * toplev.c (push_srcloc): Remove indent_level handling.
7626 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7629 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7630 of x in constraints for clarity.
7631 (sse_mov?fcc split): abort if op2 == op3.
7632 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7633 sse_movsfcc_const0_4): Add earlyclobber.
7634 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7635 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
7636 Use Y instead of x in constraints.
7638 2002-05-23 Richard Henderson <rth@redhat.com>
7640 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7641 (C++98 Thread-Local Edits): New subsection.
7643 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7644 (ix86_arch): Set type to enum processor_type.
7646 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
7647 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7649 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7651 * configure.in: Fix as version test for binutils 2.12.1 releases
7653 * configure: Rebuilt.
7655 2002-05-23 Richard Henderson <rth@redhat.com>
7657 * config/i386/i386.c (get_pic_label_name): New.
7658 (load_pic_register): Remove.
7659 (output_set_got): New.
7660 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7661 * config/i386/i386.md (UNSPEC_SET_GOT): New.
7662 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7663 (prologue_set_got, prologue_get_pc): Remove.
7664 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7665 (builtin_setjmp_receiver): Use gen_set_got.
7666 * config/i386/i386-protos.h: Update.
7668 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7670 * gcse.c (hash_expr): Do not use alias set for hashing.
7672 2002-05-22 Kevin Buettner <kevinb@redhat.com>
7674 * dbxout.c (dbxout_class_name_qualifiers): New function.
7675 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7677 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7679 * cpperror.c (_cpp_begin_message): No special casing
7681 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7682 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7683 * cpplib.c (do_include_common): Use DL_ERROR.
7684 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7686 * fix-header.c (read_scan_file): Update.
7688 2002-05-22 Richard Henderson <rth@redhat.com>
7690 * config/i386/i386.c (ix86_expand_call): New function, extracted
7691 from md call patterns. Add pic_offset_table_rtx to
7692 CALL_INSN_FUNCTION_USAGE when needed.
7693 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7694 (call_value_pop, call_value, untyped_call): Likewise.
7695 (call_exp, call_value_exp): Remove.
7696 * config/i386/i386-protos.h: Update.
7698 2002-05-22 Richard Henderson <rth@redhat.com>
7700 * varasm.c (default_section_type_flags): Check for VAR_DECL
7701 before using DECL_THREAD_LOCAL.
7703 2002-05-22 David Edelsohn <edelsohn@gnu.org>
7705 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7706 (STARTFILE_SPEC): Delete PE crt0.o.
7707 * config/rs6000/aix51.h: Same.
7708 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7709 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7710 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
7711 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7712 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7714 2002-05-22 Richard Henderson <rth@redhat.com>
7716 * varasm.c (default_section_type_flags): Handle tls data and
7718 (default_unique_section): Handle tls sections.
7720 2002-05-23 Alan Modra <amodra@bigpond.net.au>
7722 * configure.in (CROSS): Define NATIVE_CROSS.
7723 * configure: Regenerate.
7724 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7725 (startfile_prefix_spec): New var.
7726 (static_specs): Add startfile_prefix_spec.
7727 (do_spec_2): Split out from..
7729 (main): Process startfile_prefix_spec.
7730 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7732 (STARTFILE_PREFIX_SPEC): Define.
7733 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
7736 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7738 * cpperror.c: Fix formatting.
7739 * cppexp.c: Likewise.
7740 * cppfiles.c: Likewise.
7741 * cpphash.c: Likewise.
7742 * cpphash.h: Likewise.
7743 * cppinit.c: Likewise.
7744 * cpplex.c: Likewise.
7745 * cpplib.c: Likewise.
7746 * cppmacro.c: Likewise.
7747 * cppmain.c: Likewise.
7748 * cppspec.c: Likewise.
7750 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7752 * combine.c (force_to_mode): Use gen_int_mode.
7753 Don't clear CONST_INT bits outside of mode.
7755 2002-05-22 Richard Henderson <rth@redhat.com>
7757 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7758 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7760 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7763 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7764 if DECL_SIZE_UNIT is INTEGER_CST.
7766 2002-05-22 Richard Henderson <rth@redhat.com>
7768 * flow.c (life_analysis): Delete broken reg_label check.
7770 2002-05-22 Richard Henderson <rth@redhat.com>
7772 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7773 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7775 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7777 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7778 (embed-bb.c): New rule.
7779 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
7780 * config/sh/embed_bb.c: Delete.
7782 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
7784 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
7786 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7788 * config/h8300/h8300.md (*andorqi3): New.
7790 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
7792 PR preprocessor/6517
7793 * Makefile.in: Update.
7794 * c-common.c (c_common_post_options): Add preprocessor
7795 errors to the error count.
7796 * c-lang.c (c_post_options): Kill.
7797 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7798 * hooks.h: Add header guards.
7799 * langhooks-def.h: Include hooks.h.
7800 (LANG_HOOKS_POST_OPTIONS): Update.
7801 * langhooks.h (struct lang_hooks): Update post_options.
7802 * toplev.c (parse_options_and_default_flags): Update.
7804 * objc-lang.c (objc_post_options): Kill.
7805 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7807 2002-05-21 Bruce Korb <bkorb@gnu.org>
7809 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
7810 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
7811 * fixinc/fixincl.x: regen.
7813 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
7815 * cfgbuild.c: Fix formatting.
7817 * cfgcleanup.c: Likewise.
7818 * cfglayout.c: Likewise.
7819 * cfgloop.c: Likewise.
7820 * cfgrtl.c: Likewise.
7822 2002-05-21 Richard Henderson <rth@redhat.com>
7824 * c-common.h (enum rid): Add RID_THREAD.
7825 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
7826 (grokdeclarator): Grok __thread.
7827 * c-parse.in (reswords): Add __thread.
7828 (rid_to_yy): Add RID_THREAD.
7830 * tree.h (DECL_THREAD_LOCAL): New.
7831 (struct tree_decl): Add thread_local_flag.
7832 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
7833 * tree.c (staticp): TLS variables are not static.
7835 * target-def.h (TARGET_HAVE_TLS): New.
7836 * target.h (have_tls): New.
7837 * output.h (SECTION_TLS): New.
7838 * varasm.c (assemble_variable): TLS variables can't be common for now.
7839 (default_section_type_flags): Handle .tdata and .tbss.
7840 (default_elf_asm_named_section): Handle SECTION_TLS.
7841 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
7843 * flags.h (flag_tls_default): Declare.
7844 * toplev.c (flag_tls_default): Define.
7845 (display_help): Display help for it.
7846 (decode_f_option): Set it.
7848 * doc/extend.texi (Thread-Local): New node describing language-level
7849 thread-local storage.
7850 * doc/invoke.texi (-ftls-model): Document.
7852 * fixinc/inclhack.def (thread_keyword): New.
7853 * fixinc/fixincl.x: Rebuild.
7855 2002-05-21 Jeffrey A Law <law@redhat.com>
7857 * optabs.c (expand_binop): For double-word integer multiplies,
7858 do not compute intermediate results into something that is
7859 not a register (such as a SUBREG or MEM).
7861 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
7862 (ix86_sched_reorder): Make sure to initialize scheduling
7863 data even when there's only one insn in the ready queue.
7865 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7867 * genautomata.c (reserv_sets_hash_value): Fix a typo.
7869 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7871 * genautomata.c (reserv_sets_hash_value): Define hash_value as
7872 set_el_t. Transform the hash value into unsigned.
7873 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
7874 (transform_3): Add code to process `(A,B)+(D,E)'.
7876 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
7878 * reload1.c (do_output_reload): Run delete_output_reload
7881 2002-05-21 Roger Sayle <roger@eyesopen.com>
7884 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
7885 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
7886 (can_store_by_pieces): ... and here to limit the largest mode used.
7887 Add a comment to document this function.
7889 2002-05-21 Richard Henderson <rth@redhat.com>
7891 * flow.c (life_analysis): Fix test for deleted label.
7893 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
7895 * doc/tm.texi: Fix typo.
7897 2002-05-21 Zack Weinberg <zack@codesourcery.com>
7899 * c-common.c (c_common_init): Set options->unsigned_char from
7901 (cb_register_builtins): Define __STRICT_ANSI__ and
7902 __CHAR_UNSIGNED__ here...
7903 * cppinit.c (init_builtins): Not here.
7904 (cpp_create_reader): unsigned_char option defaults to 0, not
7905 !DEFAULT_SIGNED_CHAR.
7906 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
7907 and -funsigned-char.
7909 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
7910 * cpphash.c (_cpp_init_hashtable): Don't set it.
7911 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
7912 directly. Clarify comment.
7914 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7916 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
7917 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
7918 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
7919 BASIC_BLOCK (n_basic_blocks - 1).
7920 * cfganal.c (can_fallthru, flow_call_edges_add,
7921 flow_preorder_transversal_compute): Too.
7922 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7923 find_sub_basic_blocks): Too.
7924 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
7925 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
7926 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
7927 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
7928 * combine.c (this_basic_block): Type changed to basic_block.
7929 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
7930 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7931 get_last_value, distribute_notes, distribute_links): Too.
7932 * final.c (compute_alignments): Too.
7933 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
7934 * function.c (thread_prologue_and_epilogue_insns): Too.
7935 * gcse.c (compute_code_hoist_vbeinout): Too.
7936 * global.c (build_insn_chain): Too.
7937 * ifcvt.c (find_if_block, find_cond_trap): Too.
7938 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
7939 * regmove.c (regmove_optimize): Too.
7940 * resource.c (find_basic_block): Too.
7941 * sched-ebb.c (schedule_ebbs): Too.
7942 * ssa-dce.c (find_control_dependence, find_pdom): Too.
7944 2002-05-21 Andreas Jaeger <aj@suse.de>
7946 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
7948 2002-05-21 Richard Henderson <rth@redhat.com>
7950 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
7951 unspec names, not numbers.
7953 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
7955 * doc/sourcebuild.texi: Mention snapshot-README and
7956 snapshot-index.html as needing updating for new front ends.
7958 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7960 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
7961 disabling checking, and avoid multiple evaluation of RTX.
7963 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
7965 * bitmap.c (bitmap_find_bit): Return early if we have the correct
7968 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7970 * profile.c (gen_edge_profiler): Set alias set before the memory is
7973 2002-05-20 David S. Miller <davem@redhat.com>
7975 * cselib.c (max_value_regs): New.
7976 (cselib_lookup, cselib_invalidate_regno): Initialize it when
7977 adding new entries to the REG_VALUES table and we are dealing with
7979 (clear_table): Initialize it.
7980 (cselib_invalidate_regno): Use it to determine which hard
7981 registers to scan when mode is not VOIDmode.
7983 2002-05-20 Duraid Madina <duraid@fl.net.au>
7985 * tradcpp.c (fixup_newlines): Use old-style function header.
7987 2002-05-20 Krister Walfridsson <cato@df.lth.se>
7989 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
7991 2002-05-20 H.J. Lu (hjl@gnu.org)
7993 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
7995 * config/mips/mips.h (DFMODE_NAN): Defined.
7996 (SFMODE_NAN): Likewise.
7998 2002-05-20 Dale Johannesen <dalej@apple.com>
8000 * combine.c (cant_combine_insn_p): Back out my
8003 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8005 * params.c: Fix formatting.
8006 * params.h: Likewise.
8007 * predict.c: Likewise.
8008 * prefix.c: Likewise.
8009 * print-rtl.c: Likewise.
8010 * print-tree.c: Likewise.
8011 * profile.c: Likewise.
8013 2002-05-20 H.J. Lu (hjl@gnu.org)
8015 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
8017 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
8019 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
8020 switches straight on to the assembler, do not abbreviate them.
8021 * config/arm/elf.h (ASM_SPEC): As above.
8022 * config/arm/semi.h (ASM_SPEC): As above.
8023 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
8024 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
8025 -mcpu=xscale on to the assembler by default.
8026 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
8028 2002-05-20 Richard Henderson <rth@redhat.com>
8030 * cse.c (canon_hash): Reorder do_not_record test. Always
8031 allow pic_offset_table_rtx.
8033 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
8035 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
8036 (expand_binop): Ditto (3 times).
8038 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
8040 * Makefile.in (distclean): Remove QMTest stuff.
8041 (QMTEST_PATH): New variable.
8042 (QMTESTFLAGS): Likewise.
8043 (QMTESTRUNFLAGS): Likewise.
8045 (QMTEST_GPP_TESTS): Likewise.
8046 (QMTEST_DIR): Likewise.
8047 (QMTEST_DIR/context): New target.
8048 (qmtest-g++): Likeise.
8049 (qmtest-gui): Likewise.
8050 (QMTEST_DIR/gpp-expected.qmr): Likewise.
8052 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
8054 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
8055 an altivec register if TARGET_ALTIVEC.
8057 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
8058 to ALTIVEC_VECTOR_MODE.
8059 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
8060 (rs6000_va_arg): Vectors may go in registers if they are not
8063 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
8065 * protoize.c: Fix formatting.
8067 2002-05-19 Richard Henderson <rth@redhat.com>
8069 * gensupport.c (init_include_reader): Merge into ...
8070 (process_include): ... here. Simplify composite path creation.
8071 Plug memory leaks. Fix file/line number tracking. Do not
8072 process_define_cond_exec. Return void.
8073 (process_rtx): Don't check process_include return value.
8075 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8077 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
8079 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8080 traversing basic block chain.
8081 (create_basic_block_structure, create_basic_block): Declaration changed.
8082 (link_block, unlink_block): Declare.
8083 * cfg.c (entry_exit_blocks): Initialize new fields.
8084 (link_block, unlink_block): New.
8085 (expunge_block_nocompact): Unlink basic block.
8086 (dump_flow_info): Print prev_bb/next_bb fields.
8087 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
8088 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
8089 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
8090 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8091 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
8092 (verify_flow_info): Check that list agrees with numbering.
8094 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
8096 * c-common.c (preprocessing_asm): New macro.
8097 * c-lex.h (builtin_define, builtin_assert): Use pfile.
8101 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
8102 (CPP_SPEC): Simplify.
8103 (TARGET_CPU_CPP_BUILTINS): Update.
8104 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
8105 (CPP_SPEC): Simplify.
8106 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
8107 (TARGET_OS_CPP_BUILTINS): Update.
8108 * osf.h (CPP_XFLOAT_SPEC): Kill.
8109 (TARGET_OS_CPP_BUILTINS): Update.
8110 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
8111 * osf5.h (CPP_XFLOAT_SPEC): Kill.
8112 * vms.h (CPP_SUBTARGET_SPEC): Kill.
8113 (TARGET_OS_CPP_BUILTINS): Update.
8115 2002-05-19 Richard Henderson <rth@redhat.com>
8117 * varasm.c (default_binds_local_p): Fix typo.
8119 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
8121 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
8122 CONST_INT operand to the correct mode after adding 1 to it.
8124 2002-05-19 Mark Mitchell <mark@codesourcery.com>
8126 * config.gcc (powerpc-wrs-windiss*): New target.
8128 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8130 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
8133 2002-05-18 Mark Mitchell <mark@codesourcery.com>
8135 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
8137 * config.in: Regenerated.
8138 * configure: Regenerated.
8140 2002-05-19 Richard Henderson <rth@redhat.com>
8142 * target-def.h (TARGET_BINDS_LOCAL_P): New.
8143 * target.h (struct gcc_target): Move boolean fields to the end.
8145 * varasm.c (default_binds_local_p): New.
8146 * output.h: Declare it.
8148 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
8149 * config/cris/cris.c (cris_encode_section_info): Likewise.
8150 * config/i386/i386.c (i386_encode_section_info): Likewise.
8151 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
8152 * config/sh/sh.c (sh_encode_section_info): Likewise.
8154 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
8155 (TARGET_BINDS_LOCAL_P): New.
8157 2002-05-19 Richard Henderson <rth@redhat.com>
8159 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
8160 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
8161 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
8163 * toplev.c (display_help): Kill -a -ax help.
8165 * config/1750a/1750a.h, config/alpha/alpha.h,
8166 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
8167 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
8168 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
8169 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
8171 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
8172 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
8174 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
8175 (ix86_output_function_block_profiler): Kill.
8176 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
8177 (m68hc11_function_block_profiler): Kill.
8178 * config/m68hc11/m68hc11-protos.h: Update.
8179 * config/m88k/m88k.c (output_block_profiler): Kill.
8180 (output_function_block_profiler): Kill.
8181 * config/m88k/m88k-protos.h: Update.
8183 2002-05-19 Richard Henderson <rth@redhat.com>
8185 * system.h (STRIP_NAME_ENCODING): Poison it.
8186 * output.h (STRIP_NAME_ENCODING): Remove.
8187 (default_strip_name_encoding): Declare.
8188 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
8189 * target.h (strip_name_encoding): New.
8190 * varasm.c (default_strip_name_encoding): New.
8192 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
8193 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
8194 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
8195 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
8196 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
8197 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
8198 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
8199 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
8200 config/v850/v850.h: Use the hook, not the macro.
8202 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8203 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
8204 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
8205 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
8206 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
8207 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
8208 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8209 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
8210 config/v850/v850.c, config/v850/v850.h:
8211 Move STRIP_NAME_ENCODING to out-of-line function and add
8212 TARGET_STRIP_NAME_ENCODING.
8214 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
8215 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
8216 with TARGET_STRIP_NAME_ENCODING referencing existing function;
8217 make function static.
8219 * xcoffout.c: Include target.h
8220 * Makefile.in (xcoffout.o): Update.
8222 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
8223 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
8224 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
8225 reloc argument unused.
8226 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
8228 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
8229 STRIP_NAME_ENCODING docs.
8231 2002-05-19 Andreas Jaeger <aj@suse.de>
8233 * gengenrtl.c: Add prototype for excluded_rtx.
8235 * real.h: Add prototype for exact_real_truncate.
8237 2002-05-18 Richard Henderson <rth@redhat.com>
8239 * system.h (ENCODE_SECTION_INFO): Poison it.
8240 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
8241 * target.h (encode_section_info): New.
8242 * varasm.c (make_decl_rtl, output_constant_def): Use it.
8243 * hooks.c (hook_tree_int_void): New.
8244 * hooks.h: Declare it.
8246 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8247 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
8248 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
8249 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
8250 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
8251 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
8252 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
8253 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
8254 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8255 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8256 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
8257 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
8258 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
8259 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
8260 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
8261 referencing existing function. Make function static.
8263 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8264 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
8265 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
8266 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
8267 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8268 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
8269 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
8270 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
8271 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
8272 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8273 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
8274 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
8275 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
8276 Move ENCODE_SECTION_INFO to out-of-line function and add
8277 TARGET_ENCODE_SECTION_INFO.
8279 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
8280 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8282 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
8284 (switch_to_section): Replace in_rdata case with in_readonly_data.
8286 * config/h8300/h8300.c (h8300_encode_label): Make static.
8287 * config/h8300/h8300-protos.h: Update.
8289 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
8290 from rs6000_encode_section_info; make static.
8291 (rs6000_xcoff_encode_section_info): New.
8293 * config/v850/v850.c (v850_encode_data_area): Make static.
8294 * config/v850/v850-protos.h: Update.
8296 * config/vax/vax.c: Include flags.h.
8297 (vms_select_section): Fix typo.
8299 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
8300 ENCODE_SECTION_INFO docs.
8302 2002-05-18 Richard Henderson <rth@redhat.com>
8304 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
8305 REGISTER_TARGET_PRAGMAS.
8306 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
8308 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
8310 2002-05-18 Richard Henderson <rth@redhat.com>
8312 * system.h (SELECT_RTX_SECTION): Poison.
8313 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
8314 * target.h (select_rtx_section): New.
8315 * varasm.c (output_constant_pool): Use it.
8316 (default_select_rtx_section, default_elf_select_rtx_section): New.
8317 * output.h: Declare them.
8319 * config/darwin.h (SELECT_RTX_SECTION): Move ...
8320 * config/darwin.c (machopic_select_rtx_section): ... here.
8321 * config/darwin-protos.h: Update.
8323 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
8324 * config/nextstep.c (machopic_select_rtx_section): ... here.
8325 (nextstep_select_section): Rename variable to avoid macro clash.
8326 * config/nextstep-protos.h: Update.
8328 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
8329 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
8330 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8331 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
8332 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
8333 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8334 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
8335 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
8336 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
8337 (SELECT_RTX_SECTION): Remove.
8339 * config/darwin.h, config/elfos.h, config/nextstep.h,
8340 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
8341 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
8342 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
8343 config/sparc/lynx.h, config/xtensa/xtensa.c
8344 (TARGET_ASM_SELECT_RTX_SECTION): New.
8346 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
8347 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
8348 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
8349 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
8350 (ia64_aix_select_rtx_section): New.
8351 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
8353 * config/mips/mips.c (mips_select_rtx_section): Make static.
8354 Support ELF SHF_MERGE features.
8355 * config/mips/mips-protos.h: Update.
8356 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
8357 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
8358 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
8359 make static, fall back to default_elf_select_rtx_section.
8360 * config/rs6000/rs6000-protos.h: Update.
8361 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
8362 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
8363 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
8364 * config/romp/romp.c (romp_select_rtx_section): New.
8365 * config/s390/s390.c (s390_select_rtx_section): New.
8366 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
8367 declarations before target macro definition.
8368 (xtensa_emit_call): Use static buffer.
8369 (xtensa_select_rtx_section): New.
8370 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8371 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8372 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8374 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8375 SELECT_RTX_SECTION docs.
8377 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8379 * i386.md (movsi/movdi): Fix template.
8380 (sse2 patterns): Set attributes consistently.
8382 * i386.md (pushqi2, ashrqi_*): Fix constraint.
8384 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
8386 * optabs.c (complex_part_zero_p): New.
8387 * (expand_cmplxdiv_straight): Use it.
8388 * (expand_cmplxdiv_wide): Ditto.
8389 * (expand_binop): Ditto.
8391 2002-05-18 Richard Henderson <rth@redhat.com>
8393 * final.c (HAVE_READONLY_DATA_SECTION): New.
8394 (shorten_branches): Use it instead of ifdefs.
8395 * varasm.c (enum in_section): Add in_readonly_data.
8396 (text_section, data_section): Tidy.
8397 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8399 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8400 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8401 (READONLY_DATA_SECTION): Don't undef.
8403 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8404 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8405 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8407 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8408 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8409 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8410 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8412 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8413 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8414 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8415 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8416 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8417 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8418 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8419 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8420 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8422 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8423 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8424 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8425 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8426 config/pa/pa64-hpux.h, config/sparc/litecoff.h
8427 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8429 * config/elfos.h, config/netware.h, config/svr3.h,
8430 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8431 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8432 config/h8300/h8300.h, config/i386/i386-interix.h,
8433 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8434 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8436 * config/elfos.h, config/netware.h, config/svr3.h,
8437 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8438 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8439 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8440 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8442 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8443 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8444 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8445 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8446 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8447 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8448 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8449 config/rs6000/sysv4.h, config/v850/v850.h
8450 (EXTRA_SECTIONS): Remove in_const/in_rdata.
8451 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8453 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8454 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8455 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8456 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8457 * config/alpha/alpha.c (alpha_start_function): Likewise.
8458 (alpha_write_linkage): Likewise.
8459 * config/m32r/m32r.c (m32r_select_section): Likewise.
8460 * config/m88k/m88k.c (m88k_select_section): Likewise.
8461 * config/mips/mips.c (mips_select_rtx_section): Likewise.
8462 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8463 (rs6000_elf_select_section): Likewise.
8464 * config/v850/v850.c (v850_select_section): Likewise.
8466 * config/1750a/1750a.h, config/i860/sysv3.h
8467 (READONLY_DATA_SECTION_ASM_OP): New.
8468 READONLY_DATA_SECTION_ASM_OP.
8469 * config/i386/interix.c, config/i386/winnt.c
8470 (i386_pe_unique_section): Always use .rdata prefix.
8471 * config/pa/som.h (readonly_data): Always switch to read-only section.
8472 (READONLY_DATA_SECTION): Predicate on flag_pic.
8473 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8474 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8475 (READONLY_DATA_SECTION): Update.
8477 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
8479 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8480 is used without -Wformat.
8481 * c-common.h (warn_format_zero_length): Declare extern.
8482 * c-decl.c (warn_options): Add "format-zero-length".
8483 * c-format.c (warn_format_zero_length): Declare.
8484 (set_Wformat): Set warn_format_zero_length for -Wformat.
8485 (check_format_info): Only warn about zero-length formats if
8486 warn_format_zero_length is true. Include the format type
8487 name in the warning message.
8488 * doc/invoke.texi: Document -Wformat-zero-length.
8489 * testsuite/gcc.dg/format/zero-length-1.c: New test.
8491 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
8493 * timevar.c: Fix formatting.
8494 * tlink.c: Likewise.
8495 * toplev.c: Likewise.
8496 * tree-dump.c: Likewise.
8497 * tree-inline.c: Likewise.
8499 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8501 * cppinit.c (cpp_post_options): If preprocessed, turn off
8502 traditional. If traditional, turn off column numbers.
8503 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8504 * cpptrad.c (handle_newline): Update line_base.
8505 (skip_comment): Handle -Wcomment.
8507 2002-05-17 Zack Weinberg <zack@codesourcery.com>
8509 * cppinit.c (struct builtin): Remove unused fields.
8510 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8511 (operator_array): New - was second half of builtin_array.
8512 (init_builtins): Simplify loop over builtin_array/operator_array.
8514 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8516 * defaults.h (UNIQUE_SECTION): Remove.
8517 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8519 2002-05-17 Richard Henderson <rth@redhat.com>
8521 * expr.c (init_expr_once): Don't use start/end_sequence.
8522 Use rtx_alloc instead of emit_insn.
8523 * toplev.c (lang_dependent_init): Run init_expr_once here ...
8524 (lang_independent_init): ... not here.
8526 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8528 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8530 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
8532 * config/avr/avr.c (avr_regs_to_save): New function. Also check
8533 for fixed registers, possibly used for global register variables.
8534 (initial_elimination_offset, avr_output_function_prologue,
8535 avr_output_function_epilogue): Move common code to avr_regs_to_save.
8537 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8539 * Makefile.in: Update for cpptrad.c.
8540 * cpphash.h (struct cpp_buffer): New members for buffer
8542 (struct cpp_reader): New members for traditional output.
8543 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8544 * cppinit.c (cpp_create_reader): Set trad_line.
8545 (cpp_destroy): Free trad_out_base if used.
8546 (cpp_read_main_file): Overlay an empty buffer if traditional.
8547 (cpp_finish_options): Don't do builtins.
8548 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8549 (cpp_handle_option): Handle it.
8550 * cpplex.c (continue_after_nul): New.
8551 (_cpp_lex_direct): Use handle_nul.
8552 * cpplib.h (struct cpp_options): New traditional option.
8553 * cpptrad.c: New file.
8555 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8557 * c-common.c (c_common_init_options): Use C89 for Objective-C,
8558 and set the options flag.
8559 * cppinit.c (lang_flags): Remove objc.
8560 (lang_defaults): Remove OBJC and OBJCXX.
8562 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8563 (cpp_handle_option): Remove -+ and -lang-objc++.
8564 For ObjC, just set a flag.
8565 (print_help): Update.
8566 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8568 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8570 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8571 bootstrap with -mips3.
8573 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
8575 * final.c: Fix formatting.
8576 * fix-header.c: Likewise.
8578 * fold-const.c: Likewise.
8579 * function.c: Likewise.
8581 2002-05-17 David S. Miller <davem@redhat.com>
8583 PR c/6689, PR optimization/6615
8584 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8585 and make it a pointer to rtx. Update comments.
8586 (update_equiv_regs): When scanning for equivalences, record
8587 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
8588 it while making the equiv replacements.
8590 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8592 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8594 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
8596 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8597 when encoding visibility into SYMBOL_REF_FLAG.
8599 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
8601 * expr.c (force_operand): Fix reversed move.
8603 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
8605 * doc/install.texi (Testing): Mention two common DejaGnu warnings
8606 that can be ignored.
8608 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8610 * doc/install.texi (Final install): Recommend to install into a
8611 "clean" target directory.
8613 2002-05-17 Richard Henderson <rth@redhat.com>
8615 * config/ia64/ia64.md: Use braced strings instead of quoted strings
8616 for code blocks. Tidy whitespace.
8618 2002-05-17 Richard Henderson <rth@redhat.com>
8620 * hooks.c (hook_tree_bool_false): New.
8621 * hooks.h: Declare it.
8622 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8623 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8624 * target.h (select_section, unique_section): New.
8625 (in_small_data_p): New.
8626 * varasm.c (resolve_unique_section): Use hooks instead of macros.
8627 (variable_section, output_constant_def_contents): Likewise.
8628 (default_select_section, default_unique_section): New.
8629 (categorize_decl_for_section, default_elf_select_section): New.
8630 * output.h: Declare them.
8632 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8633 (TARGET_ASM_SELECT_SECTION): New.
8634 (SELECT_SECTION): Move ...
8635 * config/darwin.c (machopic_select_section): ... here.
8636 * config/darwin-protos.h: Update.
8638 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8639 (SELECT_SECTION): Move ...
8640 * config/nextstep.c (nextstep_select_section): ... here.
8641 * config/nextstep-protos.h: Update.
8643 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8644 (TARGET_ASM_SELECT_SECTION): New.
8645 * config/svr3.h (SELECT_SECTION): Remove.
8647 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8648 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8649 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8650 (alpha_encode_section_info): Use it.
8651 * config/alpha/alpha-protos.h: Update.
8652 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8653 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8654 (TARGET_ASM_SELECT_SECTION): New.
8655 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8657 * config/arm/pe.h (UNIQUE_SECTION): Remove.
8658 (TARGET_ASM_UNIQUE_SECTION): New.
8660 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8661 (avr_unique_section): Rename from unique_section; make static.
8662 * config/avr/avr-protos.h: Update.
8663 * config/avr/avr.h (UNIQUE_SECTION): Remove.
8665 * config/c4x/c4x.h (SELECT_SECTION): Remove.
8667 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8668 (TARGET_ASM_UNIQUE_SECTION): New.
8669 * config/i386/i386-interix.h: Likewise.
8670 * config/i386/win32.h: Likewise.
8671 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8672 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8673 * config/i386/sco5.h (SELECT_SECTION): Remove.
8674 (TARGET_ASM_SELECT_SECTION): New.
8675 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8677 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8678 instead of SELECT_SECTION.
8679 * config/m68k/dpx2.h: Likewise.
8680 * config/rs6000/lynx.h: Likewise.
8682 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8683 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8684 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8685 (ia64_in_small_data_p): New.
8686 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
8687 (ia64_aix_select_section, ia64_aix_unique_section): New.
8688 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8689 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8691 * config/m32r/m32r.h (SELECT_SECTION): Remove.
8692 (TARGET_ASM_SELECT_SECTION): New.
8693 * config/m32r/m32r.c (m32r_select_section): Take align argument.
8694 * config/m32r/m32r-protos.h: Update.
8696 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8697 (SELECT_SECTION): Move ...
8698 * config/m88k/m88k.c (m88k_select_section): ... here.
8700 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8701 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8702 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8703 (mcore_unique_section): Make static.
8704 * config/mcore/mcore-protos.h: Update.
8706 * config/mips/elf.h (UNIQUE_SECTION): Remove.
8707 (TARGET_ASM_UNIQUE_SECTION): New.
8708 * config/mips/elf64.h: Likewise.
8709 * config/mips/iris6gld.h: Likewise.
8710 * config/mips/linux.h: Likewise.
8711 * config/mips/mips-protos.h: Update.
8712 * config/mips/mips.c (mips_select_section): Add align argument.
8713 * config/mips/mips.h (SELECT_SECTION): Remove.
8714 (TARGET_ASM_SELECT_SECTION): New.
8716 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8717 * config/mmix/mmix.c (mmix_select_section): Remove.
8718 (mmix_unique_section): Remove.
8719 * config/mmix/mmix-protos.h: Update.
8721 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8722 (SELECT_SECTION): Move ...
8723 * config/pa/pa.c (pa_select_section): ... here.
8724 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8726 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8727 from rs6000_select_section and make static.
8728 (rs6000_elf_unique_section): Similarly.
8729 (rs6000_xcoff_select_section): From xcoff.h.
8730 (rs6000_xcoff_unique_section): Likewise.
8731 * config/rs6000/rs6000-protos.h: Update.
8732 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8733 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8734 * config/rs6000/xcoff.h: Likewise.
8736 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8737 (SELECT_SECTION): Move ...
8738 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8740 * config/v850/v850.h (SELECT_SECTION): Move ...
8741 * config/v850/v850.c (v850_select_section): ... here.
8742 (TARGET_ASM_SELECT_SECTION): New.
8744 * config/vax/vms.h (SELECT_SECTION): Move ...
8745 * config/vax/vax.c (vms_select_section): ... here.
8746 (TARGET_ASM_SELECT_SECTION): New.
8748 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8749 for the target hooks.
8751 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
8753 * config/arm/arm.c (emit_multi_reg_push): Do not set
8754 RTX_FRAME_RELATED_P on the SEQUENCE.
8756 2002-05-16 Richard Henderson <rth@redhat.com>
8758 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8759 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
8761 2002-05-16 Richard Henderson <rth@redhat.com>
8763 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8765 * config/ia64/ia64.c (saveable_obstack): Do not declare.
8767 2002-05-16 Richard Henderson <rth@redhat.com>
8769 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8770 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8771 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8772 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8773 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8774 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8775 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8776 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8777 Revert "Basic block renumbering removal", and two followup patches.
8779 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8781 * lcm.c (optimize_mode_switching): Revert previous change.
8783 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8785 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8786 with only extant block numbers.
8788 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8790 * lcm.c (optimize_mode_switching): Fix typo.
8792 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8794 * flow.c (calculate_global_regs_live): Queue blocks in program order.
8796 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8798 * doc/install.texi (Configuration): Document PWDCMD.
8800 2002-05-16 Dale Johannesen <dalej@apple.com>
8802 * combine.c (cant_combine_insn_p): Reenable combinations
8803 involving hard regs unless CLASS_LIKELY_SPILLED_P.
8805 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8807 * c-common.c (cb_register_builtins): Handle more built-ins
8808 here rather than in gcc.c specs.
8809 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
8810 (cpp_options): Pass -O flags even when only preprocessing.
8811 * toplev.c (set_fast_math_flags): New prototype.
8812 (fast_math_flags_set_p): New.
8813 (set_no_fast_math_flags): Remove.
8814 (decode_f_option): Update.
8815 * toplev.h (set_fast_math_flags): Update.
8816 (fast_math_flags_set_p): New.
8817 (set_no_fast_math_flags): Remove.
8819 * c4x/c4x.c (c4x_override_options): Update.
8821 2002-05-16 Zack Weinberg <zack@codesourcery.com>
8823 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
8824 Default-define here.
8825 (builtin_define_with_value): Can now wrap the expansion in
8826 quotation marks if such is wanted.
8827 (cb_register_builtins): Update calls to builtin_define_with_value.
8828 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
8830 (c_common_init): Set options->stdc_0_in_system_headers.
8831 * c-lex.h: Update prototype of builtin_define_with_value.
8832 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
8833 and REGISTER_PREFIX.
8835 * cppinit.c (VERS, ULP, C, X): Kill.
8836 (builtin_array): Remove entries for __VERSION__,
8837 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
8838 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
8840 (init_builtins): Kill off a bunch of now-dead code.
8841 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
8842 -fno-leading-underscore.
8843 (cpp_handle_option): Remove code to set user_label_prefix.
8844 (cpp_post_options): Likewise.
8846 * cpplib.h (struct cpp_options): Remove user_label_prefix.
8847 (stdc_0_in_system_headers): New.
8848 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
8849 stdc_0_in_system_headers) too to decide the value of __STDC__.
8851 * tradcpp.c (user_label_prefix): Kill.
8852 (main): Remove code handling -f(no-)leading-underscore.
8853 (initialize_builtins): Don't define __REGISTER_PREFIX__
8854 or __USER_LABEL_PREFIX__.
8855 (install_value): Wrap compound statement in dummy loop so the
8856 macro works properly in an if statement.
8859 2002-05-16 Janis Johnson <janis187@us.ibm.com>
8861 * loop.h (struct loop_info): Add member has_prefetch.
8862 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
8863 (prescan_loop): Initialize has_prefetch.
8864 (struct prefetch_info): Change prefetch_in_loop and
8865 prefetch_before_loop from bit fields to ints.
8866 (emit_prefetch_instructions): Several small fixes.
8867 (check_dbra_loop): Don't reverse loop that uses prefetch.
8869 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8871 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
8872 * configure.in: Likewise.
8873 * fixinc/check.tpl: Likewise.
8874 * fixinc/fixinc.dgux: Likewise.
8875 * fixinc/fixinc.svr4: Likewise.
8876 * fixinc/fixinc.winnt: Likewise.
8877 * fixinc/fixincl.sh: Likewise.
8878 * fixproto: Likewise.
8879 * configure: Regenerate.
8881 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8883 Basic block renumbering removal:
8884 * basic_block.h (struct basic_block_def): Renamed index to sindex,
8885 added prev_bb and next_bb fields.
8886 (n_basic_blocks): Renamed to num_basic_blocks.
8887 (last_basic_block): New, index of last basic block.
8888 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8889 traversing basic block chain.
8890 (BLOCK_NUM): index -> sindex.
8891 (create_basic_block_structure, create_basic_block): Declaration changed.
8892 (debug_num2bb): Declare.
8893 (expunge_block_nocompact): Declaration removed.
8894 (link_block, unlink_block, compact_blocks): Declare.
8895 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
8896 * cfg.c (entry_exit_blocks): Initialize new fields.
8897 (clear_edges, alloc_block, expunge_block, cached_make_edge,
8898 redirect_edge_pred, dump_flow_info, dump_edge_info,
8899 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
8900 free_aux_for_edges): Modified.
8901 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
8902 (expunge_block_nocompact): Removed.
8903 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
8904 find_unreachable_blocks, create_edge_list, print_edge_list,
8905 verify_edge_list, flow_edge_list_print, remove_fake_successors,
8906 remove_fake_edges, flow_reverse_top_sort_order_compute,
8907 flow_depth_first_order_compute, flow_preorder_transversal_compute,
8908 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
8909 flow_dfs_compute_reverse_execute): Modified.
8910 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
8911 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
8913 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8914 merge_blocks_move_predecessor_nojumps,
8915 merge_blocks_move_successor_nojumps, merge_blocks,
8916 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
8917 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
8918 * cfglayout.c (skip_insns_after_block, label_for_bb,
8919 record_effective_endpoints, scope_to_insns_finalize,
8920 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
8921 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
8922 cfg_layout_duplicate_bb): Modified.
8923 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
8924 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8925 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
8926 flow_loops_find, flow_loop_outside_edge_p): Modified.
8927 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8928 flow_delete_block, compute_bb_for_insn, split_block,
8929 try_redirect_by_replacing_jump, redirect_edge_and_branch,
8930 force_nonfallthru_and_redirect, tidy_fallthru_edge,
8931 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
8932 commit_edge_insertions, commit_edge_insertions_watch_calls,
8933 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
8934 purge_all_dead_edges): Modified.
8935 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
8936 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8937 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
8939 * conflict.c (conflict_graph_compute): Modified.
8940 * df.c (FOR_ALL_BBS): Removed.
8941 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8942 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
8943 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
8944 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
8945 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8946 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
8947 * final.c (compute_alignments, final_scan_insn): Modified.
8948 * flow.c (verify_local_live_at_start, update_life_info,
8949 update_life_info_in_dirty_blocks, free_basic_block_vars,
8950 delete_noop_moves, calculate_global_regs_live,
8951 initialize_uninitialized_subregs, allocate_bb_life_data,
8952 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
8953 mark_used_reg, count_or_remove_death_notes): Modified.
8954 * function.c (thread_prologue_and_epilogue_insns): Modified.
8955 * gcse.c (struct null_pointer_info): Change typo of current_block
8957 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
8958 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
8959 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
8960 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
8961 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
8962 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
8963 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
8964 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
8965 pre_delete, one_pre_gcse_pass, compute_transpout,
8966 invalidate_nonnull_info, delete_null_pointer_checks_1,
8967 free_code_hoist_mem, compute_code_hoist_vbeinout,
8968 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8969 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
8970 compute_store_table, build_store_vectors, insert_insn_start_bb,
8971 insert_store, replace_store_insn, free_store_memory, store_motion):
8973 * global.c (global_alloc, global_conflicts, mark_elimination,
8974 build_insn_chain): Modified.
8975 * graph.c (print_rtl_graph_with_bb): Modified.
8976 * haifa-sched.c (sched_init): Modified.
8977 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8978 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
8979 if_convert): Modified.
8980 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
8981 compute_insert_delete, pre_edge_lcm, compute_available,
8982 compute_farthest, compute_nearerout, compute_rev_insert_delete,
8983 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
8985 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
8986 * loop.c (loop_dump_aux): Modified.
8987 * predict.c (combine_predictions_for_insn, estimate_probability,
8988 last_basic_block_p, process_note_prediction, process_note_predictions,
8989 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
8990 expensive_function_p, estimate_bb_frequencies,
8991 compute_function_frequency): Modified.
8992 * print-rtl.c (print_rtx): Modified.
8993 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
8994 get_exec_counts, compute_branch_probabilities, compute_checksum,
8995 branch_prob, find_spanning_tree): Modified.
8996 * recog.c (split_all_insns, peephole2_optimize): Modified.
8997 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
8998 convert_regs_1, convert_regs_2, convert_regs): Modified.
8999 * regclass.c (scan_one_insn, regclass): Modified.
9000 * regmove.c (mark_flags_life_zones, regmove_optimize,
9001 combine_stack_adjustments): Modified.
9002 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
9003 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
9004 * reorg.c (dbr_schedule): Modified.
9005 * resource.c (find_basic_block, init_resource_info): Modified.
9006 * sbitmap.c (sbitmap_intersection_of_succs,
9007 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
9008 sbitmap_union_of_preds): Modified.
9009 * sched-deps.c (init_dependency_caches): Modified.
9010 * sched-ebb.c (schedule_ebbs): Modified.
9011 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
9012 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
9013 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
9014 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
9015 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
9016 ssa_const_prop): Modified.
9017 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
9018 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
9019 * ssa.c (remove_phi_alternative, find_evaluations,
9020 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
9021 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
9022 make_regs_equivalent_over_bad_edges,
9023 make_equivalent_phi_alternatives_equival,
9024 compute_conservative_reg_partition,
9025 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
9026 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
9029 2002-05-16 Mark Mitchell <mark@codesourcery.com>
9031 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
9033 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
9035 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
9036 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9037 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
9038 calling CONSTANT_POOL_ADDRESS_P.
9039 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
9040 to decide whether to define __arm__ or __thumb.
9041 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
9042 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9044 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9046 * config/arc/arc.h (CPP_PREDEFINES): Remove.
9048 (TARGET_CPU_CPP_BUILTINS): New.
9050 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9052 * cpphash.h (cpp_macro): Move here, and make expansion a union.
9053 * cppmacro.c (cpp_macro): Remove.
9054 (enter_macro_context, replace_args, warn_of_redefinition,
9055 _cpp_create_definition, cpp_macro_definition): Update.
9057 2002-05-16 Jason Merrill <jason@redhat.com>
9059 * config/mips/mips.c (mips_output_external): Don't do sdata
9060 optimization for a variable with DECL_COMDAT set.
9062 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9064 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
9065 Cleanups for accepting modifiers on pointers.
9066 Fix predicate typos.
9067 Allow long pointers as well as int pointers.
9069 2002-05-15 Richard Henderson <rth@redhat.com>
9071 * varasm.c (merge_weak): Remove special case for extern and common.
9073 2002-05-15 Matt Hiller <hiller@redhat.com>
9075 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
9077 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
9078 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
9079 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
9080 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
9081 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
9082 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
9084 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9086 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
9088 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9090 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
9091 ("altivec_mfvscr"): Read from VSCR.
9093 Add vscr sets for the following insns: altivec_vctuxs,
9094 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
9095 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
9096 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
9097 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
9098 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
9099 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
9100 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
9101 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
9102 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
9103 altivec_vsum2sws, altivec_vsumsws.
9105 * config/rs6000/rs6000.h: Add VSCR fixed register.
9106 (CALL_REALLY_USED_REGISTERS): Add vscr.
9107 (CALL_USED_REGISTERS): Same.
9108 (FIXED_REGISTERS): Same.
9109 (REG_ALLOC_ORDER): Same.
9110 (reg_class): Add VSCR_REGS.
9111 (REG_CLASS_NAMES): Same.
9112 (REG_CLASS_CONTENTS): Same.
9114 (REGISTER_NAMES): Add vscr.
9115 (DEBUG_REGISTER_NAMES): Same.
9116 (ADDITIONAL_REGISTER_NAMES): Same.
9117 (FIRST_PSEUDO_REGISTER): Increment.
9118 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
9120 2002-05-15 Jakub Jelinek <jakub@redhat.com>
9122 * fold-const.c (fold): Fix a typo.
9124 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
9126 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
9127 comparison against the highest or lowest integer value before
9128 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
9129 transformation and that of an unsigned comparison against 0
9132 2002-05-15 Richard Henderson <rth@redhat.com>
9134 * varasm.c (merge_weak): Error for any weakening after definition.
9135 Adjust weakening after use warning to catch more cases.
9136 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
9137 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
9139 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
9141 * invoke.texi (-malign-double): Re-add lost warning.
9143 * i386-protos.h (x86_output_mi_thunk): Declare.
9144 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
9145 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
9147 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
9148 when flag_asynchronous_unwind_tables is set.
9150 * flags.h (flag_reorder_functions): Declare.
9151 * function.c (prepare_function_start): Initialize frequnecy.
9152 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
9153 * Makefile.in (predict.o): Add dependency on target.h and params.h
9154 * defaults.h (HOT_TEXT_SECTION_NAME,
9155 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
9156 * predict.c (choose_function_section): New function.
9157 (estimate_bb_frequencies): Use it.
9158 * toplev.c (flag_reorder_functions): New global variable.
9159 (lang_independent_options): New.
9160 (parse_options_and_default_flags): Set.
9161 * varasm.c (assemble_start_function): Bypass functdion alignment
9162 for never executed functions.
9163 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
9164 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
9165 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
9168 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
9170 * predict.c: Inlude profile.h
9171 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
9172 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
9173 Use the information about maximal counter in the program.
9175 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
9177 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
9178 probably_never_executed_bb_p): New functions.
9179 * cfgcleanup.c (outgoing_edges_match): Use them.
9180 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
9181 (maybe_hot_bb_p, probably_cold_bb_p,
9182 probably_never_executed_bb_p): New functions.
9184 * function.h (function): Add new field function_frequency.
9185 * predict.c (compute_function_frequency): New function.
9186 (estimate_probability): Call it.
9188 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9190 PR optimization/5172, optimization/5200
9191 * gcse.c (gcse_main): Disable store_motion.
9193 2002-05-14 Zack Weinberg <zack@codesourcery.com>
9195 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
9196 (c_common_nodes_and_builtins): Use it.
9197 (builtin_define_with_value): New function.
9198 (cb_register_builtins): Define __SIZE_TYPE__,
9199 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
9200 using builtin_define_with_value. Use consistent notation when
9201 defining __GXX_WEAK__.
9202 (WCHAR_TYPE_SIZE): Don't redefine.
9203 (combine_strings): Don't use WCHAR_TYPE_SIZE.
9205 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
9206 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
9207 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
9208 * tradcpp.c (initialize_builtins): Likewise.
9209 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
9211 * c-lex.h (builtin_define_with_value): Prototype.
9212 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
9213 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
9214 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
9216 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
9217 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
9218 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
9219 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
9220 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
9221 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
9222 config/sparc/sol2-bi.h, config/sparc/sparc.h:
9223 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
9224 to __SIZE_TYPE__ etc from all spec strings. When this makes
9225 extra specs empty, delete them.
9227 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
9229 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
9230 for PA8000 or generating dwarf2 call frame information.
9231 (output_call): Remove DO_FRAME_NOTES check from return pointer
9233 (following_call): Return 0 when scheduling for PA8000 or generating
9234 dwarf2 call frame information. Revise comment.
9236 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9239 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
9240 and __IEEE_FP_INEXACT as appropriate.
9241 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
9242 (CPP_SPEC): Remove ieee defines.
9243 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
9245 2002-05-14 Richard Henderson <rth@redhat.com>
9247 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
9248 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
9250 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9252 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
9254 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
9255 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
9256 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
9257 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
9258 (EXTRA_SPECS): Update.
9259 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
9260 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
9261 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
9262 define TARGET_OS_CPP_BUILTINS if necessary.
9264 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9266 * gcc.c (cpp_options): Must pass -m* and -f* options
9267 to the front end even when only preprocessing.
9268 (cc1_options): Remove redundant -lang-c.
9269 * tradcpp.c (main): Ignore -m options.
9271 * lang-specs.h: Similarly.
9273 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
9275 * genautomata.c (transform_3): Add code for transformation
9276 `(A,B,...)+C -> A+C,B,...'.
9278 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
9280 * final.c (end_final): Do not output profile_arcs constructor, when
9281 no functions are instrumented.
9283 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
9285 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
9287 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9289 * doc/install.texi: Remove special markup originally required for
9290 HTML generation with texi2html.
9292 2002-05-14 Andreas Schwab <schwab@suse.de>
9294 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
9296 (UNIQUE_SECTION): Define to get small data correctly.
9298 * varasm.c (resolve_unique_section): Add third parameter
9299 flag_function_or_data_sections and use it instead of
9300 flag_function_sections.
9301 (assemble_start_function): Pass flag_function_sections.
9302 (asm_emit_uninitialised): Pass flag_data_sections.
9303 (assemble_variable): Likewise.
9305 2002-05-14 Richard Henderson <rth@redhat.com>
9307 * config/i386/i386.md: Use define_constants for unspec numbers.
9308 * config/i386/i386.c: Likewise.
9310 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9312 * doc/contrib.texi: Update my entry.
9314 2002-05-13 Mark Mitchell <mark@codesourcery.com>
9316 * fixinc/inclhack.def (winidss_valist): Limit applicability.
9317 * fixinc/fixincl.x: Regenerated.
9318 * fixinc/tests/base/math.h: Update.
9319 * fixinc/tests/base/testing.h: Likewise.
9321 2002-05-13 Zack Weinberg <zack@codesourcery.com>
9323 * genattr.c (gen_attr): Don't emit a comma after the last
9326 2002-05-13 Richard Henderson <rth@redhat.com>
9328 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
9330 * recog.c (peephole2_optimize): Likewise.
9332 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
9334 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
9337 2002-05-13 Jeffrey A Law (law@redhat.com)
9339 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
9340 Update prototype and callers.
9341 (propagate_one_insn): Stack pointer adjustments kill MEMs on
9342 the mem_set_list which reference the stack pointer, as do
9343 calls to constant functions as they may clobber outgoing
9346 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
9348 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9349 (ia32_multipass_dfa_lookahead): New function.
9351 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9353 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
9354 (translate_options): Remove 'V'.
9355 (process_command): Similarly.
9357 * invoke.texi: Remove documentation of 'V'.
9359 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
9361 * config/s390/linux.h: Revert 2002-04-22 changes.
9363 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
9365 * config/fr30/fr30.md: Only allow splits of immediate loads
9366 if the destination is a register.
9368 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9370 * Makefile.in (c-common.o, cppinit.o): Update.
9371 * c-common.c: Include except.h.
9372 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9373 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9374 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9375 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9376 CPP_PREDEFINES): Handle here.
9378 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9379 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9380 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9381 TARGET_OS_CPP_BUILTINS.
9382 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9383 (CPP_SPEC, EXTRA_SPECS): Update.
9384 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9385 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9386 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9387 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9388 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9390 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9391 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9393 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9395 * emit-rtl.c (global_rtl): Update comment.
9396 (const_double_htab, const_double_htab_hash,
9397 const_double_htab_hash, lookup_const_double): New.
9398 (const_int_htab_hash, const_int_htab_eq): Remove const
9399 qualifiers, which cause tons of warnings with RTL checking on.
9400 (gen_rtx_CONST_DOUBLE): Deleted.
9401 (const_double_from_real_value): New function - bears some
9402 resemblance to the former immed_real_const_1.
9403 (immed_double_const): Moved here from varasm.c and
9405 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9406 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9407 (gen_rtx): Use immed_double_const.
9408 (init_emit_once): Initialize the const_double_htab. Use
9409 REAL_VALUE_FROM_INT where possible. Can now use
9410 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9411 * varasm.c (struct varasm_status): Remove x_const_double_chain.
9412 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9413 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9414 (init_varasm_status, mark_varasm_status): Don't touch
9415 x_const_double_chain.
9417 * output.h: Delete prototype for clear_const_double_mem.
9418 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
9419 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
9420 const_double_from_real_value, not immed_real_const_1, and use
9421 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
9423 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9424 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9425 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9426 (gen_rtx_REG): Second arg is unsigned.
9428 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9429 (excluded_rtx): New, return true for CONST_DOUBLE.
9430 (genmacro): Write nothing for excluded codes.
9431 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9432 * expr.c (expand_expr): Likewise.
9433 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9435 * toplev.c (rest_of_compilation): Don't call
9436 clear_const_double_mem.
9438 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9439 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9440 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9441 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9442 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9443 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9444 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9445 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9447 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9449 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9451 2002-05-12 Tom Tromey <tromey@redhat.com>
9453 * tree.h (copy_node): Don't mention TREE_PERMANENT.
9455 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9457 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9458 (scan_comma_elt): New function. Accepts whitespace in comma lists.
9459 * gensupport.h: Prototype new routines.
9460 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
9462 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9463 (next_comma_elt): Use scan_comma_elt.
9465 * config/i386/i386.md: Use new attribute notation to break up
9466 long lines in define_attr forms.
9468 2002-05-12 Richard Henderson <rth@redhat.com>
9470 * expr.c (compress_float_constant): New.
9471 (emit_move_insn): Use it.
9472 (float_extend_from_mem): New.
9473 (init_expr_once): Initialize it.
9474 * real.c (exact_real_truncate): New.
9476 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9477 dropped into memory; penalize for size.
9478 (RTX_COSTS): FLOAT_EXTEND is free.
9479 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9480 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9482 2002-05-12 Richard Henderson <rth@redhat.com>
9484 * profile.h (profile_info): Add missing extern to declaration.
9485 * profile.c (profile_info): Define it.
9487 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9489 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9490 used for DImode and TImode.
9492 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
9494 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9497 2002-05-11 Zack Weinberg <zack@codesourcery.com>
9499 * config/rs6000/rs6000.c (rs6000_default_long_calls,
9500 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9501 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9502 (rs6000_override_options): Handle -m(no-)longcall.
9503 (init_cumulative_args, output_mi_thunk): Check for both
9504 longcall and shortcall attributes on the function.
9505 (rs6000_attribute_table): Add "shortcall".
9506 (rs6000_handle_longcall_attribute): Update comment.
9507 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9508 altivec_expand_ternop_builtin): Add default clauses to switches
9509 to silence warnings.
9511 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9512 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
9513 (TARGET_OPTIONS): Add longcall and no-longcall.
9515 * config/rs6000/rs6000.md (call_nonlocal_sysv,
9516 call_value_nonlocal_sysv): Split by alternatives. One pair
9517 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9518 the call cookie. The other pair accepts only LR/CTR and has
9521 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9522 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9524 * config/rs6000/rs6000-c.c: New file.
9525 * config/rs6000/t-rs6000-c-rule: New file.
9526 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9527 Prototype rs6000_pragma_longcall.
9529 * doc/extend.texi: Document shortcall attribute.
9530 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9532 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9534 * reorg.c (dbr_schedule): Remove unnecessary test.
9536 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9538 * i386.md (testsi to testqi spliters): New.
9540 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
9542 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9544 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
9546 * basic-block.h: New flag EDGE_CAN_FALLTHRU
9547 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9548 that can be made fallthru.
9550 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
9552 * cfglayout.c (cleanup_unconditional_jumps): New static function.
9553 (cfg_layout_initialize): Use it.
9555 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
9557 * config/avr/avr.c (avr_mcu_types): Update supported devices.
9558 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9559 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9561 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
9563 * dbxout.c: Fix formatting.
9564 * dependence.c: Likewise.
9566 * diagnostic.c: Likewise.
9567 * doloop.c: Likewise.
9568 * dominance.c: Likewise.
9569 * doschk.c: Likewise.
9570 * dwarf2asm.c: Likewise.
9571 * dwarf2out.c: Likewise.
9572 * dwarfout.c: Likewise.
9574 2002-05-10 Richard Henderson <rth@redhat.com>
9576 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
9577 Convert integers constants as needed. Replace "nwords" field with
9579 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9580 * function.h: Fix typo in comment.
9581 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9583 2002-05-10 Roger Sayle <roger@eyesopen.com>
9585 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9586 into the equivalent (signed char)c > 0.
9588 2002-05-10 Janis Johnson <janis187@us.ibm.com>
9590 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9591 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9592 (struct prefetch_info): Fix spelling of member bytes_accessed.
9593 (emit_prefetch_instructions): Make dump messages more regular;
9594 restructure code to add more dump messages; use new macros for
9595 heuristics. (There are no code generation changes in any of this).
9597 2002-05-10 David S. Miller <davem@redhat.com>
9599 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9600 (struct rtx_def): Update unchanging flag comment.
9601 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9602 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9603 to be handled to INSN too.
9604 (dbr_schedule): Likewise.
9605 * resource.c (next_insn_no_annul): Likewise.
9607 * cse.c (rtx_cost): Remove multiplication by power of 2 special
9610 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9612 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9613 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9614 (possibly) work around broken /bin/sh.
9616 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9618 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9619 . as N64/N32 libgcc_s.so subdirs.
9621 2002-05-10 David S. Miller <davem@redhat.com>
9623 * config/sparc/sparc.md: Use define_constants for unspec numbers.
9625 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9627 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9629 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9630 * doc/rtl.texi: Document these macros more accurately.
9631 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9632 JUMP_INSNs and CALL_INSNs.
9633 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9634 or INSN_FROM_TARGET_P if the code is appropriate.
9636 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
9638 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9639 before using SYMBOL_REF_FLAG (addr).
9641 * config/avr/avr-protos.h (avr_io_address_p): Declare.
9642 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9643 Make non-static. Update all callers.
9644 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9645 New insns to clear/set/test a single bit in I/O address space.
9647 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9649 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9651 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9653 * Makefile.in: Update.
9654 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9655 builtin_define_std): New.
9656 (c_common_init): Register CPP builtins callback.
9657 * c-common.h (flag_iso, flag_undef): New.
9658 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9659 * c-lex.c: Don't include target.h.
9660 (cb_register_builtins): Move to c-common.c.
9661 (init_c_lex): Don't register hook here.
9662 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9663 (cpp_define, cpp_assert): Remove.
9664 * gcc.c (cc1_options): Pass -undef to front end.
9665 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9666 (TARGET_INITIALIZER): Update.
9667 * target.h (struct cpp_reader): Don't predeclare.
9668 (struct gcc_target): Remove cpp builtin hook.
9669 * tree.c (default_register_cpp_builtins): Remove.
9673 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9675 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9677 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9679 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9680 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9682 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9684 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9685 * config/sparc/libgcc-sparc-glibc.ver: New file.
9686 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9687 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9689 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9692 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9693 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9694 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9696 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9697 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9698 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9699 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9701 2002-05-09 Richard Henderson <rth@redhat.com>
9703 * config/ia64/ia64.md: Use define_constants for unspec numbers.
9704 * config/ia64/ia64.c: Likewise.
9706 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
9708 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9709 (save_restore_insns): Likewise.
9710 (mips_expand_prologue, mips_expand_epilogue): Update callers.
9711 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9713 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
9715 * athlon.md, k6.md, pentium.md, ppro.md): New files.
9716 * i386.md: Move scheduling information into new files.
9718 * i386.md (type attribute): Add "rotate" for rotate insns.
9719 (rotate insns): Set type to "rotate".
9720 (various attributes and function units): Treat rotate like shift.
9721 (pent_pair attribute): Only rotates by one bit position are
9723 (sbb insns): Explicitly set pent_pair attribute on a couple
9724 that were missing it.
9726 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9728 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9729 make sure that buffer starts on odd word address.
9730 (sh_va_arg): Skip odd fp registers when reading a double precision
9733 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9735 * tree.h (preserve_data, object_permanent_p, type_precision):
9738 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9740 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9741 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9743 * cpp.texi: Update for removal of obsolete features.
9745 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
9746 Jeffrey A Law (law@redhat.com)
9748 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
9749 the DFA interface for Pentium processors.
9750 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9751 (attr_pent_pair, ix86_pent_find_pair): Remove.
9752 (ix86_sched_reorder_pentium): Remove.
9753 (ix86_sched_reorder): Remove reordering for Pentium.
9754 * i386.md (Pentium scheduling): Rewrite using DFA description.
9756 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
9758 * cfganal.c (can_fallthru): Fix fast path.
9759 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9760 with edges to the next block.
9762 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
9763 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
9765 * final.c (end_final): Use C trees to output data structures for profiling.
9767 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
9768 (profile.o): New dependency profile.h
9769 (final.o): New dependency profile.h
9770 * profile.h: New file. New global structure profile_info.
9771 * final.h (count_edges_instrumented_now): Declare.
9772 (current_function_cfg_checksum): Declare.
9773 (function_list): New structure.
9774 (functions_head, functions_tail): New static variables.
9775 (end_final): Emits more data, removed some -ax stuff.
9776 (final): Stores function names and chcksums.
9777 * gcov-io.h (__write_gcov_string): New function.
9778 (__read_gcov_string): New function.
9779 * gcov.c (read_profile): New function.
9780 (create_program_flow_graph): Uses read_profile instead of reading
9782 (read_files): Removed da_file checking, it's done by read_profile now.
9783 * libgcc2.c (bb_function_info): New structure.
9784 (bb): New field in structure, removed some -ax stuff.
9785 (__bb_exit_func): Changed structure of da_file.
9786 * profile.c (count_edges_instrumented_now): New global variable.
9787 (current_function_cfg_checksum): New global variable.
9788 (max_counter_in_program): New global variable.
9789 (get_exec_counts): New function.
9790 (compute_checksum): New function.
9791 (instrument_edges): Sets count_edges_instrumented_now.
9792 (compute_branch_probabilities): Uses get_exec_counts instead of
9794 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
9795 (init_branch_prob): Removed da_file checking, done in get_exec_counts
9797 (end_branch_prob): Removed da_file checking, done in get_exec_counts
9799 * gcov.texi: Updated information about gcov file format.
9801 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
9803 * sbitmap.c: Fix formatting.
9805 * scan-decls.c: Likewise.
9806 * sched-deps.c: Likewise.
9807 * sched-ebb.c: Likewise.
9808 * sched-rgn.c: Likewise.
9809 * sched-vis.c: Likewise.
9810 * sdbout.c: Likewise.
9811 * sibcall.c: Likewise.
9812 * simplify-rtx.c: Likewise.
9814 * ssa-ccp.c: Likewise.
9815 * ssa-dce.c: Likewise.
9817 * stor-layout.c: Likewise.
9818 * stringpool.c: Likewise.
9820 2002-05-09 David S. Miller <davem@redhat.com>
9822 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
9824 2002-05-07 David S. Miller <davem@redhat.com>
9826 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
9827 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
9828 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
9829 library implementation clobbers the output before the inputs
9830 are fully consumed, use stack temporary for the output.
9832 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
9834 * config/netbsd.h (CPP_SPEC): Remove.
9835 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
9836 * config/i386/netbsd.h (CPP_SPEC): Define.
9837 * config/ns32k/netbsd.h (CPP_SPEC): Define.
9838 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
9839 * config/sparc/netbsd.h (CPP_SPEC): Define.
9840 * config/vax/netbsd.h (CPP_SPEC): Define.
9842 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
9844 * read-rtl.c: Fix formatting.
9846 * recog.c: Likewise.
9847 * regclass.c: Likewise.
9848 * regmove.c: Likewise.
9849 * reg-stack.c: Likewise.
9850 * reload1.c: Likewise.
9851 * reload.c: Likewise.
9852 * resource.c: Likewise.
9853 * rtlanal.c: Likewise.
9855 * rtl-error.c: Likewise.
9857 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9859 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
9860 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
9862 2002-05-08 Bernd Schmidt <bernds@redhat.com>
9864 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
9865 use __SSE2__ macro instead.
9866 * config/i386/xmmintrin.h: Likewise.
9868 2002-05-08 Janis Johnson <janis187@us.ibm.com>
9870 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
9871 and use it in all invocations of these macros. Clean up comments.
9872 * rtl.c (rtl_check_failed_flag): Add an argument for the name
9873 of the flag access macro whose check failed.
9874 * doc/rtl.texi (Flags): Document additional flag uses.
9876 2002-05-08 Robert Spier <rspier@pobox.com>
9877 Neil Booth <neil@daikokuya.demon.co.uk>
9879 PR preprocessor/6521
9880 * cppfiles.c (handle_missing_header): Don't do anything
9881 different for <> includes.
9883 * cppopts.texi: Update documentation for -MG.
9885 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
9887 * cpplex.c (cpp_interpret_charconst): Truncate as well as
9890 * cpp.texi: Clarify multichar charconst valuation.
9892 2002-05-08 Mark Mitchell <mark@codesourcery.com>
9894 * doc/invoke.texi: Document -mwindiss option.
9896 2002-05-08 Jason Merrill <jason@redhat.com>
9898 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
9900 * dwarf2out.c (gen_type_die): Abort on broken recursion.
9903 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
9906 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
9908 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
9909 little-endian multilibs to override arm/thumb multilibs.
9910 Do not build hardware floating point multilibs, nor apcs-26
9911 multilibs for the Thumb.
9913 2002-05-08 Mark Mitchell <mark@codesourcery.com>
9916 * varasm.c (mark_weak): New function.
9917 (merge_weak): Use it. Do not call declare_weak.
9918 (declare_weak): Use merge_weak.
9920 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
9922 * cse.c (dead_libcall_p): Update counts.
9923 (delete_trivially_dead_insns): Update call of dead_libcall_p.
9925 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
9927 * cfglayout.c (function_tail_eff_head): Rename to ...
9928 (function_footer): ... this one.
9929 (unlink_insn_chain): New functions.
9930 (label_for_bb): Only call block_label and emit debug message.
9931 (record_effective_endpoints): Actually unlink the headers and footers.
9932 (fixup_reorder_cahin): Re-insert the unlinked sequences.
9933 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
9934 * cfglayout.h (struct reorder_block_def): New fields footer/header;
9935 remove eff_head/eff_end.
9936 * rtl.h (set_first_insn): Declare.
9937 * emit-rtl.c (set_first_insn): New function.
9939 * cfglayout.c (fixup_reorder_chain): Dump duplicated
9940 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9941 cfg_layout_duplicate_bb): New global function.
9942 (duplicate_insn_chain): New static function.
9943 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9944 cfg_layout_duplicate_bb): Declare.
9945 (struct reorder_block_def): Add "original" field.
9946 * emit-rtl.c (emit_copy_of_insn_after): New function.
9947 * rtl.h (emit_copy_of_insn_after): Declare.
9949 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
9950 (fixup_reorder_chain): properly handle edges to exit block.
9952 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9953 Jan Hubicka <jh@suse.cz>
9955 * basic-block.h (note_prediction_to_br_prob): declare.
9956 * c-semantics.c: Inlucde predit.h
9957 (expand_stmt): predict GOTO_STMT as not taken.
9958 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
9959 (cleanup_cfg): Do not free tail_recursion_list.
9960 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
9961 (flow_delete_block): Kill predictions past end of basic block.
9962 * output.h (delete_unreachable_blocks): Declare.
9963 * predict.c (predicted_by_p, process_note_predictions,
9964 process_note_prediction, last_block_p): New function.
9965 (estimate_probability): Bypass loop on PRED_CONTINUE;
9966 do not handle noreturn heuristics; kill PRED_RETURN; add
9968 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
9969 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
9970 * predict.h (IS_TAKEN): New constant.
9971 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
9972 * rtl.c (NOTE_INSN_PREDICTION): New.
9973 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
9975 (insn_note): add NOTE_INSN_PREDICTION.
9976 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
9977 CFG; free tail_recursion_label_list.
9978 * stmt.c: Include predict.h;
9979 (return_prediction): New.
9980 (expand_value_return): Use it.
9981 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
9983 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
9985 * config/mips/mips.md: Name the unspecs with define_constant.
9986 (*HILO_delay): Rename to 'hilo_delay' (no star).
9987 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
9988 (reload_outdi, reload_outsi): Likewise.
9990 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
9992 * toplev.c: Fix formatting.
9994 2002-05-07 Janis Johnson <janis187@us.ibm.com>
9996 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
9997 * configure.in (ac_rtlflag_checking): New.
9998 * doc/install.texi (--enable-checking): Document RTL flag checking.
10000 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10002 * c-common.c (c_common_init): Set options->unsigned_wchar.
10003 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
10004 group target dependencies.
10005 (init_builtins, cpp_handle_option): Update.
10006 * cpplex.c (cpp_interpret_charconst): Update.
10007 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
10008 signed_char to unsigned_char, group target dependencies.
10009 * defaults.h (WCHAR_UNSIGNED): Remove.
10010 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
10012 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
10013 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
10014 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
10015 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
10016 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
10018 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
10020 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10022 * fixinc/inclhack.def (windiss_math1): New fix.
10023 (windiss_math2): Likewise.
10024 (windiss_valist): Likewise.
10025 * fixinc/fixincl.x: Regenerated.
10027 2002-05-07 Andreas Jaeger <aj@suse.de>
10029 * genautomata.c (output_internal_min_issue_delay_func): Add
10030 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
10031 (output_internal_trans_func): Likewise.
10033 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
10035 * pa.c (hppa_profile_hook): Use force_reg to get the address
10036 of the profile hook into an appropriate pseudo register.
10038 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10040 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
10041 (LINK_START_SPEC): Handle it.
10042 (LINK_OS_SPEC): Likewise.
10043 (CPP_SPEC): Likewise.
10044 (STARTFILE_SPEC): Likewise.
10045 (LIB_SPEC): Likewise.
10046 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
10048 (CRTSAVRES_DEFAULT_SPEC): New macro.
10049 (LIB_WINDISS_SPEC): New macro.
10050 (CPP_OS_WINDISS_SPEC): Likewise.
10051 (STARTFILE_WINDISS_SPEC): Likewise.
10052 (ENDFILE_WINDISS_SPEC): Likewise.
10053 (LINK_START_WINDISS_SPEC): Likewise.
10054 (LINK_OS_WINDISS_SPEC): Likewise.
10055 * config/rs6000/windiss.h: New file.
10057 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
10059 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
10061 2002-05-06 David S. Miller <davem@redhat.com>
10063 * config/sparc/sparc.md (shift insns): Do not mask off
10064 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
10067 2002-05-06 Richard Henderson <rth@redhat.com>
10070 * expr.c (highest_pow2_factor_for_type): New.
10071 (expand_assignment): Use it.
10073 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
10075 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
10077 ("altivec_mfvscr"): Same.
10079 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10081 * rtl.h (struct rtx_def): Update comments.
10082 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
10083 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
10084 RTL_FLAG_CHECK macros with list of expected RTL codes.
10085 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
10086 (rtl_check_failed_flag): New.
10087 * reload1.c (reload): Use REG macro before changing rtx to MEM.
10088 (reload_cse_noop_set_p): Check rtx code before using access macro.
10089 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
10090 before using access macro.
10092 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10094 * doc/rtl.texi (Flags): Update to reflect current usage.
10096 2002-05-06 Roger Sayle <roger@eyesopen.com>
10099 * fold-const.c (sign_bit_p): New function.
10100 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
10101 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
10102 Reapply fold when converting (A & C) == C into (A & C) != 0.
10103 (fold_binary_op_with_conditional_arg): Fix typo in comment.
10105 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10107 * c-common.c (warn_multichar): New.
10108 (c_common_init): Set CPP's warn_multichar.
10109 * c-common.h (warn_multichar): New.
10110 * c-decl.c (warn_multichar): Remove.
10111 * c-lex.c (lex_charconst): Update.
10112 * c-tree.h (warn_multichar): Remove.
10113 * cppexp.c (eval_token): Sign-extend charconst value.
10114 * cppinit.c (cpp_create_reader): Set warn_multichar.
10115 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
10116 each character. Update prototype. Sign-extend the result.
10117 * cpplib.h: Fix conditions.
10118 (struct cpp_options): Add new warning flag.
10119 (cpp_interpret_charconst): Update prototype.
10121 * cpp.texi: Update documentation.
10123 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
10125 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
10126 Fix typo in usage of allof instead of unit.
10128 2002-05-06 Richard Henderson <rth@redhat.com>
10130 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
10131 and any jump or call for IN.
10133 2002-05-06 Bernd Schmidt <bernds@redhat.com>
10135 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
10137 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
10139 2002-05-06 Roger Sayle <roger@eyesopen.com>
10141 * fold-const.c (lshift-double): Cast the high word to an unsigned
10142 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
10143 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
10144 avoid compiler warning. (fold): Remove redundant code from
10145 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
10147 2002-05-06 Jeff Law <law@redhat.com>
10149 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
10150 * pa.c (pa_adjust_cost): Remove all true dependency cost
10151 adjustments. Also remove support for non-DFA scheduling.
10152 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
10153 to adjust true dependency costs. Update various comments.
10154 (7100lc, 7200, 7300 scheduling): Simplify by combining the
10155 FP ALU & MPY units into a single unit.
10157 2002-05-06 Catherine Moore <clm@redhat.com>
10159 * config/v850/v850.c (compute_register_save_size): Make sure
10160 to count all of the registers that will be saved.
10162 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10164 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
10166 2002-05-06 David S. Miller <davem@redhat.com>
10168 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
10169 allow result to overlap input operands in memory.
10171 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10174 * cpp.texi: Update multichar charconst docs.
10176 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10178 * cpplex.c (cpp_interpret_charconst): Sign-extend each
10179 character. Don't ignore excess characters. Treat
10180 multicharacter character constants as signed.
10181 (cpp_parse_escape): Clarify diagnostic.
10183 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10185 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
10186 use add instead of shift.
10187 (ashldi3_sp64): Likewise.
10188 (ashlsi3_const1, ashldi3_const1): Remove.
10189 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
10190 * config/sparc/sparc.c (const1_operand): New.
10192 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
10194 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
10196 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10199 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
10201 2002-05-05 Richard Henderson <rth@redhat.com>
10203 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
10204 memory latency adjustments.
10205 (alpha_variable_issue): Remove.
10206 (alpha_use_dfa_pipeline_interface): New.
10207 (alpha_multipass_dfa_lookahead): New.
10208 * config/alpha/alpha.md: Remove define_function_unit scheduling;
10209 include new dfa scheduling.
10210 (attr type): Add none.
10211 (blockage): Use it.
10212 * config/alpha/ev4.md: New.
10213 * config/alpha/ev5.md: New.
10214 * config/alpha/ev6.md: New.
10216 2002-05-05 David S. Miller <davem@redhat.com>
10218 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
10220 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
10222 * cse.c: Fix formatting.
10223 * emit-rtl.c: Likewise.
10225 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10227 * genautomata.c (initiate_states): Add additional guard to
10228 initialize `units_array'.
10230 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10232 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
10233 process_unit_to_form_the_same_automaton_unit_lists,
10234 form_the_same_automaton_unit_lists
10235 check_unit_distributions_to_automata): New prototypes and
10237 (check_automata): Rename it into `check_automata_insn_issues'.
10238 (unit_decl): New fields `the_same_automaton_unit' and
10239 `the_same_automaton_message_reported_p'.
10240 (unit_decl_t): New typedef.
10241 (the_same_automaton_lists): New gloval variable.
10242 (unit_regexp, unit_set_el, units_array, units_cmp,
10243 output_get_cpu_unit_code_func): Use the typedef.
10244 (evaluate_max_reserv_cycles): Increment
10245 `description->max_insn_reserv_cycles'.
10246 (initiate_states): Don't increment `max_cycles_num'.
10247 (transform_insn_regexps): Move code around transformation of
10248 regexps from `generate'.
10249 (generate): Remove call of `transform_insn_regexps'.
10250 (expand_automata): Call `transform_insn_regexps' and
10251 `check_unit_distributions_to_automata'. Check errors before
10254 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
10255 automaton `ultrasparc3_1'.
10257 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
10259 * c-common.c (c_common_init): Set up CPP arithmetic.
10260 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
10261 something reasonable for the host.
10262 (sanity_checks): Add checks.
10263 (cpp_read_main_file): Call sanity_checks() from here...
10264 (cpp_post_options): ... not here.
10265 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
10266 * cpplib.h (struct cpp_options): New member int_precision.
10268 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10270 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
10272 2002-05-04 David S. Miller <davem@redhat.com>
10274 * config/sparc/linux.h, config/sparc/linux64.h
10275 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
10277 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
10279 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
10281 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
10284 2002-05-05 Tim Josling <tej@melbpc.org.au>
10286 * treelang; New directory for new sample language treelang.
10288 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10290 * Makefile.in (c-lex.o): Update.
10291 * c-lex.c: Include target.h.
10292 (cb_register_builtins): New.
10293 (init_c_lex): Set builtins callback.
10294 * c-lex.h (cpp_define, cpp_assert): New prototypes.
10295 * cppinit.c (init_builtins): Use callback, including for
10297 * cpplib.h (struct cpp_callbacks): New member.
10298 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
10299 (TARGET_INITIALIZER): Update.
10300 * target.h (struct gcc_target): New hook.
10301 * tree.c (default_register_cpp_builtins): New.
10302 * tree.h (default_register_cpp_builtins): New.
10304 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
10306 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10308 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
10309 (cpp_post_options): Move sanity checks to...
10310 (sanity_checks): New.
10311 * cpplex.c (maybe_read_ucs): Fix prototype.
10312 (parse_string, cpp_parse_escape): Cast for %c format specifier.
10313 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
10316 2002-05-04 Bernd Schmidt <bernds@redhat.com>
10318 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
10319 builtins. Use V2DI patterns instead of TI for logical operations.
10320 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
10321 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
10322 (ix86_expand_builtins): Change the pattern used for movntdq.
10323 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
10324 sse2_nandv2di3): New patterns.
10325 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
10327 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
10328 (cvtdq2pd): Correct mode on operand 1.
10329 (sse2_umulsidi3): Describe without unspec.
10330 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
10332 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
10333 (ashlv2di3): Likewise, from sse2_ashlv2di3.
10334 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
10335 ashlv4si3, ashlv2di3): Use SImode for shift count.
10336 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
10337 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
10339 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
10341 (__m128i, __m128d): New macros.
10342 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
10343 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
10344 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
10345 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
10346 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
10347 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
10348 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
10349 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
10350 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
10351 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
10352 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
10353 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
10354 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
10355 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
10356 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
10357 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
10358 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
10359 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
10360 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
10361 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
10362 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
10363 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
10364 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
10365 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
10366 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
10367 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
10368 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
10369 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
10370 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10371 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10372 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10373 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10374 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10375 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10376 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10377 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10378 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10380 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
10381 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10383 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
10385 * dwarf2out.c: Fix formatting.
10386 * varasm.c: Likewise.
10388 2002-05-04 David Edelsohn <edelsohn@gnu.org>
10391 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10392 clobber and use result as temporary value.
10394 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
10396 * expr.c (force_operand): Use expand_simple_* to handle more
10399 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10401 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10402 and sign-extension.
10403 (lex_charconst): Update for change in prototype of
10404 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
10406 * cpphash.h (BITS_PER_CPPCHAR_T): New.
10407 * cppinit.c (cpp_create_reader): Initialize them for no
10408 change in semantics.
10409 (cpp_post_options): Add sanity checks.
10410 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10411 and truncation issues. Calculate in type cppchar_t.
10412 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10413 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
10414 run-time dependent precision correctly. Return whether the
10415 result is signed or not.
10416 * cpplib.c (dequote_string): Use cppchar_t; update.
10417 * cpplib.h (cppchar_signed_t): New.
10418 struct cpp_options): New precision members.
10419 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
10420 * cppexp.c (eval_token): Update.
10422 2002-05-03 David S. Miller <davem@redhat.com>
10424 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10425 * config/sparc/sparc.c (sparc_rtx_costs): New function
10426 implementing RTX_COSTS and CONST_COSTS.
10427 * config/sparc/sparc.h (CONST_COSTS): Delete.
10428 (RTX_COSTS_CASES): Define.
10429 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10432 * config/sparc/sparc.md (DFA schedulers): Split out...
10433 * config/sparc/cypress.md, config/sparc/hypersparc.md,
10434 config/sparc/sparclet.md, config/sparc/supersparc.md,
10435 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10437 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10438 checks on it, always defined for Sparc.
10440 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10441 Tweak, and add more detailed comments.
10443 2002-05-03 Zack Weinberg <zack@codesourcery.com>
10445 * Re-apply patch accidentally reverted with
10446 DFA scheduler merge: remove all rules and variables to slurp
10447 source files out of libiberty and rebuild them with HOST_CC.
10448 ($(HOST_PREFIX_1)varray.o): New rule.
10449 (genattrtab rule): Word wrap.
10451 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10453 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10454 (CPP_SUBTARGET_SPEC): Define.
10455 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10456 cpp_subtarget specs.
10457 (CPP_SPEC): Redefine to include %(cpp_subtarget).
10459 2002-05-03 David S. Miller <davem@redhat.com>
10461 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10462 * target.h (struct gcc_target): Delete cycle_display member.
10464 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10465 (rtx_needs_barrier): Delete reference to cycle_display unspec.
10466 (ia64_sched_reorder2): Mention need for cycle display handling
10467 once such notes exist.
10469 2002-05-03 Richard Henderson <rth@redhat.com>
10471 * real.c (etoasc): Strip most trailing zeros for clarity.
10472 * sched-vis.c: Include real.h.
10473 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10474 * Makefile.in (sched-vis.o): Add real.h.
10476 2002-05-03 David S. Miller <davem@redhat.com>
10478 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10481 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
10483 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10484 when we get an out of range literal.
10485 (altivec_expand_ternop_builtin): Same.
10486 (altivec_expand_unop_builtin): Same.
10487 (altivec_expand_builtin): Same, for dss.
10488 (altivec_expand_builtin): Use trees instead of rtl when
10489 determining literal argument validity.
10491 2002-05-03 David S. Miller <davem@redhat.com>
10493 Delete cycle display scheduling hook.
10494 * config/ia64/ia64.c (ia64_cycle_display,
10495 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10496 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10497 and use emit_insn_before instead of ia64_emit_insn_before.
10498 * config/ia64/ia64.md (unspec usage): Delete cycle display.
10499 (cycle_display): Delete insn pattern.
10500 * config/sparc/sparc.md (unspec usage): Delete cycle display.
10501 (cycle_display): Delete insn pattern.
10502 * config/sparc/sparc.c (sparc_cycle_display,
10503 TARGET_SCHED_CYCLE_DISPLAY): Delete.
10504 * doc/md.texi (cycle_display): Don't mention.
10505 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
10507 2002-05-03 Richard Henderson <rth@redhat.com>
10509 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10510 * recog.h: Declare them.
10512 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10513 * config/sparc/sparc.md: Use store_data_bypass_p instead.
10514 * config/sparc/sparc-protos.h: Update.
10516 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10518 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10519 -D__arch64__. Add -D_LP64.
10520 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10522 (CPP_ARCH64_SPEC): Likewise.
10523 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10524 (NO_BUILTIN_SIZE_TYPE): Undef.
10526 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
10528 * genautomata.c (min_issue_delay_pass_states): Change return type
10530 (min_issue_delay_pass_states): Change the algorithm.
10531 (min_issue_delay): Set up min_insn_issue_delay for the state.
10532 (output_min_issue_delay_table): Interchange the nested loops and
10533 and initiate min_insn_issue_delay for states.
10535 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
10537 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
10538 jump is simplejump.
10540 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
10542 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
10545 2002-05-03 Richard Henderson <rth@redhat.com>
10548 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10549 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10550 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10551 code before JUMP, not EARLIEST.
10553 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
10555 * c-format.c (check_format_info_main): Don't check for presence of
10556 parameter for * width until after operand number has been read,
10557 and only check for it if format parameters are available.
10560 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10562 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10563 (LINK_SPEC): Undef before defining.
10565 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10567 PR preprocessor/6489
10568 * tradcpp.c (fixup_newlines): New.
10569 (main, finclude): Use it.
10571 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
10573 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10574 * config/mips/mips.c (mips_unique_section): Strip encoding from
10577 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10579 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10582 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10584 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10585 (Specific): Removed buildstats references.
10586 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10587 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10588 Accomodate Solaris versions beyond 8.
10589 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10590 (Specific, *-*-solaris2.8): Removed, obsolete.
10592 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10595 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10596 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10597 fill leaf_reg_remap with identity.
10598 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10600 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10602 * config/h8300/crti.asm: Remove trailing spaces.
10603 * config/h8300/h8300.c: Likewise.
10604 * config/h8300/lib1funcs.asm: Likewise.
10606 2002-05-02 Jason Merrill <jason@redhat.com>
10608 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10609 * c-decl.c (c_init_decl_processing): Use it.
10610 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10611 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10612 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10614 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10616 * regrename.c: Fix formatting.
10617 * tree.c: Likewise.
10619 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
10621 * i386.md (attribute memory): Handle compares properly.
10623 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
10625 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
10628 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
10630 * function.c: Fix formatting.
10632 2002-05-02 Jan Hubicka <jh@suse.cz>
10634 * haifa-sched.c (schedule_insn): Print table of instructions and
10636 (sched_block): Do not print ready list at verbosity level 1.
10637 * sched-vis.c (print_insn): Make global.
10638 * sched-ebb.c (ebb_print_insn): Rename from...
10639 (print_insn): ... this one.
10640 * sched-int.h (print_insn): Declare
10642 2002-05-02 Richard Henderson <rth@redhat.com>
10644 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10645 emitted by cycle_display.
10647 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
10649 * doc/install.texi (*-*-freebsd*): Update to latest status.
10651 2002-05-02 Jakub Jelinek <jakub@redhat.com>
10654 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10655 * config/float-sparc.h: Assume 128-bit long double if
10656 __LONG_DOUBLE_128__ is defined.
10658 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
10660 * genattrtab.c (write_function_unit_info): Add a dummy element
10661 when num_units == 0.
10663 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10665 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10666 TYPE_MODE (double_type_node) instead of DFmode.
10668 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
10670 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10672 * toplev.c (rest_of_compilation): Revert Richard's patch.
10674 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10676 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10678 2002-05-02 Catherine Moore <clm@redhat.com>
10680 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10682 2002-05-02 Kazu Hirata <kazu@hxi.com>
10684 * combine.c: Fix comment typos.
10685 * expr.c: Likewise.
10686 * genautomata.c: Likewise.
10687 * stmt.c: Likewise.
10688 * tree.h: Likewise.
10690 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
10692 * doc/install.texi: State GNAT version requirements.
10694 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
10696 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10697 of the frame pointer or arg pointer register which strict register
10698 checking is not enabled.
10700 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
10702 * gcc.dg/altivec-8.c: New.
10704 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10705 PRE_INC and PRE_DEC for altivec modes.
10707 2002-05-01 Bruce Korb <bkorb@gnu.org>
10709 * fixinc/check.tpl(set-writable): make sure the function exists first
10710 * fixinc/inclhack.def(alpha_assert): fix test_text
10711 * fixinc/tests/base/assert.h: add in missing result
10713 2002-05-01 Jeff Law <law@redhat.com>
10715 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10718 2002-05-01 Joel Brobecker <brobecker@gnat.com>
10720 * dbxout.c (dbxout_type): Emit size information for range types,
10721 as well, but only when using GDB extensions.
10723 2002-05-01 Richard Henderson <rth@redhat.com>
10725 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10726 target-independent gnu binutils date test.
10728 2002-05-01 Richard Henderson <rth@redhat.com>
10730 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10731 info before expunging the block.
10733 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10735 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10736 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
10737 -M -or -MM is in effect.
10739 2002-05-01 Zack Weinberg <zack@codesourcery.com>
10741 * config.gcc: Correct test of --enable-obsolete. Obsolete all
10742 A29k configurations.
10743 * doc/install.texi: Update to match.
10745 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10748 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10749 for duplicates. Always loop over whole list.
10751 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10753 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10755 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10757 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10760 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10762 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10764 2002-05-01 David Edelsohn <edelsohn@gnu.org>
10766 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10767 (nabs_nopower): Same.
10768 (floatdisf2): New pattern.
10769 (absdi2): Convert to define_insn_and_split.
10771 (trunctfsf2): Same.
10772 (floatditf2): Same.
10773 (floatsitf2): Same.
10774 (fix_trunctfdi2): Same.
10775 (fix_trunctfsi2): Same.
10777 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
10779 * doc/install.texi: Update Texinfo version requirement
10782 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10784 PR target/6512, PR target/5628
10785 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
10786 when memory is not aligned.
10787 (movdf_insn_v9only_vis): Likewise.
10788 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
10789 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
10790 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
10792 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
10794 * gcc.dg/altivec-7.c: New.
10796 * config/rs6000/altivec.h: Cleanup.
10798 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
10800 * doc/invoke.texi (Option Summary): Add -mvrsave=.
10801 (RS/6000 and PowerPC Options): Document -mvrsave=.
10803 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
10804 (rs6000_altivec_vrsave_string): Same.
10805 (rs6000_override_options): Call rs6000_parse_vrsave_option.
10806 (rs6000_parse_vrsave_option): New.
10807 (rs6000_stack_info): Only generate vrsave instructions when
10808 TARGET_ALTIVEC_VRSAVE.
10810 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
10811 (rs6000_altivec_vrsave_string): Define extern.
10812 (rs6000_altivec_vrsave): Same.
10813 (TARGET_ALTIVEC_VRSAVE): New.
10815 2002-04-30 Richard Henderson <rth@redhat.com>
10818 * toplev.c (rest_of_compilation): Don't run cross-jump before
10821 2002-04-30 Tom Rix <trix@redhat.com>
10823 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
10824 check which_alternative.
10826 2002-04-30 Kazu Hirata <kazu@hxi.com>
10828 * cpplex.c: Fix comment formatting.
10829 * function.c: Likewise.
10830 * integrate.c: Likewise.
10831 * regrename.c: Likewise.
10832 * sibcall.c: Likewise.
10833 * simplify-rtx.c: Likewise.
10834 * tree-inline.c: Likewise.
10836 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
10838 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
10839 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
10840 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
10841 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
10842 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
10843 * pa/x-ada: New file. Define ADA_CFLAGS.
10845 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
10847 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
10848 from MMIX_LAST_REGISTER_FILE_REGNUM.
10849 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
10850 (struct machine_function): New member highest_saved_stack_register
10851 previously static variable in mmix.c.
10852 (MACHINE_DEPENDENT_REORG): Define.
10853 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
10854 (MMIX_OUTPUT_REGNO): New.
10855 (mmix_target_asm_function_prologue): Move calculation of last used
10856 saved-stack-register into...
10857 (mmix_machine_dependent_reorg): New function. Update to also handle
10859 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
10860 register names, simplify somewhat by new variable regno.
10861 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
10863 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
10864 emitting register names.
10865 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
10866 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
10867 Remove fixed FIXME.
10868 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
10871 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
10873 2002-04-30 Richard Henderson <rth@redhat.com>
10875 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
10876 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
10877 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
10878 emit_tfmode_cvt): New.
10879 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
10880 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
10881 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
10882 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
10883 * config/sparc/sparc-protos.h: Update.
10885 2002-04-30 Janis Johnson <janis187@us.ibm.com>
10887 * install.texi (Final install): Add to the list of info to include
10888 in a report of a successful bootstrap, and add link to 3.1 list.
10890 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
10892 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
10893 (mode): Add vector modes
10894 (i387): Kill attribute.
10895 (unit): New attribute.
10896 (length_immediate): Grok new types.
10897 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
10898 (modrm): Use "unit".
10899 (memory): Handle MMX/SSE properly.
10900 (scheduling descriptions): Kill uses of fop1.
10901 (sse, mmx, fp patterns): Set type and mode properly.
10903 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
10905 * pa.c (override_options): Default to PA8000 scheduling.
10906 * doc/invoke.texi (HP-PA options): Mention newly added 7300
10907 scheduling parameter.
10909 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
10910 handling of double precision multiplies.
10912 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
10913 fpdiv and fpsqrt instructions.
10914 (7200 & 7300 scheduling): Fix typo in handling of
10915 store-load and store-store penalties.
10917 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10919 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
10920 mips. Add two missing commas.
10922 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
10924 * doc/contrib.texi (Contributors): Update Paolo Carlini's
10925 and Benjamin Kosnik's entries.
10927 2002-04-29 David S. Miller <davem@redhat.com>
10929 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
10930 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
10931 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
10932 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10934 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10936 * combine.c (find_split_point): Use gen_int_mode.
10938 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
10940 Merging code from dfa-branch:
10942 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
10944 * genautomata.c (output_reserv_sets): Fix typo.
10946 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
10948 * genautomata.c (output_reserv_sets): Remove
10949 next_cycle_output_flag.
10951 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
10953 * sched-rgn.c (init_ready_list): Make the DFA code handle
10954 USE/CLOBBER insns in the same way as the traditional
10956 (new_ready): Similarly..
10958 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
10960 * haifa-sched.c (schedule_block): Change the DFA state only after
10963 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
10965 * pa.c (hppa_use_dfa_pipeline_interface): New function.
10966 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
10967 (override_options): Add PA7300 scheduling support.
10968 (pa_adjust_cost): Update various comments. Properly
10969 handle anti and output dependencies when using the
10971 (pa_issue_rate): Add PA7300 scheduling support.
10972 (pa_can_combine_p): Call extract_insn before calling
10973 constrain_operands (taken from mainline tree).
10974 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
10975 * pa.md (cpu attr): Add 7300. Rewrite pipeline
10976 descriptions using DFA descriptions. Add PA7300
10977 scheduling support.
10979 2002-03-30 David S. Miller <davem@redhat.com>
10981 Add UltraSPARC-III DFA scheduling support.
10982 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
10983 Update FP conditional move on register insn patterns to use it, as
10985 (define_attr cpu): Add ultrasparc3.
10986 (define_attr us3load_type): New, update integer load patterns to
10987 set it, as appropriate.
10988 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
10989 (rest): Add UltraSPARC3 scheduling description.
10990 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
10991 (PROCESSOR_ULTRASPARC3): New.
10992 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
10993 ({ASM,CPP}_CPU_SPEC): Likewise.
10994 (REGISTER_MOVE_COST): Likewise.
10995 (RTX_COSTS): Likewise.
10996 * config/sparc/sparc.c (sparc_override_options,
10997 sparc_initialize_trampoline, sparc64_initialize_trampoline,
10998 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10999 sparc_issue_rate): Likewise.
11000 * config/sparc/sol2.h: Likewise.
11001 * config/sparc/sol2-sld-64.h: Likewise.
11002 * config/sparc/linux64.h: Likewise.
11004 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
11006 * doc/md.texi: Add comments about usage the latency time for the
11007 different dependencies and about case when two or more conditions
11008 in different define_insn_reservations returns TRUE for an insn.
11010 * doc/md.texi: Add reference for automaton based pipeline
11013 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
11015 * doc/passes.texi: Add missed information about genattrtab.
11017 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
11019 * genautomata.c (output_automata_list_transition_code): Check
11020 automata_list on NULL.
11022 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
11024 * genautomata.c (output_insn_code_cases,
11025 output_automata_list_min_issue_delay_code,
11026 output_automata_list_transition_code,
11027 output_automata_list_state_alts_code): Comment the functions.
11029 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
11031 * genautomata.c (automata_list_el_t): New typedef.
11032 (get_free_automata_list_el,free_automata_list_el,
11033 free_automata_list, automata_list_hash, automata_list_eq_p,
11034 initiate_automata_lists, automata_list_start, automata_list_add,
11035 automata_list_finish, finish_automata_lists,
11036 output_insn_code_cases, output_automata_list_min_issue_delay_code,
11037 output_automata_list_transition_code,
11038 output_automata_list_state_alts_code, add_automaton_state,
11039 form_important_insn_automata_lists): New functions and prototypes.
11040 (insn_reserv_decl): Add members important_automata_list and
11042 (ainsn): Add members important_p.
11043 (automata_list_el): New structure.
11044 (first_free_automata_list_el, current_automata_list,
11045 automata_list_table): New global variables.
11046 (create_ainsns): Initiate member important_p.
11047 (output_internal_min_issue_delay_func): Generate the switch and
11048 call output_insn_code_cases.
11049 (output_internal_trans_func, output_internal_state_alts_func):
11051 (generate): Call initiate_automata_lists.
11052 (automaton_states): New global variable.
11053 (expand_automata): Call form_important_insn_automata_lists.
11054 (write_automata): Call finish_automata_lists.
11056 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
11058 * genautomata.c (add_excls, add_presence_absence): Check that
11059 cpu units in the sets belong the same automaton.
11061 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
11062 about that cpu units in the sets belong the same automaton.
11064 * doc/md.texi: Ditto.
11066 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
11067 Nitin Gupta <niting@noida.hcltech.com>
11069 * config/sh/sh.c (sh_use_dfa_interface): New function.
11071 (sh_issue_rate): New Function.
11072 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
11073 TARGET_SCHED_ISSUE_RATE: define.
11075 * config/sh/sh.md: Add DFA based pipeline description for SH4.
11077 (define_attr insn_class): New attribute used for DFA
11079 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
11080 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
11081 cmpeqdi_t): Likewise.
11083 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
11084 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
11086 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
11088 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11090 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
11093 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11095 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
11096 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
11098 (output_dfa_start_func): Initiate new variable insn_codes_length,
11099 (write_automata): Output definition of the new variable.
11101 2001-10-02 David S. Miller <davem@redhat.com>
11103 * haifa-sched.c (advance_one_cycle): New function.
11104 (schedule_block): Use it.
11105 (queue_to_ready): Use it, and also make sure to advance the DFA
11106 state on all stall cycles, not just those where insn_queue links
11109 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
11111 * haifa-sched.c (max_issue): Remove last_p argument. Only return
11112 non-zero if the highest-priority instruction could be scheduled.
11113 (choose_ready): Remove last argument from max_issue call.
11115 2001-09-28 David S. Miller <davem@redhat.com>
11117 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
11118 ultrasparc and 3 for other multi-issue sparcs.
11120 2001-09-27 David S. Miller <davem@redhat.com>
11122 * config/sparc/sparc.md (cycle_display): New pattern.
11123 * config/sparc/sparc.c (sparc_cycle_display): New.
11124 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
11126 2001-09-25 David S. Miller <davem@redhat.com>
11128 Convert all of Sparc scheduling to DFA
11129 * config/sparc/sparc.md: Kill all define_function_unit
11130 directives and replace with DFA equivalent.
11131 * config/sparc/sparc.c (ultrasparc_adjust_cost,
11132 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
11133 ultra_fpmode_conflict_exists, ultra_find_type,
11134 ultra_build_types_avail, ultra_flush_pipeline,
11135 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
11136 ultrasparc_variable_issue, ultrasparc_sched_init,
11137 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
11138 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
11139 ultra_cur_hist, ultra_cycles_elapsed): Kill.
11140 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11141 ultrasparc_store_bypass_p): New.
11142 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
11145 2001-09-24 David S. Miller <davem@redhat.com>
11147 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
11148 ready->vec[foo] not ready[foo].
11150 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11152 * doc/md.texi: Correct examples for define_insn_reservations
11155 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11157 * genautomata.c (create_automata): Print message about creation of
11159 (generate): Remove printing meease about creation of
11162 2001-09-05 David S. Miller <davem@redhat.com>
11164 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11165 * config/sparc/linux64.h: Likewise.
11167 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
11169 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
11170 schedule_block, sched_init, sched_finish): Add missed calls of
11171 use_dfa_pipeline_interface.
11173 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
11176 * sched-vis.c (get_visual_tbl_length): Ditto.
11178 2001-08-27 Richard Henderson <rth@redhat.com>
11180 * genattr.c (main): Emit state_t even when not doing scheduling.
11182 2001-08-27 Richard Henderson <rth@redhat.com>
11184 * genautomata.c (expand_automata): Always create a description.
11186 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
11188 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
11189 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
11190 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
11193 * genattr.c (main): New variable num_insn_reservations. Increase
11194 it if there is DEFINE_INSN_RESERVATION. Output automaton based
11195 pipeline hazard recognizer interface.
11197 * genattrtab.h: New file.
11199 * genattrtab.c: Include genattrtab.h.
11200 (attr_printf, check_attr_test, make_internal_attr,
11201 make_numeric_value): Move protypes into genattrtab.h. Define them
11203 (num_dfa_decls): New global variable.
11204 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
11205 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
11206 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
11207 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
11209 * genautomata.c: New file.
11211 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
11213 * sched-int.h: (curr_state): Add the external definition for
11214 automaton pipeline interface.
11215 (haifa_insn_data): Add comments for members blockage and units.
11217 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11218 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11219 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11220 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11221 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11222 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11223 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
11225 (TARGET_SCHED): Use the new macros.
11227 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
11228 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
11229 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
11230 dfa_bubble): New members in gcc_target.sched.
11232 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
11233 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
11234 (insn_queue): Redefine it as pointer to array.
11235 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
11237 (max_insn_queue_index_macro_value): New variable.
11238 (curr_state, dfa_state_size, ready_try): New varaibles for
11239 automaton interface.
11240 (ready_element, ready_remove, max_issue): New function prototypes
11241 for automaton interface.
11242 (choose_ready): New function prototype.
11243 (insn_unit, blockage_range): Add comments.
11244 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
11245 FUNCTION_UNITS_SIZE == 0.
11246 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
11247 actual_hazard, potential_hazard): Add comments.
11248 (insn_cost): Use cost -1 as undefined value. Remove
11249 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
11250 pipeline interface.
11251 (ready_element, ready_remove): New functions for automaton
11253 (schedule_insn): Add new code for automaton pipeline interface.
11254 (queue_to_ready): Add new code for automaton pipeline interface.
11255 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
11256 (debug_ready_list): Print newline when the queue is empty.
11257 (max_issue): New function for automaton pipeline interface.
11258 (choose_ready): New function.
11259 (schedule_block): Add new code for automaton pipeline interface.
11260 Print ready list before scheduling each insn.
11261 (sched_init): Add new code for automaton pipeline interface.
11262 Initiate insn cost by -1.
11263 (sched_finish): Free the current automaton state and finalize
11264 automaton pipeline interface.
11266 * sched-rgn.c: Include target.h.
11267 (init_ready_list, new_ready, debug_dependencies): Add new code for
11268 automaton pipeline interface.
11270 * sched-vis.c: Include target.h.
11271 (get_visual_tbl_length): Add code for automaton interface.
11272 (target_units, print_block_visualization): Add comments.
11274 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
11275 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
11276 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
11277 (getruntime.o, genautomata.o): New entries.
11278 (genattrtab.o): Add new dependency file genattrtab.h.
11279 (genattrtab): Add new dependencies. Link it with `libm.a'.
11280 (getruntime.o, hashtab.o): New entries for canadian cross.
11282 * doc/md.texi: Description of automaton based model.
11284 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
11286 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11287 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11288 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11289 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11290 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11291 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11292 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
11294 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
11295 MAX_DFA_ISSUE_RATE): New macro descriptions.
11297 * doc/contrib.texi: Add dfa based scheduler contribution.
11299 * doc/gcc.texi: Add more information about genattrtab.
11301 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11303 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
11304 adjust_address_nv call.
11306 2002-04-29 Janis Johnson <janis187@us.ibm.com>
11308 * doc/install.texi (Testing): Provide additional information, and
11309 a stronger encouragement, for running the testsuites.
11311 2002-04-29 DJ Delorie <dj@redhat.com>
11313 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
11314 given in upper case.
11316 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11318 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
11319 Solaris 2 <widec.h> if missing.
11320 * fixinc/fixincl.x: Regenerate.
11321 * fixinc/tests/base/widec.h: New file.
11323 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
11325 * toplev.c (f_options): Add "profile" switch so that
11326 -fno-profile can be used to disable -p.
11328 2002-04-29 Bernd Schmidt <bernds@redhat.com>
11330 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
11332 * tree.c (build_common_tree_nodes_2): Likewise.
11333 * tree.h (enum tree_index): Likewise.
11334 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
11336 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
11338 (init_mmx_sse_builtins): Initialize SSE2 builtins.
11339 (ix86_expand_builtin): Add support for SSE2 builtins.
11340 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
11341 (VALID_SSE_REG_MODE): Use it.
11342 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
11343 (enum ix86_builtins): Add SSE2 builtins.
11344 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
11345 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
11346 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
11347 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
11348 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
11349 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
11350 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
11351 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
11352 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
11353 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
11354 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
11355 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
11356 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
11357 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11358 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
11359 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
11360 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
11361 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
11362 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
11363 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
11364 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
11365 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
11366 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
11367 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
11368 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
11369 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
11370 lfence_insn): New patterns.
11371 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11372 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11374 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
11376 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11378 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11380 * doc/contrib.texi (Contributors): Add Paolo Carlini and
11382 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11383 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11384 and CPU instead of cpu.
11386 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
11388 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11390 (lang_independent_options): Add -fif-conversion, -fif-conversion2
11391 (rest_of_compilation): Do if conversion only when asked for.
11392 (parse_options_and_default_flags): Set new variables to 1 for -O1
11393 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11395 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
11397 * i386.c (dbx64_register_map): Fix typo.
11399 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
11401 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11402 real_one_half, real_bb_freq_max): New static variables.
11403 (debug_profile_bbauxs): Kill.
11404 (process_note_predictions): Kill unused variable.
11405 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11407 (propagate_freq): Use REAL_ARITHMETICS.
11408 (estimate_bb_frequencies): Likevise; init new static variables.
11409 * Makefile.in (predict.o): Add dependency on real.h
11411 2002-04-28 David S. Miller <davem@redhat.com>
11414 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11415 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
11416 several {reads,writes} instead.
11417 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11420 2002-04-27 David S. Miller <davem@redhat.com>
11423 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11426 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11427 including signal.h and sys/ucontext.h, not needed.
11429 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
11431 * varasm.c (output_constant_def): Correct test for not calling
11432 ENCODE_SECTION_INFO for INTEGER_CST.
11434 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
11436 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11437 keep most cases as function eval_token.
11438 (eval_token): New function.
11439 (_cpp_parse_expr): Read token here for improved diagnostics.
11440 Don't use op_as_text. Detect bad ':' here.
11441 (reduce): Don't detect bad ':' here.
11442 (op_as_text): Remove.
11443 * cpphash.h (_cpp_test_assertion): Change prototype.
11444 * cpplib.c (_cpp_test_assertion): Change prototype.
11446 2002-04-28 Richard Henderson <rth@redhat.com>
11449 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11450 (ggc_mark_rtx_children): New.
11452 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11455 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11456 after call peepholes for UltraSPARC.
11457 (call + jump 64-bit peepholes): Remove.
11459 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11462 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11463 result as temporary value.
11465 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11468 * toplev.c (rest_of_compilation): Only run regrename and copy
11469 propagation if optimizing.
11471 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11473 PR optimization/6475
11474 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11475 register of REGNO_DECL (i).
11476 * Makefile.in (reload1.o): Add $(TREE_H).
11478 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
11480 * cppexp.c (lex): Update to use state.skip_eval.
11481 (struct op): Remove prio and flags members.
11482 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11483 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11484 (LEFT_ASSOC): New macro.
11485 (optab): New table of operator priorities and flags.
11487 (_cpp_parse_expr): Clean up logic. Return bool. Use a
11488 malloc-ed parser stack.
11489 (reduce): New; reduce the operator stack.
11490 (_cpp_expand_op_stack): Expand the operator stack as necessary.
11491 * cpphash.h (struct op): Predeclare.
11492 (struct cpp_reader): New members op_stack, op_limit.
11493 (struct lexer_state): New member skip_eval.
11494 (_cpp_parse_expr): Update.
11495 (_cpp_expand_op_stack): New.
11496 * cpplib.c (do_if): Update.
11497 * cppinit.c (cpp_create_reader): Create op stack.
11498 (cpp_destroy): And destroy it.
11499 * cpplib.h (CPP_LAST_CPP_OP): Correct.
11500 (TTYPE_TABLE): Correct.
11502 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11505 * c-decl.c (duplicate_decls): Call merge_weak.
11506 * c-pragma.c (apply_pragma_weak): Warn about misuse.
11507 * output.h (merge_weak): Prototype merge_weak.
11508 * varasm.c (merge_weak): New function.
11509 (declare_weak): Make sure we don't give an error on VAR_DECLs.
11510 Mark RTL with SYMBOL_REF_WEAK.
11512 2002-04-27 Kurt Garloff <garloff@suse.de>
11514 * tree-inline.c (inlinable_function_p): Improve heuristics
11515 by using a smoother function to cut down allowable inlinable size.
11516 * param.def: Add parameters max-inline-insns-single,
11517 max-inline-slope, min-inline-insns that determine the exact
11518 shape of the above function.
11519 * param.h: Likewise.
11521 2002-04-26 Richard Henderson <rth@redhat.com>
11523 * c-parse.in (malloced_yyss, malloced_yyvs): New.
11524 (yyoverflow): Re-add. Set them.
11525 (free_parser_stacks): New.
11526 * c-common.h: Declare it.
11527 * c-lex.c (c_common_parse_file): Call it.
11529 2002-04-26 Richard Henderson <rth@redhat.com>
11531 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11532 for fallthru search.
11534 2002-04-26 Eric Christopher <echristo@redhat.com>
11536 PR optimization/3700
11537 * config/mips/mips.c (mips_issue_rate): Define. New function.
11538 (TARGET_SCHED_ISSUE_RATE): Use.
11540 2002-04-25 David S. Miller <davem@redhat.com>
11543 * reorg.c (optimize_skip): Do not allow exception causing
11544 instructions to be considered for delay slots.
11545 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11546 (relax_delay_slots): Do not try to consider exception causing
11547 instructions as redundant.
11549 2002-04-26 Richard Henderson <rth@redhat.com>
11552 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11554 2002-04-26 Mark Mitchell <mark@codesourcery.com>
11557 * config/i386/i386.md (untyped_call): Return the value in a float
11558 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11561 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
11563 * tree.c (tree_int_cst_lt): Compare constants whose types differ
11564 in unsigned-ness correctly.
11566 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11568 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11569 portable runtime model.
11571 2002-04-26 Richard Henderson <rth@redhat.com>
11573 * c-parse.in (yyoverflow): Revert.
11575 2002-04-26 David Edelsohn <edelsohn@gnu.org>
11576 Richard Henderson <rth@redhat.com>
11578 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11579 result as temporary value.
11581 2002-04-26 Richard Henderson <rth@redhat.com>
11584 * c-common.c (fix_string_type): Split out of ...
11585 (combine_strings): ... here. Take a varray, not a tree list.
11586 (c_expand_builtin_printf): Use fix_string_type.
11587 * c-common.h: Update decls.
11588 * c-parse.in (string): Remove. Update all uses to use STRING
11589 instead, and not call combine_strings.
11590 (yylexstring): New.
11592 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11593 (build_asm_stmt): Likewise.
11594 * objc/objc-act.c (my_build_string): Use fix_string_type.
11595 (build_objc_string_object): Build varray for combine_strings.
11597 2002-04-26 Bo Thorsen <bo@suse.co.uk>
11599 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11602 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
11604 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11605 (HAVE_NO_R_OPERAND): Remove.
11606 (HAVE_VALUE): Remove.
11607 (op_to_prio): Update.
11608 (UNARY): Don't alter flags.
11609 (_cpp_parse_expr): want_value used to indicate whether
11610 a number or unary operator is expected next. Distinguish
11611 unary and binary +/-.
11612 (op_as_text): Update for unary operators.
11614 2002-04-25 Richard Henderson <rth@redhat.com>
11617 * c-parse.in (yyoverflow): New.
11619 2002-04-25 Richard Henderson <rth@redhat.com>
11622 * c-common.c (shorten_compare): Simplfy conditions leading to
11623 the generation of a warning.
11625 2002-04-25 Richard Henderson <rth@redhat.com>
11628 * expmed.c (extract_bit_field): Fall through to generic code rather
11629 than aborting on subreg special case.
11631 2002-04-25 David S. Miller <davem@redhat.com>
11633 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11634 for DECL being NULL.
11636 2002-04-25 Steve Christiansen <smc@us.ibm.com>
11638 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11640 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
11642 * c-decl.c (grokdeclarator): Remove outdated ??? note
11643 on invalid declaration of flexible array members.
11645 2002-04-25 Richard Henderson <rth@redhat.com>
11647 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11649 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
11651 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11652 needed by the compiler, even if they are used as global regs.
11654 2002-04-25 Matt Hiller <hiller@redhat.com>
11656 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11658 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11659 of the corresponding functions.
11660 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11663 2002-04-25 Matt Hiller <hiller@redhat.com>
11665 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11667 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11668 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11669 registers, adjust comment accordingly.
11670 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11671 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11672 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11673 for coprocessor registers.
11674 (ADDITIONAL_REGISTER_NAMES): Include
11675 ALL_COP_ADDITIONAL_REGISTER_NAMES.
11677 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11678 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11679 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11680 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11681 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11683 (mips_char_to_class): Adjust comment to include coprocessor
11684 constraint letters.
11686 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11688 (mips_reg_names, mips_regno_to_class): Include coprocessor
11690 (mips_sw_reg_names): Ditto, make non-static.
11691 (mips_move_1word): Handle moves to and from coprocessor registers.
11692 (mips_move_2words): Handle moves to and from coprocessor
11694 (mips_class_max_nregs, mips_register_move_cost): Handle
11695 coprocessor register classes.
11696 (override_options): Initialize mips_char_to_class and
11697 mips_hard_regno_mode_ok properly for coprocessor registers.
11699 * config/mips/mips.md (movdi_internal, movdi_internal2,
11700 movsi_internal1, movsi_internal2): Add constraint-sets for
11701 coprocessor registers.
11702 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11703 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11705 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11706 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11708 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11709 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11711 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11712 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11715 * doc/tm.texi: Document feature.
11717 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11719 * integrate.c (function_attribute_inlinable_p): Simplify.
11720 Check the table pointer is not NULL.
11722 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
11724 * doc/c-tree.texi: Fix typo in introduction.
11726 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11728 * c-common.h (c_common_parse_file): Update.
11729 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11730 * c-lex.c (YYDEBUG): Get from c-lex.h.
11731 (c_common_parse_file): Update.
11732 * c-lex.h (YYDEBUG, yydebug): New.
11733 * c-parse.in (YYDEBUG): Get from c-lex.h.
11734 (c_set_yydebug): Remove.
11735 * c-tree.h (c_set_yydebug): Remove.
11736 * langhooks-def.h (lhd_do_nothing_i): New.
11737 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11738 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11739 * langhooks.c (lhd_do_nothing_i): New.
11740 (lhd_set_yydebug): Remove.
11741 * langhooks.h (struct lang_hooks): Update.
11742 * toplev.c (set_yydebug): New.
11743 (compile_file): Update call to parse_file hook.
11744 (decode_d_option): Update.
11746 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11748 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
11750 * loop.c (load_mems): Don't change the interface of called functions.
11752 * calls.c (expand_call): Take current_function_pretend_args_size
11753 into account when setting argblock for sibcalls.
11755 2002-04-24 Matt Hiller <hiller@redhat.com>
11757 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11760 * cpplex.c (skip_line_comment): Process comment one multibyte
11761 character at a time rather than one char at a time, if
11763 (parse_string): Process string one multibyte character at a time
11764 rather than one char at a time, if appropriate.
11765 * c-lex.c (lex_string): Lex and copy multibyte strings
11767 * cpplib.h (cppchar_t): Change to unsigned.
11769 2002-04-24 Richard Henderson <rth@redhat.com>
11772 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11775 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
11777 * sh.c (sh_va_arg): If argument was passed by reference,
11778 dereference the pointer.
11780 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11782 * sh.md (divsi3_i4_media): Use match_operand for input values
11783 rather than hard registers.
11784 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
11785 unnecessarily through hard registers. Keep copies of pseudo
11786 registers outside of the libcall sequence.
11788 * sh.md (casesi_shift_media): Add modes.
11790 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
11793 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11795 * attribs.c (c_common_attribute_table): Move table and handlers
11797 (format_attribute_table, lang_attribute_table,
11798 lang_attribute_common): Remove.
11799 (init_attributes): Replace NULL pointers with pointers to the
11801 (handle_packed_attribute, handle_nocommon_attribute,
11802 handle_common_attribute, handle_noreturn_attribute,
11803 handle_noinline_attribute, handle_always_inline_attribute,
11804 handle_used_attribute, handle_unused_attribute,
11805 handle_const_attribute, handle_transparent_union_attribute,
11806 handle_constructor_attribute, handle_destructor_attribute,
11807 handle_mode_attribute, handle_section_attribute,
11808 handle_aligned_attribute, handle_weak_attribute,
11809 handle_alias_attribute, handle_visibility_attribute,
11810 handle_no_instrument_function_attribute, handle_malloc_attribute,
11811 handle_no_limit_stack_attribute, handle_pure_attribute,
11812 handle_deprecated_attribute, handle_vector_size_attribute,
11813 vector_size_helper): Move to c-common.c.
11814 * c-common.c (c_common_attribute_table,
11815 handle_packed_attribute, handle_nocommon_attribute,
11816 handle_common_attribute, handle_noreturn_attribute,
11817 handle_noinline_attribute, handle_always_inline_attribute,
11818 handle_used_attribute, handle_unused_attribute,
11819 handle_const_attribute, handle_transparent_union_attribute,
11820 handle_constructor_attribute, handle_destructor_attribute,
11821 handle_mode_attribute, handle_section_attribute,
11822 handle_aligned_attribute, handle_weak_attribute,
11823 handle_alias_attribute, handle_visibility_attribute,
11824 handle_no_instrument_function_attribute, handle_malloc_attribute,
11825 handle_no_limit_stack_attribute, handle_pure_attribute,
11826 handle_deprecated_attribute, handle_vector_size_attribute,
11827 vector_size_helper): Move from attribs.c.
11828 * c-common.h (c_common_attribute_table,
11829 c_common_format_attribute_table): New.
11830 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11831 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11832 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
11833 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
11834 (LANG_HOOKS_INITIALIZER): Update.
11835 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
11836 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
11837 * target.h: Update comment.
11838 * tree.c (default_target_attribute_table): Remove.
11839 * tree.h (default_target_attribute_table, format_attribute_table,
11840 lang_attribute_table, lang_attribute_common): Remove.
11842 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11843 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11845 2002-04-24 Jason Merrill <jason@redhat.com>
11847 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
11848 * dwarf2out.c (dwarf_attr_name): Support it.
11849 (gen_array_type_die): Emit it.
11850 (lookup_type_die): No special handling for VECTOR_TYPE.
11851 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
11853 2002-04-24 Richard Henderson <rth@redhat.com>
11855 * config/mips/mips.md (movdi_usd): Renumber.
11857 2002-04-24 David S. Miller <davem@redhat.com>
11860 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
11861 32-bit Sparc and current_function_returns_struct is true.
11863 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
11865 * loop.c (canonicalize_condition): Use gen_int_mode.
11867 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
11869 * config/rs6000/altivec.h: Cleanup file. Add non individual
11871 (vec_vaddubm): New.
11872 (vec_vadduhm): New.
11873 (vec_vadduwm): New.
11875 (vec_vaddcuw): New.
11876 (vec_vaddubs): New.
11877 (vec_vaddsbs): New.
11878 (vec_vadduhs): New.
11879 (vec_vadduws): New.
11880 (vec_vaddsws): New.
11890 (vec_vcmpbfp): New.
11891 (vec_vcmpequb): New.
11892 (vec_vcmpequh): New.
11893 (vec_vcmpequw): New.
11894 (vec_vcmpeqfp): New.
11895 (vec_vcmpgefp): New.
11896 (vec_vcmpgtub): New.
11897 (vec_vcmpgtsb): New.
11898 (vec_vcmpgtuh): New.
11899 (vec_vcmpgtsh): New.
11900 (vec_vcmpgtuw): New.
11901 (vec_vcmpgtsw): New.
11902 (vec_vcmpgtfp): New.
11903 (vec_vcmpgefp): New.
11908 (vec_vexptefp): New.
11913 (vec_lde): Add vector float variant.
11916 (vec_vlogefp): New.
11917 (vec_vmaddfp): New.
11918 (vec_vmhaddshs): New.
11940 (vec_vmladduhm): New.
11941 (vec_vmhraddshs): New.
11942 (vec_msumubm): New.
11943 (vec_vmsummbm): New.
11944 (vec_vmsumuhm): New.
11945 (vec_vmsumshm): New.
11946 (vec_vmsumuhs): New.
11947 (vec_vmsumshs): New.
11948 (vec_vmuleub): New.
11949 (vec_vmulesb): New.
11950 (vec_vmuleuh): New.
11951 (vec_vmulesh): New.
11952 (vec_vmuloub): New.
11954 (vec_vmulouh): New.
11955 (vec_vmulosh): New.
11956 (vec_vnmsubfp): New.
11959 (vec_vpkuhum): New.
11960 (vec_vpkuwum): New.
11962 (vec_vpkuhus): New.
11963 (vec_vpkshss): New.
11964 (vec_vpkuwus): New.
11965 (vec_vpkswss): New.
11966 (vec_vpkshus): New.
11967 (vec_vpkswus): New.
11974 (vec_vrsqrtefp): New.
11985 (vec_vspltisb): New.
11986 (vec_vspltish): New.
11987 (vec_vspltisw): New.
12001 (vec_vsububm): New.
12002 (vec_vsubuhm): New.
12003 (vec_vsubuwm): New.
12005 (vec_vsubcuw): New.
12006 (vec_vsububs): New.
12007 (vec_vsubsbs): New.
12008 (vec_vsubuhs): New.
12009 (vec_vsubshs): New.
12010 (vec_vsubuws): New.
12011 (vec_vsubsws): New.
12012 (vec_vsum4ubs): New.
12013 (vec_vsum4sbs): New.
12014 (vec_vsum4shs): New.
12015 (vec_vsum2sws): New.
12016 (vec_vsumsws): New.
12018 (vec_vupkhsb): New.
12019 (vec_vupkhpx): New.
12020 (vec_vupkhsh): New.
12021 (vec_vupklsb): New.
12022 (vec_vupklpx): New.
12023 (vec_vupklsh): New.
12026 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
12029 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
12030 added literals from substracted literals.
12031 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
12032 (fold) [associate]: Preserve MINUS_EXPR if needed.
12034 2002-04-23 Zack Weinberg <zack@codesourcery.com>
12036 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
12039 2002-04-23 Tom Tromey <tromey@redhat.com>
12041 * gcc.c: Added --resource. For PR java/6314.
12043 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12045 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
12046 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
12049 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12051 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
12053 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12055 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
12057 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
12058 (ix86_expand_clrstr): Fix typo.
12059 * loop.c (gen_load_of_final_value): New.
12060 (loop_givs_rescan, strength_reduce, check_dbra_loop):
12063 2002-04-23 Roger Sayle <roger@eyesopen.com>
12065 * builtins.c (builtin_memset_gen_str): New function.
12066 (expand_builtin_memset): Optimize the case of constant length, but
12069 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
12071 * config/rs6000/altivec.h (vec_step): Remove extraneous
12073 (vec_ctu): Cast return.
12075 2002-04-23 Alan Modra <amodra@bigpond.net.au>
12078 * function.h: (struct function): Add profile_label_no field.
12079 (current_function_profile_label_no): Define.
12080 * function.c: (profile_label_no): New static var.
12081 (expand_function_start): Increment it, and copy to
12082 current_function_profile_label_no.
12083 * output.h (profile_label_no): Delete.
12084 * final.c (profile_label_no): Delete.
12085 (profile_function): Use current_function_profile_label_no.
12086 (final_end_function): Don't increment profile_label_no here.
12087 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
12088 profile_label_no with current_function_profile_label_no.
12089 * config/pa/pa.c (current_function_number): Delete.
12090 (pa_output_function_prologue): Don't output profile label here.
12091 (hppa_profile_hook): Use label_no param rather than
12092 current_function_number.
12093 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
12094 * config/pa/pa.h: .. here.
12095 (FUNCTION_PROFILER): Output profile label here.
12097 2002-04-22 Eric Christopher <echristo@redhat.com>
12099 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
12100 patch of 2002-04-09 due to binutils issues.
12101 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
12103 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12105 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
12106 constraint to 'o' for m=r and r=m alternatives.
12107 ("*movv8hi_internal1"): Same.
12108 ("*movv16qi_internal1"): Same.
12109 ("*movv4sf_internal1"): Same.
12111 2002-04-22 Janis Johnson <janis187@us.ibm.com>
12113 * rtl.h (RTX_FLAG): New macro.
12114 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
12115 * final.c (alter_subreg): Use macro to access rtx flag.
12116 * integrate.c (copy_rtx_and_substitute): Use new access macro.
12117 * print-rtl.c (print_rtx): Use new access macro.
12119 * cse.c (insert): Check rtx code before accessing flag.
12121 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
12122 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
12123 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
12124 convert_const_symbol_ref, make_canonical, make_alternative_compare,
12125 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
12126 simplify_test_exp, optimize_attrs, simplify_by_exploding,
12127 find_and_mark_used_attributes, unmark_used_attributes,
12128 add_values_to_cover, simplify_with_current_value,
12129 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
12130 copy_rtx_unchanging, main): Use new access macros.
12132 2002-04-22 Tom Rix <trix@redhat.com>
12134 * expmed.c (init_expmed): Generate shifted constant once.
12136 2002-04-22 Zack Weinberg <zack@codesourcery.com>
12138 * c-lex.c (lex_charconst): Call convert to get constant in
12139 proper type; don't just smash the type field.
12142 * config.gcc: Add list of obsolete configurations. Disallow
12143 building these without --enable-obsolete.
12144 * doc/install.texi: Document --enable-obsolete and obsoletion
12145 policy. Mention obsoletion of individual targets in
12146 appropriate places.
12148 2002-04-22 Richard Henderson <rth@redhat.com>
12150 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
12152 2002-04-22 Mark Mitchell <mark@codesourcery.com>
12155 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
12156 (walk_fixup_memory_subreg): Likewise.
12157 (fixup_var_refs_insn): Adjust accordingly.
12158 (fixup_var_refs_1): Likewise.
12160 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
12162 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
12163 LIBPATH_ARCH64_SPEC): Define.
12164 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
12165 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
12166 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
12167 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
12169 2002-04-22 Joel Sherrill <joel@OARcorp.com>
12171 * gthr-rtems.h: Correct prototypes to remove warnings.
12173 2002-04-22 Richard Henderson <rth@redhat.com>
12176 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
12178 * gcse.c (free_insn_expr_list_list): New.
12179 (clear_modify_mem_tables): Use it. Fix bit set usage.
12180 (canon_list_insert): Use EXPR_LISTs for expressions.
12181 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
12183 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
12185 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
12186 file change and include code to _cpp_pop_buffer.
12187 * cpphash.h (struct pending_option): Predeclare.
12188 (struct cpp_reader): New member next_include_file.
12189 (_cpp_pop_file_buffer): Update.
12190 (_cpp_push_next_buffer): Update, rename.
12191 * cppinit.c (cpp_destroy): Free include chain and pending here.
12192 (cpp_finish_options): Simplify.
12193 (_cpp_push_next_buffer): Rename and clean up.
12194 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
12196 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
12198 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12200 * config/rs6000/altivec.h (vec_xor): Add variant for both args
12201 being vector signed int.
12203 (vec_xor): Add variant for both args being vector signed char.
12204 Remove redundant variant.
12207 2002-04-21 David S. Miller <davem@redhat.com>
12209 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
12210 compare mode in output RTL.
12212 2002-04-22 David Edelsohn <edelsohn@gnu.org>
12214 * config/rs6000/rs6000.c (rs6000_override_options): Correct
12215 style and formatting of previous patch.
12217 2002-04-22 Alan Modra <amodra@bigpond.net.au>
12219 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
12220 flag_pic for ABI_AIX.
12222 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12224 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
12225 * cppfiles.c (read_include_file): Similarly.
12226 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
12227 uxstrdup ustrchr, ufputs): Similarly.
12228 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
12229 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
12230 cpp_ideq, parse_identifier, parse_number): Similarly.
12231 * cpplib.c (struct directive, dequote_string, D, run_directive,
12232 cpp_push_buffer): Similarly.
12233 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
12234 _cpp_create_definition, check_trad_stringification,
12235 cpp_macro_definition): Similarly.
12237 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12239 * cppmacro.c (funlike_invocation_p): Don't step back
12242 2002-04-21 David Edelsohn <edelsohn@gnu.org>
12244 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
12247 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
12249 * doc/invoke.texi: Remove Chill references.
12250 * doc/gcc.texi: Update last modified date.
12252 2002-04-20 Kazu Hirata <kazu@hxi.com>
12254 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
12255 push and pop. Replace add.l with add.w.
12257 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12259 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
12260 multiply instructions for H8/300H case.
12262 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12264 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
12265 Bum three instructions from each routine.
12267 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
12269 * Makefile.in: Update.
12270 * decl.c (push_c_function_context, pop_c_function_context,
12271 mark_c_function_context): Rename for consistency.
12272 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
12273 * c-tree.h (push_c_function_context, pop_c_function_context,
12274 mark_c_function_context): Rename for consistency.
12275 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12276 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12277 * function.c (init_lang_status, save_lang_status,
12278 restore_lang_status, mark_lang_status, free_lang_status):
12279 Move to langhooks.h.
12280 (push_function_context_to, pop_function_context_from,
12281 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
12283 * function.h (init_lang_status, save_lang_status,
12284 restore_lang_status, mark_lang_status, free_lang_status):
12285 Move to langhooks.h.
12286 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
12287 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
12288 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
12289 LANG_HOOKS_FUNCTION_INITIALIZER): New.
12290 (LANG_HOOKS_INITIALIZER): Update.
12291 (lhd_do_nothing_f): New.
12292 * langhooks.h (struct lang_hooks_for_functions): New.
12293 (struct lang_hooks): New hooks.
12294 * langhooks.c (lhd_do_nothing_f): New.
12296 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12297 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12299 2002-04-19 David S. Miller <davem@redhat.com>
12301 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12302 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
12304 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12306 PR optimization/3756
12307 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
12308 x = ((int) y < 0) ? cst1 : cst2.
12310 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12313 * function.c: Reapply patch for c/6358.
12314 (expand_function_end): Copy decl_rtl's mode, not
12315 current_function_return_rtx mode.
12317 2002-04-19 Joel Sherrill <joel@OARcorp.com>
12319 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
12322 2002-04-19 Tom Tromey <tromey@redhat.com>
12324 * doc/install.texi (Specific): Update status of Solaris 2.8.
12325 For PR libgcj/6158.
12327 2002-04-19 Andreas Schwab <schwab@suse.de>
12329 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
12330 (PUT_REAL): Restore old definition.
12332 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
12333 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12335 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
12336 binutils 2.11.2 and higher generate smaller binaries than Sun's
12339 2002-04-19 Mark Mitchell <mark@codesourcery.com>
12342 * toplev.c (rest_of_compilation): Do not defer functions for which
12343 TREE_SYMBOL_REFERENCED has already been set.
12345 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
12347 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
12350 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
12352 * builtins.c: Include langhooks.h.
12353 (lang_type_promotes_to): Remove.
12354 (expand_builtin_va_arg): Use new hook.
12355 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
12356 (simple_type_promotes_to): Move to c-typeck.c.
12357 * c-common.h (simple_type_promotes_to): Remove.
12358 * c-decl.c (duplicate_decls, grokdeclarator): Update.
12359 * c-format.c: Include langhooks.h.
12360 (check_format_types): Update.
12361 * c-tree.h (c_type_promotes_to): New.
12362 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
12363 (type_lists_compatible_p): Update.
12364 * langhooks-def.h (lhd_type_promotes_to): New.
12365 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
12366 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12367 * langhooks.c (lhd_type_promotes_to): New.
12368 * langhooks.h (struct lang_hooks_for_types): New hook.
12369 * tree.h (lang_type_promotes_to): Remove.
12371 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12373 2002-04-18 Richard Henderson <rth@redhat.com>
12375 * function.c: Revert patch for c/6358.
12377 2002-04-18 Richard Henderson <rth@redhat.com>
12379 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12380 blocks. Handle multiple references to the TRAP block. Handle
12381 non-adjacent THEN and OTHER blocks.
12383 2002-04-18 Richard Henderson <rth@redhat.com>
12385 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12386 crash with no type for by-mode libcalls.
12388 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
12390 2002-04-18 Bob Wilson <bob.wilson@acm.org>
12392 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12393 __xtensa_nonlocal_goto): Use a syscall instructions to flush
12394 the register windows.
12396 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12398 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12399 appropriate. Document need for extended precision even when
12400 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
12401 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
12402 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
12403 instead of relying on later syntax error when REAL_WIDTH > 5.
12404 * real.c: Define NE based only on whether or not we have a
12405 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12406 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
12407 define GET_REAL and PUT_REAL as simple memcpy operations; no
12408 need to byteswap or round.
12409 Use #error instead of #ifdef-ing out the entire file, for
12410 prompt error detection.
12412 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12414 2002-04-18 David S. Miller <davem@redhat.com>
12416 * config/sparc/sparc.h (BRANCH_COST): Define.
12418 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12421 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
12423 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12424 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12425 propagate_block calls after relaxation loop using new variable
12426 stabilized_prop_flags.
12428 2002-04-18 Richard Henderson <rth@redhat.com>
12430 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12431 (ia64_va_arg): Expect variable sized types by reference.
12432 * config/ia64/ia64-protos.h: Update.
12433 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
12434 ia64_function_arg_pass_by_reference.
12436 2002-04-18 Richard Henderson <rth@redhat.com>
12438 * ifcvt.c: Include except.h.
12439 (block_has_only_trap): Break out from find_cond_trap.
12440 (find_cond_trap): Use it. Always delete the trap block.
12441 (merge_if_block): Allow then block null. Be less simplistic about
12442 what insns can end a block.
12443 * Makefile.in (ifcvt.o): Depend on except.h.
12445 * config/ia64/ia64.md (trap, conditional_trap): New.
12447 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12450 * function.c (assign_parms): Assign hard current_function_return_rtx
12452 (expand_function_end): ...not here.
12454 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
12456 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12457 * c-tree.h (c_incomplete_type_error): New.
12458 * c-typeck.c (require_complete_type, build_component_ref): Update.
12459 (incomplete_type_error): Rename.
12460 * langhooks-def.h (lhd_incomplete_type_error): New.
12461 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12462 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12463 * langhooks.c (lhd_incomplete_type_error): New.
12464 * langhooks.h (struct lang_hooks_for_types): New hook.
12465 * tree.c (size_in_bytes): Use new hook.
12466 * tree.h (incomplete_type_error): Remove.
12468 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12470 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12472 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12473 TARGET_FLOAT_FORMAT blocks.
12475 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12477 * doc/install.texi (Downloading the source): Do not mention Chill
12478 any longer, but mention Ada.
12479 (Configuration): Do not mention Chill any longer.
12481 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
12483 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12485 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
12487 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12490 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12492 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12493 instead of unsigned_type.
12495 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12497 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12498 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12501 2002-04-18 Bernd Schmidt <bernds@redhat.com>
12503 * attribs.c (vector_type_node_list): New static variable.
12504 (handle_vector_size_attribute): Use it to avoid generating a
12505 new type node each time we are called.
12507 * combine.c (subst): Avoid trying to make a vector mode subreg of
12508 an integer constant.
12509 (gen_lowpart_for_combine): Likewise.
12511 2002-04-18 Roger Sayle <roger@eyesopen.com>
12512 Jakub Jelinek <jakub@redhat.com>
12514 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12515 for integer constant c (if x has unsigned type or sign bit is not
12516 set in c). This folds the zero/sign extension into the bit-wise and
12519 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12522 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12525 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
12527 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12529 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
12531 * gcc.c (read_specs): Detect and fail if an attempt is made to
12532 rename a spec string to an already existing string.
12534 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12536 * config/s390/s390.c (legitimize_pic_address): Do not generate
12537 illegal address constant without CONST.
12539 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12541 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12542 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12544 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12546 PR optimization/6305
12547 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12548 to make sure previous reloads are taken into account. Generate
12549 better code if one operand is an in-range immediate constant.
12551 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
12553 * doc/install.texi (Building): libgcj requires GNU make.
12555 2002-04-17 Jakub Jelinek <jakub@redhat.com>
12558 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12559 even if hard quad and register is not floating.
12560 (movtf reg<-mem split): Disallow splitting if hard quad and
12561 register is floating.
12562 (movtf mem<-reg split): Likewise.
12563 * config/sparc/sparc.c (fp_register_operand): New predicate.
12564 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12566 2002-04-17 Zack Weinberg <zack@codesourcery.com>
12568 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12569 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12570 (unprotoize.o): Ditto. Build from protoize.c. Define
12571 UNPROTOIZE on command line.
12572 * protoize.c: Include cppdefault.h. Delete include_defaults.
12573 (in_system_include_dir): Use cpp_include_defaults (defined in
12575 * unprotoize.c: Delete file.
12577 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
12579 * config/rs6000/altivec.h (vec_ld): Add array variants.
12583 2002-04-17 Alan Matsuoka <alanm@redhat.com>
12584 Aldy Hernandez <aldyh@redhat.com>
12586 * config/rs6000/altivec.h: Define __ALTIVEC__.
12591 (vec_vmaddfp): New.
12593 Add parentheses to all macro arguments.
12595 2002-04-16 Richard Henderson <rth@redhat.com>
12598 * except.c (remove_eh_handler): Insert inner regions at beginning
12599 of sibling chain. Refactor expressions.
12601 2002-04-16 Richard Henderson <rth@redhat.com>
12603 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12604 * config/sparc/sol2-gas-bi.h: New file.
12605 * config.gcc (sparc*-solaris): Add it as needed.
12606 * configure.in (AS_SPARC64_FLAG): Remove check.
12607 * config.in, configure: Regenerate.
12609 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12611 2002-04-16 Richard Henderson <rth@redhat.com>
12613 * config/mips/mips.c (override_options): Don't override N32 for
12617 * config/mips/mips.md (can_delay): Split out of existing define_delays.
12618 (HILO_delay): Set can_delay false.
12620 2002-04-16 Dale Johannesen <dalej@apple.com>
12622 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12623 instruction addresses.
12624 (rs6000_output_function_epilogue): Likewise.
12626 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
12628 * c-parse.in (poplevel, compstmt_start,
12629 compstmt_primary_start): Add ending ';', in accordance
12632 2002-04-16 Richard Henderson <rth@redhat.com>
12634 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12635 Adjust tm_file order to get TARGET_DEFAULT set properly.
12636 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12637 * doc/install.texi (sparc-solaris): Update.
12639 2002-04-16 Dale Johannesen <dalej@apple.com>
12641 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12642 comparison operands do not match each other or if modes of
12643 conditions do not match result.
12645 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
12648 * config/s390/s390.md (mulsidi3): Set both subregs of the
12649 multiword register.
12651 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
12653 * config/rs6000/altivec.h (vec_addc): Type check.
12655 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12658 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12660 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12662 2002-04-15 Richard Henderson <rth@redhat.com>
12664 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12665 call_really_used_regs too.
12667 2002-04-15 Richard Henderson <rth@redhat.com>
12669 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12671 2002-04-15 David S. Miller <davem@redhat.com>
12673 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12674 as being CLOBBERed.
12676 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12679 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12680 CONST_VECTOR is { 0, ... 0 }.
12682 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
12684 * doc/install.texi (Installing GCC: Configuration): Clarify
12685 the only supported ways to configure gcc.
12687 2002-04-15 Roland McGrath <roland@frob.com>
12689 * config.gcc (alpha*-*-gnu*): New target configuration.
12690 * config/alpha/gnu.h: New file for it.
12691 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12693 2002-04-16 Mark Mitchell <mark@codesourcery.com>
12695 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12696 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12697 * tree.h (expand_start_stmt_expr): Update prototype.
12698 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12699 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12700 on the STMT_EXPR created for the inline function.
12702 2002-04-15 Richard Henderson <rth@redhat.com>
12704 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12705 config/i386/linux-aout.h, config/i386/linux-oldld.h,
12706 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12707 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12708 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12709 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12710 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12711 Define __gnu_linux__, not gnu_linux.
12712 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12714 2002-04-15 Mark Mitchell <mark@codesourcery.com>
12716 Remove Chill front end.
12717 * gcc.c (default_compilers): Remove Chill entries.
12718 * ch: Remove directory.
12719 * doc/frontends.texi: Remove information about Chill.
12720 * doc/sourcebuild.texi: Likewise.
12721 * doc/standards.texi: Likewise.
12723 2002-04-15 Douglas B Rupp <rupp@gnat.com>
12725 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12726 (LONGLONG_STANDALONE): Define.
12728 2002-04-15 David S. Miller <davem@redhat.com>
12730 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12731 Call emit_library_call with LCT_NORMAL.
12732 (sparc_initialize_trampoline): Use LCT_foo instead of
12733 magic constant in emit_library_call invocations.
12734 (sparc64_initialize_trampoline): Likewise.
12735 (sparc_profile_hook): Likewise.
12736 * config/sparc/sparc.md: Likewise.
12738 * config/sparc/sparc.c (sparc_extra_constraint_check):
12739 Fix type of argument 'c'.
12740 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12743 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
12745 * diagnostic.h (output_buffer_state): Redefine.
12746 (output_format_decoder): New macro.
12747 (output_prefixing_rule): Likewise.
12748 (output_line_cutoff): Likewise.
12749 (diagnostic_format_decoder): Adjust.
12750 (diagnostic_prefixing_rule): Likewise.
12751 (diagnostic_line_cutoff): Likewise.
12752 (diagnostic_state): Likewise.
12753 (diagnostic_kind_count): Likewise.
12754 (diagnostic_buffer): Now a macro.
12756 * diagnostic.c (diagnostic_buffer): Remove definition.
12757 (output_is_line_wrapping): Adjust.
12758 (set_real_maximum_length): Likewise.
12759 (output_set_maximum_length): Likewise.
12760 (init_output_buffer): Likewise.
12761 (lhd_print_error_function): Likewise.
12762 (output_do_verbatim): Likewise.
12764 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
12766 * cpperror.c (print_location): Don't print include chain
12768 (cpp_begin_message): Update to use DL_ macros.
12769 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12770 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12771 cpp_notice, cpp_notice_from_errno): Remove.
12772 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12775 * cppexp.c (CPP_ICE): Remove.
12776 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12777 lex, integer_overflow, _cpp_parse_expr): Update.
12778 * cppfiles.c (read_include_file, find_include_file,
12779 handle_missing_header, _cpp_read_file, remap_filename): Update.
12780 * cpphash.h (enum error_type): Remove.
12781 (_cpp_begin_message): Update.
12782 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
12783 cpp_handle_option, cpp_post_options): Update.
12784 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
12785 skip_whitespace, parse_identifier, parse_slow, parse_string,
12786 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
12787 cpp_interpret_charconst): Update.
12788 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
12789 lex_macro_node, do_undef, glue_header_name, parse_include,
12790 do_include_common, read_flag, do_line, do_linemarker, do_ident,
12791 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
12792 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
12793 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
12794 _cpp_pop_buffer, do_diagnostic): Update.
12795 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
12796 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
12797 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12798 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12799 cpp_notice, cpp_notice_from_errno): Remove.
12800 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12803 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
12804 collect_args, enter_macro_context, save_parameter, parse_params,
12805 _cpp_create_definition, check_trad_stringification,
12806 cpp_macro_definition): Update.
12807 * cppmain.c (cpp_preprocess_file): Update.
12808 * fix-header.c (read_scan_file): Update.
12810 2002-04-14 Andreas Schwab <schwab@suse.de>
12812 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
12814 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12816 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
12818 2002-04-13 Mark Mitchell <mark@codesourcery.com>
12820 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
12823 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
12825 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
12827 2002-04-13 Joel Sherrill <joel@OARcorp.com>
12829 * config/sparc/t-elf: Enable v8 multilibs. Impacts
12830 sparc-elf and sparc-rtems targets.
12832 2002-04-13 Mark Mitchell <mark@codesourcery.com>
12834 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
12835 defined, and __gnu_hurd__ wherever __GNU__ is defined.
12836 * arm/linux-elf.h: Likewise.
12837 * cris/aout.h: Likewise.
12838 * cris/linux.h: Likewise.
12839 * i370/linux.h: Likewise.
12840 * i386/gnu.h: Likewise.
12841 * i386/linux-aout.h: Likewise.
12842 * i386/linux-oldld.h: Likewise.
12843 * i386/linux.h: Likewise.
12844 * i386/linux64.h: Likewise.
12845 * ia64/linux.h: Likewise.
12846 * m68k/linux-aout.h: Likewise.
12847 * m68k/linux.h: Likewise.
12848 * mips/linux.h: Likewise.
12849 * pa/pa-linux.h: Likewise.
12850 * pj/linux.h: Likewise.
12851 * rs6000/sysv4.h: Likewise.
12852 * s390/linux.h: Likewise.
12853 * sh/linux.h: Likewise.
12854 * sparc/linux-aout.h: Likewise.
12855 * sparc/linux.h: Likewise.
12856 * sparc/linux64.h: Likewise.
12857 * xtensa/linux.h: Likewise.
12859 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
12861 * stmt.c (check_unique_operand_names): Expect operand names to
12862 be strings rather than identifiers. Use simple_cst_equal to
12864 (resolve_operand_name_1): Make same identifier to string change here.
12865 * c-parse.in (asm_operand): Convert a named operand into a string.
12866 * cp/parse.y (asm_operand): Likewise.
12868 2002-04-13 Andreas Schwab <schwab@suse.de>
12870 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
12872 2002-04-12 Mark Mitchell <mark@codesourcery.com>
12874 Revert these changes:
12876 2002-04-06 Mark Mitchell <mark@codesourcery.com>
12879 * stor-layout.c (layout_decl): Reset the RTL for the decl.
12881 2002-04-12 Richard Henderson <rth@redhat.com>
12883 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
12884 (sparc*-*-solaris): Clean up header files.
12885 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
12886 and plan on generating 64-bit code.
12887 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
12888 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
12889 * config/sparc/sol2-sld-64.h: Rename ...
12890 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
12891 for AS_SPARC64_FLAG not defined.
12892 * config/sparc/sol2-gld-bi.h: New.
12893 * config/sparc/sol2-sld.h: Remove.
12894 * config/sparc/sol26-sld.h: New.
12895 * config/sparc/sol2.h: Tidy comments.
12896 * doc/install.texi: Document sparc-solaris configury changes.
12898 2002-04-12 Richard Henderson <rth@redhat.com>
12900 * recog.c (offsettable_address_p): Match the logic in adjust_address.
12902 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
12903 in 64-bit mode only. Use only for 32-bit or MEDLOW.
12905 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12907 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
12909 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
12911 * pa.c (pa_can_combine_p): Call extract_insn before calling
12912 constrain_operands.
12914 2002-04-12 Douglas B Rupp <rupp@gnat.com>
12916 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
12917 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
12918 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12919 (CPP_PREDEFINES): Handle __declspec.
12920 * config/i386/t-interix (USER_H): Remove.
12922 2002-04-12 DJ Delorie <dj@redhat.com>
12924 * integrate.c (compare_blocks): Make comparisons safe for when
12925 sizeof(int) < sizeof(char *).
12926 (find_block): Likewise.
12928 2002-04-12 Jan Hubicka <jh@suse.cz>
12929 David Edelsohn <edelsohn@gnu.org>
12931 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
12933 (symbol_ref_operand): New.
12934 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
12935 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
12937 2002-04-12 Andreas Schwab <schwab@suse.de>
12939 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
12940 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
12941 overrides the definition in config/svr4.h.
12943 2002-04-12 Eric Norum <eric.norum@usask.ca>
12945 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
12946 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
12947 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
12948 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
12949 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
12950 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
12951 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
12952 definitions to config/rtems.h and make the targets more similar.
12954 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12956 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
12957 POINTERS_EXTEND_UNSIGNED.
12958 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
12959 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
12961 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
12964 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
12966 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
12967 depends on TARGET_SHMEDIA, not TARGET_SH5.
12969 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
12971 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
12972 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
12974 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
12976 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
12979 2002-04-12 Andreas Schwab <schwab@suse.de>
12981 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
12983 2002-04-12 Richard Henderson <rth@redhat.com>
12986 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
12988 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
12989 modes spanning multiple hard regs.
12991 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
12993 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12995 * pa.c (pa_output_function_prologue): Don't accumulate the total
12996 number of code bytes when using TARGET_64BIT, or gas, SOM and not
12997 the portable runtime.
12998 (output_deferred_plabels): Handle 64bit plabels.
12999 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
13000 generating pic code using the GAS assembler for object formats that
13001 are not SOM (ie., ELF32 and ELF64).
13002 (output_millicode_call): Check attribute type if attribute length is 28.
13003 Likewise use $PIC_pcrel$0. Only call get_attr_length and
13004 dbr_sequence_length once.
13005 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
13006 dbr_sequence_length once.
13007 * pa.h (TARGET_SOM): Define if not defined.
13008 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
13009 with GAS and not SOM.
13010 (jump, call_internal_reg, call_value_internal_reg): Likewise.
13011 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
13013 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13015 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
13016 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
13017 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
13018 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
13019 elfos.h and dbxelf.h values are fine now.
13020 * config/i386/freebsd.h, config/alpha/freebsd.h
13021 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
13023 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13025 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
13026 or set Acpu or Amachine. Reformat.
13027 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13029 (LINK_SPEC): Do not need to undef.
13030 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
13031 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
13032 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13034 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
13035 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
13036 (LINK_SPEC): Do not need to undef.
13037 (DONT_USE_BUILTIN_SETJMP): Do not define.
13038 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
13039 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
13040 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
13041 Remove trailing spaces.
13042 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
13043 __ELF__, or set Acpu or Amachine. Reformat.
13044 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13047 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13049 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
13050 all other *-*-freebsd* targets.
13052 2002-04-11 Richard Henderson <rth@redhat.com>
13054 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
13056 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13058 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
13059 Include {cpu}/{cpu}.h thru tm_file.
13060 (alpha*-*-linux*ecoff): Remove target.
13061 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
13062 (LINK_SPEC): Remove, is not OS independent.
13063 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
13064 (LINK_SPEC): Do not need to #undef any longer.
13065 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
13067 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
13069 (LINK_SPEC): Moved here from alpha/elf.h.
13070 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
13071 SUB_CPP_PREDEFINES.
13072 * config/alpha/linux-ecoff.h: Remove.
13073 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
13074 (CPP_SPEC): Define _POSIX_SOURCE as needed.
13075 (CPP_SUBTARGET_SPEC): Do not define.
13076 (LINK_SPEC): Do not need to #undef any longer.
13077 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
13078 * config/alpha/vms.h: Likewise.
13080 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
13082 * doc/extend.texi: Remove old claim that typedefs cannot have
13083 an alignment attribute.
13085 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13087 PR optimization/6177
13088 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
13089 bitpos is 0 and bitsize CONCAT size.
13091 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13094 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
13096 2002-04-10 David O'Brien <obrien@FreeBSD.org>
13098 * config/alpha/freebsd.h: Minor reformatting.
13099 (CPP_SPEC): Define ELF and add cpp_subtarget.
13100 (ASM_SPEC): No longer needed.
13102 2002-04-11 Richard Henderson <rth@redhat.com>
13104 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
13105 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
13106 (dimode mem/zero splitter): New.
13108 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
13110 * config/cris/cris.c (cris_override_options): Tweak error message
13111 for PIC not implemented.
13113 * config/cris/cris.h: Tweak comments related to parameter-passing.
13115 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
13117 2002-04-10 Richard Henderson <rth@redhat.com>
13119 * except.c (add_ehl_entry): Allow duplicates after landing pad
13122 2002-04-10 David Edelsohn <edelsohn@gnu.org>
13124 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
13126 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
13128 * c-decl.c (c_init_decl_processing): Move generation of
13129 decls for g77_integer_type_node and friends from here ...
13130 * c-common.c (c_common_nodes_and_builtins): ... to here.
13132 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
13134 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
13135 is only used as frame pointer when frame_pointer_needed is true.
13137 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
13140 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
13141 for the fact that the pool entry uses two words.
13142 (movdf_hard_insn): Similarly. Also, ADR instruction can span
13144 (movdf_soft_insn): Similarly.
13145 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
13146 for the fact that the pool entry uses three words.
13148 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
13150 * config/mips/mips.c (mips_va_arg): When using the struct version
13151 of the EABI va_list, allow arguments in the register save area to
13152 take up less room than a stack argument.
13154 2002-04-10 Richard Henderson <rth@redhat.com>
13156 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
13157 if EXPAND_INITIALIZER.
13159 2002-04-09 Richard Henderson <rth@redhat.com>
13161 * config/alpha/alpha.md (movdi_er_maybe_g): New.
13162 * config/alpha/alpha.c (alpha_expand_mov): Use it.
13164 2002-04-10 Alan Modra <amodra@bigpond.net.au>
13166 PR optimization/6233
13167 * rtlanal.c (pure_call_p): New function.
13168 * rtl.h (pure_call_p): Declare.
13169 * loop.c (prescan_loop): Use it to set has_nonconst_call.
13170 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
13172 2002-04-09 Eric Christopher <echristo@redhat.com>
13174 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
13175 information to .comm directive.
13177 2002-04-09 Richard Henderson <rth@redhat.com>
13180 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
13182 2002-04-09 Richard Henderson <rth@redhat.com>
13184 * basic-block.h (flow_delete_block_noexpunge): Declare.
13185 (expunge_block_nocompact): Declare.
13186 * cfg.c (expunge_block_nocompact): Split out from ...
13187 (expunge_block): ... here.
13188 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
13189 (flow_delete_block_noexpunge): Split out from ...
13190 (flow_delete_block): ... here.
13191 * cfgcleanup.c (delete_unreachable_blocks): Compact while
13192 removing dead blocks.
13193 * except.c (exception_handler_labels): Remove.
13194 (exception_handler_label_map): New.
13195 (struct eh_region): Add aka member.
13196 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
13197 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
13198 (for_each_eh_label, for_each_eh_label_1): New.
13199 (init_eh): Register exception_handler_label_map.
13200 (free_eh_status): Use free_region.
13201 (find_exception_handler_labels): Use the map, not the list.
13202 (remove_exception_handler_label): Likewise.
13203 (maybe_remove_eh_handler): Likewise.
13204 (remove_eh_handler): Use the region aka bitmap.
13205 * except.h (exception_handler_labels): Remove.
13206 (for_each_eh_label): Declare.
13207 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
13208 * loop.c (invalidate_loops_containing_label): New.
13209 (find_and_verify_loops): Use it. Use for_each_eh_label.
13210 * sched-rgn.c (is_cfg_nonregular): Use
13211 current_function_has_exception_handlers.
13213 2002-04-09 Richard Henderson <rth@redhat.com>
13215 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
13216 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
13217 Do not return changed status.
13218 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
13219 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
13220 New functions that do return changed status.
13221 * sbitmap.h: Update decls.
13222 * gcse.c, lcm.c: Use _cg functions as needed.
13224 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
13226 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
13227 (sh64-*-elf*, sh-*-rtemself*): Likewise.
13228 * config/sh/embed_bb.c: New file.
13229 * config/sh/embed-elf.h: New file.
13230 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
13231 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
13232 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13234 (SUBTARGET_CPP_PTR_SPEC): Don't define.
13235 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
13236 Add subtarget_asm_endian_spec.
13237 (ASM_SPEC): Use subtarget_asm_endian_spec.
13238 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
13239 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
13240 (WCHAR_UNSIGNED): Define.
13241 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
13242 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13243 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
13245 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
13246 (sh_adjust_cost): Likewise.
13247 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13249 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
13250 (WCHAR_TYPE_SIZE): Likewise.
13251 (ASM_SPEC): Use subtarget_asm_endian_spec.
13252 (SH_ELF_WCHAR_TYPE): #undef/ #define.
13253 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
13254 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
13255 (MAX_WCHAR_TYPE_SIZE): Don't #define .
13256 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
13257 (USER_LABEL_PREFIX): Don't #undef /#define .
13258 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13259 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
13260 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
13261 (ASM_SPEC): Likewise.
13262 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
13263 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
13264 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
13265 (LIB2FUNCS_EXTRA): Define.
13266 * t-sh64 (LIB2FUNCS_EXTRA): Define.
13267 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
13268 (LIB1ASMFUNCS_CACHE): Define.
13269 (LIB2FUNCS_EXTRA): Redefine empty.
13271 2002-04-08 Richard Henderson <rth@redhat.com>
13273 * reorg.c (get_branch_condition): Use reversed_comparison_code.
13275 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13277 * config/m68hc11/larith.asm (__map_data_section): Fix condition
13278 and optimize for size.
13279 (__do_global_ctors): Fix pointer comparison.
13280 (__do_global_dtors): Likewise.
13282 2002-04-09 David S. Miller <davem@redhat.com>
13284 * config/sparc/sparc.c (sparc_extra_constraint_check): New
13285 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
13286 allow reloading pseudos.
13287 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
13288 * config/sparc/sparc-protos.h: Declare it.
13290 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
13291 unsigned comparison warning.
13292 (output_restore_regs): Mark leaf_function as unused.
13294 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13296 * expr.c (is_aligning_offset): New function.
13297 (expand_expr, case COMPONENT_EXPR): Call it.
13299 2002-04-08 David S. Miller <davem@redhat.com>
13302 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
13304 Make init_priority work on Sparc when using GNU ld.
13305 * config/sparc/linux.h, config/sparc/linux64.h,
13306 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
13307 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
13308 * config/sparc/sol2-gld.h: New file to do the same.
13309 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
13310 sparc/sol2-gld.h to tm_file.
13312 PR optimization/4328
13313 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
13314 * doc/md.texi: Document it.
13315 * config/sparc/sparc.md (movdi_insn_sp64_novis,
13316 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
13317 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
13318 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
13319 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
13321 2002-04-08 Andreas Jaeger <aj@suse.de>
13323 * stmt.c (expand_asm_operands): Revert last patch from Richard
13326 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13328 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
13329 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
13331 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13333 * doc/contrib.texi (Contributors): Add David O'Brien.
13335 2002-04-08 Alan Modra <amodra@bigpond.net.au>
13337 * configure.in (auto-build.h): Use target_alias and build_alias
13338 when running configure.
13339 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
13340 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
13341 * configure: Regenerate.
13343 2002-04-07 David S. Miller <davem@redhat.com>
13345 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
13347 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13350 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
13351 generating 32-bit pic code.
13353 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
13355 * cppinit.c (cpp_create_reader): Initialize
13356 discard_comments_in_macro_exp.
13357 (COMMAND_LINE_OPTIONS): Add "-CC" option.
13358 (cpp_handle_option): Handle "-CC" option.
13359 * cpplex.c (save_comment): If saving a C++ comment in
13360 a directive, convert it to a C comment.
13361 (_cpp_lex_direct): Pass second comment start character to
13362 save_comment to indicate comment type.
13363 * cpplib.c (_cpp_handle_directive): If processing
13364 a "#define" directive and discard_comments_in_macro_exp
13365 is false, re-enable saving of comments.
13366 (lex_macro_node): If discard_comments_in_macro_exp is false,
13367 discard any comments before the macro identifier.
13368 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
13370 * cppmacro.c (cpp_get_token): If expanding a macro while
13371 processing a directive, discard any comments we might encounter.
13372 (parse_params): If discard_comments_in_macro_exp is false,
13373 ignore comments in the macro parameter list.
13374 * gcc.c (cpp_unique_options): Add "-CC" option.
13375 (option_map): Map "--comments-in-macros" to "-CC".
13376 * doc/cppopts.texi: Document "-CC" option.
13377 * f/lang-specs.h: Add "-CC" option.
13378 * testsuite/gcc.dg/cpp/maccom1.c: New test.
13379 * testsuite/gcc.dg/cpp/maccom2.c: New test.
13380 * testsuite/gcc.dg/cpp/maccom3.c: New test.
13381 * testsuite/gcc.dg/cpp/maccom4.c: New test.
13382 * testsuite/gcc.dg/cpp/maccom5.c: New test.
13383 * testsuite/gcc.dg/cpp/maccom6.c: New test.
13385 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
13388 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13390 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13393 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13396 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13397 RTX_UNCHANGING_P for the functions arguments when a tail call
13400 2002-04-06 Jason Merrill <jason@redhat.com>
13402 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13403 (parse_options_and_default_flags): Set them appropriately.
13404 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13406 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
13408 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13411 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13414 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13415 types come in by-reference. Fix typo in comment.
13417 2002-04-05 David S. Miller <davem@redhat.com>
13419 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13420 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13421 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13422 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13424 2002-04-05 David S. Miller <davem@redhat.com>
13426 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13427 are not going to emit return instructions, emit at least a nop
13428 for the sake of sane backtraces.
13430 2002-04-05 Richard Henderson <rth@redhat.com>
13432 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13434 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
13436 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13438 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
13440 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13441 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13442 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13444 2002-04-05 Andreas Schwab <schwab@suse.de>
13446 * c-convert.c: Include c-common.h.
13447 * Makefile.in (c-convert.o): Updated.
13449 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13451 * mklibgcc.in: Use separate libgcc.map for each multilib.
13452 * Makefile.in (distclean): Don't remove libgcc.map here.
13454 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13456 * Makefile.in (s-mlib): Handle --disable-multilib by separate
13457 genmultilib invocation.
13459 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
13461 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13462 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
13463 to num_gprs for symmetry.
13464 * config/mips/mips.c: Adjust accordingly.
13466 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13468 * c-common.c (truthvalue_conversion): Rename, update.
13469 * c-common.h (c_common_truthvalue_conversion): New.
13470 * c-convert.c (convert): Update.
13471 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13472 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13473 * c-typeck.c (build_binary_op, build_unary_op,
13474 build_conditional_expr): Update.
13475 * fold-const.c (constant_boolean_node, fold): Use langhook.
13476 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13477 * langhooks.h (struct lang_hooks): New hook.
13478 * stmt.c (expand_decl_cleanup): Use langhook.
13479 * tree.h (truthvalue_conversion): Remove.
13481 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13483 2002-04-05 Alan Modra <amodra@bigpond.net.au>
13485 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13486 Add rules to make null object file.
13488 2002-04-04 Jim Blandy <jimb@redhat.com>
13490 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13491 macro formal parameter names.
13493 2002-04-04 David S. Miller <davem@redhat.com>
13495 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13497 2002-04-04 Richard Henderson <rth@redhat.com>
13500 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13501 Support copies into and out of memory. Don't accept allows_reg
13502 and allows_mem as gospel.
13504 2002-04-04 Richard Henderson <rth@redhat.com>
13507 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13508 (write_dependence_p): Likewise.
13510 2002-04-04 Richard Henderson <rth@redhat.com>
13512 * predict.c (estimate_bb_frequencies): Do frequency calculation
13513 with a volatile temporary.
13515 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
13517 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13519 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13522 * final.c (final_start_function): Don't bump profile_label_no here...
13523 (final_end_function): ...but here.
13525 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13527 * config/sparc/sparc.md (pic): New attribute.
13528 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13530 (split after do_builtin_setjmp_setup): New.
13532 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13535 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13538 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13540 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13541 UNITS_PER_WORD for zero sized aggregates.
13543 2002-04-03 David S. Miller <davem@redhat.com>
13545 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13546 one-character spec for this, just use %(link_gcc_c_sequence).
13548 2002-04-03 David S. Miller <davem@redhat.com>
13550 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13553 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13555 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13556 (DWARF_FRAME_RETURN_COLUMN): Move.
13557 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13558 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13559 * pa.c (except.h, predict.h): Include.
13561 (store_reg_modify, set_reg_plus_d): Revise prototypes.
13562 (output_ascii): Add cast.
13563 (store_reg_modify): Revise to add frame notes.
13564 (set_reg_plus_d): Likewise.
13565 (compute_frame_size): Include space for eh data registers in frame if
13566 the current function calls eh_return.
13567 (hppa_expand_prologue): Ensure register %r2 is saved if the current
13568 function calls eh_return. Save eh data registers if the current
13569 function calls eh_return. Fix code to add frame notes. Emit
13570 blockage to prevent insns with frame notes being scheduled in the
13571 delay slot of calls.
13572 (hppa_expand_epilogue): Restore eh data registers and do final stack
13573 adjustment if the current function calls eh_return. Don't add frame
13575 (output_call): Revise for change in length of call insn. Don't do
13576 return pointer adjustment for an unconditional jump in the delay slot
13577 of a call when using frame notes.
13578 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13579 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13580 (ARG_POINTER_CFA_OFFSET): Define.
13581 * pa.md (return_external_pic): New pattern.
13582 (prologue): Correct formatting. Use return_external_pic if current
13583 function calls eh_return.
13584 (call_internal_symref, call_value_internal_symref,
13585 sibcall_internal_symref, sibcall_value_internal_symref): Change default
13586 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13588 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13590 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13591 list of targets to check using "nop" insn.
13592 * configure: Rebuilt.
13594 2002-04-04 Alan Modra <amodra@bigpond.net.au>
13596 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13598 2002-04-03 David S. Miller <davem@redhat.com>
13600 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13601 library sequence passed to the linker.
13602 (LINK_COMMAND_SPEC): Use it.
13603 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13604 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13605 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13607 2002-04-03 Jason Merrill <jason@redhat.com>
13609 * except.c (struct eh_status): Remove protect_list.
13610 (begin_protect_partials, end_protect_partials): Remove.
13611 (add_partial_entry): Remove.
13612 * except.h: Remove prototypes.
13614 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13615 expand_decl_cleanup_eh.
13618 * tree.h (CLEANUP_EH_ONLY): New macro.
13619 * stmt.c (expand_decl_cleanup_eh): New fn.
13620 (expand_cleanups): Check CLEANUP_EH_ONLY.
13621 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13622 Use expand_decl_cleanup_eh.
13623 (expand_stmt): Adjust.
13624 * c-common.h: Adjust prototype.
13626 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
13628 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13629 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13630 (cris_target_asm_function_epilogue): Ditto.
13631 (cris_initial_frame_pointer_offset): Ditto.
13632 (cris_simple_epilogue): Ditto.
13633 (cris_expand_builtin_va_arg): Variable-size types come in
13636 2002-04-03 David S. Miller <davem@redhat.com>
13638 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13640 (set_fast_math): Correct 'fsr' type.
13642 2002-04-03 Richard Henderson <rth@redhat.com>
13645 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13646 * toplev.c (check_global_declarations): Use it.
13647 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13648 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13649 (LANG_HOOKS_DECLS): Add it.
13650 * langhooks.c (lhd_warn_unused_global_decl): New.
13651 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13652 * c-objc-common.c (c_warn_unused_global_decl): New.
13653 * c-tree.h (c_warn_unused_global_decl): Declare.
13654 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13656 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
13658 * langhooks-def.h (lhd_set_decl_assembler_name,
13659 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13660 (LANG_HOOKS_INITIALIZER): Update.
13661 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13662 * langhooks.h (struct lang_hooks): New hook.
13663 * tree.c (set_decl_assembler_name): Move to langhooks.c.
13664 (lang_set_decl_assembler_name): Remove.
13665 (init_obstacks): Don't set hook.
13666 (decl_assembler_name): New function.
13667 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13668 (decl_assembler_name): New.
13669 (lang_set_decl_assembler_name): Remove.
13671 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13673 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13674 works properly with .hidden symbols.
13675 * configure: Rebuilt.
13676 * config.in: Rebuilt.
13677 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13678 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13679 properly with .hidden symbols.
13681 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13684 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13687 2002-04-03 Richard Henderson <rth@redhat.com>
13690 * sched-rgn.c (sets_likely_spilled): New.
13691 (sets_likely_spilled_1): New.
13692 (add_branch_dependences): Use it.
13694 2002-04-02 Richard Henderson <rth@redhat.com>
13697 * loop.h (LOOP_FIRST_PASS): New.
13698 * loop.c (strength_reduce): Mind it when deciding to unroll.
13699 * toplev.c (rest_of_compilation): Set it.
13701 2002-04-02 David S. Miller <davem@redhat.com>
13703 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13704 mems_ok_for_ldd_peep when the order of the loads being examined
13706 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13707 existing comment to increase comprehension of this situation.
13709 2002-04-02 Zack Weinberg <zack@codesourcery.com>
13711 * config/sh/sh.md: Don't use union real_extract.
13713 2002-04-02 Richard Henderson <rth@redhat.com>
13715 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13717 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13719 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13720 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13721 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13722 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13723 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13724 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13725 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13726 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13727 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13728 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13729 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13730 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13731 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13732 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13733 Include as many configury headers via tm_file as possible. This
13734 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13735 * config/openbsd-oldgas.h: New file.
13736 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13737 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13738 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13739 config/i386/i386-coff.h, config/i386/i386-interix.h,
13740 config/i386/iscdbx.h, config/i386/linux-aout.h,
13741 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13742 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13743 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13744 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13745 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13746 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13747 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13748 config/i386/vxi386.h: Do not directly include configury headers.
13749 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13750 Directly include configury headers that are no longer automatically
13751 included by the above headers.
13752 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13753 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13754 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13755 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13756 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13757 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13758 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13759 (TARGET_VERSION): Define.
13760 * config/i386/beos-elf.h, config/i386/freebsd.h,
13761 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13762 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13763 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13764 config/i386/sco5.h, config/i386/sysv4.h
13765 (TARGET_VERSION): Do not need to protect.
13766 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13767 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13768 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13769 config/i386/i386-interix.h, config/i386/linux-aout.h,
13770 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13771 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13772 (YES_UNDERSCORES): Do not define - not needed.
13773 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13774 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13775 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13776 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13777 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13778 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13779 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13780 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13782 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
13783 Richard Henderson <rth@redhat.com>
13786 * function.c (assign_temp): Accept either type or decl argument.
13787 Detect variables whose size is too large to fit into an integer.
13788 * stmt.c (expand_decl): Pass the decl, not the type.
13790 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13792 * protoize.c: Match include directory usage with cppdefault.c.
13794 2002-04-03 Jeffrey A Law (law@redhat.com)
13795 Hans-Peter Nilsson <hp@bitrange.com>
13797 * combine.c (simplify_comparison): Avoid narrowing a comparison
13798 with a paradoxical subreg when doing so would drop signficant bits.
13800 2002-04-02 Steve Ellcey <sje@cup.hp.com>
13802 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
13803 if POINTERS_EXTEND_UNSIGNED is defined.
13805 2002-04-02 Richard Henderson <rth@redhat.com>
13808 * local-alloc.c (contains_replace_regs): LO_SUM may contain
13811 2002-04-02 Richard Henderson <rth@redhat.com>
13813 * doc/standards.texi: Document required freestanding libc entry points.
13815 2002-04-02 Alan Modra <amodra@bigpond.net.au>
13817 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
13818 associated splitter. Remove MQ constraint.
13819 (ctrdi_internal4): Correct CCmode clobber.
13821 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
13823 * milli64.S ($$dyncall): New function.
13824 * t-linux (LIB1ASMFUNCS): Revise module list.
13825 (LIB1ASMSRC): Use pa/milli64.S.
13827 2002-04-02 Richard Henderson <rth@redhat.com>
13829 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
13830 rename solaris_sys_varargs_h.
13832 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13834 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
13835 the same mode as its component.
13837 2002-04-02 Richard Henderson <rth@redhat.com>
13840 * final.c (this_is_asm_operands): Export.
13841 * output.h (this_is_asm_operands): Declare.
13842 * config/i386/i386.c (print_operand): Error odd asm operands.
13844 2002-04-02 Richard Henderson <rth@redhat.com>
13847 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
13849 2002-04-01 Richard Henderson <rth@redhat.com>
13852 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
13853 * fixinc/fixincl.x: Rebuild.
13855 2002-04-01 Richard Henderson <rth@redhat.com>
13857 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
13858 (atomic_alloc, atomic_free): New.
13859 (SIZE, MASK_FOR, PTR_IN): New.
13860 (emergency_reg_state, emergency_reg_state_free): New.
13861 (emergency_labeled_state, emergency_labeled_state_free): New.
13862 (reg_state_alloced, labeled_state_alloced): New.
13863 (alloc_reg_state, free_reg_state): New.
13864 (alloc_label_state, free_label_state, free_label_states): New.
13865 (push, pop, dup_state_stack, free_state_stack): Use them.
13866 (desc_label_state): Likewise.
13867 (uw_frame_state_for): Free label states and state stack.
13868 (uw_update_reg_address): Eliminate warnings.
13870 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
13872 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
13873 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
13875 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13877 * c-decl.c (grokdeclarator): Update.
13878 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13879 * c-tree.h (c_mark_addressable): New.
13880 * c-typeck.c (default_function_array_conversion, build_unary_op,
13881 build_array_ref, convert_for_assignment): Update.
13882 (mark_addressable): Rename.
13883 * calls.c (try_to_integrate, expand_call): Use langhook.
13884 * expr.c (expand_expr): Use langhook.
13885 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
13886 * langhooks.h (struct lang_hooks): New hook.
13887 * stmt.c (expand_asm_operands): Use langhook.
13888 * tree.h (mark_addressable): Remove.
13890 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13892 2002-04-01 Bob Wilson <bob.wilson@acm.org>
13894 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
13895 in previous change.
13897 2002-04-01 Bob Wilson <bob.wilson@acm.org>
13899 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
13900 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
13902 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13904 * c-common.c (unsigned_conversion_warning, convert_and_check,
13905 unsigned_type, signed_type, shorten_compare,
13906 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
13907 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
13908 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
13910 * c-decl.c (grokdeclarator): Update.
13911 * c-format.c (check_format_types): Update.
13912 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13913 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13914 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
13915 * convert.c (convert_to_integer): Use new hooks.
13916 * expmed.c (make_tree): Use new hooks.
13917 * expr.c (store_expr): Use new hooks.
13918 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
13919 all_ones_mask_p, unextend, fold): Use new hooks.
13920 * langhooks.h (struct lang_hooks_for_types): New hooks.
13921 * tree.h (signed_or_unsigned_type, signed_type,
13922 unsigned_type): Remove.
13924 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13925 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13927 2002-03-31 Richard Henderson <rth@redhat.com>
13929 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
13930 (desc_frgr_mem): Fix reference to f16-f31.
13932 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13934 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
13935 RTVEC_ELT): Const-ify.
13936 * varray.h (VARRAY_CHECK): Const-ify.
13937 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
13938 ggc_mark_rtvec, ggc_mark): Const-ify.
13940 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13942 * diagnostic.c: Include langhooks-def.h.
13943 * Makefile.in (diagnostic.o): Update.
13945 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13947 * c-common.c (c_unsafe_for_reeval): Rename.
13948 * c-common.h (c_unsafe_for_reeval): Rename.
13949 * c-decl.c (finish_incomplete_decl): Rename.
13950 (c_init_decl_processing): Don't set langhook.
13951 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13952 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13953 * c-objc-common.c (c_objc_common_init): Don't set langhook.
13954 * c-tree.h (finish_incomplete_decl): Rename.
13955 * langhooks-def.h (lhd_unsafe_for_reeval): New.
13956 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
13957 (LANG_HOOKS_INITIALIZER): Update.
13958 * langhooks.c (lhd_unsafe_For_reeval): New.
13959 * langhooks.h (struct langhooks): New hooks.
13960 * toplev.c (incomplete_decl_finalize_hook): Remove.
13961 (wrapup_global_declarations): Update.
13962 * tree.c (lang_unsafe_for_reeval): Remove.
13963 (unsafe_for_reeval): Update.
13964 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
13967 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13968 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13970 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13972 * diagnostic.c (print_error_function): Remove.
13973 (default_print_error_function): Rename.
13974 (report_error_function): Update.
13975 * diagnostic.h (print_error_function): Remove.
13976 (default_print_error_function): Remove.
13977 * langhooks-def.h (struct diagnostic_context): Predeclare.
13978 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
13979 (LANG_HOOKS_INITIALIZER): Update.
13980 * langhooks.h (struct diagnostic context): Predeclare.
13981 (struct lang_hooks): New hook.
13983 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13985 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
13986 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
13988 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
13989 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
13990 of PIC_OFFSET_TABLE_REGNUM thruout.
13991 * config/rs6000/rs6000.md: Likewise.
13992 * config/rs6000/darwin.h: Likewise.
13994 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13996 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
13997 unsigned HOST_WIDE_INT, not unsigned int.
13999 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14001 PR middle-end/6096, middle-end/6098, middle-end/6099
14002 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
14004 (fill_slots_from_thread): Likewise.
14006 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14008 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
14009 floating fields in float regs.
14010 (function_arg_record_value_2): Likewise.
14012 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14014 * config/mmix/mmix.md (define_constants): Remove misleading
14015 FIXME. Add MMIX_fp_rO_OFFSET.
14016 ("nonlocal_goto_receiver"): Don't have stack-frame address of
14017 saved rO as part of the pattern. Remove FIXME.
14018 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
14019 here, at output-time.
14021 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14024 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
14026 (output_v9branch): Likewise.
14028 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14030 * gcc.c: Revert previous patch for now.
14031 * config/i386/djgpp.h: Likewise.
14033 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14035 * config/mmix/crti.asm (_init): Register _fini with atexit.
14036 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
14038 2002-03-31 Richard Henderson <rth@redhat.com>
14041 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
14042 (ASM_OUTPUT_DEF_FROM_DECLS): New.
14044 2002-03-31 Richard Henderson <rth@redhat.com>
14046 * libgcc2.c (__bb_exit_func): Make static.
14048 * config/alpha/alpha.md (trap): New.
14050 2002-03-31 Richard Henderson <rth@redhat.com>
14052 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
14053 promoted argument types; build trap.
14054 (expand_builtin_trap): New.
14055 (expand_builtin): Use it.
14056 * stmt.c (expand_nl_goto_receivers): Likewise.
14057 * expr.h (expand_builtin_trap): Declare.
14058 * libfuncs.h (LTI_abort, abort_libfunc): New.
14059 * optabs.c (init_optabs): Init abort_libfunc.
14061 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14063 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
14064 (LINK_COMMAND_SPEC): ... from here.
14065 (init_gcc_specs): Duplicate it here too, omitting
14066 shared_name in the second copy.
14067 (init_spec): Test for duplicate
14068 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
14070 2002-03-30 David S. Miller <davem@redhat.com>
14072 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14073 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
14075 2002-03-30 Roger Sayle <roger@eyesopen.com>
14076 Richard Henderson <rth@redhat.com>
14078 * regmove.c (combine_stack_adjustments_for_block): Avoid
14079 emitting a stack adjustment of zero bytes. Let delete_insn
14082 2002-03-30 Richard Henderson <rth@redhat.com>
14084 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
14085 (sparc_emitting_epilogue): New.
14086 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
14087 * config/sparc/sparc-protos.h: Update.
14088 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
14089 (TARGET_SWITCHES): Update.
14090 * config/sparc/sparc.md (return): Remove.
14091 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
14092 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
14093 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
14094 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14095 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
14096 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
14097 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
14098 Remove MASK_EPILOGUE.
14099 * doc/invoke.texi: Update.
14101 2002-03-30 Daniel Berlin <dan@dberlin.org>
14103 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
14104 CPP will start the file for us.
14106 2002-03-30 Richard Henderson <rth@redhat.com>
14109 * config/ia64/ia64.c (group_barrier_needed_p): Special case
14110 prologue_allocate_stack.
14111 (ia64_single_set): Use insn codes for recognition of special
14112 cases, not rtl matching.
14113 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
14115 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
14117 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
14119 2002-03-30 Richard Henderson <rth@redhat.com>
14122 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
14123 or -fomit-frame-pointer with profiling.
14124 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
14125 (FUNCTION_PROFILER): Do nothing.
14126 (PROFILE_HOOK): New.
14127 * config/sparc/sparc.c (sparc_override_options): Don't check
14128 code models for profiling.
14129 (sparc_function_profiler): Remove.
14130 (sparc_profile_hook): New.
14131 * config/sparc/sparc-protos.h: Update.
14133 2002-03-30 Jakub Jelinek <jakub@redhat.com>
14135 PR optimization/6086
14136 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
14137 of SUBREG of volatile MEM or because the MEM was mode dependent,
14138 return CLOBBER instead of unmodified SUBREG.
14140 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
14142 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
14143 when not optimizing.
14145 * toplev.c (rest_of_compilation): Cann mark_constant_function
14146 only when optimizing.
14148 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
14151 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
14152 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
14153 (try_optimize_cfg): clear all AUX fields.
14155 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
14156 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
14157 (ix86_address_cost): Be prepared for SUBREGed registers.
14158 (legitimate_address_p): Accept SUBREGed registers.
14160 2002-03-29 Richard Henderson <rth@redhat.com>
14163 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
14165 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14167 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
14168 for aggregate and TFmode types.
14170 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14172 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
14174 2002-03-29 Richard Henderson <rth@redhat.com>
14177 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
14178 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
14180 2002-03-29 Richard Henderson <rth@redhat.com>
14183 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
14184 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
14185 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
14186 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
14188 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
14190 2002-03-29 Dale Johannesen <dalej@apple.com>
14192 * loop.c (combine_movables): Do allow combination of pseudos.
14194 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
14196 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
14197 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
14198 No functional change except ...
14199 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
14200 * doc/install.texi (*-*-freebsd*): Document port configuration.
14202 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14204 * Makefile.in (convert.o, calls.o, expmed.o): Update.
14205 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
14207 * builtin-types.def (BT_PTRMODE): Update.
14208 * c-common.c (type_for_size): Rename c_common_type_for_size.
14209 (type_for_mode): Similarly.
14210 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
14212 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
14213 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
14214 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
14216 * c-typeck.c (common_type, comptypes, default_conversion):
14218 * calls.c: Include langhooks.h.
14219 (emit_library_call_value_1): Use new hooks. Avoid redundant
14221 * convert.c: Include langhooks.h
14222 (convert_to_pointer, convert_to_integer): Use new hooks.
14223 * except.c (init_eh): Similarly.
14224 * expmed.c: Include langhooks.h.
14225 (expand_mult_add): Use new hooks.
14226 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
14227 try_casesi): Similarly.
14228 * fold-const.c (optimize_bit_field_compare, make_range,
14229 decode_field_reference, fold_truthop, fold): Similarly.
14230 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
14231 put_var_into_stack): Similarly.
14232 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
14233 LANG_HOOKS_TYPE_FOR_SIZE): New.
14234 (LANG_HOOKS_TYPES_INITIALIZER): Update.
14235 * langhooks.h (lang_hooks_for_types): New hooks.
14236 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
14237 * tree.c (get_unwidened, get_narrower): Similarly.
14238 * tree.h (type_for_mode, type_for_size): Remove.
14239 * varasm.c (force_const_mem): Use new hooks.
14240 * utils2.c (nonbinary_modular_operation): Update.
14242 * objc-act.c (handle_impent): Update.
14243 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
14246 2002-03-29 Steve Ellcey <sje@cup.hp.com>
14248 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
14249 * config/ia64/ia64.c (basereg_operand): New.
14250 * config/ia64/ia64-protos.h (basereg_operand): Declare.
14251 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
14253 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14255 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
14256 unwind information when frame_pointer_needed.
14257 (mmix_assemble_integer): Tweak wording in comment.
14259 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14261 * Makefile.in (except.o): Update.
14262 * except.c: Include langhooks.h.
14263 (init_eh): Use langhook.
14264 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
14265 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
14266 (LANG_HOOKS_INITIALIZER): Update.
14267 * langhooks.h (lang_hooks_for_types): New.
14268 (struct lang_hooks): Add it.
14269 * tree.c (make_lang_type_fn, make_lang_type): Remove.
14270 * tree.h (make_lang_type_fn, make_lang_type): Remove.
14272 * alpha/alpha.c: Include langhooks.h.
14273 (alpha_build_va_list): Use langhook.
14274 * d30v/d30v.c: Include langhooks.h.
14275 (d30v_build_va_list): Use langhook.
14276 * i386/i386.c: Include langhooks.h.
14277 (ix86_build_va_list): Use langhook.
14278 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
14279 * s390/s390.c: Include langhooks.h.
14280 (s390_build_va_list): Use langhook.
14281 * stormy16/stormy16.c: Include langhooks.h.
14282 (stormy16_build_va_list): Use langhook.
14284 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14287 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
14289 (length): Compute variable length for branches/calls/jumps here.
14290 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
14291 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
14292 define branch_type attribute.
14293 (divsi3_sp32): Maximum length is 6 not 7.
14294 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
14295 call_address_untyped_struct_value_sp32,
14296 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
14297 * config/sparc/sparc.c (empty_delay_slot): New function.
14298 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
14299 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
14301 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14303 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
14304 nonzero_bits if not needed.
14305 (nonzero_bits) [XOR]: Likewise.
14306 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
14307 reg_last_set_mode and mode are both MODE_INT, but not equal.
14308 (record_value_for_reg): Compute reg_last_set_nonzero_bits
14309 in nonzero_bits_mode for MODE_INT modes.
14311 2002-03-28 Richard Henderson <rth@redhat.com>
14314 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
14315 to GAS. Correct drift between alternatives.
14317 2002-03-28 Richard Henderson <rth@redhat.com>
14320 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
14322 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
14324 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
14325 emulation to the linker.
14327 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
14329 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
14330 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14332 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
14334 * combine.c (simplify_and_const_int): Make sure to apply mask
14335 when force_to_mode returns a constant integer. PR3311.
14337 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14339 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
14341 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14343 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
14344 and Objective-C Dialect Options.
14346 2002-03-28 Richard Henderson <rth@redhat.com>
14348 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
14349 comparison should be done vs !=0 not >0 return code. Tidy cases.
14351 2002-03-28 Richard Henderson <rth@redhat.com>
14353 * c-decl.c (finish_function): New arg can_defer_p. Pass it
14354 on to c_expand_body.
14355 * c-tree.h (finish_function): Update decl.
14356 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
14358 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
14360 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
14362 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
14364 * rtlanal.c: Include flags.h
14365 (may_trap_p): Do not mark FP operations if trapping
14366 if !flag_trapping_math
14367 * Makefile.in (rtlanal.o): Add dependency on flag.h
14368 * ifcvt.c (noce_operand_ok): Avoid the lameness.
14370 2002-03-27 Zack Weinberg <zack@codesourcery.com>
14372 * mips.md: Use dconst1, not 1.0, as first argument of
14373 REAL_VALUE_LDEXP. Don't use union real_extract.
14375 2002-03-28 Alan Modra <amodra@bigpond.net.au>
14377 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14378 rather than $target. Heed program_prefix and
14379 program_transform_name. Search for gas in cross-compiler case too.
14380 "test -x" rather than "test -f".
14381 (gcc_cv_ld): Likewise.
14382 (gcc_cv_nm): Heed program_prefix and program_transform_name.
14383 (gcc_cv_objdump): Likewise.
14384 * configure: Regenerate.
14386 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14388 * Makefile.in (attribs.o): Update.
14389 * attribs.c: Include langhooks.h.
14390 (decl_attributes): Use langhook.
14391 * c-decl.c (insert_default_attributes): Rename.
14392 * c-tree.h (c_insert_default_attributes): New.
14393 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14394 (LANG_HOOKS_INITIALIZER): Update.
14395 * langhooks.h (struct lang_hooks): New hook.
14396 * tree.h (insert_default_attributes): Remove.
14398 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14400 2002-03-27 Andreas Schwab <schwab@suse.de>
14402 * config/i386/i386.c (classify_argument): Also check for
14405 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14407 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14410 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
14412 * i960.md (ret): Set PC.
14413 (nonlocal_goto): Fix expander.
14414 * builtins.c (epxand_builin_longjmp): Check that we've emitted
14417 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
14419 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14420 of libcall regions.
14422 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14424 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14425 assigning to BLOCK_FOR_INSN directly.
14427 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
14429 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14431 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14433 * c-common.c (c_expand_expr): Fix prototype.
14434 * c-common.h (c_expand_expr): Always declare, update.
14435 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14436 * c-objc-common.c (c_objc_common_init): No global hook.
14437 * expr.c (expand_expr): Use langhook.
14438 * expr.h (enum expand_modifier): Conditionally declare.
14439 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14440 (LANG_HOOKS_INITIALIZER): Update.
14441 * langhooks.c (lhd_expand_expr): New.
14442 * langhooks.h (struct lang_hooks): New hook.
14443 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14444 (lang_independent_init): Don't default hook.
14446 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14448 2002-03-27 Richard Henderson <rth@redhat.com>
14451 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14452 TARGET_CONST_GP. Simplify conditions.
14454 2002-03-27 Richard Henderson <rth@redhat.com>
14456 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14457 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14458 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14460 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
14462 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14463 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14464 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14465 Remove unnecessary masks.
14466 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14467 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14468 -mwindows, -mdll switches and their negations.
14470 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14472 * gcc-common.c (lang_mark_false_label_stack): Remove.
14473 * ggc.h (lang_mark_false_label_stack): Similarly.
14475 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
14477 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14479 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14480 or __rtems_ is defined.
14482 2002-03-26 Richard Henderson <rth@redhat.com>
14484 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14485 if a non-trivial load was emitted.
14486 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
14487 in high+extra+low case.
14489 2002-03-26 Richard Henderson <rth@redhat.com>
14491 * config.gcc (sparc*-solaris): Use float_format=sparc.
14493 2002-03-26 Richard Henderson <rth@redhat.com>
14495 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14496 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14497 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14498 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14499 (WINT_TYPE_SIZE): Fix at 32.
14501 2002-03-26 Richard Henderson <rth@redhat.com>
14503 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14504 until after eh landing pad generation.
14505 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14506 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14508 2002-03-26 Richard Henderson <rth@redhat.com>
14510 * expr.h (ADD_PARM_SIZE): One more convert for INC.
14512 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
14514 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
14515 and warning switches.
14516 (cc1_options): Likewise.
14518 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
14520 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14521 Restore more of the signal context. Set no_reg_stack_frame.
14522 * config/ia64/unwind-ia64.c (unw_state_record):
14523 Add no_reg_stack_frame, comments.
14524 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14525 (uw_update_context): Adjust bsp when unwinding from leaf,
14526 but not signal frame.
14528 2002-03-26 David Edelsohn <edelsohn@gnu.org>
14530 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14532 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14534 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14536 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14539 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14540 "Add a pool_range attribute", which was lost during the ARM/Thumb
14543 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14545 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14546 a register into the MAC16 accumulator.
14548 2002-03-26 Andrew Cagney <ac131313@redhat.com>
14550 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14551 (Warning Options): Document -Wswitch-enum.
14552 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
14554 (warn_switch_enum): Define variables.
14555 * flags.h (warn_switch_enum): Declare variables.
14556 * stmt.c (expand_end_case_type): When warn_switch_enum /
14557 -Wswitch-enum, perform switch checks.
14560 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14562 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14563 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14564 (reload_muladdsi_compare0_scratch): Delete.
14566 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
14568 * doc/install.texi (*-*-freebsd*): Update.
14570 2002-03-26 Richard Henderson <rth@redhat.com>
14572 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14573 (SUB_PARM_SIZE): Cast DEC to ssizetype.
14575 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14576 types from the normal argument frame.
14578 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14579 variable sized objects by reference.
14580 (sparc_va_arg): Receive them by reference too.
14582 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
14584 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
14585 code to not restoring global registers.
14587 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
14589 * Makefile.in (ggc-common.o): Update.
14590 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14591 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14592 * c-tree.h (c_mark_tree): New.
14593 * ggc-common.c: Include langhooks.h.
14594 (gcc_mark_trees): Use new langhook.
14595 * ggc-callbacks.c: Delete file.
14596 * ggc.h (lang_mark_tree): Remove.
14597 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14598 (LANG_HOOKS_INITIALIZER): Update.
14599 * langhooks.h (struct lang_hooks): New hook.
14601 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14603 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14605 * doc/cpp.texi: Exclude entire Top node from printed manual.
14606 Move option index after directive index. Insert page breaks
14607 before GFDL and concept index. Index environment variables
14608 with command line options.
14609 * doc/cppenv.texi: Use @vtable for environment variable list.
14610 Add paragraph explaining semantics of empty elements in path
14611 variables. Exclude a cross-reference to Fishkill from the
14612 manpage. Remove an unnecessary cross-reference of the entry
14613 right above the referer. Don't use @anchor in text that goes
14615 * doc/cppopts.texi: Cross-reference the environment variables
14616 section, not the specific environment variable, for consistency.
14618 2002-03-25 Richard Henderson <rth@redhat.com>
14620 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14621 anywhere in the block. Don't refer to insns that have been
14622 removed from the chain. Iterate backward through the new insns.
14623 Don't refer to edges that have been removed.
14625 2002-03-26 Alan Modra <amodra@bigpond.net.au>
14627 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14628 test for overflow of constant.
14630 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
14633 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14634 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14635 these patterns on arm_archv4.
14637 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
14639 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14642 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14644 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
14645 float_handled, float_handler, float_signal, set_float_handler,
14646 and do_float_handler. Set handler for SIGFPE to crash_signal.
14647 * toplev.h: Don't prototype do_float_handler.
14649 * c-lex.c: Fold parse_float into lex_number. Make warning
14650 about portability of hex float constants more informative, and
14651 don't issue it on top of a syntax error.
14652 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14654 * real.h: Define REAL_VALUE_ABS here...
14655 * simplify-rtx.c: ... not here. Fold check_fold_consts,
14656 simplify_unary_real, simplify_binary_real, and
14657 simplify_binary_is2orm1 into their callers.
14658 * tree.c: Fold build_real_from_int_cst_1 into caller.
14660 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14662 * tsystem.h: Include float.h here...
14663 * libgcc2.c: ... not here.
14665 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
14667 Fixes for: PR bootstrap/3591, target/5676
14668 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14669 defined. Do not disable exceptions or rtti.
14670 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14671 mcore.h. Disable exceptions and rtti, since they are not
14674 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
14676 * c-decl.c (maybe_build_cleanup): Remove.
14677 * expr.c (expand_expr): Use langhook.
14678 * langhooks-def.h (lhd_return_null_tree,
14679 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14680 (LANGHOOKS_INITIALIZER): Update.
14681 * langhooks.c (lhd_return_null_tree): New.
14682 * langhooks.h (struct lang_hooks): New hook.
14683 * tree-inline.c (initialize_inlined_parameters): Use langhook.
14684 * tree.h (maybe_build_cleanup): Remove.
14686 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14688 * regrename.c (build_def_use): Move recog_memoized
14689 before extract_insn.
14691 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14694 * expr.c (emit_group_store): Handle storing into CONCAT.
14696 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14698 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14699 corresponding MATCH_DUP.
14701 2002-03-24 Richard Henderson <rth@redhat.com>
14703 * unroll.c (unroll_loop): Zero label_map.
14705 * gcse.c: Include except.h.
14706 * Makefile.in (gcse.o): Update.
14708 2002-03-24 Richard Henderson <rth@redhat.com>
14710 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14711 Do resolve_unique_section before shared data clause.
14713 2002-03-24 Richard Henderson <rth@redhat.com>
14715 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14717 2002-03-24 Richard Henderson <rth@redhat.com>
14719 * recog.c (peephole2_optimize): Split blocks when EH insns are
14720 generated in the middle of a block. Do global life update if
14723 2002-03-24 Richard Henderson <rth@redhat.com>
14725 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14727 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14730 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
14731 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14732 (init_dependency_output): Don't make no_output decision here.
14734 2002-03-24 Andrew Cagney <ac131313@redhat.com>
14736 * stmt.c (check_for_full_enumeration_handling): Remove tests of
14737 warn_switch. Update description.
14738 (expand_end_case_type): Call check_for_full_enumeration_handling
14741 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14743 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14744 (m68hc11_split_move): Call it to see if the source and destination
14745 operands use the same direction auto inc/dec mode, otherwise make the
14746 source an offsetable memory operand and generate an add.
14748 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14750 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14751 register for operand 2.
14752 ("*subsi3_zero_extendqi"): Likewise.
14753 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14754 bits so that it is compatible with a pop.
14755 ("*andhi3_gen"): Likewise.
14756 ("xorhi3"): Likewise.
14758 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14760 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14762 (cpp_post_options): ... not here.
14764 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14765 Aldy Hernandez <aldyh@redhat.com>
14767 Removal of separate preprocessor cpp0.
14769 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14770 cpp0, install-common): Update.
14771 * c-common.c (flag_preprocess_only): New.
14772 (c_common_init): Preprocess for -E.
14773 * c-common.h (flag_preprocess_only): New.
14774 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14775 * c-objc-common.c (c_init_decl_processing): Exit quickly
14776 for NULL return from c_common_init.
14777 * cpplib.h (cpp_preprocess_file): New.
14778 * cppmain.c (main, general_init, pfile, progname): Remove.
14779 (do_preprocessing): Rename cpp_preprocess_file, don't call
14780 cpp_finish. Don't close stdout here.
14781 (setup_callbacks): Update prototype.
14782 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
14784 * tradcpp.c (main): Ignore -quiet.
14786 * lang-specs.h (default_compilers): Preprocess with cc1obj.
14788 2002-03-24 Richard Henderson <rth@redhat.com>
14790 PR optimization/5742
14791 * machmode.def: Add inner mode field to complex modes.
14792 * config/mips/mips.c (mips_function_value): Always define. Add
14793 new argument to handle libcalls.
14794 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
14795 (FUNCTION_VALUE): Likewise.
14796 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
14797 * config/mips/mips-protos.h: Update.
14799 2002-03-23 Richard Henderson <rth@redhat.com>
14801 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
14802 * config/sparc/sparc-protos.h: Update.
14803 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
14805 2002-03-23 Richard Henderson <rth@redhat.com>
14807 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
14808 _start or _init begins the text segment.
14810 2002-03-23 David Edelsohn <edelsohn@gnu.org>
14812 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
14813 not HOST_WIDEST_INT.
14814 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
14816 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
14819 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
14820 operand argument to output_return_instruction.
14821 * arm.c (arm_print_operand, case 'd'): If the operand is
14822 const_true_rtx then just return.
14823 (arm_print_operand, case 'D'): If the operand is const_true_rtx
14826 2002-03-23 Andrew Cagney <ac131313@redhat.com>
14828 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
14829 (Warning Options): Document -Wswitch-default.
14830 * toplev.c (W_options): Add -Wswitch-default. Update comment on
14832 (warn_switch_default): Define variable.
14833 (warn_switch): Update comment.
14834 * flags.h (warn_switch_default): Declare variable.
14835 (warn_switch): Update comment.
14836 * stmt.c (expand_end_case): Check for and, when
14837 warn_switch_no_default, warn of a missing default case.
14839 2002-03-23 Alan Modra <amodra@bigpond.net.au>
14841 * real.h (N): Special case 128 bit doubles.
14843 * combine.c (simplify_comparison): When widening modes, ignore
14844 sign extension on CONST_INTs.
14846 2002-03-22 Bob Wilson <bob.wilson@acm.org>
14848 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
14849 passed to adjust_address. Fix comment formatting.
14852 2002-03-22 Zack Weinberg <zack@codesourcery.com>
14854 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
14855 Always make REAL_VALUE_TYPE a struct containing an array of
14856 HOST_WIDE_INT, not a double. Tidy up the code deciding how
14857 big it is. Don't declare or use union real_extract.
14859 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
14860 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
14861 (print_operand), config/arm/arm.c (output_move_double),
14862 config/arm/arm.md (consttable_4, consttable_8),
14863 config/romp/romp.c (output_fpops), config/s390/s390.h
14864 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
14865 (xtensa_output_literal): Don't use union real_extract.
14867 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
14868 (sfmode_constant_to_ulong), config/ns32k/merlin.h
14869 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
14870 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
14871 (PRINT_OPERAND): Don't use local version of union
14874 * config/convex/convex.c (check_float_value), config/vax/vax.c
14875 (vax_float_literal), config/m88k/m88k.md (divdf3),
14876 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
14877 config/pdp11/pdp11.c (output_move_quad): Don't do host
14878 arithmetic on target floating point quantities.
14880 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
14881 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
14883 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
14884 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
14886 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
14887 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
14889 * print-rtl.c (print_rtx): Disable code which needs
14890 floating-point emulator.
14891 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
14892 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
14893 depending on HOST_FLOAT_FORMAT to be defined properly.
14895 * config/1750a/1750a.c (get_double, float_label): Delete.
14896 (print_operand): Delete huge commented-out chunk. Use
14897 REAL_VALUE_TO_DECIMAL.
14898 * config/1750a/1750a-protos.h: Delete prototypes of deleted
14900 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
14902 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
14903 Use REAL_VALUE_TO_DECIMAL as ELF version does.
14904 * config/m88k/m88k.c (real_power_of_2_operand,
14905 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
14906 real_extract out of the union; run the input through
14907 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
14908 from that into the union.
14909 * config/pdp11/pdp11.c (output_move_double): Rearrange
14910 parentheses to make automatic indenter happy.
14912 * doc/tm.texi (Cross-compilation): Rename node to "Floating
14913 Point" and rewrite to describe current situation. Also adjust
14914 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
14916 * doc/rtl.texi: Adjust cross reference.
14918 2002-03-22 Bob Wilson <bob.wilson@acm.org>
14920 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
14921 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
14922 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
14923 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
14924 prevent use of sp as a reload register.
14925 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
14926 non_acc_reg_operand.
14927 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
14928 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
14929 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14930 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
14932 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
14934 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
14935 * cpplex.c (unterminated): Delete.
14936 (parse_string): No string literal may extend over multiple
14937 lines. Suppress the error when preprocessing assembly.
14938 * cppmain.c (scan_translation_unit): Strings are single-line.
14940 * doc/cpp.texi: Update to match.
14942 2002-03-22 Jakub Jelinek <jakub@redhat.com>
14944 PR optimization/5854
14945 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
14947 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
14948 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
14949 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
14950 const0 if scratch register was not allocated.
14951 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
14952 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
14953 with GEN_INT (...).
14954 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
14955 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
14956 with GEN_INT (...) everywhere. Remove constraints in define_split
14958 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
14959 require scratch register for setting 0 into regs/non-pushable memory.
14961 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
14963 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
14964 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
14966 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
14968 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
14969 * cppinit.c (cpp_create_reader): On by default.
14970 (cpp_handle_option): Handle -W[no-]endif-labels.
14971 (cpp_post_options): Also enable if -pedantic.
14972 * cpplib.c (do_else): Use it.
14973 (do_endif): Likewise.
14974 * doc/cppopts.texi: Document new option.
14975 * doc/invoke.texi: Document new option.
14977 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
14979 * config/i386/i386.c, config/i386/i386.md: Change all occurences
14980 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
14982 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
14984 * flow.c (calculate_global_regs_live): Clear aux fields of
14987 2002-03-22 Jakub Jelinek <jakub@redhat.com>
14989 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
14990 REG or MEM subregs, pass rtx * instead of rtx to it.
14991 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
14992 rtx * instead of rtx to alter_subreg.
14993 * config/m32r/m32r.c (gen_split_move_double): Likewise.
14994 * config/pj/pj.c (pj_output_rval): Likewise.
14996 2002-03-22 Richard Henderson <rth@redhat.com>
14999 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
15000 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
15001 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
15002 (ia64_expand_prologue): Look at int_regs, not words, for number
15003 of incomming int regs.
15005 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
15007 * expr.c (expand_expr): A RESULT_DECL is part of a call.
15009 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
15011 * toplev.c (flag_loop_optimize, flag_crossjumping):
15012 New static variables.
15013 (rest_of_compilation): Conditionalize crossjumping and
15015 (parse_options_and_default_flags): Default loop_optimize and
15017 (lang_independent_options): Add -fcrossjumping and -floop-optimize
15018 * invoke.texi (crossjumping, loop-optimize): Document.
15020 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15022 * real.c (eiisneg): Move outside #ifdef NANS.
15024 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
15026 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
15027 frequencies match; avoid match on different loop depths.
15028 (try_crossjump_to_bb): Kill tests that no longer brings time
15030 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
15032 (split_edge): Likewise.
15034 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
15037 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
15038 * cfgrtl.c: Include insn-config.h
15039 (split_block) Dirtify block in presence of conditional execution
15041 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15043 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
15044 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
15045 (function_arg): Constify CUMULATIVE_ARGS.
15046 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
15047 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
15048 (UNITS_PER_DOUBLE): New macro.
15049 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
15050 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
15051 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
15052 fp_regs and stack_words.
15053 (EABI_FLOAT_VARARGS_P): New macro.
15054 * config/mips/mips.c (struct mips_arg_info): New.
15055 (mips_arg_info): New function.
15056 (function_arg_advance): Use it. Add adjustment instructions here
15057 rather than in function_arg.
15058 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
15059 for VOIDmode at the beginning of the function.
15060 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
15061 (function_arg_pass_by_reference): Likewise.
15062 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
15063 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
15064 (mips_va_start): Likewise. Use the new stack_words field of
15065 CUMULATIVE_ARGS to set up overflow area. Reformat.
15066 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
15067 doubles and other types, aligning the overflow pointer for non-doubles
15068 too. Remove some code duplication. Replace hard-coded constants.
15070 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15072 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
15073 (CLASS_UNITS): Undefine.
15074 (CLASS_MAX_NREGS): Use FP_INC.
15075 * config/mips/mips.c (compute_frame_size): Likewise.
15076 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
15078 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15080 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
15081 prototype, and handle lexing numbers and identifiers.
15082 (parse_identifier): Update to new form of parse_slow.
15083 (parse_number): Fast path only, use parse_slow otherwise.
15084 (_cpp_lex_direct): Update calls to parse_number.
15086 2002-03-21 DJ Delorie <dj@redhat.com>
15088 * bb-reorder.c (make_reorder_chain_1): Protect against
15089 when redundant edges are omitted.
15090 * predict.c (dump_prediction): Likewise.
15092 2002-03-21 Richard Henderson <rth@redhat.com>
15095 * fixinc/inclhack.def (solaris_stdio_tag): New.
15096 * fixinc/fixincl.x: Regenerate.
15098 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15101 * c-typeck.c (process_init_element): Flag non-static
15102 initialization of a flexible array member as illegal.
15104 2002-03-22 Alan Modra <amodra@bigpond.net.au>
15106 * config/rs6000/t-linux64: New.
15107 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
15108 t-ppccomm. Use t-rs6000 and t-linux64.
15109 (powerpc64-*-gnu* <tmake_file>): Likewise.
15110 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
15111 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
15112 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
15114 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
15116 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
15117 flag_really_no_inline instead of optimize == 0.
15119 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
15121 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
15123 * flags.h (flag_really_no_inline): New.
15125 * c-common.c (c_common_post_options): Initialize
15126 flag_really_no_inline.
15128 * toplev.c (flag_really_no_inline): New.
15130 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15132 * config/avr/avr.md (length): Fix length computation for
15133 conditional branches.
15135 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
15137 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
15138 sdbout.o, profile.o): Update.
15139 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
15141 * c-common.h (gettags): Move here from tree.h.
15142 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
15143 insert_block, getdecls, kept_level_p, global_bindings_p): New.
15144 * dbxout.c (dbxout_init): Use getdecls langhook.
15145 * expr.c (expand_expr): Use insert_block langhook.
15146 * fold-const.c: Include langhooks.h.
15147 (fold_range_test, fold_binary_op_with_conditional_arg,
15148 fold): Use global_bindings_p langhook.
15149 * integrate.c (expand_inline_function): Use insert_block langhook.
15150 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
15151 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
15152 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
15153 LANG_HOOKS_GETDECLS): New.
15154 (LANG_HOOKS_INITIALIZER): Update.
15155 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
15157 * langhooks.h (struct lang_hooks_for_decls): New.
15158 (struct lang_hooks): Update.
15159 * profile.c: Include langhooks.h.
15160 (output_func_start_profiler): Use new langhooks.
15161 * sdbout.c: Include langhooks.h.
15162 (sdbout_init, sdbout_finish): Use getdecls langhook.
15163 * stmt.c: Include langhooks.h.
15164 (expand_fixup, fixup_gotos): Use new langhooks.
15165 * stor-layout.c: Include langhooks.h.
15166 (variable_size): Use global_bindings_p langhook.
15167 * toplev.c (compile_file): Use getdecls langhook.
15168 * tree-inline.c (remap_block): Use insert_block langhook.
15169 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
15170 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
15172 2002-03-21 Richard Henderson <rth@redhat.com>
15174 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
15175 constants in .data when -fpic.
15177 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15179 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
15182 2002-03-21 Tom Tromey <tromey@redhat.com>
15184 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
15186 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15188 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
15190 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
15192 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15193 Richard Henderson <rth@redhat.com>
15196 * c-common.c (c_expand_expr): Preserve result of a statement
15197 expression if needed.
15199 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15202 * genrecog.c (maybe_both_true_mode): Remove.
15203 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
15204 * machmode.def (Pmode): Likewise.
15206 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
15208 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
15209 (nonlocal_mentioned_p_1): New function.
15210 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
15211 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
15212 (mark_constant_function): Recognize pure functions.
15213 * rtl.h (global_reg_mentioned_p): New prototype.
15214 * rtlanal.c (global_reg_mentioned_p,
15215 global_reg_mentioned_p_1): New function.
15217 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15219 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
15221 * fixinc/fixincl.x: Regenerate.
15223 2002-03-20 Jason Merrill <jason@redhat.com>
15225 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
15227 2002-03-20 Michael Meissner <meissner@redhat.com>
15229 * doc/invoke.texi (Optimize Options): Document that -O2 sets
15232 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15234 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
15235 ".literal_position" directive before the constant pool.
15237 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15239 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
15240 Add Craig Rodrigues.
15241 Add Brad Lucier to testers.
15243 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15246 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
15248 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
15249 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
15250 instead of insn_extract.
15252 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15255 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
15257 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
15258 stmt if some case has been output.
15260 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15263 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
15264 movsfcc_1, movdfcc_1): Add %O2.
15265 * config/i386/i386.c (print_operand): Handle %ON.
15266 Print . before float condition codes in Sun as cmov syntax.
15267 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
15268 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
15271 2002-03-20 Philip Blundell <pb@nexus.co.uk>
15273 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
15274 return instruction if PC was popped.
15276 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15278 * config/xtensa/xtensa.md: Remove unused type attributes.
15279 (adddi_carry, subddi_carry): Change type attribute to "multi".
15281 2002-03-19 Dale Johannesen <dalej@apple.com>
15283 PR optimization/5999, middle-end/5731
15284 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
15285 multiplications by reciprocals.
15287 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
15289 * Makefile.in: Update.
15290 * c-common.c: Include langhooks.h.
15291 (inline_forbidden_p): Use new hook.
15292 * diagnostic.c: Include langhooks.h.
15293 (format_with_decl, announce_function,
15294 default_print_error_function): Use new hook.
15295 * dwarf2out.c (dwarf2_name): Use new hook.
15296 * function.c: Include langhooks.h.
15297 (init_function_start): Use new hook.
15298 * langhooks-def.h (lhd_decl_printable_name): New.
15299 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
15300 (LANGHOOKS_INITIALIZER): Update.
15301 * langhooks.c (lhd_decl_printable_name): New.
15302 * langhooks.h (struct lang_hooks): New hook.
15303 * toplev.c (decl_name, decl_printable_name): Remove.
15304 (open_dump_file): Use new hook.
15305 (process_options): Remove old hook.
15306 * tree.h (decl_printable_name): Remove.
15308 * objc-act.c (objc_init): Remove old hook.
15309 (objc_printable_name): Export.
15310 * objc-act.h (objc_printable_name): New.
15311 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
15313 2002-03-19 Jim Blandy <jimb@redhat.com>
15315 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
15316 the start_source_file debug hook, not the current line number.
15318 2002-03-19 Richard Henderson <rth@redhat.com>
15320 * flow.c (EH_USES): Provide default.
15321 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
15322 * doc/tm.texi (EH_USES): New.
15324 * config/ia64/ia64.c (ia64_eh_uses): New.
15325 * config/ia64/ia64-protos.h: Update.
15326 * config/ia64/ia64.h (EH_USES): New.
15328 2002-03-19 Richard Henderson <rth@redhat.com>
15330 * varasm.c (output_constant_def): Fix stupid typo.
15332 2002-03-19 Richard Henderson <rth@redhat.com>
15335 * except.c (current_function_has_exception_handlers): New.
15336 * except.h: Declare it.
15337 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
15338 Combine tests that disable all sibcalls for the function.
15340 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
15342 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
15345 2002-03-19 Richard Henderson <rth@redhat.com>
15348 * config/ia64/ia64.c: Revert 2002-03-01 patch.
15349 * config/ia64/ia64.h (INIT_EXPANDERS): New.
15351 2002-03-19 Jim Blandy <jimb@redhat.com>
15353 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
15354 name, even if the replacement list contains no tokens, as required
15357 2002-03-19 Jason Merrill <jason@redhat.com>
15359 * varasm.c (globalize_decl): Get the name from the RTL, not
15360 DECL_ASSEMBLER_NAME.
15362 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
15364 2002-03-19 Bob Wilson <bob.wilson@acm.org>
15366 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
15367 subdi_carry): Define.
15369 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15371 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15372 about -fpic/-fPIC if extra_warnings set.
15374 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15376 * expr.c (expand_expr): Sign-extend CONST_INT generated from
15377 TREE_STRING_POINTER.
15378 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
15380 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15382 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15383 in favor of SP if FRAME_POINTER_REQUIRED is false.
15385 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
15387 * emit-rtl.c (gen_int_mode): New function.
15388 * rtl.h: Prototype for it.
15389 * combine.c (make_extraction, simplify_comparison), expmed.c
15390 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15391 (convert_modes, store_field), optabs.c (expand_fix),
15392 simplify-rtx.c (neg_const_int, simplify_unary_real),
15394 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15395 Use it instead of GEN_INT (trunc_int_for_mode (...)).
15397 2002-03-19 Jakub Jelinek <jakub@redhat.com>
15400 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15401 convert_parm_for_inlining.
15402 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15404 * langhooks-def.h: Likewise.
15405 * objc/objc-lang.c: Likewise.
15406 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15408 * tree-inline.c (initialize_inlined_parameters):
15409 Call convert_parm_for_inlining lang hook if needed.
15410 * c-typeck.c (c_convert_parm_for_inlining): New function.
15411 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15413 2002-03-18 Mark Mitchell <mark@codesourcery.com>
15415 * calls.c (precompute_arguments): Do not assume that temporaries
15416 can be destroyed after expanding the argument.
15417 (expand_call): Likewise.
15419 2002-03-15 Eric Christopher <echristo@redhat.com>
15421 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15422 Fix register preference on last change.
15423 * config/mips/mips.c (mips_return_in_memory): New function.
15424 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15425 * config/mips/mips-protos.h: Declare.
15426 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15427 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15429 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
15431 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15433 (anddi3, iorsi3): Likewise.
15435 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15436 use %gprel for symbols that are going to be placed in linkonce
15439 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15440 RETURN_ADDRESS_POINTER_REGNUM to $ra.
15441 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15442 not needed. Disregard leaf_function_p().
15443 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15444 mips16 frame pointer.
15445 * config/mips/mips.md (store ra): Only to small SP offsets.
15446 2001-08-22 Graham Stott <grahams@redhat.com>
15447 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15448 return a REG rtx for the return address register.
15450 2002-03-18 Bob Wilson <bob.wilson@acm.org>
15452 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15453 constant-pool addresses as "mode-dependent".
15454 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15456 2002-03-18 Jakub Jelinek <jakub@redhat.com>
15459 * expr.c (emit_group_load): Use extract_bit_field if
15460 needed for CONCAT arguments.
15462 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
15465 * arm.md (tablejump): Make this a define_expand. For PIC add the
15466 offset to the base of the table.
15467 (thumb_tablejump): Matcher for Thumb tablejump insn.
15468 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15469 as the difference of two labels.
15470 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15471 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15472 tables in the code.
15473 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15474 * arm.c (get_jump_table_size): If the table is not in the text
15475 section, return zero.
15477 2002-03-18 Bernd Schmidt <bernds@redhat.com>
15479 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15481 (arm_reload_out_hi): Use gen_lowpart instead of
15482 gen_rtx_SUBREG to access QImode components.
15483 * config/arm/arm.md: Disable zero_extend split for QImode
15484 subregs in BIG_ENDIAN mode.
15485 (storehi_bigend): Match use of least significant byte.
15486 (storeinthi): Remove extraneous SUBREG.
15487 Add missing construction of operands[2].
15488 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15489 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15490 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15492 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
15494 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15497 2002-03-17 Richard Henderson <rth@redhat.com>
15499 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15502 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15504 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15505 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15507 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15509 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15511 * predict.c (estimate_bb_frequencies): Delete unused variables.
15513 2002-03-17 Richard Henderson <rth@redhat.com>
15515 * config/ia64/ia64.c (ia64_attribute_table): Move before
15516 targetm definition. Make static.
15518 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
15520 * c-common.h (yyparse, c_common_parse_file): New.
15521 * c-lang.c: Include c-common.h.
15522 (LANG_HOOKS_PARSE_FILE): Redefine.
15523 * c-lex.c: Include c-common.h.
15524 (yyparse): Rename c_common_parse_file. Call yyparse.
15525 * c-parse.in (yyparse): Remove macro.
15526 * c-tree.h (yyparse_1): Remove.
15527 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15528 (LANG_HOOKS_INITIALIZER): Update.
15529 * langhooks.h (struct lang_hoooks): New hook parse_file.
15530 * toplev.c (compile_file): Use parse_file hook.
15531 * tree.h (yyparse): Remove.
15532 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
15534 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15536 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15537 float_truncate, not fix.
15538 ("*truncdfsf2_real"): Ditto.
15539 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15541 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15543 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
15545 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15546 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
15547 where appropriate. Make the second reference to
15548 leaf_function_p a function call, as intended. Reindented.
15550 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15551 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15553 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15554 add register to non-constant into sp.
15556 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15557 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15558 (mips16_gp_pseudo_rtx): Lose.
15559 (INIT_EXPANDERS): Deleted.
15560 * config/mips/mips.c (mips_init_machine_status): New.
15561 (mips_free_machine_status): New.
15562 (mips_mark_machine_status): New.
15563 (override_options): Set them.
15564 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15565 (struct machine_function): ... new. Replaced all references.
15566 (mips_add_gc_roots): Don't mark them.
15567 (embedded_pic_fnaddr_reg): New, extracted from...
15568 (embedded_pic_offset): ... here.
15569 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15572 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15574 * cppinit.c: Revert -MD removal.
15576 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15578 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15579 soft registers by default for 68HC12.
15580 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15581 when compiling with -fomit-frame-pointer.
15582 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15583 (expand_epilogue): Likewise.
15584 (m68hc11_gen_rotate): Use exg when rotating by 8.
15586 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15588 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15589 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15590 (splits): Remove unused add splits.
15591 ("*addhi3_68hc12"): Tune constraints.
15592 ("addhi_sp"): Try to use X instead of Y in all cases and if the
15593 constant fits in 8-bits and D is dead use abx/aby instructions.
15594 ("*addhi3"): Remove extern declaration of ix_reg.
15595 ("*subsi3"): Optimize and provide new split.
15596 ("subhi3"): Cleanup.
15597 ("*subhi3_sp"): Avoid saving X if we know it is dead.
15598 (arith splits): For 68hc12 save the address register on the stack
15599 and do the arithmetic operation with a pop.
15601 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15603 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15604 allocating QImode in address registers.
15605 ("*movqi_m68hc11"): Likewise.
15607 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
15609 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15611 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15613 * cppinit.c (print_help): Display -MD and -MMD.
15614 Don't display usage string. Update assertion syntax and
15616 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15617 (cpp_handle_option): Update.
15619 2002-03-15 Chris Demetriou <cgd@broadcom.com>
15621 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15622 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15623 and define it so that regardless of target CPU size,
15624 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15625 of "int" rather than "long."
15627 2002-03-15 Richard Henderson <rth@redhat.com>
15629 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15632 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15634 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15635 ("tstqi" split): Avoid using memory for tstqi on address register.
15636 (splits): Remove constraints.
15637 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15638 ("cmpdf", "cmpsf"): Remove since not used.
15639 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15640 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15642 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15644 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15645 ("neghi2"): Tighten constraints.
15646 ("one_cmplsi2"): Optimize and simplify split.
15647 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15649 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15651 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15652 and split of AND operation to clear the upper bits.
15653 ("*logicalsi3_zextqi"): Likewise.
15654 ("*logicallhi3_zexthi_ashift8"): Likewise.
15655 ("*logicalsi3_silshr16"): Likewise.
15656 ("logicalsi3_silshl16"): Likewise.
15657 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15659 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15661 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15662 (m68hc11_indirect_p): New function.
15663 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15664 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15666 (asm_print_register): Likewise.
15667 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15668 (m68hc11_indirect_p): Declare.
15669 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15670 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15671 (TARGET_SWITCHES): New option -mrelax.
15672 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15674 ("iorsi3", "xorsi3"): Likewise.
15675 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15676 ("*andhi3_mem"): New to handle destination in memory with bclr
15677 and a scratch register.
15678 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15679 ("*andhi3_const"): New when operand2 is constant.
15680 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15681 ("*andhi3_gen"): Cleanup of the old "andhi3".
15682 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15683 ("xorqi3"): Update constraints.
15685 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15687 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15688 for reg_equiv_memory_loc when the operand is a register that does
15689 not get a hard register (stack location).
15690 (tst_operand): After reload, accept all memory operand.
15691 (symbolic_memory_operand): Fix detection of symbolic references.
15692 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15693 accept symbols and any constant.
15695 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15697 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15698 note on the insn that sets the soft frame register.
15699 (must_parenthesize): ix and iy are also reserved names.
15700 (print_operand_address): One more place where parenthesis are required
15701 to avoid confusion with register names.
15702 (m68hc11_gen_movhi): Allow push of stack pointer.
15703 (m68hc11_check_z_replacement): Fix handling of parallel with a
15705 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15706 the replacement register is.
15707 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15708 and D8_REGS classes.
15709 (MODES_TIEABLE_P): All modes are tieable except QImode.
15711 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15713 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15714 (___subdi3): Likewise.
15715 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15716 (__map_data_section): Optimize 68hc11 case.
15718 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15720 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15721 than a shift to avoid adding a register with itself.
15722 (m68hc11_memory_move_cost): Take into account NO_REGS.
15723 (m68hc11_register_move_cost): Update and use memory move cost
15724 for soft registers.
15725 (m68hc11_address_cost): Make cost of valid offset not 0 so that
15726 it gives more opportunities to cse to optimize.
15727 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15728 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15730 2002-03-15 Mark Mitchell <mark@codesourcery.com>
15732 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15733 * c-common.def (CLEANUP_STMT): New tree node.
15734 * c-common.h (CLEANUP_DECL): New macro.
15735 (CLEANUP_EXPR): Likewise.
15736 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15737 * expr.c (expand_expr): Tidy.
15738 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15739 * tree-inline.c (initialize_inlined_parameters): Clean up
15740 new local variables.
15742 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15745 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15746 before movrXX only, use reg_overlap_mentioned_p.
15747 Only special case NE if just one insn can be generated.
15749 2002-03-15 Jason Merrill <jason@redhat.com>
15751 * varasm.c (assemble_variable): Call resolve_unique_section before
15752 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
15753 of error_mark_node.
15755 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15758 * arm.md (split pattern for thumb shiftable immediates): Add comment
15759 explaining non-obvious test.
15761 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15764 * arm.md (movaddr, movaddr_insn): Delete.
15766 2002-03-15 Jason Merrill <jason@redhat.com>
15768 * toplev.c (wrapup_global_declarations): Clarify variable handling.
15769 -fkeep-static-consts doesn't apply to comdats.
15771 2002-03-14 Richard Henderson <rth@redhat.com>
15773 * c-decl.c: Include c-pragma.h.
15774 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15775 (finish_function): Tidy.
15776 * c-pragma.c: Include c-common.h.
15777 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15778 (handle_pragma_weak): Use them.
15779 (init_pragma): Register pending_weaks.
15780 * c-pragma.h (maybe_apply_pragma_weak): Declare.
15781 * print-tree.c (print_node): Print DECL_WEAK.
15782 * varasm.c (mark_weak_decls): Remove.
15783 (remove_from_pending_weak_list): Remove.
15784 (add_weak): Remove.
15785 (asm_emit_uninitialised): Call globalize_decl for weak commons.
15786 (weak_decls): Make a tree_list.
15787 (declare_weak): Cons weak_decls directly.
15788 (globalize_decl): Remove weak_decls elements directly.
15789 (weak_finish): Simplify weak_decls walk. Don't weaken unused
15790 symbols. Don't pretend to handle aliases.
15791 (init_varasm_once): Update weak_decls registry.
15792 * Makefile.in: Update dependencies.
15794 2002-03-14 Richard Henderson <rth@redhat.com>
15797 * config/ia64/ia64.c: Include tm_p.h last.
15798 (gen_nop_type): Remove duplicate definition.
15799 (cycle_end_fill_slots): Set sched_data for second L slot.
15800 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
15801 (nop_cycles_until): Fix typos.
15803 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15805 PR optimization/5891
15806 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
15808 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
15810 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
15811 descriptors correctly.
15813 2002-03-14 Michael Meissner <meissner@redhat.com>
15815 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
15816 100, allowing MAX_UNROLLED_INSNS to be overridden.
15818 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
15821 * unroll.c (params.h): Include.
15822 (MAX_UNROLLED_INSNS): Delete, now in params.h.
15824 * doc/invoke.texi (--param max-unroll-insns): Document.
15826 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
15828 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
15830 * arm.md: Fix warnings about constraints in peepholes and splits.
15832 2002-03-14 Zack Weinberg <zack@codesourcery.com>
15834 * cpphash.h (struct lexer_state): Remove line_extension member.
15835 * cpplib.c (dequote_string, do_linemarker): New functions.
15836 (linemarker_dir): New data object.
15837 (DIRECTIVE_TABLE): No longer need to interpret #line in
15838 preprocessed source. Delete obsolete comment about return
15839 values of handlers.
15840 (end_directive, directive_diagnostics, _cpp_handle_directive):
15841 Don't muck with line_extension.
15842 (directive_diagnostics): No need to issue warnings for
15844 (_cpp_handle_directive): Issue warnings for linemarkers here,
15845 when appropriate. Dispatch linemarkers to do_linemarker, not
15847 (do_line): Code to handle linemarkers split out to do_linemarker.
15848 Convert escape sequences in filename argument, both places.
15850 * cppmacro.c (quote_string): Rename cpp_quote_string and
15851 export. All callers changed.
15852 * cpplib.h (cpp_quote_string): Prototype.
15853 * cppmain.c (print_line): Call cpp_quote_string on to_file
15854 before printing it.
15856 * doc/cpp.texi: Document that escapes are now interpreted in
15857 #line and in linemarkers, and that non-printing characters are
15858 converted to octal escapes when linemarkers are generated.
15860 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
15862 * emit-rtl.c (try_split): Use delete_insns.
15863 * recog.c (split_all_insns): Fix terminating condition.
15865 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
15866 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
15869 * arm.c (arm_output_epilogue): Fix floating-point register save
15870 adjustment when using a frame pointer.
15872 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
15874 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
15875 * config/mips/mips.c (compute_frame_size): Retrofit them here.
15876 (save_restore_insns, mips_expand_epilogue): And here.
15877 (build_mips16_call_stub): And here.
15878 (mips_function_value): Use the new macros to decide whether a single
15879 or complex float can be returned in floating-point registers. Return
15880 a parallel rtx in the complex case.
15882 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
15884 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
15885 call after liveness analysis.
15887 * recog.c (split_insn): Use delete_insn_and_edges.
15889 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
15890 instructions to have branch prediction notes.
15891 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
15893 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
15895 * configure.in: Don't pass -Wno-long-long to a ADA compiler
15896 that doesn't support it.
15897 * configure: Regenerate.
15899 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15902 * config/sparc/sparc.md (normal_branch, inverted_branch,
15903 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
15904 inverted_fp_branch): Adjust calls to output_cbranch.
15905 Set length attribute.
15906 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
15907 output_v9branch. Set length attribute.
15908 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
15910 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
15911 (output_cbranch): Likewise. Handle far branches.
15912 (output_v9branch): Handle far branches.
15913 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
15915 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
15916 noov_compare64_op predicates.
15918 2002-03-13 Jason Merrill <jason@redhat.com>
15920 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
15921 into the function and constify it.
15922 * gthr-dce.h, gthr-solaris.h: Likewise.
15924 2002-03-13 David Edelsohn <edelsohn@gnu.org>
15926 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
15927 * config/rs6000/rs6000.c (rs6000_va_arg): Use
15928 std_expand_builtin_va_arg if not ABI_V4.
15930 2002-03-13 Jason Merrill <jason@redhat.com>
15932 * varasm.c (globalize_decl): New fn.
15933 (assemble_start_function): Use it.
15934 (asm_emit_uninitialized): Use it.
15935 (assemble_alias): Use it.
15936 (assemble_variable): Use it.
15938 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
15940 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
15941 2002-03-12 internal visibility change.
15942 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
15943 visibility into SYMBOL_REF_FLAG.
15945 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
15947 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
15948 VOIDmode operand. Add compile-time optimization for constant results.
15950 2002-03-12 Jason Merrill <jason@redhat.com>
15952 * c-typeck.c (convert_for_assignment): Don't allow conversions
15953 between pointers and references. Only allow lvalues to convert to
15956 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
15958 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
15959 before prologue, to avoid scheduling problems.
15961 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15963 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
15964 (ELIMINABLE_REGS): Add sfp->sp.
15965 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
15967 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15969 PR optimization/5892
15970 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
15972 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15974 * loop.c (basic_induction_var): Don't call convert_modes if mode
15975 classes are different.
15977 2002-03-12 Richard Henderson <rth@redhat.com>
15979 PR optimization/5901
15980 * function.c (reposition_prologue_and_epilogue_notes): Position
15981 the markers after/before the last/first insn not deleted.
15983 2002-03-12 Richard Henderson <rth@redhat.com>
15985 PR optimization/5878
15986 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
15987 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
15988 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
15990 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
15991 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
15992 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
15994 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
15995 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
15996 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
15997 also. Don't set it if not flag_pic.
15998 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
15999 to be INVALID_REGNUM when not used.
16001 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
16003 * expmed.c (store_bit_field): Reset alias set for memory.
16004 (extract_bit_field): Same.
16006 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16008 * c-common.c (c_tree_code_type, c_tree_code_length,
16009 c_tree_code_name, add_c_tree_codes): Delete.
16010 * c-common.h (add_c_tree_codes): Delete.
16011 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
16013 * c-objc-common.c (c_objc_common_init): Don't call
16014 add_c_tree_codes, instead set lang_unsafe_for_reeval.
16015 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
16016 objc_tree_code_name, add_objc_tree_codes): Delete.
16017 (objc_init): Don't call add_objc_tree_codes.
16018 * objc/objc-lang.c (tree_code_type, tree_code_length,
16019 tree_code_name): Define.
16020 * toplev.c (lang_independent_init): Don't set
16021 tree_code_length[IDENTIFIER_NODE].
16022 * tree.c (tree_code_type, tree_code_length, tree_code_name):
16023 Delete definitions, moved to language front-ends.
16024 * tree.def (IDENTIFIER_NODE): Hardwire the length.
16025 * tree.h (tree_code_type, tree_code_length, tree_code_name):
16027 (tree_code_length): Change type to unsigned char.
16029 2002-03-12 Richard Henderson <rth@redhat.com>
16031 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
16032 internal visibility change.
16034 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16036 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
16037 validize_mem() instead of change_address to avoid clobbering
16040 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
16042 * c-lex.h (position_after_whitespace): Remove.
16044 2002-03-12 Jakub Jelinek <jakub@redhat.com>
16046 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
16047 (lex_string): Use unsigned char pointers.
16049 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16051 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
16052 is not a valid memory_operand.
16054 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16056 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
16057 * config/xtensa/lib1funcs.asm: Fix copyright to include
16058 special case for libgcc files.
16059 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
16060 (__divsi3): Likewise.
16061 (__umodsi3): Likewise.
16062 (__modsi3): Likewise.
16063 * config/xtensa/lib2funcs.S: Fix copyright to include
16064 special case for libgcc files.
16066 2002-03-12 Tom Rix <trix@redhat.com>
16068 * collect2.c (resolve_lib_name): Move outside of
16069 OBJECT_FORMAT_COFF ifdef.
16070 (ignore_library): Same.
16072 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16074 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
16076 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16078 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
16079 to function_section before writing out the constant pool.
16081 2002-03-12 David Edelsohn <edelsohn@gnu.org>
16083 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
16085 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
16087 2002-03-12 Alan Modra <amodra@bigpond.net.au>
16089 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
16090 (adddi3): Likewise.
16093 (cmpsi splitter): Likewise.
16094 (modsi3): Fail if <= 0.
16095 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
16096 redundant test when HOST_BITS_PER_WIDE_INT != 32.
16097 (reg_or_sub_cint64_operand): Likewise.
16098 (num_insns_constant_wide): Optimize sign extension.
16099 (rs6000_legitimize_address): Likewise.
16101 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16103 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16104 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16106 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16108 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
16109 address calculation.
16111 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16113 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
16114 scratch register to DImode / TImode.
16115 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
16116 register used does not overlap the target.
16118 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16120 * Makefile.in (debug.o): Depend on debug.h.
16121 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
16122 * debug.c (do_nothing_debug_hooks): Likewise.
16123 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
16124 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
16125 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
16126 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
16127 * dwarfout.c (dwarf_debug_hooks): Likewise.
16128 * integrate.c (output_inline_function): Likewise.
16129 * objc/objc-act.c (synth_module_prologue): Likewise.
16130 * sdbout.c (sdb_debug_hooks): Likewise.
16131 * toplev.c (debug_hooks): Likewise.
16132 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16134 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16136 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
16137 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
16138 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
16139 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
16140 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
16141 * defaults.h (POINTER_SIZE): Define.
16142 * doc/tm.texi (POINTER_SIZE): Document default.
16144 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16146 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
16148 2002-03-11 Richard Henderson <rth@redhat.com>
16150 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
16151 if rebuild_label_notes_after_reload.
16153 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
16155 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
16156 emit pic register load if "internal" visibility.
16157 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
16158 (cris_expand_builtin_va_arg): Do all computations on trees.
16160 2002-03-11 Richard Henderson <rth@redhat.com>
16162 * rtlanal.c: Include recog.h.
16163 (keep_with_call_p): Fix thinko.
16164 * Makefile.in (rtlanal.o): Update dependencies.
16166 2002-03-11 Chris Meyer <cmeyer@gatan.com>
16168 * genflags.c (gen_insn): Use IS_VSPACE.
16169 * genoutput.c (output_insn_data): Likewise.
16170 (process_template): Likewise.
16172 2002-03-11 Richard Henderson <rth@redhat.com>
16174 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
16176 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
16178 * Makefile.in: Update.
16179 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
16180 Update documentation.
16181 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
16182 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
16184 2002-03-11 Zack Weinberg <zack@codesourcery.com>
16186 * Makefile.in: Give texi2pod its input file as a command line
16187 argument, not on stdin.
16189 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
16190 Daniel Berlin <dan@dberlin.org>
16192 C++ alias analysis improvement.
16193 * alias.c (record_component_aliases): Record aliases for base
16196 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
16198 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
16200 2002-03-11 Douglas B Rupp <rupp@gnat.com>
16202 * toplev.c (vms_fopen): Remove, not needed.
16204 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
16206 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
16208 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
16209 for FP, already done later.
16211 * toplev.c (debug_args): Add entry for VMS_DEBUG.
16212 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
16214 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
16216 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
16217 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
16218 LARGEST_EXPONENT_IS_NORMAL for the given mode.
16219 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
16220 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
16221 (ediv, emul, eldexp, esqrt): Likewise.
16222 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
16223 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
16224 (saturate): New function.
16225 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
16226 (make_nan): Use a saturation value instead of a NaN if
16227 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
16228 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
16229 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
16230 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
16231 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
16232 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
16233 !ROUND_TOWARDS_ZERO.
16234 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
16235 (ROUND_TOWARDS_ZERO): Document.
16237 2002-03-11 Andreas Jaeger <aj@suse.de>
16239 * cfg.c (dump_flow_info): Remove unused variable.
16241 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
16243 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
16244 computations on trees.
16246 2002-03-10 Richard Henderson <rth@redhat.com>
16249 * reload.c (copy_replacements_1): New.
16250 (copy_replacements): Use it to recurse through the rtx.
16252 2002-03-10 Richard Henderson <rth@redhat.com>
16254 * loop.c (strength_reduce): Compute number of iterations as
16255 unsigned HOST_WIDE_INT.
16257 2002-03-10 Richard Henderson <rth@redhat.com>
16259 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
16260 to move away from the end of the block.
16262 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
16264 PR preprocessor/5899
16265 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
16267 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16269 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
16271 * attribs.c (decl_attributes): Fix signed/unsigned warning.
16273 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
16275 * config/mmix/mmix.c: Improve comments.
16276 (mmix_target_asm_function_prologue): Drop variable
16277 empty_stack_frame. Don't allocate unused slot above fp.
16278 (mmix_target_asm_function_epilogue): Mirror prologue changes.
16279 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
16280 brace in first column.
16281 (enum reg_class): Ditto.
16282 (FIRST_PARM_OFFSET): Now 0.
16283 (USER_LABEL_PREFIX): Remove #if 0:d definition.
16285 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16287 * combine.c (make_extraction): Fix error in last change.
16289 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16291 * c4x.c (c4x_fp_reglist): Const-ify.
16292 * cris.c (cris_print_operand): Likewise.
16293 * i386.c (ix86_va_arg): Likewise.
16294 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
16295 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
16296 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
16297 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
16298 * mcore.h (regno_reg_class): Likewise.
16299 * mips.c (gen_int_relational): Likewise.
16300 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
16301 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
16302 * pdp11.c (move_costs): Likewise.
16303 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
16304 * s390.c (s390_branch_condition_mnemonic, regclass_map):
16306 * s390.h (regclass_map): Likewise.
16307 * sh.c (shift_amounts): Likewise.
16308 * sh.md (rotlsi3): Likewise.
16310 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16312 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
16313 (ne0+5): Use new clobber to generate proper shift pattern.
16314 Patch by Michael Matz <matz@kde.org>.
16316 2002-03-09 Andreas Schwab <schwab@suse.de>
16318 * gcc.c (validate_all_switches): Also handle `%W{...}'.
16320 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16322 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
16324 2002-03-09 Jakub Jelinek <jakub@redhat.com>
16327 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
16328 even for non-representable constants.
16330 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16332 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
16333 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
16334 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
16335 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
16336 (pop_function_context): Compute MAY_SHARE parameter for
16338 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
16339 (gen_mem_addressof): Call fixup_var_refs with new parm.
16341 * combine.c (make_extraction): Don't make extension of CONST_INT.
16343 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16345 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
16346 in o32 and o64 ABIs.
16347 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
16348 but getting fixed-size structs passed in registers regardless of
16349 padding in o32 and o64 ABIs.
16351 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
16352 offset before loading address of argument passed by transparent
16355 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
16357 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
16359 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16361 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
16362 marker such that registers after it are saved.
16364 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16366 * sparc.c (arith_4096_operand): Fix error in last change.
16368 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16370 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16371 defaults for MEABI.
16373 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16375 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16378 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16380 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
16382 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
16384 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16385 removed; fix return value.
16386 * combine.c (combine_instructions): Dirtify blocks where we failed to
16387 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16388 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16390 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16392 * gcse.c (insert_insn_end_bb): Fix typo in last change.
16394 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
16396 * recog.c (peephole2_optimize): Re-distribute EH edges.
16398 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
16400 * expr.c (expand_expr): Use unsave lang hook.
16401 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16402 (LANG_HOOKS_INITIALIZER): Update.
16403 * langhooks.h (struct lang_hooks): New hook unsave.
16404 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16405 (unsave_expr_1): Remove unused lang_unsave_expr_now.
16406 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
16407 (unsave_expr_now): Remove.
16408 * tree.h (unsave_expr_now, lang_unsave,
16409 lang_unsave_expr_now): Remove.
16412 2002-03-08 Andreas Jaeger <aj@suse.de>
16414 * flow.c (propagate_block_delete_insn): Remove unused variable.
16416 2002-03-08 Kazu Hirata <kazu@hxi.com>
16418 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16419 insn length for memory load/store.
16421 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
16423 * doc/install.texi (--with-libiconv-prefix): Document.
16425 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
16427 * doc/sourcebuild.texi: Fix typo.
16429 2002-03-08 Jakub Jelinek <jakub@redhat.com>
16432 * builtins.c (std_expand_builtin_va_arg): Do all computations on
16435 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16437 * rtl.c (copy_most_rtx): Move from here ...
16438 * emit-rtl.c (copy_most_rtx): ... to here.
16440 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16442 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16443 SUBTARGET_CPP_SIZE_SPEC.
16444 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16446 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16448 2002-03-07 Matt Hiller <hiller@redhat.com>
16450 * gensupport.c (first_dir_md_include): Renamed from include;
16451 change all references.
16452 (last_dir_md_include): Renamed from last_include; change all
16454 (init_md_reader): Unconditionally initialize base_dir whether or
16455 not filename is a relative path.
16457 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
16459 * config/fp-bit.c (_unord_f2): Compile it in even if
16460 US_SOFTWARE_GOFAST is enabled.
16462 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16463 NULL_RTX. Set all HFmode operations as NULL_RTX.
16464 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16465 NULL_RTX, try reversing the comparison and the operands.
16467 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16469 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16470 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16473 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
16475 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16477 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16479 * basic-block.h (fixup_abnormal_edges): Declare.
16480 * reload1.c (fixup_abnormal_edges): New function.
16481 * reg-stack.c (convert_regs): Use it.
16483 * gcse.c (insert_insn_end_bb): Handle trapping insns.
16485 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16487 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
16489 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16490 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16491 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16492 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16493 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16494 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16495 unless x and y could be infinite.
16496 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16497 Check that the common type of both arguments is a real, even for
16498 targets without unordered comparisons. Allow an integer argument
16499 to be compared against a real.
16500 (expand_tree_builtin): Use expand_unordered_cmp.
16501 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16502 * cse.c (fold_rtx): Likewise. Fix indentation.
16503 * fold-const.c (fold_real_zero_addition_p): New.
16504 (fold): Use it, and the new HONOR_... macros.
16505 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16506 * jump.c (reversed_comparison_code_parts): After searching for
16507 the true comparison mode, use HONOR_NANS to decide whether it
16508 can be safely reversed.
16509 (reverse_condition_maybe_unordered): Remove IEEE check.
16510 * simplify-rtx.c (simplify_binary_operation): Use the new macros
16511 to decide which simplifications are valid. Allow the following
16512 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16513 and (a - -b) to (a + b).
16514 (simplify_relational_operation): Use HONOR_NANS.
16515 * doc/tm.texi: Document the MODE_HAS_... macros.
16517 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
16519 * combine.c (simplify_comparison): If simplifying a logical shift
16520 right and compare with constant, force the comparison to unsigned.
16522 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
16524 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
16526 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16528 (alt_reg_names): Remove % for vrsave.
16530 2002-03-06 Richard Henderson <rth@redhat.com>
16532 PR optimization/5844
16533 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
16534 if used indicates we've already emitted one copy of an operand.
16535 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16536 (gen_split): Supply a non-null used.
16538 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16540 * reload1.c (reload): Unshare all rtl after reload is done.
16542 * simplify-rtx.c (simplify_plus_minus): Do not abort,
16543 but simply fail if the expression is too complex to simplify.
16544 (simplify_gen_binary): Handle simplify_plus_minus failures.
16546 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
16548 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16549 consistently call delete_trivially_dead_insns after CSE and GCSE;
16550 fix DFI_life dumping; do jump threading after liveness; do crossjumping
16551 after liveness2; update comment in last crossjumping.
16552 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16554 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
16556 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16557 after completing fast dead code elimination.
16559 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16562 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
16564 * version.c: Fix misplaced leading blanks on first line.
16566 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
16568 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16570 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
16572 * cfgcleanup.c (mentions_nonequal_regs): New function.
16573 (thread_jump): Use it.
16574 * toplev.c (rest_of_compilation): Run jump threading after
16577 2002-03-06 Jakub Jelinek <jakub@redhat.com>
16579 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16582 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
16584 * predict.c (estimate_bb_frequencies): Do not reload the
16585 frequencies from notes.
16587 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
16589 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16590 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16592 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16593 delete_noop_moves): Return indeger.
16594 * flow.c (ndead): New variable.
16595 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16596 BB argument; update callers.
16597 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16598 (life_analysis): Do not call purge_all_dead_edges.
16599 (update_life_info): Return number of deleted insns; print statistics.
16600 (update_life_info_in_dirty_blocks): likewise.
16601 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16602 return number of insns deleted.
16604 * cse.c: Include timevar.h
16605 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16606 iterate until stabilizes; print statistics; return number of killed
16608 * Makefile.in: (cse.o): Add timevar.h dependency
16609 * rtl.h (delete_trivially_dead_insns): New.
16610 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16611 * toplev.c (rest_of_compilation): Update callers.
16613 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16614 (try_optimize_cfg): Do not update liveness.
16615 (cleanup-cfg): Loop until try_optimize_cfg and dead code
16616 removal stabilizes; use delete_trivially_dead_insns.
16618 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16620 2002-03-05 Zack Weinberg <zack@codesourcery.com>
16622 * cppmain.c (setup_callbacks): Disable #pragma and #ident
16623 callbacks when processing assembly language.
16625 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16627 * pa.h (ASM_FILE_END): Define.
16628 * som.h (ASM_FILE_END): Delete.
16630 * pa.c (function_arg): Don't pass floats in general registers in
16631 indirect calls if TARGET_ELF32.
16633 2002-03-05 Richard Henderson <rth@redhat.com>
16635 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16637 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
16639 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16641 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16643 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16644 -r command line. Don't hide any symbols if not building
16647 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
16649 * cfg.c (dump_flow_info): Warn about profile mismatches.
16650 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16651 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16653 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16655 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16656 wide volatile memory by parts.
16658 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16660 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16663 2002-03-05 Richard Henderson <rth@redhat.com>
16665 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
16667 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16669 * toplev.c (documented_lang_options): Document more
16670 language-specific options.
16671 * doc/invoke.texi (Warning Options): Correct documentation for
16672 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16673 * c-decl.c (c_decode_option): Use a table to handle warning options.
16675 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
16677 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16678 parameter to mmix_encode_section_info.
16679 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16680 relocatably. Always produce ELF, not mmo if linking relocatably.
16681 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16682 first is non-zero, don't add symbol prefix.
16683 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16684 prototype accordingly.
16686 2002-03-04 Krister Walfridsson <cato@df.lth.se>
16688 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16690 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
16692 * configure.in: Increase required makeinfo version to 4.1.
16693 * configure: Regenerate.
16695 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16697 * .cvsignore: Remove *.info* and genrtl*; these files are generated
16700 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
16702 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16703 * doc/invoke.texi: Fix @math uses.
16705 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16707 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16710 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
16712 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16713 (powerpc-*-eabisimaltivec*): Same.
16715 * config/rs6000/t-ppcendian: New.
16717 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16719 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16720 nonimmediate_src_operand and nonimmediate_lsrc_operand to
16721 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16723 2002-03-03 Richard Henderson <rth@redhat.com>
16725 * toplev.c (rest_of_decl_compilation): Revert last two changes.
16727 2002-03-03 Zack Weinberg <zack@codesourcery.com>
16729 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16730 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16731 tree.c, config/m68k/m68k.c:
16732 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16733 REAL_ARITHMETIC blocks unconditional. Delete some further
16734 #ifdef blocks predicated on REAL_ARITHMETIC.
16735 * flags.h, toplev.c: Delete remaining references to
16736 flag_pretend_float.
16738 * doc/invoke.texi: Remove documentation of -fpretend-float.
16739 * doc/tm.texi: Describe the various REAL_* macros as provided by
16740 real.h, not by the target configuration files.
16742 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16743 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16744 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16745 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16746 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16747 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16748 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16749 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16750 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16751 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16752 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16753 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16754 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16755 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16756 config/xtensa/xtensa.h:
16757 Do not define, undefine, or mention in comments any of
16758 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16759 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16760 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16761 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16762 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16763 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16764 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16765 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16766 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16768 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16770 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16771 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16772 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16773 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16774 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16775 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16777 * defaults.h (BITS_PER_WORD): Define.
16778 * doc/tm.texi (BITS_PER_WORD): Document default value.
16780 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16781 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16782 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
16784 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16786 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
16787 lieu of explicit sizeof/sizeof.
16788 * i386.c (override_options, ix86_init_mmx_sse_builtins,
16789 ix86_expand_builtin): Likewise.
16790 * mips.c (mips_add_gc_roots): Likewise.
16791 * mmix.c (mmix_output_condition): Likewise.
16792 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
16793 altivec_init_builtins): Likewise.
16794 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
16795 * cppexp.c (Nsuff, parse_number): Likewise.
16796 * cppinit.c (builtin_array_end): Likewise.
16797 * gcc.c (n_default_compilers, process_command): Likewise.
16798 * genpreds.c (output_predicate_decls): Likewise.
16799 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
16800 * lcm.c (N_ENTITIES): Likewise.
16801 * stor-layout.c (set_sizetype): Likewise.
16803 2002-03-03 Richard Henderson <rth@redhat.com>
16805 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
16806 for types or labels.
16808 2002-03-03 Richard Henderson <rth@redhat.com>
16810 * c-decl.c (start_decl): Initialized variables are not common.
16812 2002-03-02 Per Bothner <per@bothner.com>
16814 * gcc.c (option_map): Suport new --bootclasspath option.
16815 --CLASSPATH is now just an alias for --classpath.
16817 2002-03-02 Richard Henderson <rth@redhat.com>
16819 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
16820 load if "internal" visibility.
16821 * doc/extend.texi: Document visibility meanings.
16823 2002-03-02 Richard Henderson <rth@redhat.com>
16825 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
16826 to functions as well.
16828 2002-03-02 Richard Henderson <rth@redhat.com>
16830 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
16831 (handle_visibility_attribute): Don't call assemble_visibility.
16832 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
16833 without asmspec. Invoke assemble_alias when needed.
16834 * varasm.c (maybe_assemble_visibility): New.
16835 (assemble_start_function, assemble_variable, assemble_alias): Use it.
16837 2002-03-02 Richard Henderson <rth@redhat.com>
16839 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
16840 invoke ENCODE_SECTION_INFO with first call flag.
16842 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
16843 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
16844 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
16845 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
16846 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
16847 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
16848 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
16849 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
16850 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
16851 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
16852 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
16853 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
16854 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
16855 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
16856 config/mcore/mcore-protos.h, config/mcore/mcore.c,
16857 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
16858 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
16859 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
16860 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
16861 config/sh/sh.h, config/sparc/sparc.h,
16862 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
16863 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
16864 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
16865 FIRST argument. As needed, examine it and do nothing.
16867 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
16868 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16869 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
16871 * config/arm/t-pe (pe.o): Add dependencies.
16873 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16875 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
16876 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
16877 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
16878 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
16879 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
16880 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
16881 * defaults.h (BITS_PER_UNIT): Define.
16882 * doc/tm.texi (BITS_PER_UNIT): Document default value.
16884 2002-03-02 Kazu Hirata <kazu@hxi.com>
16886 * config/h8300/h8300-protos.h: Add a prototype for
16887 compute_a_shift_length.
16888 * config/h8300/h8300.c (h8300_asm_insn_count): New.
16889 (compute_a_shift_length): Likewise.
16890 (h8300_adjust_insn_length): Do not adjust insn length of shift
16892 * config/h8300/h8300.md (anonymous shift patterns): Use
16893 compute_a_shift_length.
16895 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16897 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
16898 trunc_int_for_mode.
16900 * emit-rtl.c (offset_address): Call update_temp_slot_address.
16902 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16904 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
16905 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
16906 * flags.h (flag_zero_initialized_in_bss): Declare.
16907 * toplev.c (flag_zero_initialized_in_bss): New flag.
16908 (lang_independent_options): Add flag_zero_initialized_in_bss.
16909 * tree.c (initializer_zerop): New function.
16910 * tree.h (initializer_zerop): Declare.
16911 * varasm.c (assemble_variable): If we can emit bss, put zero
16912 initializers in the bss section.
16914 2002-03-02 Alan Modra <amodra@bigpond.net.au>
16916 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
16917 like more than one symbol per .weak directive.
16919 2002-03-01 Richard Henderson <rth@redhat.com>
16921 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
16922 adjust argument_pointer by pretend_args_size.
16923 (ia64_va_start): Adjust va_start address by -pretend_args_size.
16925 2002-03-01 Kazu Hirata <kazu@hxi.com>
16927 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
16929 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
16931 * toplev.c (rest_of_compilation): Delete dead jumptables before
16933 * flow.c (delete_dead_jumptables): Make global.
16934 * rtl.h (delete_dead_jumptables): Declare.
16936 2002-03-01 David Edelsohn <edelsohn@gnu.org>
16938 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
16939 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
16940 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
16942 2002-03-01 Kazu Hirata <kazu@hxi.com>
16944 * config/h8300/h8300-protos.h: Fix formatting.
16945 * config/h8300/h8300.c: Likewise.
16946 * config/h8300/h8300.h: Likewise.
16948 2002-03-01 Kazu Hirata <kazu@hxi.com>
16950 * config/h8300/h8300.c (print_operand): Support 16-bit
16951 constant addresses.
16952 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
16954 2002-02-28 Richard Henderson <rth@redhat.com>
16956 * expmed.c (store_bit_field): Prevent generation of CONCATs;
16957 pun complex values as integers; use gen_lowpart instead of
16959 (extract_bit_field): Likewise.
16961 2002-03-01 Alan Modra <amodra@bigpond.net.au>
16962 David Edelsohn <edelsohn@gnu.org>
16964 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
16965 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
16966 (SUPPORTS_WEAK): Likewise.
16967 * output.h (add_weak): Add tree param.
16968 * varasm.c (add_weak): Likewise. Save decl.
16969 (struct weak_syms): Add decl field.
16970 (mark_weak_decls): New function.
16971 (init_varasm_once): ggc_add_root mark_weak_decls.
16972 (assemble_start_function): Use ASM_WEAKEN_DECL.
16973 (assemble_variable): Likewise.
16974 (assemble_alias): Likewise.
16975 (declare_weak): Pass decl to add_weak.
16976 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
16977 (remove_from_pending_weak_list): Declare and define for
16979 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
16980 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
16981 * defaults.h (SUPPORTS_WEAK): Likewise.
16982 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16983 .weak for code sym. Do emit .size for descriptor sym.
16984 (ASM_DECLARE_FUNCTION_SIZE): Define.
16985 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
16986 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
16987 .lglobl unless TARGET_XCOFF. Formatting fixes.
16988 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16989 .weak for code sym.
16990 (HANDLE_PRAGMA_WEAK): Remove.
16991 (ASM_WEAKEN_LABEL): Remove.
16992 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
16994 2002-03-01 Jason Merrill <jason@redhat.com>
16996 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
16997 (TARGET_EXPR_CLEANUP): New macro.
16999 2002-02-28 Steve Ellcey <sje@cup.hp.com>
17001 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
17002 to take ptr_extend into account as third type of extension.
17003 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
17004 fields used by SUBREG_PROMOTED_UNSIGNED_P.
17005 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
17006 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
17007 * calls.c (precompute_arguments): Use new macro.
17008 (expand_call): Ditto.
17009 * combine.c (nonzero_bits): Ditto.
17010 (record_promoted_value): Ditto.
17011 * expr.c (store_expr): Ditto.
17012 (expand_expr): Ditto.
17013 * function.c (assign_parms): Ditto.
17015 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
17017 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
17018 override -shared and -shared-libgcc.
17020 2002-02-28 David O'Brien <obrien@FreeBSD.org>
17022 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
17024 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
17027 2002-02-28 Richard Henderson <rth@redhat.com>
17029 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
17030 4 cycle latency from MM producers.
17031 (ia64_internal_sched_reorder): Likewise with pipeline flush.
17033 2002-02-28 Jakub Jelinek <jakub@redhat.com>
17035 * mklibgcc.in: Don't use GNU make extension.
17037 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17039 * c-parse.in (STATIC): New terminal.
17040 (scspec): New non-terminal. Update productions accordingly.
17041 (program): Remove bogus ifc / end ifc.
17042 (array_declarator): Simplify production using STATIC.
17044 2002-02-28 Jim Meyering <meyering@lucent.com>
17046 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
17047 \a still means TARGET_BELL.
17049 2002-02-28 Richard Henderson <rth@redhat.com>
17051 * haifa-sched.c (sched_emit_insn): New.
17052 (schedule_block): Use last_scheduled_insn to track last insn.
17053 * sched-int.h (sched_emit_insn): Prototype.
17054 * config/ia64/ia64.c (last_issued): Remove.
17055 (ia64_variable_issue): Don't set it.
17056 (nop_cycles_until): Use sched_emit_insn.
17058 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
17060 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
17061 extended constants.
17063 2002-02-28 Kazu Hirata <kazu@hxi.com>
17065 * config/h8300/h8300.c: Fix formatting.
17066 * config/h8300/h8300.h: Likewise.
17068 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
17070 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
17071 which may overwrite the high byte of the frame pointer.
17073 2002-02-28 Bo Thorsen <bo@suse.de>
17075 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
17076 (STARTFILE_SPEC): Add 64 bit files.
17077 (ENDFILE_SPEC): Likewise.
17079 2002-02-28 Jason Merrill <jason@redhat.com>
17081 * c-decl.c (finish_function): Only warn about missing return
17082 statement with -Wreturn-type.
17084 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
17086 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
17088 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
17089 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
17091 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
17093 * basic-block.h (BB_REACHABLE): Renumber.
17094 (BB_DIRTY, BB_NEW): New flags.
17095 (clear_bb_flags): Declare.
17096 (update_life_info_in_dirty_blocks): Declare.
17097 * cfg.c (clear_bb_flags): New function.
17098 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
17099 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
17100 reorder_insns, emit_insn_after): Mark block as dirty.
17101 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
17102 (update_life_info_in_dirty_blocks): New function.
17103 * recog.c (apply_change_group): Dirtify block.
17105 * cse.c (cse_insn): Reorder emitting of jump insn to keep
17107 * gcse.c (delete_null_pointer_checks): Likewise.
17109 * toplev.c (dump_file_index): Move cse2 after bp,
17111 (dump_file_info): Similary.
17112 (rest_of_compilation): Avoid most of CFG rebuilds;
17113 do first if converision after null pointer checks, do cse2
17114 after branch prediction; avoid full liveness rebuild after
17115 initializing subregs.
17116 * invoke.texi (-d options): Document -du, renumber.
17118 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
17119 (notice_new_block): Do not set BB_UPDATE_LIFE.
17120 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
17121 merge_blocks_move_successor_nojumps, merge_blocks,
17122 try_crossjump_to_edge): Likewise.
17123 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
17124 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
17125 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
17126 (merge_of_block): Do not use life_data_ok.
17127 (find_if_case_1): Do not use SET_UPDATE_LIFE.
17128 (if_convert): Use BB_DIRTY mechanizm to update life.
17129 * lcm.c (optimize_mode_switching): Update
17130 update_life_info_in_dirty_blocks
17132 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17134 * Makefile.in (integrate.o): Update.
17135 * c-decl.c (copy_lang_decl): Rename.
17136 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17137 * integrate.c: Include langhooks.h.
17138 (copy_decl_for_inlining): Update to use langhook.
17139 * langhooks-def.h (lhd_do_nothing_t,
17140 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
17141 (LANG_HOOKS_INITIALIZER): Update.
17142 * langhooks.c (lhd_do_nothing_t): New.
17143 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
17144 * tree.h (copy_lang_decl): Remove.
17146 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17148 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
17150 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
17151 POST_DEC, and POST_MODIFY.
17153 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17155 * c-typeck.c (digest_init): Remove unused parameter; all
17158 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
17160 * expmed.c (expand_shift): Correctly test for low part of a
17163 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17165 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
17166 insn UIDs with insn addresses.
17168 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17170 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
17171 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
17172 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
17173 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
17174 gcc.c, toplev.c: Delete code implementing -traditional mode.
17176 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
17177 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
17178 Document removal of -traditional mode for compilation, and
17179 remove documentation only relevant to that mode.
17181 * config/nextstep.h, config/ptx4.h, config/svr4.h,
17182 config/convex/convex.h, config/d30v/d30v.h,
17183 config/i386/dgux.h, config/i386/osf1elf.h,
17184 config/i386/osfelf.h, config/i386/osfrose.h,
17185 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
17186 config/m68k/hp310.h, config/m88k/dgux.h,
17187 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
17188 config/m88k/m88k.h, config/m88k/openbsd.h,
17189 config/mips/abi64.h, config/mips/osfrose.h,
17190 config/mips/svr4-5.h, config/mips/svr4-t.h,
17191 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17192 config/stormy16/stormy16.h: Remove all references to
17193 -traditional from target specs. Delete all mention of the
17194 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
17195 delete a couple of commented-out definitions of
17196 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
17199 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
17200 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
17202 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17204 * mklibgcc.in: Don't use \n in a line subject to
17205 interpretation by echo.
17207 2002-02-27 Graham Stott <grahams@redhat.com>
17209 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
17212 * loop.c (prescan_loop): Handle PARALLEL.
17214 * unroll.c (loop_iterations): Return 0 if the add_val for
17217 * final.c (output_operand_lossage): Constify PFX_STR.
17219 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
17221 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
17223 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
17224 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
17226 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
17228 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17230 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
17232 * cpplex.c (_cpp_lex_token): Handle directives in macro
17234 * cpplib.c (_cpp_handle_directive): Save and restore state
17235 if parsing macro args when entering a directive.
17236 * cppmacro.c (collect_args): No need to handle directives
17237 in macro arguments.
17238 (enter_macro_context, replace_args): Use the original macro
17239 definition in case it was redefined whilst collecting arguments.
17241 * cpp.texi: Update.
17243 2002-02-26 David Edelsohn <edelsohn@gnu.org>
17245 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
17246 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
17247 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
17249 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
17250 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
17251 (load_toc_v4_PIC_2): Same.
17253 2002-02-26 Alan Modra <amodra@bigpond.net.au>
17255 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
17257 2002-02-26 Richard Henderson <rth@redhat.com>
17259 * config/alpha/alpha.md (ashldi_se): Re-enable.
17261 2002-02-26 Richard Henderson <rth@redhat.com>
17263 * config/alpha/alpha.c (alpha_encode_section_info): Examine
17264 MODULE_LOCAL_P; improve commentary.
17266 2002-02-26 Zack Weinberg <zack@codesourcery.com>
17268 * doc/cpp.texi: Clarify documentation of relationship between
17269 #line and #include.
17271 2002-02-26 Kazu Hirata <kazu@hxi.com>
17273 * config/h8300/h8300-protos.h: Update the prototype for
17274 compute_logical_op_length. Add the prototype for
17275 compute_logical_op_cc.
17276 * config/h8300/h8300.c (compute_logical_op_length): Figure out
17277 code from operands.
17278 (compute_logical_op_cc): New.
17279 * config/h8300/h8300.md: Combine all the logical op patterns
17280 in HImode and SImode. Use compute_logical_op_cc.
17282 2002-02-26 Kelley Cook <kelleycook@comcast.net>
17284 * config/i386/i386.c (print_operand): Don't append ATT-style
17285 length suffixs to x87 opcodes when in Intel mode.
17287 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
17289 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
17290 (init_emit_once): Update calls.
17291 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
17292 (init_syntax_once): Prototype.
17294 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
17296 * pa-linux.h (LIB_SPEC): Update definition.
17297 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17299 2002-02-26 Richard Henderson <rth@redhat.com>
17301 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
17302 if we emitted a stop bit.
17304 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17306 * configure.in (libgcc_visibility): Substitute.
17307 * configure: Rebuilt.
17308 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
17309 defined symbols .hidden.
17311 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17313 * attribs.c (c_common_attribute_table): Add visibility.
17314 (handle_visibility_attribute): New function.
17315 * varasm.c (assemble_visibility): New function.
17316 * output.h (assemble_visibility): Add prototype.
17317 * tree.h (MODULE_LOCAL_P): Define.
17318 * crtstuff.c (__dso_handle): Use visibility attribute.
17319 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
17320 for MODULE_LOCAL_P symbols too.
17321 * config/ia64/ia64.c (ia64_encode_section_info): Handle
17322 MODULE_LOCAL_P symbols the same way as local symbols.
17323 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
17324 into .sdata/.sbss by the user.
17325 * doc/extend.texi (Function Attributes): Document visibility
17328 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17331 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
17332 STRING_CST initializer spanning the whole variable without
17334 If expand_expr returned MEM, don't use it.
17336 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
17338 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
17339 generate a die for the lexical block.
17341 2002-02-26 Kazu Hirata <kazu@hxi.com>
17343 * config/h8300/h8300-protos.h: Add a prototype for
17344 compute_logical_op_length.
17345 * config/h8300/h8300.c (compute_logical_op_length): New.
17346 * config/h8300/h8300.md (anonymous logical patterns): Use
17347 compute_logical_op_length for length.
17349 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17351 * dwarf2out.c (modified_type_die): Do not call type_main_variant
17353 (gen_type_die): Same.
17355 * attribs.c (handle_vector_size_attribute): Set debug information.
17357 2002-02-26 Daniel Egger <degger@fhm.edu>
17359 * config/rs6000/rs6000.md: Swap define_insn attributes to
17360 fix incorrect generation of merge high instructions instead
17363 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17365 * c-typeck.c (really_start_incremental_init): Use
17366 bitsize_zero_node for vectors.
17368 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17370 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17371 ("*set_vrsave_internal"): Same.
17373 2002-02-25 Richard Henderson <rth@redhat.com>
17375 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17376 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
17378 2002-02-25 Jakub Jelinek <jakub@redhat.com>
17381 * config/i386/i386.c (ix86_return_pops_args): Only pop
17382 fake structure return argument if it was passed on the stack.
17384 2002-02-25 Jason Merrill <jason@redhat.com>
17386 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17389 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17391 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17392 link with shared_name only.
17393 * doc/invoke.texi (Link Options): Document new behavior.
17395 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17397 * c-typeck.c (push_init_level): Handle vectors.
17399 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17401 * config/sparc/sparc.c (const64_high_operand): Zero-extend
17402 operands of SPARC_SETHI_P.
17403 (input_operand): Likewise.
17404 (sparc_emit_set_const32): Likewise.
17405 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17406 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17407 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
17408 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17409 (movdi_insn_sp64_vis): Likewise.
17410 (movdi split, movdf split): Use SETHI32.
17411 * doc/md.texi: Document SPARC constraints L, M and N.
17413 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17415 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17416 ("*set_vrsave_internal"): use mfspr for Darwin.
17418 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17419 gen_get_vrsave_internal.
17421 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17423 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17425 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
17427 * cpplex.c (cpp_interpret_charconst): Get signedness or
17428 otherwise of wide character constants correct.
17429 * cppexp.c (lex): Get signedness of wide charconsts correct.
17431 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17433 * optabs.c (widen_operand): Only call convert_modes for
17434 promoted SUBREG if signedness matches.
17435 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17437 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17439 * cpplib.c (glue_header_name): Use local buffer to build up
17442 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17444 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17446 2002-02-23 Kazu Hirata <kazu@hxi.com>
17448 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17449 H8/300[HS] separately.
17450 * config/h8300/h8300.md: Remove the early clobber constraint
17451 from bit field patterns.
17453 2002-02-23 Kazu Hirata <kazu@hxi.com>
17455 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17457 (mulhisi3): Likewise.
17458 (umulqisi3): Likewise.
17459 (umulhisi3): Likewise.
17461 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17463 * cppinit.c (output_deps): Correct test for stdout output.
17464 (init_dependency_output): Cure warning.
17466 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17468 * expr.c (store_expr): When converting expression to promoted
17469 equivalent type, allow using SUBREG_REG of TARGET as the target
17470 of the expansion of EXP.
17471 * loop.c (basic_induction_var, case SUBREG): Always look inside.
17472 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17473 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17474 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17475 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17477 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
17479 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17480 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17481 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17483 2002-02-23 Jakub Jelinek <jakub@redhat.com>
17485 PR optimization/5747
17486 * loop.c (scan_loop): Update reg info if move_movables created new
17489 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17491 * gcc.c (init_gcc_spec): Revert last change.
17493 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17495 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17496 gpc_reg_operand constraint.
17498 2002-02-23 Alan Modra <amodra@bigpond.net.au>
17500 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17501 Simplify comparison of `low'.
17502 (add_operand): Fix formatting.
17503 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
17504 (mask_operand): Disallow mask to wrap in 64-bit mode.
17505 (rs6000_stack_info): Remove redundant test setting push_p.
17506 (output_toc): Fix formatting.
17507 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17508 cc_reg_not_cr0_operand constraint.
17509 (booldi3, boolcdi3 splitters): Same.
17511 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
17513 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
17515 2002-02-22 David Edelsohn <edelsohn@gnu.org>
17517 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17518 gcc invoked with -shared-libgcc.
17520 2002-02-22 Jakub Jelinek <jakub@redhat.com>
17523 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17524 decl if any of elements was TREE_USED.
17526 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
17528 * config/sparc/sol2.h: Don't include sys/mman.h.
17529 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17530 (arith_4096_operand): Don't throw high bits away.
17531 (const64_operand): Take sign extension of CONST_INTs into account.
17532 (const64_high_operand, sparc_emit_set_const32): Likewise.
17533 (GEN_HIGHINT64): Likewise.
17534 (sparc_emit_set_const64_quick1): Likewise.
17535 (const64_is_2insns): Likewise.
17536 (print_operand): Use trunc_int_for_mode for sign extension.
17537 * config/sparc/sparc.h (SMALL_INT32): Likewise.
17538 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17539 chars. Assume CONST_INT is already properly sign-extended.
17540 (movdi split): Sign-extend each SImode part.
17541 (andsi3 split): Don't mask high bits off, so that result
17542 remains properly sign-extend.
17543 (iorsi3 split): Likewise.
17544 (xorsi3 split): Likewise.
17546 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
17548 * fold-const.c (fold): Fix typo in comments.
17550 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17552 * Makefile.in (langhooks.o): Update dependencies.
17554 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17556 * langhooks.c: Include flags.h.
17558 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
17560 * testsuite/gcc.dg/attr-alwaysinline.c: New.
17562 * c-common.c (c_common_post_options): Set inline trees by
17565 * doc/extend.texi (Function Attributes): Document always_inline
17567 Update documentation about inlining when not optimizing.
17569 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17571 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17572 unless DECL_ALWAYS_INLINE.
17574 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17575 unless DECL_ALWAYS_INLINE.
17576 (c_disregard_inline_limits): Disregard if always_inline set.
17578 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17579 Disregard if always_inline set.
17580 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17581 unless DECL_ALWAYS_INLINE.
17583 * attribs.c (handle_always_inline_attribute): New.
17584 (c_common_attribute_table): Add always_inline.
17586 * config/rs6000/altivec.h: Add prototypes for builtins
17587 requiring the always_inline attribute.
17589 2002-02-21 Eric Christopher <echristo@redhat.com>
17591 * expmed.c (store_bit_field): Try to simplify the subreg
17592 before generating a new one when when the mode size of
17593 value is less than maxmode.
17595 2002-02-21 Richard Henderson <rth@redhat.com>
17597 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17598 than gen_rtx_PLUS to form the sum.
17599 * explow.c (force_reg): Rearrange to not allocate new pseudo
17600 when force_operand returns a register.
17601 * expr.c (expand_assignment): Allow offset_rtx expansion to
17602 return a sum. Do not force addresses into registers.
17603 (expand_expr): Likewise.
17604 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17605 to canonicalize arithmetic that didn't simpify.
17606 (simplify_plus_minus): New argument force; update
17607 all callers. Don't split CONST unless we can do something with it,
17608 and wouldn't lose the constness of the operands.
17610 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17611 that we generated earlier.
17613 2002-02-21 Tom Tromey <tromey@redhat.com>
17615 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17616 (output_line_info): Use constant `1', with a long explanatory
17618 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17620 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
17622 * jump.c (redirect_jump): If old label has no UID, don't try to
17625 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
17627 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17628 If input is constant, do shifts at compile time.
17630 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
17632 * doc/extend.texi: Fix some more overfull hboxes.
17634 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17636 PR optimization/4994
17637 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17640 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17643 * expr.h (expand_and): Add mode argument.
17644 * expmed.c (expand_and): Add mode argument.
17645 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17646 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17647 * except.c (expand_builtin_extract_return_addr): Likewise.
17648 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17649 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17650 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17651 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17652 * config/c4x/c4x.md: Use GEN_INT (x) instead of
17653 gen_rtx (CONST_INT, VOIDmode, x).
17655 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17658 * stmt.c (warn_if_unused_value): Move side effects test once more.
17660 2002-02-20 Torbjorn Granlund <tege@swox.com>
17662 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
17663 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
17665 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
17667 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17668 SUBREG or ZERO_EXTEND.
17670 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
17672 * sh.h (current_function_anonymous_args): Remove.
17673 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17674 of current_function_varargs and current_function_stdarg is set.
17675 * sh.c (sh_expand_prologue): Check current_function_varargs /
17676 current_function_stdarg / TARGET_SH5 instead of
17677 current_function_anonymous_args.
17679 * sh64.h (TARGET_VERSION): Define.
17681 2002-02-20 David Edelsohn <edelsohn@gnu.org>
17683 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17684 VRSAVE_REGNO on TARGET_ALTIVEC.
17686 2002-02-20 Alan Modra <amodra@bigpond.net.au>
17688 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17689 bits of SImode const_int.
17690 (includes_rshift_p): Likewise.
17691 (print_operand): Call mask_operand and mask64_operand with correct
17693 (rs6000_output_function_epilogue): Pad traceback table to word.
17694 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17695 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17696 mask64_operand with correct mode.
17697 (FUNCTION_ARG_REGNO_P): Correct parentheses.
17699 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17702 * varasm.c (get_pool_constant_mark): New.
17703 * rtl.h (get_pool_constant_mark): Add prototype.
17704 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17705 be represented if it has not been output.
17707 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17709 * combine.c (do_SUBST): Sanity check substitutions of
17710 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17711 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17712 CONST_INT into its operand.
17713 (known_cond): Likewise, for ZERO_EXTEND.
17714 * simplify-rtx.c (simplify_unary_operation): Fix condition to
17715 allow for simplification of wide modes. Reject CONST_INTs in
17716 ZERO_EXTEND when their actual mode is not given.
17718 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17720 * c-decl.c (pushdecl): If no global declaration is found for an
17721 extern declaration in block scope, try a limbo one.
17723 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17726 * c-common.c (pointer_int_sum): Moved from...
17727 * c-typeck.c (pointer_int_sum): ...here.
17728 * c-common.h (pointer_int_sum): Add prototype.
17730 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17733 * c-decl.c (duplicate_decls): Return 0 if issued error about
17736 2002-02-20 Roger Sayle <roger@eyesopen.com>
17737 Jakub Jelinek <jakub@redhat.com>
17740 * tree.c (host_integerp): Ensure that the constant integer is
17741 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17742 when pos is zero or non-zero respectively. Clarify comment.
17743 * c-format.c (check_format_info_recurse): Fix host_integerp
17744 usage; the pos argument should be zero when assigning to a
17745 signed HOST_WIDE_INT.
17747 2002-02-20 Richard Henderson <rth@redhat.com>
17749 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17750 of the operand, rather than assuming TImode.
17751 (ix86_expand_binop_builtin): Cope with commutative patterns
17752 using nonimmediate_operand for both operands.
17753 (ix86_expand_timode_binop_builtin): Likewise.
17754 (ix86_expand_store_builtin): Validate operand 1.
17755 (ix86_expand_unop1_builtin): Likewise.
17757 2002-02-20 Philip Blundell <philb@gnu.org>
17760 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17762 2002-02-20 Richard Henderson <rth@redhat.com>
17765 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17767 2002-02-20 Tom Tromey <tromey@redhat.com>
17769 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17770 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17771 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17772 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17773 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17776 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17778 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17779 for (const_int 0) in X not just INTVAL.
17781 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
17783 * doc/extend.texi: Avoid or reduce overfull hboxes.
17785 2002-02-20 Diego Novillo <dnovillo@redhat.com>
17787 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
17788 operations if the field does not start at a mode boundary.
17790 2001-02-20 Joel Sherrill <joel@OARcorp.com>
17792 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
17793 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
17794 Also done for -Acpu and -Amachine.
17796 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
17798 * cppinit.c (init_dependency_output): Take deps output file
17799 from -o if none given with -MF. Suppress normal output.
17800 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
17801 * doc/cpp.texi, doc/invoke.texi: Update.
17803 2002-02-19 Zack Weinberg <zack@codesourcery.com>
17805 * toplev.c (output_quoted_string): Write unprintable
17806 characters with octal escapes.
17808 2002-02-19 David Edelsohn <edelsohn@gnu.org>
17810 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
17811 really_call_used[VRSAVE_REGNO] if not Altivec.
17813 2002-02-19 Alan Modra <amodra@bigpond.net.au>
17815 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
17817 (constant_pool_expr_1): Fix formatting.
17818 (rs6000_legitimize_reload_address): Likewise.
17820 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17822 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
17823 now that we have one.
17825 2002-02-19 Zack Weinberg <zack@codesourcery.com>
17827 * tree.h (struct tree_common): Remove aux. Add unused_0 at
17828 end of first block of bitfields (which was only seven bits);
17829 rename dummy to unused_1; remove comment which is no longer true.
17831 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
17833 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
17835 2002-02-19 Philip Blundell <pb@nexus.co.uk>
17838 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
17842 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
17843 arm_is_longcall_p rather than inspecting call-type cookie
17845 (call_value_insn) [TARGET_THUMB]: Likewise.
17847 2002-02-19 Graham Stott <grahams@redhat.com>
17849 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
17851 2002-02-19 David Edelsohn <edelsohn@gnu.org>
17853 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
17854 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
17855 (FP_SAVE_INLINE): Delete.
17857 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
17858 * config/rs6000/eabi.asm: Remove ABI save restore routines.
17859 * config/rs6000/t-ppccomm: Build crtsavres.o.
17860 * config/rs6000/crtsavres.asm: New file.
17862 2002-02-19 Philip Blundell <philb@gnu.org>
17864 * config/arm/arm.c (use_return_insn): Don't reject interrupt
17866 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
17867 (output_return_instruction): Allow interrupt functions to return with
17868 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
17869 (arm_expand_prologue): Subtract 4 before stacking LR in an
17870 interrupt function.
17872 2002-02-19 Philip Blundell <pb@nexus.co.uk>
17874 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
17875 decl, not just FUNCTION_DECL.
17876 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
17877 (arm_assemble_integer): Likewise.
17878 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
17881 2002-02-19 matthew green <mrg@eterna.com.au>
17883 * config.gcc (sparc-*-netbsdelf*): Enable target.
17884 (sparc64-*-netbsd*): New target.
17885 * config/sparc/netbsd-elf.h: New file.
17886 * config/sparc/t-netbsd64: New file.
17888 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
17890 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
17892 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
17894 * doc/invoke.texi: explicitly list the style guidelines that
17895 -Weffc++ checks for.
17897 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
17899 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
17901 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
17904 * gcc.c (cpp_unique_options): Treat -o as indicating object file
17905 only if not -E. If -E, pass -o through to the preprocessor.
17907 2002-02-19 Kazu Hirata <kazu@hxi.com>
17909 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
17910 register number with an appropriate macro.
17912 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
17914 * doc/rtl.texi (Constants): Close @code tag.
17916 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
17918 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
17919 ("mmx_uavgv4hi3"): Same.
17920 ("pmulhrwv4hi3"): Same.
17922 * tree-inline.c (walk_tree): Handle vectors.
17924 * c-common.c (constant_expression_warning): Handle vectors.
17925 (overflow_warning): Same.
17927 * sched-deps.c (sched_analyze_2): Handle vectors.
17929 * rtlanal.c (rtx_unstable_p): Handle vectors.
17930 (rtx_varies_p): Same.
17931 (count_occurrences): Same.
17932 (regs_set_between_p): Same.
17933 (modified_between_p): Same.
17934 (modified_in_p): Same.
17935 (volatile_insn_p): Same.
17936 (volatile_refs_p): Same.
17937 (side_effects_p): Same.
17938 (may_trap_p): Same.
17939 (inequality_comparisons_p): Same.
17940 (replace_regs): Same.
17941 (computed_jump_p_1): Same.
17943 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
17945 (inner_mode_array): New.
17946 (copy_rtx): Handle vectors.
17947 (copy_most_rtx): Same.
17948 (rtx_equal_p): Same.
17949 (get_mode_alignment): Adjust for vectors.
17951 * resource.c (mark_referenced_resources): Handle vectors.
17952 (mark_set_resources): Same.
17954 * reload1.c (eliminate_regs): Handle vectors.
17955 (elimination_effects): Same.
17956 (scan_paradoxical_subregs): Same.
17958 * reload.c (subst_reg_equivs): Handle vectors.
17960 * regrename.c (scan_rtx): Handle vectors.
17962 * regclass.c (reg_scan_mark_refs): Handle vectors.
17964 * recog.c (find_single_use_1): Handle vectors.
17966 * local-alloc.c (equiv_init_varies_p): Handle vectors.
17967 (contains_replace_regs): Same.
17968 (memref_referenced_p): Same.
17970 * integrate.c (copy_rtx_and_substitute): Handle vectors.
17971 (subst_constants): Same.
17973 * genattrtab.c (attr_copy_rtx): Handle vectors.
17974 (encode_units_mask): Same.
17975 (clear_struct_flag): Same.
17976 (count_sub_rtxs): Same.
17978 * gcse.c (want_to_gcse_p): Handle vectors.
17979 (oprs_unchanged_p): Same.
17980 (hash_expr_1): Same.
17981 (oprs_not_set_p): Same.
17982 (expr_killed_p): Same.
17983 (compute_transp): Same.
17984 (store_ops_ok): Same.
17986 * function.c (purge_addressof_1): Do not allow paradoxical subregs
17988 (fixup_var_refs_1): Same.
17989 (instantiate_virtual_regs_1): Same.
17991 * fold-const.c (operand_equal_p): Handle vectors.
17993 (rtl_expr_nonnegative_p): Same.
17995 * flow.c (mark_used_regs): Handle vectors.
17997 * df.c (df_uses_record): Handle vectors.
17999 * cselib.c (cselib_subst_to_values): Handle vectors.
18000 (cselib_mem_conflict_p): Same.
18003 * cse.c (canon_reg): Handle vectors.
18005 (cse_process_notes): Same.
18006 (count_reg_usage): Same.
18007 (canon_hash): Same.
18009 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
18011 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
18013 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
18014 (gen_rtx): Handle CONST_VECTOR.
18015 (gen_const_vector_0): New.
18016 (copy_rtx_if_shared): CONST_VECTORs can be shared.
18017 (reset_used_flags): Same.
18018 (copy_insn_1): Same.
18019 (initializer_constant_valid_p): Handle VECTOR_CST.
18021 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
18023 * doc/rtl.texi (Constants): Document const_vector.
18024 (CONST0_RTX): Update for vectors.
18025 (RTL sharing): Same.
18027 * print-tree.c (print_node): Add case for VECTOR_CST.
18029 * tree.h (TREE_VECTOR_CST_ELTS): New.
18030 (struct tree_vector): New.
18031 (union tree_node): Add vector node.
18032 (build_vector): Add prototype.
18034 * tree.def (VECTOR_CST): New.
18036 * tree.c (build_vector): New.
18038 * expmed.c (make_tree): Handle CONST_VECTOR.
18040 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
18041 (CONST_VECTOR_ELT): New.
18042 (CONST_VECTOR_NUNITS): New.
18044 * machmode.h (GET_MODE_INNER): New.
18045 (DEF_MACHMODE): Accept 8th arg.
18047 * machmode.def: Add 8th argument for vector inner mode.
18048 Add inner vector modes for vectors.
18050 * rtl.def (VEC_CONST): Remove.
18051 (CONST_VECTOR): New.
18053 * expr.c (clear_storage): Allow vectors.
18054 (is_zeros_p): Handle VECTOR_CST.
18056 * varasm.c (output_constant_pool): Handle vectors.
18057 (rtx_const): Add veclo and vechi fields.
18058 (kind): Add RTX_VECTOR.
18059 (decode_rtx_const): Add case for vector.
18061 * config/rs6000/rs6000-protos.h: Add zero_constant.
18063 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
18064 constants. Force easy vector constants into memory.
18065 (easy_vector_constant): New.
18066 (emit_easy_vector_constant): New.
18067 (rs6000_legitimize_reload_address): Do not generate bad reloads on
18070 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
18072 ("altivec_lvxl"): Same.
18073 (altivec_lvebx): Same.
18074 (altivec_lvehx): Same.
18075 (altivec_lvewx): Same.
18076 ("*movv4si_const0"): New.
18077 ("*movv4sf_const0"): New.
18078 ("*movv8hi_const0"): New.
18079 ("*movv16qi_const0"): New.
18081 2002-02-18 Kazu Hirata <kazu@hxi.com>
18083 * config/h8300/h8300.c (notice_update_cc): Use
18086 2002-02-18 Kazu Hirata <kazu@hxi.com>
18088 * config/h8300/h8300.md (divmod patterns): Change the
18089 constraints for operands[1] to register_operand.
18091 2002-02-18 Kazu Hirata <kazu@hxi.com>
18093 * config/h8300/h8300-protos.h: Remove the prototype for
18095 * config/h8300/h8300.c (p_operand): Remove.
18096 * config/h8300/h8300.md: Replace p_operand with
18099 2002-02-18 Philip Blundell <pb@nexus.co.uk>
18101 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
18103 (output_return_instruction): Allow use of LDR to unstack
18104 return addresss even for interrupt handlers or when
18105 interworking. If compiling for ARMv5, use interworking-safe
18106 return instructions by default. Remove duplicated code and
18107 lengthy "strcat" sequences.
18109 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18111 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
18112 (LINK_EH_SPEC): Define.
18113 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
18115 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
18117 * config/s390/s390.c (s390_emit_prologue): Do not set the
18118 frame_related flag for call-clobbered registers.
18120 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
18122 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
18123 (construct_container): Fix handling of SSE operands.
18124 (ix86_expand_builtin): Fix handling of 64bit pointers.
18125 (mmx_maskmovq_rex): New pattern.
18127 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
18129 * regrename.c (kill_set_value): Handle subregs properly.
18131 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
18133 * objc/objc-act.c (handle_impent): Remove leading '*'
18134 from objc_class_name.
18136 2002-02-17 Richard Henderson <rth@redhat.com>
18138 * config/alpha/alpha.c (some_small_symbolic_operand,
18139 some_small_symbolic_operand_1, split_small_symbolic_operand,
18140 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
18141 Handle small SYMBOL_REFs anywhere, not just inside memories.
18142 * config/alpha/alpha-protos.h: Update.
18143 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18144 * config/alpha/alpha.md (small symbolic operand splitter): Update.
18146 2002-02-17 Roland McGrath <roland@frob.com>
18148 * config.gcc (powerpc-*-gnu-gnualtivec*,
18149 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
18150 * config/rs6000/gnu.h: New file.
18151 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
18152 Grok "gnu" in rs6000_abi_name.
18153 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
18154 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
18155 Grok -mcall-gnu analogous to -mcall-linux et al.
18156 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18157 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
18158 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
18160 2002-02-17 Jakub Jelinek <jakub@redhat.com>
18163 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
18166 2002-02-17 Philipp Thomas <pthomas@suse.de>
18168 * config/cris/cris.h: Undefine STARTFILE_SPEC and
18169 ENDFILE_SPEC before (re)defining them.
18171 2002-02-17 Kazu Hirata <kazu@hxi.com>
18173 * config/h8300/h8300.c: Fix formatting.
18174 * config/h8300/h8300.h: Likewise.
18176 2002-02-17 Philipp Thomas <pthomas@suse.de>
18178 * doc/tm.texi: Explain why empty strings should not be
18179 marked for translation.
18181 2002-02-17 Philipp Thomas <pthomas@suse.de>
18183 * final.c (output_operand_lossage): Changed to accept
18184 printf style arguments. Change calls where necessary.
18185 * output.h (output_operand_lossage): Change declaration
18186 accordingly. Update copyright.
18187 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
18188 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
18189 Update copyright date where necessary.
18191 * config/i386/i386.c (print_operand): Likewise. Remove use of
18194 * config/cris/cris.c (cris_operand_lossage): Likewise.
18195 Rename parameter so that exgettext recognizes it as
18196 translatable message.
18197 (LOSE_AND_RETURN): Rename parameter to msgid.
18199 2002-02-17 Kazu Hirata <kazu@hxi.com>
18201 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
18202 hard coded register number with an appropriate macro.
18203 (HARD_REGNO_MODE_OK): Likewise.
18204 (ARG_POINTER_REGNUM): Likewise.
18205 (STATIC_CHAIN_REGNUM): Likewise.
18206 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
18207 * config/h8300/h8300.md (define_constants): Define more
18210 2002-02-17 Philipp Thomas <pthomas@suse.de>
18212 * config/i386/i386.h: Don't mark empty strings for translation.
18214 2002-02-16 H.J. Lu <hjl@gnu.org>
18216 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
18218 2002-02-16 Zack Weinberg <zack@codesourcery.com>
18220 * cppinit.c (merge_include_chains): Check for brack being
18221 NULL before attempting to merge it with qtail.
18223 2002-02-16 Andrew Cagney <ac131313@redhat.com>
18225 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
18228 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18230 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
18232 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18234 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
18235 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
18236 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
18238 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18240 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
18241 now only if !TARGET_FIX.
18242 (*movsi_nt_vms_fix): New pattern.
18244 2002-02-16 Douglas B Rupp <rupp@gnat.com>
18246 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
18247 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
18248 (alpha_sa_mask, alpha_sa_size): Reflect above change.
18249 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
18250 (alpha_start_function, alpha_expand_epilogue): Likewise.
18251 (unicosmk_gen_dsib): Likewise.
18253 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18255 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
18257 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
18259 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
18260 check_and_change_labels, s390_final_chunkify): Delete.
18261 (s390_split_branches, s390_chunkify_pool): New functions.
18262 (s390_function_prologue): Call them.
18264 * config/s390/s390.h (S390_REL_MAX): Delete.
18265 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
18267 * config/s390/s390.md (cjump, icjump, jump): Fix length
18268 attribute calculation.
18271 2002-02-15 David Edelsohn <edelsohn@gnu.org>
18273 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
18274 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
18276 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18278 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
18279 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
18280 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
18282 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18284 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
18286 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18288 * reload.c (find_dummy_reload): Check that an output register
18289 is valid for its mode.
18291 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
18293 * combine.c (known_cond): After replacing the REG of a SUBREG, try
18296 * function.c (assign_parms): Demote promoted argument passed by
18297 transparent reference.
18299 2001-02-14 Joel Sherrill <joel@OARcorp.com>
18301 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
18302 -Acpu() and -Amachine() to eliminate warnings.
18304 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
18306 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
18308 2002-02-14 Kazu Hirata <kazu@hxi.com>
18310 * config/h8300/h8300-protos.h: Update the prototype for
18312 * config/h8300/h8300.c (const_costs): Treat SET as a little
18313 more expensive operation.
18314 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
18315 reference to const_costs.
18317 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
18319 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
18321 2002-02-14 Jakub Jelinek <jakub@redhat.com>
18324 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
18325 use arguments from newtype.
18327 2002-02-13 Eric Christopher <echristo@redhat.com>
18329 * config/mips/mips.c (override_options): Add check for march/mipsX
18330 on the same command line. Fix error message in cpu processing.
18331 Remove architecture and ISA checks.
18333 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18335 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
18337 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
18339 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18341 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
18343 ("*movv8hi_internal1"): Same.
18344 ("*movv16qi_internal1"): Same.
18345 ("*movv4sf_internal1"): Same.
18347 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
18348 not push_reload for altivec modes.
18350 2002-02-13 Joel Sherrill <joel@OARcorp.com>
18352 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
18353 all RTEMS targets including removal of #includes from config/*/rtems*.h
18354 file and adding them to tm_file setting. Added xm_defines=POSIX to
18356 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
18357 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
18358 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
18359 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
18360 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
18361 config/m68k/rtemself.h: Ditto.
18362 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
18363 config/mips/rtems64.h: Ditto.
18364 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
18365 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
18367 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
18368 config/sparc/rtemself.h: Ditto.
18369 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
18370 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18371 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18373 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18374 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18375 target made more similar to i386-elf.
18376 * config/i386/t-rtems-i386: Added soft float support and multilibs.
18377 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18378 be similar to config/m68k/t-m68kelf.
18379 * gthr-rtems.h: Encapsulate with extern "C" for C++.
18381 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
18383 * regmove.c (kill_value): Handle subregs.
18385 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
18387 * i386.md (mul patterns): Allow memory operand to be first;
18388 add expanders where needed; fix constraints.
18389 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18390 Allow memory operand to be the first.
18392 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18395 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18398 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18401 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18403 PR optimization/5547:
18404 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18405 all valid IA-32 address modes involving non-scaled %ebx and
18406 GOT/GOTOFF as displacement.
18408 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
18410 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18411 after emitting ltorg insns.
18413 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18414 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18415 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18416 *abssf2): Fix "op_type" attribute.
18418 2002-02-13 Douglas B Rupp <rupp@gnat.com>
18420 * mkconfig.sh: Avoid using a subshell redirect.
18421 ($output.T): Change to $(output)T.
18422 (ENABLE_NLS): Remove unneeded undef.
18424 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18425 * config/alpha/x-vms (libsubdir): Define.
18427 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18428 register frame procedures. Optimize retrieving context.
18430 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18431 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18432 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18434 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18436 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18437 Make same change as for find_base_value.
18439 2002-02-13 Kazu Hirata <kazu@hxi.com>
18441 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18442 of QImode and SImode.
18444 2002-02-13 Kazu Hirata <kazu@hxi.com>
18446 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18447 length computation of movsi.
18448 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18450 2002-02-13 Kazu Hirata <kazu@hxi.com>
18452 * config/h8300/h8300.md (subqi3): Tighten the predicate for
18453 operands[2] to register_operand.
18455 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
18457 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18459 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
18461 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18462 for altivec_lvx* and altivec_stvx*.
18463 ("*movv4si_internal"): Add constraint for loading from GPRs.
18464 ("*movv8hi_internal1"): Same.
18465 ("*movv16qi_internal1"): Same.
18466 ("*movv4sf_internal1"): Same.
18468 * config/rs6000/rs6000.c (altivec_register_operand): New.
18470 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18471 altivec_register_operand.
18473 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
18475 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18478 2002-02-13 Stan Shebs <shebs@apple.com>
18480 * c-typeck.c (digest_init): Handle vectors.
18481 (really_start_incremental_init): Same.
18482 (pop_init_level): Same.
18483 (process_init_element): Same.
18485 * varasm.c (output_constant): Same.
18487 * expr.c (clear_storage): Same.
18488 (store_constructor): Same.
18490 2002-02-12 Eric Christopher <echristo@redhat.com>
18492 * explow.c (hard_function_value): Add comment explaining
18493 signed/unsigned comparison.
18495 2002-02-12 Jakub Jelinek <jakub@redhat.com>
18497 * jump.c (never_reached_warning): Add finish argument.
18498 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18499 real insn after end.
18500 * rtl.h (never_reached_warning): Adjust prototype.
18501 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18502 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18503 never_reached_warning.
18505 2002-02-12 Graham Stott <grahams@redhat.com>
18507 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18509 2002-02-12 Kazu Hirata <kazu@hxi.com>
18511 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18512 logical shifts on H8/300.
18513 (shift_alg_si): Improve several shifts on H8/300.
18514 (get_shift_alg): Likewise.
18516 2002-02-12 Graham Stott <grahams@redhat.com>
18518 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18520 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18522 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18523 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18525 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
18527 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18528 non-CONST_INT through default_assemble_integer.
18529 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18530 <case 8>: Abort for CONST_DOUBLE.
18532 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
18534 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18536 * config/pa/pa-linux.h (LIB_SPEC): Delete.
18537 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18539 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
18541 * config/stormy16/stormy16.md (zero_extendqihi2): New.
18543 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
18545 * regrename.c (regrename_optimize): Don't accept a
18546 part-clobbered register if the replaced register is not part
18549 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18550 take padding into account when computing the argument value.
18552 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18554 * combine.c (try_combine): Apply substitutions in
18555 CALL_INSN_FUNCTION_USAGE too.
18557 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
18559 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18560 __builtin_altivec_abs*.
18563 * config/rs6000/rs6000.h (rs6000_builtins): Add
18564 ALTIVEC_BUILTIN_ABS*.
18566 * config/rs6000/altivec.h: Use const char for builtins expecting
18568 (vec_abs): New versions for C and C++.
18571 2002-02-10 Kazu Hirata <kazu@hxi.com>
18573 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18576 2002-02-10 Kazu Hirata <kazu@hxi.com>
18578 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18579 constant definition from h8300.md.
18580 (FRAME_POINTER_REGNUM): Likewise.
18581 * config/h8300/h8300.md (define_constants): Add FP_REG.
18583 2002-02-10 Kazu Hirata <kazu@hxi.com>
18585 * config/h8300/h8300.c (print_operand): Remove redundant code.
18587 2002-02-10 Kazu Hirata <kazu@hxi.com>
18589 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18590 * config/h8300/h8300.c (byte_reg): Make it static.
18592 2002-02-10 Richard Henderson <rth@redhat.com>
18595 * c-typeck.c (incomplete_type_error): Handle flexible array members.
18597 2002-02-10 Richard Henderson <rth@redhat.com>
18600 * tree.c (append_random_chars): Don't abort if main_input_filename
18603 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
18605 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18607 2002-02-10 Kazu Hirata <kazu@hxi.com>
18609 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
18610 (pushhi1): Likewise.
18612 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
18614 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18615 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18617 2002-02-09 David O'Brien <obrien@FreeBSD.org>
18619 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18621 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
18623 2002-02-09 Kazu Hirata <kazu@hxi.com>
18625 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18626 a half of an SImode register on H8/300.
18628 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
18630 * i386.md (movdi_2): Add missing '!'.
18632 2002-02-09 Kazu Hirata <kazu@hxi.com>
18634 * config/h8300/h8300.h: Fix formatting. Remove commented-out
18637 2002-02-09 Kazu Hirata <kazu@hxi.com>
18639 * config/h8300/h8300.md (length): Correct the distance valid
18640 for the short branch.
18642 2002-02-09 Kazu Hirata <kazu@hxi.com>
18644 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18646 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18648 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18649 registers in SImode.
18650 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18653 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18656 Contribute sh64-elf.
18657 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18658 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18659 (sh_cannot_modify_jumps_p): New function.
18660 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
18661 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18662 (sh_ms_bitfield_layout_p): New function.
18663 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
18664 Zack Weinberg <zack@codesourcery.com>
18665 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18666 expand_simple_binop instead of expand_binop.
18667 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
18668 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18669 use of .quad and .uaquad.
18670 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18671 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18672 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18673 * config/sh/sh.md (movdi_const, movdi_const_32bit,
18674 movdi_const_16bit): Make sure all CONSTs have modes.
18675 (sym2PIC): Ditto, but by adjusting all callers.
18676 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18677 if the prologue calls the SHmedia argument decoder or register
18679 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18680 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18681 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18682 (sh_expand_epilogue): Don't emit USE of return target register.
18683 (prepare_move_operands): Legitimize DImode PIC addresses.
18684 (sh_media_register_for_return): Skip tr0, used to initialize the
18686 (sh_expand_prologue): Remove explicit USE of return register.
18687 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
18688 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
18689 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18690 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18691 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18692 EXTRA_CONSTRAINT_T.
18693 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18694 (MOVI_SHORI_BASE_OPERAND_P): New.
18695 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18696 (EXTRA_CONSTRAINT_T): Define in terms of them.
18697 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18698 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18699 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18700 alternatives supporting TARGET_REGS.
18701 (UNSPEC_GOTPLT): New constant.
18702 (movdi split): Move incrementing of LABEL_NUSES...
18703 (movdi_const, movdi_const_32bit): Here. Use
18704 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18705 (movdi_const_16bit): New.
18706 (call, call_value) [flag_pic]: Use GOTPLT.
18707 (call_pop, call_value_pop): New expands.
18708 (call_pop_compact, call_pop_rettramp): New insns.
18709 (call_value_pop_compact, call_value_pop_rettramp): New insns.
18710 (sibcall) [flag_pic]: Use GOT.
18711 (builtint_setjmp_receiver): Remove bogus, unused expand.
18712 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18713 (*pt, *ptb, ptrel): New insns.
18714 (sym2GOT): Handle DImode GOT.
18715 (sym2GOTPLT, symGOTPLT2reg): New expands.
18716 (sym2PIC): New expand.
18717 (shcompact_return_tramp): Use GOTPLT to return trampoline.
18718 (shcompact_return_tramp_i): Use return register explicitly.
18719 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18720 disable flag_reorder_blocks.
18721 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
18722 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18723 clobbers, for clarity.
18724 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18725 restoring of r0 in macl as MAYBE_DEAD.
18726 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
18727 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18728 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18729 alter_subreg all over.
18730 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18731 reload, instead of emitting instructions that would require
18733 (casesi_load_media): Add missing modes.
18734 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
18735 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18736 as used if the argument decoder is called.
18737 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18738 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18739 Pmode, then extend it to DImode if necessary.
18740 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18741 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18742 constants in FPU-enabled SHmedia, let them be loaded from memory.
18743 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18744 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18745 Adjust whitespace in assembly output templates.
18746 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18747 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18748 mode of if_then_else.
18749 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
18750 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18752 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
18753 Joern Rennecke <amylaar@redhat.com>
18754 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18755 (SUBTARGET_CPP_PTR_SPEC): New.
18756 (SUBTARGET_CPP_SPEC): Remove.
18757 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18758 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18759 Fix typo in previous checkin.
18760 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
18761 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18762 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
18763 Alexandre Oliva <aoliva@redhat.com>
18764 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18765 what single FP register can hold for SHmedia target.
18766 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18767 Alexandre Oliva <aoliva@redhat.com>
18768 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18769 Do not split into SUBREG.
18770 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
18771 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18772 and added new functions as specified in SH5 ABI r9.
18773 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
18774 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18776 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
18777 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18778 gen_consttable_4 and gen_consttable_8. Emit multiple labels
18779 and consttable_window_ends.
18780 2001-06-03 Graham Stott <grahams@redhat,com>
18781 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18782 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
18783 * config/sh/sh.c (print_operand): Handle floating-point pair,
18784 vector and matrix registers.
18785 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
18786 vector modes into account.
18787 * config/sh/sh.md (movv2sf): Split move between registers into
18789 (movv4sf, movv16sf): Introduce insns that get split only after
18791 * config/sh/shmedia.h: Fix Copyright dates.
18792 * config/sh/ushmedia.h: Likewise. Move loop counter
18793 declarations into conditionals that uses them.
18794 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
18796 * config/sh/sshmedia.h: Fix Copyright dates.
18797 (sh_media_PUTCFG): Fix constraints.
18798 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
18799 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
18800 ptrmemfunc_vbit_in_delta for SH5.
18801 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
18802 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
18803 * invoke.texi: Likewise.
18804 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
18805 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
18806 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
18807 GCC_pop_shmedia_regs_nofpu): New global symbols.
18808 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
18809 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
18810 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
18811 compact function with nonlocal labels.
18812 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
18813 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
18814 (initial_elimination_offset): Account for their stack space.
18815 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
18816 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
18817 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
18818 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
18819 least one of the operands to be a register.
18820 (movv2sf): Likewise. Renamed to movv2sf_i.
18821 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
18822 prepare_move_operands() before emitting SHmedia insns.
18823 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
18824 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
18825 Don't save nor initialize r12. Don't mis-align the stack.
18826 Pad the code with a nop.
18827 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
18829 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
18830 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
18831 [__SHMEDIA__]: Implement.
18832 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
18833 * config/sh/sh.md: Set latency of `pt' closer to reality.
18834 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
18835 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
18836 Set move, load and store type attributes.
18837 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
18838 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
18840 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
18841 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
18842 * config/sh/sh.c (sh_media_register_for_return): New function.
18843 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
18844 branch-target register.
18845 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
18846 * config/sh/sh.md (return_media_i): Use any call-clobbered
18847 branch-target register.
18848 (return_media): If r18 wasn't copied in the prologue, copy it
18850 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
18851 Clear class FP0_REGS.
18852 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
18854 2001-03-08 DJ Delorie <dj@redhat.com>
18855 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
18856 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
18857 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
18858 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
18859 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
18860 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
18861 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
18862 return value correctly for call_cookie.
18863 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
18864 * config/sh/crt1.asm (start): Modified so as to call
18865 ___setup_argv_and_call_main.
18866 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
18867 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
18869 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
18870 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
18871 (STRIP_NAME_ENCODING): Use it.
18872 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
18873 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
18874 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
18875 prepare_scc_operands().
18876 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
18877 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
18878 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
18879 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
18880 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
18881 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
18882 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
18883 used in shcompact_incoming_args.
18884 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
18886 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
18888 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
18889 Adjust accordingly.
18890 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18891 Simplify. Adjust. Add sanity check.
18892 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
18894 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
18896 (udivsi3, divsi3): Use them.
18897 (force_mode_for_call): New insn.
18898 (call, call_value, sibcall_value): Emit it before SHcompact
18900 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
18901 * config/sh/sh.md (call, call_value, sibcall): Make sure the
18902 call cookie is non-NULL before taking its value.
18903 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
18904 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
18905 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
18906 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
18908 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
18909 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
18910 temporary for stack adjusts. Use MACL and MACH to pass
18911 arguments to shcompact_incoming_args.
18912 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
18914 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
18915 (nested_trampoline): Load static chain address into r1.
18916 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
18917 2001-01-07 Alexandre Oliva <aoliva@redhat.com
18918 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
18919 fp_arith_reg_operand().
18920 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
18921 * config/sh/sh.md (casesi): Sign-extend the first two operands,
18922 and use signed compares for them.
18923 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
18924 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
18925 ones properly aligned.
18926 (find_barrier): Account for extra alignment needed for 8-byte wide
18928 (machine_dependent_reorg): Require a label for the second 4-byte
18929 constant after an 8-byte one.
18930 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
18932 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
18933 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
18934 last_float when switching float modes.
18935 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
18936 auto-increment for general-purpose registers.
18937 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
18939 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
18941 * config/sh/sh.c (sh_builtin_saveregs): Support using all
18942 registers for varargs.
18943 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
18944 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
18945 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
18946 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
18947 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
18948 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
18949 call_cookie accordingly.
18950 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
18951 (SHCOMPACT_BYREF): Likewise.
18952 (SHCOMPACT_FORCE_ON_STACK): New macro.
18953 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
18954 (sh_builtin_saveregs): Likewise.
18955 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18956 shcompact_incoming_args): Use new shift values. Support
18957 sequences of consecutive and non-consecutive pushes/pops.
18958 * config/sh/sh.md (return): Don't explicitly use PR_REG.
18959 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
18960 * config/sh/sh.h (TEXT_SECTION): Define.
18961 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
18962 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
18963 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
18964 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
18965 return values on FPU-enabled SHmedia.
18966 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
18967 FPU-enabled SHmedia.
18968 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
18969 value is returned in a non-FP reg and is not returned by
18971 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
18973 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
18974 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
18975 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
18976 quad-aligned to be passed by callee-copy reference.
18977 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
18978 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
18979 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
18980 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
18981 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
18982 copying low-numbered FP regs to r7 and r8.
18983 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
18984 FP regs to general-purpose regs only if the copy was passed on the
18986 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
18987 copying FP reg to r9.
18988 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
18989 copy FP regs to general-purpose regs only in outgoing calls.
18990 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
18991 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
18993 * config/sh/sh.h (struct sh_args): Document all fields.
18994 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
18995 passed partially on the stack should not consider making
18997 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
18998 stack_regs only for incoming calls. When passing FP args,
18999 make sure there are FP regs available before modifying
19001 (SHCOMPACT_BYREF): Pass double args in general-purpose
19002 registers by reference.
19003 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
19004 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
19005 attempt to generate sibcalls if the caller got any arguments
19007 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
19008 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
19009 to 8-byte boundaries.
19010 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
19011 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
19012 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
19013 stored in the stack.
19014 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
19015 for the offsets to have the ISA bit set.
19016 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
19017 invocation. Use beq instead of bgt to mark end of sequence of
19019 (shcompact_incoming_args): Fix store of r2. Use beq instead of
19020 bgt to mark end of sequence of stores.
19021 * config/sh/sh.c (arith_operand): Don't check whether
19022 CONST_OK_FOR_J for now.
19023 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
19024 instead of long for conversion.
19025 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
19026 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
19027 before passing it to fprintf.
19028 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
19029 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
19030 Call set_fpscr before reading/writing SR.
19031 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
19033 * config/sh/lib1funcs.asm: Add `.align 2' directives before
19035 (FMOVD_WORKS): Define on SH5 with FPU.
19036 (set_fpscr): Define on SH5. Remove separate _fpscr_values
19038 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
19040 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
19041 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
19043 (ia_main_table): Ditto.
19044 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
19045 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19046 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
19047 the definitions from sh.h.
19048 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
19050 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
19051 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
19052 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19053 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
19054 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
19055 Increment LABEL_NUSES.
19057 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
19059 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
19061 * config/sh/elf.h (SIZE_TYPE): Likewise.
19062 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19063 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19064 shcompact_incoming_args): Load switch table addresses using
19066 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19067 (NO_BUILTIN_SIZE_TYPE): Define.
19068 (SIZE_TYPE): Don't define.
19069 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19070 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
19071 definition of __SH5__=32 for -m5-compact-nofpu.
19072 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
19074 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
19075 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
19076 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
19077 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
19078 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
19079 (INSN_LENGTH_ALIGNMENT): Likewise.
19080 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19081 * config/sh/sh.md (call, call_value, sibcall): Simplify
19082 copying of non-branch-target register.
19083 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19084 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
19085 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
19086 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19087 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
19088 floating-point values as structs.
19089 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
19090 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
19091 general-purpose register.
19092 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
19093 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19094 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
19095 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
19096 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
19097 (ENCODE_SECTION_INFO): Enclose variables and constants in
19099 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
19100 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
19101 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
19102 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
19103 only for LABEL_REFs. For SYMBOL_REFs, prepend
19104 SH_DATALABEL_ENCODING to the symbol name.
19105 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
19107 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19108 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
19110 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
19111 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
19112 (DATALABEL_REF_P): Don't require CONST.
19113 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
19115 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
19116 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
19118 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19119 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
19120 Use shallow_copy_rtx and PUT_MODE to change the mode of
19121 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
19122 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
19123 on SHmedia using GENERAL_REGs.
19124 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19125 bltu_media_i): Fix reversion of conditions.
19126 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19127 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
19128 * config/sh/sh.c (output_far_jump): Save r13 in macl.
19129 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
19130 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
19131 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
19132 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
19133 (GCC_nested_trampoline): Likewise.
19134 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
19135 * config/sh/sh.c (gen_datalabel_ref): Define.
19136 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
19137 (INITIALIZE_TRAMPOLINE): Likewise.
19138 (TRAMPOLINE_ADJUST_ADDRESS): Define.
19139 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
19140 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
19141 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
19142 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
19143 (ic_invalidate): Adjust for SH5.
19144 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
19145 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
19146 _nested_trampoline.
19147 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
19148 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
19149 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
19150 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19151 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
19152 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
19153 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19154 * config/sh/sh.c (target_reg_operand): Match only target-branch
19155 registers and pseudos that aren't virtual registers.
19156 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19157 Copy operands that don't match target_reg_operand to pseudos.
19158 (call_media, call_value_media, sibcall_media): Use
19159 target_reg_operand instead of target_operand.
19160 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
19161 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
19162 * config/sh/sh.c (target_reg_operand): Match hardware registers
19163 other than branch-target registers.
19164 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
19165 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
19166 (fpscr_values) [SH5 == 32]: Define.
19167 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
19168 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19169 Handle function addresses coming in SUBREGs.
19170 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
19171 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19172 shcompact_return_trampoline): Use datalabel where appropriate.
19173 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
19174 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
19175 general-purpose register to copy one branch-target register to
19177 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19178 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
19179 SYMBOL_REFs with VOIDmode.
19180 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19181 bltu_media_i): New insns.
19182 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19183 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
19184 (INIT_CUMULATIVE_ARGS): Likewise.
19185 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
19186 * machmode.def (V16SFmode): New mode.
19187 * c-common.c (type_for_mode): Support V2SF and V16SF.
19188 * tree.c (build_common_tree_nodes_2): Likewise.
19189 * tree.h (tree_index): Likewise.
19190 * calls.c (emit_call_1): Take args_so_far. Adjust all
19191 callers. Introduce CALL_POPS_ARGS.
19192 * tm.texi (CALL_POPS_ARGS): Document.
19193 * config/sh/crt1.asm: Implement in SHmedia mode.
19194 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
19195 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
19196 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
19197 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
19198 Implement divsi and udivsi in SHmedia mode. Introduce
19199 SHcompact trampolines.
19200 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
19202 (regno_reg_class): Rewrite.
19203 (fp_reg_names): Remove.
19204 (sh_register_names, sh_additional_register_names): New.
19205 (print_operand): Added `u'. Support SUBREGs in addresses.
19206 Add parentheses around shifted CONSTs.
19207 (output_file_start): Output .mode and .abi directives.
19208 (shiftcosts, addsubcosts, multcosts): Adjust.
19209 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
19210 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
19211 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
19212 bytes, not registers. Take into account the need for the
19213 SHcompact incoming args trampoline. Adjust all callers.
19214 (sh_expand_prologue): Take stack_regs into account. Call
19215 incoming args trampoline. Keep stack aligned as per SH5 ABI.
19216 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
19217 stack aligned as per SH5 ABI.
19218 (sh_builtin_saveregs): Support SH5 ABI.
19219 (sh_build_va_list, sh_va_start): Likewise.
19220 (initial_elimination_offset): Take alignment into account.
19221 Compute location of PR according to the SH5 stack frame.
19222 (arith_reg_operand): Reject branch-target registers.
19223 (shmedia_6bit_operand): New.
19224 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
19225 (target_reg_operand): Match DImode only. Accept SUBREGs.
19226 (target_operand): New.
19227 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
19228 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
19229 SIBCALL_REGS for SHmedia.
19230 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
19231 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
19232 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
19233 (TARGET_SWITCHES): New SH5 flags.
19234 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
19235 VALID_REGISTER_P to disable unsupported registers.
19236 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
19237 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
19238 (FUNCTION_ARG_PADDING): Define.
19239 (FASTEST_ALIGNMENT): Adjust.
19240 (SH_REGISTER_NAMES_INITIALIZER): New.
19241 (sh_register_names): Declare.
19242 (DEBUG_REGISTER_NAMES): Define.
19243 (REGISTER_NAMES): Define based on sh_register_names.
19244 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
19245 (sh_additional_register_names): Declare.
19246 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
19247 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
19248 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
19249 (REGISTER_NATURAL_MODE): Define.
19250 (FIRST_PSEUDO_REGISTER): Adjust.
19251 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
19252 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
19253 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
19254 (VECTOR_MODE_SUPPORTED_P): Define.
19255 (REG_CLASS_CONTENTS): Adjust.
19256 (SMALL_REGISTER_CLASSES): Adjust.
19257 (REG_ALLOC_ORDER): Adjust.
19258 (INDEX_REG_CLASS): Adjust.
19259 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
19260 (CONST_OK_FOR_LETTER_P): Adjust.
19261 (PREFERRED_RELOAD_CLASS): Adjust.
19262 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
19263 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
19264 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
19265 (FIRST_FP_PARM_REG): Adjust.
19266 (CALL_POPS_ARGS): Define.
19267 (FUNCTION_ARG_REGNO_P): Adjust.
19268 (struct sh_args): New fields.
19269 (GET_SH_ARG_CLASS): Adjust.
19270 (INIT_CUMULATIVE_ARGS): Adjust.
19271 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
19272 (FUNCTION_ARG_ADVANCE): Adjust.
19273 (FUNCTION_ARG): Adjust.
19274 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
19275 (FUNCTION_ARG_CALLEE_COPIES): Define.
19276 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
19277 (STRICT_ARGUMENT_NAMING): Define.
19278 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
19279 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
19280 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
19281 (SETUP_INCOMING_VARARGS): Adjust.
19282 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
19283 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
19284 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
19285 (SUBREG_OK_FOR_INDEX_P): Adjust.
19286 (EXTRA_CONSTRAINT_S): Update.
19287 (EXTRA_CONSTRAINT_T): New.
19288 (EXTRA_CONSTRAINT): Adjust.
19289 (GO_IF_LEGITIMATE_INDEX): Adjust.
19290 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
19291 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
19292 (MOVE_MAX): Adjust.
19293 (MAX_MOVE_MAX): Define.
19295 (CONST_COSTS): Adjust.
19296 (REGISTER_MOVE_COST): Adjust.
19297 (BRANCH_COST): Adjust.
19298 (TEXT_SECTION_ASM_OP): Adjust.
19299 (DBX_REGISTER_NUMBER): Adjust.
19300 (ASM_OUTPUT_DOUBLE_INT): New.
19301 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
19302 (PREDICATE_CODES): Adjust.
19303 (PROMOTE_MODE): Adjust.
19304 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
19305 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
19306 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
19307 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
19308 (DR0_REG, DR2_REG, DR4_REG): Renumber.
19309 (TR0_REG, TR1_REG, TR2_REG): New.
19310 (XD0_REG): Renumber.
19311 (UNSPEC_COMPACT_ARGS): New.
19312 (type): Added pt and ptabs.
19313 (length): Default to 4 on SHmedia. Default pt length to 12
19314 and 20 on SHmedia32 and SHmedia64, respectively.
19315 (pt): New function unit.
19316 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
19317 Add whitespace between operands of SHmedia instructions.
19319 (adddi3_media, addsi3_media): Adjust constraints.
19320 (subsi3) [SHmedia]: Force operand 1 into a register.
19321 (udivsi3_i1_media, udivsi3_i4_media): New.
19322 (udivsi3): Support SHmedia.
19323 (divsi3_i1_media, divsi3_i4_media): New.
19324 (divsi3): Support SHmedia.
19325 (anddi3, iordi3, xordi3): Adjust constraints.
19326 (zero_extendhidi2, zero_extendqidi2): New.
19327 (extendsidi2, extendhidi2, extendqidi2): New.
19328 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
19329 (pop_e, pop_fpul, pop_4): Likewise.
19330 (movsi_media): Support FP and BT registers.
19331 (movsi_media_nofpu): New. Adjust splits to DImode.
19332 (lduw, ldub): Renamed to zero_extend* above.
19333 (movqi_media): Fix typo.
19334 (movdi_media): Support FP and BT registers.
19335 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
19336 (movdi_const_32bit): New.
19337 (shori_media): Require immediate operand. Use `u' for output.
19338 (movdf_media, movsf_media): Simplified.
19339 (movdf_media_nofpu, movsf_media_nofpu): New.
19340 (movdf, movsf): Adjust
19341 (movv2sf, movv2sf, movv16sf): New.
19342 (beq_media, beq_media_i): Adjust constraints. Don't use
19343 scratch BT register.
19344 (bne_media, bne_media_i): Likewise.
19345 (bgt_media, bgt_media_i): Likewise.
19346 (bge_media, bge_media_i): Likewise.
19347 (bgtu_media, bgtu_media_i): Likewise.
19348 (bgeu_media, bgeu_media_i): Likewise.
19349 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
19350 bunordered): Emit jump insn. Force operands to registers when
19352 (jump_media, jump): Simplify.
19353 (call_compact, call_compact_rettramp): New.
19354 (call_value_compact, call_value_compact_rettramp): New.
19355 (call_media, call_value_media): Simplify.
19356 (sibcall_compact, sibcall_media): New.
19357 (call, call_value): Adjust for SHmedia and SHcompact.
19358 (sibcall, sibcall_value, untyped_call): Likewise.
19359 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
19360 (indirect_jump): Adjust for SHmedia.
19361 (casesi_jump_media): New.
19362 (nop): Re-enable for SHmedia.
19363 (call_site): Restrict to SH1.
19364 (casesi): Adjust for SHmedia.
19365 (casesi_shift_media, casesi_load_media): New.
19366 (return): Explicitly use PR register. Call return trampoline
19368 (return_i): Explicitly use PR register.
19369 (shcompact_return_tramp, shcompact_return_tramp_i): New.
19370 (return_media): Adjust.
19371 (shcompact_incoming_args): New.
19372 (epilogue): Adjust.
19373 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19374 (movstrsi): Disable on SH5.
19375 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19376 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19377 (subsf3, subsf3_media): Likewise.
19378 (mulsf3, mulsf3_media, mac_media): Likewise.
19379 (divsf3, divsf3_media): Likewise.
19380 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
19381 (floatsisf2, fux_truncsfsi2): Likewise.
19382 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
19384 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19385 (cmpunsf_media, cmpsf): Likewise.
19386 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19387 (abssf2, abssf2_media): Likewise.
19388 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19389 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19390 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
19391 (floatsidf2, fix_truncdfsi2): Likewise.
19392 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
19394 (cmpeqdf_media, cmpgtdf_media): Likewise.
19395 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19396 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19397 (absdf2, absdf2_media): Likewise.
19398 (extendsfdf2, extendsfdf2_media): Likewise.
19399 (truncsfdf2, truncsfdf2_media): Likewise.
19400 * config/sh/sh64.h: New file.
19401 * config/sh/t-sh64: New file.
19402 * config/sh/shmedia.h: New file.
19403 * config/sh/ushmedia.h: New file.
19404 * config/sh/sshmedia.h: New file.
19405 * configure.in: Added sh64-*-elf.
19406 * configure: Rebuilt.
19407 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
19408 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19409 (reg_class_from_letter): Use `b' for TARGET_REGS.
19410 (print_operand): Support `%M', `%m', `AND' and
19411 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
19412 (andcosts): Adjust for SHmedia.
19413 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19415 (target_reg_operand): New function.
19416 * config/sh/sh-protos.h (target_reg_operand): Declare.
19417 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19418 FP registers on SH5.
19419 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19421 (TARGET_REGISTER_P): New macro.
19422 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19423 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19424 (EXTRA_CONSTRAINT_S): New macro.
19425 (EXTRA_CONSTRAINT): Adjust.
19426 (FLOAT_TYPE_SIZE): Define to 32.
19427 (Pmode): DImode on SHmedia.
19428 (CONST_COSTS): Adjust for SHmedia literals.
19429 (PREDICATE_CODES): Added target_reg_operand.
19430 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19431 * config/sh/sh.md: Remove all attrs from SHmedia insns.
19432 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19433 (cmpdi): Accept SHmedia.
19434 (movdicc_false, movdicc_true): New insns.
19435 (movdicc): New expand.
19436 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19438 (addsi3_media): Match `S' constraint.
19439 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19440 (negdi2): Expand for SHmedia.
19441 (one_cmpldi2): New expand.
19442 (zero_extendsidi2): Change from expand to insn.
19443 (extendsidi2): Add constraints.
19444 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
19445 LD/ST address. Fix SI immediate loading split.
19446 (movhi_media, movqi_media, lduw, ldub): New insns.
19447 (movhi, movqi): Accept SHmedia.
19448 (shori_media, movdi_media): Relax input constraints. Split
19449 symbolic constants.
19450 (movdf_media, movsf_media): New insn. New split to movdi.
19451 (movdf, movsf): Match on SHmedia.
19452 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19453 bgeu_media): New insns and splits. New insns with `_i' suffix.
19454 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19455 (bunordered): New expand.
19456 (jump_compact): Renamed from `jump'.
19457 (jump_media): New insn.
19458 (jump): New expand.
19459 (call_media, call_value_media): New insns.
19460 (call, call_value): Adjust.
19461 (indirect_jump_compact): Renamed from `indirect_jump'.
19462 (indirect_jump_media): New insn.
19463 (indirect_jump): New expand.
19464 (untyped_call, return): Accept SHmedia.
19465 (return_media): New insn.
19466 (prologue, epilogue, blockage): Accept SHmedia.
19467 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19468 (sunordered): New expand.
19469 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19470 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19471 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19472 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19473 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19474 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19475 abssf2_media): New insns.
19476 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19477 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19478 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19479 floatdidf2, floatsidf2_media, fix_truncdfdi2,
19480 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19481 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19482 absdf2_media): New insns.
19483 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19484 (extendsfdf2_media, truncdfsf2_media): New insns.
19485 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
19486 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19487 * config/sh/sh.h (CONST_OK_FOR_J): Document.
19488 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19489 * config/sh/sh.md (adddi3): New expand.
19490 (adddi3_media, adddi3z_media): New insns.
19491 (adddi3_compact): Renamed from adddi3.
19492 (addsi3_media): Use add.l r63 to add constant zero.
19493 (subdi3): New expand.
19494 (subdi3_media): New insn.
19495 (subdi3_compact): Renamed from subdi3.
19496 (mulsidi3): New expand.
19497 (mulsidi3_media): New insn.
19498 (mulsidi3_compact): Renamed from mulsidi3.
19499 (umulsidi3): New expand.
19500 (umulsidi3_media): New insn.
19501 (umulsidi3_compact): Renamed from umulsidi3.
19502 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19503 (ashlsi3, ashrsi3, lshrsi3): Use them.
19504 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19505 (ashldi3, ashrdi3, lshrdi3): Use them.
19506 (zero_extendsidi2): New expand.
19507 (extendsidi2): New insn.
19508 (movsi_media): New insn. Split to movdi to load constants.
19509 (movsi): Enable for shmedia.
19510 (movdi_media): New insn. Use shori_media to load wide constants.
19511 (short_media): New insn.
19512 (movdi): Enable for shmedia.
19513 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
19514 * config/sh/sh.h (CPP_SPEC): Added `m5'.
19515 (SUBTARGET_CPP_SPEC): Added `!m5'.
19516 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19517 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
19518 to all other SH variants.
19519 (TARGET_DEFAULT): Set to SH1_BIT.
19520 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19521 (BITS_PER_WORD): Raise to 64 on shmedia.
19522 (MAX_BITS_PER_WORD): Change to 64.
19523 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19524 (INT_TYPE_SIZE): Keep as 32.
19525 (UNITS_PER_WORD): Raise to 8 on shmedia.
19526 (MIN_UNITS_PER_WORD): Keep as 4.
19527 (POINTER_SIZE): Raise to 64 on shmedia.
19528 (CONST_OK_FOR_J): New macro.
19529 (CONST_OK_FOR_LETTER_P): Use it.
19530 (processor_type): Add PROCESSOR_SH5.
19531 * config/sh/sh.md: Conditionalize all expands, insns and
19532 splits to TARGET_SH1.
19534 (addsi3_compact): Renamed from...
19535 (addsi3): Now an expand.
19536 (addsi3_media, subsi3_media): New insns.
19537 (subsi3): Don't negate constants with SHmedia.
19539 * hooks.c: New file.
19540 * hooks.h: New file.
19541 * Makefile.in (HOOKS_H): New.
19542 (TARGET_DEF_H): Added $(HOOKS_H).
19543 (OBJS): Added hooks.o.
19544 (cfgcleanup.o, bb-reorder.o): Added target.h.
19545 (hooks.o): Added dependencies.
19546 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19547 (TARGET_INITIALIZER): this.
19548 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19549 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19550 * bb-reorder.c: Include target.h.
19551 (reorder_basic_blocks): Skip if cannot modify jumps.
19552 * cfgcleanup.c: Include target.h.
19553 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19555 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19557 * config/mips/mips.md (casesi_internal, casesi_internal_di):
19558 Protect jump delay slot instructions with .set noreorder and
19561 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19563 * config/mips/mips.md (casesi_internal_di): Calculate
19564 the index into the target offset table correctly.
19566 2002-02-08 Richard Henderson <rth@redhat.com>
19568 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19569 * final.c (output_addr_const): Accept and discard SUBREG.
19570 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19571 mark them unknown instead.
19572 (simplify_subtraction): Handle RTX_UNKNOWN.
19573 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19575 2002-02-08 David Edelsohn <edelsohn@gnu.org>
19577 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19579 2002-02-08 Richard Henderson <rth@redhat.com>
19581 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19583 2002-02-08 Andreas Jaeger <aj@suse.de>
19585 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19586 * config/i386/t-linux64: New file.
19588 2002-02-08 Jakub Jelinek <jakub@redhat.com>
19590 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19591 * c-parse.in (compstmt): Clear last_expr_type.
19593 2002-02-07 Richard Henderson <rth@redhat.com>
19595 * loop.c (strength_reduce): Sink final_value when not
19598 2002-02-07 David O'Brien <obrien@FreeBSD.org>
19600 * config/sparc/freebsd.h: Fix mismatched spec {.
19602 2002-02-07 Richard Henderson <rth@redhat.com>
19604 * cfgrtl.c: Include recog.h and insn-config.h.
19605 (keep_with_call_p): Fix general_operand invocation.
19606 * Makefile.in (cfgrtl.o): Update dependencies.
19608 2002-02-07 Kazu Hirata <kazu@hxi.com>
19610 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19611 comment. Accept HImode only if TARGET_H8300.
19613 2002-02-07 Eric Christopher <echristo@redhat.com>
19615 * config/mips/crtn.asm: Cleanup #ifdefs.
19617 2002-02-07 Eric Christopher <echristo@redhat.com>
19619 * config/mips/crti.asm: Add changes for mips16. mips16 uses
19620 register 7 as RA instead of $31.
19621 * config/mips/crtn.asm: Ditto.
19622 * config/mips/mips.c (mips_move_2words): Add case for
19623 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19624 (compute_frame_size): Fix typo.
19625 (save_restore_insns): Ditto. Make documentation about using
19626 register $7 as return register more precise.
19627 (mips_expand_epilogue): Fix comment. Add code to work around not
19628 being able to add to the stack pointer directly.
19629 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19630 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19633 2002-02-07 Tom Rix <trix@redhat.com>
19635 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
19636 immediates in ldu and stdu DS opcode field.
19637 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19638 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19639 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19641 2002-02-07 Jeff Sturm <jsturm@one-point.com>
19643 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19644 offset for stack bias.
19646 2002-02-07 H.J. Lu <hjl@gnu.org>
19648 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19650 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
19652 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19654 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
19656 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19657 * i386.c (x86_order_regs_for_local_alloc): New global function.
19658 * i386.h (REG_ALLOC_ORDER): CLeanup.
19659 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19661 2002-02-07 Richard Henderson <rth@redhat.com>
19663 PR optimization/2463
19664 * alias.c (find_base_value): Recall base values for fixed hard regs.
19665 * loop.c (loop_regs_update): Don't use single_set on non-insns.
19667 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
19669 * config/mips/mips.md (define_delay) [mips16]: Adjust required
19672 2002-02-06 Richard Henderson <rth@redhat.com>
19675 * stmt.c (resolve_operand_name_1): Take more care with mixed
19676 named and unnamed operands.
19678 2002-02-06 Janis Johnson <janis187@us.ibm.com>
19679 Jan Hubicka <jh@suse.cz>
19681 * loop.c (remove_constant_addition): Avoid clobbering a shared
19684 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19686 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19687 * config/s390/t-linux64: New file.
19688 * config/s390/libgcc-glibc.ver: New file.
19690 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19692 * config/s390/linux64.h: Delete file.
19693 * config/s390/s390x.h: New file.
19694 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19695 as target header file.
19696 * config/s390/linux.h (TARGET_VERSION): Define depending on
19697 DEFAULT_TARGET_64BIT.
19698 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19699 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19700 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19701 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19702 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19703 (EXTRA_SPEC): New define.
19704 * config/s390/s390.h (TARGET_VERSION): Define depending on
19705 DEFAULT_TARGET_64BIT.
19706 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19708 2002-02-06 Jason Merrill <jason@redhat.com>
19710 * c-decl.c (finish_function): Warn about a non-void function with
19711 no return statement and no abnormal exit.
19712 (current_function_returns_abnormally): New variable.
19713 (start_function): Clear it.
19714 (struct c_language_function): Add returns_abnormally.
19715 (push_c_function_context): Save it.
19716 (pop_c_function_context): Restore it.
19717 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19718 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19719 an explicit return type.
19720 * c-tree.h: Declare current_function_returns_abnormally.
19721 (C_FUNCTION_IMPLICIT_INT): New macro.
19722 * c-typeck.c (build_function_call): Set it.
19723 (c_expand_return): Set current_function_returns_value even if the
19724 value is erroneous.
19726 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19729 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19730 unsafe for reevaluation.
19732 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19735 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19736 EXPR_STMT, but COMPOUND_STMT, recurse into it.
19738 2002-02-06 Richard Henderson <rth@redhat.com>
19740 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19741 be a general_operand. Dest for function value must be a pseudo.
19743 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
19745 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19746 as SYMBOL_REFs from the constant pool.
19748 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
19750 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19751 passed by invisible reference.
19753 2002-02-05 Richard Henderson <rth@redhat.com>
19755 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19757 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
19759 Implement using "base addresses" in insn operands as default.
19760 * config/mmix/mmix.c (mmix_conditional_register_usage): if
19761 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19762 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19763 used to read the rtx value.
19764 (mmix_target_asm_function_epilogue): Fix spacing.
19765 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19766 (mmix_legitimate_address): Ditto.
19767 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19768 should be loaded with a GETA insn. Don't allocate needless extra
19769 char for nul termination and fix misleading comment.
19770 (mmix_print_operand_address): Handle constants if
19771 TARGET_BASE_ADDRESSES.
19772 (mmix_output_register_setting): Use base addressing if
19773 TARGET_BASE_ADDRESSES and the number of insns is 3.
19774 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19775 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19776 to use R as constraint, add LDA to match s.
19777 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19778 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19779 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19780 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19781 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19782 order with other fixed registers.
19783 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
19784 other parameter/call-clobbered registers.
19785 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
19786 -mbase-addresses, -mno-base-addresses.
19787 (MMIX Options): Ditto.
19789 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
19791 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
19793 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
19795 * config/rs6000/altivec.h: Change elem to _S_elem.
19797 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19799 * config/netbsd.h (WCHAR_TYPE): Define.
19800 (WCHAR_TYPE_SIZE): Ditto.
19801 (WINT_TYPE): Ditto.
19802 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
19803 (WCHAR_UNSIGNED): Ditto.
19804 (WCHAR_TYPE_SIZE): Ditto.
19805 (WINT_TYPE): Ditto.
19806 * config/arm/netbsd.h: Likewise.
19807 * config/i386/netbsd-elf.h: Likewise.
19808 * config/i386/netbsd.h: Likewise.
19809 * config/m68k/netbsd-elf.h: Likewise.
19810 * config/m68k/netbsd.h: Likewise.
19811 * config/ns32k/netbsd.h: Likewise.
19812 * config/sparc/netbsd.h: Likewise.
19813 * config/vax/netbsd.: Likewise.
19815 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
19817 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
19818 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
19819 (TARGET_INITIALIZER): this.
19820 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
19821 (BITFIELD_NBYTES_LIMITED): Markup fix.
19822 * tree.h (default_ms_bitfield_layout_p): Declare.
19823 (record_layout_info): Added prev_field.
19824 * tree.c (default_ms_bitfield_layout_p): New fn.
19825 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
19826 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
19827 * stor-layout.c: Include target.h.
19828 (start_record_layout): Initialize prev_field.
19829 (place_field): Handle MS bit-field layout, and disregard
19830 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
19831 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
19832 * Makefile.in (stor-layout.o): Adjust dependencies.
19834 2002-02-05 Jason Merrill <jason@redhat.com>
19836 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
19838 2002-02-05 Andreas Jaeger <aj@suse.de>
19840 * crtstuff.c: Fix comments.
19842 2002-02-05 Richard Henderson <rth@redhat.com>
19845 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
19846 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
19849 * config/mips/mips.c (function_arg): Handle TImode.
19850 (function_arg_advance): Likewise.
19852 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19854 * config/rs6000/altivec.h (vec_step_help): Rename to
19857 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19859 * config/rs6000/altivec.h: Fix typos.
19861 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19863 * config/arm/netbsd.h: Correct a comment.
19865 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19867 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
19868 building void typed builtins.
19870 * config/rs6000/altivec.h (vec_ld*): Fix typos.
19871 (vec_step): Implement for C++.
19873 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19875 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
19877 2002-02-04 Richard Henderson <rth@redhat.com>
19879 * combine.c (nonzero_bits): Re-introduce special case for
19880 sp/fp/ap wrt REGNO_POINTER_ALIGN.
19882 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19884 * doc/extend.texi: Warn about unsupported usage of altivec
19887 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
19888 (altivec_predicate_*): New.
19890 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
19891 Add C++ version of vec_*() functions.
19893 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
19894 (bdesc_2arg): Remove altivec predicates.
19895 (altivec_expand_builtin): Handle predicates.
19896 (altivec_init_builtins): Handle predicates.
19897 (altivec_expand_predicate_builtin): New.
19899 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19901 * pa.c (DO_FRAME_NOTES): Move forward.
19902 (store_reg): Revise handling of frame notes.
19903 (load_reg): Likewise.
19904 (set_reg_plus_d): Likewise.
19905 (hppa_expand_prologue): Likewise.
19906 (hppa_expand_epilogue): Likewise.
19908 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19910 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
19912 2002-02-04 Jakub Jelinek <jakub@redhat.com>
19914 PR c/4475, c++/3780:
19915 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
19916 * c-common.h (SWITCH_TYPE): Define.
19917 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
19918 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
19919 Rename spareness variable to sparseness.
19920 (expand_end_case_type): Renamed from expand_end_case, use orig_type
19921 if non-NULL instead of TREE_TYPE (orig_index).
19922 * tree.h (expand_end_case_type): Renamed from expand_end_case.
19923 (expand_end_case): Define using expand_end_case_type.
19924 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
19925 to expand_end_case_type.
19926 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
19928 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19930 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
19931 (BIGGEST_ALIGNMENT): Change to 128.
19933 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19935 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
19937 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19939 * pa.md (call_internal_reg_64bit): Remove unused variable.
19941 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
19943 * config/arm/arm.h (machine_function): Add uses_anonymous_args
19945 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
19946 * config/arm/arm.c (current_function_anonymous_args): Delete,
19947 replace uses with cfun->machine->uses_anonymous_args.
19948 (arm_reorg): Do not reset uses_anonymous_args.
19950 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
19951 any geenral register.
19953 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
19955 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
19958 2002-02-04 Richard Henderson <rth@redhat.com>
19960 * combine.c (force_to_mode): Remove STACK_BIAS code.
19961 (nonzero_bits): Likewise. Replace sp/fp special case with
19962 REGNO_POINTER_ALIGN.
19964 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
19965 (HARD_FRAME_POINTER_REGNUM): New.
19966 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
19967 (FIXED_REGS, CALL_USED_REGS): Update.
19968 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
19969 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
19970 (HARD_REGNO_NREGS): Update for SFP.
19971 (STACK_POINTER_OFFSET): Include bias here ...
19972 (FIRST_PARM_OFFSET): ... not here.
19973 (STACK_BIAS): Remove.
19974 (INIT_EXPANDERS): New.
19975 (STARTING_FRAME_OFFSET): Do not include bias.
19976 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
19977 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
19978 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
19979 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
19980 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
19981 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
19982 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
19983 (MUST_SAVE_REGISTER): Likewise.
19984 (sparc_flat_function_prologue): Likewise.
19985 (sparc_flat_function_epilogue): Likewise.
19986 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
19987 (sparc_init_modes): SFP is GENERAL_REGS.
19988 (sparc_builtin_saveregs): SFP does not have bias applied.
19990 2002-02-04 Richard Henderson <rth@redhat.com>
19992 * config/alpha/alpha.c (current_function_is_thunk): Don't check
19993 current_function_is_thunk.
19994 (alpha_sa_mask): Distinguish between current_function_is_thunk
19995 called from ASM_OUTPUT_MI_THUNK and not.
19996 (alpha_does_function_need_gp): Thunks always need gp.
19997 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19998 (alpha_output_mi_thunk_osf): New.
19999 * config/alpha/alpha-protos.h: Update.
20000 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
20002 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
20004 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
20005 function types, not when they're taken away.
20007 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
20009 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
20010 CODE_LABEL and jump table when replacing a table jump with a
20013 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20015 * config/s390/s390-protos.h (legitimize_la_operand,
20016 s390_secondary_input_reload_class, s390_plus_operand,
20017 s390_expand_plus_operand): Add prototypes.
20019 config/s390/s390.c (s390_secondary_input_reload_class,
20020 s390_plus_operand, s390_expand_plus_operand): New functions.
20022 (struct s390_address): New member 'pointer'.
20023 (s390_decompose_address): Compute it.
20024 (legitimate_la_operand_p): Use it.
20025 (legitimize_la_operand): New function.
20026 (movti, movdi, movdf splitters): Call it.
20028 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
20029 (PREDICATE_CODES): Add s390_plus_operand.
20031 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
20032 (la_ccclobber): Allow GENERAL_REGS as output operand.
20034 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
20035 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
20036 (*la_64, *la_31, reload_indi, reload_insi): ... these.
20038 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20040 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
20041 register names for regular asm () construct.
20043 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20045 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
20048 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20050 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
20053 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
20055 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
20056 constant pool to be identical by string address and index.
20058 2002-02-04 Anthony Green <green@redhat.com>
20060 * output.h (SECTION_OVERRIDE): Define.
20061 * varasm.c (named_section): Obey SECTION_OVERRIDE.
20063 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20065 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
20066 by existing arm*-*-netbsd* (a.out) target.
20067 (ns32k-*-netbsdelf*): Likewise.
20068 (sparc-*-netbsdelf*): Likewise.
20069 (vax-*-netbsdelf*): Likewise.
20071 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
20073 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
20074 headers and libobjc headers.
20076 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
20078 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
20079 (_mingw.h): Remove duplicate include.
20081 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20083 * config.gcc: Set cpu_type to m68k for 68010, as well.
20084 (m68010-*-netbsdelf*): New...
20085 (m68k*-*-netbsdelf*): ...targets.
20086 * config/m68k/netbsd-elf.h: New file.
20088 2002-02-02 Kazu Hirata <kazu@hxi.com>
20090 * config/h8300/h8300.c (hand_list): Move inside function_arg.
20092 2002-02-02 Kazu Hirata <kazu@hxi.com>
20094 * config/h8300/h8300.c (h8_push_ops): Move inside
20096 (h8_pop_ops): Likewise.
20097 (h8_move_ops): Likewise.
20099 2002-02-02 Kazu Hirata <kazu@hxi.com>
20101 * config/h8300/h8300.c (os_task): Make it static.
20102 (monitor): Likewise.
20103 (pragma_saveall): Likewise.
20105 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
20107 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
20108 constant is a valid sign-extension for Pmode.
20110 2002-02-02 Kazu Hirata <kazu@hxi.com>
20112 * config/h8300/h8300.c: Fix formatting.
20114 2002-02-02 Kazu Hirata <kazu@hxi.com>
20116 * config/h8300/h8300.md: Fix formatting.
20118 2002-02-02 Kazu Hirata <kazu@hxi.com>
20120 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
20121 predicates of operands[1]. Split the patterns for each
20124 2002-02-02 Kazu Hirata <kazu@hxi.com>
20126 * config/h8300/h8300.md (xor patterns): Tighten the predicates
20127 of operands[1] to register_operand.
20129 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20131 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
20132 * cpphash.c (_cpp_init_hashtable): Similarly.
20133 * cppinit.c (cpp_create_reader): Default the signed_char flag.
20134 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
20135 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
20136 (cpp_handle_option): Handle the new options.
20137 * cpplex.c (cpp_interpret_charconst): Use new flag.
20138 * cpplib.h (struct cpp_options): New member signed_char.
20139 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
20140 (cpp_options): Handle -fsigned-char and -funsigned-char.
20141 (static_specs): Remove signed_char_spec.
20142 (do_spec1): Don't handle %c.
20143 * system.h: Poison SIGNED_CHAR_SPEC.
20144 * tradcif.y (yylex): Use flag_signed_char.
20145 * tradcpp.h (flag_signed_char): New.
20146 * tradcpp.c (flag_signed_char): New.
20147 (main): Handle new command-line options.
20148 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
20150 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
20151 * avr/avr.h: Remove old comments.
20152 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
20153 (CC1_SPEC): Pass -fsigned-char if -mic*.
20154 (SIGNED_CHAR_SPEC): Remove.
20156 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
20158 2002-02-01 Eric Christopher <echristo@redhat.com>
20160 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
20161 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
20162 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
20163 (ASM_OUTPUT_REG_POP): Ditto.
20165 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20167 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
20170 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20172 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
20174 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20177 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
20180 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20182 * cfganal.c: Include tm_p.h.
20183 (keep_with_call_p): Fix the test that determines if a register holds
20184 the return value of a call.
20186 2002-02-01 DJ Delorie <dj@redhat.com>
20188 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
20189 we are given conflicting registers, switch to the other one we
20190 had allocated for us.
20191 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
20192 as TImode so we know when the "other" register is available.
20194 2002-02-01 David O'Brien <obrien@FreeBSD.org>
20196 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
20199 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20201 * cfganal.c (keep_with_call_p): New function.
20202 (flow_call_edges_add): Prevent splitting a block between a call and
20203 a single-set instruction that should be kept in the same block.
20205 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
20207 * doc/install.texi (avr): Update outdated URL.
20209 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
20211 * config/stormy16/stormy16.md (pushqi): New.
20215 (movhi): Remove stack operands.
20217 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
20218 nonimmediate_nonstack_operand.
20219 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
20221 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
20224 2002-01-31 Jason Merrill <jason@redhat.com>
20226 * Makefile.in (c-parse.c): Handle .output file.
20227 * objc/Make-lang.in (objc-parse.c): Likewise.
20229 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
20231 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
20232 the -me[lb] option is given. Don't output the default flag
20235 2002-01-31 Zack Weinberg <zack@codesourcery.com>
20237 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
20238 the primary source file; this has not been done yet.
20239 * c-decl.c (c_expand_body): Reset input_filename from
20240 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
20242 2002-01-31 Kazu Hirata <kazu@hxi.com>
20244 * rtlanal.c (subreg_regno_offset): Do not use
20245 SUBREG_REGNO_OFFSET.
20246 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
20247 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
20249 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20251 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
20252 version rather than GNATS version in --version output.
20254 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
20256 * ifcvt.c (noce_process_if_block): Make a copy of the destination
20257 when copying back from a temporary.
20259 2002-01-30 Richard Henderson <rth@redhat.com>
20261 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
20262 and new_dest are the same.
20264 2002-01-30 Richard Henderson <rth@redhat.com>
20267 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
20268 * rtl.c (note_insn_name): Update.
20269 * emit-rtl.c (remove_unnecessary_notes): Kill it.
20270 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
20271 to perform loop rotation.
20272 (expand_exit_loop_top_cond): New.
20273 * tree.h (expand_exit_loop_top_cond): Declare it.
20274 * c-semantics.c (genrtl_while_stmt): Use it.
20275 (genrtl_for_stmt): Likewise.
20277 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
20279 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
20280 arguments to 64-bit boundaries on 64-bit ABIs.
20282 2002-01-30 Steve Ellcey <sje@cup.hp.com>
20284 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
20286 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20288 * c-decl.c (grokdeclarator): Handle type being a typedef for an
20291 2002-01-30 David O'Brien <obrien@FreeBSD.org>
20293 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
20294 * config/sparc/sparc_bi.h: Remove file.
20295 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
20297 2002-01-30 Richard Henderson <rth@redhat.com>
20299 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
20301 2002-01-30 Zack Weinberg <zack@codesourcery.com>
20303 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
20305 2002-01-30 Jason Merrill <jason@redhat.com>
20307 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
20308 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
20309 (reg_save): Use DW_CFA_offset_extended_sf instead.
20311 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
20313 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20315 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
20318 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
20320 * rs6000.md ("*call_value_local32"): Remove constraints.
20321 ("*call_value_local64"): Same.
20322 ("*call_value_indirect_nonlocal_aix32"): Same.
20323 ("*call_value_nonlocal_aix32"): Same.
20324 ("*call_value_indirect_nonlocal_aix64"): Same.
20325 ("*call_value_nonlocal_aix64"): Same.
20326 ("*call_value_nonlocal_sysv"): Same.
20328 2002-01-29 Richard Henderson <rth@redhat.com>
20330 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
20332 2002-01-29 Richard Henderson <rth@redhat.com>
20334 * expr.c (force_operand): Ignore flag_pic for detecting pic
20336 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
20337 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
20338 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
20339 instead of open-coded loop.
20340 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
20341 be fixed when in use.
20343 2002-01-29 Richard Henderson <rth@redhat.com>
20345 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
20346 * sched-rgn.c (propagate_deps): Update them.
20347 * sched-deps.c (sched_analyze_insn): Update them. Flush the
20348 clobbers list when either gets too long.
20350 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20352 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
20353 and INDEX_REGS the same as GENERAL_REGS.
20354 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
20356 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20358 * tree.c (build_nonstandard_integer_type): Correct prototype.
20360 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
20362 * config/s390/s390.md (movstrsico, movstrdix_64,
20363 movstrsix_31): Remove, replace by ...
20364 (movstrdi_short, movstrsi_short, movstrdi_long,
20365 movstrsi_long): ... these. New.
20366 (movstrdi, movstrsi): Adapt.
20368 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
20369 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
20370 Remove unnecessary CC clobber.
20371 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20372 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20374 (divmoddi4): Don't partially initialize TImode register.
20376 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
20378 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20380 2002-01-29 Richard Henderson <rth@redhat.com>
20382 * flow.c (print_rtl_and_abort): Remove.
20383 (print_rtl_and_abort_fcn): Remove.
20384 (verify_local_live_at_start): Use dump_bb instead.
20385 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20386 (verify_wide_reg_1): Return 2 on mode test failure.
20388 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20390 PR c/3325, c/3326, c/2511, c/3347
20391 * c-decl.c (enum_decl_context): Remove BITFIELD.
20392 (grokdeclarator): Take bitfield width as an input.
20393 Ensure bitfields are given the correct type. Perform
20394 bitfield width validation with build_bitfield_integer_type
20395 rather than waiting for finish_struct.
20396 (grok_typename, grok_typename_in_parm_context, start_decl,
20397 push_parmdecl, grokfield, start_function): Update calls to
20399 (build_bitfield_integer_type): New function.
20400 (finish_struct): Move bitfield validation to grokdeclarator
20401 and build_bitfield_integer_type.
20402 * tree.c (build_nonstandard_integer_type): New function.
20403 * tree.h (build_nonstandard_integer_type): New prototype.
20405 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20407 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20410 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20411 don't ignore unrecognized -W* options.
20412 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20413 * cpplib.h (cpp_handle_option): Adjust prototype.
20414 * c-decl.c (c_decode_options): Pass 0 as last argument to
20418 * gcc.c (cpp_unique_options): Split from cpp_options.
20419 (cpp_options): Source cpp_unique_options.
20420 (default_compilers): Use cpp_unique_options instead of cpp_options
20421 when used together with cc1_options.
20422 (static_specs): Add cpp_unique_options.
20423 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20424 when used together with cc1_options.
20426 2002-01-29 Kazu Hirata <kazu@hxi.com>
20428 * config/h8300/h8300-protos.h: Update the prototype of
20430 * config/h8300/h8300.c (output_a_shift): Remove an unused
20431 argument 'insn'. Remove redundant code.
20432 * config/h8300/h8300.md: Adust to the new prototype of
20435 2002-01-29 Kazu Hirata <kazu@hxi.com>
20437 * config/h8300/h8300-protos.h: Update the prototypes of
20438 emit_a_rotate and expand_a_rotate.
20439 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20440 first argument to 'enum rtx_code'.
20441 (expand_a_rotate): Likewise.
20443 2002-01-28 Kazu Hirata <kazu@hxi.com>
20445 * config/h8300/h8300-protos.h: Update the prototype of
20447 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20449 * config/h8300/h8300.md: Adjust to the new prototype.
20451 2002-01-28 Kazu Hirata <kazu@hxi.com>
20453 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20456 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
20458 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20459 is a fixed register before returning pic_offset_table_rtx.
20460 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20461 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20463 2002-01-28 Jason Merrill <jason@redhat.com>
20465 * dwarf2.h: Sync with src version.
20467 2002-01-28 Paul Koning <pkoning@equallogic.com>
20469 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20470 BT_FN_VOID_PTR_VAR.
20471 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20472 * doc/extend.texi (__builtin_prefetch): Update documentation:
20473 first argument is now const void ptr.
20475 2002-01-28 Kazu Hirata <kazu@hxi.com>
20477 * config/h8300/h8300-protos.h: Remove an unused prototype.
20479 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
20481 * toplev.c (lang_independent_init): Round up identifier size.
20483 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20485 * config.gcc: Revert previous change.
20487 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
20489 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20491 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20493 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20494 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
20495 other non-elf netbsd config frags.
20496 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20497 collect2 will does that.
20498 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20499 shared-lib frobbing will work.
20501 2002-01-28 Kazu Hirata <kazu@hxi.com>
20503 * config/h8300/h8300.h: Fix formatting.
20504 * config/h8300/h8300.md: Likewise.
20506 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
20508 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20509 the old, removed AAA_standards fix.
20510 * fixinc/fixincl.x: Rebuilt.
20512 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
20514 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20515 atexit call in crtbegin, hooked in after call to frame_dummy;
20516 register EH before registering __fini__start.
20518 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
20520 * config/rs6000/altivec.h: Remove spurious semicolons.
20522 2002-01-27 Kazu Hirata <kazu@hxi.com>
20524 * config/h8300/h8300.md: Replace dead bit extraction patterns
20525 with ones that work.
20527 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20529 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20530 if not STRICT_ALIGNMENT.
20531 * rtl.h (MEM_ALIGN): Likewise.
20533 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
20535 * doc/invoke.texi (-fdump-translation-unit): Revert this
20536 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
20538 2002-01-27 Kazu Hirata <kazu@hxi.com>
20540 * config/h8300/h8300.md (define_constants): New.
20541 (anonymous patterns) Use defined constants appropriately.
20543 2002-01-27 Kazu Hirata <kazu@hxi.com>
20545 * config/h8300/h8300.c (function_arg): Remove redundant code.
20547 2002-01-26 Richard Henderson <rth@redhat.com>
20549 * sched-deps.c (reg_pending_uses_head): New.
20550 (reg_pending_barrier): Rename from reg_pending_sets_all.
20551 (find_insn_list): Don't mark inline.
20552 (find_insn_mem_list): Remove.
20553 (add_dependence_list, add_dependence_list_and_free): New.
20554 (flush_pending_lists): Replace only_write param with separate
20555 for_read and for_write parameters. Update all callers. Use
20556 add_dependence_list_and_free.
20557 (sched_analyze_1): Do not add reg dependencies here; just set
20558 the pending bits. Use add_dependence_list.
20559 (sched_analyze_2): Likewise.
20560 (sched_analyze_insn): Replace schedule_barrier_found with
20561 reg_pending_barrier. Add all dependencies for pending reg
20562 uses, sets, and clobbers.
20563 (sched_analyze): Don't add reg dependencies for calls, just
20564 set pending bits. Use regs_invalidated_by_call. Treat
20565 sched_before_next_call as a normal list, not a fake insn.
20566 (init_deps): No funny init for sched_before_next_call.
20567 (free_deps): Free pending mems lists. Don't zero reg_last.
20568 (init_deps_global): Init reg_pending_uses.
20569 (finish_deps_global): Free it.
20570 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
20571 (find_insn_mem_list): Remove.
20572 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20573 (propagate_deps): Use them. Zero temp mem lists.
20575 2002-01-26 Richard Henderson <rth@redhat.com>
20577 * Makefile.in (CRTSTUFF_CFLAGS): New.
20578 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20579 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20580 crtstuff.c instead of alpha assembly version.
20581 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20582 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
20583 not FORCE_{INIT,FINI}_SECTION_ALIGN.
20584 (__do_global_dtors_aux): Mark used.
20585 (frame_dummy, __do_global_ctors_aux): Mark used.
20586 (fini_dummy, init_dummy): Remove.
20588 * config/alpha/crtbegin.asm: Remove file.
20589 * config/alpha/crtend.asm: Remove file.
20590 * config/alpha/t-crtbe: Remove file.
20591 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20592 (LINK_EH_SPEC): New.
20594 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20595 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
20596 calling constructors.
20597 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20599 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20600 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20601 CRT_END_INIT_DUMMY hack.
20602 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20603 FORCE_{INIT,FINI}_SECTION_ALIGN.
20605 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20606 FORCE_{INIT,FINI}_SECTION_ALIGN.
20608 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20609 invocation sequence.
20610 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20612 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20613 (FORCE_CODE_SECTION_ALIGN): New.
20615 2002-01-26 Richard Henderson <rth@redhat.com>
20617 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20619 2002-01-26 Richard Henderson <rth@redhat.com>
20621 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20622 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20624 2002-01-26 Kazu Hirata <kazu@hxi.com>
20626 * config/h8300/h8300.md: Remove bit extraction patterns that
20627 cannot be triggered.
20628 Restrict each bit extraction pattern to a variant on which the
20631 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
20633 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20635 2002-01-26 Kazu Hirata <kazu@hxi.com>
20637 * config/h8300/h8300.md: Remove bit test patterns that cannot
20639 Restrict each bit test pattern to a variant on which the
20642 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20644 * builtins.c (expand_builtin_strncat): Remove redundant check for
20647 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20649 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20651 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20654 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20656 * dbxout.c (dbxout_init): Use assemble_name rather than just
20657 stripping off the first character.
20658 (dbxout_source_file): Likewise.
20660 2002-01-25 DJ Delorie <dj@redhat.com>
20662 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20663 using rtx_equal_p, not by comparing pointers.
20665 2002-01-25 Steve Ellcey <sje@cup.hp.com>
20667 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20668 for PIC_OFFSET_TABLE_REGNUM.
20669 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20671 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20673 * config.gcc (x86_64-*-freebsd*): New target.
20674 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20676 (i[34567]86-*-freebsd*): Don't include svr4.h.
20677 * config/i386/freebsd64.h: New file.
20679 2002-01-25 Douglas B Rupp <rupp@gnat.com>
20681 * config/alpha/x-vms (version): Make static.
20683 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20684 in previous checkin.
20686 * Makefile.in (install-headers-cp): New target.
20687 * config.gcc (alpha-dec-*vms*): Install headers with
20690 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
20692 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20695 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20697 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20698 of compare_tree_int.
20699 (expand_builtin_strncat): Likewise.
20700 * c-decl.c (finish_struct): Use tree_low_cst.
20701 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20702 * tree.c (compare_tree_int): Likewise.
20704 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
20706 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20707 adjustments even if they are implemented by more than two insns.
20709 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
20711 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
20712 * df.h (struct ref): Kill B.
20713 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20715 * basic-block.h (PROP_EQUAL_NOTES): New flag.
20716 * flow.c (propagate_one_insn): Use it.
20717 (mark_used_regs): Handle NIL.
20719 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20721 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20724 2002-01-25 David Edelsohn <edelsohn@gnu.org>
20726 * rs6000.md (prefetch): Make address V4SI mode so that the address
20727 is restricted to legitimate form for instruction.
20729 2002-01-25 Bob Wilson <bob.wilson@acm.org>
20731 * doc/install.texi (xtensa-*-elf): New target.
20732 (xtensa-*-linux*): New target.
20733 * doc/contrib.texi: Add myself.
20735 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
20737 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20738 purpose register to hold an SImode (or smaller) value.
20740 2002-01-25 Jakub Jelinek <jakub@redhat.com>
20742 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20744 * crtstuff.c: Likewise.
20746 2002-01-25 Kazu Hirata <kazu@hxi.com>
20748 * config/h8300/h8300.md (negation patterns): Tighten
20749 predicates to register_operand.
20751 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
20753 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20756 * builtins.c (expand_builtin_prefetch): Same.
20758 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20760 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20763 2002-01-24 Kazu Hirata <kazu@hxi.com>
20765 * config/h8300/h8300.c (print_operand): Remove support for
20766 operand character 'A'.
20767 * config/h8300/h8300.md (three anonymous patterns): Replace
20768 operand character 'A' with either 'T' or 'S'.
20770 2002-01-24 Kazu Hirata <kazu@hxi.com>
20772 * config/h8300/h8300.c (print_operand): Remove support for
20773 operand character 'U'.
20775 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
20777 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
20779 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
20781 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20782 values to be assigned to the stack pointer.
20784 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
20786 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
20787 to const_double needs to be done right for big-endian systems.
20789 2002-01-24 Jason Merrill <jason@redhat.com>
20792 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
20793 to can_throw_internal.
20795 2002-01-23 Richard Henderson <rth@redhat.com>
20797 * fold-const.c (fold): Change UINT_MAX test to check vs precision
20798 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
20800 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20802 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
20803 (symGOT2reg): Use them, then set as GOT value as unchanging.
20804 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
20805 as a temporary, if possible.
20806 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
20807 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
20809 2002-01-23 Kazu Hirata <kazu@hxi.com>
20811 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
20812 accept to accept 0x80 as operands[2].
20814 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20816 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
20818 2002-01-23 Richard Henderson <rth@redhat.com>
20820 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
20822 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
20824 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
20825 (parmlist_or_identifiers_1): Verify that only a parmlist follows
20828 2002-01-23 Richard Henderson <rth@redhat.com>
20830 * expr.c (move_by_pieces_1): Extend size before negation.
20832 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
20833 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
20834 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
20835 * config/m68k/t-m68kelf: Likewise.
20837 2002-01-23 Bob Wilson <bob.wilson@acm.org>
20839 * config/xtensa/elf.h: New file.
20840 * config/xtensa/lib1funcs.asm: New file.
20841 * config/xtensa/lib2funcs.S: New file.
20842 * config/xtensa/linux.h: New file.
20843 * config/xtensa/t-xtensa: New file.
20844 * config/xtensa/xtensa-config.h: New file.
20845 * config/xtensa/xtensa-protos.h: New file.
20846 * config/xtensa/xtensa.c: New file.
20847 * config/xtensa/xtensa.h: New file.
20848 * config/xtensa/xtensa.md: New file.
20849 * config.gcc (xtensa-*-elf*): New target.
20850 (xtensa-*-linux*): New target.
20851 * cse.c (canon_hash): Compare rtx pointers instead of register
20852 numbers. This is required for the Xtensa port.
20853 * integrate.c (copy_insn_list): Handle case where the static
20854 chain is in memory and the memory address has to be copied to
20856 * doc/invoke.texi (Option Summary): Add Xtensa options.
20857 (Xtensa Options): New node.
20858 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
20860 2002-01-23 Zack Weinberg <zack@codesourcery.com>
20862 * diagnostic.c (internal_error): Do ICE suppression only
20863 when ENABLE_CHECKING is not defined.
20865 * c-typeck.c (require_complete_type): Return error_mark_node
20866 if type is error_mark_node.
20868 2002-01-23 Janis Johnson <janis187@us.ibm.com>
20870 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
20871 -Os and issue a warning.
20873 2002-01-23 Zack Weinberg <zack@codesourcery.com>
20875 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
20876 current (lack of) need for host configuration by hand.
20878 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
20879 references. Documentation of some target macros moved from
20880 hostconfig.texi to tm.texi.
20882 2002-01-23 Will Cohen <wcohen@redhat.com>
20884 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
20887 2002-01-23 Kazu Hirata <kazu@hxi.com>
20889 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
20892 2002-01-23 Jason Merrill <jason@redhat.com>
20894 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
20896 * function.c (assign_parms): Don't put args of inline functions
20897 into registers when not optimizing.
20899 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
20901 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
20902 (prologue_use): New pattern.
20903 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
20904 preference to gen_rtx_USE.
20905 (thumb_expand_prologue): Use gen_prologue_use in preference to
20907 (thumb_expand_epilogue): Use gen_prologue_use in preference to
20910 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
20912 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
20914 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
20917 * doc/extend.texi: Correct documentation of __alignof__.
20919 2002-01-22 Zack Weinberg <zack@codesourcery.com>
20921 * params.h: Rename arguments of DEFPARAM so that it will be
20922 recognized as a translation keyword.
20924 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
20926 * extend.texi: Document altivec functions.
20927 Fix N-bit adjectives in X86 builtin documentation.
20929 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
20931 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
20932 auto_inc_dec values.
20934 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
20936 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
20938 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
20940 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
20942 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
20944 2002-01-22 Richard Henderson <rth@redhat.com>
20946 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
20947 copy_insn not copy_rtx.
20949 2002-01-23 Alan Modra <amodra@bigpond.net.au>
20951 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
20952 "nonzero" as that might add "1" bits. Ensure "constop" is
20953 properly sign extened.
20954 (force_to_mode): Tweak for sign extended constop.
20956 2002-01-22 Richard Henderson <rth@redhat.com>
20958 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
20959 for_each_rtx instead of assuming we're already looking at the MEM.
20960 (split_small_symbolic_mem_operand): Likewise.
20961 * config/alpha/alpha.h (PREDICATE_CODES): Update.
20962 * config/alpha/alpha.md (small symbolic memory splitters): Update.
20964 2002-01-22 Richard Henderson <rth@redhat.com>
20966 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
20967 sequence number for the literal.
20968 (divmoddi_internal_er): Likewise.
20970 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
20973 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
20974 in LIBICONV variable.
20975 * configure: Regenerated.
20977 2002-01-22 Krister Walfridsson <cato@df.lth.se>
20979 * dependence.c (build_def_use): Remove array_idx.
20981 * dwarfout.c (last_filename): Remove.
20982 (output_compile_unit_die): Remove last_filename.
20984 2002-01-22 Roger Sayle <roger@eyesopen.com>
20985 Richard Henderson <rth@redhat.com>
20988 * fold-const.c (fold): Optimize unsigned comparisons against
20989 UINT_MAX (and similar unsigned constants).
20991 2002-01-22 Janis Johnson <janis187@us.ibm.com>
20993 * Makefile.in (loop.o): Depend on OPTABS_H.
20994 * loop.c (emit_prefetch_instructions): Check the prefetch operand
20995 against the predicate.
20998 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
20999 for the address operand.
21001 2002-01-22 Richard Henderson <rth@redhat.com>
21003 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
21005 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21008 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
21009 preprocessor flags.
21011 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
21013 * config.gcc (x86_64-*-netbsd*): New target.
21014 * config/i386/netbsd64.h: New file.
21016 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21018 * regrename.c (kill_value): Fix typo.
21020 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21022 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
21024 * config/rs6000/rs6000.h: Same.
21026 * function.c (instantiate_virtual_regs): Remove
21027 STARTING_FRAME_PHASE.
21028 (assign_stack_local_1): Same.
21029 Calculate frame phase.
21031 2002-01-22 Nick Clifton <nickc@redhat.com>
21033 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
21034 variable declaration to outer scope in order to simplify
21036 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
21037 arm_hard_regno_mode_ok.
21038 * config/arm/arm-protos.h: Add a prototype for
21039 arm_hard_regno_mode_ok.
21040 * config/arm/arm.c (soft_df_operand): Remove now redundant
21041 check for DImode values using IP_REGNUM.
21042 (nonimmediate_soft_df_operand): Remove now redundant check for
21043 DImode values using IP_REGNUM.
21044 (arm_hard_regno_mode_ok): New function. New check: make sure
21045 that DImode values are not stored in IP_REGNUM.
21047 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
21049 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
21051 2002-01-22 Jason Merrill <jason@redhat.com>
21053 * c-semantics.c (genrtl_compound_stmt): Only check nesting
21054 consistency if this COMPOUND_STMT is scoped.
21056 2002-01-22 Kazu Hirata <kazu@hxi.com>
21058 * predict.c: Fix formatting.
21059 * print-tree.c: Likewise.
21060 * protoize.c: Likewise.
21061 * real.h: Likewise.
21063 * sbitmap.h: Likewise.
21064 * scan.c: Likewise.
21065 * sched-deps.c: Likewise.
21066 * sched-vis.c: Likewise.
21067 * sdbout.c: Likewise.
21068 * sibcall.c: Likewise.
21070 * ssa-ccp.c: Likewise.
21071 * ssa-dce.c: Likewise.
21072 * stmt.c: Likewise.
21073 * stor-layout.c: Likewise.
21074 * system.h: Likewise.
21076 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21078 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
21079 if fits in bounds of base type.
21081 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
21082 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
21083 (add_bound_info, default): If can't find a context, make a
21085 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
21087 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
21089 * c-typeck.c (parser_build_binary_op): If result from
21090 build_binary_op is ERROR_MARK just return error_mark_node without
21091 further processing.
21093 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
21095 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
21096 Split a.out-specific bits into...
21097 * config/netbsd-aout.h: ...this.
21098 * config/netbsd-elf.h: New file.
21099 * config/alpha/netbsd-elf.h: Remove.
21100 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
21101 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
21102 (STARTFILE_SPEC): Remove redundant definition.
21103 (ENDFILE_SPEC): Likewise.
21104 (LINK_SPEC): Likewise.
21105 (CPP_SPEC): Likewise.
21106 (ASM_SPEC): Likewise.
21107 (LIB_SPEC): Likewise.
21108 (SWITCH_TAKES_ARG): Likewise.
21109 (TARGET_MEM_FUNCTIONS): Likewise.
21110 (CPP_PREDEFINES): Redefine.
21111 (ASM_FINAL_SPEC): Remove redefinition.
21112 (ASM_COMMENT_START): Redefine.
21113 (FUNCTION_PROFILER): Define.
21114 (TARGET_VERSION): Redefine.
21115 Comment and formatting cleanup.
21116 * config/i386/netbsd.h: Include <netbsd-aout.h>.
21117 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
21118 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
21119 big- or little-endian.
21120 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
21121 * config.gcc (*-*-netbsd*): Add definitions common to all
21123 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
21124 gnu_ld definitions. Add netbsd-elf.h to and remove
21125 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
21126 tmake_file, and don't lose previous tmake_file contents.
21127 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
21128 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
21129 gnu_ld definitions. Add netbsd-elf.h to tm_file.
21130 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
21131 (mipsel-*-netbsd*): Rename this to...
21132 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
21133 mips/little.h to tm_file for mips*el-*.
21134 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
21135 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
21136 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
21138 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21140 * pa-protos.h (reg_before_reload_operand): New function prototype.
21141 * pa.c (reg_before_reload_operand): New function implementation.
21142 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
21143 contraints to "*m".
21145 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21147 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
21149 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21151 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
21152 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
21153 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
21154 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
21155 (ENDFILE_SPEC): Undefine.
21156 (STARTFILE_SPEC): Redefine for PA.
21158 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21160 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
21162 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
21164 * config.gcc: Add entries to supported PowerPC --with-cpu
21167 2002-01-21 Jakub Jelinek <jakub@redhat.com>
21169 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
21170 true for 64-bit mode only SSE registers in 32-bit mode.
21172 2002-01-21 Kazu Hirata <kazu@hxi.com>
21174 * unwind-dw2.c: Fix formatting.
21175 * unwind-dw2-fde.c: Likewise.
21176 * unwind-dw2-fde.h: Likewise.
21177 * unwind-pe.h: Likewise.
21178 * varasm.c: Likewise.
21179 * varray.h: Likewise.
21181 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
21183 Remove workaround for register stack overwrite bug in mmix.
21184 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
21185 support for TARGET_REG_STACK_FILL_BUG.
21186 * config/mmix/mmix.h: Remove member has_call_without_parameters.
21187 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
21189 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
21190 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
21191 -mno-reg-stack-fill-bug-workaround.
21192 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
21193 machine member has_call_without_parameters.
21194 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
21195 -mreg-stack-fill-bug-workaround and
21196 -mno-reg-stack-fill-bug-workaround.
21197 (MMIX Options): Ditto.
21199 2002-01-21 Kazu Hirata <kazu@hxi.com>
21201 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
21203 Remove redundant code.
21205 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
21207 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
21208 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21209 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21210 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
21211 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
21212 out target macro definitions and non-target-specific comments
21213 mostly taken from old versions of the manual.
21215 2002-01-20 Kazu Hirata <kazu@hxi.com>
21217 * config/h8300/h8300.h: Fix comment formatting.
21218 * config/ia64/aix.h: Likewise.
21219 * config/ia64/ia64-protos.h: Likewise.
21220 * config/ia64/ia64.c: Likewise.
21221 * config/ia64/ia64.h: Likewise.
21222 * config/ia64/ia64intrin.h: Likewise.
21223 * config/ia64/linux.h: Likewise.
21224 * config/ia64/unwind-aix.c: Likewise.
21225 * config/ia64/unwind-ia64.c: Likewise.
21227 2002-01-20 Kazu Hirata <kazu@hxi.com>
21229 * config/h8300/h8300.c: Revise comments about shift code.
21231 2002-01-20 Kazu Hirata <kazu@hxi.com>
21233 * config/h8300/h8300.c (function_arg): Update a comment.
21235 2002-01-20 Kazu Hirata <kazu@hxi.com>
21237 * config/h8300/h8300.md: Update the comments at the beginning
21240 2002-01-20 Kazu Hirata <kazu@hxi.com>
21242 * config/i370/i370.c: Fix comment formatting.
21243 * config/i370/i370.h: Likewise.
21244 * config/i370/i370.md: Likewise.
21245 * config/i370/linux.h: Likewise.
21247 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21249 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
21251 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
21252 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
21253 in incomplete case.
21255 2002-01-20 Graham Stott <grahams@redhat.com>
21257 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
21259 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
21261 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
21263 2002-01-19 Tom Rix <trix@redhat.com>
21265 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
21267 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
21269 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
21271 * function.c (assign_stack_local_1): Adjust x_frame_offset with
21272 STARTING_FRAME_PHASE.
21273 (STARTING_FRAME_PHASE): New.
21274 (instantiate_virtual_regs): Check saneness of
21275 STARTING_FRAME_PHASE.
21277 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
21279 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
21281 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
21283 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
21285 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
21286 be used for bootstrapping GCC 3.0.
21288 2002-01-18 Kazu Hirata <kazu@hxi.com>
21290 * config/h8300/h8300.md: Fix an insn length.
21292 2002-01-18 Kazu Hirata <kazu@hxi.com>
21294 * bitmap.h: Fix comment formatting.
21295 * combine.c: Likewise.
21296 * cppfiles.c: Likewise.
21297 * c-pragma.h: Likewise.
21298 * c-typeck.c: Likewise.
21300 * dwarf2out.c: Likewise.
21301 * function.c: Likewise.
21303 * genattrtab.c: Likewise.
21304 * gthr-win32.h: Likewise.
21305 * haifa-sched.c: Likewise.
21306 * predict.c: Likewise.
21307 * rtlanal.c: Likewise.
21309 * unwind-dw2-fde.h: Likewise.
21310 * unwind-pe.h: Likewise.
21311 * vmsdbgout.c: Likewise.
21313 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21315 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
21316 if type_required and passed decl.
21318 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
21320 * config.gcc (cpu_type): Include altivec.h in powerpc
21324 * config/rs6000/altivec.h: New.
21326 2002-01-17 David Edelsohn <edelsohn@gnu.org>
21328 * doc/install.texi (*-ibm-aix*): Update assembler and exception
21329 handling information.
21330 * doc/trouble.texi (Interoperation): Add libstdc++ information
21332 (Misunderstandings): Add template instantiation and static template
21333 member information for AIX.
21335 2002-01-17 Jason Merrill <jason@redhat.com>
21337 * dbxout.c (dbxout_type): Support const and volatile.
21339 * except.c (add_partial_entry): Remove backwards compatibility code.
21340 (end_protect_partials): Likewise.
21342 2002-01-17 Jakub Jelinek <jakub@redhat.com>
21344 * config/ia64/ia64.md (prologue_use): New.
21345 * config/ia64/ia64.c (ia64_expand_prologue): Use
21346 gen_prologue_use instead of gen_rtx_USE.
21347 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
21348 as CODE_FOR_pred_rel_mutex.
21349 (ia64_sched_reorder2): Likewise.
21351 2002-01-16 Eric Christopher <echristo@redhat.com>
21353 * config/mips/r3900.h: Reformat.
21354 (SUBTARGET_CPP_SIZE_SPEC): Remove.
21355 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
21356 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
21357 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
21358 * config/mips/t-elf: Remove mips3 multilib.
21360 2002-01-16 H.J. Lu <hjl@gnu.org>
21362 * config/mips/linux.h: Include "mips/abi64.h".
21364 2002-01-16 H.J. Lu <hjl@gnu.org>
21366 * config/mips/t-linux: New.
21368 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
21370 * config/mips/linux.h: Don't include "gofast.h".
21371 (INIT_SUBTARGET_OPTABS): Removed.
21373 2002-01-16 Kazu Hirata <kazu@hxi.com>
21375 * config/h8300/h8300-protos.h: Replace emit_a_shift with
21377 * config/h8300/h8300.c: Likewise.
21378 * config/h8300/h8300.md: Likewise.
21380 2002-01-16 Kazu Hirata <kazu@hxi.com>
21382 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21383 spaces after an opcode name.
21384 (pushqi1_h8300hs): Likewise.
21385 (pushhi1_h8300hs): Likewise.
21387 2002-01-16 Kazu Hirata <kazu@hxi.com>
21389 * doc/extend.texi: Replace "option" with "attribute"
21392 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21394 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21395 (and:DI () (const_int -8)).
21396 (split_small_symbolic_mem_operand): Split
21397 (mem (and:DI () (const_int -8)).
21399 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21402 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
21403 same way as TYPE_IMUL.
21404 (ultrasparc_sched_reorder): Likewise.
21405 * config/sparc/sparc.md (type): Add comment to update
21406 ultrasparc_sched_reorder when making changes.
21408 2002-01-16 Kazu Hirata <kazu@hxi.com>
21410 * doc/invoke.texi: Change the dump file name of block
21411 reordering pass from 28.bbro to 29.bbro.
21412 Mention -dk option.
21414 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
21416 * i386.md (minsf splitter): Fix pasto.
21418 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21420 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21421 to frame pointer initialisation instruction.
21422 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21423 initialisation instruction.
21424 (soft_df_operand): Do not accept the IP register.
21425 (nonimmediate_soft_df_operand): Do not accept the IP register.
21427 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21430 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21431 MASK_V8 being both set.
21433 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
21435 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21436 insn for GOT register; add REG_MAYBE_DEAD notes instead.
21437 config/s390/s390.md (call, call_value): Add GOT register to
21438 CALL_INSN_FUNCTION_USAGE where needed.
21439 (call_exp, call_value_exp): New.
21441 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21443 * config/arm/arm.c: General formatting tidy up.
21445 2002-01-16 Graham Stott <grahams@redhat.com>
21447 * calls.c (try_to_integrate): Use "(size_t)" intermediate
21448 cast and when casting an integer literal to "rtx" pointer.
21449 (expand_call): Likewise.
21450 * flow.c (try_pre_increment): Likewise.
21451 (find_use_as_address): Likewise.
21452 * integrate.c (expand_iline_function): Likewise.
21453 * regmove.c (try_auto_increment): Likewise.
21455 2002-01-16 Graham Stott <grahams@redhat.com>
21457 * sched-rgn.c (passed): Use sbitmap_free.
21458 (header): Likewise.
21460 (in_queue): Likewise.
21461 (in_stack): Likewise.
21463 2002-01-15 Eric Christopher <echristo@redhat.com>
21465 * flow.c (propagate_one_insn): Change to use fatal_insn.
21467 2002-01-15 Kazu Hirata <kazu@hxi.com>
21469 * expmed.c (extract_fixed_bit_field): Remove unused code.
21470 * system.h: Poison SLOW_ZERO_EXTEND.
21471 * doc/tm.texi: Remove.
21472 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21473 * config/arm/arm.h: Likewise.
21474 * config/avr/avr.h: Likewise.
21475 * config/clipper/clipper.h: Likewise.
21476 * config/convex/convex.h: Likewise.
21477 * config/d30v/d30v.h: Likewise.
21478 * config/dsp16xx/dsp16xx.h: Likewise.
21479 * config/elxsi/elxsi.h: Likewise.
21480 * config/fr30/fr30.h: Likewise.
21481 * config/h8300/h8300.h: Likewise.
21482 * config/i370/i370.h: Likewise.
21483 * config/i386/i386.h: Likewise.
21484 * config/m68k/m68k.h: Likewise.
21485 * config/mips/mips.h: Likewise.
21486 * config/ns32k/ns32k.h: Likewise.
21487 * config/pdp11/pdp11.h: Likewise.
21488 * config/pj/pj.h: Likewise.
21489 * config/s390/s390.h: Likewise.
21490 * config/sh/sh.h: Likewise.
21491 * config/stormy16/stormy16.h: Likewise.
21492 * config/v850/v850.h: Likewise.
21493 * config/vax/vax.h: Likewise.
21494 * config/we32k/we32k.h: Likewise.
21496 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21498 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21499 (altivec_lvsl): Change constraint to b.
21500 (altivec_lvsr): Same.
21501 (altivec_lvebx): Same.
21502 (altivec_lvehx): Same.
21503 (altivec_lvewx): Same.
21504 (altivec_lvxl): Same.
21505 (altivec_lvx): Same.
21506 (altivec_stvx): Add parallel.
21507 (altivec_stvxl): Same.
21508 (altivec_stvehx): Same.
21509 (altivec_stvebx): Same.
21510 (altivec_stvebx): Same.
21512 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21514 * config.gcc: Change altivec.h to altivec-defs.h.
21516 * config/rs6000/altivec.h: Delete.
21518 * config/rs6000/altivec-defs.h: Add.
21520 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
21522 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21525 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21526 less than or equal to eight bytes.
21528 * vax.md (andsi3): Remove constraints and change SET destination
21529 operand type to nonimmediate_operand.
21530 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
21531 when it is a CONST_INT.
21533 2002-01-15 Jason Merrill <jason@redhat.com>
21535 * c-common.def (FILE_STMT): New code.
21536 * c-common.c (statement_code_p): It's a statement.
21537 * c-common.h (stmt_tree_s): Add x_last_filename.
21538 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21539 (last_expr_filename): New macro.
21540 * c-semantics.c (begin_stmt_tree): Initialize it.
21541 (add_stmt): If the filename changed, also insert a
21543 (expand_stmt): Handle seeing one.
21545 2002-01-15 Eric Christopher <echristo@redhat.com>
21547 * flow.c (propagate_one_insn): Add error message and print out
21548 insn for debugging.
21550 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21552 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21553 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21554 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21555 TRAMPOLINE_ALIGNMENT.
21556 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
21558 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21559 PCC_BITFIELD_TYPE_MATTERS.
21560 * config/interix.h (STDC_VALUE): Remove. Use
21561 STDC_0_IN_SYSTEM_HEADERS.
21562 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21563 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21564 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21566 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
21568 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21569 not work on this platform currently.
21571 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21573 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21574 readonly_warning in _().
21576 2002-01-15 Douglas B Rupp <rupp@gnat.com>
21578 * gcc.c (delete_if_ordinary): Backout previous change.
21580 2002-01-15 Kazu Hirata <kazu@hxi.com>
21582 * config/h8300/h8300.c (print_operand): Remove support for
21583 unused operand characters.
21585 * read-rtl.c: Fix formatting.
21586 * real.c: Likewise.
21587 * recog.c: Likewise.
21588 * regclass.c: Likewise.
21589 * regmove.c: Likewise.
21590 * reg-stack.c: Likewise.
21591 * reload1.c: Likewise.
21592 * rtlanal.c: Likewise.
21594 2002-01-15 Kazu Hirata <kazu@hxi.com>
21596 * config/i386/i386.c: Fix formatting.
21598 2002-01-15 Jakub Jelinek <jakub@redhat.com>
21600 * c-typeck.c (process_init_element): Don't save_expr
21601 COMPOUND_LITERAL_EXPR if just its initializer will be used.
21603 2002-01-15 David Edelsohn <edelsohn@gnu.org>
21605 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21606 emit optional traceback table if optimize_size or TARGET_ELF.
21607 * config/rs6000/rs6000.md (prefetch): New.
21609 2002-01-15 Andreas Jaeger <aj@suse.de>
21611 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21613 2002-01-15 Kazu Hirata <kazu@hxi.com>
21615 * mips-tfile.c: Fix formatting.
21617 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
21619 * unroll.c (final_reg_note_copy): Fix previous commit.
21621 2002-01-14 Kazu Hirata <kazu@hxi.com>
21623 * config/h8300/h8300-protos.h: Remove the prototype for
21625 * config/h8300/h8300.c (eq_operator): Remove.
21627 2002-01-14 Richard Henderson <rth@redhat.com>
21629 * config/i386/i386.md (prefetch): Tidy.
21630 (prefetch_3dnow): Fix locality operand.
21632 2002-01-14 Richard Henderson <rth@redhat.com>
21634 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21635 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21637 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
21639 * reload1.c (reload_combine): Pass reg_sum replacement through
21640 copy_rtx in loop performing multiple changes.
21642 2002-01-14 Jakub Jelinek <jakub@redhat.com>
21644 * except.c (remove_unreachable_regions): New.
21645 (free_eh_status): Clear exception_handler_labels.
21646 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21647 (find_exception_handler_labels): Don't add the same label more than
21649 (remove_exception_handler_label): Don't die if
21650 find_exception_handler_labels hasn't been called for the current
21653 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
21655 * toplev.c (rest_of_compilation): Rebuild jump labels after
21658 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
21660 * doc/extend.texi: Move documentation of X86 built-in functions
21662 * doc/invoke.texi: From here.
21663 * doc/sourcebuild.texi: Document location of documentation for
21664 machine built-in functions.
21666 2002-01-13 Christopher Faylor <cgf@redhat.com>
21668 * cppfiles.c (TEST_THRESHOLD): New macro.
21669 (SHOULD_MMAP): Ditto.
21670 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21673 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
21675 * unroll.c (final_reg_note_copy): Properly handle
21677 (unroll_loops): Fix LOOP_CONDITION heuristics.
21679 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
21681 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21682 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21684 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
21686 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21689 2002-01-14 Tom Rix <trix@redhat.com>
21691 * config/rs6000/rs6000.md: Fix typo with sradi.
21693 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
21695 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21696 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21697 (clrstrdi, clrstrsi): Adapt callers.
21699 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21701 (movti splitter): Never use register 0 as base register.
21703 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21705 * combine.c (simplify_shift_const): Always generate new rtx
21706 for shift expression instead of reusing given expression.
21708 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21710 * config/alpha/alpha.c (alpha_expand_mov): Don't call
21711 alpha_legitimize_address unless mode is Pmode.
21713 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
21715 * doc/md.texi (Modifiers): Document the '*' constraint for the
21718 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21719 * doc/extend.texi (Function Attributes): 'interrupt' is valid
21722 2002-01-13 Richard Henderson <rth@redhat.com>
21724 * reload.c (find_reloads): Use a hard reg destination as reload reg
21725 for an input reload of the source.
21727 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21729 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21732 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
21734 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21735 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21737 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21739 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21741 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21743 2002-01-12 Tom Rix <trix@redhat.com>
21745 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
21748 2002-01-12 Richard Henderson <rth@redhat.com>
21750 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21752 * doc/invoke.texi: Update Alpha options.
21754 * doc/invoke.texi: Update i386 built-in function lists.
21756 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
21758 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21759 referencing outside.
21761 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21763 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21764 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21765 offsets, and change line folding.
21766 * optabs.c (expand_binop): Remove warnings.
21767 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
21769 2002-01-12 Graham Stott <grahams@redhat.com>
21771 * attribs.c (handle_deprecated_attribute): constify WHAT.
21772 * diagnostic.c (warn_deprecated_use): Add braces, fixes
21773 dangling else warning and constify WHAT.
21774 * except.h (struct function, struct inline_remap): Move
21775 struct tag forward defs before all prototypes.
21776 (duplicate_eh_regions): Whitespace.
21778 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
21780 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21781 MODE_BASE_REG_CLASS.
21782 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
21784 2002-01-12 Richard Henderson <rth@redhat.com>
21786 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
21787 (ix86_expand_vector_move): New.
21788 (bdesc_2arg): Remove andps, andnps, orps, xorps.
21789 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
21790 Remove old prefetch builtins. Special case the logicals removed above.
21791 (ix86_expand_builtin): Likewise.
21792 (safe_vector_operand): Use V4SFmode, not TImode.
21793 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
21794 (ix86_expand_timode_binop_builtin): New.
21795 * config/i386/i386-protos.h: Update.
21796 * config/i386/i386.h (enum ix86_builtins): Update.
21797 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
21798 Use ix86_expand_vector_move in vector move expanders.
21799 (movti_internal, movti_rex64): Add xorps alternative.
21800 (sse_clrv4sf): Rename and adjust from sse_clrti.
21801 (prefetch): Don't work so hard.
21802 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
21803 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
21804 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
21806 2002-01-11 Richard Henderson <rth@redhat.com>
21808 * config/i386/mmintrin.h: New file.
21809 * config/i386/xmmintrin.h: New file.
21810 * config.gcc (i?86-*-*): Add extra_headers.
21811 * simplify-rtx.c (simplify_unary_operation): Handle saturating
21813 (simplify_binary_operation): Handle saturating arithmetic codes.
21814 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
21815 not the lowpart subreg.
21816 (ix86_expand_builtin): Return a TImode dummy register instead of 0
21818 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
21820 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21822 * conflict.c (conflict_graph_compute): Free regsets when finished.
21823 * ssa.c (compute_coalesced_reg_partition): Likewise.
21825 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21827 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
21828 every where we allocate a register.
21830 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21832 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
21833 * lcm.c (compute_earliest, compute_farthest): Likewise.
21835 2002-01-11 Janis Johnson <janis187@us.ibm.com>
21837 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
21839 2002-01-11 Janis Johnson <janis187@us.ibm.com>
21841 * doc/rtl.texi (Insns): Fix 2 typos.
21843 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
21845 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
21846 options. Use @table @gcctabopt for MMIX options. Add index
21847 entries for MMIX options. Start new paragraph with first
21848 heading of the machine-dependent options.
21850 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
21853 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
21854 * combine.c (force_to_mode): Same.
21855 * reload1.c (clear_reload_reg_in_use): Same.
21857 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
21859 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
21862 2002-01-11 Andreas Jaeger <aj@suse.de>,
21863 Brad Lucier <lucier@math.purdue.edu>
21865 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
21868 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
21870 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
21871 Protect with IN_LIBGCC.
21872 (LINK_EH_SPEC): Add required trailing space.
21874 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
21876 * c-tree.h: Move function declarations so that they are listed
21877 under the filename which contains them.
21878 (check_identifier, finish_decl_top_level,
21879 lookup_name_current_level_global, shadow_record_fields): Remove.
21881 2002-01-11 Andreas Jaeger <aj@suse.de>
21883 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
21886 2002-01-10 Richard Henderson <rth@redhat.com>
21888 * config/alpha/alpha.c (print_operand): Add 'J'.
21889 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
21890 new operand with the sequence number for the lituse. When splitting
21891 the insns, use gen_movdi_er_high_g and generate a sequence number.
21892 (gen_movdi_er_high_g): Print the sequence number if non-zero.
21894 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
21896 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
21897 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
21899 (altivec_expand_builtin): Same.
21900 (altivec_expand_stv_builtin): New.
21902 * config/rs6000/rs6000.h (rs6000_builtins): Same.
21904 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
21905 ("altivec_lvehx"): New.
21906 ("altivec_lvewx"): New.
21907 ("altivec_lvxl"): New.
21908 ("altivec_lvx"): New.
21909 ("altivec_stvx"): New.
21910 ("altivec_stvebx"): New.
21911 ("altivec_stvehx"): New.
21912 ("altivec_stvewx"): New.
21913 ("altivec_stvxl"): New.
21915 2002-01-10 Richard Henderson <rth@redhat.com>
21917 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
21918 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
21919 care not to delete instructions twice.
21921 2002-01-10 Zack Weinberg <zack@codesourcery.com>
21923 * toplev.c: Don't declare environ (it's not used anywhere).
21924 * configure.in: Don't check for declaration of environ.
21925 * config/i386/xm-mingw32.h: Don't #define environ.
21926 * config.in, configure: Regenerate.
21928 2002-01-10 Zack Weinberg <zack@codesourcery.com>
21930 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
21931 * configure: Regenerate.
21933 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
21934 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
21935 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
21937 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
21938 LIMITS_H_TEST here, not in m68k/x-next.
21939 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
21940 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
21942 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
21943 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
21944 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
21946 * config/i386/x-djgpp: Renamed i386/t-djgpp.
21947 * config/m88k/x-dolph: Renamed m88k/t-dolph.
21948 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
21949 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
21950 replacement of quadlib.asm with quadlib.c.
21952 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
21953 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
21954 config/rs6000/xm-beos.h: Delete file.
21956 * config.gcc: Update to match above changes.
21958 2002-01-10 Kazu Hirata <kazu@hxi.com>
21960 * config/h8300/h8300.h: Fix comment typos.
21961 * config/h8300/h8300.md: Likewise.
21962 * config/h8300/lib1funcs.asm: Likewise.
21964 2002-01-10 Dale Johannesen <dalej@apple.com>
21966 PR optimization/5269
21967 * unroll.c (precondition_loop_p): Make *increment be the correct
21968 sign when n_iterations known, to avoid confusing caller.
21970 2002-01-10 Kazu Hirata <kazu@hxi.com>
21972 * doc/extend.texi (deprecated): Fix a typo.
21974 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
21976 * basic-block.h (update_br_prob_note): Declare.
21977 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
21978 (try_forward_edges): Care negative frequencies and update note.
21979 (outgoing_edges_match): Tweek conditional merging heuristics.
21980 (try_crossjump_to_edge): use update_br_prob_note.
21981 * cfglayout.c (fixup_reorder_chain): Likewise.
21982 * cfrtl.c (update_br_prob_note): New.
21983 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
21985 * i386.c (ix86_decompose_address): Return -1 if address contains
21987 (legitimate_address_p): Require ix86_decompose_address to return 1.
21989 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
21990 (cprop_insn): Likewise.
21992 2002-01-10 Kazu Hirata <kazu@hxi.com>
21994 * toplev.c: Fix formatting.
21995 * tree.c: Likewise.
21996 * tree-dump.c: Likewise.
21997 * unroll.c: Likewise.
21998 * unwind-dw2.c: Likewise.
21999 * unwind-dw2-fde.c: Likewise.
22000 * unwind-dw2-fde-glibc.c: Likewise.
22001 * unwind-sjlj.c: Likewise.
22003 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22005 * doc/invoke.texi: Document PDP-11 options.
22007 2002-01-10 Kazu Hirata <kazu@hxi.com>
22009 * config/h8300/h8300.h: Fix formatting.
22011 2002-01-10 Ira Ruben <ira@apple.com>
22013 Add __attribute__ ((deprecated)).
22014 * extend.texi: Document __attribute__ ((deprecated)).
22015 * invoke.texi: Document -Wno-deprecated-declarations.
22016 * testsuite/g++.dg/other/deprecated.C: New C++ test.
22017 * testsuite/gcc.dg/deprecated.c: New C test.
22018 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
22019 (c_common_attribute_table): Add "deprecated" entry.
22020 (handle_deprecated_attribute): New function.
22021 * c-decl.c (deprecated_states): New enum.
22022 deprecated_state: State of "deprecated" handling.
22023 (start_decl): Set deprecated_state based on attributes.
22024 (grokdeclarator): Test for deprecated uses, propagate attribute.
22025 * c-typeck.c (build_component_ref): Test for deprecated fields.
22026 (build_external_ref): Test for deprecated primaries.
22027 * diagnostic.c (warn_deprecated_use) New function to issue
22028 warnings about __attribute__ ((depricated)) references.
22029 * flags.h (warn_deprecated_decl): Extern declared for
22030 -W[no-]deprecated-declarations option.
22031 * print-tree.c (print_node): Show deprecated flag status.
22032 * toplev.c (warn_deprecated_decl): Defined.
22033 (W_options): Added "deprecated-declaration".
22034 * toplev.h (warn_deprecated_use): Extern declared.
22035 * tree.h (struct tree_common): Define deprecated_flag.
22036 (TREE_DEPRECATED): New macro to access flag.
22037 * cp/call.c (build_call): Test for deprecated calls.
22038 * cp/class.c (add_implicitly_declared_members): Set global
22039 flag to tell grokdeclarator to not issue deprecated warnings.
22040 * cp/cp-tree.h: Add extern for adding_implicit_members.
22041 * cp/decl.c (deprecated_states): New enum.
22042 (start_decl): Set deprecated_state based on attributes.
22043 (grokdeclarator): Test for deprecated uses, propagate attribute.
22044 * cp/lex.c (do_identifier): Test for deprecated primaries.
22045 * cp/typeck.c (build_component_ref): Test for deprecated fields.
22047 2002-01-10 Ira Ruben <ira@apple.com>
22049 Fix to assign attributes to inline member functions.
22050 * cp/decl.c (start_method): Handle attrlist.
22052 2002-01-10 Kazu Hirata <kazu@hxi.com>
22054 * combine.c (expand_field_assignment): Use subreg_lsb().
22056 2002-01-10 David Edelsohn <edelsohn@gnu.org>
22058 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
22059 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
22060 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
22061 Recurse for any operand of AND as long as constant is non-zero.
22063 2002-01-10 Kazu Hirata <kazu@hxi.com>
22065 * config/h8300/h8300.md: Remove constraints from expanders.
22067 2002-01-10 Kazu Hirata <kazu@hxi.com>
22069 * varasm.c: Fix formatting.
22070 * varray.c: Likewise.
22071 * vmsdbgout.c: Likewise.
22072 * xcoffout.c: Likewise.
22074 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
22076 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
22077 update edge probabilities to match.
22079 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22081 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
22083 * doc/languages.texi, doc/sourcebuild.texi: New files.
22084 * doc/configfiles.texi: Make a subsubsection. Update.
22085 * doc/configterms.texi: Add @node. Remove warning that this isn't
22086 instructions for building GCC.
22087 * doc/makefile.texi: Make a subsection.
22088 * doc/gccint.texi: Update.
22090 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
22092 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
22094 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
22096 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
22098 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
22100 * optabs.c (expand_fix): Look for wider integer modes first.
22102 * i386.md (mov?f): Avoid the fake const double trick for medium
22104 (min?f*/max?f*): Prohibit memory operands for i387 variant.
22105 (fop_df_4): Disable for SSE compilation.
22107 2002-01-10 Graham Stott <grahams@redhat.com>
22109 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
22110 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
22112 2002-01-10 Richard Henderson <rth@redhat.com>
22114 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
22116 2002-01-10 Richard Henderson <rth@redhat.com>
22118 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
22119 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
22121 2002-01-10 Kazu Hirata <kazu@hxi.com>
22123 * combine.c (can_combine_p): Fix a comment typo.
22125 2002-01-09 Zack Weinberg <zack@codesourcery.com>
22127 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
22128 empty list correctly. Change loop index $t to $f for
22129 consistency with rest of Makefile.
22131 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
22133 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
22134 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22136 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
22137 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
22138 (altivec_init_builtins): Same.
22139 (altivec_expand_unop_builtin): Return NULL_RTX on error.
22140 (altivec_expand_binop_builtin): Same.
22141 (altivec_expand_ternop_builtin): Same.
22144 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
22145 ("altivec_vctuxs"): Fix typo.
22146 ("altivec_vnmsubfp"): Same.
22147 ("altivec_dssall"): New.
22148 ("altivec_mfvscr"): New.
22149 ("altivec_dss"): New.
22150 ("altivec_lvsl"): New.
22151 ("altivec_lvsr"): New.
22152 ("altivec_dstt"): New.
22153 ("altivec_dstst"): New.
22154 ("altivec_dststt"): New.
22155 ("altivec_dst"): New.
22157 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
22158 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22160 2002-01-09 Richard Henderson <rth@redhat.com>
22162 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
22164 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
22166 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
22168 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
22170 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
22172 2002-01-09 Kazu Hirata <kazu@hxi.com>
22174 * read-rtl.c: Fix formatting.
22175 * real.c: Likewise.
22176 * regclass.c: Likewise.
22177 * regrename.c: Likewise.
22178 * reg-stack.c: Likewise.
22179 * reload1.c: Likewise.
22180 * reload.c: Likewise.
22183 2002-01-09 Kazu Hirata <kazu@hxi.com>
22185 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
22186 to extract items in the expr_list chain.
22188 2002-01-09 Richard Henderson <rth@redhat.com>
22190 * config/vax/vax.c (vax_rtx_cost): Never abort.
22192 * config/vax/vax.h (REAL_ARITHMETIC): Define.
22194 2002-01-09 Jan Hubicka <jh@suse.cz>
22196 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
22198 2002-01-09 Richard Henderson <rth@redhat.com>
22200 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
22201 Unify code from various alternatives.
22203 2002-01-09 Richard Henderson <rth@redhat.com>
22205 * regrename.c (copy_value): Ignore the copy if the source register
22206 is present in the value chain with a narrower mode.
22208 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22210 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
22211 for the c4x target. Also improve layout.
22213 2002-01-09 Richard Henderson <rth@redhat.com>
22215 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
22216 * config/m32r/m32r.md (and ior xor splitters): Swap operands
22217 to match insn patterns.
22219 2002-01-09 Richard Henderson <rth@redhat.com>
22221 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
22222 (copyprop_hardreg_forward_1): Likewise.
22224 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
22226 * pa.md (decrement_and_branch_until_zero): Change predicate for
22227 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
22229 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
22231 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
22232 gets undefined. For Darwin.
22234 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22236 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
22238 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22240 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
22242 2002-01-08 Richard Henderson <rth@redhat.com>
22244 * regrename.c (copy_value): Ignore overlapping copies.
22246 2002-01-08 Richard Henderson <rth@redhat.com>
22248 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
22249 as needed to avoid shared structure.
22251 2002-01-08 Kazu Hirata <kazu@hxi.com>
22253 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
22256 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22258 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
22259 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
22260 documentation of obsolete macros.
22261 * system.h: Poison these macros.
22262 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
22263 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
22264 config/c4x/c4x.h, config/clipper/clipper.h,
22265 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
22266 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
22267 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
22268 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
22269 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
22270 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
22271 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22272 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
22273 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
22274 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22275 config/sparc/sparc.h, config/stormy16/stormy16.h,
22276 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
22277 definitions and commented out definitions of obsolete macros.
22278 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
22279 of MAX_INT_TYPE_SIZE.
22281 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22283 * config/s390/s390.c (s390_preferred_reload_class): Never
22284 return ADDR_REGS if it isn't a subset of the given class.
22285 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
22286 FP_REGS, but all superclasses as well.
22288 * config/s390/s390.c (s390_function_profiler): Fix thinko.
22290 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
22291 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
22292 must not be a const_int.
22294 2002-01-08 Richard Henderson <rth@redhat.com>
22296 * Makefile.in (toplev.o): Depend on options.h.
22297 (gcc.o): Depend on specs.h.
22299 2002-01-08 Jakub Jelinek <jakub@redhat.com>
22301 * expr.c (store_expr): Convert VOIDmode constants back to target's
22304 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22306 * doc/invoke.texi: Markup gcc as @command. Refer to
22307 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
22308 of http://gcc.gnu.org/thanks.html.
22310 2002-01-08 Dale Johannesen <dalej@apple.com>
22312 * config/rs6000/rs6000.md: Add missing int register
22313 target case to movdf_low.
22315 2002-01-08 Zack Weinberg <zack@codesourcery.com>
22317 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
22318 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
22319 (cppinit.o): Depend on except.h.
22320 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
22321 s-specs): New rules.
22323 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
22324 Don't create specs.h/options.h/gencheck.h here. Remove
22325 unnecessary variable settings from last argument of AC_OUTPUT.
22326 * config.in, configure: Regenerate.
22327 * intl.c: Hardcode package name as "gcc".
22329 * cppinit.c: Include except.h.
22330 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
22332 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
22333 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
22334 (!)USING_SJLJ_EXCEPTIONS.
22335 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
22337 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22339 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
22340 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
22341 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
22342 documentation of obsolete macros.
22343 * system.h: Poison these macros.
22344 * config/d30v/d30v.h, config/ns32k/encore.h,
22345 config/stormy16/stormy16.h: Remove definitions and commented out
22346 definitions of obsolete macros.
22348 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
22350 * objc/objc-act.c (handle_class_ref): Mark the declaration of
22351 %sobjc_class_ref_%s as used - to prevent unwanted compiler
22354 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22356 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
22357 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
22358 to insn adjusting stack/frame pointer.
22359 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
22360 accept operands that cause the insn to be non-splittable.
22362 2002-01-08 Graham Stott <grahams@redhat.com>
22364 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
22365 (C_TYPE_FIELDS_VOLATILE): Likewise.
22366 (C_TYPE_BEING_DEFINED): Likewise.
22367 (C_IS_RESERVED_WORD): Likewise.
22368 (C_TYPE_VARIABLE_SIZE): Likewise.
22369 (C_DECL_VARIABLE_SIZE): Likewise.
22370 (C_MISSING_PROTOTYPE_WARNED): Likewise.
22371 (C_SET_EXP_ORIGINAL_CODE): Likewise.
22372 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22374 (C_DECL_ANTICIPATED): Likewise.
22375 (c_build_type_variant): Add parenthesis.
22377 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22379 * gcc.c (option_map): Remove --version.
22380 (process_command): Handle -fversion following the GNU Coding
22381 Standards. Partially addresses PR other/704.
22383 2002-01-08 Graham Stott <grahams@redhat.com>
22385 * combine.c (combine_instructions): Fix typo.
22387 2002-01-08 Graham Stott <grahams@redhat.com>
22389 * debug.h: Use "tree" and "rtx" throughout.
22391 * debug.c: Likewise.
22393 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
22395 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22396 constant pool, use the pool's version of the symbol instead.
22398 2002-01-07 Richard Henderson <rth@redhat.com>
22400 * regrename.c (find_oldest_value_reg): Ignore the value chain if
22401 the original register was copied in a mode with a fewer number of
22402 hard registers than the desired mode.
22403 (copyprop_hardreg_forward_1): Likewise.
22404 (debug_value_data): Fix loop test.
22405 * toplev.c (parse_options_and_default_flags): Reenable
22406 -fcprop-registers at -O1.
22408 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22410 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22411 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
22413 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22416 * config/rs6000/rs6000.md: Add altivec predicate patterns.
22418 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
22420 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22421 (pa_output_function_prologue): Output local label at the beginning of
22422 the prologue when profiling.
22423 (hppa_profile_hook): Use the local label rather than the function label.
22424 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22426 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22428 * config/rs6000/rs6000.c (print_operand): Remove extra space.
22429 (altivec_expand_unop_builtin): Fix thinko.
22430 (altivec_expand_binop_builtin): Same.
22431 (altivec_expand_ternop_builtin): Same.
22432 (altivec_expand_builtin): Same.
22434 2002-01-07 Richard Henderson <rth@redhat.com>
22436 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22438 2002-01-07 Jason Merrill <jason@redhat.com>
22440 * unwind-dw2.c (execute_cfa_program): Use < again.
22442 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22444 * predict.c (combine_predictions_for_insn): Avoid division by zero.
22446 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22448 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22449 Don't allow -1 - x -> ~x simplifications in the first pass.
22451 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22453 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22455 (altivec_expand_binop_builtin): Same.
22456 (altivec_expand_unop_builtin): Same.
22457 (print_operand): Fix typo.
22458 (bdesc_1arg): Add vupk* variants.
22460 * rs6000.h (rs6000_builtins): Add vupk* enums.
22462 * rs6000.md: Add altivec_vupk* variants.
22464 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
22466 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22467 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22468 and last update dates.
22470 2002-01-07 Janis Johnson <janis187@us.ibm.com>
22472 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22474 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
22476 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22477 * config/avr/avr.h (CPP_SPEC): Likewise.
22478 (LINK_SPEC): Likewise.
22479 (CRT_BINUTILS_SPECS): Likewise.
22480 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22481 * doc/invoke.texi (AVR Options): Document them.
22483 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
22485 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22488 2002-01-07 Graham Stott <grahams@redhat.com>
22490 * config/i386/i386.h: Update copyright date.
22491 (HALF_PIC_PTR): Add parenthesis.
22492 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22493 (CONSTANT_ALIGNMENT): Add parenthesis.
22494 (DATA_ALIGNMENT): Likewise.
22495 (LOCAL_ALIGNMENT): Likewise.
22496 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22497 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22498 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22499 (HARD_REGNO_NREGS): Add paranethesis.
22500 (VALID_SSE_REG_MODE): Whitespace.
22501 (VALID_MMX_REG_MODE): Whitespace.
22502 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22503 (ix86_hard_regno_mode_ok): Add parenthesis.
22504 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22505 (RETURN_IN_MEMORY): Whitespace.
22506 (N_REG_CLASSES): Add parenthesis.
22507 (INTEGER_CLASS_P): Add parenthesis and wrap.
22508 (FLOAT_CLASS_P): Likewise.
22509 (SSE_CLASS_P): Likewise.
22510 (MMX_CLASS_P): Likewise.
22511 (MAYBE_INTEGER_CLASS_P): Likewise.
22512 (MAYBE_FLOAT_CLASS_P): Likewise.
22513 (MAYBE_SSE_CLASS_P): Likewise.
22514 (MAYBE_MMX_CLASS_P): Likewise.
22515 (Q_CLASS_P): Likewise.
22516 (GENERAL_REGNO_P): Uppercase macro parameter.
22517 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22518 (FP_REGNO_P): Likewise.
22519 (ANY_FP_REGNO_P): Uppercase macro parameter.
22520 (SSE_REGNO_P): Likewise.
22521 (SSE_REGNO): Likewise.
22522 (SSE_REG_P): Likewise.
22523 (SSE_FLOAT_MODE_P): Likewise.
22524 (MMX_REGNO_P): Likewise.
22525 (MMX_REG_P):Likewise.
22526 (STACK_REG_P): Likewise.
22527 (NON_STACK_REG_P): Likewise.
22528 (STACK_TOP_P): Likewise.
22529 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22530 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22531 (SECONDARY_MEMORY_NEEDED): Likewise.
22532 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22533 (MD_ASM_CLOBBERS): Whitespace and wrap.
22534 (MUST_PASS_IN_STACK): Whitespace and wrap.
22535 (RETURN_POPS_ARGS): Add parenthesis.
22536 (INIT_CUMULATIVE_ARGS): Likewise.
22537 (FUNCTION_ARG): Likewise.
22538 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22539 (SETUP_INCOMING_VARARGS): Likewise.
22540 (BUILD_VA_LIST_TYPE): Add parenthesis.
22541 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22543 (EXPAND_BUILTIN_VA_ARG): Likewise.
22544 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22545 (INITIALIZE_TRAMPOLINE): Add parenthesis.
22546 (INITIAL_ELIMINATION_OFFSET): Likewise.
22547 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22548 (REGNO_OK_FOR_BASE_P): Likewise.
22549 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22550 (REGNO_OK_FOR_DIREG_P): Likewise.
22551 (REG_OK_FOR_INDEX_P): Whitespace.
22552 (REG_OK_FOR_BASE_P): Whitespace.
22553 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22555 (FIND_BASE_TERM): Fix typo.
22556 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
22557 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22558 (SYMBOLIC_CONST; Whitespace.
22559 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
22560 (ENCODE_SECTION_INFO): Whitespace.
22561 (FINALIZE_PIC): Remove do { ... } while (0).
22562 (PROMOTE_MODE): Wrap in do { ... } while (0).
22563 (CONST_COSTS): Whitespace.
22564 (RTX_COSTS): Add paramethesis, whitespace and wrap.
22565 (REGISTER_MOVE_COST): Add parenthesis.
22566 (MEMORY_MOVE_COST): Likewise.
22567 (EXTRA_CC_MODES): Whitespace.
22568 (SELECT_CC_MODE): Add parenthesis and whitespace.
22569 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22570 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22571 (ASM_OUTPUT_LABEL): Add paramethesis.
22572 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22573 (ASM_OUTPUT_REG_POP): Likewise.
22574 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22575 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22577 * config/i386/i386.c: Update copyright.
22578 (CHECK_STACK_LIMIT): Add parenthesis.
22579 (AT_BP): Uppercase macro parameter.
22580 (x86_64_int_parameter_registers): Constify.
22581 (x86_64_int_return_registers): Likewise.
22582 (ix86_compare_op0): Use rtx.
22583 (construct_container): Constify INTREG parameter.
22584 (function_arg): Use rtx.
22586 * diagnostic.h: Update copyright date.
22587 (output_buffer_state): Add parenthesis.
22588 (output_buffer_format_args): Likewise.
22590 * combine.c (combine_instructions): Replace XEXP (links, 0)
22593 2002-01-06 H.J. Lu <hjl@gnu.org>
22595 * cfgcleanup.c (thread_jump): Fix 2 typos.
22597 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
22599 * config.gcc: Add support for --enable-altivec.
22601 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22603 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22605 2002-01-06 Jakub Jelinek <jakub@redhat.com>
22607 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22608 __objc_class_name_*.
22610 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22612 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22614 2002-01-06 Richard Henderson <rth@redhat.com>
22616 * reorg.c (emit_delay_sequence): Remove death notes, not merely
22617 nop them out. Increment label reference count for REG_LABEL.
22618 (fill_slots_from_thread): Frob label reference count around
22619 delete_related_insns.
22621 2002-01-05 Richard Henderson <rth@redhat.com>
22623 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22626 2002-01-05 Richard Henderson <rth@redhat.com>
22628 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22629 * integrate.c (output_inline_function): Likewise.
22630 * toplev.c (rest_of_compilation): Do it here instead. Move call
22631 to remove_unnecessary_notes after emitting abstract instance.
22632 Force an emitted nested function to have its parent emited as well.
22633 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22635 (rtl_for_decl_location): Do not look at reload data structures
22636 before reload has run.
22638 2002-01-05 Kazu Hirata <kazu@hxi.com>
22640 * cse.c: Fix formatting.
22641 * dwarf2asm.c: Likewise.
22642 * dwarf2out.c: Likewise.
22643 * explow.c: Likewise.
22644 * expmed.c: Likewise.
22645 * function.c: Likewise.
22646 * gcov.c: Likewise.
22647 * gencheck.c: Likewise.
22648 * genrecog.c: Likewise.
22649 * ggc-common.c: Likewise.
22650 * ggc-page.c: Likewise.
22651 * global.c: Likewise.
22653 2002-01-05 Kazu Hirata <kazu@hxi.com>
22655 * combine.c: Fix formatting.
22657 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
22660 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22662 2002-01-05 David Edelsohn <edelsohn@gnu.org>
22664 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22665 as 1 for __powerpc64__ as well.
22667 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22669 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22672 2002-01-05 Daniel Berlin <dan@dberlin.org>
22674 * lcm.c: Revert change, due to performance regression it causes on
22675 SPEC because it's slightly more conservative (sigh, I hate
22678 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
22680 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22682 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
22684 * doc/cppinternals.texi: Update.
22686 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
22688 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22689 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22691 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
22692 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22693 kludge for pre-october-14th mmix versions to handle new-found bug
22694 with PUSHJ/PUSHGO and the register stack.
22695 * config/mmix/mmix.h (struct machine_function): Rename member
22696 has_call_value_without_parameters to has_call_without_parameters.
22697 All referers changed.
22698 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22699 TARGET_MASK_BRANCH_PREDICT): New macros.
22700 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22701 -mno-reg-stack-fill-bug-workaround.
22702 * config/mmix/mmix.md ("call"): Set struct machine member
22703 has_call_without_parameters.
22705 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
22707 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22709 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
22711 * cfgcleanup.c: Include tm_p.h
22712 (mark_effect): Fix handling of hard register; fix handling of SET
22714 2002-01-04 Kazu Hirata <kazu@hxi.com>
22716 * config/h8300/h8300.md (anonymous patterns): Check that
22717 operands are registers before using REGNO on them.
22719 2002-01-03 Roland McGrath <roland@frob.com>
22721 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22723 2002-01-04 Jakub Jelinek <jakub@redhat.com>
22725 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22726 * c-common.h (genrtl_expr_stmt_value): Likewise.
22727 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22728 (expand_expr_stmt_value): Add maybe_last argument.
22729 Don't warn about statement with no effect if it is the last statement
22730 in expression statement.
22731 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22732 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22733 expand_expr_stmt_value.
22734 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22735 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22736 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22737 as maybe_last to expand_expr_stmt_value.
22739 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
22741 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22742 be passed in, do not build it.
22743 (c_begin_if_stmt): New function.
22744 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22745 * c-common.h (c_expand_start_cond): Update prototype.
22746 (c_begin_if_stmt): Prototype new function.
22747 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22748 * c-parse.in (if_prefix): Use c_begin_if_stmt,
22749 c_begin_while_stmt and c_finish_while_stmt_cond.
22751 2002-01-04 William Cohen <wcohen@redhat.com>
22753 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22754 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22755 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22756 * config/pa/som.h (ASM_FILE_START): Likewise.
22758 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
22760 * lcm.c: Include df.h.
22761 Add available_transfer_function prototype.
22762 (compute_available): Rework to use iterative dataflow framework.
22763 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22764 with bb_info in df.h
22765 (available_transfer_function): New function.
22767 * Makefile.in (lcm.o): add df.h to dependencies.
22769 2002-01-04 Richard Henderson <rth@redhat.com>
22771 * config/alpha/alpha.c (some_operand): Accept HIGH.
22772 (input_operand): Likewise; accept simple references to globals.
22773 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22774 (alpha_const_double_ok_for_letter_p): Likewise.
22775 (alpha_extra_constraint): Likewise.
22776 (alpha_preferred_reload_class): Likewise. Do not force
22777 symbolic constants to memory.
22778 (alpha_legitimate_address_p): Accept simple references
22779 to small_symbolic_operand.
22780 (alpha_legitimize_address): New arg scratch. Be prepared to be
22781 called when no_new_pseudos. Emit simple symbolic references.
22782 Split integers into low, high, and rest.
22783 (alpha_expand_mov): Use alpha_legitimize_address.
22784 (some_small_symbolic_mem_operand): New.
22785 (split_small_symbolic_mem_operand): New.
22786 * config/alpha/alpha-protos.h: Update.
22787 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
22788 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
22789 (EXTRA_CONSTRAINT): Likewise.
22790 (PREFERRED_RELOAD_CLASS): Likewise.
22791 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
22792 (PREDICATE_CODES): Update.
22793 * config/alpha/alpha.md: New post-reload splitters to convert
22794 simplfied symbolic operands to the form that references $29.
22795 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
22796 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
22798 2002-01-03 Richard Henderson <rth@redhat.com>
22800 * local-alloc.c (function_invariant_p): Update commentary.
22802 2002-01-04 H.J. Lu <hjl@gnu.org>
22804 * toplev.c (rest_of_compilation): Fix a typo when calling
22807 2002-01-03 Kazu Hirata <kazu@hxi.com>
22809 * c-common.c: Fix formatting.
22810 * diagnostic.c: Likewise.
22811 * doloop.c: Likewise.
22812 * dwarf2out.c: Likewise.
22814 2002-01-03 Kazu Hirata <kazu@hxi.com>
22816 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
22817 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
22819 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22821 * cpperror.c: Update comments and copyright.
22822 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
22823 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
22825 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
22827 * collect2.c (main): Use strcmp when testing for "-shared".
22829 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22831 * cppmacro.c: Don't include intl.h. Update comments.
22832 (new_number_token): Allocate enough buffer for 64-bit unsigned
22833 integers; update prototype.
22834 * cppmain.c: Update comments.
22836 2002-01-03 William Cohen <wcohen@redhat.com>
22838 * function.h (struct function): Add profile.
22839 (current_function_profile): New.
22840 doc/extend.texi: Update documentation.
22841 * final.c (final_start_function): Use current_function_profile
22842 instead of profile_flag.
22843 (profile_after_prologue): Likewise.
22844 * function.c (expand_function_start): Likewise.
22845 (expand_function_start): Likewise.
22846 * config/alpha/alpha.c (direct_call_operand):
22847 (alpha_does_function_need_gp): Likewise.
22848 (alpha_expand_prologue): Likewise.
22849 * config/arm/arm.c (arm_expand_prologue): Likewise.
22850 thumb_expand_prologue: Likewise.
22851 * config/d30v/d30v.c (d30v_stack_info): Likewise.
22852 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
22853 (fr30_expand_prologue): Likewise.
22854 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
22855 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
22856 * config/i386/i386.h (FINALIZE_PIC): Likewise.
22857 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
22858 * config/i960/i960.c (i960_output_function_prologue): Likewise.
22859 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
22860 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
22861 (m32r_expand_prologue): Likewise.
22862 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
22863 (m88k_expand_prologue): Likewise.
22864 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
22865 * config/mips/mips.c (compute_frame_size): Likewise.
22866 (mips_expand_prologue): Likewise.
22867 (mips_can_use_return_insn): Likewise.
22868 * config/pa/elf.h (ASM_FILE_START): Likewise.
22869 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22870 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22871 * config/pa/som.h (ASM_FILE_START): Likewise.
22872 * config/romp/romp.c (romp_using_r14): Likewise.
22873 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
22874 (rs6000_stack_info): Likewise.
22875 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22876 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
22877 * config/v850/v850.c (compute_register_save_size): Likewise.
22879 2002-01-03 Jakub Jelinek <jakub@redhat.com>
22881 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
22882 gen_lowpart_common fails, use gen_lowpart_SUBREG.
22884 2002-01-03 Turly O'Connor <turly@apple.com>
22886 * darwin.c (machopic_output_possible_stub_label): Don't generate
22887 stub routines for pseudo-stubs which we've just defined.
22889 2002-01-03 Kazu Hirata <kazu@hxi.com>
22891 * builtins.c: Fix formatting.
22892 * c-typeck.c: Likewise.
22893 * combine.c: Likewise.
22894 * expr.c: Likewise.
22895 * loop.c: Likewise.
22897 2002-01-03 Andreas Schwab <schwab@suse.de>
22899 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
22900 and return true if _cpp_push_next_buffer pushed a new include
22902 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
22903 _cpp_pop_file_buffer did not push a new file.
22904 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
22906 2002-01-02 Eric Christopher <echristo@redhat.com>
22908 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
22909 FIND_REG_INC_NOTE call. Update copyright.
22910 * loop.c (canonicalize_condition): Ditto.
22911 * reorg.c (delete_scheduled_jump): Ditto.
22913 2002-01-03 Kazu Hirata <kazu@hxi.com>
22915 * gcse.c: Fix formatting.
22917 2002-01-03 Graham Stott <grahams@redhat.com>
22919 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
22920 forward defs for struct tags rtx_def, union_tree, rtvec_def
22921 also output corresponding typedefs for rtx, tree, and rtvec.
22923 * system.h: Move forward defs for struct tags rtx_def, union_tree,
22924 rtvec_def along with corresponding typedefs for rtx, tree, and
22925 rtvec to config.h, hconfig.h, tconfig.h.
22927 2002-01-03 Graham Stott <grahams@redhat.com>
22929 * tree.h: Update copyright date.
22930 (IS_EXPR_CODE_CLASS): Add parenthesis.
22931 (TREE_SET_CODE): Add whitespace.
22932 (TREE_CHECK): Add parenthesis.
22933 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
22934 (CST_OR_CONSTRUCTOR_CHECK):
22935 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
22936 (TREE_SYMBOL_REFERENCED): Whitespace.
22937 (INT_CST_LT): Likewise.
22938 (INT_CST_LT_UNSIGNED): Likewise.
22939 (tree_real_cst): Unwrap comment.
22940 (tree_string): Likewise.
22941 (tree_complex): Likewise.
22942 (IDENTIFIER_POINTER): correct cast.
22943 (SAVE_EXPR_CONTEXT): Whitespace.
22944 (EXPR_WFL_FILENAME_NODE): Likewise.
22945 (EXPR_WFL_FILENAME): Remove parenthesis.
22946 (DECL_ORIGIN): Add parenthesis.
22947 (DECL_FROM_INLINE): Use NULL_TREE.
22948 (build_int_2): Whitespace.
22949 (build_type_variant): Add parenthesis.
22951 * gcc/jcf-parse.c: Update copyright date.
22952 (yyparse): Constify resource_filename.
22954 2002-01-03 Graham Stott <grahams@redhat.com>
22956 * rtl.h: Update copyright date.
22957 (RTL_CHECK1): Wrap long line.
22958 (RTL_CHECK2): Likewise.
22959 (RTL_CHECKC1): Wrap long line and whitespace.
22960 (RTL_CHECKC2): Likewise.
22961 (XWINT): Whitespace.
22967 (XBITMAP): Likewise.
22969 (XBBDEF): Likewise.
22971 (X0WINT): Likewise.
22973 (X0UINT): Likewise.
22977 (X0MODE): Likewise.
22978 (X0BITMAP): Likewise.
22979 (X0TREE): Likewise.
22980 (X0BBDEF): Likewise.
22981 (X0ADVFLAGS): Likewise.
22982 (X0CSELIB): Likewise.
22983 (X0MEMATTR): Likewise.
22984 (XCWINT): Likewise.
22986 (XCUINT): Likewise.
22990 (XCMODE): Likewise.
22991 (XCBITMAP): Likewise.
22992 (XCTREE): Likewise.
22993 (XCBBDEF): Likewise.
22994 (XCADVFLAGS): Likewise.
22995 (XCCSELIB): Likewise.
22996 (XC2EXP): Likewise.
22997 (INSN_UID): Likewise.
22998 (PREV_INSN): Likewise.
22999 (PATTERN): Likewise.
23000 (INSN_CODE): Likewise.
23001 (PUT_REG_NOTE_KIND): Likewise.
23002 (CODE_LABEL_NUMBER): Likewise.
23003 (NOTE_SOURCE_FILE): Likewise.
23004 (NOTE_BLOCK): Likewise.
23005 (NOTE_EH_HANDLER): Likewise.
23006 (NOTE_RANGE_INFO): Likewise.
23007 (NOTE_LIVE_INFO): Likewise.
23008 (NOTE_BASIC_BLOCK): Likewise.
23009 (NOTE_EXPECTED_VALUE): Likewise.
23010 (NOTE_LINE_NUMBER): Likewise.
23011 (LABEL_NAME): Likewise.
23012 (LABEL_NUSES): Likewise.
23013 (LABEL_ALTERNATE_NAME): Likewise.
23014 (ADDRESSOF_DECL): Likewise.
23015 (JUMP_LABEL): Likewise.
23016 (LABEL_NEXTREF): Likewise.
23018 (ORIGINAL_REGNO: Likewise.
23019 (HARD_REGISTER_NUM_P): Add parenthesis.
23020 (SUBREG_REG): Whitespace.
23021 (SUBREG_BYTE): Likewise.
23022 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
23023 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
23024 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
23025 (ASM_OPERANDS_INPUT_VEC): Likewise.
23026 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
23027 (ASM_OPERANDS_INPUT): Likewise.
23028 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
23029 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
23030 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
23031 (ASM_OPERANDS_INPUT_MODE): Likewise.
23032 (ASM_OPERANDS_SOURCE_FILE): Likewise.
23033 (ASM_OPERANDS_SOURCE_LINE): Likewise.
23034 (MEM_SET_IN_STRUCT_P): Minor reformat.
23035 (TRAP_CONDITION): Whitespace.
23036 (TRAP_CODE): Likewise.
23037 (COND_EXEC_TEST): Likewise.
23038 (COND_EXEC_CODE): Likewise.
23039 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
23040 (PHI_NODE_P): Add parenthesis.
23041 (plus_constant): Whitespace and add parenthesis.
23043 2002-01-03 Kazu Hirata <kazu@hxi.com>
23045 * config/avr/avr.c: Fix comment typos.
23046 * config/c4x/c4x.md: Likewise.
23047 * config/dsp16xx/dsp16xx.h: Likewise.
23048 * config/dsp16xx/dsp16xx.md: Likewise.
23049 * config/i386/i386.md: Likewise.
23050 * config/ia64/ia64.c: Likewise.
23051 * config/m32r/m32r.h: Likewise.
23052 * config/m68hc11/m68hc11.md: Likewise.
23053 * config/mmix/mmix.c: Likewise.
23054 * config/mn10200/mn10200.c: Likewise.
23055 * config/romp/romp.c: Likewise.
23056 * config/sh/sh.c: Likewise.
23057 * config/stormy16/stormy16.c: Likewise.
23058 * config/stormy16/stormy16.h: Likewise.
23059 * config/stormy16/stormy16.md: Likewise.
23061 2002-01-03 Graham Stott <grahams@redhat.com>
23063 * loop.h: Update copyright date.
23064 (LOOP_MOVABLES): Fix typo.
23065 (LOOP_REGS): Likewise.
23066 (LOOP_IVS): Likewise.
23068 2002-01-03 Graham Stott <grahams@redhat.com>
23070 * cppinit.c: Update copyright date.
23071 Don't include output.h
23072 * Makefile.in: Update copyright date.
23075 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
23078 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
23079 (-pthread) Add to RS/6000 options.
23081 2002-01-02 Kazu Hirata <kazu@hxi.com>
23083 * except.c: Fix comment typos.
23084 * loop.c: Likewise.
23085 * varasm.c: Likewise.
23086 * doc/tm.texi: Fix a typo.
23088 2002-01-02 Jakub Jelinek <jakub@redhat.com>
23090 * c-typeck.c (output_init_element): Allow initializing static storage
23091 duration objects with compound literals.
23093 2002-01-02 Richard Henderson <rth@redhat.com>
23095 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
23098 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23100 * gcc.c (default_compilers): Const-ify.
23101 * mips-tdump.c (stab_names): Likewise.
23102 * mips-tfile.c (map_coff_types, map_coff_storage,
23103 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
23104 pseudo_ops_t, pseudo_ops): Likewise.
23105 * protoize.c (default_include): Likewise
23107 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
23108 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
23109 Add array size in declaration.
23110 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
23111 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
23112 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
23113 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
23114 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
23115 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
23116 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
23117 emtens, make_nan): Const-ify.
23118 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
23119 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
23121 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
23123 * config.gcc (ia64-*-*): Set extra_headers.
23124 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
23125 * config/alpha/t-osf: Remove.
23126 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
23128 2002-01-02 David Edelsohn <edelsohn@gnu.org>
23130 * config/rs6000/t-aix43: Revert previous change.
23132 2002-01-02 Jason Merrill <jason@redhat.com>
23134 * c-decl.c (c_expand_body): Call outlining_inline_function when
23135 emitting an inline function out of line.
23137 2002-01-02 Richard Henderson <rth@redhat.com>
23139 * dwarf2out.c (limbo_die_node): Add created_for member.
23140 (new_die): New argument created_for. Update all callers.
23141 (mark_limbo_die_list): New.
23142 (dwarf2out_init): Register limbo_die_list as a root.
23143 (dwarf2out_finish): Force insert limbo dies into their function
23146 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
23149 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
23151 2002-01-02 Kazu Hirata <kazu@hxi.com>
23153 * config/h8300/fixunssfsi.c: Update copyright.
23156 * config/h8300/h8300.c: Update copyright.
23157 Eliminate warnings.
23159 2002-01-02 Kazu Hirata <kazu@hxi.com>
23161 * config/romp/romp.c: Fix comment formatting.
23162 * config/romp/romp.h: Likewise.
23163 * config/romp/romp.md: Likewise.
23164 * config/s390/s390.c: Likewise.
23165 * config/stormy16/stormy16.c: Likewise.
23166 * config/stormy16/stormy16.h: Likewise.
23168 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
23170 * c-common.h (genrtl_expr_stmt_value): Declare.
23171 * c-semantics.c (genrtl_goto_stmt): Redirect to...
23172 (genrtl_goto_stmt_value): ... this new function. Pass new
23173 argument down to expand_expr_stmt_value, taking
23174 TREE_ADDRESSABLE into account.
23175 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
23176 STMT_EXPR as addressable, i.e., one whose result we want.
23177 * expr.c (expand_expr): Don't save expression statement value
23178 of labeled_blocks or loop_exprs.
23179 * stmt.c (expand_expr_stmt): Redirect to...
23180 (expand_expr_stmt_value): ... this new function. Use new
23181 argument to tell whether to save expression value.
23182 (expand_end_stmt_expr): Reset last_expr_type and
23183 last_expr_value if we don't have either.
23184 * tree-inline.c (declare_return_variable): Mark its use
23185 statement as addressable.
23186 * tree.h: Document new use of TREE_ADDRESSABLE.
23187 (expand_expr_stmt_value): Declare.
23189 2002-01-01 Tom Rix <trix@redhat.com>
23191 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
23192 rs6000_emit_allocate_stack.
23194 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
23196 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
23197 ${srcdir}/ginclude/ to every entry in extra_headers.
23198 * configure: Regenerate.
23199 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
23200 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
23201 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
23202 * ginclude/proto.h: Rename to config/convex/proto.h.
23204 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23206 * attribs.c (handle_vector_size_attribute): Use host_integerp
23207 and tree_int_cst; remove warnings.
23208 * caller-save.c (insert_restore): Add cast to get rid of warning.
23209 (insert_save): Likewise.
23210 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
23211 * regmove.c (find_matches): Add temporary var to kill a warning.
23213 2002-01-01 Douglas B Rupp <rupp@gnat.com>
23215 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
23216 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
23217 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
23218 (vms-dwarf2eh.o): Add Makefile rule.
23219 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
23220 * config/alpha/vms-dwarf2eh.asm: New file.
23222 * gcc.c (delete_if_ordinary): Delete all versions.
23224 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
23226 * config/mmix/mmix.md: Update FIXME to not mention
23228 (MMIX_rJ_REGNUM): New define_constants constant.
23229 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
23230 "*movdicc_real"): Adjust contraints formatting.
23231 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
23232 for branch prediction.
23233 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
23235 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
23236 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
23237 number. Delete related FIXMEs.
23238 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
23239 from number to MMIX_rJ_REGNUM.
23240 (TARGET_MASK_BRANCH_PREDICT): New.
23241 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
23242 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
23243 value. Add -mbranch-predict and -mno-branch-predict.
23244 (TARGET_VERSION): Drop date.
23245 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
23246 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
23247 for finding out global symbols.
23248 (mmix_asm_output_labelref): Revert condition for global symbol.
23249 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
23250 (mmix_print_operand_punct_valid_p): A '+' is valid.
23252 See ChangeLog.6 for earlier changes.