1 2002-07-23 Paul Koning <pkoning@equallogic.com>
3 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
4 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
5 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
6 (TARGET_G_FLOAT): Default to 0 if not defined.
7 (ieeetoe): New, common routine to convert target format floats
9 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
11 (e113toe): Change to use ieeetoe.
13 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
15 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
17 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
18 (e64toe): Remove special cases for DEC and IBM. Remove support for
19 ARM_EXTENDED_IEEE_FORMAT.
20 (e24toe): Remove special cases for DEC.
21 (significand_size): Simplify. Indent.
22 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
23 (etoieee, toieee): New.
24 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
25 etoieee and toieee for IEEE arithmetic.
27 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
29 * doc/extend.texi: Say ISO C90, not ISO C89.
30 * doc/invoke.texi: Likewise.
31 * doc/standards.texi: Likewise.
33 2002-07-23 Steve Ellcey <sje@cup.hp.com>
35 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
36 Fix permutation of conversion and plus/mult.
37 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
38 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
39 (expand_builtin_strncpy) Ditto.
40 (expand_builtin_memset) Ditto.
42 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
45 * c-common.c (c_sizeof_or_alignof_type): New function.
46 (c_alignof): Remove definition.
47 * c-common.h (c_sizeof, c_alignof): Define as macros.
48 (c_sizeof_or_alignof_type): Declare.
49 (my_friendly_assert): Moved from cp/cp-tree.h
50 * c-typeck.c (c_sizeof): Remove definition.
52 2002-07-23 Jan Hubicka <jh@suse.cz>
54 * gcse.c (try_replace_reg): Use num_changes_pending.
55 * recog.c (num_changes_pending): New function.
56 (validate_replace_src): Use validate_repalce_src_group.
57 (validate_replace_src_group): New.
58 * recog.h (validate_repalce_src_group): New.
59 (num_changes_pending): Likewise.
61 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
63 * calls.c (emit_library_call_value_1): If
64 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
65 libcall, const call nor pure call.
67 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
69 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
71 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
73 * vmsdbgout.c (SECTION_ASM_OP): Remove.
75 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
77 * config/i386/i386.c (AT_BP): Remove.
79 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
81 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
83 * gcse.c: Don't define obstack_chunk_free.
84 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
85 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
86 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
87 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
88 Don't define obstack macros.
90 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
93 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
94 ASM_OPERANDS instructions.
96 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
99 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
100 constant addresses only on 68HC12.
102 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
104 * cppfiles.c (stack_include_file): Correct test of whether
105 a dependency should be output.
107 2002-07-22 David Edelsohn <edelsohn@gnu.org>
109 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
111 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
113 * arm.md (movqi): If optimizing and we can create pseudos, use
114 a ZERO_EXTEND to load from memory, then copy the result into the
116 (movhi): Likewise, but only for ARMv4.
118 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
120 * ssa-ccp.c (PHI_PARMS): Remove.
122 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
124 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
125 on big-endian targets.
127 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
129 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
130 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
131 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
132 New formatting macros.
134 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
136 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
138 * rtlanal.c (subreg_regno_offset): Return correct offset for
139 big endian paradoxical subregs.
141 * optabs.c (expand_vector_unop): Don't expand using sub_optab
142 if we got the wrong mode.
144 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
145 * genrecog.c (write_switch, write_cond): Use it.
146 * genemit.c (gen_exp): Likewise.
148 2002-07-22 Jakub Jelinek <jakub@redhat.com>
150 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
152 2002-07-22 Jakub Jelinek <jakub@redhat.com>
154 * c-decl.c (build_compound_literal): Defer compound literal decls
155 until until file end to emit them only if they are actually used.
157 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
159 * ra-build.c (check_conflict_numbers): Hide unused function.
160 (livethrough_conflicts_bb): Avoid automatic aggregate
162 (parts_to_webs_1): Avoid `U' integer constant modifier.
163 (conflicts_between_webs): Wrap a variable in the macro controlling
165 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
166 (dump_igraph, dump_graph_cost): Avoid string concatenation
167 (dump_static_insn_cost): Avoid automatic aggregate
169 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
171 (dump_cost): Avoid string concatenation
173 2002-07-21 Richard Henderson <rth@redhat.com>
175 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
176 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
178 2002-07-21 Richard Henderson <rth@redhat.com>
180 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
181 that are not unrolled completely.
183 2002-07-21 Richard Henderson <rth@redhat.com>
185 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
186 * loop.c (strength_reduce): Update.
187 * toplev.c (rest_of_compilation): Do unrolling in the first
188 loop pass, not the second.
190 2002-07-21 Richard Henderson <rth@redhat.com>
192 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
193 when flag_argument_noalias == 2.
194 * alias.c (nonoverlapping_memrefs_p): Handle that.
195 * print-rtl.c (print_mem_expr): Likewise.
197 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
199 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
200 instead of __negdi2 directly.
202 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
204 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
205 * function.c (SYMBOL__MAIN): Remove definition.
206 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
207 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
208 * profile.c (GCOV_INDEX_TO_BB): Remove.
209 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
210 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
212 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
214 * c-lex.c (GET_ENVIRONMENT): Remove.
215 * collect2.c (GET_ENV_PATH_LIST): Remove.
216 (prefix_from_env): Use GET_ENVIRONMENT.
217 * cppinit.c (GET_ENV_PATH_LIST): Remove.
218 (init_standard_includes): Use GET_ENVIRONMENT.
219 * defaults.h (GET_ENVIRONMENT): Define here if not already.
220 * gcc.c (GET_ENV_PATH_LIST): Remove.
221 (make_relative_prefix, process_command): Update.
222 * protoize.c (GET_ENV_PATH_LIST): Remove.
223 (do_processing): Update.
225 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
227 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
228 (grokdeclarator): Likewise.
229 * c-format.c (C_STD_NAME): Likewise.
230 * c-lex.c (interpret_integer): Likewise.
231 * c-typeck.c (build_array_ref): Likewise.
232 * cpplex.c (_cpp_lex_direct): Likewise.
233 * toplev.c (documented_lang_options): Likewise.
235 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
237 * c-format.c (T99_I, T99_UI): Remove.
239 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
241 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
243 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
245 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
248 2002-07-21 Andreas Jaeger <aj@suse.de>
250 * reload1.c (fixup_abnormal_edges): Remove unused variable.
252 2002-07-21 Bernd Schmidt <bernds@redhat.com>
254 Improvements for the ifcvt pass from Michael Meissner, with patches
255 by Richard Sandiford <rsandifo@redhat.com>
256 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
257 * ifcvt.c (cond_exec_changed_p): New static variable.
258 (last_active_insn): New function, renamed from last_active_insn_p
259 and changed to return the last active insn in a basic block. All
261 (block_fallthru): New function.
262 (cond_exec_process_insns): New argument CE_INFO. Pass it to
263 IFCVT_MODIFY_INSN. All callers updated.
264 Return false if START or END are NULL.
265 Handle case where we're processing an insn that is already
268 (noce_process_if_block): CE_INFO argument rather than
269 multiple args containing the involved basic blocks. All callers
271 (process_if_block, merge_if_block, find_if_block,
272 cond_exec_process_if_block): Likewise.
274 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
276 Use new function last_active_insn to simplify some code.
277 New code to handle multiple tests.
278 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
279 cond_exec_changed_p to TRUE.
281 (process_if_block): New code to handle multiple tests.
282 (merge_if_block): Likewise.
283 (find_if_header): New arg PASS. Changed to return the currently
284 processed basic block or NULL instead of true/false. All callers
286 Call IFCVT_INIT_EXTRA_FIELDS.
287 (block_jumps_and_fallthru_p): New function.
288 (find_if_block): Discover opportunities to convert multiple tests.
289 Add additional debugging output.
290 Update the ce_info structure before returning.
292 (if_convert): Run multiple passes of if-conversion.
293 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
294 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
295 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
298 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
300 * gcse.c: Include cselib.h
301 (constptop_register): Break out from ...
302 (cprop_insn): ... here; kill basic_block argument.
303 (do_local_cprop, local_cprop_pass): New functions.
304 (one_cprop_pass): Call local_cprop_pass.
306 2002-07-20 Roger Sayle <roger@eyesopen.com>
308 * simplify-rtx.c (simplify_relational_operation): Optimize
309 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
311 2002-07-20 Michae Matz <matz@suse.de>
313 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
315 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
317 * cppexp.c (struct op): Add token pointer.
318 (check_promotion, CHECK_PROMOTION): New.
320 (_cpp_parse_expr): Update, use token pointer of struct op.
321 (reduce): Warn about change of sign owing to promotion.
322 * cppinit.c (cpp_handle_option): New warning if -Wall.
323 * cpplib.h (struct cpp_options): New member.
325 2002-07-19 David Edelsohn <edelsohn@gnu.org>
327 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
328 fpu list. Separate Power4 compare and delayed_compare. Correct
330 (fix_truncdfsi2_internal): Restore FPR preference.
331 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
332 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
334 2002-07-19 Momchil Velikov <velco@fadata.bg>
336 * reload1.c (reload_as_needed): Duplicate oldpat.
338 2002-07-20 Alan Modra <amodra@bigpond.net.au>
341 * loop.h (struct loop_info): Add "preconditioned".
342 * unroll.c (unroll_loop): Set it.
343 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
345 2002-07-19 Zack Weinberg <zack@codesourcery.com>
347 * rtl.def (CODE_LABEL): Remove slot 8.
348 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
349 (LABEL_ALTERNATE_NAME): Delete.
350 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
351 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
353 * final.c (output_alternate_entry_point): New.
354 (final_scan_insn): Use it instead of
355 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
356 of a case label being an alternate entry point.
358 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
359 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
360 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
362 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
364 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
365 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
366 * doc/tm.texi: Delete documentation of
367 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
369 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
371 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
372 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
374 (STARTFILE_SPEC): Define.
375 (ENDFILE_SPEC): Define.
377 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
378 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
380 * config/mips/iris6-o32-gas.h: New file.
381 * config.gcc (mips-sgi-irix6*o32): Use it.
383 * config/mips/t-iris5-gas: New file.
384 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
386 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
388 * cppexp.c (ALWAYS_EVAL): Remove.
389 (optab, reduce): Always evaluate.
390 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
391 only if not skipping evaluation.
393 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
395 * config/avr/avr.c (debug_hard_reg_set): Remove.
397 2002-07-19 Chris Demetriou <cgd@broadcom.com>
399 * gcc.c (cpp_options): Include "%1" (cc1_spec).
401 2002-07-19 Richard Henderson <rth@redhat.com>
403 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
405 2002-07-19 Alan Modra <amodra@bigpond.net.au>
407 * prefix.c (update_path): Don't zap single `.' path components
408 unless followed by another `.' and fix typo last patch.
410 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
412 * cppexp.c (cpp_num_mul): Remove unused parameter.
413 (UNARY, BINARY, OTHER, binary_handler): Remove.
416 (reduce): Refactor to a large switch, don't use a function
419 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
421 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
423 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
425 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
426 (sh_expand_binop_v2sf): Likewise.
427 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
428 (int_gpr_dest, trunc_hi_operand): New functions.
429 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
431 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
432 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
433 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
434 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
435 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
436 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
437 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
438 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
439 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
440 (movsf_ie+1): Likewise.
441 (loaddi_trunc): Use int_gpr_dest predicate.
442 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
443 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
444 (casesi_worker_0+[12], casesi_worker): Likewise.
445 (shcompact_preserve_incoming_args): Likewise.
446 (mov_nop): Use any_register_operand predicate.
447 (mperm_w0): Use trunc_hi_operand predicate.
449 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
451 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
452 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
455 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
457 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
459 2002-07-18 Richard Henderson <rth@redhat.com>
462 * ifcvt.c (noce_get_condition): Make certain that the condition
465 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
467 * sh.c (barrier_align, push): Shut up compiler warnings.
468 (initial_elimination_offset,sh_media_init_builtins): Likewise.
469 (reg_no_subreg_operand): Delete.
471 2002-07-17 Bo Thorsen <bo@suse.de>
473 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
474 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
475 (STARTFILE_SPEC): Remove hardcoded library paths.
476 (ENDFILE_SPEC): Likewise.
478 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
480 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
482 * gcse.c (try_replace_reg): Do not return false positives.
484 2002-07-18 Alan Modra <amodra@bigpond.net.au>
486 * prefix.c: (update_path): Strip ".." components when prior dir
487 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
489 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
490 (ASM_OUTPUT_REG_POP): Likewise.
492 2002-07-18 Alan Modra <amodra@bigpond.net.au>
494 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
495 adjustments to first_reg for profiling case.
496 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
497 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
498 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
499 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
500 (ASM_OUTPUT_REG_POP): Define.
501 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
502 (ASM_OUTPUT_REG_POP): Undef.
504 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
506 * cpplib.c (do_sccs): Handle #sccs on all systems.
507 * system.h (SCCS_DIRECTIVE): Poison.
508 * config/darwin.h, config/freebsd.h, config/netbsd.h,
509 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
510 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
511 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
512 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
513 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
514 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
515 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
516 Remove all references to SCCS_DIRECTIVE.
517 * doc/cpp.texi, doc/tm.texi: Update.
519 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
521 * regrename.c (maybe_mode_change): New function.
522 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
524 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
526 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
527 suppress addition when either ct or cf are zero.
529 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
530 Glen Nakamura <glen@imodulo.com>
533 * loop.c (loop_givs_rescan): Explicitly delete the insn that
534 sets a non-replaceable giv after issuing the new one.
536 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
538 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
539 eval_token): Clarify and correct use of "bool" variables.
540 * cpplib.h (struct cpp_options): Similarly.
541 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
542 * cpptrad.c (recursive_macro): Similarly.
544 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
546 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
549 * sh.md (cmpgtudi_media): Remove spurious @.
551 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
552 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
554 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
555 * sh-protos.h (sh_initialize_trampoline): Declare.
556 * sh.c (sh_initialize_trampoline): New function.
557 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
558 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
559 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
560 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
561 * sh.md (initialize_trampoline, double_shori): New patterns.
562 (initialize_trampoline_compact): Likewise.
563 (shmedia32_initialize_trampoline_big): Remove.
564 (shmedia32_initialize_trampoline_little): Likewise.
566 * sh-protos.h (binary_float_operator): Remove declaration.
567 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
568 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
569 (unary_float_operator, sh_expand_unop_v2sf): New functions.
570 (sh_expand_binop_v2sf): Likewise.
571 (zero_vec_operand): Delete.
572 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
574 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
575 Enable nsb and byterev.
576 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
577 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
579 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
580 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
582 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
584 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
585 lowpart fp regs - only for big endian for now.
586 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
588 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
589 (LOAD_EXTEND_OP): NIL for SImode.
590 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
591 general and fp registers is 4.
592 PREDICATE_CODES: Amend binary_float_operator entry.
593 Remove zero_vec_operand. Add unary_float_operator.
594 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
596 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
597 (truncdiqi2): Do sign extension.
598 (movsi_media, movdi_media): Allow to use r63 to an fp register.
599 (movdf_media, movsf_media): Likewise.
600 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
601 Collapse to one define_insn_and_split. Allow immediate sources.
602 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
603 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
604 (movv4sf): Allow immediate sources.
605 (movsf_media_nofpu+1): Don't split moves to FP registers.
606 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
607 (movv8qi_i+3): Check against CONST0_RTX.
608 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
609 for input and output operands. Fix argument 3 to gen_mextr_rl.
610 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
611 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
612 (mshf0_w, fipr, ftrv): Likewise.
613 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
615 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
617 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
618 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
621 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
623 * config/mips/mips-protos.h (mips_sign_extend): Declare.
624 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
625 (TARGET_SWITCHES): Remove debugh.
626 (ISA_HAS_TRUNC_W): New macro.
627 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
628 (PREDICATE_CODES): Remove se_nonimmediate_operand.
629 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
630 any SImode move_operand.
631 (se_nonimmediate_operand): Remove.
632 (mips_sign_extend): New.
633 (mips_move_2words): Use it for sign-extended source operands.
634 (override_options): Allow integers to be put into single FPRs.
635 (mips_secondary_reload_class): Handle integers in float registers.
636 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
637 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
638 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
639 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
640 (fix_truncdfdi2): Provide only a single alternative, in which the
641 integer is in a float register. Depend on TARGET_FLOAT64 rather
643 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
644 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
645 (movdi_internal2): Don't allow the source operand to be sign-extended.
646 Add alternatives for float registers.
647 (*movdi_internal2_extend): New. Version of movdi_internal2 that
648 allows sign-extension.
649 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
650 (movsi_internal2): Rename to movsi_internal. Add alternatives for
651 float registers. Remove TARGET_DEBUG_H_MODE test.
652 (movhi_internal1): Rename to movhi_internal. Don't check
653 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
654 (movqi_internal1): Rename to movqi_internal and remove
655 TARGET_DEBUG_H_MODE dependency.
656 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
658 2002-07-16 Jim Wilson <wilson@redhat.com>
660 * toplev.c (lang_dependent_init): Create function context for
663 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
665 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
667 * config/cris/cris.h: Ditto.
669 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
671 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
672 the comparison directly gives a mask suppress addition when cf is
673 zero by complementing the mask.
675 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
677 * Makefile.in: Delete references to enquire.
678 * enquire.c: Move to contrib.
680 2002-07-16 Stan Shebs <shebs@apple.com>
682 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
683 config/rs6000/darwin.h.
684 (ASM_OUTPUT_SKIP): Ditto.
685 (TEXT_SECTION_ASM_OP): Ditto.
686 (DATA_SECTION_ASM_OP): Ditto.
687 (ASM_APP_ON): Define.
688 (ASM_APP_OFF): Define.
689 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
690 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
692 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
693 (machopic_function_base_name): Declare result to be const.
694 (machopic_non_lazy_ptr_name): Ditto.
695 (machopic_stub_name): Ditto.
696 * config/darwin-protos.h: Ditto for the prototypes.
698 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
700 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
702 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
704 * i386.md (prefetch): Fix for 64bit mode.
705 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
707 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
709 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
710 * i386.c (x86_machine_dependent_reorg): New function.
711 * i386-protos.h (x86_machine_dependent_reorg): Declare.
713 2002-07-16 Zack Weinberg <zack@codesourcery.com>
715 * builtins.c (std_expand_builtin_va_start): Remove unused
717 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
718 std_expand_builtin_va_start with just two arguments.
719 * expr.h: Update prototypes.
721 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
722 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
723 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
724 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
725 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
726 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
727 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
728 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
729 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
730 argument from all implementations of EXPAND_BUILTIN_VA_START
731 and all uses of std_expand_builtin_va_start.
733 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
735 * regrename.c (copy_value): Don't record high part copies.
737 2002-07-16 Steve Ellcey <sje@cup.hp.com>
739 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
740 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
741 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
743 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
745 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
747 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
748 into addsi3 using register class "x" and "y".
750 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
751 "earlyclobber" constraint modifier for some alternative.
753 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
754 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
756 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
758 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
759 (TARGET_SWITCHES): Add -mieee-compare option.
760 (OVERRIDE_OPTIONS): 32332 is a subset of
761 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
762 (TARGET_SWITCHES): Fix description of bitfield option.
763 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
764 -mieee-compare option. Remove 32332 flag.
766 2002-07-16 Steve Ellcey <sje@cup.hp.com>
768 * explow.c (convert_memory_address): Remove special handling
769 when POINTERS_EXTEND_UNSIGNED < 0.
770 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
771 (movedi_symbolic): Fix typo.
772 (load_fptr): Remove mode restriction so it works for SI and DI.
773 (load_fptr_internal1): Ditto.
775 (load_symptr_internal1): Ditto.
777 * config/ia64.c (call_operand): Modify mode check.
778 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
779 (ia64_expand_move): Ditto.
780 (ia64_assemble_integer): Handle SImode function pointers.
781 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
782 (ia64_expand_op_and_fetch): Ditto.
783 (ia64_expand_compare_and_swap): Ditto.
784 (ia64_expand_lock_test_and_set): Ditto.
785 (ia64_expand_lock_release): Ditto.
787 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
789 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
791 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
792 Richard Earnshaw <rearnsha@arm.com>
794 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
795 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
797 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
799 * arm.md (stack_tie): New insn. Use an idiom that the alias code
800 understands to be a memory clobber.
801 * arm.c (arm_expand_prologue): Use it.
803 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
805 * ra-rewrite.c: #include reload.h, insn-config.h
806 * ra-build.c: #include reload.h
807 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
808 depend on reload.h, insn-config.h.
810 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
812 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
813 the same size as a word.
815 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
816 BYTES_BIG_ENDIAN into account.
818 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
820 * i386.md (prefetch): Fix for 64bit mode.
821 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
823 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
825 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
827 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
829 2002-07-15 Zack Weinberg <zack@codesourcery.com>
831 * ginclude/varargs.h: Replace with stub which issues #error.
832 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
835 * builtins.def (BUILT_IN_VARARGS_START): Delete.
836 (BUILT_IN_VA_START): New.
837 * builtins.c (expand_builtin_va_start): Eliminate first
838 argument and code to implement pre-ISO varargs.
839 (std_expand_builtin_va_start): Ignore first argument; it is
841 (expand_builtin): Handle BUILT_IN_VA_START and
842 BUILT_IN_STDARG_START identically. Delete
843 BUILT_IN_VARARGS_START case.
845 * function.c (assign_parms): Delete hide_last_arg and all
847 (mark_varargs): Delete function.
848 * function.h (struct function): Delete 'varargs' bit.
849 (current_function_varargs): Delete macro.
850 * tree.h: Don't declare mark_varargs.
852 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
853 (c_expand_body): Don't call mark_varargs.
854 * c-objc-common.c: Handle BUILT_IN_VA_START and
855 BUILT_IN_STDARG_START identically. Delete
856 BUILT_IN_VARARGS_START case.
857 * c-tree.h: Don't declare c_mark_varargs.
858 * c-parse.in: Remove grammar rules for '&...' (which has been
859 commented out since before 2.7.2) and for '...' in K+R
860 argument declarations.
862 * builtins.c, function.c, integrate.c, sibcall.c,
863 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
864 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
865 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
866 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
867 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
868 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
869 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
870 config/stormy16/stormy16.c: Delete all references to
871 current_function_varargs, and code predicated on that flag.
873 * config/alpha/alpha.c (alpha_va_start),
874 config/arc/arc.c (arc_va_start),
875 config/i386/i386.c (ix86_va_start),
876 config/mips/mips.c (mips_va_start),
877 config/mn10300/mn10300.c (mn10300_va_start),
878 config/rs6000/rs6000.c (rs6000_va_start),
879 config/s390/s390.c (s390_va_start),
880 config/sh/sh.c (sh_va_start),
881 Ignore first argument; it is always 1.
883 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
884 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
885 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
886 Delete m68hc11_va_start.
887 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
888 No need to define EXPAND_BUILTIN_VA_START.
890 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
891 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
893 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
896 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
897 dies in more than one insn.
899 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
901 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
903 2002-07-15 Michael Matz <matz@suse.de>,
904 Daniel Berlin <dberlin@dberlin.org>,
905 Denis Chertykov <denisc@overta.ru>
907 Add a new register allocator.
911 * ra-build.c: New file.
912 * ra-colorize.c: New file.
913 * ra-debug.c: New file.
914 * ra-rewrite.c: New file.
916 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
917 (ra-rewrite.o): New .o files for libbackend.a.
918 (GTFILES): Add basic-block.h.
920 * toplev.c (flag_new_regalloc): New.
921 (f_options): New option "new-ra".
922 (rest_of_compilation): Call initialize_uninitialized_subregs()
923 only for the old allocator. If flag_new_regalloc is set, call
924 new allocator, instead of local_alloc(), global_alloc() and
927 * doc/invoke.texi: Document -fnew-ra.
928 * basic-block.h (FOR_ALL_BB): New.
929 * config/rs6000/rs6000.c (print_operand): Write small constants
932 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
933 (df_reg_table_realloc): Make size at least as large as max_reg_num().
934 (df_insn_table_realloc): Size argument now is absolute, not relative.
937 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
938 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
940 2002-06-20 Michael Matz <matz@suse.de>
942 * df.h (struct ref.id): Make unsigned.
943 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
945 2002-06-13 Michael Matz <matz@suse.de>
947 * df.h (DF_REF_MODE_CHANGE): New flag.
948 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
949 involving subregs with invalid mode changes, when
950 CLASS_CANNOT_CHANGE_MODE is defined.
952 2002-05-07 Michael Matz <matz@suse.de>
954 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
956 2002-05-03 Michael Matz <matz@suse.de>
958 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
960 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
962 * regclass.c (regclass): Work with all regs which have sets or
964 (reg_scan_mark_refs): Count regs inside (clobber ...).
966 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
968 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
969 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
971 (df_bb_refs_update): Don't clear insns_modified here, ...
972 (df_analyse): ... but here.
974 * sbitmap.c (dump_sbitmap_file): New.
975 (debug_sbitmap): Use it.
977 * sbitmap.h (dump_sbitmap_file): Add prototype.
979 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
981 * df.c (df_insn_modify): Grow the UID table if necessary, rather
982 than assume all emits go through df_insns_modify.
984 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
986 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
987 increase REG_N_REFS (like flow does), so that regclass doesn't
988 think a reg is useless, and thus, not calculate a class, when it
991 2001-01-28 Daniel Berlin <dberlin@redhat.com>
993 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
996 2002-07-15 Jakub Jelinek <jakub@redhat.com>
999 * config/i386/i386.c (const_int_1_31_operand): New.
1000 * config/i386/i386.h (PREDICATE_CODES): Add it.
1001 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
1002 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
1003 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
1005 2002-07-14 Alan Modra <amodra@bigpond.net.au>
1008 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
1009 (floatunssidf2): Likewise.
1010 (floatsidf_ppc64): New insn_and_split.
1011 (floatunssidf_ppc64): Likewise.
1013 2002-07-14 Andreas Jaeger <aj@suse.de>
1015 * config.gcc (sh64): Remove unused
1016 target_requires_64bit_host_wide_int.
1018 2002-07-12 Roger Sayle <roger@eyesopen.com>
1020 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
1021 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
1022 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
1023 whether clear_by_pieces should be used to clear storage.
1024 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
1026 * doc/tm.texi: Document these two new target macros.
1028 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
1030 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
1031 the scratch register.
1032 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
1033 of it, forbid reload to use it.
1035 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
1037 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
1038 usage on 64-bit hosts, return value was truncated to 32 bits.
1040 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
1042 * simplify-rtx.c (simplify_subreg): Handle floating point
1043 CONST_DOUBLEs. When an integer subreg of a smaller mode than
1044 the element mode is requested, compute a subreg with an
1045 integer mode of the same size as the element mode first.
1047 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1049 * combine.c (try_combine): When converting a paradoxical subreg
1050 to an extension, take LOAD_EXTEND_OP into account.
1052 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1054 * config.gcc (mips-sgi-irix6*o32): New configuration.
1056 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
1058 * configure: Regenerate.
1060 * config/mips/iris6-o32-as.h: New file.
1061 * config/mips/iris6-o32.h: New file.
1063 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
1065 (HAVE_AS_SHF_MERGE): Undefine.
1067 * config/mips/t-iris5-as: New file.
1068 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1070 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
1071 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
1072 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
1073 dp-bit.c, fp-bit.c): Move ...
1074 * config/mips/t-iris5-6: ... here.
1075 New file, shared by IRIX 5 and IRIX 6.
1076 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
1077 mips-sgi-irix5*): Use it.
1079 * config/mips/iris6.h: Remove duplicate comment.
1081 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1082 !TARGET_IRIX6]: Define.
1083 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
1085 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
1087 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1089 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
1090 and delete code to force constant to register.
1091 * pa-protos.h (adddi3_operand): Add prototype.
1092 * pa.c (adddi3_operand): New function.
1094 2002-07-11 Roger Sayle <roger@eyesopen.com>
1096 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
1097 non-ANSI builtin functions.
1099 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
1101 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
1102 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
1103 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
1104 (gen_const_vector_0): Use it.
1106 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1108 * pa.md (adddi3): For 32-bit targets, force constants to a register
1109 if they don't fit in an 11-bit immediate. Change insn predicate to
1110 arith11_operand. Remove comment.
1111 * pa.c (cint_ok_for_move): Fix comment.
1112 (emit_move_sequence): Don't directly split DImode constants on 32-bit
1115 2002-07-11 Tim Josling <tej@melbpc.org.au>
1117 Remove front end hard coding from gengtype.c.
1120 (STAGESTUFF): add gtyp-gen.h
1121 (GTFILES): Remove front end specific files.
1122 (GTFILES_FILES_LANGS): New, from configure..
1123 (GTFILES_FILES_FILES): Likewise.
1124 (GTFILES_LANG_DIR_NAMES): Likewise.
1125 (GTFILES_SRCDIR): Likewise.
1126 (gtyp-gen.h): Build from configure information.
1127 (s-gtype): Remove command line parameters from gengtype.
1128 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
1129 (mostlyclean): Delete files generated by and for gengtype.
1131 * c-config-lang.in: New file.
1133 * configure.in (all_gtfiles_files_langs): New. Accumulate files
1135 (all_gtfiles_files_files): New. Accumulate language for each file
1137 (gtfiles): Pick up value for C.
1138 (srcdir): AC-SUBST this variable.
1139 (all_gtfiles_files_langs): AC-SUBST this variable.
1140 (all_gtfiles_files_files): AC-SUBST this variable.
1142 * configure: Regenerate.
1144 * gengtype-lex.l (parse_file): Make parameter const.
1146 * gengtype.c (toplevel): include gtyp-gen.h.
1147 (BASE_FILE_<language> unnamed enum): Delete.
1148 (lang_names): Delete (replaced by gtyp-gen.h)
1149 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
1151 (NUM_GT_FILES): New.
1152 (NUM_LANG_FILES): New.
1154 (NUM_BASE_FILES): Change calculation.
1155 (open_base_files): Change prototype to avoid warning.
1156 (startswith): Delete.
1157 (get_file_basename): Iterate through generated language list not
1159 (get_base_file_bitmap): Use generated list of files and languages.
1160 (close_output_files): Add prototype to rmove warning.
1161 (main): Iterate through list of generated files from gtyp-gen.h
1162 rather than command line paramaters. Ignore duplicated file
1165 * gengtype.h (parse_file): Amend prototype for const parameter.
1167 * doc/sourcebuild.texi: Document gtfiles variable.
1169 * doc/gty.texi: Document changes to gtfiles variable for front
1172 * objc/config-lang.in (gtfiles): Add files needed for objc front
1175 2002-07-10 Roger Sayle <roger@eyesopen.com>
1178 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
1179 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
1181 2002-07-10 Roger Sayle <roger@eyesopen.com>
1182 Zack Weinberg <zack@codesourcery.com>
1184 * builtins.def: Make the argument types of abort and exit
1185 independent of the front-end.
1187 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1189 * config/rs6000/linux64.h (ASM_SPEC): Define.
1191 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
1193 * config/rs6000/rs6000.c (emit_frame_save): New.
1194 (rs6000_frame_related): Replace reg2 before reg.
1195 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
1196 and eh_return registers.
1198 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
1200 Revert all patches for optimization of Complex .op. Real.
1201 * complex_part_zero_p: Remove
1202 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
1204 * expand_cmplxdiv_wide: Ditto.
1205 * expand_binop: Ditto.
1207 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1209 * config/avr/avr.md: Fix two 0x80000000 constants to make them
1210 negative also on 64-bit hosts.
1212 Default to -fno-reorder-blocks when optimizing for size.
1213 * config/avr/avr-protos.h (avr_optimization_options): Declare.
1214 * config/avr/avr.c (avr_optimization_options): New function.
1215 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
1217 Optimize returning from simple functions.
1218 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
1219 * config/avr/avr.c (avr_simple_epilogue): New function.
1220 * config/avr/avr.md (return): New insn.
1222 2002-07-10 Douglas B Rupp <rupp@gnat.com>
1224 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
1225 HAS_INIT_SECTION to protection.
1227 2002-07-10 Mark Mitchell <mark@codesourcery.com>
1229 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
1232 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
1234 * combine.c (gen_lowpart_for_combine): Handle vector modes.
1235 Supply non-VOID mode to simplify_gen_subreg.
1237 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
1239 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
1241 2002-07-10 Jeffrey A Law <law@redhat.com>
1243 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
1246 * mn10200.c (expand_epilogue): Fix test to determine which scratch
1249 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
1251 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
1253 If simplify_gen_subreg fails, try next equivalent.
1255 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
1257 * diagnostic.h: #include location.h
1258 (location_t): Move definition to..
1259 * location.h: ... here. New file.
1260 * tree.h: #include location.h
1261 (DECL_SOURCE_LOCATION): New macro.
1262 (DECL_SOURCE_FILE): Use.
1263 (DECL_SOURCE_LINE): Likewise.
1264 (struct tree_decl): REplace filename and linenum with locus.
1265 * Makefile.in (TREE_H): add location.h
1266 (diagnostic.o): Depends on gt-location.h
1267 (gt-location.h): Depends on s-gtype
1269 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
1271 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
1272 TARGET_OS_CPP_BUILTINS.
1273 * config/rs6000/aix31.h: Likewise.
1274 * config/rs6000/aix41.h: Likewise.
1275 * config/rs6000/aix43.h: Likewise.
1276 * config/rs6000/aix51.h: Likewise.
1277 * config/rs6000/beos.h: Likewise.
1278 * config/rs6000/darwin.h: Likewise.
1279 * config/rs6000/eabi.h: Likewise.
1280 * config/rs6000/eabisim.h: Likewise.
1281 * config/rs6000/linux.h: Likewise.
1282 * config/rs6000/linux64.h: Likewise.
1283 * config/rs6000/lynx.h: Likewise.
1284 * config/rs6000/mach.h: Likewise.
1285 * config/rs6000/rtems.h: Likewise.
1286 * config/rs6000/sysv4.h: Likewise.
1287 * config/rs6000/vxppc.h: Likewise.
1289 2002-07-09 Devang Patel <dpatel@apple.com>
1290 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
1291 Do not allow ObjC objects as a parameter type for Objective-C methods.
1292 My previous patch restricted 'struct' also.
1294 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
1296 * cpperror.c (cpp_error): Default to directive_line within
1298 * cppexp.c (cpp_interpret_integer): Only use traditional
1299 number semantics in directives.
1300 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
1301 (do_include_common): Similarly.
1302 * cpptrad.c (scan_out_logical_line): Implement accurate
1303 quoting of <> in #include.
1304 * doc/cpp.texi: Update.
1306 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
1307 J"orn Rennecke <joern.rennecke@superh.com>
1309 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
1310 * sh.md (attribute issues): Replace with:
1311 (attribute pipe_model). All users changed.
1312 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
1314 (function units sh5issue, sh5fds): New.
1315 (attribute is_mac_media): New.
1316 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
1317 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
1318 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
1319 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
1320 (call_media, call_value_media, sibcall_media): Likewise.
1321 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
1322 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
1323 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
1324 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
1325 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
1326 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
1327 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
1328 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
1329 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
1330 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
1331 (truncdfsf2_media): Likewise.
1332 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
1333 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
1335 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
1337 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
1338 * sh.c (general_extend_operand, inqhi_operand): New functions.
1339 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
1340 alternatives using 'N' modifier. Add type.
1341 (adddi3z_media): Likewise. Enable generator function generation.
1342 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
1343 exact predicates / constraints. Add type.
1344 (subsi3): Allow 0 for SHMEDIA.
1345 (udivsi3_i4_media): Use match_operand for input values
1346 rather than hard registers.
1347 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1348 unnecessarily through hard registers. Keep copies of pseudo
1349 registers outside of the libcall sequence.
1350 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
1351 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
1352 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
1353 (extendhidi2, extendqidi2): Likewise.
1354 (andsi3_compact): Name.
1355 (andcdi3): Enable generator function generation.
1356 (zero_extendhisi2, zero_extendqisi2): Rename to
1357 (zero_extendhisi2_compact, zero_extendqisi2_compact).
1358 (extendhisi2, extendqisi2): Rename to
1359 (extendhisi2_compact, extendqisi2_compact).
1360 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
1361 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
1362 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
1363 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
1364 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
1365 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
1366 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
1367 (shmedia32_initialize_trampoline_big): Likewise.
1368 (shmedia32_initialize_trampoline_little): Likewise.
1369 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
1370 (negdi2): Remove spurious T clobber.
1371 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
1372 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
1373 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
1374 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
1375 (ic_invalidate_line_media): Write back data cache before invalidating
1376 instruction cache. Add type.
1377 (movsf_media): Sign-extend when the destination is a general
1378 purpose register. Add type.
1379 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
1380 (casesi_worker_0+1): Only increment ref count for proper label.
1381 (casesi_worker_0+2): Likewise.
1383 2002-07-09 Mark Mitchell <mark@codesourcery.com>
1385 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
1387 2002-07-09 Steve Ellcey <sje@cup.hp.com>
1389 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
1390 from Pmode to ptr_mode.
1391 (get_exception_pointer): Ditto.
1392 (connect_post_landing_pads): Ditto.
1393 (dw2_build_landing_pads): Ditto.
1395 2002-07-08 Steve Ellcey <sje@cup.hp.com>
1396 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
1397 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
1398 (handle_pragma_redefine_extname): Change to use new function.
1400 2002-07-08 Roger Sayle <roger@eyesopen.com>
1402 * combine.c (combine_simplify_rtx): Add an explicit cast
1403 to avoid signed/unsigned comparison warning.
1404 (simplify_if_then_else): Likewise.
1405 (extended_count): Likewise.
1406 (simplify_shift_const): Likewise.
1407 (simplify_comparison): Likewise.
1409 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
1411 * config/mips/mips.md: Add imadd type. Update scheduler description
1412 to use imadd as well as imul.
1413 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
1414 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
1415 (*mul_sub_si): Likewise for first alternative. Change second
1416 alternative from imul to multi.
1418 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
1420 * c-common.c (c_common_post_options): Update prototype;
1421 don't init backends if preprocessing only.
1422 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
1423 * langhooks.h (struct lang_hooks): Update post_options to
1425 * toplev.c (parse_options_and_default_flags, do_compile,
1426 lang_independent_init): Update prototypes. Allow the
1427 front end to specify that there is no need to initialize
1429 (general_init): Move call to hex_init here...
1430 (toplev_main): ...from here. Pass flag for back end init
1433 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1435 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
1436 (PREDICATE_CODES): Add entries for equality_comparison_operator,
1437 greater_comparison_operator and less_comparison_operator.
1438 * sh.c (print_operand): Add '\'' code. Make 'o' handle
1440 (equality_comparison_operator): New function.
1441 (greater_comparison_operator, less_comparison_operator): Likewise.
1442 * sh.md (beq_media_i): Disable generator function generation.
1443 Use match_operator to handle a whole class of comparisons. Add
1444 modifier in output template to provide branch prediction. Add type.
1445 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
1446 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
1447 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
1448 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
1450 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
1452 Emit MMIX function prologue and epilogue as rtl.
1453 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
1454 not unprototyped get_hard_reg_initial_val.
1455 ("call_value", "nonlocal_goto_receiver"): Ditto.
1456 ("return"): Make define_expand. Move real insn to...
1457 ("*expanded_return"): New pattern.
1458 ("prologue", "epilogue"): New define_expands.
1459 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
1460 (struct machine_function): New member in_prologue.
1461 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
1462 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
1463 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
1464 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
1465 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
1466 (LOCAL_REGNO): Define. Adjust comment.
1467 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
1468 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
1470 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
1472 (mmix_target_asm_function_prologue): Make static. Just mark that
1473 the prologue is being emitted. Move guts to...
1474 (mmix_expand_prologue): New function. Adjust for emitting
1475 prologue as rtl. For sizes, use HOST_WIDE_INT only.
1476 (mmix_target_asm_function_epilogue): Make static. Simply emit a
1478 (mmix_expand_epilogue): New function. Adjust for emitting
1479 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
1480 (mmix_target_asm_function_end_prologue): Mark that the prologue
1482 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1483 (mmix_conditional_register_usage): Improve comments.
1484 (mmix_local_regno): New function.
1485 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
1486 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
1487 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
1488 (mmix_get_hard_reg_initial_val): Ditto.
1490 2002-07-06 Andreas Jaeger <aj@suse.de>
1492 * toplev.c (set_fast_math_flags): Don't use ISO C style function
1494 * gengtype.c (open_base_files): Likewise.
1495 (close_output_files): Likewise.
1496 * tracer.c (find_best_predecessor): Likewise.
1497 (find_best_successor): Likewise.
1498 (ignore_bb_p): Likewise.
1500 2002-07-05 Roger Sayle <roger@eyesopen.com>
1503 * builtin-attrs.def: Define new attribute lists for use in
1505 * builtins.def [DEF_BUILTIN]: Modify to take an additional
1506 ATTRS argument, an enumerated value defined in builtin-attrs.def
1507 that represents the attribute list for the builtins. Modify
1508 all builtin functions to pass an appropriate attribute list.
1509 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
1510 their required noreturn attributes.
1511 * tree.h (enum_builtin_function): Ignore the additional parameter
1513 * builtins.c (built_in_names): Likewise.
1514 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
1515 argument with a tree representing the functions attribute list.
1516 Pass this "attrs" argument to builtin_function. No longer handle
1517 the noreturn_p processing manually.
1518 (built_in_attributes): Move the definitions from builtin-attrs.def
1519 before c_common_nodes_and_builtins.
1520 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
1521 DEF_BUILTIN, passing it to both builtin_function and the changed
1524 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
1525 __builtin__exit and __builtin__Exit.
1527 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1529 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1530 QI mode registers in soft registers.
1531 ("zero_extendqihi2"): Do not take into account soft registers
1532 for register allocation (use '*' constraint).
1534 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1536 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1538 ("*ashrsi3"): Likewise.
1539 ("*lshrsi3"): Likewise.
1541 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
1543 * genautomata.c (output_max_insn_queue_index_def): Take latencies
1546 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1548 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1549 address computation and memory moves.
1551 2002-07-03 Mark Mitchell <mark@codesourcery.com>
1554 * dwarfout.c (output_reg_number): Fix warning message.
1555 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1558 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1560 * gcc/gcc.c (asm_debug): Move initialization ...
1561 (init_spec): ... here.
1563 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
1565 * c-parse.in (extdef): Append ';'.
1566 (old_style_parm_decls): Append ';'.
1568 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1570 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1571 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1572 to gcc_cv_as_gstabs_flag.
1573 * configure: Rebuilt.
1575 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
1577 * ggc.h (ggc_add_root): Document as obsolete.
1579 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
1581 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1582 (mshflo_w): Likewise.
1584 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1586 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1587 vector mode subregs of constants to finding integer mode
1588 subregs of constants.
1589 * cse.c (cse_insn): Use simplify_gen_subreg.
1590 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1591 From a vector mode expression of different size than the
1594 2002-07-03 Eric Christopher <echristo@redhat.com>
1596 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1597 * config/mips/mips.h: Remove deprecated -m<processor> options
1598 and cc1_cpu_spec associated.
1599 (CONSTANT_ADDRESS_P): Fix last patch.
1600 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1601 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1604 2002-07-03 Stan Shebs <shebs@apple.com>
1606 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1607 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1608 (CPP_SPEC): Remove insertion of APPLE_CC definition.
1610 2002-07-03 Roger Sayle <roger@eyesopen.com>
1612 * combine.c (struct_undo): Change types of recorded substitutions
1613 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1614 (do_SUBST_INT): Change types of the substitution from unsigned int
1615 to int, to avoid compilation warning from SUBST_INT's only caller.
1617 (make_extraction): Add cast to avoid compilation warning.
1618 (force_to_mode): Remove cast to avoid compilation warning.
1620 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
1621 Jeff Law <law@redhat.com>
1623 * i386.md (length_immediate attribute): Fix typo.
1624 (length_address attribute): Likewise.
1625 (modrm attribute): Set it to 0 for immediate call instructions.
1626 (jcc_1 pattern): Set modrm attribute to 0.
1627 (jcc_2 pattern ): Likewise.
1628 (jump pattern): Likewise.
1629 (doloop_end_internal pattern): Explicitly set length.
1630 (leave pattern): Fix typo.
1631 (leave_rex64 pattern): Likewise.
1633 2002-07-03 David Edelsohn <edelsohn@gnu.org>
1635 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1636 in FPR as preference.
1638 (floatdidf2, fix_truncdfdi2): Same.
1639 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1641 (floatsitf2, fix_trunctfsi2): SImode in GPR.
1642 (ctrdi): Remove FPR alternative and splitter.
1644 2002-07-03 Will Cohen <wcohen@redhat.com>
1646 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1648 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
1650 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1651 than UNITS_PER_WORD, unless this is little endian and the first unit
1652 in this word. Let extract_bit_field decide how to load an element.
1653 Force arguments to matching mode.
1654 (expand_vector_unop): Likewise.
1656 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1657 consist of word_mode elements.
1658 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1659 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1660 (build_unary_op): Allow vector types for BIT_NOT_EPR.
1661 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1663 * optabs.c (expand_vector_binop): Try to perform operation in
1664 smaller vector modes with same inner size. Add handling of AND, IOR
1665 and XOR. Reject expansion to inner-mode sized scalars when using
1666 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
1667 (expand_vector_unop): Try to perform operation in smaller vector
1668 modes with same inner size. Add handling of one's complement.
1669 When there is no vector negate operation, try a vector subtract
1670 operation. Use simplify_gen_subreg on constants.
1671 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1672 constants into smaller vectors with same inner mode, and to
1673 integer CONST_DOUBLEs.
1675 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1677 * c-parse.in (parsing_iso_function_signature): New variable.
1678 (extdef_1): New, copied from...
1679 (extdef): ... here. Reset parsing_iso_function_signature.
1680 (old_style_parm_decls): Reset parsing_iso_function_signature.
1681 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1682 Warn about ISO C style function definitions.
1683 (nested_function, notype_nested_function): Reset
1684 parsing_iso_function_signature.
1685 (parmlist_2): Set parsing_iso_function_signature.
1687 * doc/invoke.texi (-Wtraditional): Document new behavior.
1689 2002-07-02 Chris Demetriou <cgd@broadcom.com>
1691 * config.gcc (mips*el-*-*): Use tm_defines to set
1692 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1693 * config/mips/little.h: Remove.
1695 2002-07-02 Devang Patel <dpatel@apple.com>
1697 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
1698 object as parameter. Prevent something like 'NSObject' to be
1699 used as the type for a method argument.
1701 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
1703 * cpptrad.c: Update comment.
1705 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1707 * doc/cpp.texi: Update for traditional preprocessing changes.
1708 * goc/cppopts.texi: Similarly.
1710 2002-07-02 Ziemowit Laski <zlaski@apple.com>
1712 * c-parse.in (designator): Enable designated initializers if ObjC.
1713 (objcmessageexpr): Remove references to objc_receiver_context.
1714 * objc/objc-act.h (objc_receiver_context): Remove decl.
1715 * objc/objc-act.c (objc_receiver_context): Remove.
1716 (lookup_objc_ivar): Test objc_method_context instead of
1717 objc_receiver_context.
1719 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1721 * sh.c (print_operand, case 'N'): Allow zero vector.
1722 (arith_reg_or_0_operand): Likewise.
1723 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
1724 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
1725 IOR, XOR, PLUS and SET and take their respective constant
1726 ranges into account.
1727 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1728 * sh.md (subdi3, subdi3_media): Allow zero operand.
1729 (movv8qi_i+3): Only vector that is not split is the zero vector.
1730 Fix operand 3 to simplify_subreg.
1731 (movv2si_i): Split alternative 1.
1732 (mshfhi_l_di_rev+1): New splitter.
1734 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1736 PR preprocessor/7029
1737 * cppinit.c (cpp_handle_option): Suppress warnings with an
1738 implicit "-w" for "-M" and "-MM".
1739 * doc/cppopts.texi: Update.
1741 2002-07-01 Roger Sayle <roger@eyesopen.com>
1743 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1744 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
1747 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1749 * README.Portability: Fix typos.
1751 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
1754 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1755 of indirections for register inside sign-extended mem part.
1757 2002-07-01 Roger Sayle <roger@eyesopen.com>
1759 * tree.h: Modify builtin_function interface to take an extra
1760 argument ATTRS, which is a tree representing an attribute list.
1762 * c-decl.c (builtin_function): Accept additional parameter.
1763 * objc/objc-act.c (builtin_function): Likewise.
1764 * f/com.c (builtin_function): Likewise.
1765 * java/decl.c (builtin_function): Likewise.
1766 * ada/utils.c (builtin_function): Likewise.
1767 * cp/decl.c (builtin_function): Likewise.
1768 (builtin_function_1): Likewise.
1770 * c-common.c (c_common_nodes_and_builtins): Pass an additional
1771 NULL_TREE argument to builtin_function. (builtin_function_2):
1773 * cp/call.c (build_java_interface_fn_ref): Likewise.
1774 * objc/objc-act.c (synth_module_prologue): Likewise.
1775 * java/decl.c (java_init_decl_processing): Likewise.
1776 * f/com.c (ffe_com_init_0): Likewise.
1778 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1779 NULL_TREE argument to builtin_function.
1780 * config/arm/arm.c (def_builtin): Likewise.
1781 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1782 * config/i386/i386.c (def_builtin): Likewise.
1783 * config/ia64/ia64.c (def_builtin): Likewise.
1784 * config/rs6000/rs6000.c (def_builtin): Likewise.
1786 2002-07-01 Zack Weinberg <zack@codesourcery.com>
1788 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1789 * config/mips/t-isa3264: Likewise.
1790 * config/mmix/t-mmix: Likewise.
1792 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1794 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1796 2002-07-01 Roger Sayle <roger@eyesopen.com>
1799 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1800 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1803 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
1805 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1807 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
1809 * README.Portability (Function prototypes): Give an example of
1810 declaring and defining a function with no arguments.
1812 * README.Portability (Function prototypes): Document new
1813 variable-argument function macros.
1815 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
1817 * sh.c (langhooks.h): Include.
1818 (sh_init_builtins, sh_media_init_builtins): New functions.
1819 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1820 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1821 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1822 (builtin_description): New struct tag.
1823 (signature_args, bdesc): New arrays.
1824 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1825 (print_operand): Add 'N' modifier.
1826 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1827 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1828 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1829 (CONST_COSTS): Add special case for SHmedia AND.
1830 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1831 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1832 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1833 target_operand can also be const or unspec.
1834 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1835 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1836 (attribute type): Add new types.
1837 (anddi3): Add splitter.
1838 (movdi_const_16bit+1): Add code to handle vector constants and
1839 bitmasks efficiently.
1840 (shori_media): Have generator function made.
1841 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1842 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1843 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1844 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1845 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1846 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1847 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1848 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1849 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1850 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1851 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1852 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1853 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1854 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1855 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1856 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1857 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1858 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1859 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1862 (fpu_switch+1, fpu_switch+2): Remove constraint.
1864 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
1866 * tree.c (build_function_type_list): Update function comment.
1867 Rename first argument to return_type.
1869 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1871 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1872 tradcif.y and related files.
1874 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1876 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1878 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1880 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1882 2002-06-30 Devang Patel <dpatel@apple.com>
1884 * objc/objc-act.c (finish_file): Avoid finish_objc() if
1887 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
1888 Frank Ch. Eigler <fche@redhat.com>
1889 Matthew Green <mrg@redhat.com>
1890 Richard Henderson <rtl@redhat.com>
1891 Dave Hudson <dave.hudson@ubicom.com>
1892 Jeff Johnston <jjohnstn@redhat.com>
1893 Alan Lehotsky <apl@alum.mit.edu>
1894 Bernd Schmidt <bernds@redhat.com>
1895 Graham Stott <grahams@redhat.com>
1897 * doc/extend.texi: Add ip2k port to description of attribute
1899 * doc/install.texi (Specific): Add ip2k description.
1900 * doc/install-old.texi (Configurations): Add ip2k to possible
1902 * doc/md.texi: Document ip2k constraints.
1903 * config/ip2k/crt0.S: New file.
1904 * config/ip2k/ip2k-protos.h: New file.
1905 * config/ip2k/ip2k.c: New file.
1906 * config/ip2k/ip2k.h: New file.
1907 * config/ip2k/ip2k.md: New file.
1908 * config/ip2k/libgcc.S: New file.
1909 * config/ip2k/t-ip2k: New file.
1911 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
1913 * config/mmix/mmix.md ("return"): New pattern.
1914 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1915 (TARGET_USE_RETURN_INSN): New macros.
1916 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1917 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1918 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1919 (MMIX_POP_ARGUMENT): New macro.
1920 (mmix_target_asm_function_prologue): When no epilogue is executed,
1921 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
1922 (mmix_print_operand) <case '.'>: New case.
1923 (mmix_print_operand_punct_valid_p): Match '.'.
1924 (mmix_use_simple_return): New function.
1925 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1926 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1927 -msingle-exit, -mno-single-exit.
1928 (MMIX Options): Ditto.
1930 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
1932 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
1934 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1936 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1938 2002-06-30 Alan Modra <amodra@bigpond.net.au>
1940 * unroll.c (loop_iterations): Handle EQ loops.
1942 2002-06-29 David Edelsohn <edelsohn@gnu.org>
1944 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1945 constraint in define_expand, not splitter.
1948 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
1950 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1951 build_function_type_list instead of build_function_type.
1953 * config/ia64/ia64.c (ia64_init_builtins): Same.
1955 * config/alpha/alpha.c (alpha_init_builtins): Same.
1957 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
1959 * config/arm/arm.c (arm_init_builtins): Same.
1961 * tree.h: Add build_function_type_list prototype.
1963 * tree.c (build_function_type_list): New.
1965 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1967 * collect2.c (scan_prog_file): Fix typo in message.
1969 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
1971 * fold-cont.c: Remove unused CHARMASK.
1973 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
1975 PR preprocessor/7150
1976 * cppmain.c (scan_translation_unit_trad): Simplify.
1977 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
1979 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
1981 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
1982 Don't use CPP_PREDEFINES.
1983 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
1984 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
1985 * config/i386/djgpp.h, config/i386/i386-coff.h,
1986 config/i386/i386-interix.h, config/i386/i386-interix3.h,
1987 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
1988 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
1989 config/i386/uwin.h: Similarly.
1991 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1993 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
1994 flag_inline_trees to enable inlining.
1996 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
1998 * configure.in (gcc_gxx_include_dir): Change to match versioned
1999 C++ headers if --enable-version-specific-runtime-libs is used.
2000 * configure: Regenerate.
2002 2002-06-28 Jan Hubicka <jh@suse.cz>
2004 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
2006 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
2008 * combine.c (combine_simplify_rtx): Pass the mode of the
2009 shift count, not the shift operation when trying to simplify
2010 a shift on a SHIFT_COUNT_TRUNCATED target.
2012 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2014 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
2015 avoid the auto increment addressing modes.
2016 ("*subsi3"): Likewise.
2017 (split for add/sub on address): For 68HC12 push the value on
2018 the stack and do the operation with a pop.
2020 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2022 * cpplib.c (_cpp_handle_directive): Move #define-specific
2023 code to the #define handler...
2024 (do_define): ...here.
2025 (lex_macro_node): No longer a need to check for comments here.
2027 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2029 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
2030 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2032 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
2033 do not reorder basic blocks at the end when optimizing for size.
2035 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2037 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
2038 (m68hc11_make_autoinc_notes): New function.
2039 (m68hc11_split_move): Be very cautious when spliting a move with
2040 auto increment/decrement modes because this may result in incompatible
2041 directions; add REG_INC notes to the resulting insn for CSE reg.
2043 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
2045 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
2046 can be a valid address.
2048 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
2050 * config/rs6000/rs6000.c: Remove unusued variables from last
2053 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2056 * config/rs6000/rs6000.c (rs6000_override_options): Move
2057 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2059 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2061 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
2062 lvx/stv/dst builtins...
2063 (altivec_expand_ld_builtin): ...to here.
2064 (altivec_expand_st_builtin): ...here.
2065 (altivec_expand_dst_builtin): ...and here (respectively).
2067 2002-06-28 Bob Wilson <bob.wilson@acm.org>
2069 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
2071 2001-06-08 Bernd Schmidt <bernds@redhat.com>
2073 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
2075 * recog.c (general_operand, register_operand): Disallow them.
2077 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2079 PR preprocessor/7138
2080 * cpplib.c (_cpp_handle_directive): Do traditional
2081 preparation after setting state.angled_headers.
2082 * cpptrad.c (scan_out_logical_line): Fix potential
2085 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2087 * config/rs6000/rs6000.c (rs6000_override_options): Move
2088 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2090 2002-06-27 Bob Wilson <bob.wilson@acm.org>
2092 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
2093 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
2094 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
2096 2002-06-27 Roger Sayle <roger@eyesopen.com>
2098 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
2099 * config/stormy16/stormy16.h: Likewise.
2101 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
2104 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2106 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
2107 Hitachi entry. Make punctuation more consistent.
2109 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
2111 * doc/install.texi: Change ` bit' to `-bit'.
2112 * doc/md.texi: Change `-bits' to `-bit'.
2113 * doc/tm.texi: Change `-bits' to ` bits'.
2115 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
2117 * gcse.c (hoist_code): Rewrite to only get list of dominated
2118 blocks once per BB. Also fix reversed test (by removing need for
2121 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2123 * cpphash.h (_cpp_set_trad_context): Remove.
2124 * cpplib.c (prepare_directive_trad): Do nothing for #define.
2125 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
2126 * cpptrad.c: Update comments.
2127 (_cpp_read_logical_line_trad): Let scan_logical_line handle
2128 updating the current context.
2129 (scan_logical_line): Update the current context.
2130 (_cpp_create_trad_definition): Similarly.
2131 (_cpp_set_trad_context): Remove.
2133 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2135 PR preprocessor/7070
2136 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
2138 2002-06-26 Bob Wilson <bob.wilson@acm.org>
2140 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
2141 config/xtensa/xtensa.c (xtensa_return_addr): New function.
2142 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
2143 config/xtensa/xtensa.md (fix_return_addr): New pattern.
2145 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2147 * mips.c (coprocessor_operand, coprocessor2_operand,
2148 symbolic_operand): Move prototypes from here...
2149 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
2150 symbolic_operand): ...to here.
2152 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2154 * config/sh/crt1.asm: remove _stack label definition
2157 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2159 * varasm.c: Include real.h before output.h.
2161 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
2163 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
2164 check for TARGET_ALTIVEC.
2166 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
2168 * config.gcc (vax-*-vms*): Make obselete.
2170 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2172 * gcc.c (warn_std): Delete.
2174 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
2176 * doc/extend.texi: Fix formatting of last checkin.
2178 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2180 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
2181 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
2183 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
2185 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2186 discrepancies from motorola's documentation.
2188 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
2190 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
2191 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
2193 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
2194 produce a 32 bit result before normalization, then normalize with a
2195 left shift. Compute approximative error of 2nd reciprocal
2196 approximation in 2's complement. Fix mask generation from upper
2197 longword of second divide stage result.
2198 For large divisor, fix shift count used to truncate first stage
2199 divide result; make decision if to adjust upwards based on comparison
2200 of higher parts of normalized values.
2201 (udivdi): Likewise. Undo normalization of result for large divisor
2204 2002-06-25 David S. Miller <davem@redhat.com>
2206 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
2208 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
2210 * cpplib.c (do_include_common): Revert to correct line number
2212 * cpptrad.c (scan_out_logical_line): Treat null directive as
2213 white space. Invlidate MI optimization for non-whitespace
2214 text outside a directive.
2216 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2218 * Makefile.in (SHELL): Set to @SHELL@.
2219 * fixinc/Makefile.in (SHELL): Likewise.
2221 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
2222 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
2225 2002-06-24 Jeff Law <law@redhat.com>
2227 * flow.c (propagate_one_insn): When removing an insn
2228 with a REG_LIBCALL note but not the entire libcall sequence,
2229 delete the associated REG_RETVAL note.
2231 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
2233 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
2234 (udivsi3): Likewise. Rewrite SH1 implementation.
2235 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
2236 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
2237 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
2238 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
2239 (_moddi3): Likewise.
2241 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
2243 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
2244 arguments into account for stack_regs.
2246 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
2248 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
2251 2002-06-24 Art Haas <ahaas@neosoft.com>
2253 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
2254 * doc/tm.texi (Frame Layout): Likewise.
2256 2002-06-20 Steve Ellcey <sje@cup.hp.com>
2258 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
2259 Set float_format to i128.
2261 2002-06-24 David S. Miller <davem@redhat.com>
2263 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
2264 32-bit ABI libfuncs to NULL.
2266 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
2267 strings instead of quoted strings for code blocks.
2269 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
2270 optabs if op1 is const0_rtx.
2272 * Makefile.in (GTFILES): Add basic-block.h
2273 * basic-block.h (label_value_list, tail_recursion_label_list):
2276 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
2278 * cpptrad.c (scan_out_logical_line): Check recursing only when
2279 we know we have a macro invocation in the function-like case.
2280 Only call _cpp_handle_directive if we know we have a good
2281 directive, or we want to reject a bad directive.
2283 2002-06-24 Alan Modra <amodra@bigpond.net.au>
2285 * doloop.c (doloop_valid_p): Correct comment.
2286 (doloop_modify_runtime <abs_inc != 1>): Simplify.
2287 (doloop_modify_runtime <do-while>): Don't emit code when NE.
2289 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
2291 * config.gcc: Add support for ip2k.
2293 2002-06-23 Jan Hubicka <jh@suse.cz>
2294 Jeff Law <law@redhat.com>
2296 * function.h (struct emit_status): Clarify potential contents
2297 of regno_reg_rtx array.
2298 * integrate.c (copy_rtx_and_substitute): Update comments. Make
2299 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
2301 * reg-stack.c (convert_regs_exit): Push the registers to stack in
2304 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2307 * function.c (assign_stack_temp_for_type): Do not return
2308 the same MEM rtx for multiple uses of a stack slot.
2310 2002-06-22 David S. Miller <davem@redhat.com>
2312 PR target/6841 target/6770 target/6719
2313 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
2314 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
2315 GENERAL_OR_EXTRA_FP_REGS.
2317 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
2319 * cpptrad.c (struct fun_macro): Add line number.
2320 (scan_out_logical_line): Set it, and use it to report unterminated
2323 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2325 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
2326 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
2327 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
2328 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
2329 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
2330 REGEXP_ONEOF, check_name): Const-ify.
2332 2002-06-21 Matt Thomas <matt@3am-software.com>
2334 * config/vax/vax.c (vax_output_function_prologue): Use
2335 REGISTER_PREFIX. Fix some indentation.
2336 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
2337 (VAX_ISTREAM_SYNC): Define.
2338 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
2339 i-stream sync to the end.
2340 (REGISTER_PREFIX): Define as "".
2341 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
2343 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2345 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
2348 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2350 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
2351 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
2353 2002-06-21 Matt Thomas <matt@3am-software.com>
2355 * config/vax/netbsd.h: Adjust a comment.
2356 (TARGET_DEFAULT): Redefine as 0.
2358 2002-06-21 Richard Henderson <rth@redhat.com>
2360 * bb-reorder.c (make_reorder_chain_1): Search harder for the
2361 vax casesi fallthru edge.
2362 * cfglayout.c (cleanup_unconditional_jumps): Use
2363 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
2364 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
2365 block after ADDR_VEC.
2367 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2369 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2371 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
2373 * cpperror.c (cpp_error): For traditional CPP, default to
2374 diagnostics on pfile->line.
2375 * cpplib.c (prepare_directive_trad): Set line number for
2376 diagnostics for #define too.
2377 * cpptrad.c (skip_whitespace): Skip comments properly.
2378 (_cpp_expansions_different_trad): Initialize quote2.
2380 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
2382 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
2383 * config/mmix/mmix.h: Ditto.
2384 * config/mmix/mmix-protos.h: Ditto.
2385 * config/mmix/mmix.c: Ditto. Fix typo in comment.
2386 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
2387 comment. Comment extra CC modes.
2389 2002-06-20 Jan Hubicka <jh@suse.cz>
2391 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
2392 (scope_to_insns_finalize): Do not call set_block_levels; handle
2394 (choose_inner_scope): New.
2395 * rtl.h (choose_inner_scope): Declare.
2397 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
2399 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
2401 * pa.c (pa_asm_output_mi_thunk): Likewise.
2402 (n_deferred_plabels): Change type to size_t.
2403 (output_deferred_plabels, output_call): Use size_t instead of int.
2405 2002-06-20 Richard Henderson <rth@redhat.com>
2408 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
2409 pattern and adjust constraints for coldfire.
2411 2002-06-20 Richard Henderson <rth@redhat.com>
2413 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
2415 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2417 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
2419 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2421 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
2423 2002-06-20 Stan Shebs <shebs@apple.com>
2425 * dominance.c: Include errors.h instead of error.h.
2427 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
2429 * cppexp.c (cpp_interpret_integer): Don't force traditional
2430 numbers to be unsigned.
2431 * cpplib.c (prepare_directive_trad): Set line number for
2433 * cpptrad.c (scan_out_logical_line): Continue scanning out
2435 * gcc.c (trad_capable_cpp): Use cc1 always.
2437 2002-06-20 Jeffrey Law <law@redhat.com>
2439 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
2440 elimination in leaf functions by default yet.
2442 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
2444 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
2446 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2448 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
2450 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2451 Fixes PR other/6836.
2453 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
2454 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2456 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
2458 * basic-block.h: Do not include et-forest.h
2459 (dominance_info): Declare as struct dominance-info.
2460 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
2462 * dominance.c (struct dominance_info): Define.
2463 (BB_NODE, SET_BB_NODE): New macros.
2464 (bb_hash_func, bb_eq_func): Kill.
2465 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
2466 nearest_common_dominator, dominated_by_p, recount_dominator,
2467 add_to_dominance_info, delete_from_dominance_info): update for new
2469 (get_dominated_by, redirect_immediate_dominators): Rewrite using
2471 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
2472 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
2475 * et-forest.h: Update copyright; revamp all function to operate on
2477 (et_forest_value): Kill.
2478 (et_forest_enumerate_sons, et_forest_node_value): New.
2479 * et-forest.c: Update copyright.
2480 * et-forest.h: Update copyright; revamp all function to operate on
2482 (et_forest_value): Kill.
2483 (et_forest_enumerate_sons, et_forest_node_value): New.
2485 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2487 * basic-block.h: Inlude et-forest.h
2488 (basic_block_def): Kill dominator.
2489 (dominance_info): New type.
2490 (loops): Use dominace_info.
2491 (dominace handling functions): Take dominace_info as argument
2493 (create_preheader): Likewise.
2494 * cfg.c (entry_exit_blocks): Kill dominator.
2495 (dump_flow_info): Do not dump dominators.
2496 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
2498 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
2499 (flow_loops_pre_header_scan, make_forwarder_block,
2500 canonicale_loop_headers, flow_loops_find): Likewise.
2501 * dominance.c: Include error.h
2502 (idoms_to_doms): Kill.
2503 (bb_hash_func, bb_eq_func): New static functions.
2504 (debug_dominace_info): New global function.
2505 (calculate_dominance_info): Use new et forest structure.
2506 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
2507 get_dominated_by, redirect_immediate_dominators,
2508 nearest_common_dominator, dominated_by_p, verify_dominators,
2509 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
2510 delete_from_dominance_info): New global functions.
2511 * gcse.c (domnators): CHange to dominance_info.
2512 (alloc_hoist_mem): Do not alloc dominators
2513 (free_code_hoist_mem): Use free_dominance_info.
2514 (compute_code_hoist_data): Use dominance_info.
2515 (hoist_code): Likewise.
2516 * ifcvt.c (post_dominators): Likewise.
2517 (find_if_case_2, if_convert): Likewise.
2518 * predict.c (process_note_predictions, process_note_prediction,
2519 estimate-probability): Likewise.
2520 * sched-rgn.c (find_rgns, init_regions): Likewise.
2521 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
2522 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
2523 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
2524 find_evaluations, convert_to_ssa): Likewise.
2525 * ssa.h (compute_dominance_frontiers): Likewise.
2527 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2529 * Makefile.in (et-forest.c): Add.
2530 * et-forest.c: New file.
2531 * at-forest.h: New file.
2533 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2535 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
2536 array size calculation.
2537 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
2540 * diagnostic.c (diagnostic_kind_text): Const-ify.
2541 * gengtype.c (lang_names): Likewise.
2543 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
2545 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2547 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2549 * config/sol2.h: New file.
2550 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2551 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2552 (sparc-*-chorusos*): Likewise.
2553 (sparc-*-elf*): Likewise.
2554 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2555 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2556 (sparc-hal-solaris2*): Likewise.
2557 (sparc-*-solaris2*): Likewise.
2558 (sparclite-*-elf*): Likewise.
2559 (sparc86x-*-elf*): Likewise.
2560 (sparc64-*-elf*): Likewise.
2562 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2564 (ASM_SPEC): Override config/sol2.h version for now.
2565 Removed obsolete GAS_REJECTS_MINUS_S variant.
2566 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2567 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2568 (TARGET_OS_CPP_BUILTINS): Likewise.
2570 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2571 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2573 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2574 (ASM_CPU_SPEC): Define.
2575 (SUBTARGET_EXTRA_SPECS): Define.
2577 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2578 in config/sparc/sol2.h.
2579 (ASM_SPEC): Moved to config/sol2.h.
2580 (CPP_CPU_SPEC): Simplified.
2581 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2583 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2584 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2585 STARTFILE_ARCH64_SPEC.
2586 (STARTFILE_SPEC): Moved to config/sol2.h
2587 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2588 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2589 (LINK_ARCH64_SPEC): Simplified.
2590 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2591 (LINK_SPEC): Moved to config/sol2.h
2593 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2595 Use BITS_PER_WORD for size.
2596 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2597 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2598 (CPP_PREDEFINES): Removed OS-specific part handled by
2599 TARGET_OS_CPP_BUILTINS.
2600 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2601 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2602 (ASM_SPEC): Moved to config/sol2.h.
2603 (PREFERRED_DEBUGGING_TYPE): Likewise.
2604 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2605 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2606 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2607 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
2609 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2610 * config/i386/sol2gas.h: Removed.
2612 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2614 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2616 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
2618 * gcc.c-torture/execute/simd-1.c: New.
2620 * gcc.dg/simd-1.c: New.
2622 * doc/extend.texi (Vector Extensions): Document that we can
2623 specify simd types not specifically supported by the hardware.
2624 Document that simd types can be used as function arguments.
2625 Document that signness does make a difference in SIMD types.
2626 Misc cleanups and revisions to the vector extensions section.
2628 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2631 * expr.c (vector_mode_valid_p): New.
2633 * expr.h: Add vector_mode_valid_p.
2635 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2637 * c-common.c (type_for_mode): Always build vector nodes regardless
2638 of VECTOR_MODE_SUPPORTED_P.
2639 (handle_mode_attribute): Error if we can't emulate a nonexisting
2641 (handle_vector_size_attribute): Same.
2643 * optabs.c (expand_binop): Open-code vector operations.
2644 (expand_unop): Open-code vector unops.
2645 (expand_vector_binop): New.
2646 (expand_vector_unop): New.
2648 * c-typeck.c (build_binary_op): Allow vectors in binops.
2649 Allow vectors in conditional operatiors.
2650 (build_unary_op): Allow vectors in unary minus.
2652 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2655 2002-05-20 Richard Henderson <rth@redhat.com>
2657 * c-common.c (c_common_get_alias_set): Correctly handle characters.
2658 Rearrange order of expressions; don't handle vectors here.
2659 * alias.c (get_alias_set): Let vectors match their components.
2661 2002-06-19 Chris Demetriou <cgd@broadcom.com>
2663 * config/mips/mips.c (mips_emit_prefetch): Use hints which
2664 match desired locality.
2666 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2668 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2669 (h8300_insert_attributes): New.
2671 2002-06-19 Akim Demaille <akim@epita.fr>
2673 * c-parse.in (initelt: identifier ':' initval): Add an empty
2674 action to fix a type clash.
2675 (aliasdecl, classdef): Add the missing closing `;'.
2677 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2678 $$ = $1 type clashes.
2680 2002-06-19 Eric Christopher <echristo@redhat.com>
2682 * config/mips/mips.c (symbol_operand): New function.
2683 (mips_emit_prefetch): Ditto.
2684 * config/mips/mips-protos.h: Define.
2685 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2686 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2687 (LEGITIMIZE_ADDRESS): Ditto.
2688 * config/mips/mips.md (prefetch, prefetch_si_address,
2689 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2691 2002-06-19 Eric Christopher <echristo@redhat.com>
2693 * config/fp-bit.h: Add unordered defines for gofast.
2695 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
2697 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2698 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2699 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2700 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2701 checking and without it.
2702 (decl_name, decl_mode_check_failed, regexp_name,
2703 regexp_mode_check_failed): New functions.
2704 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2705 gen_presence_set, gen_absence_set, gen_automaton,
2706 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2707 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2708 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2709 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
2710 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2711 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
2712 (decl_hash, decl_eq_p): Use the macros.
2713 (find_decl): Ditto. Set up mode of work_decl.
2714 (process_excls, process_presence_absence, process_decls,
2715 check_automaton_usage, process_regexp, process_regexp_decls,
2716 check_usage, loop_in_regexp, check_loops_in_regexps,
2717 process_regexp_cycles, add_advance_cycle_insn_decl,
2718 initiate_states, initiate_excl_sets,
2719 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2720 transform_2): Use the macros.
2721 (transform_3): Ditto. Check mode before making transformations of
2723 (regexp_transform_func, transform_insn_regexps,
2724 process_unit_to_form_the_same_automaton_unit_lists,
2725 form_the_same_automaton_unit_lists_from_regexp,
2726 form_the_same_automaton_unit_lists,
2727 process_seq_for_forming_states, process_alts_for_forming_states,
2728 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2729 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2730 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2731 units_to_automata_heuristic_distr, create_ainsns,
2732 units_to_automata_distr, create_automata): Use the macros.
2733 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
2734 (longest_path_length, min_issue_delay_pass_states,
2735 output_dead_lock_vect, output_tables, output_insn_code_cases,
2736 output_internal_insn_latency_func, output_print_reservation_func,
2737 output_description, output_automaton_units, generate): Use the
2739 (make_insn_alts_attr): Ditto. Check case when there are not
2740 alternatives in the reservation.
2741 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2742 make_bypass_attr, form_important_insn_automata_lists,
2743 expand_automata): Use the macros.
2745 2002-06-20 Tim Josling <tej@melbpc.org.au>
2747 * Makefile.in: Clean up code to check for misspecified languages
2748 in enable-languages.
2750 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
2752 * cpptrad.c (_cpp_replacement_text_len): initialize len.
2754 2002-06-19 Jason Merrill <jason@redhat.com>
2756 * Makefile.in (unstrap, restrap): New targets.
2757 (bootstrap): Mention restrap.
2759 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
2761 * except.c (ehl_free): Remove.
2763 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2764 builtin_define and builtin_define_std.
2766 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2768 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2769 (sCOND): Restrict operand class so that gcc knows how to reload them.
2770 (bitfield_set): Merge two unnamed insn's using alternatives.
2771 (call_value): Remove constraint on unused uperand.
2772 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2773 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
2775 * longlong.h (count_trailing_zeros): Escape newline and beautify.
2777 2002-06-19 Mark Mitchell <mark@codesourcery.com>
2779 * Makefile.in (QMTEST_DIR): Simplify definition.
2781 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
2783 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2786 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
2788 * cpphash.h (struct cpp_reader): Make date and time strings.
2789 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2790 _cpp_replacement_text_len): New.
2791 * cppinit.c (cpp_create_reader): Update.
2792 (init_builtins): Register appropriate builtins for -traditional-cpp.
2793 * cppmacro.c (new_number_token): Remove.
2794 (_cpp_builtin_macro_text): New.
2795 (builtin_macro): Use it.
2796 (cpp_macro_definition): Update to handle traditional macros.
2797 * cppmain.c (cb_line_change): Don't do column positioning for
2799 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
2801 (skip_whitespace): Fix.
2802 (maybe_start_funlike): Don't set state.parsing_args.
2803 (scan_out_logical_line): Remove duplicate error. Use lex_state
2804 rather than state.parsing_args.
2805 (push_replacement_text): Handle builtins.
2806 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2808 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2809 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2811 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2812 attribute __always_inline__.
2814 2002-06-18 Bob Wilson <bob.wilson@acm.org>
2816 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2817 when generating the call to _mcount.
2818 (NO_PROFILE_COUNTERS): Define.
2820 2002-06-18 Richard Henderson <rth@redhat.com>
2822 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2825 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
2827 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2828 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2829 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2830 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
2832 * sh-protos.h (sh_pr_interrupt): Declare.
2833 * sh.c (sh_pr_interrupt): New function.
2834 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2835 (sh_hard_regno_rename_ok): Likewise.
2836 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2838 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
2840 * rtl.def (DEFINE_AUTOMATON): Add description of new options
2841 `time' and `v'. Fix incorrect description of option `w'.
2843 * doc/md.texi: Ditto.
2845 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2846 (gen_automata_option): Process the new options.
2847 (transform_2, transform_3): Initialize some variables.
2848 (initiate_automaton_gen): Use the new macros.
2850 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
2852 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2853 (mips_set_return_address, mips_restore_gp): Declare.
2854 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2855 (current_frame_info): Remove.
2856 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2857 * config/mips/mips.c: Remove uses of current_frame_info.
2858 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
2859 (struct machine_function): Add 'frame' and 'insns_len'.
2860 (current_frame_info, zero_frame_info): Remove.
2861 (mips_restore_gp, mips_set_return_address): New.
2862 (mips_initial_elimination_offset): New.
2863 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2864 (eh_return define_split): Use mips_set_return_address.
2866 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
2868 * cpplib.c (dtable): Update.
2869 (end_directive): Decrement expansion prevention count.
2870 Clear state.in_expression.
2871 (prepare_directive_trad): Set state.in_expression.
2872 Increment expansion prevention count.
2873 * cpptrad.c (enum ls): New.
2874 (_cpp_overlay_buffer): Set overlaid_buffer.
2875 (_cpp_remove_overlay): Use overlaid_buffer.
2876 (_cpp_read_logcial_line_trad): Update buffer when it might
2878 (scan_out_logical_line): Handle state transitions for assertions
2879 and defined() in #if, and for funlike invocations including the
2880 directive case. Handle '<' and '>' as a quote mechanism in
2881 #include. Warn about unterminated macro invocations.
2882 * cpphash.h (struct lexer_state): New member in_expression.
2883 (struct cpp_reader): New member overlaid buffer.
2885 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2887 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2890 2002-06-18 Alan Modra <amodra@bigpond.net.au>
2892 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2894 * doloop.c (doloop_optimize): Extract pattern from insn.
2896 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
2898 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2900 2002-06-17 Jeff Law <law@redhat.com>
2902 * libgcc2.c: Do not include symcat.h or machmode.h.
2904 2002-06-17 Richard Henderson <rth@redhat.com>
2907 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2909 2002-06-17 Tom Tromey <tromey@redhat.com>
2911 * dwarfout.c: Include function.h.
2913 2002-06-17 Andreas Schwab <schwab@suse.de>
2915 * print-rtl.c (print_rtx): Print space before vector, not after.
2916 (debug_rtx): Clear sawclose before printing.
2917 (debug_rtx_list): Print newline after each list element.
2918 (debug_rtx_range): Likewise.
2920 2002-06-17 Richard Henderson <rth@redhat.com>
2922 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2923 (current_function_funcdef_no): Similarly.
2924 * function.c (funcdef_no): Similarly.
2925 (prepare_function_start): Set current_function_funcdef_no.
2926 (expand_function_start): Don't set current_function_profile_label_no.
2927 * dwarf2out.h (current_funcdef_number): Remove.
2928 * dwarf2out.c (current_funcdef_number): Remove. Replace with
2929 current_function_funcdef_no throughout.
2930 * dwarfout.c, vmsdbgout.c: Similarly.
2931 * except.c (sjlj_funcdef_number): Remove.
2932 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2933 (output_function_exception_table): Likewise.
2934 * final.c (profile_function): Use current_function_funcdef_no
2935 instead of current_function_profile_label_no.
2937 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
2939 * sched-ebb.c (init_ready_list): Check INSN_P first.
2941 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
2943 * sh.md (divsi3): Update way how to find insns in a sequence.
2945 * reload1.c (merge_assigned_reloads): Don't change reloads
2946 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2947 to RELOAD_OTHER when there are conflicting input reloads.
2949 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
2951 * function.c (epilogue_done): Correctly build a sequence of insns for
2954 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
2956 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
2959 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
2961 2002-06-16 Richard Henderson <rth@redhat.com>
2963 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2964 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2966 2002-06-16 Richard Henderson <rth@redhat.com>
2969 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
2971 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
2973 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
2974 * config/i386/i386-aout.h, config/i386/i386elf.h,
2975 config/i386/sysv4.h: Remove CPP_PREDEFINES.
2976 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
2977 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
2978 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
2979 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
2980 CPP_PREDEFINES and part of CPP_SPEC.
2981 * config/i386/sysv4-cpp.h: New.
2983 2002-06-16 Richard Henderson <rth@redhat.com>
2986 * dwarf2out.c (modified_type_die): Don't assign the qualified die
2987 to the unqualified type.
2989 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
2991 * i386-protos.h (x86_field_alignment): Declare.
2992 * i386.c (x86_field_alignment): Define.
2993 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
2994 (BIGGEST_FIELD_ALIGNMENT): Kill.
2996 2002-06-16 Richard Henderson <rth@redhat.com>
2998 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
3000 2002-06-16 Richard Henderson <rth@redhat.com>
3002 * c-common.c (flag_ms_extensions): Move from c++ front end.
3003 * c-common.h (flag_ms_extensions): Declare.
3004 * c-decl.c (c_decode_option): Add -fms-extensions.
3005 (grokfield): Don't accept anonymous structures in ISO C mode;
3006 accept only unnamed anonymous structures in GNU C mode; accept
3007 Plan 9 extensions in MS mode.
3008 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
3009 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
3010 (extension): Clear flag_iso.
3011 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
3013 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
3016 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
3017 early if current_function_epilogue_delay_list is non-empty.
3018 * config/cris/cris.md ("return"): Add sanity check asserting that
3019 current_function_epilogue_delay_list is empty.
3021 2002-06-16 Jeff Law <law@redhat.com>
3023 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
3024 sharing of hard registers.
3026 * toplev.c (rest_of_compilation): Remove redundant conditional.
3028 * toplev.c (rest_of_compilation): Perform a simpler, less costly
3029 cleanup of the CFG when not optimizing.
3031 2002-06-16 Alan Modra <amodra@bigpond.net.au>
3033 * gcc.c (main): Correct startfile_prefix_spec check.
3035 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3037 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
3038 include both darwin.o and rs6000-c.o.
3040 2002-06-15 Roger Sayle <roger@eyesopen.com>
3042 * expr.c (compare_from_rtx): Call simplify_relational_operation
3043 on all comparisons, not just those between integer constants,
3044 with the correct (possibly unsigned) comparison code.
3045 (do_compare_rtx_and_jump): Likewise.
3047 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3049 * Makefile.in (tm_defines): New configuration variable.
3050 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
3051 Pass tm_defines in TM_DEFINES.
3052 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
3053 * config.gcc (tm_defines): New configuration variable.
3054 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
3055 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
3056 * configure.in: Substitute tm_defines.
3057 * configure: Rebuilt.
3058 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
3059 * doc/install.texi: Update.
3060 * pa/pa-700.h: Delete file.
3061 * pa/pa-7100.h: Delete file.
3063 2002-06-15 Roger Sayle <roger@eyesopen.com>
3065 * fold-const.c (comparison_to_compcode): New function to convert
3066 an comparison TREE CODE into a bit-based representation.
3067 (compcode_to_comparison): New function to convert from this bit
3068 based representation back to a comparison TREE CODE.
3069 (fold_truthop): Simplify (x<y) && (x==y) and related composite
3072 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
3074 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
3076 * stor-layout.c (compute_record_mode): Remove check for
3077 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
3078 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
3079 MEMBER_TYPE_FORCES_BLK.
3081 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
3083 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
3085 2002-06-14 Jeff Sturm <jsturm@one-point.com>
3087 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
3089 2002-06-14 Steve Ellcey <sje@cup.hp.com>
3091 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
3092 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
3093 * configure, config.in: Regenerate.
3095 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3097 * loop.c (check_final_value): Use v->always_executed
3098 instead of v->always_computable.
3099 * unroll.c (final_giv_value): Don't calculate the final
3100 value as a function of the biv if the giv is not computed
3101 for every loop iteration.
3103 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3105 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
3107 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3110 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
3111 the truncation down when the target type is signed.
3112 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
3113 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
3114 the conversion if the target type is a smaller type.
3116 2002-06-14 Richard Henderson <rth@redhat.com>
3118 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
3119 earlier. Re-factor comparisons vs extrema.
3121 2002-06-14 Richard Henderson <rth@redhat.com>
3123 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
3125 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3127 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
3128 * sched-deps.c (add_dependence): Likewise.
3129 (group_leader): Likewise.
3130 * sched-rgn.c (init_ready_list): Likewise.
3131 * doc/rtl.texi: Adjust accordingly.
3133 2002-06-13 Jeffrey Law <law@redhat.com>
3135 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
3136 null pointer checks were eliminated. Update prototype.
3137 (delete_null_pointer_checks): Similarly.
3138 * rtl.h (delete_null_pointer_checks): Update prototype.
3139 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
3140 delete_null_pointer_checks deletes one or more null
3141 pointer checks. Do not run cleanup_cfg before gcse, the
3142 CFG is accurate and optimized at that point..
3144 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
3147 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3149 * Makefile.in (libgcc.mk): Depend on specs.
3151 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
3153 * sh.md (mulsi3): Update way how to find insns in a sequence.
3155 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3157 * sh.h: Define HARD_REGNO_RENAME_OK
3158 * sh.c: sh_hard_regno_rename_ok: New. If current function has
3159 interrupt_handler attribute, only registers saved on stack are OK.
3160 * sh-protos.h: Declare sh_hard_regno_rename_ok.
3162 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
3164 * config/sh/sh.md (jump): Emit jump insn.
3165 (call_pcrel): Get pattern of the result of gen_call_site.
3166 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
3168 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
3170 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
3171 * cpptrad.c: Update comments.
3172 (skip_whitespace, copy_comment): Take a new parameter.
3173 (skip_escaped_newlines): Don't duplicate escaped newline test.
3174 (copy_comment): Different location for CUR, decide here how
3175 to copy / replace the comment.
3176 (skip_whitespace): Copy whitespace.
3177 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
3178 (scan_out_logical_line): Let copy comment handle keeping or
3180 (scan_parameters, _cpp_create_trad_definition): Update.
3182 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
3184 * reload.c (get_secondary_mem,find_reloads_address,
3185 find_reloads_address_1): Pass reference to MEM to find_reloads_address
3186 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
3188 2002-06-13 Jessica Han <jessica@cup.hp.com>
3190 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3191 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3192 * doc/tm.texi: Document them.
3193 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3194 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3195 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
3196 (ASM_OUTPUT_FDESC): Likewise.
3198 2002-06-13 Eric Christopher <echristo@redhat.com>
3200 * diagnostic.c (output_format): Fix thinko.
3202 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
3204 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
3205 (DWARF2_UNWIND_INFO): Define to 0.
3207 * config/sh/sh.c (calc_live_regs): Don't use initial_value
3208 optimization for PR_MEDIA_REG.
3210 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3212 * cpphash.h (_cpp_lex_identifier_trad): Remove.
3213 * cpplib.c (end_directive): Don't skip, always remove overlay
3215 (prepare_directive_trad): Handle NULL pfile->directive.
3216 (_cpp_handle_directive): Always call prepare_directive_trad
3218 * cppmain.c (check_multiline_token): Rename account_for_newlines,
3220 (scan_translation_unit_trad): Use it.
3221 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
3222 output, get escaped newline in comment close correct.
3223 (check_output_buffer, skip_whitespace): Update.
3224 (_cpp_lex_identifier_trad): Remove.
3225 (scan_out_logical_line): Handle -C and comments in directives
3228 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3230 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
3231 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3232 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
3233 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
3234 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
3235 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
3236 (SELECT_SH5_COMPACT_NOFPU): Likewise.
3237 (TARGET_SWITCHES): Use them.
3238 (TARGET_CPU_DEFAULT): Define if not already defined.
3239 (TARGET_DEFAULT): Use it.
3240 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
3241 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
3242 * config/sh/t-monolib: New file.
3244 2002-06-13 Roger Sayle <roger@eyesopen.com>
3246 * toplev.c (rest_of_compilation): Simplify (and correct) the
3247 logic of the first delete-null-pointer-checks pass.
3249 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3251 * i386.c (ix86_expand_movstr): Fix pasto.
3253 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3255 * reload.c (find_valid_class): Fix thinko in my previous patch.
3257 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3259 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
3260 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
3261 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
3262 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
3264 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3266 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3269 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3271 * diagnostic.c (output_format): Recognize "%H" as a format
3272 specifier for a location_t.
3273 (text_specifies_location): New function.
3274 (diagnostic_set_info): Use it.
3276 2002-06-13 Jeffrey Law <law@redhat.com>
3278 * emit-rtl.c (static_regno_reg_rtx): Define.
3279 (init_emit_once): Initialize static_regno_reg_rtx.
3280 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
3281 of building new hard reg objects once per function.
3282 (gen_rtx_REG): Try to share hard regs.
3283 * regclass.c (init_fake_stack_mems): New function broken out from
3285 * rtl.h (init_fake_stack_mems): Declare.
3286 * toplev.c (lang_independent_init): Call init_regs before
3287 init_emit_once. Call init_fake_stack_mems after init_emit_once.
3289 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
3291 * alias.c (argument_registers): Remove.
3292 (init_alias_once): Initialize static_reg_base_value here. Remove
3293 initialization of argument_registers.
3294 (init_alias_once_per_function): Remove.
3295 (init_alias_analysis): Copy all the entries from static_reg_base_value
3296 into new_reg_base_value all at once.
3297 * rtl.h (init_alias_once_per_function): Remove declaration.
3298 * function.c (prepare_function_start): Do not call
3299 init_alias_once_per_function.
3301 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
3302 starting a sequence and emitting an INSN.
3304 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
3306 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
3308 2002-06-13 David S. Miller <davem@redhat.com>
3310 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
3312 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3314 * cpplib.c (end_directive): Handle line skipping. Only remove
3315 the rest of the line if the directive was valid.
3316 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
3317 expanding a traditional macro.
3318 * cpptrad.c (recursive_macro): New.
3319 (read_logical_line_trad): Handle skipping.
3320 (scan_out_logical_line): Continue after a successful directive.
3321 Don't expand macros whilst skipping, or if recursing.
3322 (_cpp_create_trad_definition): scan_out_logical_line now sets
3323 the output current position.
3325 2002-06-12 Eric Christopher <echristo@redhat.com>
3327 From Chris Demetriou <cgd@broadcom.com>
3328 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
3330 (ISA_HAS_MADD_MSUB): Ditto.
3331 (ISA_HAS_NMADD_NMSUB): Ditto.
3333 2002-06-12 Eric Christopher <echristo@redhat.com>
3335 * config.gcc: Consolidate little endian handling and
3336 little/big endian targets.
3337 * config/mips/elfl.h: Remove file.
3338 * config/mips/elfl64.h: Ditto.
3339 * config/mips/ecoffl.h: Ditto.
3340 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
3342 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3344 * gengtype.h (xvasprintf): New prototype.
3345 (xasprintf): New prototype.
3347 (get_output_file): Return an outf_p.
3348 (header_file): Is now an outf_p.
3349 (base_files): Now are outf_p.
3351 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
3352 rather than stdio operations. Use xasprintf in a few places,
3356 (struct filemap): Delete.
3358 (output_files): New.
3360 (create_file): Create an outf_p. Add parameter to indicate output
3361 file name, change all callers.
3362 (open_base_files): Create gtype-desc.c here.
3363 (get_output_file_with_visibility): Rewrite.
3364 (get_output_file_name): Just look at 'name' field in struct outf.
3365 (close_output_files): Rewrite.
3367 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
3369 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3370 (MASK_G_FLOAT): Define.
3371 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
3372 (TARGET_SWITCHES): Likewise.
3373 (TARGET_DEFAULT): Likewise.
3375 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
3377 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
3378 * config/mips/mips.c (mips_output_filename): Don't print a
3379 ".file" directive if we are using DWARF-2.
3380 (mips_output_function_prologue): Do not emit source file
3381 name for TARGET_GAS.
3383 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
3385 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
3386 decide whether emit the short opcode.
3387 * i386.h (x86_shift1): Declare.
3388 (TARGET_SHIFT1): New macro.
3389 * i386.c (x86_shift1): New global variable.
3391 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
3392 unconditionally; make loop to rebuild CFG; kill unnecesary
3393 find_basic_block calls; kill compute_bb_for_insn call.
3394 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
3395 * haifa-sched.c (sched_init): Likewise.
3396 * ssa-ccp.c (ssa_const_prop): Likewise.
3397 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3399 2002-06-11 David S. Miller <davem@redhat.com>
3401 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
3404 2002-06-11 Richard Henderson <rth@redhat.com>
3406 * c-common.c (builtin_define_type_max): New.
3407 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
3408 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
3410 From Joseph S. Myers:
3411 * glimits.h: Rewrite to expect the double underscore definitions
3414 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
3415 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
3416 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
3417 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3418 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
3419 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
3420 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
3421 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
3423 2002-06-11 Richard Henderson <rth@redhat.com>
3425 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
3426 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
3427 (code_for_builtns): Update.
3428 (alpha_init_builtins): Add __builtin_thread_pointer and
3429 __builtin_set_thread_pointer.
3430 (alpha_expand_builtin): Handle void builtins.
3431 * doc/extend.texi (Alpha Built-in Functions): Update.
3433 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
3436 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
3438 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3440 * config.gcc: Make the name of the extra-modes file adjustable
3442 (s390x, strongarm, xscale stanzas): Use this facility.
3443 * configure.in: Update to match.
3444 * configure: Regenerate.
3446 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
3448 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
3449 max/mins as unsigned GE compares.
3451 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
3453 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
3454 * config/vax/bsd.h: New file.
3455 * config/vax/netbsd.h: Add missing notice.
3456 (CPP_PREDEFINES): Remove.
3457 (TARGET_OS_CPP_BUILTINS): Define.
3458 (CPP_SPEC): Use NETBSD_CPP_SPEC.
3459 * config/vax/openbsd.h: Update copyright years.
3460 (CPP_PREDEFINES): Remove.
3461 (TARGET_OS_CPP_BUILTINS): Define.
3462 * config/vax/ultrix.h: Likewise.
3463 * config/vax/vaxv.h: Likewise.
3464 * config/vax/vms.h: Likewise.
3465 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
3466 (CPP_PREDEFINES, CPP_SPEC): Remove.
3468 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
3470 * i386.md (addqi_1_slp, subqi_1_slp
3471 (andqi_ext0, testqi_ext0): Remove unnecesary check.
3472 (addhi*, addqi*): Simplify "dec" condition.
3473 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
3474 (and, or, xor to QImode splitters): New.
3477 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
3478 (andqi_ext_1_rex64): New.
3482 (rotrqi3*_slp): New.
3483 (rotlqi3*_slp): New.
3485 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3487 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
3489 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
3490 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3491 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
3492 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
3493 __LONG_DOUBLE_128__ setting, _CALL_* setting.
3494 (CPP_DEFAULT_SPEC): Delete.
3495 (CPP_FLOAT_DEFAULT_SPEC): Delete.
3496 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
3497 (CPP_SYSV_DEFAULT_SPEC): Delete.
3498 (CPP_ENDIAN_BIG_SPEC): Delete.
3499 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3500 (CPP_ENDIAN_SPEC): Delete.
3501 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
3502 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
3503 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
3504 cpp_longdouble_default.
3505 * config/rs6000/softfloat.h: Delete.
3506 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
3507 (EXTRA_SPECS): Delete cpp_cpu.
3508 (TARGET_CPU_CPP_BUILTINS): New.
3509 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
3511 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
3512 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
3513 (CPP_DEFAULT_SPEC): Delete.
3514 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
3515 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
3516 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
3517 (CPP_DEFAULT_SPEC): Delete.
3518 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3519 (CPLUSPLUS_CPP_SPEC): Likewise.
3520 (CPP_CPU_SPEC): Delete.
3521 (CPP_DEFAULT_SPEC): Delete.
3522 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3523 (CPLUSPLUS_CPP_SPEC): Likewise.
3524 (CPP_CPU_SPEC): Delete.
3525 (CPP_DEFAULT_SPEC): Delete.
3526 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
3527 (CPP_DEFAULT_SPEC): Delete.
3528 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
3529 (CPP_DEFAULT_SPEC): Delete.
3531 * doc/gty.texi: Small updates.
3533 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
3535 * objc/objc-act.c (warn_with_ivar): Adjust calls to
3536 diagnostic_count_error.
3537 (warn_with_method): Likewise.
3539 * diagnostic.h (warnings_are_errors_message): New field of
3541 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
3543 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3544 (diagnostic_count_diagnostic): Make aware of other kinds of
3546 (diagnostic_initialize): Initialize warnings_are_errors_message field.
3548 2002-06-11 Tom Tromey <tromey@redhat.com>
3551 * fold-const.c (fold_convert): Don't modify existing tree's type.
3553 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3555 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3557 2002-06-11 Richard Henderson <rth@redhat.com>
3559 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3561 2002-06-11 Richard Henderson <rth@redhat.com>
3563 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
3564 DWARF2_UNWIND_INFO is false.
3566 2002-06-11 Bob Wilson <bob.wilson@acm.org>
3568 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3570 * config/s390/s390.c (emit_prologue): gen_store_multiple
3571 returns an insn now, not a pattern.
3573 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3575 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3578 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3580 * i386.c (x86_promote_QImode): Set for Athlon
3581 (x86_fast_prefix): New global variable.
3582 (x86_arch_always_fancy_math_387): Fix formating.
3583 * i386.h (x86_fast_prefix): Declare
3584 (TARGET_FAST_PREFIX): define.
3585 * i386.md (and to strict_low_part, HI to SI
3586 promoting splitter): Use new macro.
3588 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3590 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3592 * Makefile.in (distclean): Delete junk left in testsuite
3595 2002-06-11 Jeffrey Law <law@redhat.com>
3597 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3598 last insn created by the splitter.
3600 * caller-save.c (init_caller_save): Move creation of SAVEINSN
3601 and RESTINSN into into the scope of the sequence.
3603 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3606 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3608 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3609 not the pattern. So extract the pattern from the insn.
3611 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3613 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3615 * config/s390/s390.md (movsi): Only use floating point
3616 register alternatives when operands are already fprs.
3617 (movdi_31, movdi_64): Likewise.
3619 2002-06-11 David S. Miller <davem@redhat.com>
3621 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3622 Only run RTX equality checks on INSN_P rtl.
3624 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3626 * config/s390/s390.md (reload_base, ltorg): Remove.
3627 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3628 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3629 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3630 s390_asm_output_pool_prologue): Likewise.
3631 * s390.h (s390_pool_start_insn): Likewise.
3633 * s390.c (s390_output_symbolic_const): Remove support for
3634 old-style pool chunks.
3635 (s390_function_epilogue): Likewise.
3636 (s390_output_constant_pool): Likewise. Also, fix incorrect
3637 alignment for 64-bit literal pools.
3638 (print_operand_address): Remove 'y' and 'Y' format flags.
3639 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3640 old-style pool chunks.
3641 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3642 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3643 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3645 * s390.c (consttable_operand): New function.
3646 * s390-protos.h (consttable_operand): Declare it.
3647 * s390.h (PREDICATE_CODES): Add consttable_operand.
3648 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3649 consttable_sf, consttable_df, pool_start_31, pool_end_31,
3650 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3651 * s390.c (struct constant, struct constant_pool): New data types.
3652 (constant_modes, gen_consttable): New variables.
3653 (s390_start_pool, s390_end_pool, s390_add_pool,
3654 s390_dump_pool, s390_free_pool): New functions.
3655 (s390_chunkify_pool): Completely reimplement literal pool
3658 * s390.c (s390_pool_overflow): New variable.
3659 * s390.h (s390_pool_overflow): Declare it.
3660 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
3661 jumps in literal pool overflow situations.
3663 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
3664 (s390_frame_info): Account for possible use of RETURN_REGNUM
3665 by new literal pool overflow code.
3666 (s390_emit_prologue): Likewise.
3668 2002-06-05 David S. Miller <davem@redhat.com>
3670 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3671 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3672 emit_insns_before_scope, emit_insns_after,
3673 emit_insns_after_scope): Delete declaration.
3674 * ada/misc.c (insert_code_for): Use emit_insn* instead of
3676 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3677 (alpha_set_memflags): Fix comment.
3678 (set_frame_related_p): Use get_insns instead of gen_sequence.
3679 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3681 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3683 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3684 * config/fr30/fr30.c (fr30_move_double): Likewise.
3685 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3687 * config/ia64/ia64.c (spill_restore_mem): Likewise.
3688 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3690 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3691 instead of gen_sequence.
3692 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3693 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3694 * config/sh/sh.c (sh_need_epilogue): Likewise.
3695 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3697 (setjmp pattern and split): Use them to avoid splitter which emits
3699 * genattrtab.c (main): Emit include of function.h
3700 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3701 get_insns instead of gen_sequence.
3702 * config/cris/cris.c (cris_split_movdx): Likewise.
3703 * emit-rtl.c (emit_insns*): Kill.
3704 (try_split): Expect insn list instead of SEQUENCE.
3705 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3706 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3707 Make them abort if a SEQUENCE is given and RTL checking is
3709 (emit_*_scope): Don't forget to set scope on final insn.
3710 (gen_sequence): Move from here...
3711 * ssa.c (gen_sequence): To here as private function.
3712 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3714 (expand_builtin_return, expand_builtin_mathfn): Likewise.
3715 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3716 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3717 (expand_builtin_expect_jump): Use get_insns and fix comments.
3718 * calls.c (try_to_integrate): Use emit_insn_foo.
3719 (expand_call, emit_library_call_value_1): Likewise.
3720 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3721 (emit_move_insn_1): Use get_insns instead of gen_sequence.
3722 (expand_expr): Use emit_insn_foo.
3723 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3724 * except.c (build_post_landing_pads): Likewise.
3725 * flow.c (attempt_auto_inc): Likewise.
3726 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3727 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3728 * function.c (fixup_var_refs_insn): Use get_insns instead of
3730 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3731 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3732 (fixup_stack_1, purge_addressof_1, expand_main_function,
3733 get_arg_pointer_save_area): Likewise.
3734 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3735 expand_function_end): Use emit_insn_foo.
3736 (record_insns, keep_stack_depressed): Work with insn list instead
3737 of SEQUENCE, fix comments.
3738 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3739 noce_try_store_flag_constants, noce_try_store_flag_inc,
3740 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3741 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3742 (noce_process_if_block): Use get_insns instead of gen_sequence.
3743 * optabs.c (add_equal_note): Work with insn list, fix comments.
3744 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3745 (expand_unop, expand_complex_abs, expand_unop_insn,
3746 expand_no_conflict_block): Likewise.
3747 (gen_move_insn): Use get_insns instead of gen_sequence.
3748 (gen_cond_trap): Likewise.
3749 * integrate.c (copy_rtx_and_substitute): Likewise.
3750 (emit_initial_value_sets): Use emit_insn_foo.
3751 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3752 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3753 now that RTL generators give insn lists.
3754 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3755 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3756 instead of gen_sequence.
3757 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3758 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3759 instead of gen_sequence.
3760 * loop.c (move_movables, emit_prefetch_instructions,
3761 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3763 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3764 (product_cheap_p): Likewise, and add commentary about RTL wastage
3766 * lcm.c (optimize_mode_switching): Use get_insns instead of
3768 * profile.c (gen_edge_profiler): Likewise.
3769 * regmove.c (copy_src_to_dest): Likewise.
3770 * reg-stack.c (compensate_edge): Likewise and fix comment.
3771 * gcse.c (process_insert_insn): Likewise.
3772 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3773 * jump.c (delete_prior_computation): Update comment.
3774 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3775 of gen_sequence, update comments to match.
3776 * recog.c (peephole2_optimize): Work with insn lists instead of
3778 * sched-vis.c (print_pattern): Abort on SEQUENCE.
3779 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3780 Use get_insns instead of gen_sequence.
3781 (copy_loop_body): Likewise and don't emit dummy NOTE.
3782 * genrecog.c: Don't mention SEQUENCE rtl in comments.
3783 * combine.c (try_combine): Expect insn lists from split generator.
3784 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3787 2002-06-11 Roger Sayle <roger@eyesopen.com>
3788 Andreas Jaeger <aj@suse.de>
3790 * cfgbuild.c: Update copyright years.
3792 2002-06-11 Andreas Schwab <schwab@suse.de>
3794 * config/m68k/m68k.h (PREDICATE_CODES): Define.
3796 2002-06-11 Eric Christopher <echristo@redhat.com>
3798 * doc/tm.texi (Run-time Target): Add comment about flag_iso
3800 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3801 * config/mips/ecoffl.h: Ditto.
3802 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3803 (CPP_PREDEFINES): Ditto.
3804 * config/mips/elfl64.h: Ditto.
3805 * config/mips/elfl.h: Ditto.
3806 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3807 out until irix header consolidation.
3808 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3809 with SUBTARGET_OS_CPP_BUILTINS.
3810 * config/mips/iris6.h: Ditto.
3811 (CPLUSPLUS_CPP_SPEC): Remove.
3812 * config/mips/linux.h: Ditto.
3813 * config/mips/netbsd.h: Ditto.
3814 * config/mips/openbsd.h: Ditto.
3815 * config/mips/rtems.h: Ditto.
3816 * config/mips/rtems64.h: Ditto.
3817 * config/mips/sni-svr4.h: Ditto.
3818 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3819 ISA_MIPS32, ISA_MIPS64): New defines.
3820 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3821 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3822 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3823 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3824 (TARGET_CPU_CPP_BUILTINS): Define.
3825 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3826 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3827 (movdicc): Remove check for ISA_MIPS32.
3828 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3829 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3830 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3831 sunge_sf, sunle_df, sunle_sf): New patterns.
3833 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
3835 * Makefile.in: Update cppmain.o.
3836 * cpphash.h (struct cpp_reader): Move some members to a
3838 (trad_line): Rename saved_line.
3839 (_cpp_read_logical_line_trad): Update.
3840 (_cpp_remove_overlay): New.
3841 * cppinit.c (cpp_create_reader): No need to set saved_line.
3842 (cpp_destroy): Update.
3843 (cpp_read_main_file): Only overlay if compiling.
3844 * cpplex.c (continue_after_nul): Return false if in directive.
3845 * cpplib.c (EXPAND): New.
3846 (directive_table, SEEN_EOL): Update.
3847 (end_directive): Remove overlay if traditional; don't skip
3848 line in traditional #define.
3849 (prepare_directive_trad): New.
3850 (_cpp_handle_directive, run_directive): Update for traditional
3852 (lex_macro_node): Simplify, don't use lex_identifier_trad.
3853 * cpplib.h (struct options): Add preprocess_only.
3854 * cppmain.c: Don't include intl.h.
3855 (cpp_preprocess_file): Set options->preprocess_only.
3856 (scan_translation_unit_trad): Fix, and print line numbers.
3857 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3858 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3859 save_replacement_text, _cpp_create_trad_definition): Update for
3861 (_cpp_overlay_buffer): Save line number.
3862 (_cpp_remove_overlay): Rename from restore_buff, restore line.
3863 (_cpp_read_logical_line_trad): Don't handle overlays here.
3864 (scan_out_logical_line): Process directives.
3866 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
3868 * gthr-win32.h: Wrap functions in extern "C".
3869 (__gthread_key_t): Typedef as unsigned long,
3871 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3872 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3873 (__gthr_win32_once, __gthr_win32_key_create,
3874 __gthr_win32_key_delete, __gthr_win32_getspecific,
3875 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3876 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3877 __gthr_win32_mutex_unlock): Declare.
3878 (__gthread_once,__gthread_key_create,
3879 __gthread_key_delete, __gthread_getspecific,
3880 __gthread_setspecific, __gthread_mutex_init_function,
3881 __gthread_mutex_lock,__gthread_mutex_trylock,
3882 __gthread_mutex_unlock): Call corresponding
3883 __gthr_win32_* extern implementations if #defined
3884 __GTHREAD_HIDE_WIN32API.
3885 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
3886 $(srcdir)/config/i386/gthr-win32.c
3887 * config/i386/gthr-win32.c: New implementation file.
3888 (__gthr_win32_once, __gthr_win32_key_create,
3889 __gthr_win32_key_delete, __gthr_win32_getspecific,
3890 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3891 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3892 __gthr_win32_mutex_unlock): New functions, based on
3893 static inlines in gthr-win32.h.
3895 2002-06-10 Bob Wilson <bob.wilson@acm.org>
3897 * config/xtensa/xtensa.c (override_options): Don't warn about
3898 using -fpic or -fPIC when PIC is enabled by default.
3900 2002-06-10 Roger Sayle <roger@eyesopen.com>
3902 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3904 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3906 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
3907 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
3908 exists, substitute its pathname as @extra_modes_file@, define
3909 EXTRA_MODES_FILE to be an appropriate string to #include it
3910 with, and define EXTRA_CC_MODES to 1.
3912 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
3913 it's defined. Get rid of redundancy in calling sequence for
3914 CC; don't use it to define CCmode, to avoid a warning.
3915 * libgcc2.c: Include symcat.h for the sake of machmode.def.
3917 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3918 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3919 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3921 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3922 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3924 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3925 defining extra CC modes.
3927 2002-06-10 Roger Sayle <roger@eyesopen.com>
3928 Andreas Jaeger <aj@suse.de>
3930 * cfgrtl.c (create_basic_block_structure): Remove index argument
3931 and use last_basic_block++ instead. (create_basic_block): Update.
3932 * cfgbuild.c (find_basic_blocks_1): Likewise.
3934 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3935 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3936 * sched-ebb.c (schedule_ebbs): Likewise.
3937 * sched-rgn.c (schedule_insns): Likewise.
3938 * ssa-ccp.c (ssa_const_prop): Likewise.
3939 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3940 * toplev.c (rest_of_compilation): Likewise.
3941 * config/ia64/ia64.c (ia64_reorg): Likewise.
3943 2002-06-10 Roger Sayle <roger@eyesopen.com>
3945 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3946 of matching registers.
3948 2002-06-10 Roger Sayle <roger@eyesopen.com>
3950 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3951 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3953 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
3955 * config/mmix/mmix.h: Improve comments.
3956 (CPP_SPEC, CPP_PREDEFINES): Don't define.
3957 (TARGET_CPU_CPP_BUILTINS): Define.
3958 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
3959 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
3961 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
3963 (mmix_constant_address_p): Remove another
3964 redundant test before case.
3965 (mmix_canonicalize_comparison): Remove unused function.
3966 (mmix_print_operand_address): Don't test and adjust for operand in
3967 non-canonical format.
3968 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
3969 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
3971 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3973 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
3974 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
3975 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
3976 (gen_compare): Use CCmode unconditionally.
3978 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3980 PR optimization/6759
3981 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
3984 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3987 * c-decl.c (grokfield): Allow user defined types if they declare
3988 structs or unions for unnamed fields.
3990 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3993 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
3995 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3997 PR optimization/6842
3998 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
3999 operand subreg cannot be simplified.
4001 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4003 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
4004 (compare_constant): Likewise.
4005 (output_addressed_constants): Likewise.
4007 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4009 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
4010 merge bb with itself.
4012 2002-06-10 Richard Henderson <rth@redhat.com>
4014 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
4015 (builtin_zapnot): Likewise.
4017 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
4020 2002-06-10 Eric Christopher <echristo@redhat.com>
4022 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
4023 prototype and function.
4024 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
4025 (call_insn_operand): Remove half pic references.
4026 (legitimate_address_p): Ditto.
4027 * config/i386/i386.h: Remove half pic defines.
4029 2002-06-10 Eric Christopher <echristo@redhat.com>
4031 * doc/extend.texi (Return Address): Add note explaining the side-
4032 effects of inlining on __builtin_return_address.
4034 2002-06-10 Tom Tromey <tromey@redhat.com>
4036 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
4037 (c-common.o): Depend on langhooks.h.
4039 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4041 * cpphash.h (_cpp_read_logical_line_trad,
4042 _cpp_expansions_different_trad): Update prototypes.
4043 * cpplex.c (continue_after_nul): New.
4044 * cppmain.c: Include cpphash.h.
4045 (scan_translation_unit_trad): New.
4046 (cpp_preprocess_file): Call it.
4047 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
4049 (_cpp_expansions_different_trad): Update prototype.
4051 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
4053 Fix cfi generation for SH[1-4]:
4055 * sh.c (frame_insn): New function.
4056 (output_stack_adjust): Add parameter emit_fn. All callers changed.
4057 (push): Now returns rtx. Use frame_insn.
4058 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
4060 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
4062 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4064 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
4066 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
4067 (distclean): ... not here. But do delete all testsuite/*.log,
4068 testsuite/*.sum files here. Delete mkheaders. Delete
4069 po/*.gmo and the testsuite directory in a split tree build.
4071 2002-06-10 Jeffrey Law <law@redhat.com>
4073 * alias.c (static_reg_base_value): New to hold RTL for
4074 items allocated once per function for the aliasing code.
4075 (init_alias_once_per_function): Initialize static_reg_base_value.
4076 (init_alias_analysis): Avoid throw-away allocations of RTL by
4077 using pre-computed values in static_reg_base_value.
4078 * function.c (prepare_function_start): Call
4079 init_alias_once_per_function appropriately.
4080 * rtl.h (init_alias_once_per_function): Declare.
4081 * caller-save (init_caller_save): Restructure slightly to
4082 avoid lots of silly RTL generation.
4083 * expr.c (init_expr_once): Likewise.
4084 * reload1.c (reload_cse_regs_1): Allocate throw-away register
4085 RTL object here. Pass it into children.
4086 (reload_cse_simplify_operands): Use passed-in register RTL
4088 (reload_cse_simplify): Pass through throw-away register
4091 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
4093 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
4095 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
4097 * gcc.c (process_command): Avoid assignment to read-only location.
4098 Fix sizeof calculation.
4100 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4102 * cpphash.h (struct cpp_macro): Put comments on their own lines.
4103 (_cpp_expansions_different_trad): New.
4104 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
4105 * cpptrad.c (canonicalize_text): New.
4106 (scan_out_logical_line): Handle no arguments correctly.
4107 (save_replacement_text): Commit memory when finished.
4108 (_cpp_expansions_different_trad): New.
4110 2002-06-10 Tim Josling <tej@melbpc.org.au>
4112 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
4114 (lang_names): Add treelang and cobol.
4115 (get_file_basename): Add code to support treelang and cobol as
4116 4th and 5th users of c-common.c.
4118 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
4120 * Makefile.in (install-driver): Install driver as
4121 $(target_alias)-gcc-$(version).
4122 * gcc.c (spec_version): Make const.
4123 (process_command): Handle -V and -b by using exec.
4124 * doc/invoke.texi (Target Options): Restore -V option,
4125 update docs for -b option.
4127 2002-06-10 Tim Josling <tej@melbpc.org.au>
4129 * configure.in (remaining_languages_check):
4130 Added check that all languages specified were found.
4131 Exit if not found. Previous behaviour was silent failure.
4132 * configure: Regenerated.
4134 2002-06-10 Tim Josling <tej@melbpc.org.au>
4136 First steps to making treelang documentation compliant, based on
4137 instructions in sourcebuild.texi. Also add to gcc.c list of
4140 * doc/contrib.texi: Add self as contributor of treelang.
4142 * doc/frontends.texi: Add mention of treelang.
4144 * doc/invoke.texi (Overall Options): Add mention of treelang.
4146 * doc/standards.texi: Add mention of treelang.
4148 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
4150 * config/cris/cris.c: Include ggc.h
4152 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
4154 * cpphash.h (_cpp_push_text_context): Update.
4155 (_cpp_arguments_ok): New.
4156 * cppmacro.c (_cpp_arguments_ok): New, split out from...
4157 (collect_args): ...here.
4158 (_cpp_push_text_context): Change inputs.
4159 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
4160 replace_args_and_push): New.
4161 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
4162 Don't use IS macros directly.
4163 (scan_out_logical_line): Handle function-like macro argument
4165 (push_replacement_text): Update.
4166 (replacement_length): Remove.
4167 (_cpp_create_trad_definition): Don't skip whitespace before
4170 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4172 * config/avr/avr.c (avr_mcu_types): Update for new devices.
4173 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
4174 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
4175 * config/avr/avr.md ("type" and "length" attributes): New type
4176 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
4177 output a single "call" or "rcall" insn depending on device size.
4178 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
4180 2002-06-09 David Edelsohn <edelsohn@gnu.org>
4182 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
4183 synonym for 630. Add power4. Remove embedded processors. Use -m604
4185 (CPP_CPU_SPEC): Add power3 and power4.
4186 (PROCESSOR_DEFAULT): Change to 604e.
4187 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
4188 (CPP_CPU_SPEC): Similar additions.
4189 (enum process_type): Add POWER4.
4190 (RTX_COSTS): Add POWER4.
4191 (CPP_CPU_SPEC): Similar additions.
4192 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
4193 (PROCESSOR_DEFAULT64): Define.
4194 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
4195 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
4197 (rs6000_issue_rate): Add Power4.
4198 * config/rs6000/rs6000.md (cpu attr): Add power4.
4199 (iu compare): Remove 604, 604e, 620, 630.
4200 Add basic Power4 scheduling information.
4201 (mfcr/mtcrf): Change type attribute to cr_logical.
4203 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4205 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
4207 * gengtype-lex.l: Fix format specifier warning.
4209 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
4211 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
4212 lieu of isspace/IDchar.
4213 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
4214 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
4217 2002-06-08 Zack Weinberg <zack@codesourcery.com>
4219 * Makefile.in (LIBCPP_OBJS): Take out version.o.
4220 * cpphash.h (cpp_reader): Take out print_version member.
4221 * cppinit.c: (cpp_handle_option): Don't do anything with
4222 -version. Just set help_only for --version, --target-help.
4223 Just set verbose option for -v.
4224 (cpp_post_options): Don't print a version string.
4226 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4228 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
4229 (avr_section_type_flags): New, handle .noinit* sections.
4231 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4233 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
4234 and include netbsd_entry_point.
4235 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4236 (NETBSD_ENTRY_POINT): Define.
4238 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4240 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
4241 if not already defined.
4242 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
4244 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4246 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
4247 in a noreturn function.
4248 (avr_output_function_prologue, avr_output_function_epilogue):
4249 Correct function size calculation. Do not crash on empty function.
4250 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
4252 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4254 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4255 netbsd_link_spec and netbsd_entry_point.
4256 (LINK_SPEC): Use %(netbsd_link_spec).
4257 (NETBSD_ENTRY_POINT): Define.
4259 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4261 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
4263 (LINK_ARCH64_SPEC): Likewise.
4264 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
4265 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
4267 2002-06-08 Marc Espie <espie@openbsd.org>
4269 * lists.c (free_list): Fix typo in comment.
4271 2002-06-08 Andreas Jaeger <aj@suse.de>
4273 * lcm.c (optimize_mode_switching): Add unused attribute for
4276 * sched-deps.c (sched_analyze): Remove unused variable.
4278 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
4280 * diagnostic.def: Don't capitalize diagnostict descriptors.
4282 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4284 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
4285 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4286 (NETBSD_ENTRY_POINT): Define.
4288 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4290 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
4291 NETBSD_LINK_SPEC_ELF.
4292 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
4293 (NETBSD_ENTRY_POINT): Define.
4294 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
4295 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
4297 (NETBSD_ENTRY_POINT): Define.
4299 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4301 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4302 netbsd_link_spec and netbsd_entry_point.
4303 (LINK_SPEC): Use %(netbsd_link_spec).
4304 (NETBSD_ENTRY_POINT): Define.
4306 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4308 * config/netbsd-elf.h (LINK_SPEC): Rename to...
4309 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
4310 to specify program entry point.
4312 2002-06-07 Jeff Law <law@redhat.com
4314 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
4315 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
4316 than creating a new register.
4317 (distribute_notes): Likewise.
4318 * df.c (df_reg_use_gen): Likewise.
4319 (df_reg_clobber_gen): Likewise.
4320 (df_ref_record): Likewise.
4321 * expr.c (use_regs): Likewise.
4322 * flow.c (propagate_one_insn): Likewise.
4323 (mark_set_1): Likewise.
4324 (mark_used_reg): Likewise.
4325 * reload.c (emit_reload_insns): Likewise.
4327 2002-06-07 Roger Sayle <roger@eyesopen.com>
4329 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
4330 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
4331 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
4332 comparison code comp can be reversed.
4334 2002-06-07 Roger Sayle <roger@eyesopen.com>
4336 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
4337 constants last in comparisons. Optimize (x+1.0)>0.0 into the
4338 equivalent x > -1.0 when -ffast-math.
4340 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4342 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
4343 * config/mips/t-netbsd: New file.
4345 2002-06-07 Zack Weinberg <zack@codesourcery.com>
4347 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4348 options their own entries.
4349 (parse_option): Clarify comment.
4350 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
4351 special case. Replace if/strcmp chain for -W options with
4352 use of new OPT_* entries for them.
4353 (cpp_handle_options): Update to match.
4354 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
4355 * c-decl.c: Update call to cpp_handle_option.
4357 2002-06-07 Akim Demaille <akim@epita.fr>
4359 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
4362 2002-06-07 Jeffrey Law <law@redhat.com>
4364 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
4367 2002-06-07 H.J. Lu (hjl@gnu.org)
4369 * configure.in: Add --enable-__cxa_atexit.
4370 * configure: Regenerated.
4371 * config.in: Likewise.
4373 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
4376 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
4378 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
4380 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4382 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
4384 2002-06-07 Jason Merrill <jason@redhat.com>
4386 * cppexp.c (num_equality_op): Use a temporary variable to work
4387 around gcc 3.0.4 bug.
4389 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
4391 * diagnostic.c (diagnostic_build_prefix): Tidy.
4393 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
4395 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
4396 scan_parameters, save_replacement_text, replacement_length): New.
4397 (scan_out_logical_line): Take a macro and save parameters if
4399 (_cpp_logical_line_trad): Update.
4400 (_cpp_create_trad_definition): Update to handle function-like
4402 * cpplex.c (new_buff): Update.
4403 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
4404 * cpphash.h: ...here.
4405 (CPP_ALIGN2, _cpp_save_parameter): New.
4406 * cppmacro.c (save_parameter): Rename, export.
4407 (parse_params): Update.
4409 2002-06-07 Andreas Jaeger <aj@suse.de>
4411 * config/mmix/mmix.c: Remove extra broken prototype for
4412 mmix_init_machine_status.
4414 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
4416 * gengtype.c: Add comments before all the routines.
4418 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4420 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
4421 from and add t-sh64 to ${tmake_file}.
4422 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
4423 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
4424 * config/sh/t-netbsd-sh5-32: Remove.
4425 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
4427 (MULTILIB_DIRNAMES): Define.
4429 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
4431 * i386.md (and promoting splitters): Disable QI to SImode promoting
4432 when doing so changes immediate to be 32bit.
4434 * rtl.h (emit_*_scope): Declare.
4435 * emit-rtl.c (emit_*_scope): New global functions.
4436 (try_split): Copy scope.
4437 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4438 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4439 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4440 noce_process_if_block, find_cond_trap): Copy scopes.
4441 * recog.c (peephole2_optimize): likewise.
4443 2002-06-06 Jeffrey Law <law@redhat.com>
4445 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
4447 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
4449 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
4451 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4453 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
4454 ($(docdir)/gccinstall.info): New target.
4455 (info): Depend on it.
4456 (gccinstall.dvi): New target.
4457 (dvi): Depend on it.
4458 * doc/.cvsignore: Ignore new info files.
4459 * doc/install.texi (@setfilename): Reflect new info filename.
4461 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
4463 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
4466 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
4469 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
4470 c_common_get_alias_set.
4471 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
4473 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4475 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
4477 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
4478 * avr/avr.c (avr_output_function_epilogue): Use above to determine
4480 * pa/pa.c (pa_output_function_prologue): Likewise.
4482 2002-06-05 David S. Miller <davem@redhat.com>
4484 * integrate.c (subst_constants): Handle 'B' RTL format.
4486 2002-06-05 Eric Christopher <echristo@redhat.com>
4488 * varasm.c (make_decl_rtl): Fix comment for removed
4491 2002-06-05 Eric Christopher <echristo@redhat.com>
4493 * Makefile.in: Remove missed halfpic bits.
4495 2002-06-05 Eric Christopher <echristo@redhat.com>
4497 * toplev.c: Remove half-pic.
4498 * config/mips/mips.c: Ditto.
4499 * config/mips/mips.h: Ditto. Remove unused defines.
4500 * config/mips/openbsd.h: Update comment to reflect above.
4501 * config/mips/mips.md: Remove half-pic constraints.
4502 * halfpic.h: Delete.
4505 2002-06-05 Jeffrey Law <law@redhat.com>
4507 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
4508 rejects (mem (lo_sum (reg) (unspec))), but will allow
4509 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
4511 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4513 * cpphash.h (_cpp_create_definition): Update prototype.
4514 (_cpp_push_text_context, _cpp_create_trad_definition): New.
4515 ( cpp_lex_identifier_trad): New.
4516 (_cpp_set_trad_context): New.
4517 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
4518 * cpplib.c (SEEN_EOL): Update.
4519 (lex_macro_node): Update for -traditional.
4520 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
4521 * cppmacro.c (_cpp_create_definition): Split into
4522 create_iso_definition() and _cpp_create_trad_definition().
4523 (warn_of_redefinition): Update prototype; handle traditional
4525 (_cpp_push_text_context): New.
4526 * cpptrad.c (skip_whitespace, push_replacement_text): New.
4527 (lex_identifier): Call ht_lookup with correct start.
4528 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
4529 _cpp_set_trad_context): New.
4530 (scan_out_logical_line): Update to handle changing contexts.
4532 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
4534 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
4536 * config/sh/t-be (MULTILIB_ENDIAN): Set.
4537 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
4538 * t-sh (MULTILIB_ENDIAN): Set.
4539 (MULTILIB_OPTIONS): Use it.
4540 * t-sh64 (MULTILIB_OPTIONS): Likewise.
4541 (MULTILIB_DIRNAMES): Likewise.
4543 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
4545 * toplev.h (report_error_function): Remove.
4547 * diagnostic.h (location_t): New datatype.
4548 (text_info): Likewise.
4549 (diagnostic_info): Likewise.
4550 (output_prefix): New macro.
4551 (diagnostic_last_function_changed): Likewise.
4552 (diagnostic_set_last_function): Likewise.
4553 (diagnostic_last_module_changed): Likewise.
4554 (diagnostic_set_last_module): Likewise.
4555 (report_diagnostic): Now macro.
4556 (diagnostic_set_info): Declare.
4558 * diagnostic.c (report_problematic_module): Rename to
4559 diagnostic_repor_current_module.
4560 (set_diagnostic_context): Remove.
4561 (count_error): Rename to diagnostic_error_count.
4562 (error_function_changed): Remove.
4563 (record_last_error_function): Likewise.
4564 (error_module_changed): Likewise.
4565 (record_last_error_module): Likewise.
4566 (context_as_prefix): Rename to diagnostic_build_prefix.
4567 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4568 (diagnostic_set_info): New function.
4570 * objc/objc-act.c: #include diagnostic.h
4571 (error_with_ivar): Adjust call to count_error.
4572 (warn_with_method): Likewise.
4573 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4575 2002-06-05 Bob Wilson <bob.wilson@acm.org>
4577 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4578 lang_hooks.types.make_type instead of make_node; set up
4579 __va_list_tag type decl.
4580 (xtensa_builtin_saveregs): Remove broken use of
4581 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4582 for saved registers; add varargs alias set.
4584 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4587 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4588 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4589 CPP_PREDEFINES and part of CPP_SPEC.
4590 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4591 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4593 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
4595 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4597 2002-06-05 Alan Modra <amodra@bigpond.net.au>
4599 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4601 2002-06-04 Zack Weinberg <zack@codesourcery.com>
4603 * gengtype-yacc.y: Make sure all rules end with a semicolon.
4605 2002-06-04 Bob Wilson <bob.wilson@acm.org>
4607 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4608 typo in function prototype and include "ggc.h" header.
4610 2002-06-04 Richard Henderson <rth@redhat.com>
4612 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4613 (print_operand) ['U']: Likewise.
4614 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4615 (alpha_expand_unaligned_store_words): Likewise.
4616 (alpha_expand_builtin_vector_binop): Fix typo.
4617 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4618 umulh, and cix insns.
4619 (one_arg_builtins): Add cix builtins.
4620 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4621 (alpha_expand_builtin): Fix typo in arity.
4622 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4623 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4624 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4625 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4626 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4627 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4628 builtin_ctlz, builtin_ctpop): New.
4629 * doc/extend.texi (Alpha Built-in Functions): Update.
4631 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
4633 * gengtype.c (write_gc_root): Don't unnecessarily prevent
4634 global variable-length arrays being roots.
4636 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4637 * configure.in (config_gtfiles): New variable.
4638 (all_gtfiles): Initialise from config_gtfiles.
4639 * configure: Regenerate.
4641 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4644 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4645 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4646 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4647 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4648 win32.h (CPP_SPEC): Remove cpp_cpu.
4649 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4650 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4652 2002-06-04 Janis Johnson <janis187@us.ibm.com>
4654 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4656 2002-06-04 Jeff Law <law@redhat.com.
4657 David Edelsohn <edelsohn@gnu.org>
4658 Michael Matz <matz@kde.org>
4660 * sched-int.h (struct deps): New field libcall_block_tail_insn.
4661 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4662 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4663 is set, then mark the current insn as being part of a libcall
4665 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4667 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4668 insns against the issue rate.
4670 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
4672 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4673 * final.c (final_scan_insn): Likewise.
4674 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4675 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4676 * haifa-sched.c (unlink_other_notes): Likeewise.
4677 (reemit_notes): Likewise.
4678 * print-rtl.c (print_rtx): Likewise.
4679 * sched-deps (sched-analyze): Likewise.
4680 * rtl.c (note_insn_name): Likewise.
4681 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4682 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4685 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4687 * varasm.c (mark_constants): Handle RTX format 'B'.
4689 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4691 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4692 (struct cpp_context): Add traditional fields.
4693 * cppmacro.c (paste_all_tokens, push_ptoken_context,
4694 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4695 * cpptrad.c (skip_comment, lex_identifier,
4696 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4698 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
4700 * gbl-ctors.h: Fix formatting.
4702 * gccspec.c: Likewise.
4704 * gcov-io.h: Likewise.
4706 * ggc-common.c: Likewise.
4708 * ggc-page.c: Likewise.
4709 * ggc-simple.c: Likewise.
4710 * global.c: Likewise.
4711 * graph.h: Likewise.
4712 * gthr-dce.h: Likewise.
4714 * gthr-posix.h: Likewise.
4715 * gthr-rtems.h: Likewise.
4716 * gthr-solaris.h: Likewise.
4717 * gthr-win32.h: Likewise.
4719 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
4721 Merge from pch-branch:
4723 * gengtype.h (UNION_OR_STRUCT_P): New macro.
4724 * gengtype.c (write_gc_structure_fields): Use it.
4725 (write_gc_root): Use it here too.
4727 * gengtype.c (write_gc_structure_fields): Assume that lengths
4728 of typenames fit into an 'int'; don't pass a size_t to "%d" in
4730 (write_gc_marker_routine_for_structure): Likewise.
4731 (write_gc_types): Likewise.
4732 (write_gc_root): Likewise.
4734 * varray.h (VARRAY_CLEAR): New.
4735 (varray_clear): Prototype.
4736 * varray.c (varray_clear): New.
4737 * cselib.c (reg_values_old): New.
4738 (used_regs_old): New.
4739 (cselib_init): Use cached varrays if available to avoid
4740 generating large amounts of garbage.
4741 (cselib_finish): Don't throw away old varrays.
4743 * final.c (insn_addresses_): Move out of ifdef.
4745 * varray.c (uses_ggc): Make more varray kinds GCable.
4746 * varray.h (union varray_data_tag): Let gengtype see
4747 fields 'generic' and 'te'.
4748 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4749 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4750 (reg_to_stack): Don't call VARRAY_FREE.
4751 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4752 (insn_addresses_): Use gengtype to mark.
4753 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4754 pointers; handle generic pointers in unused union fields.
4755 (get_output_file_with_visibility): Include cselib.h,
4756 insn-addr.h in gtype-desc.c.
4757 * function.c (prologue): Use gengtype to mark.
4758 (epilogue): Likewise.
4759 (sibcall_epilogue): Likewise.
4760 * dependence.c: Include gt-dependence.h, ggc.h.
4761 (struct def_use): Use gengtype to mark.
4762 (struct loop): Likewise.
4763 (struct induction): Likewise.
4764 (struct dependence): Likewise.
4765 (def_use_chain): Likewise.
4766 (dep_chain): Likewise.
4767 (loop_chain): Likewise.
4768 (induction_chain): Likewise.
4769 (init_dependence_analysis): Don't free anything, just clear pointers.
4770 (build_def_use): Use GGC to allocate def_use.
4771 (add_loop): Use GGC to allocate loop.
4772 (find_induction_variable): Use GGC to allocate induction.
4773 (check_node_dependence): Use GGC to allocate induction, dependence.
4774 (dump_node_dependence): Don't free varrays.
4775 (end_dependence_analysis): Likewise.
4776 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4777 (struct elt_loc_list): Likewise.
4778 (struct elt_list): Likewise.
4779 * cselib.c: Don't include obstack.h.
4780 (hash_table): Use gengtype to mark.
4781 (reg_values): Use gengtype to mark.
4782 (used_regs): Use gengtype to mark.
4783 (cselib_obstack): Delete.
4784 (cselib_startobj): Delete.
4785 (empty_vals): Mark as deletable.
4786 (empty_elt_lists): Mark as deletable.
4787 (empty_elt_loc_lists): Mark as deletable.
4788 (new_elt_list): Use GGC to allocate struct elt_list.
4789 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4790 (clear_table): Don't delete obstack; don't unnecessarily clear
4791 deletable variables.
4792 (new_cselib_val): Use GGC to allocate struct cselib_val.
4793 (cselib_init): Don't set up obstacks. Use GGC to allocate
4795 (cselib_finish): Just clear variables, don't free anything.
4796 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4797 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4798 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4799 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4800 (gt-reg-stack.h): New rule.
4801 (gt-dependence.h): New rule.
4802 (gtype-desc.o): Add cselib.h, insn-addr.h.
4804 * varray.c: Use only necessary headers.
4805 (element_size): New.
4807 (varray_init): Take type, not size. Use GGC if appropriate.
4808 (varray_grow): Update for change to struct varray_head_tag.
4809 Use GGC if appropriate.
4810 * varray.h (struct const_equiv_data): Use gengtype.
4811 (enum varray_data_enum): New.
4812 (union varray_data_tag): Use gengtype.
4813 (struct varray_head_tag): Use gengtype. Replace size field with
4814 enum varray_data_enum.
4815 (varray_init): Update prototype.
4816 (VARRAY_SCHED_INIT): Delete.
4817 (VARRAY_*_INIT): Update for change to varray_init.
4818 (VARRAY_SCHED): Delete.
4819 (VARRAY_PUSH_SCHED): Delete.
4820 (VARRAY_TOP_SCHED): Delete.
4821 * tree.h: Update for change to length specifier.
4822 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4823 (clone_body): Likewise.
4824 * ssa.h (ssa_definition): Use gengtype to mark.
4825 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4826 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4827 * rtl.h (struct rtvec_def): Update for change to length specifier.
4828 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4829 (struct initial_value_struct): Update for change to length specifier.
4830 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4831 (ggc_add_tree_varray_root): Delete prototype.
4832 (ggc_mark_rtx_varray): Delete prototype.
4833 (ggc_mark_tree_varray): Delete prototype.
4834 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4835 (ggc_add_tree_varray_root): Delete.
4836 (ggc_mark_rtx_varray): Delete.
4837 (ggc_mark_tree_varray): Delete.
4838 (ggc_mark_rtx_varray_ptr): Delete.
4839 (ggc_mark_tree_varray_ptr): Delete.
4840 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4841 (create_varray): Delete prototype.
4842 * gengtype.c (varrays): Delete.
4843 (create_varray): Delete.
4844 (adjust_field_type): Detect array of string pointers.
4845 (process_gc_options): Remove code to handle varray_type option.
4846 (set_gc_used_type): Remove TYPE_VARRAY case.
4847 (output_escaped_param): New.
4848 (write_gc_structure_fields): Use output_escaped_param on all
4849 parameters. Handle 'skip' with 'use_param' option. Handle
4850 arrays of strings. Remove TYPE_VARRAY handling.
4851 (write_gc_roots): Use boolean to detect 'length' option.
4852 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4853 (struct_fields): Call adjust_field_type on array fields.
4854 (type): Remove VARRAY_TYPE case.
4855 (type_option): Likewise.
4856 * gengtype-lex.l: Don't consider varray_type a keyword.
4857 * function.h: Update for change to length specifier.
4858 (free_eh_status): Delete prototype.
4859 * function.c (free_after_compilation): Don't call free_eh_status.
4860 (reorder_blocks): Don't use VARRAY_FREE.
4861 * except.c (struct eh_status): Update for change to length specifier.
4862 remove varray_type specifier.
4863 (free_eh_status): Delete.
4864 * dwarf2out.c: Include gt-dwarf2out.h.
4865 (used_rtx_varray): Use gengtype to mark, move
4867 (incomplete_types): Likewise.
4868 (decl_scope_table): Likewise.
4869 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
4870 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4871 * c-tree.h (struct lang_type): Update for change to length specifier.
4872 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4873 * c-objc-common.c: Include gt-c-objc-common.h.
4874 (deferred_fns): Mark for gengtype.
4875 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4876 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4877 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4878 (gtype-desc.o): Update dependencies.
4879 (dwarf2out.o): Add gt-dwarf2out.h.
4880 (varray.o): Update dependencies.
4881 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4882 (gt-c-objc-common.h): New rule.
4883 (gt-dwarf2out.h): New rule.
4884 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4886 * doc/gty.texi (GTY Options): Correct spelling.
4887 (GGC Roots): Likewise.
4888 * Makefile.in (TEXI_CPP_FILES): New.
4889 (TEXI_GCC_FILES): New.
4890 (TEXI_GCCINT_FILES): New.
4891 (TEXI_CPPINT_FILES): New.
4892 ($(docdir)/cpp.info): Use new macros.
4893 ($(docdir)/gcc.info): Likewise.
4894 ($(docdir)/gccint.info): Likewise.
4895 ($(docdir)/cppinternals.info): Likewise.
4896 (cpp.dvi): Likewise.
4897 (gcc.dvi): Likewise.
4898 (gccint.dvi): Likewise.
4899 (cppinternals.dvi): Likewise.
4901 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4902 * doc/gccint.texi (Top): Include gty.texi.
4903 * doc/gty.texi: New file.
4905 * bitmap.c: Include ggc.h, gt-bitmap.h.
4906 (bitmap_ggc_free): New.
4907 (bitmap_elem_to_freelist): New.
4908 (bitmap_element_free): Use bitmap_elem_to_freelist.
4909 (bitmap_element_allocate): Allow use of GGC.
4910 (bitmap_clear): Use bitmap_elem_to_freelist.
4911 (bitmap_copy): Update for change to bitmap_element_allocate.
4912 (bitmap_set_bit): Likewise.
4913 (bitmap_operation): Update for changes elsewhere.
4914 (bitmap_initialize): Allow to create bitmaps that will use GGC.
4915 * bitmap.h (struct bitmap_element_def): Use gengtype.
4916 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
4917 (bitmap_initialize): Add extra parameter.
4918 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4919 (BITMAP_ALLOCA): Delete.
4920 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4921 (BITMAP_GGC_ALLOC): New.
4922 * Makefile.in (gtype-desc.o): Add bitmap.h.
4923 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4924 (GTFILES): Add bitmap.c.
4925 (gt-bitmap.h): New rule.
4926 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4927 * basic-block.h: Update for changes to bitmap_initialize.
4928 * except.c (exception_handler_label_map): Move into...
4929 (struct eh_status): Here.
4930 (struct eh_region): Make 'aka' GCable.
4931 (free_eh_status): Don't need to specially handle
4932 exception_handler_label_map.
4933 (add_ehl_entry): Update for changes to exception_handler_label_map.
4934 (find_exception_handler_labels): Likewise.
4935 (remove_exception_handler_label): Likewise.
4936 (maybe_remove_eh_handler): Likewise.
4937 (for_each_eh_label): Likewise.
4938 (remove_eh_handler): Allocate 'aka' using GGC.
4939 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4940 to list of includes.
4942 * gengtype.c (write_gc_marker_routine_for_structure): Name
4943 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
4944 (write_gc_types): Arrange for the tests with NULL to be inlined.
4945 (write_gc_roots): Update uses of procedure pointers.
4946 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4948 * Makefile.in (explow.o): Add dependency on gt-explow.h.
4949 (sdbout.o): Add dependency on gt-sdbout.h.
4951 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4952 (mem_attrs_htab): Likewise.
4953 (init_emit_once): Don't call ggc_add_deletable_htab.
4954 * fold-const.c (size_htab): Use gengtype to clear unused entries.
4955 (size_int_type_wide): Don't call ggc_add_deletable_htab.
4956 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
4957 parameters, use them, change callers.
4958 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
4959 (write_gc_roots): Handle 'if_marked' option.
4960 (main): Don't need to call set_gc_used_type any more.
4961 * ggc.h (ggc_htab_marked_p): Delete.
4962 (ggc_htab_mark): Delete.
4963 (struct ggc_cache_tab): New.
4964 (gt_ggc_cache_rtab): New declaration.
4965 * ggc-common.c (struct d_htab_root): Delete.
4966 (d_htab_roots): Delete.
4967 (ggc_add_deletable_htab): Delete.
4968 (ggc_htab_delete): Handle new htab-deleting mechanism.
4969 (ggc_mark_roots): Use new htab-deleting mechanism.
4970 * tree.c (type_hash_table): Use gengtype to clear unused entries.
4972 (init_obstacks): Don't call ggc_add_deletable_htab.
4974 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
4975 (struct hashed_entry): Likewise.
4976 (nst_method_hash_list): Likewise.
4977 (cls_method_hash_list): Likewise.
4978 (HASH_ALLOC_LIST_SIZE): Delete.
4979 (ATTR_ALLOC_LIST_SIZE): Delete.
4980 * objc/objc-act.c (hash_init): Use ggc to allocate
4981 nst_method_hash_list, cls_method_hash_list.
4982 (hash_enter): Use ggc to allocate; allocate one entry at a time.
4983 (hash_add_attr): Likewise.
4984 (ggc_mark_hash_table): Delete.
4985 (objc_act_parse_init): Delete.
4986 (objc_init): Delete reference to objc_act_parse_init.
4987 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
4988 obstack.h. Replace references to 'struct hash_table' with htab_t.
4989 (struct symbol_hash_entry): Replace hash header with key field.
4990 (struct file_hash_entry): Replace hash header with key field.
4991 (struct demangled_hash_entry): Replace hash header with key field.
4992 (hash_string_eq): New.
4993 (hash_string_hash): New.
4994 (symbol_hash_newfunc): Delete.
4995 (symbol_hash_lookup): Modify to use htab_t.
4996 (file_hash_newfunc): Delete.
4997 (file_hash_lookup): Modify to use htab_t.
4998 (demangled_hash_newfunc): Delete.
4999 (demangled_hash_lookup): Modify to use htab_t.
5000 (tlink_init): Modify to use htab_t.
5003 * ggc.h: Delete forward structure declarations.
5004 Delete prototypes for deleted functions.
5005 * ggc-common.c: Don't include hash.h.
5006 (ggc_add_tree_hash_table_root): Delete.
5007 (ggc_mark_tree_hash_table_entry): Delete.
5008 (ggc_mark_tree_hash_table): Delete.
5009 (ggc_mark_tree_hash_table_ptr): Delete.
5010 * gengtype.c (write_gc_structure_fields): Allow param_is option.
5011 (write_gc_marker_routine_for_structure): Use visibility of
5012 the parameter if there is one.
5013 * function.c: Replace hash.h with hashtab.h. Replace references
5014 to 'struct hash_table *' with htab_t.
5015 (struct insns_for_mem_entry): Include a plain key.
5016 (fixup_var_refs_insns_with_hash): Update to use htab_t.
5017 (insns_for_mem_newfunc): Delete.
5018 (insns_for_mem_hash): Update to use htab_t.
5019 (insns_for_mem_comp): Likewise.
5020 (insns_for_mem_walk): Likewise.
5021 * c-lang.c: Include ggc.h.
5022 * Makefile.in (OBJS): Remove hash.o.
5023 (c-lang.o): Add GGC_H.
5024 (COLLECT2_OBJS): Remove hash.o.
5025 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
5026 (ggc-common.o): Remove hash.h.
5027 (function.o): Remove hash.h, add HASHTAB_H.
5028 (genautomata.o): Remove hash.h, add HASHTAB_H.
5030 * varasm.c (mark_const_str_htab_1): Delete.
5031 (mark_const_str_htab): Delete.
5032 (const_str_htab_del): Delete.
5033 (const_str_htab): Use gengtype to mark.
5034 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
5036 * tree.c (mark_tree_hashtable_entry): Delete.
5037 (mark_tree_hashtable): Delete.
5038 * tree.h (mark_tree_hashtable): Delete prototype.
5039 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
5040 (ggc_mark): Likewise.
5042 (htab_create_ggc): New.
5043 * ggc-common.c (ggc_calloc): New.
5044 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
5045 (struct type): Add param_struct structure.
5046 * gengtype.c (param_structs): New.
5047 (adjust_field_type): Handle param_is option.
5048 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
5049 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
5050 (write_gc_structure_fields): Add new PARAM parameter. Update
5051 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
5052 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
5053 Use it to generate function name. Update callers.
5054 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
5056 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
5058 (main): Define PTR as pointer-to-scalar. Don't specially
5059 mark deferred_string or ehl_map_entry.
5060 * gengtype-yacc.y (PARAM_IS): Add new token.
5061 (externstatic): Use adjust_field_type.
5062 (type_option): Add PARAM_IS.
5063 * gengtype-lex.l: Add rule for typedef of function pointers.
5064 Add rule for PARAM_IS.
5065 (IWORD): Add size_t.
5066 * except.c (exception_handler_label_map): Use gengtype to mark.
5067 (type_to_runtime_map): Likewise.
5068 (mark_ehl_map_entry): Delete.
5069 (mark_ehl_map): Delete.
5070 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
5071 (t2r_mark_1): Delete.
5073 * Makefile.in (gtype-desc.o): Correct dependencies.
5074 (GTFILES): Add hashtab.h.
5075 (genautomata.o): Actually uses hashtab.h.
5077 * Makefile.in (stringpool.o): Add $(GGC_H).
5078 (dwarf2asm.o): Likewise.
5079 (GTFILES): Add hashtable.h.
5080 * c-common.h (struct c_common_identifier): Use gengtype.
5081 * c-decl.h (c_mark_tree): Delete.
5082 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5083 * c-tree.h (struct lang_identifier): Use gengtype.
5084 (union lang_tree_node): New.
5085 (c_mark_tree): Delete prototype.
5086 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
5088 * gengtype-lex.l (IWORD): Allow 'bool'.
5090 * gengtype-yacc.y (ALIAS): New token.
5091 (type_option): New rule.
5092 (option): Use type_option.
5093 * gengtype.c (process_gc_options): New.
5094 (set_gc_used_type): Use it.
5095 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
5096 Add new variable 't' to hold the type of the field being processed.
5097 Add more error checking. Use UNION_P when looking at 'desc' option.
5098 Handle language-specific structures containing other
5099 language-specific structures.
5100 (write_gc_types): Handle 'ptr_alias' option.
5101 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
5102 * ggc-common.c (ggc_pending_trees): Delete.
5103 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
5104 (ggc_mark_trees): Delete.
5105 (gt_ggc_m_tree_node): Delete.
5106 * ggc.h (ggc_pending_trees): Delete.
5107 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
5108 * hashtable.h (ht_identifier): Use gengtype.
5109 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
5110 * langhooks.h (struct lang_hooks): Delete mark_tree.
5111 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
5113 * system.h: Poison LANG_HOOKS_MARK_TREE.
5114 * tree.c (tree_node_structure): New.
5115 * tree.h (struct tree_common): Use gengtype.
5116 (struct tree_int_cst): Likewise.
5117 (struct tree_real_cst): Likewise.
5118 (struct tree_string): Likewise.
5119 (struct tree_complex): Likewise.
5120 (struct tree_vector): Likewise.
5121 (struct tree_identifier): Likewise.
5122 (struct tree_list): Likewise.
5123 (struct tree_vec): Likewise.
5124 (struct tree_exp): Likewise.
5125 (struct tree_block): Likewise.
5126 (struct tree_type): Likewise.
5127 (struct tree_decl): Likewise.
5128 (enum tree_structure_enum): New.
5129 (union tree_node): Use gengtype, with an alias.
5130 (tree_node_structure): Prototype.
5131 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5133 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
5134 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
5135 to LANG_HOOKS_FUNCTION_FINAL.
5136 * Makefile.in (GTFILES): Add bitmap.h.
5137 * except.c (struct eh_region): Mark field 'aka' to be skipped.
5139 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
5140 (alpha_init_machine_status): Give proper type.
5141 * Makefile.in (c-lang.o): Depend on gtype-c.h.
5142 (optabs.o): Depend on gt-optabs.h.
5143 (GTFILES): Add optabs.o.
5144 (gt-optabs.h): Add rule.
5145 * optabs.c: Include gt-optabs.h.
5147 * gengtype.c (set_gc_used_type): Correct some errors in last change.
5148 (write_gc_structure_fields): If a field which should be NULL is
5150 * c-pragma.c: Move struct align_stack and variable alignment_stack
5153 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
5154 * config/xtensa/xtensa.c: Include gt-cris.h.
5155 (struct machine_function): Use gengtype to mark.
5156 * config/mmix/mmix.h (struct machine_function): Use gengtype
5158 * config/cris/t-cris: Add dependencies for gt-cris.h.
5159 * config/cris/cris.c: Include gt-cris.h.
5160 (struct machine_function): Use gengtype to mark.
5161 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
5163 * doc/tm.texi (Per-Function Data): Delete references to
5164 mark_machine_status.
5165 * config/ia64/ia64.c (ia64_override_options): Don't set
5166 mark_machine_status.
5167 * config/i386/i386.c (override_options): Likewise.
5168 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
5169 * config/arm/arm.c (arm_init_expanders): Likewise.
5170 * config/alpha/alpha.c (override_options): Likewise.
5171 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
5172 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
5173 (write_gc_structure_fields): Don't handle 'really' option.
5174 Handle 'maybe_null' option.
5175 (write_gc_types): Handle 'maybe_null' option.
5176 * function.h (struct function): Don't use "really".
5177 (mark_machine_status): Delete declaration.
5178 (mark_lang_status): Delete declaration.
5179 (gt_ggc_mr_machine_function): Delete prototype.
5180 (gt_ggc_mr_language_function): Delete prototype.
5181 * function.c (mark_machine_status): Delete.
5182 (mark_lang_status): Delete.
5183 (gt_ggc_mr_machine_function): Delete.
5184 (gt_ggc_mr_language_function): Delete.
5185 * c-tree.h (mark_c_function_context): Delete prototype.
5186 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
5187 * c-decl.c (struct language_function): Rename from struct
5188 c_language_function. Update uses. Use gengtype to mark.
5189 (mark_c_function_context): Delete.
5190 * c-common.h (struct c_language_function): Rename from struct
5192 (mark_stmt_tree): Delete prototype.
5193 (c_mark_lang_decl): Delete prototype.
5194 (mark_c_language_function): Delete prototype.
5195 * c-common.c (mark_stmt_tree): Delete.
5196 (c_mark_lang_decl): Delete.
5197 (mark_c_language_function): Delete.
5199 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
5200 (lang_bitmap): New typedef. Use where appropriate.
5201 (struct type): Add gc_used field, lang_struct field.
5202 (UNION_P): New macro.
5203 (new_structure): New prototype.
5204 (find_structure): Remove 'pos' parameter. Change all callers.
5205 * gengtype-lex.l: Update for changes to find_structure.
5206 * gengtype-yacc.y (typedef_struct): Use new_structure.
5207 (yacc_ids): Suppress warning.
5208 (type): Use new_structure.
5209 * gengtype.c (string_type): Update for changes to struct type.
5210 (find_structure): Just find a structure, don't worry about
5212 (new_structure): New.
5213 (note_yacc_type): Use new_structure.
5214 (set_gc_used_type): New.
5216 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
5217 (write_gc_types): Handle TYPE_LANG_STRUCT.
5218 (write_gc_marker_routine_for_structure): New.
5219 (main): Call set_gc_used. Add some calls to set_gc_used_type
5220 for places where GCC doesn't use gengtype properly yet.
5221 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
5222 (gt_ggc_m_tree_node): Likewise.
5224 * varasm.c (copy_constant): Call expand_constant if we hit
5225 something we can't recognise.
5227 * ggc-common.c (ggc_mark_rtvec_children): Delete.
5228 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
5229 (lang_mark_false_label_stack): Delete.
5230 * rtl.h (struct rtvec_def): Use gengtype to mark.
5231 * ggc.h (ggc_mark_rtvec): Delete.
5232 (gt_ggc_m_rtvec_def): Delete.
5233 (ggc_mark_nonnull_tree): Delete.
5234 (ggc_mark_rtvec_children): Delete prototype.
5235 (lang_mark_false_label_stack): Delete declaration.
5237 * gengtype.h (note_yacc_type): Add prototype.
5238 * gengtype.c (note_yacc_type): New function.
5239 * gengtype-lex.l: Add lexer support for yacc files.
5240 * gengtype-yacc.y (start): Extract union from yacc files.
5241 (yacc_union): New rule.
5242 (yacc_typematch): New rule.
5243 (yacc_ids): New rule.
5244 (enum_items): Tweak for efficiency.
5245 (optionseq): Likewise.
5247 * c-common.h (struct language_function): Use gengtype.
5248 (struct c_lang_decl): Likewise.
5249 * c-tree.h (struct lang_decl): Likewise.
5250 (struct lang_type): Likewise.
5251 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
5252 tree language substructures.
5254 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
5256 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
5258 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
5260 * stmt.c (struct nesting): Add discriminator. Use gengtype to
5261 mark. Remove 'data.block.cleanup_ptr' field.
5262 (struct stmt_status): Use usual technique to mark struct nesting.
5263 (gt_ggc_mr_nesting_cond): Delete.
5264 (gt_ggc_mr_nesting_loop): Delete.
5265 (gt_ggc_mr_nesting_block): Delete.
5266 (gt_ggc_mr_nesting_case_stmt): Delete.
5267 (expand_start_cond): Set discriminator.
5268 (expand_start_loop): Likewise.
5269 (expand_start_null_loop): Likewise.
5270 (expand_start_bindings_and_block): Set discriminator. Don't set
5272 (expand_decl_cleanup): Replace 'cleanup_ptr' with
5273 &thisblock->data.block.cleanups.
5274 (expand_start_case): Set discriminator.
5275 (expand_start_case_dummy): Set discriminator.
5277 * ggc-callbacks.c: Remove.
5279 * gengtype.h (struct type): Add 'u.s.bitmap' field.
5280 (find_structure): Add 'pos' parameter.
5281 * gengtype-lex.l: Update callers to find_structure.
5282 * gengtype-yacc.y: Likewise.
5283 * gengtype.c (find_structure): Allow for structures to be defined
5284 in multiple language backends.
5285 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
5286 (counter): Rename to gc_counter.
5287 (write_gc_structure_fields): Fail when writing out fields for
5288 an incomplete structure. Ignore arrays of scalars. Handle
5290 (write_gc_types): Reset counter for each procedure written.
5292 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
5293 (free_case_nodes): Delete.
5294 (expand_end_case_type): Delete call to free_case_nodes.
5296 * Makefile.in (cselib.o): Include gt-<filename>.h.
5298 (profile.o): Likewise.
5299 (alias.o): Likewise.
5300 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
5301 alphabetize backend files.
5302 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
5303 * alias.c: Use gengtype for roots.
5304 * c-common.h (struct stmt_tree_s): Use gengtype.
5305 * c-decl.c: Use gengtype for roots.
5306 * cselib.c: Use gengtype for roots.
5307 * expr.c: Use gengtype for roots.
5308 * fold-const.c: Use gengtype for roots.
5309 * gcse.c: Use gengtype for roots.
5310 * gengtype-lex.l: Handle typedefs of function types.
5311 Allow for empty array bounds.
5312 Allow processing to stop on initialisers.
5313 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
5314 (semiequal): New rule.
5315 * gengtype.c (create_file): Tidy output files.
5316 (get_output_file_with_visibility): Fix paren warning. Fix bug
5317 involving multiple input files mapping to one output file.
5318 (write_gc_structure_fields): Skip arrays of scalars.
5319 (write_gc_types): Tidy output files.
5320 (write_gc_root): New function.
5321 (write_gc_roots): Fix bugs, add support for roots that are
5323 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
5324 (ggc_mark_tree_ptr): Delete.
5325 (ggc_add_rtx_root): Delete.
5326 (ggc_add_tree_root): Delete.
5327 (ggc_del_root): Delete.
5328 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
5329 allocate struct initial_value_struct.
5330 * profile.c: Use gengtype for roots.
5331 * sdbout.c: Use gengtype for roots.
5332 * varasm.c (mark_weak_decls): Delete unused prototype.
5333 (mark_const_hash_entry): Delete unused function.
5334 * config/darwin-protos.h: Use gengtype for roots.
5335 (machopic_add_gc_roots): Delete.
5336 * config/arm/arm.c: Use gengtype for roots.
5337 * config/arm/arm.h: Use gengtype for roots.
5338 * config/c4x/c4x-protos.h: Use gengtype for roots.
5339 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
5340 * config/d30v/d30v-protos.h: Use gengtype for roots.
5341 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
5342 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
5343 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
5344 * config/ia64/ia64-protos.h: Use gengtype for roots.
5345 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
5346 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
5347 * config/m68hc11/m68hc11.c (z_reg): Make global.
5348 (z_reg_qi): Make global.
5349 (m68hc11_add_gc_roots): Delete.
5350 * config/mcore/mcore-protos.h: Use gengtype for roots.
5351 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
5352 * config/mips/mips.c (mips_add_gc_roots): Delete.
5353 * config/mips/mips.h: Use gengtype for roots.
5354 * config/mmix/mmix.c (override_options): Use gengtype for roots.
5355 * config/mmix/mmix.h: Use gengtype for roots.
5356 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
5357 * config/mn10200/mn10200.h: Use gengtype for roots.
5358 * config/pa/pa.c: Use gengtype for roots, marking.
5359 (struct deferred_plabel): Use GGC, gengtype.
5360 (pa_add_gc_roots): Delete.
5361 (mark_deferred_plabels): Delete.
5362 * config/pj/pj-protos.h: Use gengtype for roots.
5363 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
5364 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
5365 machopic_add_gc_roots.
5366 * config/rs6000/rs6000.h: Use gengtype for roots.
5367 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
5368 (gt-darwin.h): Add rule.
5369 * config/sh/sh.c: Use gengtype for roots.
5370 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
5371 (gt-sh.h): Add rule.
5372 * config/sparc/sparc.c: Use gengtype for roots.
5373 (sparc_add_gc_roots): Delete.
5374 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
5375 (mark_ultrasparc_pipeline_state): Delete.
5376 * config/sparc/sparc.h: Use gengtype for roots.
5378 * Makefile.in (c-parse.o): Update dependencies.
5379 (c-common.o): Likewise.
5380 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
5381 Add dependencies for the files they generate.
5382 * c-common.c: Replace ggc_add_* uses with GTY annotations.
5383 * c-common.h: Likewise.
5384 * c-decl.c: Likewise.
5385 (gt_ggc_mp_binding_level): Delete.
5386 * c-lang.c: Include gtype-c.h.
5387 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
5389 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
5390 (gt_ggc_mp_align_stack): Delete.
5391 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
5392 * function.c: Replace ggc_add_* uses with GTY annotations.
5393 (gt_ggc_mp_function): Delete.
5394 * function.h: Replace ggc_add_* uses with GTY annotations.
5395 * gengtype.c (lang_names): New.
5396 (NUM_BASE_FILES): New.
5397 (open_base_files): Create language base files.
5399 (get_file_basename): New.
5400 (get_base_file_bitmap): New.
5401 (get_output_file_with_visibility): Rename from get_output_file.
5402 Add more mappings for various C/Objc filenames.
5403 (finish_root_table): New.
5404 (write_gc_roots): Handle dependencies and scoping properly.
5405 * gengtype.h: Add prototypes for new functions.
5406 * ggc-common.c (struct deletable_root): Delete.
5407 (deletables): Delete.
5408 (ggc_add_deletable_root): Delete.
5409 (ggc_mark_roots): No need to deal with deleted functionality.
5410 * ggc.h (ggc_add_deletable_root): Delete prototype.
5411 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
5412 (gtype-objc.h): Add rule to create.
5413 * objc/config-lang.in (gtfiles): New.
5414 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
5415 ggc_add_* with GTY markers. Include gtype-objc.h.
5416 (ggc_mark_imp_list): Delete.
5417 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
5418 * objc/objc-lang.c: Random Whitespace Change.
5420 * except.h (exception_handler_labels): Delete.
5421 (get_exception_handler_labels): New.
5422 * except.c (exception_handler_labels): Delete.
5423 (struct eh_status): Add exception_handler_labels field.
5424 (doing_eh): Don't add exception_handler_labels as root.
5425 (free_eh_status): Don't need to free exception_handler_labels.
5426 (get_exception_handler_labels): New.
5427 (find_exception_handler_labels): Update for move of
5428 exception_handler_labels.
5429 (remove_exception_handler_label): Likewise.
5430 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
5431 * jump.c (rebuild_jump_labels): Likewise.
5432 * loop.c (find_and_verify_loops): Likewise.
5433 * sched-rgn.c (is_cfg_nonregular): Likewise.
5435 * gengtype.c (write_gc_structure_fields): Handle variable-length
5438 * varasm.c (struct weak_syms): Use GGC, gengtype.
5439 (mark_weak_decls): Delete.
5440 (weak_decls): Likewise.
5441 (add_weak): Likewise.
5442 (remove_from_pending_weak_list): Likewise.
5443 (init_varasm_once): Likewise.
5445 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
5446 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
5447 stor-layout.c, regclass.c, and lists.c.
5448 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
5449 gt-regclass.h and gt-lists.h on s-gtype.
5450 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
5451 * except.c: Use gengtype for roots.
5452 * explow.c: Use gengtype for roots. Include gt-explow.h.
5453 * expr.h (init_stor_layout_once): Delete prototype.
5454 * function.c: Use gengtype for roots.
5455 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
5456 * gengtype-yacc.y (start): Can also be an externstatic.
5457 (externstatic): New production.
5458 (struct_fields): Correct array bounds inversion for 2-d arrays.
5459 * gengtype.c (variables): New variable.
5460 (note_variable): New function.
5461 (get_output_file): Include libfuncs.h into gtype-desc.c.
5462 (get_output_file_name): New function.
5463 (write_gc_structure_fields): Suppress warnings.
5464 (write_gc_types): Make static.
5465 (put_mangled_filename): New function.
5466 (write_gc_roots): New function.
5467 (main): Call write_gc_roots.
5468 * gengtype.h (note_variable): Prototype.
5469 (get_output_file_name): Prototype.
5470 (write_gc_types): Delete prototype.
5471 * ggc.h: Clean up unnecessary structure predefinitions.
5472 (struct ggc_root_tab): Define.
5473 (gt_ggc_m_rtx_def): Make function, not macro.
5474 (gt_ggc_m_tree_node): Likewise.
5475 * libfuncs.h: Use gengtype for roots.
5476 * lists.c: Use gengtype for roots. Include gt-lists.h.
5477 (init_EXPR_INSN_LIST_cache): Delete.
5478 * optabs.c: Use gengtype for roots.
5479 (gt_ggc_mp_optab): Delete.
5480 * optabs.h: Use gengtype for roots.
5481 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
5482 * rtl.h: Use gengtype for roots.
5483 (init_EXPR_INSN_LIST_cache): Delete prototype.
5484 * stor-layout.c: Use gengtype for roots.
5485 Include gt-stor-layout.h.
5486 (init_stor_layout_once): Delete.
5487 * toplev.c: Use gengtype for roots. Delete calls to deleted
5489 * tree.c: Use gengtype for roots.
5490 * tree.h: Use gengtype for roots.
5491 * varasm.c: Use gengtype for roots.
5493 * Makefile.in (GTFILES): Add @all_gtfiles@.
5494 * configure: Regenerate.
5495 * configure.in: Construct all_gtfiles from the gtfiles definitions
5497 * gengtype-yacc.y (type): Warn about duplicate structure names.
5498 * gengtype.c (get_output_file): Handle .c files in language
5501 * Makefile.in (GTFILES): Run gengtype on all the config files
5502 and on the target .c file.
5503 * except.c (mark_eh_region): Delete.
5504 (init_eh_for_function): Use GGC on struct eh_status.
5505 (mark_eh_status): Delete.
5506 (free_eh_status): Use GGC.
5507 (expand_eh_region_start): Use GGC to
5508 (collect_eh_region_array): Allocate last_region_number using GGC.
5509 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
5510 (remove_eh_handler): Let GGC free struct eh_region.
5511 (add_call_site): Use GGC to reallocate call_site_record array.
5512 * function.c (init_machine_status): Update calling sequence.
5513 (mark_machine_status): Likewise.
5514 (mark_lang_status): Likewise.
5515 (prepare_function_start): Update init_machine_status call.
5516 (mark_function_status): Delete.
5517 (maybe_mark_struct_function): Delete.
5518 (ggc_mark_struct_function): Delete.
5519 (gt_ggc_mp_function): New.
5520 (gt_ggc_mr_machine_function): New.
5521 (gt_ggc_mr_language_function): New.
5522 (init_function_once): Use canonical names.
5523 * function.h (struct function): Use gengtype.
5524 (init_machine_status): Return the structure.
5525 (mark_machine_status): Take a 'void *'.
5526 (mark_lang_status): Likewise.
5527 * ggc-common.c (ggc_mark_trees): Use canonical name for
5528 ggc_mark_struct_function.
5529 * tree.h (ggc_mark_struct_function): Delete prototype.
5530 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
5531 (alpha_init_machine_status): Likewise.
5532 (override_options): Use canonical name for alpha_mark_machine_status.
5533 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
5534 * config/arm/arm.h (struct machine_function): Use gengtype.
5535 * config/arm/arm.c (arm_mark_machine_status): Delete.
5536 (arm_init_machine_status): Update calling sequence.
5537 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
5538 * config/cris/cris.c (cris_init_machine_status): Update
5540 * config/d30v/d30v.h (struct machine_function): Use gengtype.
5541 * config/d30v/d30v.c (d30v_init_machine_status): Update
5543 (d30v_mark_machine_status): Delete.
5544 * config/i386/i386.c: Include gt-i386.h.
5545 (struct machine_function): Use gengtype.
5546 (ix86_init_machine_status): Update calling sequence.
5547 (ix86_mark_machine_status): Delete.
5548 (override_options): Use canonical namke for ix86_mark_machine_status.
5549 * config/ia64/ia64.h (struct machine_function): Use gengtype.
5550 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
5552 (ia64_mark_machine_status): Delete.
5553 (ia64_override_options): Use canonical name for
5554 ia64_mark_machine_status.
5555 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
5557 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5558 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5559 * gengtype.c (get_output_file): Fix warning.
5560 (main): Add prototype to suppress warning.
5561 * tree.c: Remove tree_hash_mark prototype.
5563 * tree.h (init_stmt): Delete prototype.
5564 * toplev.c (lang_independent_init): Don't call init_stmt.
5565 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5566 (stmt_obstack): Delete.
5567 (POPSTACK): No need to free 'struct nesting'.
5568 (gt_ggc_mr_nesting_cond): Use canonical names.
5569 (gt_ggc_mr_nesting_loop): Use canonical names.
5570 (gt_ggc_mr_nesting_block): Use canonical names.
5571 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5572 (mark_stmt_status): Delete.
5573 (init_stmt): Delete.
5574 (clear_last_expr): Clear both last_expr_type and last_expr_value.
5575 Use it everywhere that last_expr_type was cleared.
5576 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5577 (zap_lists): Delete.
5578 * ggc.h (ggc_add_deletable_root): Prototype.
5579 (mark_stmt_status): Remove prototype.
5580 * ggc-common.c (ggc_add_deletable_root): New.
5581 (ggc_mark_roots): Handle deletable roots.
5582 * function.c (ggc_mark_struct_function): Use canonical name
5583 for mark_stmt_status.
5584 * emit-rtl.c (free_sequence_stack): New.
5585 (start_sequence): Use a freelist for sequences.
5586 (end_sequence): Likewise.
5587 (init_emit_once): Add free_sequence_stack as a deleteable root.
5588 * c-pragma.c Include gt-c-pragma.h.
5589 (struct align_stack): Use gengtype.
5590 (push_alignment): Use GGC for struct align_stack.
5591 (mark_align_stack): Delete.
5592 (gt_ggc_mp_align_stack): New.
5593 (init_pragma): Use canonical name for mark_align_stack.
5594 * c-decl.c: Include gt-c-decl.h.
5595 (struct binding_level): Use gengtype.
5596 (make_binding_level): Use GGC; handle the freelist here.
5597 (pop_binding_level): New.
5598 (pushlevel): Move code into make_binding_level.
5599 (push_label_level): Likewise.
5600 (poplevel): Move code into pop_binding_level.
5601 (pop_label_level): Likewise.
5602 (mark_binding_level): Delete.
5603 (gt_ggc_mp_binding_level): New.
5604 (c_init_decl_processing): Use canonical name for mark_binding_level.
5605 Add free_binding_level as deletable root.
5606 (mark_c_function_context): Use canonical name for mark_binding_level.
5607 * Makefile.in (c-decl.o): Add gt-c-decl.h.
5608 (c-pragma.o): Add gt-c-pragma.h.
5609 (GTFILES): Add c-decl.c and c-pragma.c.
5610 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5612 * tree.c (struct type_hash): Use gengtype.
5613 (init_obstacks): Use canonical name for type_hash_mark.
5614 (type_hash_mark): Delete.
5616 * rtl.h (struct mem_attrs): Use gengtype.
5617 * optabs.h (struct optab): Use gengtype.
5618 * optabs.c (expand_binop): Squish signed/unsigned warning.
5619 (mark_optab): Make local, use canonical name, use autogenerated
5621 (init_optabs): Use canonical name for mark_optab.
5622 (new_optab): Use GGC to allocate optabs.
5623 * ggc.h: Delete mark_optab prototype.
5624 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5625 mem_attrs marker procedure.
5626 * gengtype.c (get_output_file): Include headers in gtype-desc.c
5627 explicitly rather than deducing them from file names.
5628 (write_gc_structure_fields): Handle arrays of structures.
5629 (main): Return non-zero exit code if errors occur during output.
5630 * emit-rtl.c (mem_attrs_mark): Delete.
5631 (init_emit_once): Use canonical name for mem_attrs marker procedure.
5632 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5633 (tree.o): Depend on gt-tree.h.
5634 (GTFILES): Add rtl.h, optabs.h, tree.c.
5635 (gt-tree.h): Add it to s-gtype rule.
5637 * .cvsignore: Ignore gengtype flex/bison generated files.
5638 * Makefile.in (GGC_H): Add gtype-desc.h.
5639 (OBJS): Add gtype-desc.o.
5640 (GEN): Add gengtype.
5641 (STAGESTUFF): Add gengtype.
5642 (varasm.o): Add gt-varasm.h.
5643 (stmt.o): Add gt-stmt.h.
5644 (except.o): Add gt-except.h.
5645 (integrate.o): Add gt-integrate.h.
5647 Add new rules for new files.
5648 * configure: Regenerate.
5649 * configure.in: Correct defaults.h paths.
5650 * emit-rtl.c (mark_sequence_stack): Delete.
5651 (mark_emit_status): Delete.
5652 (start_sequence): Allocate sequence structures using GGC.
5653 (end_sequence): Allocate sequence structures using GGC.
5654 * except.c: Use gengtype for various structures. Include
5656 * expr.c (mark_expr_status): Delete.
5657 * function.c: Use gengtype for various structures. Include
5659 (mark_function_status): Use standard gt_ggc names for marker functions.
5660 (ggc_mark_struct_function): Likewise.
5661 * function.h: Use gengtype for various structures.
5662 * gengtype-lex.l: New file.
5663 * gengtype-yacc.y: New file.
5664 * gengtype.c: New file.
5665 * gengtype.h: New file.
5666 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
5667 the standard names. Remove some now-unnecessary prototypes.
5668 * integrate.c: Use gengtype for various structures. Include
5670 (mark_hard_reg_initial_vals): Delete.
5671 * integrate.h (mark_hard_reg_initial_vals): Delete.
5672 * stmt.c: Use gengtype for various structures. Include
5674 (mark_case_node): Delete.
5675 (mark_goto_fixup): Delete.
5676 (mark_stmt_status): Use standard gt_ggc names for marker functions.
5677 * system.h: Define GTY to empty. In flex/bison files,
5678 don't poison malloc or realloc, instead just define them to
5679 xmalloc and xrealloc.
5680 * varasm.c: Use gengtype for various structures. Include
5681 gt-varasm.h. Use standard gt_ggc names for marker functions.
5682 (mark_pool_constant): Delete.
5683 (mark_varasm_status): Delete.
5684 (decode_rtx_const): #if 0 out non-typesafe hack.
5686 * function.h (free_lang_status): Mark as obsolete.
5687 * function.c (free_lang_status): Mark as obsolete.
5688 * c-decl.c (push_c_function_context): Use GC to allocate and free
5689 struct language_function.
5690 (pop_c_function_context): Likewise.
5691 * c-common.c (mark_c_language_function): Mark struct
5694 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5695 Document that the machine_function structures must be allocated
5696 using GC. Update mark_machine_status documentation.
5697 * function.h: Don't declare free_machine_status.
5698 * function.c (free_machine_status): Don't define.
5699 (free_after_compilation): Don't call free_machine_status.
5700 (ggc_mark_struct_function): Mark f->machine. Call
5701 mark_machine_status only on non-NULL pointers.
5702 * system.h: Poison free_machine_status.
5703 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5704 struct machine_function.
5705 (xtensa_free_machine_status): Delete.
5706 (override_options): Don't set free_machine_status.
5707 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5708 free_machine_status.
5709 (rs6000_init_machine_status): Use GC on struct machine_function.
5710 (rs6000_free_machine_status): Delete.
5711 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5713 (ia64_mark_machine_status): Likewise.
5714 (ia64_free_machine_status): Delete.
5715 (ia64_override_options): Don't set free_machine_status.
5716 * config/i386/i386.c (override_options): Don't set
5717 free_machine_status.
5718 (ix86_init_machine_status): Use GC on struct machine_function.
5719 (ix86_mark_machine_status): Likewise.
5720 (ix86_free_machine_status): Delete.
5721 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5723 (d30v_mark_machine_status): Likewise.
5724 (d30v_free_machine_status): Delete.
5725 (d30v_init_expanders): Don't set free_machine_status.
5726 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5728 (arm_init_machine_status): Likewise.
5729 (arm_free_machine_status): Delete.
5730 (arm_init_expanders): Don't set free_machine_status.
5731 * config/alpha/alpha.c (override_options): Don't set
5732 free_machine_status.
5733 (alpha_init_machine_status): Use GC on struct machine_function.
5734 (alpha_mark_machine_status): Likewise.
5735 (alpha_free_machine_status): Delete.
5737 * varasm.c (compare_constant): Fix typo.
5739 * varasm.c: Don't include obstack.h.
5740 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5741 (struct rtx_const): Give substructures names, improve formatting.
5742 (struct constant_descriptor): Delete.
5743 (struct constant_descriptor_tree): New, based on constant_descriptor.
5744 (const_hash_table): Is a hash table of trees.
5745 (mark_const_hash_entry): Is used for hashes of trees. Mark
5746 constant_descriptor_tree structure.
5747 (mark_const_str_htab_1): Mark deferred_string structure.
5748 (compare_constant): Rewrite to compare trees.
5749 (compare_constant_1): Delete.
5750 (record_constant): Delete.
5751 (record_constant_1): Delete.
5752 (output_constant_def): Use struct constant_descriptor_tree.
5753 Don't duplicate trees twice.
5754 (struct constant_descriptor_rtx): New.
5755 (struct pool_constant): Used for rtx constants.
5756 (init_varasm_status): Update for change to struct varasm_status.
5757 (mark_varasm_status): Likewise.
5758 (free_varasm_status): Delete.
5759 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5760 (record_constant_rtx): Likewise.
5761 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5762 (force_const_mem): Likewise.
5763 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5764 * function.c (free_after_compilation): Don't use free_varasm_status.
5765 * function.h: Don't prototype free_varasm_status.
5767 * ggc-common.c (ggc_realloc): Handle X being NULL.
5769 * ggc-common.c (ggc_realloc): New function.
5770 * ggc.h: Prototype it.
5771 * emit-rtl.c (free_emit_status): Delete.
5772 (init_emit): Allocate emit subarrays using GC.
5773 (gen_reg_rtx): Reallocate subarrays using GC.
5774 (init_emit): Use GC to allocate 'struct emit_status' and its
5776 (mark_emit_status): Mark structure and its subarrays.
5777 * stmt.c (free_stmt_status): Delete.
5778 * expr.c (free_expr_status): Delete.
5779 * function.h: Remove prototypes for deleted functions.
5780 * function.c (free_after_compilation): Don't use deleted functions.
5781 Don't call free() on x_parm_reg_stack_loc.
5782 (free_after_parsing): Don't use free_stmt_status.
5783 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5784 (mark_function_status): Mark x_parm_reg_stack_loc.
5786 * varasm.c (init_varasm_status): Use GC to allocate
5787 'struct varasm_status' and its fields x_const_rtx_hash_table
5788 and x_const_rtx_sym_hash_table.
5789 (mark_varasm_status): Mark them.
5790 (free_varasm_status): Use GC to free them.
5791 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5792 (mark_expr_status): Mark the structure itself.
5793 (free_expr_status): Use GC to free the structure.
5794 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5795 (mark_stmt_status): Mark the 'struct stmt_status' itself.
5796 (init_stmt_for_function): Allocate the structure for GC.
5798 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5799 (equate_type_number_to_die): Likewise.
5800 * tree.h (TYPE_SYMTAB_DIE): New macro.
5801 (struct die_struct): Predeclare.
5802 (struct tree_type): Add field symtab.die. Add a tag
5803 to the union type of field symtab.
5805 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5806 'struct rtvec_def *', not 'struct rtvec_def'.
5808 * function.h (original_arg_vector): Make a real rtvec.
5809 * function.c (ggc_mark_struct_function): Adjust.
5810 * integrate.c (expand_inline_function): Adjust.
5812 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5814 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5815 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5816 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5817 (TARGET_VERSION_CPU): Define according to the
5819 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5821 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5822 if TARGET_SHMEDIA64.
5823 (LINK_DEFAULT_CPU_EMUL): Define according to the
5825 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5826 (SUBTARGET_LINK_SPEC): Define.
5827 (LINK_SPEC): Use SH_LINK_SPEC.
5829 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5830 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5831 and TARGET_SHMEDIA64 which abort, for now.
5832 * config/sh/t-netbsd-sh5: New file.
5833 * config/sh/t-netbsd-sh5-32: New file.
5834 * config/sh/t-netbsd-sh5-64: New file.
5836 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5837 Richard Henderson <rth@redhat.com>
5839 * config/alpha/alpha.c (reg_or_const_int_operand): New.
5840 (some_operand, input_operand): Accept CONST_VECTOR.
5841 (alpha_extra_constraint): Add 'W'.
5842 (alpha_expand_zap_mask): New.
5843 (alpha_expand_builtin_vector_binop): New.
5844 (enum alpha_builtin): New.
5845 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5846 (alpha_init_builtins, alpha_expand_builtin): New.
5847 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5848 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5849 (PREDICATE_CODES): Update.
5850 * config/alpha/alpha-protos.h: Update.
5851 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5852 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5853 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5854 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5855 (movv2si, movv2si_fix, movv2si_nofix): New.
5856 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5857 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5858 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5859 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5860 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5861 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5862 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5863 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5864 builtin_unpkbw, unpkbw): New.
5865 * doc/extend.texi (Alpha Built-in Functions): New.
5867 2002-06-03 Richard Henderson <rth@redhat.com>
5869 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5870 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5872 2002-06-03 Richard Henderson <rth@redhat.com>
5874 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5876 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5877 (const0_operand): New.
5878 (reg_or_fp0_operand, fp0_operand): Remove.
5879 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5880 * config/alpha/alpha-protos.h: Update.
5881 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5882 and fp0_operand with reg_or_0_operand and const0_operand.
5884 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5886 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5888 2002-06-03 Roger Sayle <roger@eyesopen.com>
5890 * gcse.c (cprop_jump): Use single_set to get the pattern
5891 from the setcc argument.
5893 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
5895 * diagnostic.h (diagnostic_count): Move from output_buffer to
5897 (diagnostic_kind_count): Adjust definition.
5899 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
5901 * except.c (except.c): Do not rebuild CFG.
5902 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5905 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5907 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5908 * toplev.c: Include cfglahout.h
5909 * Makefile.in (toplev.c): Add dependnecy.
5911 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
5913 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5914 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5915 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5917 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5919 * config/ns32k/netbsd.h: Update copyright years.
5920 (TARGET_OS_CPP_BUILTINS): Define.
5921 (CPP_PREDEFINES): Remove.
5922 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5923 (TARGET_CPU_CPP_BUILTINS): Define.
5925 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5927 * emit-rtl.c: Fix formatting.
5928 * errors.h: Likewise.
5929 * except.c: Likewise.
5930 * explow.c: Likewise.
5931 * expmed.c: Likewise.
5935 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5937 * config/h8300/elf.h: Fix formatting.
5938 * config/h8300/rtems.h: Likewise.
5940 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5942 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5944 2002-06-02 Tom Tromey <tromey@redhat.com>
5946 * fixinc/fixincl.x: Rebuilt.
5947 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5949 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5952 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5953 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
5957 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
5959 * final.c (final): Allow notes to not have computed addresses;
5960 kill no longer needed STACK_REGS ifdef.
5962 2002-06-02 Richard Henderson <rth@redhat.com>
5964 * gcse.c (bypass_conditional_jumps): Fix typo last change.
5966 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5968 * loop.c (emit_prefetch_instructions): Properly place the address
5971 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
5973 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
5974 (set_block_for_insn): Turn into macro.
5975 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
5976 * cfglayout.c (insn_scopes): Kill.
5977 (scope_to_insns_initialize): Do not use insn_scopes.
5978 (scope_to_insns_finalize): Likewise.
5979 (duplicate_insn_chain): Likewise.
5980 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
5981 * cfgrtl.c (basic_block_for_insn): Kill.
5982 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
5983 (create_basic_block_structure): Use reorder_insns.
5984 (compute_bb_for_insn): Do not use basic_block_for_insn.
5985 (merge_blocks_nomove): Likewise.
5986 (update_bb_for_insn): Likewise.
5987 (verify_flow_info): Likewise.
5988 (set_block_for_insn): Kill.
5989 * combine.c (try_combine): Update gen_rtx_INSN call.
5990 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
5991 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
5993 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
5994 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
5996 (emit_insns_after): Simplify.
5997 (emit_copy_of_insn_after): Copy scope.
5998 * final.c (final_start_function): Lower scopes.
5999 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
6000 * integrate.c (copy_insn_list): Cope scopes.
6001 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
6002 * loop.c (loop_optimize): Do not care block notes.
6003 * print-rtl.c (print_rtx): Print BB.
6004 * recog.c (apply_change_group): Simplify.
6005 * rtl.c (copy_rtx): Handle 'B'.
6006 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
6007 * rtl.h (Field accessors): Update indexes.
6008 * sched-ebb.c (schedule_ebbs): Do not lower notes.
6009 * sched-rgn.c (schedule_insns): Likewise.
6010 * toplev.c (rest_of_compilation): Lower notes.
6011 * unroll.c (unroll_loop): Do not care scoping notes.
6012 (copy_loop_body): Copy scopes.
6014 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6017 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
6019 * rtems.h: Similarly.
6020 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
6021 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
6022 (TARGET_CPU_CPP_BUILTINS): Use.
6024 2002-06-02 Richard Henderson <rth@redhat.com>
6026 * alias.c: Include target.h.
6027 (mark_constant_function): Use targetm.binds_local_p instead
6028 of checking TREE_PUBLIC ourselves.
6029 * Makefile.in (alias.o): Add TARGET_H.
6031 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6033 * c-lex.c: Update copyright and file description.
6035 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6037 * config/fr30/fr30.h: Update to new CPP macros.
6039 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6041 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
6043 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6044 Zack Weinberg <zack@codesourcery.com>
6046 * c-common.c (c_common_init): Override cpplib's default
6047 warn_long_long setting.
6048 * c-lex.c (lex_number): Replace with interpret_integer,
6049 interpret_float, narrowest_unsigned_type and
6050 narrowest_signed_type, taking advantage of the new
6051 cpplib functionality.
6052 * cpperror.c (_cpp_begin_message): If a warning is turned
6053 into an error, avoid printing "warning:".
6054 * cppexp.c (cpp_num_sign_extend): New.
6055 * cppinit.c: Update comment.
6056 * cpplib.h (cpp_num_sign_extend): New.
6057 * tree.h: Update comment.
6059 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6061 * diagnostic.h (struct diagnostic_context): Add new member
6063 (internal_error_function): Remove declaration.
6064 * diagnostic.c (internal_error_function): Remove definition..
6065 (internal_error): Adjust use.
6067 2002-06-02 Richard Henderson <rth@redhat.com>
6069 * rtl.h (CC0_P): New.
6070 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
6071 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
6072 (bypass_block): Save old dest block for dump text.
6073 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
6074 Allow only true SET insns, not single_set.
6076 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6078 * diagnostic.c (diagnostic_finish): Rename to output_flush.
6079 (clear_disgnostic_info): Rename to output_clear_data. Use false
6080 instead of 0 for boolean value.
6081 Adjust function call throughout.
6083 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6085 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
6086 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
6088 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6090 * d30v.h (CPP_PREDEFINES): Replace with
6091 (TARGET_CPU_CPP_BUILTINS): New.
6093 2002-06-02 Roger Sayle <roger@eyesopen.com>
6095 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
6097 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
6099 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
6101 2002-06-02 Richard Henderson <rth@redhat.com>
6103 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
6105 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
6107 Support for C++ constructors/destructors.
6108 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
6109 instead of looping if main() returns.
6110 (asm_file_start): Output global symbols that cause .data and .bss
6111 initialization code to be linked in, unconditionally for now.
6112 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
6113 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
6114 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6116 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
6117 (__tablejump__): New.
6118 (__do_copy_data, __do_clear_bss): New.
6119 (__do_global_ctors, __do_global_dtors): New.
6120 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
6123 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6125 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
6126 (CPP_SPEC, CPP_PREDEFINES): Kill.
6127 * c4x/rtems.h (CPP_PREDEFINES): Kill.
6128 (TARGET_OS_CPP_BUILTINS): New.
6130 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
6132 * Makefile.in (tracer.o): New.
6133 * params.def (TRACER_*): New options.
6134 * rtl.h (tracer): Declare.
6135 * timevar.def (TV_TRACER): New.
6136 * toplev.c (dump_file_index): Add DFI_tracer.
6137 (dump_file_info): Add tracer.
6139 (lang_indepdenent_options): Add tracer.
6140 (rest_of_compilation): Call tracer.
6141 * tracer.c: New file.
6142 * invoke.texi (-ftracer): Document.
6143 (--param tracer-*): Document.
6145 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
6147 * tree-inline.c (expand_call_inline): Make the statement
6148 expression we generate have a COMPOUND_STMT.
6150 2002-06-01 Roger Sayle <roger@eyesopen.com>
6152 * gcse.c (cprop_cc0_jump): Function deleted.
6153 (cprop_jump): Take an additional argument which is the possibly
6154 NULL cc setting insn immediately before the conditional jump.
6155 When a MODE_CC set is present, substitute it into the JUMP_INSN
6156 before attempting the constant propagation.
6157 (cprop_insn): Recognize cc setters followed by conditional jumps
6158 as a special case. Use cprop_jump instead of cprop_cc0_jump.
6159 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
6160 (find_bypass_set): New function based upon find_avail_set used by
6161 cprop, but finds constant expressions available at the end of
6163 (bypass_block): New function. Given a basic block that begins
6164 with a conditional jump and multiple incoming edges, perform
6165 the jump bypass optimization.
6166 (bypass_conditional_jumps): New function. Call bypass_block with
6167 each suitable basic block in the CFG using a simple single pass.
6169 2002-06-01 Roger Sayle <roger@eyesopen.com>
6171 * tree.c (real_minus_onep): New function to test for -1.0.
6172 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
6174 2002-06-01 Roger Sayle <roger@eyesopen.com>
6176 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
6177 and "!p && !q" into "(p|q) == 0" under suitable conditions.
6179 2002-06-01 Andreas Jaeger <aj@suse.de>
6181 * cppexp.c (cpp_classify_number): Cast precission to int for
6182 correct printf format.
6184 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
6186 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
6187 expected, but don't really exist: atmega83, atmega85, attiny10.
6188 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
6189 emulations for all devices.
6190 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
6191 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
6193 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
6195 * config/h8300/h8300-protos.h: Add a prototype for
6196 h8300_shift_needs_scratch_p.
6197 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
6198 * config/h8300/h8300.h (OK_FOR_R): New.
6199 (OK_FOR_S): Likewise.
6200 (OK_FOR_T): Likewise.
6201 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
6202 * config/h8300/h8300.md (anonymous shift patterns): Use
6203 constraints R, S, and T.
6205 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6207 * basic-block.h (struct basic_block_def): New field loop_father.
6208 (BB_VISITED): New flag.
6209 (struct loop): New field pred, removed field shared.
6210 (struct loops): New field parray.
6211 (LOOP_EXITS_DOMS): Removed.
6212 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
6213 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
6214 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
6215 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
6216 verify_loop_structure): Declare.
6217 * cfg.c (entry_exit_blocks): Initialize loop_father field.
6218 * cfganal.c (dfs_enumerate_from): New function.
6219 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
6220 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6221 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
6222 flow_loop_dump, flow_loops_dump, flow_loops_free,
6223 flow_loop_tree_node_add, flow_loop_level_compute,
6224 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
6225 flow_loop_outside_edge_p): Modified for new infrastructure.
6226 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
6227 redirect_edge_with_latch_update, flow_loop_free): New static functions.
6228 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
6229 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
6230 find_common_loop, verify_loop_structure, loop_latch_edge,
6231 loop_preheader_edge): New functions.
6232 (flow_loops_cfg_dump): Do not show dominators, as this information
6233 does not remain up to date long.
6234 (flow_loops_find): Store results in new format.
6235 * predict.c (propagate_freq, estimate_probability,
6236 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
6239 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
6241 * except.c (nothrow_function_p): Walk epilogue delay list
6242 checking the insn, not the chain for potential throws.
6244 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6246 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
6247 (install): Refer to install-cpp directly.
6248 (uninstall-cpp): Folded into uninstall rule.
6249 * configure.in: Delete all code relating to --disable-cpp.
6250 * configure: Regenerate.
6251 * config/t-install-cpp: Delete.
6253 2002-05-31 Richard Henderson <rth@redhat.com>
6255 * configure.in (HAVE_AS_TLS): Add alpha tests.
6256 * configure: Rebuild.
6257 * config/alpha/alpha.c (TARGET_AS_TLS): New.
6258 (alpha_tls_size, alpha_tls_size_string): New.
6259 (overide_options): Set it. Always install machine_status hooks.
6260 (input_operand): Accept got tls predicates.
6261 (local_symbol_p): Merge into ...
6262 (local_symbolic_operand): ... here. Reject tls symbols.
6263 (global_symbolic_operand): Likewise.
6264 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
6265 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
6266 (tp16_symbolic_operand, tp32_symbolic_operand): New.
6267 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
6268 (alpha_encode_section_info): Handle TLS symbols.
6269 (alpha_strip_name_encoding): Likewise.
6270 (alpha_legitimate_address_p): Likewise.
6271 (alpha_legitimize_address): Likewise.
6272 (alpha_expand_mov): Early exit to avoid nop moves.
6273 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
6274 (alpha_init_machine_status, alpha_mark_machine_status,
6275 alpha_free_machine_status): Always define.
6276 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
6277 (print_operand, print_operand_address): Add TLS relocs.
6278 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
6279 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
6280 (TARGET_SWITCHES): Add -mtls-kernel.
6281 (alpha_tls_size, alpha_tls_size_string): New.
6282 (TARGET_OPTIONS): Add -mtls-size=.
6283 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
6284 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
6285 (ASM_OUTPUT_LABELREF): Skip %.
6286 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
6287 (PREDICATE_CODES): Update.
6288 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
6289 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
6290 UNSPEC_TP, UNSPECV_SET_TP): New.
6291 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
6292 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
6293 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
6294 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
6295 (call_value_osf_2_er): Accept anything as op4.
6296 * config/alpha/alpha-protos.h: Update.
6297 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
6299 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6301 * cppinit.c (append_include_chain): Always pay attention to
6302 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
6305 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
6307 * target.h: Fix formatting.
6308 * timevar.h: Likewise.
6309 * tlink.c: Likewise.
6310 * toplev.c: Likewise.
6311 * toplev.h: Likewise.
6313 * tree-dump.h: Likewise.
6315 * tree-inline.h: Likewise.
6316 * unroll.c: Likewise.
6317 * unwind-dw2.c: Likewise.
6318 * unwind-dw2-fde.c: Likewise.
6319 * unwind-dw2-fde-glibc.c: Likewise.
6320 * unwind-dw2-fde.h: Likewise.
6321 * unwind.h: Likewise.
6322 * unwind-sjlj.c: Likewise.
6323 * varasm.c: Likewise.
6324 * varray.h: Likewise.
6325 * vmsdbg.h: Likewise.
6326 * vmsdbgout.c: Likewise.
6327 * xcoffout.h: Likewise.
6329 2002-05-31 Igor Shevlyakov <igor@microunity.com>
6331 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
6332 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
6334 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
6336 * gcc.c (cpp_unique_options): Remove "-d" options.
6337 (cpp_debug_options): New spec string.
6338 (default_compilers): Use it.
6339 * objc/lang-specs.h: Likewise.
6341 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
6343 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
6344 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
6345 * gcc/mklibgcc.in: Likewise.
6346 * gcc/config/arc/t-arc: Likewise.
6347 * gcc/configure.in: Likewise.
6348 * gcc/configure: Regenerate.
6350 2002-05-31 Stan Shebs <shebs@apple.com>
6351 Turly O'Connor <turly@apple.com>
6353 * c-decl.c (struct binding_level): Change int field n_incomplete
6354 to tree list incomplete_list.
6355 (clear_binding_level): Init field with NULL.
6356 (pushdecl): Add incomplete type to list.
6357 (mark_binding_level): Mark the incomplete list.
6358 (finish_struct): Scan the incomplete list for types instead
6359 of all decls in the current binding level.
6361 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6363 * pa.c (output_millicode_call): Add missing '%' characters.
6364 (output_call): Likewise.
6366 2002-05-31 David Edelsohn <edelsohn@gnu.org>
6368 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
6369 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6371 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
6373 * varasm.c (mark_constant_pool): Walk epilogue delay list
6374 checking the insn, not the chain for potential constants.
6376 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
6378 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
6380 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
6382 * i386.c (classify_argument): Properly handle base types.
6384 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
6385 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
6388 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6390 * gcse.c (gcse_emit_move_after): New.
6391 (pre_delete, hoist_store): Use it.
6393 * reload1.c (emit_input_reload_insns): Use constrain_operands
6394 instead of constraint_accepts_reg_p to verify optimization.
6395 (constraint_accepts_reg_p): Kill
6397 * reload1.c (reload_cse_delete_noop_set): Kill.
6398 (reload_cse_simplify): use delte_insn_and_edges.
6400 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6402 * cfgloop.c (flow_loops_find): Initialize first and last fields
6405 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
6407 * c-common.c (builtin_define_std): Correct logic.
6409 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6411 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
6412 (output_call): Likewise.
6414 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6416 * pa.c: Move output.h include after tree.h include.
6417 (pa_asm_output_mi_thunk): Constify identifier lab.
6419 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6421 * config/ns32k/ns32k.h: Define named constants for the
6422 bits in target_flags and use them.
6423 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
6425 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6427 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
6428 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
6429 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
6430 default scheduling model.
6431 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
6432 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
6433 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
6434 * doc/install.texi (hppa*-*-*): Document default scheduling.
6436 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6438 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
6440 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6442 * config.gcc (ns32k-*-netbsd*): Set tm_file to
6443 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
6444 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
6445 netbsd.h, or netbsd-aout.h.
6447 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6449 * longlong.h (count_trailing_zeros): Add missing \, and clean up
6450 whitespace in __ns32000__ case.
6452 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
6454 * expr.c (expand_expr): Output partially zeroed out vectors with
6455 output_constant_def.
6457 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6459 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
6461 (shl*-*-netbsdelf*): New targets.
6462 * config/sh/netbsd-elf.h: New file.
6463 * config/sh/t-netbsd: New file.
6465 2002-05-30 Richard Henderson <rth@redhat.com>
6466 Eric Botcazou <ebotcazou@multimania.com>
6468 PR optimization/6822
6469 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
6470 to unsigned int for op1 comparisons. Use gen_int_mode.
6472 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
6474 * expmed.c (const_mult_add_overflow_p): New.
6475 * expr.h: Declare it.
6476 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
6477 Don't eliminate the biv if the giv has a constant multiplier and
6478 the rhs argument of the comparison does satisfy the predicate.
6479 Use expand_mult_add to compute the replacement constant.
6481 2002-05-30 Osku Salerma <osku@iki.fi>
6483 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
6484 (c_common_get_alias_set): Handle it.
6485 * doc/extend.texi: Document it.
6487 2002-05-30 Richard Henderson <rth@redhat.com>
6489 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6490 * toplev.c (process_options): Don't check it.
6491 * doc/tm.texi: Don't document it.
6492 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
6493 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6494 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
6495 frame pointer optimization if current_function_profile.
6497 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
6499 * langhooks.c: Fix formatting.
6500 * langhooks.h: Likewise.
6502 * libgcc2.c: Likewise.
6503 * lists.c: Likewise.
6504 * local-alloc.c: Likewise.
6508 2002-05-30 Marc Espie <espie@openbsd.org>
6510 * config.gcc (sparc64-*-openbsd*): New.
6511 * config/sparc/openbsd1-64.h: New.
6512 * config/sparc/openbsd64.h: New.
6514 2002-05-30 Jeff Law <law@redhat.com>
6516 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
6517 a dead insn with a REG_RETVAL note when the entire libcall is not
6518 dead and remove the associated REG_LIBCALL note at the same time.
6520 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
6522 * lcm.c (output.h): #include.
6523 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
6524 as an ordinary block.
6525 (optimize_mode_switching): Don't pretend that the exit block is
6526 an ordinary block, or handle sucessors of entry block specially.
6527 Instead, split edges from entry block and to exit block, and
6528 put a computing definition on the thus gained post-entry-block,
6529 and a need on the pre-exit-block.
6531 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6533 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
6534 * rtl.texi: Document 'B'
6536 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6538 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
6540 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
6542 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
6544 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6545 const0_rtx instead of NULL_RTX when in error.
6546 (altivec_expand_abs_builtin): Same.
6547 (rs6000_expand_binop_builtin): Same.
6548 (altivec_expand_predicate_builtin): Same.
6549 (altivec_expand_stv_builtin): Same.
6550 (rs6000_expand_ternop_builtin): Same.
6551 (altivec_expand_builtin): Same.
6553 2002-05-29 David S. Miller <davem@redhat.com>
6555 * rtl.h (clear_emit_caches): Delete.
6556 * integrate.c (output_inline_function): Don't call it.
6557 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6558 (clear_emit_caches): Delete definition.
6559 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6561 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
6563 * config/mmix/mmix.c: Include real.h.
6564 (mmix_constant_address_p): Remove redundant test before switch.
6566 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6568 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6569 only if not already defined.
6571 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6573 * config/h8300/h8300-protos.h: Remove prototypes for
6574 ok_for_bclr and small_power_of_two.
6575 * config/h8300/h8300.c (small_power_of_two): Remove.
6576 (ok_for_blcr): Likewise.
6577 (fix_bit_operand): Make WHAT deal with an integer instead of a
6578 constraint character.
6579 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6580 (CONST_OK_FOR_P): Likewise.
6581 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6582 CONST_OK_FOR_P any more.
6583 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6588 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6590 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6591 (CPP_PREDEFINES): Make sure this is undefined.
6592 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6593 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
6594 or -U__MIPSEB__ before defining one or the other. Instead,
6595 use %(subtarget_endian_default) if neither -EB nor -EL are
6597 (SUBTARGET_EXTRA_SPECS): Define.
6598 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
6601 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6603 * doc/md.texi (Patterns): Note pattern condition pitfall
6606 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
6608 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6609 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
6610 ternary operations from here...
6611 (rs6000_expand_builtin): ...to here.
6612 New argument expandedp.
6613 Change all instances of altivec_expand_binop_builtin to
6614 rs6000_expand_binop_builtin.
6615 (altivec_expand_unop_builtin): Rename to
6616 rs6000_expand_unop_builtin.
6617 (altivec_expand_binop_builtin): Rename to
6618 rs6000_expand_binop_builtin.
6619 (altivec_expand_ternop_builtin): Rename to
6620 rs6000_expand_ternop_builtin.
6622 2002-05-29 Richard Henderson <rth@redhat.com>
6624 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6625 (TARGET_BI_ARCH): Likewise.
6626 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6627 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6628 (TARGET_64BIT_DEFAULT): Default to 0.
6629 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6631 2002-05-29 Richard Henderson <rth@redhat.com>
6633 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6634 (get_pc_thunk_name): New.
6635 (output_set_got): Use it.
6636 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6637 into linkonce sections.
6639 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6641 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6642 (CPP_PREDEFINES): Make sure this is undefined.
6643 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6644 (CPP_SUBTARGET_SPEC): Don't provide different versions for
6645 default-32 and default-64. Just always use %(netbsd_cpp_spec).
6646 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6647 cpp_subtarget_spec64. Add netbsd_cpp_spec.
6648 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6649 (CPP_PREDEFINES): Make sure this is undefined.
6650 (SUBTARGET_EXTRA_SPECS): Define.
6651 (CPP_SPEC): Use %(netbsd_cpp_spec).
6653 2002-05-29 Jeff Law <law@redhat.com>
6655 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6657 * flow.c (propagate_one_insn): Do not remove a dead insn if it
6658 contains a REG_RETVAL note.
6660 * haifa-sched (sched_analyze): Remove another useless clearing
6661 of SCHED_GROUP_P I missed yesterday.
6663 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6664 * pa.c (pa_asm_output_mi_thunk): New function.
6665 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6667 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6668 Marek Michalkiewicz <marekm@amelek.gda.pl>
6670 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6671 (avr_asm_only_p): Make non-static.
6672 (enum avr_arch): Remove.
6673 (avr_arch_types): New.
6674 (avr_mcu_types): Update.
6675 (avr_override_options): Use avr_arch_types table instead of switch.
6676 * avr.h (CPP_PREDEFINES): Die.
6677 (avr_base_arch_macro, avr_extra_arch_macro): New.
6678 (TARGET_CPU_CPP_BUILTINS): New.
6679 (CPP_SPEC, EXTRA_SPECS): Simplify.
6680 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6681 CPP_AVR5_SPEC): Die.
6683 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6685 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6686 NETBSD_OS_CPP_BUILTINS_AOUT.
6687 (SUBTARGET_EXTRA_SPECS): Define.
6688 (CPP_SPEC): Use %(netbsd_cpp_spec).
6690 2002-05-29 Richard Henderson <rth@redhat.com>
6692 * config/i386/i386.c (ix86_output_function_epilogue): New.
6693 (TARGET_ASM_FUNCTION_EPILOGUE): New.
6694 (pic_label_name): Remove.
6695 (pic_labels_used): New.
6696 (ix86_asm_file_end): Emit one pc load stub for each register used.
6697 (output_set_got): Generate deep pc load to any register.
6698 (ix86_select_alt_pic_regnum): New.
6699 (ix86_save_reg): Don't save pic register if we can find a valid
6700 call-clobbered replacement.
6701 (ix86_expand_prologue): If we found a valid replacement, renumber
6702 pic_offset_table_rtx.
6703 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6704 pic_offset_table_rtx after reload.
6705 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6706 * config/i386/i386.md (set_got): Make insn, not expander.
6707 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6709 2002-05-29 Richard Henderson <rth@redhat.com>
6711 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6712 alignment for alloca.
6714 2002-05-29 Richard Henderson <rth@redhat.com>
6716 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6717 (print_operand_address): Only add rip for symbolic addresses
6718 for which we do not have another relocation type.
6720 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6722 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6723 (EXTRA_SPECS): Add netbsd_cpp_spec.
6724 (CPP_SPEC): Use %(netbsd_cpp_spec).
6725 (CPP_PREDEFINES): Remove.
6726 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6727 (EXTRA_SPECS): Define.
6728 (CPP_SPEC): Use %(netbsd_cpp_spec).
6729 (CPP_PREDEFINES): Remove.
6731 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6733 PR preprocessor/6844
6734 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6737 2002-05-29 Eric Christopher <echristo@redhat.com>
6739 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6740 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6742 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
6744 * config/fr30/fr30.md: Remove previous restriction on splits.
6745 Enforce conformance through gen_lowpart and cont_int_operand.
6746 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
6747 as the assembler does not support ".bss".
6749 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6751 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6752 (CPP_PREDEFINES): Remove.
6753 (SUBTARGET_EXTRA_SPECS): Define.
6754 (CPP_SPEC): Use %(netbsd_cpp_spec).
6755 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6756 (CPP_PREDEFINES): Remove.
6757 (SUBTARGET_EXTRA_SPECS): Define.
6758 (CPP_SPEC): Use %(netbsd_cpp_spec).
6759 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6760 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6761 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6762 Add netbsd_cpp_spec.
6763 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6765 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6766 Zack Weinberg <zack@codesourcery.com>
6768 * cppexp.c (cpp_num): Move to cpplib.h.
6769 (CPP_ERROR): Remove.
6770 (interpret_float_suffix, interpret_int_suffix): New.
6771 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6772 (cpp_classify_number, cpp_interpret_integer): New.
6773 (interpret_number): Remove.
6774 (eval_token): Update to use new routines.
6775 * cpphash.h (cpp_num_part): Move to cpplib.h.
6776 * cppinit.c (cpp_post_options): Set warn_long_long.
6777 * cpplib.h (struct cpp_options): Add warn_long_long.
6778 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6779 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6780 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6781 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6782 cpp_interpret_integer): New.
6784 2002-05-29 Joel Sherrill <joel@OARcorp.com>
6786 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6788 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6790 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6791 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6792 (CPP_SUBTARGET_SPEC): Define.
6793 (SUBTARGET_EXTRA_SPECS): Define.
6796 2002-05-29 Chris Lattner <sabre@nondot.org>
6798 * ssa.c (rename_insn_1): Rename uses of undefined registers to
6799 prevent confusion if/when the register is defined.
6801 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6804 * config/cris/cris.md: Fix typos and thinkos in comments.
6805 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6807 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6808 ("*mov_sideqi_mem"): Similar, but for operand 3.
6809 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6810 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6811 Remove spurious mode specifier on operand 2.
6813 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6815 * config/h8300/h8300-protos.h: Remove the prototype for
6817 Add prototypes for single_one_operand and single_zero_operand.
6818 * config/h8300/h8300.c (o_operand): Remove.
6819 (single_one_operand): New.
6820 (single_zero_operand): Likewise.
6821 (print_operand): For 'V' operand, and the operand with 0xff.
6822 For 'V' and 'W' operands, do not and the bit position with 7.
6823 * config/h8300/h8300.md (various anonymous patterns): Replace
6824 use of exact_log2 with single_one_operand/single_zero_operand.
6826 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6828 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6830 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6832 * config/s390/s390.c (legitimate_pic_operand_p): Do not
6833 accept symbolic LARL operands.
6834 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
6837 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
6839 * config/s390/s390.md (cmpstr_64/31): Mark whole
6840 input registers as used.
6842 2002-05-28 Richard Henderson <rth@redhat.com>
6844 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6845 not current_function_uses_pic_offset_table and
6846 current_function_uses_const_pool; examine current_function_profile.
6847 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
6848 input to blockage if needed.
6849 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6850 (legitimize_pic_address): Likewise. Set regs_ever_live for
6851 pic_offset_table_rtx when invoked during reload.
6852 * config/i386/i386.h (FINALIZE_PIC): Remove.
6853 * config/i386/i386.md (tablejump): Reformat. Do not set
6854 current_function_uses_pic_offset_table.
6855 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6856 (blockage): Accept anything as operand 0.
6858 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6860 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6861 common CPP built-ins for all NetBSD a.out targets.
6862 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6863 common CPP built-ins for all NetBSD ELF targets.
6864 * config/netbsd.h: Add missing notice.
6865 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6866 for all NetBSD targets.
6867 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6868 for all NetBSD targets using an LP64 code model.
6869 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6872 2002-05-28 Richard Henderson <rth@redhat.com>
6874 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6875 update if UPDATE_LIFE_LOCAL.
6877 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6879 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6881 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6882 Jason R. Thorpe <thorpej@wasabisystems.com>
6884 config/sh reorganization to factor out endianness and coff:
6886 * config/sh/little.h: New file.
6887 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6888 defined, define to 0 to select big-endian.
6889 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
6890 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6891 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6892 * config/sh/t-be: New file.
6893 * config/sh/t-le: New file.
6895 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6896 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6897 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6898 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6899 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6900 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6901 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6902 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6903 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6904 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6905 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6906 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6907 (LINK_SPEC): Define to SH_LINK_SPEC.
6908 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6909 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6910 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6911 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6912 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6913 * config/sh/coff.h: New file.
6914 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6915 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6916 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6917 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6918 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6919 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6920 (PTRDIFF_TYPE): Likewise.
6921 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6922 (CPP_PREDEFINES): Don't define.
6923 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6924 (LINK_SPEC): Define to SH_LINK_SPEC.
6925 (LINK_EMUL_PREFIX): Redefine.
6926 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6927 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6928 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6929 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6930 (TARGET_OS_CPP_BUILTINS): Define.
6931 (TARGET_DEFAULT): Redefine.
6932 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6933 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6934 (LINK_SPEC): Don't redefine.
6935 (LINK_DEFAULT_CPU_EMUL): Redefine.
6936 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6937 * sh.c (sh_asm_named_section): Don't declare / define.
6938 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6939 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6940 (sh64-*-elf* tm_file): Likewise.
6941 (sh-*-rtemself* tm_file): Likewise.
6942 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
6943 (sh-*-linux* tmake_file): Add sh/t-le.
6944 (sh-*-rtems* tm_file): Add sh/coff.h
6945 (sh-*-* tm_file): Likewise.
6947 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6949 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6950 CONSTANT_POOL_ADDRESS_P.
6952 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6954 2002-05-28 David Edelsohn <edelsohn@gnu.org>
6955 Jeff Law <law@redhat.com>
6957 * optabs.c (expand_binop): Fix nwords sign warnings.
6958 generate pseudo for add_optab.
6960 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
6961 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
6963 2002-05-28 Marc Espie <espie@openbsd.org>
6965 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
6966 inherited from gas.h.
6967 (ASM_QUAD): Undef. OpenBSD does not support it.
6969 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
6971 * doc/install.texi (binaries): Change mingw binaries
6972 link to www.mingw.org.
6974 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6976 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
6978 2002-05-28 Richard Henderson <rth@redhat.com>
6980 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
6981 bottom alignment for leaf functions.
6983 2002-05-28 Zack Weinberg <zack@codesourcery.com>
6985 * config/pa/milli32.S, config/pa/lib1funcs.asm,
6986 config/sparc/sol2-g1.asm: Delete unused files.
6988 2002-05-28 Richard Henderson <rth@redhat.com>
6990 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
6992 * flow.c (calculate_global_regs_live): Rename call_used to
6993 invalidated_by_call. Initialize from regs_invalidated_by_call
6994 instead of call_used_regs.
6996 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
6999 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7001 * tree.h: Don't include real.h.
7002 Forward-declare struct realvaluetype.
7003 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
7005 (TREE_REAL_CST_PTR): New accessor.
7006 (TREE_REAL_CST): Update.
7007 * real.h: Include machmode.h.
7008 (realvaluetype): Make it struct realvaluetype, not a typedef.
7009 (build_real): Prototype here.
7011 * tree.c: Include real.h.
7012 (build_real): Allocate the REAL_VALUE_TYPE as a separate
7013 object in GC memory, set TREE_REAL_CST_PTR to point to it.
7014 (build_real_from_int_cst): Use build_real.
7015 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
7018 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
7019 fold-const.c, print-tree.c, real.c: Include real.h.
7020 * Makefile.in: Update dependency lists.
7022 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7024 * basic-block.h (last_basic_block): Declare.
7025 (expunge_block_nocompact): Declaration removed.
7026 (compact_blocks): Declare.
7027 * cfg.c (last_basic_block): New variable.
7028 (expunge_block_nocompact): Removed.
7029 (expunge_block): Do not compact basic blocks.
7030 (compact_blocks): New.
7031 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
7033 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
7035 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
7036 real positions of blocks.
7037 (delete_unreachable_blocks): Simplified -- quadratic behavior now
7039 (cleanup_cfg): Compact blocks.
7040 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
7041 basic_block_info varray.
7042 (flow_delete_block): Comment update.
7043 (back_edge_of_syntactic_loop_p): Modify position check code.
7044 (verify_flow_info): Update checking.
7045 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
7046 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7047 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
7048 indices no longer change.
7049 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
7051 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
7052 * profile.c (branch_prob): Compact blocks.
7053 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
7056 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
7058 * config/h8300/h8300.md (two anonymous patterns): New.
7060 2002-05-28 David S. Miller <davem@redhat.com>
7062 * config/sparc/sparc.md (cpu): Tidy.
7063 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
7065 (in_call_delay): Delete reference to 'return' type.
7066 (eligible_for_return_delay, in_return_delay, define_delay
7067 referencing those): Delete.
7068 (rest of file): Use new type attributes as appropriate.
7069 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
7070 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
7071 * config/sparc/ultra1_2.md (us1_single): New reservation.
7072 (us1_ialuX): Likewise.
7073 * config/sparc/ultra3.md (us3_single): Likewise.
7074 (us3_ialuX): Likewise.
7075 (us3_imul, us3_idiv): Tweak.
7077 2002-05-28 Richard Henderson <rth@redhat.com>
7079 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
7082 2002-05-28 Richard Henderson <rth@redhat.com>
7084 * config.gcc: Obsolete mn10200.
7086 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
7088 * cppexp.c (interpret_number): Optimize for single-digit
7089 and less-than-half-precision cases.
7090 (num_trim, num_positive, num_div_op): Cast constants.
7092 2002-05-27 Bo Thorsen <bo@suse.de>
7094 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
7095 3.1 branch. The file was made by Jakub Jelinek.
7096 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
7097 support so multilib doesn't break. And don't define this at all
7098 when -Dinhibit_libc is used.
7099 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
7100 * config/i386/t-linux64: Implement full multilib support. Patch
7101 originally done by Andreas Jaeger and Jakub Jelinek.
7103 2002-05-27 Roger Sayle <roger@eyesopen.com>
7105 * c-common.c: Add support for __attribute__((nothrow)) to specify
7106 that a function cannot throw an exception (using TREE_NOTHROW).
7107 (handle_nothrow_attribute): New function to process this attribute.
7109 * doc/extend.texi: Document the new nothrow function attribute.
7111 2002-05-27 H.J. Lu (hjl@gnu.org)
7113 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
7114 (num_positive): Likewise.
7115 (num_div_op): Likewise.
7117 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7119 * c-common.c (c_common_init): Always use intmax_t.
7121 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7123 * c-common.c (c_common_init): Use intmax_t for now.
7125 2002-05-24 Andrew Haley <aph@redhat.com>
7127 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
7128 if T is a boolean type.
7130 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7132 * basic-block.h (last_basic_block): Defined as synonym for
7134 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
7135 flow_depth_first_order_compute, flow_preorder_transversal_compute,
7136 flow_dfs_compute_reverse_init): Replaced relevant occurences of
7137 n_basic_blocks with last_basic_block.
7138 * cfgbuild.c (make_edges): Likewise.
7139 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
7140 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
7141 * combine.c (combine_instructions): Likewise.
7142 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
7143 iterative_dataflow_bitmap): Likewise.
7144 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7145 calc_idoms, idoms_to_doms): Likewise.
7146 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
7148 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
7149 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
7150 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
7151 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
7152 delete_null_pointer_checks, compute_code_hoist_vbeinout,
7153 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7154 compute_store_table, build_store_vectors): Likewise.
7155 * haifa-sched.c (sched_init): Likewise.
7156 * ifcvt.c (if_convert): Likewise.
7157 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7158 pre_edge_lcm, compute_available, compute_nearerout,
7159 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
7161 * predict.c (estimate_probability, process_note_prediction,
7162 note_prediction_to_br_prob): Likewise.
7163 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
7164 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7165 * regrename.c (copyprop_hardreg_forward): Likewise.
7166 * resource.c (init_resource_info): Likewise.
7167 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
7168 init_regions, schedule_insns): Likewise.
7169 * ssa-ccp.c (ssa_const_prop): Likewise.
7170 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7171 * ssa.c (compute_dominance_frontiers,
7172 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
7174 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
7175 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
7178 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
7180 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
7182 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
7183 hoist_insn_after, hoist_insn_to_edge): New.
7185 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
7187 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
7188 (PROP_FINAL): Include.
7189 * flow.c (life_analysis, update_life_info,
7190 init_propagate_block_info, mark_set_1, mark_used_rgs):
7191 Support SCAN_DEAD_STORE.
7193 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7195 * c-common.c (c_common_init): Set CPP arithmetic precision.
7196 * cppexp.c (cpp_num_part): Move typedef ...
7197 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
7198 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
7199 (sanity_checks): Update.
7201 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
7203 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
7204 (mkheaders): New rule.
7205 (install-mkheaders): New rule.
7206 * configure.in (all_outputs): Add mkheaders.
7207 * configure: Regenerate.
7208 * mkheaders.in: New file.
7210 2002-05-26 Jakub Jelinek <jakub@redhat.com>
7212 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
7214 2002-05-26 Andreas Jaeger <aj@suse.de>
7216 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
7218 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
7220 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
7221 right_shift): Remove.
7222 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
7224 (struct op): Use cpp_num.
7225 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
7226 num_part_mul, num_unary_op, num_binary_op, num_negate,
7227 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
7228 num_div_op, num_lshift, num_rshift, append_digit): New.
7229 (interpret_number, parse_defined, eval_token, reduce): Update
7230 for two-integer arithmetic.
7231 (binary_handler): New typedef.
7233 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
7234 (_cpp_parse_expr, reduce): Update to handle two-integers.
7235 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
7237 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7239 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
7240 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
7241 branch insn into account, do not assume 1.
7242 (avr_out_sbxx_branch): New function. Optimize cases of skipping
7243 over single word insn. Handle upper half of I/O space too.
7244 * config/avr/avr.md (*sbrx_branch): Use it.
7245 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
7246 (*sbix_branch, *sbix_branch_bit7): Likewise.
7247 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
7248 Use RTL peepholes to optimize register operand sign tests.
7250 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7252 * config/avr/avr.c (avr_asm_only_p): New variable.
7253 (avr_override_options): Set it here if AVR1.
7254 (asm_file_start): Test it here, report an error if set.
7256 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
7258 * alias.c: Fix formatting.
7259 * attribs.c: Likewise.
7260 * bb-reorder.c: Likewise.
7261 * bitmap.c: Likewise.
7262 * bitmap.h: Likewise.
7263 * builtins.c: Likewise.
7265 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
7267 * reload.c (find_valid_class): Accept new argument DEST,
7268 choose class accordingly.
7269 (push_reload): Update callers.
7271 2002-05-26 Andreas Jaeger <aj@suse.de>
7273 * combine.c (combine_instructions): Do not indent #if for
7276 2002-05-25 Richard Henderson <rth@redhat.com>
7278 * c-pragma.c (apply_pragma_weak): Convert value identifier to
7279 string for decl_attributes.
7280 (handle_pragma_weak): Call assemble_alias if we're modifying
7283 2002-05-25 Richard Henderson <rth@redhat.com>
7286 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
7287 using rtl instead of fprintf.
7288 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
7289 * config/sparc/sparc-protos.h: Update.
7291 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
7293 * Makefile.in (C_COMMON_H): Fix.
7294 Update other targets.
7295 * c-common.c: Don't include c-lex.h.
7296 (builtin_define_with_value): Make static and prototype.
7297 (builtin_define_std): Move from c-lex.h.
7298 * c-common.h (init_c_lex): Move from c-lex.h.
7299 * c-decl.c: Don't include c-lex.h.
7300 (make_pointer_declarator): Move from c-parse.in.
7301 * c-lex.c: Don't include c-lex.h.
7303 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
7304 (make_pointer_declarator): Move to c-decl.c.
7305 * c-pragma.c: Don't include c-lex.h.
7306 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
7307 * c-tree.h (make_pointer_declarator): New.
7309 * passes.texi, tm.texi: Update.
7311 * Make-lang.in: Update and correct.
7312 * objc-act.c: Don't include c-lex.h or cpplib.h.
7314 * treetree.c: Don't include c-lex.h.
7316 * darwin-c.c: Don't include c-lex.h.
7317 * c4x/c4x-c.c: Don't include c-lex.h.
7318 * c4x/t-c4x: Update.
7319 * i370/i370-c.c: Don't include c-lex.h.
7320 * i370/t-i370: Update.
7321 * i960/i960-c.c: Don't include c-lex.h.
7322 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
7323 * i960/t-960bare: Update.
7324 * i960/t-vxworks: Update.
7325 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
7326 * rs6000/t-darwin: Update.
7327 * rs6000/t-rs6000-c-rule: Update.
7328 * v850/v850-c.c: Don't include c-lex.h.
7329 * v850/v850.c: Don't include c-lex.h or cpplib.h.
7332 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7334 * tree.def: Fix typos.
7335 * doc/install.texi: Likewise.
7337 2002-05-25 Richard Henderson <rth@redhat.com>
7339 * configure.in (HAVE_AS_TLS): Add ia64 test.
7340 * configure: Rebuild.
7341 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
7342 (override_options): Set it.
7343 (TARGET_HAVE_TLS): New.
7344 (sdata_symbolic_operand): Look for 's'.
7345 (tls_symbolic_operand): New.
7346 (ia64_expand_load_address): Abort for tls symbols.
7347 (gen_tls_get_addr): New.
7348 (gen_thread_pointer): New.
7349 (ia64_expand_move): Split out from movdi. Handle tls symbols.
7350 (rtx_needs_barrier): Add new unspecs.
7351 (ia64_encode_section_info): Handle tls symbols.
7352 (ia64_strip_name_encoding): Strip two encoding chars.
7353 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
7354 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
7355 (TARGET_OPTIONS): Add tls-size.
7356 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
7357 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
7358 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
7359 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
7360 (movsf, movdf): Likewise.
7361 (movdi_symbolic): Use match_scratch. Don't split if we won't
7362 have a scratch availiable.
7363 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
7364 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
7365 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
7366 * config/ia64/ia64-protos.h: Update.
7367 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7368 sdata_symbolic_operand.
7369 (ASM_OUTPUT_LABELREF): Strip two characters.
7371 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7373 * combine.c (simplify_set): Remove an unnecessary subreg.
7375 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
7377 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
7379 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
7381 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7383 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
7385 2002-05-25 Roger Sayle <roger@eyesopen.com>
7387 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
7388 (cond (compare x y) 0) into the equivalent (cond x y).
7390 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7392 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
7394 2002-05-24 Zack Weinberg <zack@codesourcery.com>
7396 * config.gcc: Remove all stanzas for previously obsoleted
7397 systems. Where necessary, add explicit error stanzas to
7398 prevent removed systems from being misidentified as something
7399 else. Begin a fresh obsoletions list, with the systems that
7400 were reprieved last round.
7401 * doc/install.texi: Remove all mention of dead targets.
7402 * fixinc/mkfixinc.sh: Likewise.
7404 * config/arm/arm.h: Bit 31 of target_flags is no longer
7407 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
7408 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
7409 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
7410 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
7411 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
7412 config/alpha/osf12.h, config/alpha/osf2or3.h,
7413 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
7414 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
7415 config/clipper/clipper-protos.h, config/clipper/clipper.c,
7416 config/clipper/clipper.h, config/clipper/clipper.md,
7417 config/clipper/clix.h, config/convex/convex-protos.h,
7418 config/convex/convex.c, config/convex/convex.h,
7419 config/convex/convex.md, config/convex/fixinc.convex,
7420 config/convex/proto.h, config/elxsi/elxsi-protos.h,
7421 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
7422 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
7423 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
7424 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
7425 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
7426 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
7427 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
7428 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
7429 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
7430 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
7431 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
7432 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
7433 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
7434 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
7435 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
7436 config/m68k/altos3068.h, config/m68k/apollo68.h,
7437 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
7438 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
7439 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
7440 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
7441 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
7442 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
7443 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
7444 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
7445 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
7446 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
7447 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
7448 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
7449 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
7450 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
7451 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
7452 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
7453 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
7454 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
7455 config/mips/dec-osf1.h, config/mips/elflorion.h,
7456 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
7457 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
7458 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
7459 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
7460 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
7461 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
7462 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
7463 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
7464 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
7465 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
7466 config/ns32k/sequent.h, config/ns32k/tek6000.h,
7467 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
7468 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
7469 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
7470 config/sparc/rtems.h, config/we32k/we32k-protos.h,
7471 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
7474 2002-05-24 Richard Henderson <rth@redhat.com>
7476 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
7477 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
7478 * config/i386/i386.c (tls_model_chars): Add leading space.
7479 (tls_symbolic_operand): Don't bias by 1.
7480 (legitimize_address): Don't unbias by 1.
7482 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7484 * lcm.c (optimize_mode_switching): Change bb used as indices
7487 2002-05-24 Richard Henderson <rth@redhat.com>
7489 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
7490 of update_life_info_in_dirty_blocks.
7492 2002-05-24 Jakub Jelinek <jakub@redhat.com>
7495 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
7497 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
7499 PR preprocessor/6780
7500 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
7502 2002-05-24 Jim Blandy <jimb@redhat.com>
7504 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
7505 entry with a type code of zero, marking the end of the compilation
7508 2002-05-24 Richard Henderson <rth@redhat.com>
7510 * varasm.c (asm_output_bss): Always output one byte.
7511 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7513 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7515 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
7518 2002-05-24 Andreas Jaeger <aj@suse.de>
7520 * ggc-page.c (alloc_page): Cast variables of type size_t to
7521 unsigned long, adjust printf format string.
7522 (ggc_alloc): Likewise.
7523 (ggc_print_statistics): Likewise.
7524 (ggc_print_statistics): Correct printf format string for SCALE to
7527 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
7529 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
7531 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
7532 Zack Weinberg <zack@codesourcery.com>
7534 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
7536 * dwarf2out.c (lookup_filename): Properly quote filename in .file
7537 directive in assembly file.
7538 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7539 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7540 * config/pj/pj.h (ASM_FILE_START): Likewise.
7541 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7542 * config/avr/avr.c (asm_file_end): Likewise.
7543 * toplev.c (output_quoted_string): Handle possibly signed plain
7545 * toplev.h (output_clean_symbol_name): Declare
7546 * toplev.c (output_clean_symbol_name): Define.
7547 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7548 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7550 2002-05-24 Alan Modra <amodra@bigpond.net.au>
7552 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7554 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
7556 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7557 of size of unsigned.
7559 2002-05-23 Richard Henderson <rth@redhat.com>
7561 * configure.in (HAVE_AS_TLS): New test.
7562 * config.in, configure: Rebuild.
7563 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7564 (ix86_tls_dialect_string, ix86_tls_dialect): New.
7565 (override_options): Set it.
7566 (tls_model_chars, tls_symbolic_operand): New.
7567 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7568 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7569 (local_exec_symbolic_operand): New.
7570 (get_pic_label_name): Merge into output_set_got.
7571 (ix86_asm_file_end): Emit pic_label_name if defined.
7572 (legitimate_constant_p, constant_address_p): New.
7573 (legitimate_pic_operand_p): New.
7574 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7575 (legitimate_address_p): Likewise.
7576 (ix86_encode_section_info): Rename from i386_; handle tls decls.
7577 (ix86_strip_name_encoding): New.
7578 (get_thread_pointer): New.
7579 (legitimize_address): Handle tls symbols.
7580 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7582 (struct machine_function): Add some_ld_name.
7583 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7584 (print_operand) [&]: Use it. Handle UNSPEC_TP.
7585 (output_addr_const_extra): New.
7586 (maybe_get_pool_constant): New.
7587 (ix86_split_to_parts): Use it.
7588 (ix86_expand_move): Handle tls symbols.
7589 (ix86_tls_get_addr): New.
7590 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7591 (TARGET_OPTIONS): Add tls-dialect.
7592 (CONSTANT_ADDRESS_P): Use new out-of-line function.
7593 (LEGITIMATE_CONSTANT_P): Likewise.
7594 (LEGITIMATE_PIC_OPERAND_P): Likewise.
7595 (TARGET_STRIP_NAME_ENCODING): New.
7596 (ASM_OUTPUT_LABELREF): New.
7597 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7598 (OUTPUT_ADDR_CONST_EXTRA): New.
7599 (PREDICATE_CODES): Update.
7600 (ix86_tls_dialect, ix86_tls_dialect_string): New.
7601 * config/i386/i386.md: Regroup and renumber unspec constants.
7602 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7603 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7604 (tls_global_dynamic, tls_local_dynamic_base): New.
7605 (tls_local_dynamic_once): New.
7606 * config/i386/i386-protos.h: Update.
7608 2002-05-23 Richard Henderson <rth@redhat.com>
7610 * genemit.c (gen_insn): Print file:lineno comment before function.
7612 * gensupport.c (struct queue_elem): Add filename member.
7613 (queue_pattern): Initialize it; update all callers.
7614 (process_include): Don't free filename.
7615 (read_md_rtx): Set read_rtx_filename.
7617 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
7619 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7621 2002-05-23 Richard Henderson <rth@redhat.com>
7623 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7625 2002-05-23 Richard Henderson <rth@redhat.com>
7627 * doc/extend.texi (C++98 Thread-Local Edits): Update with
7628 commentary from Mark.
7630 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7632 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7633 Use FOR_EACH_BB macros to iterate over basic block chain.
7634 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7635 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7637 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7638 find_unreachable_blocks, create_edge_list, verify_edge_list,
7639 remove_fake_edges, add_noreturn_fake_exit_edges,
7640 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7642 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7643 find_sub_basic_blocks): Likewise.
7644 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7646 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7648 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7650 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7651 commit_edge_insertions, commit_edge_insertions_watch_calls,
7652 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7653 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7654 * conflict.c (conflict_graph_compute): Likewise.
7655 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7656 df_modified_p, df_refs_unlink, df_dump): Likewise.
7657 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7658 * final.c (compute_alignments): Likewise.
7659 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7660 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7661 count_or_remove_death_notes): Likewise.
7662 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7663 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7664 classic_gcse, compute_transp, cprop, compute_pre_data,
7665 compute_transpout, invalidate_nonnull_info,
7666 delete_null_pointer_checks_1, delete_null_pointer_checks,
7667 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7668 compute_store_table, build_store_vectors, store_motion): Likewise.
7669 * global.c (global_conflicts, mark_elimination): Likewise.
7670 * graph.c (print_rtl_graph_with_bb): Likewise.
7671 * haifa-sched.c (sched_init): Likewise.
7672 * ifcvt.c (if_convert): Likewise.
7673 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7674 compute_available, compute_nearerout, compute_rev_insert_delete,
7675 optimize_mode_switching): Likewise.
7676 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7677 * predict.c (estimate_probability, note_prediction_to_br_prob,
7678 propagate_freq, counts_to_freqs, expensive_function_p,
7679 estimate_bb_frequencies): Likewise.
7680 * profile.c (instrument_edges, get_exec_counts,
7681 compute_branch_probabilities, compute_checksum, branch_prob,
7682 find_spanning_tree): Likewise.
7683 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7684 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7686 * regclass.c (scan_one_insn, regclass): Likewise.
7687 * regmove.c (mark_flags_life_zones, regmove_optimize,
7688 record_stack_memrefs): Likewise.
7689 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7690 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7691 * resource.c (find_basic_block): Likewise.
7692 * sched-ebb.c (schedule_ebbs): Likewise.
7693 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7694 find_single_block_region, find_rgns, schedule_insns)
7695 * sibcall.c (optimize_sibling_and_tail_recursive_call)
7696 * ssa-ccp.c (optimize_unexecutable_edges,
7697 ssa_ccp_df_delete_unreachable_insns): Likewise.
7698 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7699 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7700 rename_block, convert_to_ssa, compute_conservative_reg_partition,
7701 compute_coalesced_reg_partition, rename_equivalent_regs,
7702 convert_from_ssa): Likewise.
7703 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7704 process_for_unwind_directive): Likewise.
7706 * df.c (FOR_ALL_BBS): Removed.
7707 * gcse.c (struct null_pointer_info): Type of current_block field
7709 (struct reg_avail_info): Type of last_bb field changed.
7710 * config/ia64/ia64.c (block_num): Removed.
7711 (need_copy_state): Type changed.
7714 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7716 * cppinit.c (mark_named_operators): Split out from init_builtins.
7717 (cpp_finish_options): Call it from here instead.
7719 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7721 * builtin-attrs.def: Update copyright years.
7722 (ATTR_NONNULL): New attribute identifier.
7723 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7724 attribute tree lists.
7725 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7727 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7728 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7729 attribute lists. Chain the appropriate nonnull attribute.
7730 * c-format.c (check_format_arg): Remove null format string
7732 * testsuite/gcc.dg/format/null-1.c: New test.
7734 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7736 * Makefile.in (ADAC): Define.
7738 (.SUFFIXES): Move before language makefile fragments.
7739 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7741 2002-05-23 Mark Mitchell <mark@codesourcery.com>
7743 * varasm.c (make_decl_rtl): Don't allow weak variables to be
7746 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7748 * cfg.c (dump_flow_info): Print results of
7749 maybe_hot/probably_never_executed predicates.
7750 * toplev.c (open_dump_file): Print function frequency.
7752 2002-05-23 David S. Miller <davem@redhat.com>
7754 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7757 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7759 * c-common.c (warn_nonnull): Declare.
7760 (c_common_attribute_table): Add "nonnull" attribute.
7761 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7762 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7763 check_function_arguments_recurse): New functions.
7764 * c-common.h (warn_nonnull): Declare extern.
7765 (check_function_arguments, check_function_arguments_recurse): New
7767 * c-decl.c (c_decode_option): Add -Wnonnull option.
7768 * c-format.c (set_Wformat): Set warn_nonnull if enabling
7770 (format_check_context): New structure.
7771 (check_format_info_recurse): Remove recursion and rename to...
7772 (check_format_arg): ...this. Update comment.
7773 (check_format_info): Use check_function_arguments_recurse.
7774 * c-typeck.c (build_function_call): Call check_function_arguments
7775 instead of check_function_format.
7776 * doc/extend.texi: Document "nonnull" attribute.
7777 * doc/invoke.texi: Docuemnt -Wnonnull option.
7778 * testsuite/gcc.dg/nonnull-1.c: New test.
7779 * testsuite/gcc.dg/nonnull-2.c: New test.
7781 2002-05-23 David S. Miller <davem@redhat.com>
7783 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7784 * cfgcleanup.c (cleanup_cfg): If it is set do not
7785 attempt to delete trivially dead insns.
7786 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7787 * toplev.c (rest_of_compilation): Document non-trivial aspect
7788 the RTL before optimize_save_area_alloca is run.
7790 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7792 * c-lex.c (indent_level): Remove.
7793 (cb_file_change, c_lex): Remove indent level handling.
7794 * c-lex.h (indent_level): Remove.
7795 * input.h (struct file_stack): Remove indent_level.
7796 * toplev.c (push_srcloc): Remove indent_level handling.
7798 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7801 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7802 of x in constraints for clarity.
7803 (sse_mov?fcc split): abort if op2 == op3.
7804 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7805 sse_movsfcc_const0_4): Add earlyclobber.
7806 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7807 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
7808 Use Y instead of x in constraints.
7810 2002-05-23 Richard Henderson <rth@redhat.com>
7812 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7813 (C++98 Thread-Local Edits): New subsection.
7815 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7816 (ix86_arch): Set type to enum processor_type.
7818 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
7819 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7821 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7823 * configure.in: Fix as version test for binutils 2.12.1 releases
7825 * configure: Rebuilt.
7827 2002-05-23 Richard Henderson <rth@redhat.com>
7829 * config/i386/i386.c (get_pic_label_name): New.
7830 (load_pic_register): Remove.
7831 (output_set_got): New.
7832 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7833 * config/i386/i386.md (UNSPEC_SET_GOT): New.
7834 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7835 (prologue_set_got, prologue_get_pc): Remove.
7836 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7837 (builtin_setjmp_receiver): Use gen_set_got.
7838 * config/i386/i386-protos.h: Update.
7840 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7842 * gcse.c (hash_expr): Do not use alias set for hashing.
7844 2002-05-22 Kevin Buettner <kevinb@redhat.com>
7846 * dbxout.c (dbxout_class_name_qualifiers): New function.
7847 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7849 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7851 * cpperror.c (_cpp_begin_message): No special casing
7853 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7854 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7855 * cpplib.c (do_include_common): Use DL_ERROR.
7856 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7858 * fix-header.c (read_scan_file): Update.
7860 2002-05-22 Richard Henderson <rth@redhat.com>
7862 * config/i386/i386.c (ix86_expand_call): New function, extracted
7863 from md call patterns. Add pic_offset_table_rtx to
7864 CALL_INSN_FUNCTION_USAGE when needed.
7865 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7866 (call_value_pop, call_value, untyped_call): Likewise.
7867 (call_exp, call_value_exp): Remove.
7868 * config/i386/i386-protos.h: Update.
7870 2002-05-22 Richard Henderson <rth@redhat.com>
7872 * varasm.c (default_section_type_flags): Check for VAR_DECL
7873 before using DECL_THREAD_LOCAL.
7875 2002-05-22 David Edelsohn <edelsohn@gnu.org>
7877 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7878 (STARTFILE_SPEC): Delete PE crt0.o.
7879 * config/rs6000/aix51.h: Same.
7880 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7881 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7882 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
7883 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7884 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7886 2002-05-22 Richard Henderson <rth@redhat.com>
7888 * varasm.c (default_section_type_flags): Handle tls data and
7890 (default_unique_section): Handle tls sections.
7892 2002-05-23 Alan Modra <amodra@bigpond.net.au>
7894 * configure.in (CROSS): Define NATIVE_CROSS.
7895 * configure: Regenerate.
7896 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7897 (startfile_prefix_spec): New var.
7898 (static_specs): Add startfile_prefix_spec.
7899 (do_spec_2): Split out from..
7901 (main): Process startfile_prefix_spec.
7902 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7904 (STARTFILE_PREFIX_SPEC): Define.
7905 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
7908 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7910 * cpperror.c: Fix formatting.
7911 * cppexp.c: Likewise.
7912 * cppfiles.c: Likewise.
7913 * cpphash.c: Likewise.
7914 * cpphash.h: Likewise.
7915 * cppinit.c: Likewise.
7916 * cpplex.c: Likewise.
7917 * cpplib.c: Likewise.
7918 * cppmacro.c: Likewise.
7919 * cppmain.c: Likewise.
7920 * cppspec.c: Likewise.
7922 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7924 * combine.c (force_to_mode): Use gen_int_mode.
7925 Don't clear CONST_INT bits outside of mode.
7927 2002-05-22 Richard Henderson <rth@redhat.com>
7929 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7930 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7932 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7935 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7936 if DECL_SIZE_UNIT is INTEGER_CST.
7938 2002-05-22 Richard Henderson <rth@redhat.com>
7940 * flow.c (life_analysis): Delete broken reg_label check.
7942 2002-05-22 Richard Henderson <rth@redhat.com>
7944 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7945 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7947 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7949 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7950 (embed-bb.c): New rule.
7951 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
7952 * config/sh/embed_bb.c: Delete.
7954 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
7956 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
7958 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7960 * config/h8300/h8300.md (*andorqi3): New.
7962 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
7964 PR preprocessor/6517
7965 * Makefile.in: Update.
7966 * c-common.c (c_common_post_options): Add preprocessor
7967 errors to the error count.
7968 * c-lang.c (c_post_options): Kill.
7969 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7970 * hooks.h: Add header guards.
7971 * langhooks-def.h: Include hooks.h.
7972 (LANG_HOOKS_POST_OPTIONS): Update.
7973 * langhooks.h (struct lang_hooks): Update post_options.
7974 * toplev.c (parse_options_and_default_flags): Update.
7976 * objc-lang.c (objc_post_options): Kill.
7977 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7979 2002-05-21 Bruce Korb <bkorb@gnu.org>
7981 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
7982 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
7983 * fixinc/fixincl.x: regen.
7985 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
7987 * cfgbuild.c: Fix formatting.
7989 * cfgcleanup.c: Likewise.
7990 * cfglayout.c: Likewise.
7991 * cfgloop.c: Likewise.
7992 * cfgrtl.c: Likewise.
7994 2002-05-21 Richard Henderson <rth@redhat.com>
7996 * c-common.h (enum rid): Add RID_THREAD.
7997 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
7998 (grokdeclarator): Grok __thread.
7999 * c-parse.in (reswords): Add __thread.
8000 (rid_to_yy): Add RID_THREAD.
8002 * tree.h (DECL_THREAD_LOCAL): New.
8003 (struct tree_decl): Add thread_local_flag.
8004 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
8005 * tree.c (staticp): TLS variables are not static.
8007 * target-def.h (TARGET_HAVE_TLS): New.
8008 * target.h (have_tls): New.
8009 * output.h (SECTION_TLS): New.
8010 * varasm.c (assemble_variable): TLS variables can't be common for now.
8011 (default_section_type_flags): Handle .tdata and .tbss.
8012 (default_elf_asm_named_section): Handle SECTION_TLS.
8013 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
8015 * flags.h (flag_tls_default): Declare.
8016 * toplev.c (flag_tls_default): Define.
8017 (display_help): Display help for it.
8018 (decode_f_option): Set it.
8020 * doc/extend.texi (Thread-Local): New node describing language-level
8021 thread-local storage.
8022 * doc/invoke.texi (-ftls-model): Document.
8024 * fixinc/inclhack.def (thread_keyword): New.
8025 * fixinc/fixincl.x: Rebuild.
8027 2002-05-21 Jeffrey A Law <law@redhat.com>
8029 * optabs.c (expand_binop): For double-word integer multiplies,
8030 do not compute intermediate results into something that is
8031 not a register (such as a SUBREG or MEM).
8033 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
8034 (ix86_sched_reorder): Make sure to initialize scheduling
8035 data even when there's only one insn in the ready queue.
8037 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8039 * genautomata.c (reserv_sets_hash_value): Fix a typo.
8041 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8043 * genautomata.c (reserv_sets_hash_value): Define hash_value as
8044 set_el_t. Transform the hash value into unsigned.
8045 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
8046 (transform_3): Add code to process `(A,B)+(D,E)'.
8048 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
8050 * reload1.c (do_output_reload): Run delete_output_reload
8053 2002-05-21 Roger Sayle <roger@eyesopen.com>
8056 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
8057 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
8058 (can_store_by_pieces): ... and here to limit the largest mode used.
8059 Add a comment to document this function.
8061 2002-05-21 Richard Henderson <rth@redhat.com>
8063 * flow.c (life_analysis): Fix test for deleted label.
8065 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
8067 * doc/tm.texi: Fix typo.
8069 2002-05-21 Zack Weinberg <zack@codesourcery.com>
8071 * c-common.c (c_common_init): Set options->unsigned_char from
8073 (cb_register_builtins): Define __STRICT_ANSI__ and
8074 __CHAR_UNSIGNED__ here...
8075 * cppinit.c (init_builtins): Not here.
8076 (cpp_create_reader): unsigned_char option defaults to 0, not
8077 !DEFAULT_SIGNED_CHAR.
8078 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
8079 and -funsigned-char.
8081 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
8082 * cpphash.c (_cpp_init_hashtable): Don't set it.
8083 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
8084 directly. Clarify comment.
8086 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8088 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
8089 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
8090 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
8091 BASIC_BLOCK (n_basic_blocks - 1).
8092 * cfganal.c (can_fallthru, flow_call_edges_add,
8093 flow_preorder_transversal_compute): Too.
8094 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
8095 find_sub_basic_blocks): Too.
8096 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
8097 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
8098 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
8099 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
8100 * combine.c (this_basic_block): Type changed to basic_block.
8101 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
8102 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8103 get_last_value, distribute_notes, distribute_links): Too.
8104 * final.c (compute_alignments): Too.
8105 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
8106 * function.c (thread_prologue_and_epilogue_insns): Too.
8107 * gcse.c (compute_code_hoist_vbeinout): Too.
8108 * global.c (build_insn_chain): Too.
8109 * ifcvt.c (find_if_block, find_cond_trap): Too.
8110 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
8111 * regmove.c (regmove_optimize): Too.
8112 * resource.c (find_basic_block): Too.
8113 * sched-ebb.c (schedule_ebbs): Too.
8114 * ssa-dce.c (find_control_dependence, find_pdom): Too.
8116 2002-05-21 Andreas Jaeger <aj@suse.de>
8118 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
8120 2002-05-21 Richard Henderson <rth@redhat.com>
8122 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
8123 unspec names, not numbers.
8125 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
8127 * doc/sourcebuild.texi: Mention snapshot-README and
8128 snapshot-index.html as needing updating for new front ends.
8130 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8132 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
8133 disabling checking, and avoid multiple evaluation of RTX.
8135 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
8137 * bitmap.c (bitmap_find_bit): Return early if we have the correct
8140 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8142 * profile.c (gen_edge_profiler): Set alias set before the memory is
8145 2002-05-20 David S. Miller <davem@redhat.com>
8147 * cselib.c (max_value_regs): New.
8148 (cselib_lookup, cselib_invalidate_regno): Initialize it when
8149 adding new entries to the REG_VALUES table and we are dealing with
8151 (clear_table): Initialize it.
8152 (cselib_invalidate_regno): Use it to determine which hard
8153 registers to scan when mode is not VOIDmode.
8155 2002-05-20 Duraid Madina <duraid@fl.net.au>
8157 * tradcpp.c (fixup_newlines): Use old-style function header.
8159 2002-05-20 Krister Walfridsson <cato@df.lth.se>
8161 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
8163 2002-05-20 H.J. Lu (hjl@gnu.org)
8165 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
8167 * config/mips/mips.h (DFMODE_NAN): Defined.
8168 (SFMODE_NAN): Likewise.
8170 2002-05-20 Dale Johannesen <dalej@apple.com>
8172 * combine.c (cant_combine_insn_p): Back out my
8175 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8177 * params.c: Fix formatting.
8178 * params.h: Likewise.
8179 * predict.c: Likewise.
8180 * prefix.c: Likewise.
8181 * print-rtl.c: Likewise.
8182 * print-tree.c: Likewise.
8183 * profile.c: Likewise.
8185 2002-05-20 H.J. Lu (hjl@gnu.org)
8187 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
8189 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
8191 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
8192 switches straight on to the assembler, do not abbreviate them.
8193 * config/arm/elf.h (ASM_SPEC): As above.
8194 * config/arm/semi.h (ASM_SPEC): As above.
8195 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
8196 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
8197 -mcpu=xscale on to the assembler by default.
8198 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
8200 2002-05-20 Richard Henderson <rth@redhat.com>
8202 * cse.c (canon_hash): Reorder do_not_record test. Always
8203 allow pic_offset_table_rtx.
8205 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
8207 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
8208 (expand_binop): Ditto (3 times).
8210 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
8212 * Makefile.in (distclean): Remove QMTest stuff.
8213 (QMTEST_PATH): New variable.
8214 (QMTESTFLAGS): Likewise.
8215 (QMTESTRUNFLAGS): Likewise.
8217 (QMTEST_GPP_TESTS): Likewise.
8218 (QMTEST_DIR): Likewise.
8219 (QMTEST_DIR/context): New target.
8220 (qmtest-g++): Likeise.
8221 (qmtest-gui): Likewise.
8222 (QMTEST_DIR/gpp-expected.qmr): Likewise.
8224 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
8226 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
8227 an altivec register if TARGET_ALTIVEC.
8229 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
8230 to ALTIVEC_VECTOR_MODE.
8231 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
8232 (rs6000_va_arg): Vectors may go in registers if they are not
8235 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
8237 * protoize.c: Fix formatting.
8239 2002-05-19 Richard Henderson <rth@redhat.com>
8241 * gensupport.c (init_include_reader): Merge into ...
8242 (process_include): ... here. Simplify composite path creation.
8243 Plug memory leaks. Fix file/line number tracking. Do not
8244 process_define_cond_exec. Return void.
8245 (process_rtx): Don't check process_include return value.
8247 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8249 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
8251 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8252 traversing basic block chain.
8253 (create_basic_block_structure, create_basic_block): Declaration changed.
8254 (link_block, unlink_block): Declare.
8255 * cfg.c (entry_exit_blocks): Initialize new fields.
8256 (link_block, unlink_block): New.
8257 (expunge_block_nocompact): Unlink basic block.
8258 (dump_flow_info): Print prev_bb/next_bb fields.
8259 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
8260 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
8261 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
8262 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8263 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
8264 (verify_flow_info): Check that list agrees with numbering.
8266 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
8268 * c-common.c (preprocessing_asm): New macro.
8269 * c-lex.h (builtin_define, builtin_assert): Use pfile.
8273 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
8274 (CPP_SPEC): Simplify.
8275 (TARGET_CPU_CPP_BUILTINS): Update.
8276 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
8277 (CPP_SPEC): Simplify.
8278 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
8279 (TARGET_OS_CPP_BUILTINS): Update.
8280 * osf.h (CPP_XFLOAT_SPEC): Kill.
8281 (TARGET_OS_CPP_BUILTINS): Update.
8282 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
8283 * osf5.h (CPP_XFLOAT_SPEC): Kill.
8284 * vms.h (CPP_SUBTARGET_SPEC): Kill.
8285 (TARGET_OS_CPP_BUILTINS): Update.
8287 2002-05-19 Richard Henderson <rth@redhat.com>
8289 * varasm.c (default_binds_local_p): Fix typo.
8291 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
8293 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
8294 CONST_INT operand to the correct mode after adding 1 to it.
8296 2002-05-19 Mark Mitchell <mark@codesourcery.com>
8298 * config.gcc (powerpc-wrs-windiss*): New target.
8300 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8302 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
8305 2002-05-18 Mark Mitchell <mark@codesourcery.com>
8307 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
8309 * config.in: Regenerated.
8310 * configure: Regenerated.
8312 2002-05-19 Richard Henderson <rth@redhat.com>
8314 * target-def.h (TARGET_BINDS_LOCAL_P): New.
8315 * target.h (struct gcc_target): Move boolean fields to the end.
8317 * varasm.c (default_binds_local_p): New.
8318 * output.h: Declare it.
8320 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
8321 * config/cris/cris.c (cris_encode_section_info): Likewise.
8322 * config/i386/i386.c (i386_encode_section_info): Likewise.
8323 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
8324 * config/sh/sh.c (sh_encode_section_info): Likewise.
8326 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
8327 (TARGET_BINDS_LOCAL_P): New.
8329 2002-05-19 Richard Henderson <rth@redhat.com>
8331 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
8332 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
8333 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
8335 * toplev.c (display_help): Kill -a -ax help.
8337 * config/1750a/1750a.h, config/alpha/alpha.h,
8338 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
8339 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
8340 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
8341 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
8343 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
8344 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
8346 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
8347 (ix86_output_function_block_profiler): Kill.
8348 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
8349 (m68hc11_function_block_profiler): Kill.
8350 * config/m68hc11/m68hc11-protos.h: Update.
8351 * config/m88k/m88k.c (output_block_profiler): Kill.
8352 (output_function_block_profiler): Kill.
8353 * config/m88k/m88k-protos.h: Update.
8355 2002-05-19 Richard Henderson <rth@redhat.com>
8357 * system.h (STRIP_NAME_ENCODING): Poison it.
8358 * output.h (STRIP_NAME_ENCODING): Remove.
8359 (default_strip_name_encoding): Declare.
8360 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
8361 * target.h (strip_name_encoding): New.
8362 * varasm.c (default_strip_name_encoding): New.
8364 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
8365 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
8366 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
8367 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
8368 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
8369 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
8370 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
8371 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
8372 config/v850/v850.h: Use the hook, not the macro.
8374 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8375 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
8376 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
8377 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
8378 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
8379 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
8380 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8381 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
8382 config/v850/v850.c, config/v850/v850.h:
8383 Move STRIP_NAME_ENCODING to out-of-line function and add
8384 TARGET_STRIP_NAME_ENCODING.
8386 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
8387 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
8388 with TARGET_STRIP_NAME_ENCODING referencing existing function;
8389 make function static.
8391 * xcoffout.c: Include target.h
8392 * Makefile.in (xcoffout.o): Update.
8394 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
8395 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
8396 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
8397 reloc argument unused.
8398 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
8400 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
8401 STRIP_NAME_ENCODING docs.
8403 2002-05-19 Andreas Jaeger <aj@suse.de>
8405 * gengenrtl.c: Add prototype for excluded_rtx.
8407 * real.h: Add prototype for exact_real_truncate.
8409 2002-05-18 Richard Henderson <rth@redhat.com>
8411 * system.h (ENCODE_SECTION_INFO): Poison it.
8412 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
8413 * target.h (encode_section_info): New.
8414 * varasm.c (make_decl_rtl, output_constant_def): Use it.
8415 * hooks.c (hook_tree_int_void): New.
8416 * hooks.h: Declare it.
8418 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8419 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
8420 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
8421 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
8422 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
8423 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
8424 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
8425 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
8426 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8427 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8428 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
8429 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
8430 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
8431 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
8432 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
8433 referencing existing function. Make function static.
8435 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8436 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
8437 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
8438 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
8439 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8440 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
8441 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
8442 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
8443 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
8444 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8445 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
8446 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
8447 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
8448 Move ENCODE_SECTION_INFO to out-of-line function and add
8449 TARGET_ENCODE_SECTION_INFO.
8451 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
8452 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8454 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
8456 (switch_to_section): Replace in_rdata case with in_readonly_data.
8458 * config/h8300/h8300.c (h8300_encode_label): Make static.
8459 * config/h8300/h8300-protos.h: Update.
8461 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
8462 from rs6000_encode_section_info; make static.
8463 (rs6000_xcoff_encode_section_info): New.
8465 * config/v850/v850.c (v850_encode_data_area): Make static.
8466 * config/v850/v850-protos.h: Update.
8468 * config/vax/vax.c: Include flags.h.
8469 (vms_select_section): Fix typo.
8471 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
8472 ENCODE_SECTION_INFO docs.
8474 2002-05-18 Richard Henderson <rth@redhat.com>
8476 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
8477 REGISTER_TARGET_PRAGMAS.
8478 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
8480 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
8482 2002-05-18 Richard Henderson <rth@redhat.com>
8484 * system.h (SELECT_RTX_SECTION): Poison.
8485 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
8486 * target.h (select_rtx_section): New.
8487 * varasm.c (output_constant_pool): Use it.
8488 (default_select_rtx_section, default_elf_select_rtx_section): New.
8489 * output.h: Declare them.
8491 * config/darwin.h (SELECT_RTX_SECTION): Move ...
8492 * config/darwin.c (machopic_select_rtx_section): ... here.
8493 * config/darwin-protos.h: Update.
8495 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
8496 * config/nextstep.c (machopic_select_rtx_section): ... here.
8497 (nextstep_select_section): Rename variable to avoid macro clash.
8498 * config/nextstep-protos.h: Update.
8500 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
8501 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
8502 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8503 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
8504 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
8505 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8506 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
8507 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
8508 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
8509 (SELECT_RTX_SECTION): Remove.
8511 * config/darwin.h, config/elfos.h, config/nextstep.h,
8512 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
8513 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
8514 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
8515 config/sparc/lynx.h, config/xtensa/xtensa.c
8516 (TARGET_ASM_SELECT_RTX_SECTION): New.
8518 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
8519 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
8520 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
8521 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
8522 (ia64_aix_select_rtx_section): New.
8523 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
8525 * config/mips/mips.c (mips_select_rtx_section): Make static.
8526 Support ELF SHF_MERGE features.
8527 * config/mips/mips-protos.h: Update.
8528 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
8529 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
8530 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
8531 make static, fall back to default_elf_select_rtx_section.
8532 * config/rs6000/rs6000-protos.h: Update.
8533 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
8534 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
8535 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
8536 * config/romp/romp.c (romp_select_rtx_section): New.
8537 * config/s390/s390.c (s390_select_rtx_section): New.
8538 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
8539 declarations before target macro definition.
8540 (xtensa_emit_call): Use static buffer.
8541 (xtensa_select_rtx_section): New.
8542 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8543 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8544 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8546 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8547 SELECT_RTX_SECTION docs.
8549 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8551 * i386.md (movsi/movdi): Fix template.
8552 (sse2 patterns): Set attributes consistently.
8554 * i386.md (pushqi2, ashrqi_*): Fix constraint.
8556 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
8558 * optabs.c (complex_part_zero_p): New.
8559 * (expand_cmplxdiv_straight): Use it.
8560 * (expand_cmplxdiv_wide): Ditto.
8561 * (expand_binop): Ditto.
8563 2002-05-18 Richard Henderson <rth@redhat.com>
8565 * final.c (HAVE_READONLY_DATA_SECTION): New.
8566 (shorten_branches): Use it instead of ifdefs.
8567 * varasm.c (enum in_section): Add in_readonly_data.
8568 (text_section, data_section): Tidy.
8569 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8571 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8572 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8573 (READONLY_DATA_SECTION): Don't undef.
8575 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8576 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8577 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8579 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8580 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8581 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8582 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8584 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8585 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8586 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8587 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8588 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8589 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8590 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8591 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8592 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8594 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8595 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8596 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8597 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8598 config/pa/pa64-hpux.h, config/sparc/litecoff.h
8599 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8601 * config/elfos.h, config/netware.h, config/svr3.h,
8602 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8603 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8604 config/h8300/h8300.h, config/i386/i386-interix.h,
8605 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8606 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8608 * config/elfos.h, config/netware.h, config/svr3.h,
8609 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8610 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8611 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8612 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8614 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8615 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8616 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8617 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8618 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8619 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8620 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8621 config/rs6000/sysv4.h, config/v850/v850.h
8622 (EXTRA_SECTIONS): Remove in_const/in_rdata.
8623 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8625 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8626 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8627 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8628 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8629 * config/alpha/alpha.c (alpha_start_function): Likewise.
8630 (alpha_write_linkage): Likewise.
8631 * config/m32r/m32r.c (m32r_select_section): Likewise.
8632 * config/m88k/m88k.c (m88k_select_section): Likewise.
8633 * config/mips/mips.c (mips_select_rtx_section): Likewise.
8634 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8635 (rs6000_elf_select_section): Likewise.
8636 * config/v850/v850.c (v850_select_section): Likewise.
8638 * config/1750a/1750a.h, config/i860/sysv3.h
8639 (READONLY_DATA_SECTION_ASM_OP): New.
8640 READONLY_DATA_SECTION_ASM_OP.
8641 * config/i386/interix.c, config/i386/winnt.c
8642 (i386_pe_unique_section): Always use .rdata prefix.
8643 * config/pa/som.h (readonly_data): Always switch to read-only section.
8644 (READONLY_DATA_SECTION): Predicate on flag_pic.
8645 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8646 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8647 (READONLY_DATA_SECTION): Update.
8649 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
8651 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8652 is used without -Wformat.
8653 * c-common.h (warn_format_zero_length): Declare extern.
8654 * c-decl.c (warn_options): Add "format-zero-length".
8655 * c-format.c (warn_format_zero_length): Declare.
8656 (set_Wformat): Set warn_format_zero_length for -Wformat.
8657 (check_format_info): Only warn about zero-length formats if
8658 warn_format_zero_length is true. Include the format type
8659 name in the warning message.
8660 * doc/invoke.texi: Document -Wformat-zero-length.
8661 * testsuite/gcc.dg/format/zero-length-1.c: New test.
8663 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
8665 * timevar.c: Fix formatting.
8666 * tlink.c: Likewise.
8667 * toplev.c: Likewise.
8668 * tree-dump.c: Likewise.
8669 * tree-inline.c: Likewise.
8671 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8673 * cppinit.c (cpp_post_options): If preprocessed, turn off
8674 traditional. If traditional, turn off column numbers.
8675 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8676 * cpptrad.c (handle_newline): Update line_base.
8677 (skip_comment): Handle -Wcomment.
8679 2002-05-17 Zack Weinberg <zack@codesourcery.com>
8681 * cppinit.c (struct builtin): Remove unused fields.
8682 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8683 (operator_array): New - was second half of builtin_array.
8684 (init_builtins): Simplify loop over builtin_array/operator_array.
8686 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8688 * defaults.h (UNIQUE_SECTION): Remove.
8689 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8691 2002-05-17 Richard Henderson <rth@redhat.com>
8693 * expr.c (init_expr_once): Don't use start/end_sequence.
8694 Use rtx_alloc instead of emit_insn.
8695 * toplev.c (lang_dependent_init): Run init_expr_once here ...
8696 (lang_independent_init): ... not here.
8698 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8700 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8702 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
8704 * config/avr/avr.c (avr_regs_to_save): New function. Also check
8705 for fixed registers, possibly used for global register variables.
8706 (initial_elimination_offset, avr_output_function_prologue,
8707 avr_output_function_epilogue): Move common code to avr_regs_to_save.
8709 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8711 * Makefile.in: Update for cpptrad.c.
8712 * cpphash.h (struct cpp_buffer): New members for buffer
8714 (struct cpp_reader): New members for traditional output.
8715 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8716 * cppinit.c (cpp_create_reader): Set trad_line.
8717 (cpp_destroy): Free trad_out_base if used.
8718 (cpp_read_main_file): Overlay an empty buffer if traditional.
8719 (cpp_finish_options): Don't do builtins.
8720 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8721 (cpp_handle_option): Handle it.
8722 * cpplex.c (continue_after_nul): New.
8723 (_cpp_lex_direct): Use handle_nul.
8724 * cpplib.h (struct cpp_options): New traditional option.
8725 * cpptrad.c: New file.
8727 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8729 * c-common.c (c_common_init_options): Use C89 for Objective-C,
8730 and set the options flag.
8731 * cppinit.c (lang_flags): Remove objc.
8732 (lang_defaults): Remove OBJC and OBJCXX.
8734 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8735 (cpp_handle_option): Remove -+ and -lang-objc++.
8736 For ObjC, just set a flag.
8737 (print_help): Update.
8738 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8740 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8742 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8743 bootstrap with -mips3.
8745 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
8747 * final.c: Fix formatting.
8748 * fix-header.c: Likewise.
8750 * fold-const.c: Likewise.
8751 * function.c: Likewise.
8753 2002-05-17 David S. Miller <davem@redhat.com>
8755 PR c/6689, PR optimization/6615
8756 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8757 and make it a pointer to rtx. Update comments.
8758 (update_equiv_regs): When scanning for equivalences, record
8759 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
8760 it while making the equiv replacements.
8762 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8764 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8766 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
8768 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8769 when encoding visibility into SYMBOL_REF_FLAG.
8771 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
8773 * expr.c (force_operand): Fix reversed move.
8775 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
8777 * doc/install.texi (Testing): Mention two common DejaGnu warnings
8778 that can be ignored.
8780 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8782 * doc/install.texi (Final install): Recommend to install into a
8783 "clean" target directory.
8785 2002-05-17 Richard Henderson <rth@redhat.com>
8787 * config/ia64/ia64.md: Use braced strings instead of quoted strings
8788 for code blocks. Tidy whitespace.
8790 2002-05-17 Richard Henderson <rth@redhat.com>
8792 * hooks.c (hook_tree_bool_false): New.
8793 * hooks.h: Declare it.
8794 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8795 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8796 * target.h (select_section, unique_section): New.
8797 (in_small_data_p): New.
8798 * varasm.c (resolve_unique_section): Use hooks instead of macros.
8799 (variable_section, output_constant_def_contents): Likewise.
8800 (default_select_section, default_unique_section): New.
8801 (categorize_decl_for_section, default_elf_select_section): New.
8802 * output.h: Declare them.
8804 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8805 (TARGET_ASM_SELECT_SECTION): New.
8806 (SELECT_SECTION): Move ...
8807 * config/darwin.c (machopic_select_section): ... here.
8808 * config/darwin-protos.h: Update.
8810 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8811 (SELECT_SECTION): Move ...
8812 * config/nextstep.c (nextstep_select_section): ... here.
8813 * config/nextstep-protos.h: Update.
8815 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8816 (TARGET_ASM_SELECT_SECTION): New.
8817 * config/svr3.h (SELECT_SECTION): Remove.
8819 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8820 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8821 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8822 (alpha_encode_section_info): Use it.
8823 * config/alpha/alpha-protos.h: Update.
8824 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8825 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8826 (TARGET_ASM_SELECT_SECTION): New.
8827 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8829 * config/arm/pe.h (UNIQUE_SECTION): Remove.
8830 (TARGET_ASM_UNIQUE_SECTION): New.
8832 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8833 (avr_unique_section): Rename from unique_section; make static.
8834 * config/avr/avr-protos.h: Update.
8835 * config/avr/avr.h (UNIQUE_SECTION): Remove.
8837 * config/c4x/c4x.h (SELECT_SECTION): Remove.
8839 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8840 (TARGET_ASM_UNIQUE_SECTION): New.
8841 * config/i386/i386-interix.h: Likewise.
8842 * config/i386/win32.h: Likewise.
8843 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8844 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8845 * config/i386/sco5.h (SELECT_SECTION): Remove.
8846 (TARGET_ASM_SELECT_SECTION): New.
8847 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8849 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8850 instead of SELECT_SECTION.
8851 * config/m68k/dpx2.h: Likewise.
8852 * config/rs6000/lynx.h: Likewise.
8854 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8855 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8856 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8857 (ia64_in_small_data_p): New.
8858 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
8859 (ia64_aix_select_section, ia64_aix_unique_section): New.
8860 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8861 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8863 * config/m32r/m32r.h (SELECT_SECTION): Remove.
8864 (TARGET_ASM_SELECT_SECTION): New.
8865 * config/m32r/m32r.c (m32r_select_section): Take align argument.
8866 * config/m32r/m32r-protos.h: Update.
8868 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8869 (SELECT_SECTION): Move ...
8870 * config/m88k/m88k.c (m88k_select_section): ... here.
8872 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8873 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8874 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8875 (mcore_unique_section): Make static.
8876 * config/mcore/mcore-protos.h: Update.
8878 * config/mips/elf.h (UNIQUE_SECTION): Remove.
8879 (TARGET_ASM_UNIQUE_SECTION): New.
8880 * config/mips/elf64.h: Likewise.
8881 * config/mips/iris6gld.h: Likewise.
8882 * config/mips/linux.h: Likewise.
8883 * config/mips/mips-protos.h: Update.
8884 * config/mips/mips.c (mips_select_section): Add align argument.
8885 * config/mips/mips.h (SELECT_SECTION): Remove.
8886 (TARGET_ASM_SELECT_SECTION): New.
8888 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8889 * config/mmix/mmix.c (mmix_select_section): Remove.
8890 (mmix_unique_section): Remove.
8891 * config/mmix/mmix-protos.h: Update.
8893 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8894 (SELECT_SECTION): Move ...
8895 * config/pa/pa.c (pa_select_section): ... here.
8896 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8898 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8899 from rs6000_select_section and make static.
8900 (rs6000_elf_unique_section): Similarly.
8901 (rs6000_xcoff_select_section): From xcoff.h.
8902 (rs6000_xcoff_unique_section): Likewise.
8903 * config/rs6000/rs6000-protos.h: Update.
8904 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8905 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8906 * config/rs6000/xcoff.h: Likewise.
8908 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8909 (SELECT_SECTION): Move ...
8910 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8912 * config/v850/v850.h (SELECT_SECTION): Move ...
8913 * config/v850/v850.c (v850_select_section): ... here.
8914 (TARGET_ASM_SELECT_SECTION): New.
8916 * config/vax/vms.h (SELECT_SECTION): Move ...
8917 * config/vax/vax.c (vms_select_section): ... here.
8918 (TARGET_ASM_SELECT_SECTION): New.
8920 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8921 for the target hooks.
8923 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
8925 * config/arm/arm.c (emit_multi_reg_push): Do not set
8926 RTX_FRAME_RELATED_P on the SEQUENCE.
8928 2002-05-16 Richard Henderson <rth@redhat.com>
8930 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8931 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
8933 2002-05-16 Richard Henderson <rth@redhat.com>
8935 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8937 * config/ia64/ia64.c (saveable_obstack): Do not declare.
8939 2002-05-16 Richard Henderson <rth@redhat.com>
8941 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8942 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8943 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8944 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8945 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8946 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8947 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8948 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8949 Revert "Basic block renumbering removal", and two followup patches.
8951 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8953 * lcm.c (optimize_mode_switching): Revert previous change.
8955 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8957 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8958 with only extant block numbers.
8960 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8962 * lcm.c (optimize_mode_switching): Fix typo.
8964 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8966 * flow.c (calculate_global_regs_live): Queue blocks in program order.
8968 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8970 * doc/install.texi (Configuration): Document PWDCMD.
8972 2002-05-16 Dale Johannesen <dalej@apple.com>
8974 * combine.c (cant_combine_insn_p): Reenable combinations
8975 involving hard regs unless CLASS_LIKELY_SPILLED_P.
8977 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8979 * c-common.c (cb_register_builtins): Handle more built-ins
8980 here rather than in gcc.c specs.
8981 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
8982 (cpp_options): Pass -O flags even when only preprocessing.
8983 * toplev.c (set_fast_math_flags): New prototype.
8984 (fast_math_flags_set_p): New.
8985 (set_no_fast_math_flags): Remove.
8986 (decode_f_option): Update.
8987 * toplev.h (set_fast_math_flags): Update.
8988 (fast_math_flags_set_p): New.
8989 (set_no_fast_math_flags): Remove.
8991 * c4x/c4x.c (c4x_override_options): Update.
8993 2002-05-16 Zack Weinberg <zack@codesourcery.com>
8995 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
8996 Default-define here.
8997 (builtin_define_with_value): Can now wrap the expansion in
8998 quotation marks if such is wanted.
8999 (cb_register_builtins): Update calls to builtin_define_with_value.
9000 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
9002 (c_common_init): Set options->stdc_0_in_system_headers.
9003 * c-lex.h: Update prototype of builtin_define_with_value.
9004 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
9005 and REGISTER_PREFIX.
9007 * cppinit.c (VERS, ULP, C, X): Kill.
9008 (builtin_array): Remove entries for __VERSION__,
9009 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
9010 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
9012 (init_builtins): Kill off a bunch of now-dead code.
9013 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
9014 -fno-leading-underscore.
9015 (cpp_handle_option): Remove code to set user_label_prefix.
9016 (cpp_post_options): Likewise.
9018 * cpplib.h (struct cpp_options): Remove user_label_prefix.
9019 (stdc_0_in_system_headers): New.
9020 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
9021 stdc_0_in_system_headers) too to decide the value of __STDC__.
9023 * tradcpp.c (user_label_prefix): Kill.
9024 (main): Remove code handling -f(no-)leading-underscore.
9025 (initialize_builtins): Don't define __REGISTER_PREFIX__
9026 or __USER_LABEL_PREFIX__.
9027 (install_value): Wrap compound statement in dummy loop so the
9028 macro works properly in an if statement.
9031 2002-05-16 Janis Johnson <janis187@us.ibm.com>
9033 * loop.h (struct loop_info): Add member has_prefetch.
9034 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
9035 (prescan_loop): Initialize has_prefetch.
9036 (struct prefetch_info): Change prefetch_in_loop and
9037 prefetch_before_loop from bit fields to ints.
9038 (emit_prefetch_instructions): Several small fixes.
9039 (check_dbra_loop): Don't reverse loop that uses prefetch.
9041 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9043 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
9044 * configure.in: Likewise.
9045 * fixinc/check.tpl: Likewise.
9046 * fixinc/fixinc.dgux: Likewise.
9047 * fixinc/fixinc.svr4: Likewise.
9048 * fixinc/fixinc.winnt: Likewise.
9049 * fixinc/fixincl.sh: Likewise.
9050 * fixproto: Likewise.
9051 * configure: Regenerate.
9053 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9055 Basic block renumbering removal:
9056 * basic_block.h (struct basic_block_def): Renamed index to sindex,
9057 added prev_bb and next_bb fields.
9058 (n_basic_blocks): Renamed to num_basic_blocks.
9059 (last_basic_block): New, index of last basic block.
9060 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9061 traversing basic block chain.
9062 (BLOCK_NUM): index -> sindex.
9063 (create_basic_block_structure, create_basic_block): Declaration changed.
9064 (debug_num2bb): Declare.
9065 (expunge_block_nocompact): Declaration removed.
9066 (link_block, unlink_block, compact_blocks): Declare.
9067 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
9068 * cfg.c (entry_exit_blocks): Initialize new fields.
9069 (clear_edges, alloc_block, expunge_block, cached_make_edge,
9070 redirect_edge_pred, dump_flow_info, dump_edge_info,
9071 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
9072 free_aux_for_edges): Modified.
9073 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
9074 (expunge_block_nocompact): Removed.
9075 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
9076 find_unreachable_blocks, create_edge_list, print_edge_list,
9077 verify_edge_list, flow_edge_list_print, remove_fake_successors,
9078 remove_fake_edges, flow_reverse_top_sort_order_compute,
9079 flow_depth_first_order_compute, flow_preorder_transversal_compute,
9080 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
9081 flow_dfs_compute_reverse_execute): Modified.
9082 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
9083 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
9085 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9086 merge_blocks_move_predecessor_nojumps,
9087 merge_blocks_move_successor_nojumps, merge_blocks,
9088 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
9089 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
9090 * cfglayout.c (skip_insns_after_block, label_for_bb,
9091 record_effective_endpoints, scope_to_insns_finalize,
9092 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
9093 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
9094 cfg_layout_duplicate_bb): Modified.
9095 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
9096 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
9097 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
9098 flow_loops_find, flow_loop_outside_edge_p): Modified.
9099 * cfgrtl.c (create_basic_block_structure, create_basic_block,
9100 flow_delete_block, compute_bb_for_insn, split_block,
9101 try_redirect_by_replacing_jump, redirect_edge_and_branch,
9102 force_nonfallthru_and_redirect, tidy_fallthru_edge,
9103 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
9104 commit_edge_insertions, commit_edge_insertions_watch_calls,
9105 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
9106 purge_all_dead_edges): Modified.
9107 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
9108 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
9109 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
9111 * conflict.c (conflict_graph_compute): Modified.
9112 * df.c (FOR_ALL_BBS): Removed.
9113 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
9114 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
9115 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
9116 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
9117 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
9118 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
9119 * final.c (compute_alignments, final_scan_insn): Modified.
9120 * flow.c (verify_local_live_at_start, update_life_info,
9121 update_life_info_in_dirty_blocks, free_basic_block_vars,
9122 delete_noop_moves, calculate_global_regs_live,
9123 initialize_uninitialized_subregs, allocate_bb_life_data,
9124 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
9125 mark_used_reg, count_or_remove_death_notes): Modified.
9126 * function.c (thread_prologue_and_epilogue_insns): Modified.
9127 * gcse.c (struct null_pointer_info): Change typo of current_block
9129 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
9130 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
9131 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
9132 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
9133 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
9134 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
9135 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
9136 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
9137 pre_delete, one_pre_gcse_pass, compute_transpout,
9138 invalidate_nonnull_info, delete_null_pointer_checks_1,
9139 free_code_hoist_mem, compute_code_hoist_vbeinout,
9140 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
9141 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
9142 compute_store_table, build_store_vectors, insert_insn_start_bb,
9143 insert_store, replace_store_insn, free_store_memory, store_motion):
9145 * global.c (global_alloc, global_conflicts, mark_elimination,
9146 build_insn_chain): Modified.
9147 * graph.c (print_rtl_graph_with_bb): Modified.
9148 * haifa-sched.c (sched_init): Modified.
9149 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
9150 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
9151 if_convert): Modified.
9152 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
9153 compute_insert_delete, pre_edge_lcm, compute_available,
9154 compute_farthest, compute_nearerout, compute_rev_insert_delete,
9155 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
9157 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
9158 * loop.c (loop_dump_aux): Modified.
9159 * predict.c (combine_predictions_for_insn, estimate_probability,
9160 last_basic_block_p, process_note_prediction, process_note_predictions,
9161 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
9162 expensive_function_p, estimate_bb_frequencies,
9163 compute_function_frequency): Modified.
9164 * print-rtl.c (print_rtx): Modified.
9165 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
9166 get_exec_counts, compute_branch_probabilities, compute_checksum,
9167 branch_prob, find_spanning_tree): Modified.
9168 * recog.c (split_all_insns, peephole2_optimize): Modified.
9169 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
9170 convert_regs_1, convert_regs_2, convert_regs): Modified.
9171 * regclass.c (scan_one_insn, regclass): Modified.
9172 * regmove.c (mark_flags_life_zones, regmove_optimize,
9173 combine_stack_adjustments): Modified.
9174 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
9175 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
9176 * reorg.c (dbr_schedule): Modified.
9177 * resource.c (find_basic_block, init_resource_info): Modified.
9178 * sbitmap.c (sbitmap_intersection_of_succs,
9179 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
9180 sbitmap_union_of_preds): Modified.
9181 * sched-deps.c (init_dependency_caches): Modified.
9182 * sched-ebb.c (schedule_ebbs): Modified.
9183 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
9184 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
9185 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
9186 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
9187 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
9188 ssa_const_prop): Modified.
9189 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
9190 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
9191 * ssa.c (remove_phi_alternative, find_evaluations,
9192 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
9193 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
9194 make_regs_equivalent_over_bad_edges,
9195 make_equivalent_phi_alternatives_equival,
9196 compute_conservative_reg_partition,
9197 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
9198 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
9201 2002-05-16 Mark Mitchell <mark@codesourcery.com>
9203 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
9205 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
9207 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
9208 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9209 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
9210 calling CONSTANT_POOL_ADDRESS_P.
9211 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
9212 to decide whether to define __arm__ or __thumb.
9213 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
9214 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9216 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9218 * config/arc/arc.h (CPP_PREDEFINES): Remove.
9220 (TARGET_CPU_CPP_BUILTINS): New.
9222 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9224 * cpphash.h (cpp_macro): Move here, and make expansion a union.
9225 * cppmacro.c (cpp_macro): Remove.
9226 (enter_macro_context, replace_args, warn_of_redefinition,
9227 _cpp_create_definition, cpp_macro_definition): Update.
9229 2002-05-16 Jason Merrill <jason@redhat.com>
9231 * config/mips/mips.c (mips_output_external): Don't do sdata
9232 optimization for a variable with DECL_COMDAT set.
9234 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9236 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
9237 Cleanups for accepting modifiers on pointers.
9238 Fix predicate typos.
9239 Allow long pointers as well as int pointers.
9241 2002-05-15 Richard Henderson <rth@redhat.com>
9243 * varasm.c (merge_weak): Remove special case for extern and common.
9245 2002-05-15 Matt Hiller <hiller@redhat.com>
9247 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
9249 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
9250 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
9251 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
9252 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
9253 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
9254 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
9256 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9258 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
9260 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9262 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
9263 ("altivec_mfvscr"): Read from VSCR.
9265 Add vscr sets for the following insns: altivec_vctuxs,
9266 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
9267 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
9268 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
9269 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
9270 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
9271 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
9272 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
9273 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
9274 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
9275 altivec_vsum2sws, altivec_vsumsws.
9277 * config/rs6000/rs6000.h: Add VSCR fixed register.
9278 (CALL_REALLY_USED_REGISTERS): Add vscr.
9279 (CALL_USED_REGISTERS): Same.
9280 (FIXED_REGISTERS): Same.
9281 (REG_ALLOC_ORDER): Same.
9282 (reg_class): Add VSCR_REGS.
9283 (REG_CLASS_NAMES): Same.
9284 (REG_CLASS_CONTENTS): Same.
9286 (REGISTER_NAMES): Add vscr.
9287 (DEBUG_REGISTER_NAMES): Same.
9288 (ADDITIONAL_REGISTER_NAMES): Same.
9289 (FIRST_PSEUDO_REGISTER): Increment.
9290 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
9292 2002-05-15 Jakub Jelinek <jakub@redhat.com>
9294 * fold-const.c (fold): Fix a typo.
9296 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
9298 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
9299 comparison against the highest or lowest integer value before
9300 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
9301 transformation and that of an unsigned comparison against 0
9304 2002-05-15 Richard Henderson <rth@redhat.com>
9306 * varasm.c (merge_weak): Error for any weakening after definition.
9307 Adjust weakening after use warning to catch more cases.
9308 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
9309 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
9311 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
9313 * invoke.texi (-malign-double): Re-add lost warning.
9315 * i386-protos.h (x86_output_mi_thunk): Declare.
9316 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
9317 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
9319 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
9320 when flag_asynchronous_unwind_tables is set.
9322 * flags.h (flag_reorder_functions): Declare.
9323 * function.c (prepare_function_start): Initialize frequnecy.
9324 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
9325 * Makefile.in (predict.o): Add dependency on target.h and params.h
9326 * defaults.h (HOT_TEXT_SECTION_NAME,
9327 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
9328 * predict.c (choose_function_section): New function.
9329 (estimate_bb_frequencies): Use it.
9330 * toplev.c (flag_reorder_functions): New global variable.
9331 (lang_independent_options): New.
9332 (parse_options_and_default_flags): Set.
9333 * varasm.c (assemble_start_function): Bypass functdion alignment
9334 for never executed functions.
9335 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
9336 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
9337 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
9340 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
9342 * predict.c: Inlude profile.h
9343 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
9344 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
9345 Use the information about maximal counter in the program.
9347 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
9349 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
9350 probably_never_executed_bb_p): New functions.
9351 * cfgcleanup.c (outgoing_edges_match): Use them.
9352 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
9353 (maybe_hot_bb_p, probably_cold_bb_p,
9354 probably_never_executed_bb_p): New functions.
9356 * function.h (function): Add new field function_frequency.
9357 * predict.c (compute_function_frequency): New function.
9358 (estimate_probability): Call it.
9360 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9362 PR optimization/5172, optimization/5200
9363 * gcse.c (gcse_main): Disable store_motion.
9365 2002-05-14 Zack Weinberg <zack@codesourcery.com>
9367 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
9368 (c_common_nodes_and_builtins): Use it.
9369 (builtin_define_with_value): New function.
9370 (cb_register_builtins): Define __SIZE_TYPE__,
9371 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
9372 using builtin_define_with_value. Use consistent notation when
9373 defining __GXX_WEAK__.
9374 (WCHAR_TYPE_SIZE): Don't redefine.
9375 (combine_strings): Don't use WCHAR_TYPE_SIZE.
9377 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
9378 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
9379 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
9380 * tradcpp.c (initialize_builtins): Likewise.
9381 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
9383 * c-lex.h (builtin_define_with_value): Prototype.
9384 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
9385 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
9386 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
9388 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
9389 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
9390 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
9391 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
9392 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
9393 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
9394 config/sparc/sol2-bi.h, config/sparc/sparc.h:
9395 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
9396 to __SIZE_TYPE__ etc from all spec strings. When this makes
9397 extra specs empty, delete them.
9399 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
9401 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
9402 for PA8000 or generating dwarf2 call frame information.
9403 (output_call): Remove DO_FRAME_NOTES check from return pointer
9405 (following_call): Return 0 when scheduling for PA8000 or generating
9406 dwarf2 call frame information. Revise comment.
9408 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9411 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
9412 and __IEEE_FP_INEXACT as appropriate.
9413 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
9414 (CPP_SPEC): Remove ieee defines.
9415 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
9417 2002-05-14 Richard Henderson <rth@redhat.com>
9419 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
9420 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
9422 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9424 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
9426 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
9427 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
9428 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
9429 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
9430 (EXTRA_SPECS): Update.
9431 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
9432 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
9433 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
9434 define TARGET_OS_CPP_BUILTINS if necessary.
9436 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9438 * gcc.c (cpp_options): Must pass -m* and -f* options
9439 to the front end even when only preprocessing.
9440 (cc1_options): Remove redundant -lang-c.
9441 * tradcpp.c (main): Ignore -m options.
9443 * lang-specs.h: Similarly.
9445 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
9447 * genautomata.c (transform_3): Add code for transformation
9448 `(A,B,...)+C -> A+C,B,...'.
9450 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
9452 * final.c (end_final): Do not output profile_arcs constructor, when
9453 no functions are instrumented.
9455 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
9457 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
9459 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9461 * doc/install.texi: Remove special markup originally required for
9462 HTML generation with texi2html.
9464 2002-05-14 Andreas Schwab <schwab@suse.de>
9466 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
9468 (UNIQUE_SECTION): Define to get small data correctly.
9470 * varasm.c (resolve_unique_section): Add third parameter
9471 flag_function_or_data_sections and use it instead of
9472 flag_function_sections.
9473 (assemble_start_function): Pass flag_function_sections.
9474 (asm_emit_uninitialised): Pass flag_data_sections.
9475 (assemble_variable): Likewise.
9477 2002-05-14 Richard Henderson <rth@redhat.com>
9479 * config/i386/i386.md: Use define_constants for unspec numbers.
9480 * config/i386/i386.c: Likewise.
9482 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9484 * doc/contrib.texi: Update my entry.
9486 2002-05-13 Mark Mitchell <mark@codesourcery.com>
9488 * fixinc/inclhack.def (winidss_valist): Limit applicability.
9489 * fixinc/fixincl.x: Regenerated.
9490 * fixinc/tests/base/math.h: Update.
9491 * fixinc/tests/base/testing.h: Likewise.
9493 2002-05-13 Zack Weinberg <zack@codesourcery.com>
9495 * genattr.c (gen_attr): Don't emit a comma after the last
9498 2002-05-13 Richard Henderson <rth@redhat.com>
9500 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
9502 * recog.c (peephole2_optimize): Likewise.
9504 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
9506 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
9509 2002-05-13 Jeffrey A Law (law@redhat.com)
9511 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
9512 Update prototype and callers.
9513 (propagate_one_insn): Stack pointer adjustments kill MEMs on
9514 the mem_set_list which reference the stack pointer, as do
9515 calls to constant functions as they may clobber outgoing
9518 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
9520 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9521 (ia32_multipass_dfa_lookahead): New function.
9523 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9525 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
9526 (translate_options): Remove 'V'.
9527 (process_command): Similarly.
9529 * invoke.texi: Remove documentation of 'V'.
9531 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
9533 * config/s390/linux.h: Revert 2002-04-22 changes.
9535 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
9537 * config/fr30/fr30.md: Only allow splits of immediate loads
9538 if the destination is a register.
9540 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9542 * Makefile.in (c-common.o, cppinit.o): Update.
9543 * c-common.c: Include except.h.
9544 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9545 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9546 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9547 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9548 CPP_PREDEFINES): Handle here.
9550 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9551 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9552 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9553 TARGET_OS_CPP_BUILTINS.
9554 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9555 (CPP_SPEC, EXTRA_SPECS): Update.
9556 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9557 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9558 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9559 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9560 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9562 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9563 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9565 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9567 * emit-rtl.c (global_rtl): Update comment.
9568 (const_double_htab, const_double_htab_hash,
9569 const_double_htab_hash, lookup_const_double): New.
9570 (const_int_htab_hash, const_int_htab_eq): Remove const
9571 qualifiers, which cause tons of warnings with RTL checking on.
9572 (gen_rtx_CONST_DOUBLE): Deleted.
9573 (const_double_from_real_value): New function - bears some
9574 resemblance to the former immed_real_const_1.
9575 (immed_double_const): Moved here from varasm.c and
9577 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9578 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9579 (gen_rtx): Use immed_double_const.
9580 (init_emit_once): Initialize the const_double_htab. Use
9581 REAL_VALUE_FROM_INT where possible. Can now use
9582 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9583 * varasm.c (struct varasm_status): Remove x_const_double_chain.
9584 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9585 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9586 (init_varasm_status, mark_varasm_status): Don't touch
9587 x_const_double_chain.
9589 * output.h: Delete prototype for clear_const_double_mem.
9590 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
9591 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
9592 const_double_from_real_value, not immed_real_const_1, and use
9593 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
9595 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9596 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9597 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9598 (gen_rtx_REG): Second arg is unsigned.
9600 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9601 (excluded_rtx): New, return true for CONST_DOUBLE.
9602 (genmacro): Write nothing for excluded codes.
9603 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9604 * expr.c (expand_expr): Likewise.
9605 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9607 * toplev.c (rest_of_compilation): Don't call
9608 clear_const_double_mem.
9610 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9611 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9612 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9613 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9614 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9615 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9616 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9617 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9619 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9621 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9623 2002-05-12 Tom Tromey <tromey@redhat.com>
9625 * tree.h (copy_node): Don't mention TREE_PERMANENT.
9627 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9629 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9630 (scan_comma_elt): New function. Accepts whitespace in comma lists.
9631 * gensupport.h: Prototype new routines.
9632 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
9634 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9635 (next_comma_elt): Use scan_comma_elt.
9637 * config/i386/i386.md: Use new attribute notation to break up
9638 long lines in define_attr forms.
9640 2002-05-12 Richard Henderson <rth@redhat.com>
9642 * expr.c (compress_float_constant): New.
9643 (emit_move_insn): Use it.
9644 (float_extend_from_mem): New.
9645 (init_expr_once): Initialize it.
9646 * real.c (exact_real_truncate): New.
9648 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9649 dropped into memory; penalize for size.
9650 (RTX_COSTS): FLOAT_EXTEND is free.
9651 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9652 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9654 2002-05-12 Richard Henderson <rth@redhat.com>
9656 * profile.h (profile_info): Add missing extern to declaration.
9657 * profile.c (profile_info): Define it.
9659 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9661 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9662 used for DImode and TImode.
9664 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
9666 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9669 2002-05-11 Zack Weinberg <zack@codesourcery.com>
9671 * config/rs6000/rs6000.c (rs6000_default_long_calls,
9672 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9673 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9674 (rs6000_override_options): Handle -m(no-)longcall.
9675 (init_cumulative_args, output_mi_thunk): Check for both
9676 longcall and shortcall attributes on the function.
9677 (rs6000_attribute_table): Add "shortcall".
9678 (rs6000_handle_longcall_attribute): Update comment.
9679 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9680 altivec_expand_ternop_builtin): Add default clauses to switches
9681 to silence warnings.
9683 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9684 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
9685 (TARGET_OPTIONS): Add longcall and no-longcall.
9687 * config/rs6000/rs6000.md (call_nonlocal_sysv,
9688 call_value_nonlocal_sysv): Split by alternatives. One pair
9689 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9690 the call cookie. The other pair accepts only LR/CTR and has
9693 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9694 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9696 * config/rs6000/rs6000-c.c: New file.
9697 * config/rs6000/t-rs6000-c-rule: New file.
9698 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9699 Prototype rs6000_pragma_longcall.
9701 * doc/extend.texi: Document shortcall attribute.
9702 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9704 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9706 * reorg.c (dbr_schedule): Remove unnecessary test.
9708 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9710 * i386.md (testsi to testqi spliters): New.
9712 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
9714 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9716 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
9718 * basic-block.h: New flag EDGE_CAN_FALLTHRU
9719 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9720 that can be made fallthru.
9722 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
9724 * cfglayout.c (cleanup_unconditional_jumps): New static function.
9725 (cfg_layout_initialize): Use it.
9727 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
9729 * config/avr/avr.c (avr_mcu_types): Update supported devices.
9730 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9731 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9733 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
9735 * dbxout.c: Fix formatting.
9736 * dependence.c: Likewise.
9738 * diagnostic.c: Likewise.
9739 * doloop.c: Likewise.
9740 * dominance.c: Likewise.
9741 * doschk.c: Likewise.
9742 * dwarf2asm.c: Likewise.
9743 * dwarf2out.c: Likewise.
9744 * dwarfout.c: Likewise.
9746 2002-05-10 Richard Henderson <rth@redhat.com>
9748 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
9749 Convert integers constants as needed. Replace "nwords" field with
9751 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9752 * function.h: Fix typo in comment.
9753 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9755 2002-05-10 Roger Sayle <roger@eyesopen.com>
9757 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9758 into the equivalent (signed char)c > 0.
9760 2002-05-10 Janis Johnson <janis187@us.ibm.com>
9762 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9763 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9764 (struct prefetch_info): Fix spelling of member bytes_accessed.
9765 (emit_prefetch_instructions): Make dump messages more regular;
9766 restructure code to add more dump messages; use new macros for
9767 heuristics. (There are no code generation changes in any of this).
9769 2002-05-10 David S. Miller <davem@redhat.com>
9771 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9772 (struct rtx_def): Update unchanging flag comment.
9773 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9774 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9775 to be handled to INSN too.
9776 (dbr_schedule): Likewise.
9777 * resource.c (next_insn_no_annul): Likewise.
9779 * cse.c (rtx_cost): Remove multiplication by power of 2 special
9782 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9784 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9785 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9786 (possibly) work around broken /bin/sh.
9788 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9790 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9791 . as N64/N32 libgcc_s.so subdirs.
9793 2002-05-10 David S. Miller <davem@redhat.com>
9795 * config/sparc/sparc.md: Use define_constants for unspec numbers.
9797 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9799 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9801 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9802 * doc/rtl.texi: Document these macros more accurately.
9803 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9804 JUMP_INSNs and CALL_INSNs.
9805 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9806 or INSN_FROM_TARGET_P if the code is appropriate.
9808 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
9810 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9811 before using SYMBOL_REF_FLAG (addr).
9813 * config/avr/avr-protos.h (avr_io_address_p): Declare.
9814 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9815 Make non-static. Update all callers.
9816 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9817 New insns to clear/set/test a single bit in I/O address space.
9819 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9821 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9823 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9825 * Makefile.in: Update.
9826 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9827 builtin_define_std): New.
9828 (c_common_init): Register CPP builtins callback.
9829 * c-common.h (flag_iso, flag_undef): New.
9830 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9831 * c-lex.c: Don't include target.h.
9832 (cb_register_builtins): Move to c-common.c.
9833 (init_c_lex): Don't register hook here.
9834 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9835 (cpp_define, cpp_assert): Remove.
9836 * gcc.c (cc1_options): Pass -undef to front end.
9837 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9838 (TARGET_INITIALIZER): Update.
9839 * target.h (struct cpp_reader): Don't predeclare.
9840 (struct gcc_target): Remove cpp builtin hook.
9841 * tree.c (default_register_cpp_builtins): Remove.
9845 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9847 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9849 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9851 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9852 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9854 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9856 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9857 * config/sparc/libgcc-sparc-glibc.ver: New file.
9858 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9859 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9861 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9864 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9865 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9866 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9868 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9869 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9870 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9871 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9873 2002-05-09 Richard Henderson <rth@redhat.com>
9875 * config/ia64/ia64.md: Use define_constants for unspec numbers.
9876 * config/ia64/ia64.c: Likewise.
9878 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
9880 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9881 (save_restore_insns): Likewise.
9882 (mips_expand_prologue, mips_expand_epilogue): Update callers.
9883 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9885 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
9887 * athlon.md, k6.md, pentium.md, ppro.md): New files.
9888 * i386.md: Move scheduling information into new files.
9890 * i386.md (type attribute): Add "rotate" for rotate insns.
9891 (rotate insns): Set type to "rotate".
9892 (various attributes and function units): Treat rotate like shift.
9893 (pent_pair attribute): Only rotates by one bit position are
9895 (sbb insns): Explicitly set pent_pair attribute on a couple
9896 that were missing it.
9898 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9900 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9901 make sure that buffer starts on odd word address.
9902 (sh_va_arg): Skip odd fp registers when reading a double precision
9905 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9907 * tree.h (preserve_data, object_permanent_p, type_precision):
9910 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9912 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9913 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9915 * cpp.texi: Update for removal of obsolete features.
9917 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
9918 Jeffrey A Law (law@redhat.com)
9920 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
9921 the DFA interface for Pentium processors.
9922 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9923 (attr_pent_pair, ix86_pent_find_pair): Remove.
9924 (ix86_sched_reorder_pentium): Remove.
9925 (ix86_sched_reorder): Remove reordering for Pentium.
9926 * i386.md (Pentium scheduling): Rewrite using DFA description.
9928 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
9930 * cfganal.c (can_fallthru): Fix fast path.
9931 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9932 with edges to the next block.
9934 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
9935 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
9937 * final.c (end_final): Use C trees to output data structures for profiling.
9939 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
9940 (profile.o): New dependency profile.h
9941 (final.o): New dependency profile.h
9942 * profile.h: New file. New global structure profile_info.
9943 * final.h (count_edges_instrumented_now): Declare.
9944 (current_function_cfg_checksum): Declare.
9945 (function_list): New structure.
9946 (functions_head, functions_tail): New static variables.
9947 (end_final): Emits more data, removed some -ax stuff.
9948 (final): Stores function names and chcksums.
9949 * gcov-io.h (__write_gcov_string): New function.
9950 (__read_gcov_string): New function.
9951 * gcov.c (read_profile): New function.
9952 (create_program_flow_graph): Uses read_profile instead of reading
9954 (read_files): Removed da_file checking, it's done by read_profile now.
9955 * libgcc2.c (bb_function_info): New structure.
9956 (bb): New field in structure, removed some -ax stuff.
9957 (__bb_exit_func): Changed structure of da_file.
9958 * profile.c (count_edges_instrumented_now): New global variable.
9959 (current_function_cfg_checksum): New global variable.
9960 (max_counter_in_program): New global variable.
9961 (get_exec_counts): New function.
9962 (compute_checksum): New function.
9963 (instrument_edges): Sets count_edges_instrumented_now.
9964 (compute_branch_probabilities): Uses get_exec_counts instead of
9966 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
9967 (init_branch_prob): Removed da_file checking, done in get_exec_counts
9969 (end_branch_prob): Removed da_file checking, done in get_exec_counts
9971 * gcov.texi: Updated information about gcov file format.
9973 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
9975 * sbitmap.c: Fix formatting.
9977 * scan-decls.c: Likewise.
9978 * sched-deps.c: Likewise.
9979 * sched-ebb.c: Likewise.
9980 * sched-rgn.c: Likewise.
9981 * sched-vis.c: Likewise.
9982 * sdbout.c: Likewise.
9983 * sibcall.c: Likewise.
9984 * simplify-rtx.c: Likewise.
9986 * ssa-ccp.c: Likewise.
9987 * ssa-dce.c: Likewise.
9989 * stor-layout.c: Likewise.
9990 * stringpool.c: Likewise.
9992 2002-05-09 David S. Miller <davem@redhat.com>
9994 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
9996 2002-05-07 David S. Miller <davem@redhat.com>
9998 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
9999 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
10000 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
10001 library implementation clobbers the output before the inputs
10002 are fully consumed, use stack temporary for the output.
10004 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
10006 * config/netbsd.h (CPP_SPEC): Remove.
10007 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
10008 * config/i386/netbsd.h (CPP_SPEC): Define.
10009 * config/ns32k/netbsd.h (CPP_SPEC): Define.
10010 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
10011 * config/sparc/netbsd.h (CPP_SPEC): Define.
10012 * config/vax/netbsd.h (CPP_SPEC): Define.
10014 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
10016 * read-rtl.c: Fix formatting.
10017 * real.c: Likewise.
10018 * recog.c: Likewise.
10019 * regclass.c: Likewise.
10020 * regmove.c: Likewise.
10021 * reg-stack.c: Likewise.
10022 * reload1.c: Likewise.
10023 * reload.c: Likewise.
10024 * resource.c: Likewise.
10025 * rtlanal.c: Likewise.
10027 * rtl-error.c: Likewise.
10029 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10031 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
10032 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
10034 2002-05-08 Bernd Schmidt <bernds@redhat.com>
10036 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
10037 use __SSE2__ macro instead.
10038 * config/i386/xmmintrin.h: Likewise.
10040 2002-05-08 Janis Johnson <janis187@us.ibm.com>
10042 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
10043 and use it in all invocations of these macros. Clean up comments.
10044 * rtl.c (rtl_check_failed_flag): Add an argument for the name
10045 of the flag access macro whose check failed.
10046 * doc/rtl.texi (Flags): Document additional flag uses.
10048 2002-05-08 Robert Spier <rspier@pobox.com>
10049 Neil Booth <neil@daikokuya.demon.co.uk>
10051 PR preprocessor/6521
10052 * cppfiles.c (handle_missing_header): Don't do anything
10053 different for <> includes.
10055 * cppopts.texi: Update documentation for -MG.
10057 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
10059 * cpplex.c (cpp_interpret_charconst): Truncate as well as
10062 * cpp.texi: Clarify multichar charconst valuation.
10064 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10066 * doc/invoke.texi: Document -mwindiss option.
10068 2002-05-08 Jason Merrill <jason@redhat.com>
10070 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
10072 * dwarf2out.c (gen_type_die): Abort on broken recursion.
10075 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
10078 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
10080 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
10081 little-endian multilibs to override arm/thumb multilibs.
10082 Do not build hardware floating point multilibs, nor apcs-26
10083 multilibs for the Thumb.
10085 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10088 * varasm.c (mark_weak): New function.
10089 (merge_weak): Use it. Do not call declare_weak.
10090 (declare_weak): Use merge_weak.
10092 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10094 * cse.c (dead_libcall_p): Update counts.
10095 (delete_trivially_dead_insns): Update call of dead_libcall_p.
10097 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
10099 * cfglayout.c (function_tail_eff_head): Rename to ...
10100 (function_footer): ... this one.
10101 (unlink_insn_chain): New functions.
10102 (label_for_bb): Only call block_label and emit debug message.
10103 (record_effective_endpoints): Actually unlink the headers and footers.
10104 (fixup_reorder_cahin): Re-insert the unlinked sequences.
10105 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
10106 * cfglayout.h (struct reorder_block_def): New fields footer/header;
10107 remove eff_head/eff_end.
10108 * rtl.h (set_first_insn): Declare.
10109 * emit-rtl.c (set_first_insn): New function.
10111 * cfglayout.c (fixup_reorder_chain): Dump duplicated
10112 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10113 cfg_layout_duplicate_bb): New global function.
10114 (duplicate_insn_chain): New static function.
10115 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10116 cfg_layout_duplicate_bb): Declare.
10117 (struct reorder_block_def): Add "original" field.
10118 * emit-rtl.c (emit_copy_of_insn_after): New function.
10119 * rtl.h (emit_copy_of_insn_after): Declare.
10121 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
10122 (fixup_reorder_chain): properly handle edges to exit block.
10124 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10125 Jan Hubicka <jh@suse.cz>
10127 * basic-block.h (note_prediction_to_br_prob): declare.
10128 * c-semantics.c: Inlucde predit.h
10129 (expand_stmt): predict GOTO_STMT as not taken.
10130 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
10131 (cleanup_cfg): Do not free tail_recursion_list.
10132 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
10133 (flow_delete_block): Kill predictions past end of basic block.
10134 * output.h (delete_unreachable_blocks): Declare.
10135 * predict.c (predicted_by_p, process_note_predictions,
10136 process_note_prediction, last_block_p): New function.
10137 (estimate_probability): Bypass loop on PRED_CONTINUE;
10138 do not handle noreturn heuristics; kill PRED_RETURN; add
10140 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
10141 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
10142 * predict.h (IS_TAKEN): New constant.
10143 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
10144 * rtl.c (NOTE_INSN_PREDICTION): New.
10145 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
10147 (insn_note): add NOTE_INSN_PREDICTION.
10148 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
10149 CFG; free tail_recursion_label_list.
10150 * stmt.c: Include predict.h;
10151 (return_prediction): New.
10152 (expand_value_return): Use it.
10153 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
10155 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
10157 * config/mips/mips.md: Name the unspecs with define_constant.
10158 (*HILO_delay): Rename to 'hilo_delay' (no star).
10159 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
10160 (reload_outdi, reload_outsi): Likewise.
10162 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
10164 * toplev.c: Fix formatting.
10166 2002-05-07 Janis Johnson <janis187@us.ibm.com>
10168 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
10169 * configure.in (ac_rtlflag_checking): New.
10170 * doc/install.texi (--enable-checking): Document RTL flag checking.
10172 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10174 * c-common.c (c_common_init): Set options->unsigned_wchar.
10175 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
10176 group target dependencies.
10177 (init_builtins, cpp_handle_option): Update.
10178 * cpplex.c (cpp_interpret_charconst): Update.
10179 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
10180 signed_char to unsigned_char, group target dependencies.
10181 * defaults.h (WCHAR_UNSIGNED): Remove.
10182 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
10184 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
10185 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
10186 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
10187 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
10188 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
10190 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
10192 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10194 * fixinc/inclhack.def (windiss_math1): New fix.
10195 (windiss_math2): Likewise.
10196 (windiss_valist): Likewise.
10197 * fixinc/fixincl.x: Regenerated.
10199 2002-05-07 Andreas Jaeger <aj@suse.de>
10201 * genautomata.c (output_internal_min_issue_delay_func): Add
10202 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
10203 (output_internal_trans_func): Likewise.
10205 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
10207 * pa.c (hppa_profile_hook): Use force_reg to get the address
10208 of the profile hook into an appropriate pseudo register.
10210 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10212 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
10213 (LINK_START_SPEC): Handle it.
10214 (LINK_OS_SPEC): Likewise.
10215 (CPP_SPEC): Likewise.
10216 (STARTFILE_SPEC): Likewise.
10217 (LIB_SPEC): Likewise.
10218 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
10220 (CRTSAVRES_DEFAULT_SPEC): New macro.
10221 (LIB_WINDISS_SPEC): New macro.
10222 (CPP_OS_WINDISS_SPEC): Likewise.
10223 (STARTFILE_WINDISS_SPEC): Likewise.
10224 (ENDFILE_WINDISS_SPEC): Likewise.
10225 (LINK_START_WINDISS_SPEC): Likewise.
10226 (LINK_OS_WINDISS_SPEC): Likewise.
10227 * config/rs6000/windiss.h: New file.
10229 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
10231 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
10233 2002-05-06 David S. Miller <davem@redhat.com>
10235 * config/sparc/sparc.md (shift insns): Do not mask off
10236 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
10239 2002-05-06 Richard Henderson <rth@redhat.com>
10242 * expr.c (highest_pow2_factor_for_type): New.
10243 (expand_assignment): Use it.
10245 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
10247 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
10249 ("altivec_mfvscr"): Same.
10251 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10253 * rtl.h (struct rtx_def): Update comments.
10254 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
10255 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
10256 RTL_FLAG_CHECK macros with list of expected RTL codes.
10257 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
10258 (rtl_check_failed_flag): New.
10259 * reload1.c (reload): Use REG macro before changing rtx to MEM.
10260 (reload_cse_noop_set_p): Check rtx code before using access macro.
10261 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
10262 before using access macro.
10264 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10266 * doc/rtl.texi (Flags): Update to reflect current usage.
10268 2002-05-06 Roger Sayle <roger@eyesopen.com>
10271 * fold-const.c (sign_bit_p): New function.
10272 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
10273 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
10274 Reapply fold when converting (A & C) == C into (A & C) != 0.
10275 (fold_binary_op_with_conditional_arg): Fix typo in comment.
10277 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10279 * c-common.c (warn_multichar): New.
10280 (c_common_init): Set CPP's warn_multichar.
10281 * c-common.h (warn_multichar): New.
10282 * c-decl.c (warn_multichar): Remove.
10283 * c-lex.c (lex_charconst): Update.
10284 * c-tree.h (warn_multichar): Remove.
10285 * cppexp.c (eval_token): Sign-extend charconst value.
10286 * cppinit.c (cpp_create_reader): Set warn_multichar.
10287 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
10288 each character. Update prototype. Sign-extend the result.
10289 * cpplib.h: Fix conditions.
10290 (struct cpp_options): Add new warning flag.
10291 (cpp_interpret_charconst): Update prototype.
10293 * cpp.texi: Update documentation.
10295 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
10297 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
10298 Fix typo in usage of allof instead of unit.
10300 2002-05-06 Richard Henderson <rth@redhat.com>
10302 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
10303 and any jump or call for IN.
10305 2002-05-06 Bernd Schmidt <bernds@redhat.com>
10307 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
10309 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
10311 2002-05-06 Roger Sayle <roger@eyesopen.com>
10313 * fold-const.c (lshift-double): Cast the high word to an unsigned
10314 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
10315 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
10316 avoid compiler warning. (fold): Remove redundant code from
10317 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
10319 2002-05-06 Jeff Law <law@redhat.com>
10321 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
10322 * pa.c (pa_adjust_cost): Remove all true dependency cost
10323 adjustments. Also remove support for non-DFA scheduling.
10324 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
10325 to adjust true dependency costs. Update various comments.
10326 (7100lc, 7200, 7300 scheduling): Simplify by combining the
10327 FP ALU & MPY units into a single unit.
10329 2002-05-06 Catherine Moore <clm@redhat.com>
10331 * config/v850/v850.c (compute_register_save_size): Make sure
10332 to count all of the registers that will be saved.
10334 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10336 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
10338 2002-05-06 David S. Miller <davem@redhat.com>
10340 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
10341 allow result to overlap input operands in memory.
10343 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10346 * cpp.texi: Update multichar charconst docs.
10348 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10350 * cpplex.c (cpp_interpret_charconst): Sign-extend each
10351 character. Don't ignore excess characters. Treat
10352 multicharacter character constants as signed.
10353 (cpp_parse_escape): Clarify diagnostic.
10355 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10357 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
10358 use add instead of shift.
10359 (ashldi3_sp64): Likewise.
10360 (ashlsi3_const1, ashldi3_const1): Remove.
10361 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
10362 * config/sparc/sparc.c (const1_operand): New.
10364 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
10366 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
10368 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10371 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
10373 2002-05-05 Richard Henderson <rth@redhat.com>
10375 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
10376 memory latency adjustments.
10377 (alpha_variable_issue): Remove.
10378 (alpha_use_dfa_pipeline_interface): New.
10379 (alpha_multipass_dfa_lookahead): New.
10380 * config/alpha/alpha.md: Remove define_function_unit scheduling;
10381 include new dfa scheduling.
10382 (attr type): Add none.
10383 (blockage): Use it.
10384 * config/alpha/ev4.md: New.
10385 * config/alpha/ev5.md: New.
10386 * config/alpha/ev6.md: New.
10388 2002-05-05 David S. Miller <davem@redhat.com>
10390 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
10392 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
10394 * cse.c: Fix formatting.
10395 * emit-rtl.c: Likewise.
10397 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10399 * genautomata.c (initiate_states): Add additional guard to
10400 initialize `units_array'.
10402 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10404 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
10405 process_unit_to_form_the_same_automaton_unit_lists,
10406 form_the_same_automaton_unit_lists
10407 check_unit_distributions_to_automata): New prototypes and
10409 (check_automata): Rename it into `check_automata_insn_issues'.
10410 (unit_decl): New fields `the_same_automaton_unit' and
10411 `the_same_automaton_message_reported_p'.
10412 (unit_decl_t): New typedef.
10413 (the_same_automaton_lists): New gloval variable.
10414 (unit_regexp, unit_set_el, units_array, units_cmp,
10415 output_get_cpu_unit_code_func): Use the typedef.
10416 (evaluate_max_reserv_cycles): Increment
10417 `description->max_insn_reserv_cycles'.
10418 (initiate_states): Don't increment `max_cycles_num'.
10419 (transform_insn_regexps): Move code around transformation of
10420 regexps from `generate'.
10421 (generate): Remove call of `transform_insn_regexps'.
10422 (expand_automata): Call `transform_insn_regexps' and
10423 `check_unit_distributions_to_automata'. Check errors before
10426 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
10427 automaton `ultrasparc3_1'.
10429 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
10431 * c-common.c (c_common_init): Set up CPP arithmetic.
10432 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
10433 something reasonable for the host.
10434 (sanity_checks): Add checks.
10435 (cpp_read_main_file): Call sanity_checks() from here...
10436 (cpp_post_options): ... not here.
10437 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
10438 * cpplib.h (struct cpp_options): New member int_precision.
10440 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10442 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
10444 2002-05-04 David S. Miller <davem@redhat.com>
10446 * config/sparc/linux.h, config/sparc/linux64.h
10447 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
10449 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
10451 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
10453 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
10456 2002-05-05 Tim Josling <tej@melbpc.org.au>
10458 * treelang; New directory for new sample language treelang.
10460 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10462 * Makefile.in (c-lex.o): Update.
10463 * c-lex.c: Include target.h.
10464 (cb_register_builtins): New.
10465 (init_c_lex): Set builtins callback.
10466 * c-lex.h (cpp_define, cpp_assert): New prototypes.
10467 * cppinit.c (init_builtins): Use callback, including for
10469 * cpplib.h (struct cpp_callbacks): New member.
10470 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
10471 (TARGET_INITIALIZER): Update.
10472 * target.h (struct gcc_target): New hook.
10473 * tree.c (default_register_cpp_builtins): New.
10474 * tree.h (default_register_cpp_builtins): New.
10476 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
10478 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10480 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
10481 (cpp_post_options): Move sanity checks to...
10482 (sanity_checks): New.
10483 * cpplex.c (maybe_read_ucs): Fix prototype.
10484 (parse_string, cpp_parse_escape): Cast for %c format specifier.
10485 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
10488 2002-05-04 Bernd Schmidt <bernds@redhat.com>
10490 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
10491 builtins. Use V2DI patterns instead of TI for logical operations.
10492 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
10493 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
10494 (ix86_expand_builtins): Change the pattern used for movntdq.
10495 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
10496 sse2_nandv2di3): New patterns.
10497 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
10499 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
10500 (cvtdq2pd): Correct mode on operand 1.
10501 (sse2_umulsidi3): Describe without unspec.
10502 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
10504 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
10505 (ashlv2di3): Likewise, from sse2_ashlv2di3.
10506 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
10507 ashlv4si3, ashlv2di3): Use SImode for shift count.
10508 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
10509 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
10511 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
10513 (__m128i, __m128d): New macros.
10514 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
10515 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
10516 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
10517 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
10518 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
10519 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
10520 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
10521 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
10522 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
10523 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
10524 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
10525 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
10526 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
10527 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
10528 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
10529 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
10530 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
10531 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
10532 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
10533 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
10534 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
10535 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
10536 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
10537 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
10538 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
10539 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
10540 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
10541 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
10542 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10543 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10544 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10545 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10546 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10547 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10548 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10549 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10550 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10552 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
10553 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10555 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
10557 * dwarf2out.c: Fix formatting.
10558 * varasm.c: Likewise.
10560 2002-05-04 David Edelsohn <edelsohn@gnu.org>
10563 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10564 clobber and use result as temporary value.
10566 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
10568 * expr.c (force_operand): Use expand_simple_* to handle more
10571 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10573 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10574 and sign-extension.
10575 (lex_charconst): Update for change in prototype of
10576 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
10578 * cpphash.h (BITS_PER_CPPCHAR_T): New.
10579 * cppinit.c (cpp_create_reader): Initialize them for no
10580 change in semantics.
10581 (cpp_post_options): Add sanity checks.
10582 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10583 and truncation issues. Calculate in type cppchar_t.
10584 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10585 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
10586 run-time dependent precision correctly. Return whether the
10587 result is signed or not.
10588 * cpplib.c (dequote_string): Use cppchar_t; update.
10589 * cpplib.h (cppchar_signed_t): New.
10590 struct cpp_options): New precision members.
10591 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
10592 * cppexp.c (eval_token): Update.
10594 2002-05-03 David S. Miller <davem@redhat.com>
10596 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10597 * config/sparc/sparc.c (sparc_rtx_costs): New function
10598 implementing RTX_COSTS and CONST_COSTS.
10599 * config/sparc/sparc.h (CONST_COSTS): Delete.
10600 (RTX_COSTS_CASES): Define.
10601 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10604 * config/sparc/sparc.md (DFA schedulers): Split out...
10605 * config/sparc/cypress.md, config/sparc/hypersparc.md,
10606 config/sparc/sparclet.md, config/sparc/supersparc.md,
10607 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10609 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10610 checks on it, always defined for Sparc.
10612 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10613 Tweak, and add more detailed comments.
10615 2002-05-03 Zack Weinberg <zack@codesourcery.com>
10617 * Re-apply patch accidentally reverted with
10618 DFA scheduler merge: remove all rules and variables to slurp
10619 source files out of libiberty and rebuild them with HOST_CC.
10620 ($(HOST_PREFIX_1)varray.o): New rule.
10621 (genattrtab rule): Word wrap.
10623 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10625 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10626 (CPP_SUBTARGET_SPEC): Define.
10627 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10628 cpp_subtarget specs.
10629 (CPP_SPEC): Redefine to include %(cpp_subtarget).
10631 2002-05-03 David S. Miller <davem@redhat.com>
10633 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10634 * target.h (struct gcc_target): Delete cycle_display member.
10636 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10637 (rtx_needs_barrier): Delete reference to cycle_display unspec.
10638 (ia64_sched_reorder2): Mention need for cycle display handling
10639 once such notes exist.
10641 2002-05-03 Richard Henderson <rth@redhat.com>
10643 * real.c (etoasc): Strip most trailing zeros for clarity.
10644 * sched-vis.c: Include real.h.
10645 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10646 * Makefile.in (sched-vis.o): Add real.h.
10648 2002-05-03 David S. Miller <davem@redhat.com>
10650 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10653 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
10655 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10656 when we get an out of range literal.
10657 (altivec_expand_ternop_builtin): Same.
10658 (altivec_expand_unop_builtin): Same.
10659 (altivec_expand_builtin): Same, for dss.
10660 (altivec_expand_builtin): Use trees instead of rtl when
10661 determining literal argument validity.
10663 2002-05-03 David S. Miller <davem@redhat.com>
10665 Delete cycle display scheduling hook.
10666 * config/ia64/ia64.c (ia64_cycle_display,
10667 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10668 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10669 and use emit_insn_before instead of ia64_emit_insn_before.
10670 * config/ia64/ia64.md (unspec usage): Delete cycle display.
10671 (cycle_display): Delete insn pattern.
10672 * config/sparc/sparc.md (unspec usage): Delete cycle display.
10673 (cycle_display): Delete insn pattern.
10674 * config/sparc/sparc.c (sparc_cycle_display,
10675 TARGET_SCHED_CYCLE_DISPLAY): Delete.
10676 * doc/md.texi (cycle_display): Don't mention.
10677 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
10679 2002-05-03 Richard Henderson <rth@redhat.com>
10681 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10682 * recog.h: Declare them.
10684 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10685 * config/sparc/sparc.md: Use store_data_bypass_p instead.
10686 * config/sparc/sparc-protos.h: Update.
10688 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10690 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10691 -D__arch64__. Add -D_LP64.
10692 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10694 (CPP_ARCH64_SPEC): Likewise.
10695 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10696 (NO_BUILTIN_SIZE_TYPE): Undef.
10698 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
10700 * genautomata.c (min_issue_delay_pass_states): Change return type
10702 (min_issue_delay_pass_states): Change the algorithm.
10703 (min_issue_delay): Set up min_insn_issue_delay for the state.
10704 (output_min_issue_delay_table): Interchange the nested loops and
10705 and initiate min_insn_issue_delay for states.
10707 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
10709 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
10710 jump is simplejump.
10712 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
10714 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
10717 2002-05-03 Richard Henderson <rth@redhat.com>
10720 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10721 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10722 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10723 code before JUMP, not EARLIEST.
10725 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
10727 * c-format.c (check_format_info_main): Don't check for presence of
10728 parameter for * width until after operand number has been read,
10729 and only check for it if format parameters are available.
10732 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10734 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10735 (LINK_SPEC): Undef before defining.
10737 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10739 PR preprocessor/6489
10740 * tradcpp.c (fixup_newlines): New.
10741 (main, finclude): Use it.
10743 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
10745 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10746 * config/mips/mips.c (mips_unique_section): Strip encoding from
10749 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10751 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10754 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10756 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10757 (Specific): Removed buildstats references.
10758 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10759 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10760 Accomodate Solaris versions beyond 8.
10761 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10762 (Specific, *-*-solaris2.8): Removed, obsolete.
10764 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10767 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10768 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10769 fill leaf_reg_remap with identity.
10770 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10772 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10774 * config/h8300/crti.asm: Remove trailing spaces.
10775 * config/h8300/h8300.c: Likewise.
10776 * config/h8300/lib1funcs.asm: Likewise.
10778 2002-05-02 Jason Merrill <jason@redhat.com>
10780 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10781 * c-decl.c (c_init_decl_processing): Use it.
10782 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10783 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10784 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10786 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10788 * regrename.c: Fix formatting.
10789 * tree.c: Likewise.
10791 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
10793 * i386.md (attribute memory): Handle compares properly.
10795 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
10797 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
10800 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
10802 * function.c: Fix formatting.
10804 2002-05-02 Jan Hubicka <jh@suse.cz>
10806 * haifa-sched.c (schedule_insn): Print table of instructions and
10808 (sched_block): Do not print ready list at verbosity level 1.
10809 * sched-vis.c (print_insn): Make global.
10810 * sched-ebb.c (ebb_print_insn): Rename from...
10811 (print_insn): ... this one.
10812 * sched-int.h (print_insn): Declare
10814 2002-05-02 Richard Henderson <rth@redhat.com>
10816 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10817 emitted by cycle_display.
10819 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
10821 * doc/install.texi (*-*-freebsd*): Update to latest status.
10823 2002-05-02 Jakub Jelinek <jakub@redhat.com>
10826 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10827 * config/float-sparc.h: Assume 128-bit long double if
10828 __LONG_DOUBLE_128__ is defined.
10830 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
10832 * genattrtab.c (write_function_unit_info): Add a dummy element
10833 when num_units == 0.
10835 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10837 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10838 TYPE_MODE (double_type_node) instead of DFmode.
10840 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
10842 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10844 * toplev.c (rest_of_compilation): Revert Richard's patch.
10846 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10848 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10850 2002-05-02 Catherine Moore <clm@redhat.com>
10852 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10854 2002-05-02 Kazu Hirata <kazu@hxi.com>
10856 * combine.c: Fix comment typos.
10857 * expr.c: Likewise.
10858 * genautomata.c: Likewise.
10859 * stmt.c: Likewise.
10860 * tree.h: Likewise.
10862 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
10864 * doc/install.texi: State GNAT version requirements.
10866 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
10868 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10869 of the frame pointer or arg pointer register which strict register
10870 checking is not enabled.
10872 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
10874 * gcc.dg/altivec-8.c: New.
10876 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10877 PRE_INC and PRE_DEC for altivec modes.
10879 2002-05-01 Bruce Korb <bkorb@gnu.org>
10881 * fixinc/check.tpl(set-writable): make sure the function exists first
10882 * fixinc/inclhack.def(alpha_assert): fix test_text
10883 * fixinc/tests/base/assert.h: add in missing result
10885 2002-05-01 Jeff Law <law@redhat.com>
10887 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10890 2002-05-01 Joel Brobecker <brobecker@gnat.com>
10892 * dbxout.c (dbxout_type): Emit size information for range types,
10893 as well, but only when using GDB extensions.
10895 2002-05-01 Richard Henderson <rth@redhat.com>
10897 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10898 target-independent gnu binutils date test.
10900 2002-05-01 Richard Henderson <rth@redhat.com>
10902 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10903 info before expunging the block.
10905 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10907 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10908 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
10909 -M -or -MM is in effect.
10911 2002-05-01 Zack Weinberg <zack@codesourcery.com>
10913 * config.gcc: Correct test of --enable-obsolete. Obsolete all
10914 A29k configurations.
10915 * doc/install.texi: Update to match.
10917 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10920 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10921 for duplicates. Always loop over whole list.
10923 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10925 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10927 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10929 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10932 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10934 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10936 2002-05-01 David Edelsohn <edelsohn@gnu.org>
10938 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10939 (nabs_nopower): Same.
10940 (floatdisf2): New pattern.
10941 (absdi2): Convert to define_insn_and_split.
10943 (trunctfsf2): Same.
10944 (floatditf2): Same.
10945 (floatsitf2): Same.
10946 (fix_trunctfdi2): Same.
10947 (fix_trunctfsi2): Same.
10949 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
10951 * doc/install.texi: Update Texinfo version requirement
10954 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10956 PR target/6512, PR target/5628
10957 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
10958 when memory is not aligned.
10959 (movdf_insn_v9only_vis): Likewise.
10960 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
10961 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
10962 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
10964 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
10966 * gcc.dg/altivec-7.c: New.
10968 * config/rs6000/altivec.h: Cleanup.
10970 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
10972 * doc/invoke.texi (Option Summary): Add -mvrsave=.
10973 (RS/6000 and PowerPC Options): Document -mvrsave=.
10975 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
10976 (rs6000_altivec_vrsave_string): Same.
10977 (rs6000_override_options): Call rs6000_parse_vrsave_option.
10978 (rs6000_parse_vrsave_option): New.
10979 (rs6000_stack_info): Only generate vrsave instructions when
10980 TARGET_ALTIVEC_VRSAVE.
10982 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
10983 (rs6000_altivec_vrsave_string): Define extern.
10984 (rs6000_altivec_vrsave): Same.
10985 (TARGET_ALTIVEC_VRSAVE): New.
10987 2002-04-30 Richard Henderson <rth@redhat.com>
10990 * toplev.c (rest_of_compilation): Don't run cross-jump before
10993 2002-04-30 Tom Rix <trix@redhat.com>
10995 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
10996 check which_alternative.
10998 2002-04-30 Kazu Hirata <kazu@hxi.com>
11000 * cpplex.c: Fix comment formatting.
11001 * function.c: Likewise.
11002 * integrate.c: Likewise.
11003 * regrename.c: Likewise.
11004 * sibcall.c: Likewise.
11005 * simplify-rtx.c: Likewise.
11006 * tree-inline.c: Likewise.
11008 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11010 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
11011 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
11012 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
11013 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
11014 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
11015 * pa/x-ada: New file. Define ADA_CFLAGS.
11017 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
11019 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
11020 from MMIX_LAST_REGISTER_FILE_REGNUM.
11021 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
11022 (struct machine_function): New member highest_saved_stack_register
11023 previously static variable in mmix.c.
11024 (MACHINE_DEPENDENT_REORG): Define.
11025 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
11026 (MMIX_OUTPUT_REGNO): New.
11027 (mmix_target_asm_function_prologue): Move calculation of last used
11028 saved-stack-register into...
11029 (mmix_machine_dependent_reorg): New function. Update to also handle
11031 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
11032 register names, simplify somewhat by new variable regno.
11033 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
11035 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
11036 emitting register names.
11037 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
11038 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
11039 Remove fixed FIXME.
11040 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
11043 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
11045 2002-04-30 Richard Henderson <rth@redhat.com>
11047 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
11048 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
11049 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
11050 emit_tfmode_cvt): New.
11051 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
11052 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
11053 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
11054 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
11055 * config/sparc/sparc-protos.h: Update.
11057 2002-04-30 Janis Johnson <janis187@us.ibm.com>
11059 * install.texi (Final install): Add to the list of info to include
11060 in a report of a successful bootstrap, and add link to 3.1 list.
11062 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
11064 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
11065 (mode): Add vector modes
11066 (i387): Kill attribute.
11067 (unit): New attribute.
11068 (length_immediate): Grok new types.
11069 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
11070 (modrm): Use "unit".
11071 (memory): Handle MMX/SSE properly.
11072 (scheduling descriptions): Kill uses of fop1.
11073 (sse, mmx, fp patterns): Set type and mode properly.
11075 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
11077 * pa.c (override_options): Default to PA8000 scheduling.
11078 * doc/invoke.texi (HP-PA options): Mention newly added 7300
11079 scheduling parameter.
11081 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
11082 handling of double precision multiplies.
11084 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
11085 fpdiv and fpsqrt instructions.
11086 (7200 & 7300 scheduling): Fix typo in handling of
11087 store-load and store-store penalties.
11089 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11091 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
11092 mips. Add two missing commas.
11094 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
11096 * doc/contrib.texi (Contributors): Update Paolo Carlini's
11097 and Benjamin Kosnik's entries.
11099 2002-04-29 David S. Miller <davem@redhat.com>
11101 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
11102 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
11103 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
11104 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11106 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11108 * combine.c (find_split_point): Use gen_int_mode.
11110 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
11112 Merging code from dfa-branch:
11114 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
11116 * genautomata.c (output_reserv_sets): Fix typo.
11118 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
11120 * genautomata.c (output_reserv_sets): Remove
11121 next_cycle_output_flag.
11123 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
11125 * sched-rgn.c (init_ready_list): Make the DFA code handle
11126 USE/CLOBBER insns in the same way as the traditional
11128 (new_ready): Similarly..
11130 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
11132 * haifa-sched.c (schedule_block): Change the DFA state only after
11135 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
11137 * pa.c (hppa_use_dfa_pipeline_interface): New function.
11138 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
11139 (override_options): Add PA7300 scheduling support.
11140 (pa_adjust_cost): Update various comments. Properly
11141 handle anti and output dependencies when using the
11143 (pa_issue_rate): Add PA7300 scheduling support.
11144 (pa_can_combine_p): Call extract_insn before calling
11145 constrain_operands (taken from mainline tree).
11146 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
11147 * pa.md (cpu attr): Add 7300. Rewrite pipeline
11148 descriptions using DFA descriptions. Add PA7300
11149 scheduling support.
11151 2002-03-30 David S. Miller <davem@redhat.com>
11153 Add UltraSPARC-III DFA scheduling support.
11154 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
11155 Update FP conditional move on register insn patterns to use it, as
11157 (define_attr cpu): Add ultrasparc3.
11158 (define_attr us3load_type): New, update integer load patterns to
11159 set it, as appropriate.
11160 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
11161 (rest): Add UltraSPARC3 scheduling description.
11162 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
11163 (PROCESSOR_ULTRASPARC3): New.
11164 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
11165 ({ASM,CPP}_CPU_SPEC): Likewise.
11166 (REGISTER_MOVE_COST): Likewise.
11167 (RTX_COSTS): Likewise.
11168 * config/sparc/sparc.c (sparc_override_options,
11169 sparc_initialize_trampoline, sparc64_initialize_trampoline,
11170 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11171 sparc_issue_rate): Likewise.
11172 * config/sparc/sol2.h: Likewise.
11173 * config/sparc/sol2-sld-64.h: Likewise.
11174 * config/sparc/linux64.h: Likewise.
11176 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
11178 * doc/md.texi: Add comments about usage the latency time for the
11179 different dependencies and about case when two or more conditions
11180 in different define_insn_reservations returns TRUE for an insn.
11182 * doc/md.texi: Add reference for automaton based pipeline
11185 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
11187 * doc/passes.texi: Add missed information about genattrtab.
11189 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
11191 * genautomata.c (output_automata_list_transition_code): Check
11192 automata_list on NULL.
11194 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
11196 * genautomata.c (output_insn_code_cases,
11197 output_automata_list_min_issue_delay_code,
11198 output_automata_list_transition_code,
11199 output_automata_list_state_alts_code): Comment the functions.
11201 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
11203 * genautomata.c (automata_list_el_t): New typedef.
11204 (get_free_automata_list_el,free_automata_list_el,
11205 free_automata_list, automata_list_hash, automata_list_eq_p,
11206 initiate_automata_lists, automata_list_start, automata_list_add,
11207 automata_list_finish, finish_automata_lists,
11208 output_insn_code_cases, output_automata_list_min_issue_delay_code,
11209 output_automata_list_transition_code,
11210 output_automata_list_state_alts_code, add_automaton_state,
11211 form_important_insn_automata_lists): New functions and prototypes.
11212 (insn_reserv_decl): Add members important_automata_list and
11214 (ainsn): Add members important_p.
11215 (automata_list_el): New structure.
11216 (first_free_automata_list_el, current_automata_list,
11217 automata_list_table): New global variables.
11218 (create_ainsns): Initiate member important_p.
11219 (output_internal_min_issue_delay_func): Generate the switch and
11220 call output_insn_code_cases.
11221 (output_internal_trans_func, output_internal_state_alts_func):
11223 (generate): Call initiate_automata_lists.
11224 (automaton_states): New global variable.
11225 (expand_automata): Call form_important_insn_automata_lists.
11226 (write_automata): Call finish_automata_lists.
11228 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
11230 * genautomata.c (add_excls, add_presence_absence): Check that
11231 cpu units in the sets belong the same automaton.
11233 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
11234 about that cpu units in the sets belong the same automaton.
11236 * doc/md.texi: Ditto.
11238 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
11239 Nitin Gupta <niting@noida.hcltech.com>
11241 * config/sh/sh.c (sh_use_dfa_interface): New function.
11243 (sh_issue_rate): New Function.
11244 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
11245 TARGET_SCHED_ISSUE_RATE: define.
11247 * config/sh/sh.md: Add DFA based pipeline description for SH4.
11249 (define_attr insn_class): New attribute used for DFA
11251 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
11252 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
11253 cmpeqdi_t): Likewise.
11255 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
11256 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
11258 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
11260 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11262 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
11265 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11267 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
11268 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
11270 (output_dfa_start_func): Initiate new variable insn_codes_length,
11271 (write_automata): Output definition of the new variable.
11273 2001-10-02 David S. Miller <davem@redhat.com>
11275 * haifa-sched.c (advance_one_cycle): New function.
11276 (schedule_block): Use it.
11277 (queue_to_ready): Use it, and also make sure to advance the DFA
11278 state on all stall cycles, not just those where insn_queue links
11281 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
11283 * haifa-sched.c (max_issue): Remove last_p argument. Only return
11284 non-zero if the highest-priority instruction could be scheduled.
11285 (choose_ready): Remove last argument from max_issue call.
11287 2001-09-28 David S. Miller <davem@redhat.com>
11289 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
11290 ultrasparc and 3 for other multi-issue sparcs.
11292 2001-09-27 David S. Miller <davem@redhat.com>
11294 * config/sparc/sparc.md (cycle_display): New pattern.
11295 * config/sparc/sparc.c (sparc_cycle_display): New.
11296 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
11298 2001-09-25 David S. Miller <davem@redhat.com>
11300 Convert all of Sparc scheduling to DFA
11301 * config/sparc/sparc.md: Kill all define_function_unit
11302 directives and replace with DFA equivalent.
11303 * config/sparc/sparc.c (ultrasparc_adjust_cost,
11304 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
11305 ultra_fpmode_conflict_exists, ultra_find_type,
11306 ultra_build_types_avail, ultra_flush_pipeline,
11307 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
11308 ultrasparc_variable_issue, ultrasparc_sched_init,
11309 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
11310 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
11311 ultra_cur_hist, ultra_cycles_elapsed): Kill.
11312 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11313 ultrasparc_store_bypass_p): New.
11314 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
11317 2001-09-24 David S. Miller <davem@redhat.com>
11319 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
11320 ready->vec[foo] not ready[foo].
11322 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11324 * doc/md.texi: Correct examples for define_insn_reservations
11327 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11329 * genautomata.c (create_automata): Print message about creation of
11331 (generate): Remove printing meease about creation of
11334 2001-09-05 David S. Miller <davem@redhat.com>
11336 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11337 * config/sparc/linux64.h: Likewise.
11339 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
11341 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
11342 schedule_block, sched_init, sched_finish): Add missed calls of
11343 use_dfa_pipeline_interface.
11345 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
11348 * sched-vis.c (get_visual_tbl_length): Ditto.
11350 2001-08-27 Richard Henderson <rth@redhat.com>
11352 * genattr.c (main): Emit state_t even when not doing scheduling.
11354 2001-08-27 Richard Henderson <rth@redhat.com>
11356 * genautomata.c (expand_automata): Always create a description.
11358 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
11360 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
11361 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
11362 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
11365 * genattr.c (main): New variable num_insn_reservations. Increase
11366 it if there is DEFINE_INSN_RESERVATION. Output automaton based
11367 pipeline hazard recognizer interface.
11369 * genattrtab.h: New file.
11371 * genattrtab.c: Include genattrtab.h.
11372 (attr_printf, check_attr_test, make_internal_attr,
11373 make_numeric_value): Move protypes into genattrtab.h. Define them
11375 (num_dfa_decls): New global variable.
11376 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
11377 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
11378 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
11379 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
11381 * genautomata.c: New file.
11383 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
11385 * sched-int.h: (curr_state): Add the external definition for
11386 automaton pipeline interface.
11387 (haifa_insn_data): Add comments for members blockage and units.
11389 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11390 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11391 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11392 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11393 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11394 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11395 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
11397 (TARGET_SCHED): Use the new macros.
11399 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
11400 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
11401 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
11402 dfa_bubble): New members in gcc_target.sched.
11404 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
11405 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
11406 (insn_queue): Redefine it as pointer to array.
11407 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
11409 (max_insn_queue_index_macro_value): New variable.
11410 (curr_state, dfa_state_size, ready_try): New varaibles for
11411 automaton interface.
11412 (ready_element, ready_remove, max_issue): New function prototypes
11413 for automaton interface.
11414 (choose_ready): New function prototype.
11415 (insn_unit, blockage_range): Add comments.
11416 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
11417 FUNCTION_UNITS_SIZE == 0.
11418 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
11419 actual_hazard, potential_hazard): Add comments.
11420 (insn_cost): Use cost -1 as undefined value. Remove
11421 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
11422 pipeline interface.
11423 (ready_element, ready_remove): New functions for automaton
11425 (schedule_insn): Add new code for automaton pipeline interface.
11426 (queue_to_ready): Add new code for automaton pipeline interface.
11427 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
11428 (debug_ready_list): Print newline when the queue is empty.
11429 (max_issue): New function for automaton pipeline interface.
11430 (choose_ready): New function.
11431 (schedule_block): Add new code for automaton pipeline interface.
11432 Print ready list before scheduling each insn.
11433 (sched_init): Add new code for automaton pipeline interface.
11434 Initiate insn cost by -1.
11435 (sched_finish): Free the current automaton state and finalize
11436 automaton pipeline interface.
11438 * sched-rgn.c: Include target.h.
11439 (init_ready_list, new_ready, debug_dependencies): Add new code for
11440 automaton pipeline interface.
11442 * sched-vis.c: Include target.h.
11443 (get_visual_tbl_length): Add code for automaton interface.
11444 (target_units, print_block_visualization): Add comments.
11446 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
11447 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
11448 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
11449 (getruntime.o, genautomata.o): New entries.
11450 (genattrtab.o): Add new dependency file genattrtab.h.
11451 (genattrtab): Add new dependencies. Link it with `libm.a'.
11452 (getruntime.o, hashtab.o): New entries for canadian cross.
11454 * doc/md.texi: Description of automaton based model.
11456 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
11458 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11459 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11460 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11461 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11462 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11463 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11464 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
11466 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
11467 MAX_DFA_ISSUE_RATE): New macro descriptions.
11469 * doc/contrib.texi: Add dfa based scheduler contribution.
11471 * doc/gcc.texi: Add more information about genattrtab.
11473 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11475 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
11476 adjust_address_nv call.
11478 2002-04-29 Janis Johnson <janis187@us.ibm.com>
11480 * doc/install.texi (Testing): Provide additional information, and
11481 a stronger encouragement, for running the testsuites.
11483 2002-04-29 DJ Delorie <dj@redhat.com>
11485 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
11486 given in upper case.
11488 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11490 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
11491 Solaris 2 <widec.h> if missing.
11492 * fixinc/fixincl.x: Regenerate.
11493 * fixinc/tests/base/widec.h: New file.
11495 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
11497 * toplev.c (f_options): Add "profile" switch so that
11498 -fno-profile can be used to disable -p.
11500 2002-04-29 Bernd Schmidt <bernds@redhat.com>
11502 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
11504 * tree.c (build_common_tree_nodes_2): Likewise.
11505 * tree.h (enum tree_index): Likewise.
11506 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
11508 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
11510 (init_mmx_sse_builtins): Initialize SSE2 builtins.
11511 (ix86_expand_builtin): Add support for SSE2 builtins.
11512 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
11513 (VALID_SSE_REG_MODE): Use it.
11514 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
11515 (enum ix86_builtins): Add SSE2 builtins.
11516 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
11517 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
11518 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
11519 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
11520 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
11521 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
11522 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
11523 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
11524 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
11525 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
11526 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
11527 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
11528 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
11529 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11530 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
11531 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
11532 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
11533 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
11534 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
11535 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
11536 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
11537 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
11538 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
11539 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
11540 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
11541 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
11542 lfence_insn): New patterns.
11543 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11544 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11546 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
11548 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11550 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11552 * doc/contrib.texi (Contributors): Add Paolo Carlini and
11554 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11555 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11556 and CPU instead of cpu.
11558 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
11560 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11562 (lang_independent_options): Add -fif-conversion, -fif-conversion2
11563 (rest_of_compilation): Do if conversion only when asked for.
11564 (parse_options_and_default_flags): Set new variables to 1 for -O1
11565 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11567 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
11569 * i386.c (dbx64_register_map): Fix typo.
11571 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
11573 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11574 real_one_half, real_bb_freq_max): New static variables.
11575 (debug_profile_bbauxs): Kill.
11576 (process_note_predictions): Kill unused variable.
11577 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11579 (propagate_freq): Use REAL_ARITHMETICS.
11580 (estimate_bb_frequencies): Likevise; init new static variables.
11581 * Makefile.in (predict.o): Add dependency on real.h
11583 2002-04-28 David S. Miller <davem@redhat.com>
11586 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11587 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
11588 several {reads,writes} instead.
11589 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11592 2002-04-27 David S. Miller <davem@redhat.com>
11595 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11598 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11599 including signal.h and sys/ucontext.h, not needed.
11601 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
11603 * varasm.c (output_constant_def): Correct test for not calling
11604 ENCODE_SECTION_INFO for INTEGER_CST.
11606 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
11608 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11609 keep most cases as function eval_token.
11610 (eval_token): New function.
11611 (_cpp_parse_expr): Read token here for improved diagnostics.
11612 Don't use op_as_text. Detect bad ':' here.
11613 (reduce): Don't detect bad ':' here.
11614 (op_as_text): Remove.
11615 * cpphash.h (_cpp_test_assertion): Change prototype.
11616 * cpplib.c (_cpp_test_assertion): Change prototype.
11618 2002-04-28 Richard Henderson <rth@redhat.com>
11621 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11622 (ggc_mark_rtx_children): New.
11624 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11627 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11628 after call peepholes for UltraSPARC.
11629 (call + jump 64-bit peepholes): Remove.
11631 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11634 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11635 result as temporary value.
11637 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11640 * toplev.c (rest_of_compilation): Only run regrename and copy
11641 propagation if optimizing.
11643 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11645 PR optimization/6475
11646 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11647 register of REGNO_DECL (i).
11648 * Makefile.in (reload1.o): Add $(TREE_H).
11650 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
11652 * cppexp.c (lex): Update to use state.skip_eval.
11653 (struct op): Remove prio and flags members.
11654 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11655 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11656 (LEFT_ASSOC): New macro.
11657 (optab): New table of operator priorities and flags.
11659 (_cpp_parse_expr): Clean up logic. Return bool. Use a
11660 malloc-ed parser stack.
11661 (reduce): New; reduce the operator stack.
11662 (_cpp_expand_op_stack): Expand the operator stack as necessary.
11663 * cpphash.h (struct op): Predeclare.
11664 (struct cpp_reader): New members op_stack, op_limit.
11665 (struct lexer_state): New member skip_eval.
11666 (_cpp_parse_expr): Update.
11667 (_cpp_expand_op_stack): New.
11668 * cpplib.c (do_if): Update.
11669 * cppinit.c (cpp_create_reader): Create op stack.
11670 (cpp_destroy): And destroy it.
11671 * cpplib.h (CPP_LAST_CPP_OP): Correct.
11672 (TTYPE_TABLE): Correct.
11674 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11677 * c-decl.c (duplicate_decls): Call merge_weak.
11678 * c-pragma.c (apply_pragma_weak): Warn about misuse.
11679 * output.h (merge_weak): Prototype merge_weak.
11680 * varasm.c (merge_weak): New function.
11681 (declare_weak): Make sure we don't give an error on VAR_DECLs.
11682 Mark RTL with SYMBOL_REF_WEAK.
11684 2002-04-27 Kurt Garloff <garloff@suse.de>
11686 * tree-inline.c (inlinable_function_p): Improve heuristics
11687 by using a smoother function to cut down allowable inlinable size.
11688 * param.def: Add parameters max-inline-insns-single,
11689 max-inline-slope, min-inline-insns that determine the exact
11690 shape of the above function.
11691 * param.h: Likewise.
11693 2002-04-26 Richard Henderson <rth@redhat.com>
11695 * c-parse.in (malloced_yyss, malloced_yyvs): New.
11696 (yyoverflow): Re-add. Set them.
11697 (free_parser_stacks): New.
11698 * c-common.h: Declare it.
11699 * c-lex.c (c_common_parse_file): Call it.
11701 2002-04-26 Richard Henderson <rth@redhat.com>
11703 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11704 for fallthru search.
11706 2002-04-26 Eric Christopher <echristo@redhat.com>
11708 PR optimization/3700
11709 * config/mips/mips.c (mips_issue_rate): Define. New function.
11710 (TARGET_SCHED_ISSUE_RATE): Use.
11712 2002-04-25 David S. Miller <davem@redhat.com>
11715 * reorg.c (optimize_skip): Do not allow exception causing
11716 instructions to be considered for delay slots.
11717 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11718 (relax_delay_slots): Do not try to consider exception causing
11719 instructions as redundant.
11721 2002-04-26 Richard Henderson <rth@redhat.com>
11724 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11726 2002-04-26 Mark Mitchell <mark@codesourcery.com>
11729 * config/i386/i386.md (untyped_call): Return the value in a float
11730 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11733 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
11735 * tree.c (tree_int_cst_lt): Compare constants whose types differ
11736 in unsigned-ness correctly.
11738 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11740 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11741 portable runtime model.
11743 2002-04-26 Richard Henderson <rth@redhat.com>
11745 * c-parse.in (yyoverflow): Revert.
11747 2002-04-26 David Edelsohn <edelsohn@gnu.org>
11748 Richard Henderson <rth@redhat.com>
11750 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11751 result as temporary value.
11753 2002-04-26 Richard Henderson <rth@redhat.com>
11756 * c-common.c (fix_string_type): Split out of ...
11757 (combine_strings): ... here. Take a varray, not a tree list.
11758 (c_expand_builtin_printf): Use fix_string_type.
11759 * c-common.h: Update decls.
11760 * c-parse.in (string): Remove. Update all uses to use STRING
11761 instead, and not call combine_strings.
11762 (yylexstring): New.
11764 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11765 (build_asm_stmt): Likewise.
11766 * objc/objc-act.c (my_build_string): Use fix_string_type.
11767 (build_objc_string_object): Build varray for combine_strings.
11769 2002-04-26 Bo Thorsen <bo@suse.co.uk>
11771 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11774 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
11776 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11777 (HAVE_NO_R_OPERAND): Remove.
11778 (HAVE_VALUE): Remove.
11779 (op_to_prio): Update.
11780 (UNARY): Don't alter flags.
11781 (_cpp_parse_expr): want_value used to indicate whether
11782 a number or unary operator is expected next. Distinguish
11783 unary and binary +/-.
11784 (op_as_text): Update for unary operators.
11786 2002-04-25 Richard Henderson <rth@redhat.com>
11789 * c-parse.in (yyoverflow): New.
11791 2002-04-25 Richard Henderson <rth@redhat.com>
11794 * c-common.c (shorten_compare): Simplfy conditions leading to
11795 the generation of a warning.
11797 2002-04-25 Richard Henderson <rth@redhat.com>
11800 * expmed.c (extract_bit_field): Fall through to generic code rather
11801 than aborting on subreg special case.
11803 2002-04-25 David S. Miller <davem@redhat.com>
11805 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11806 for DECL being NULL.
11808 2002-04-25 Steve Christiansen <smc@us.ibm.com>
11810 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11812 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
11814 * c-decl.c (grokdeclarator): Remove outdated ??? note
11815 on invalid declaration of flexible array members.
11817 2002-04-25 Richard Henderson <rth@redhat.com>
11819 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11821 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
11823 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11824 needed by the compiler, even if they are used as global regs.
11826 2002-04-25 Matt Hiller <hiller@redhat.com>
11828 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11830 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11831 of the corresponding functions.
11832 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11835 2002-04-25 Matt Hiller <hiller@redhat.com>
11837 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11839 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11840 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11841 registers, adjust comment accordingly.
11842 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11843 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11844 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11845 for coprocessor registers.
11846 (ADDITIONAL_REGISTER_NAMES): Include
11847 ALL_COP_ADDITIONAL_REGISTER_NAMES.
11849 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11850 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11851 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11852 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11853 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11855 (mips_char_to_class): Adjust comment to include coprocessor
11856 constraint letters.
11858 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11860 (mips_reg_names, mips_regno_to_class): Include coprocessor
11862 (mips_sw_reg_names): Ditto, make non-static.
11863 (mips_move_1word): Handle moves to and from coprocessor registers.
11864 (mips_move_2words): Handle moves to and from coprocessor
11866 (mips_class_max_nregs, mips_register_move_cost): Handle
11867 coprocessor register classes.
11868 (override_options): Initialize mips_char_to_class and
11869 mips_hard_regno_mode_ok properly for coprocessor registers.
11871 * config/mips/mips.md (movdi_internal, movdi_internal2,
11872 movsi_internal1, movsi_internal2): Add constraint-sets for
11873 coprocessor registers.
11874 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11875 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11877 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11878 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11880 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11881 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11883 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11884 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11887 * doc/tm.texi: Document feature.
11889 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11891 * integrate.c (function_attribute_inlinable_p): Simplify.
11892 Check the table pointer is not NULL.
11894 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
11896 * doc/c-tree.texi: Fix typo in introduction.
11898 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11900 * c-common.h (c_common_parse_file): Update.
11901 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11902 * c-lex.c (YYDEBUG): Get from c-lex.h.
11903 (c_common_parse_file): Update.
11904 * c-lex.h (YYDEBUG, yydebug): New.
11905 * c-parse.in (YYDEBUG): Get from c-lex.h.
11906 (c_set_yydebug): Remove.
11907 * c-tree.h (c_set_yydebug): Remove.
11908 * langhooks-def.h (lhd_do_nothing_i): New.
11909 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11910 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11911 * langhooks.c (lhd_do_nothing_i): New.
11912 (lhd_set_yydebug): Remove.
11913 * langhooks.h (struct lang_hooks): Update.
11914 * toplev.c (set_yydebug): New.
11915 (compile_file): Update call to parse_file hook.
11916 (decode_d_option): Update.
11918 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11920 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
11922 * loop.c (load_mems): Don't change the interface of called functions.
11924 * calls.c (expand_call): Take current_function_pretend_args_size
11925 into account when setting argblock for sibcalls.
11927 2002-04-24 Matt Hiller <hiller@redhat.com>
11929 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11932 * cpplex.c (skip_line_comment): Process comment one multibyte
11933 character at a time rather than one char at a time, if
11935 (parse_string): Process string one multibyte character at a time
11936 rather than one char at a time, if appropriate.
11937 * c-lex.c (lex_string): Lex and copy multibyte strings
11939 * cpplib.h (cppchar_t): Change to unsigned.
11941 2002-04-24 Richard Henderson <rth@redhat.com>
11944 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11947 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
11949 * sh.c (sh_va_arg): If argument was passed by reference,
11950 dereference the pointer.
11952 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11954 * sh.md (divsi3_i4_media): Use match_operand for input values
11955 rather than hard registers.
11956 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
11957 unnecessarily through hard registers. Keep copies of pseudo
11958 registers outside of the libcall sequence.
11960 * sh.md (casesi_shift_media): Add modes.
11962 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
11965 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11967 * attribs.c (c_common_attribute_table): Move table and handlers
11969 (format_attribute_table, lang_attribute_table,
11970 lang_attribute_common): Remove.
11971 (init_attributes): Replace NULL pointers with pointers to the
11973 (handle_packed_attribute, handle_nocommon_attribute,
11974 handle_common_attribute, handle_noreturn_attribute,
11975 handle_noinline_attribute, handle_always_inline_attribute,
11976 handle_used_attribute, handle_unused_attribute,
11977 handle_const_attribute, handle_transparent_union_attribute,
11978 handle_constructor_attribute, handle_destructor_attribute,
11979 handle_mode_attribute, handle_section_attribute,
11980 handle_aligned_attribute, handle_weak_attribute,
11981 handle_alias_attribute, handle_visibility_attribute,
11982 handle_no_instrument_function_attribute, handle_malloc_attribute,
11983 handle_no_limit_stack_attribute, handle_pure_attribute,
11984 handle_deprecated_attribute, handle_vector_size_attribute,
11985 vector_size_helper): Move to c-common.c.
11986 * c-common.c (c_common_attribute_table,
11987 handle_packed_attribute, handle_nocommon_attribute,
11988 handle_common_attribute, handle_noreturn_attribute,
11989 handle_noinline_attribute, handle_always_inline_attribute,
11990 handle_used_attribute, handle_unused_attribute,
11991 handle_const_attribute, handle_transparent_union_attribute,
11992 handle_constructor_attribute, handle_destructor_attribute,
11993 handle_mode_attribute, handle_section_attribute,
11994 handle_aligned_attribute, handle_weak_attribute,
11995 handle_alias_attribute, handle_visibility_attribute,
11996 handle_no_instrument_function_attribute, handle_malloc_attribute,
11997 handle_no_limit_stack_attribute, handle_pure_attribute,
11998 handle_deprecated_attribute, handle_vector_size_attribute,
11999 vector_size_helper): Move from attribs.c.
12000 * c-common.h (c_common_attribute_table,
12001 c_common_format_attribute_table): New.
12002 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12003 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12004 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
12005 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
12006 (LANG_HOOKS_INITIALIZER): Update.
12007 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
12008 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
12009 * target.h: Update comment.
12010 * tree.c (default_target_attribute_table): Remove.
12011 * tree.h (default_target_attribute_table, format_attribute_table,
12012 lang_attribute_table, lang_attribute_common): Remove.
12014 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12015 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12017 2002-04-24 Jason Merrill <jason@redhat.com>
12019 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
12020 * dwarf2out.c (dwarf_attr_name): Support it.
12021 (gen_array_type_die): Emit it.
12022 (lookup_type_die): No special handling for VECTOR_TYPE.
12023 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
12025 2002-04-24 Richard Henderson <rth@redhat.com>
12027 * config/mips/mips.md (movdi_usd): Renumber.
12029 2002-04-24 David S. Miller <davem@redhat.com>
12032 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
12033 32-bit Sparc and current_function_returns_struct is true.
12035 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12037 * loop.c (canonicalize_condition): Use gen_int_mode.
12039 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
12041 * config/rs6000/altivec.h: Cleanup file. Add non individual
12043 (vec_vaddubm): New.
12044 (vec_vadduhm): New.
12045 (vec_vadduwm): New.
12047 (vec_vaddcuw): New.
12048 (vec_vaddubs): New.
12049 (vec_vaddsbs): New.
12050 (vec_vadduhs): New.
12051 (vec_vadduws): New.
12052 (vec_vaddsws): New.
12062 (vec_vcmpbfp): New.
12063 (vec_vcmpequb): New.
12064 (vec_vcmpequh): New.
12065 (vec_vcmpequw): New.
12066 (vec_vcmpeqfp): New.
12067 (vec_vcmpgefp): New.
12068 (vec_vcmpgtub): New.
12069 (vec_vcmpgtsb): New.
12070 (vec_vcmpgtuh): New.
12071 (vec_vcmpgtsh): New.
12072 (vec_vcmpgtuw): New.
12073 (vec_vcmpgtsw): New.
12074 (vec_vcmpgtfp): New.
12075 (vec_vcmpgefp): New.
12080 (vec_vexptefp): New.
12085 (vec_lde): Add vector float variant.
12088 (vec_vlogefp): New.
12089 (vec_vmaddfp): New.
12090 (vec_vmhaddshs): New.
12112 (vec_vmladduhm): New.
12113 (vec_vmhraddshs): New.
12114 (vec_msumubm): New.
12115 (vec_vmsummbm): New.
12116 (vec_vmsumuhm): New.
12117 (vec_vmsumshm): New.
12118 (vec_vmsumuhs): New.
12119 (vec_vmsumshs): New.
12120 (vec_vmuleub): New.
12121 (vec_vmulesb): New.
12122 (vec_vmuleuh): New.
12123 (vec_vmulesh): New.
12124 (vec_vmuloub): New.
12126 (vec_vmulouh): New.
12127 (vec_vmulosh): New.
12128 (vec_vnmsubfp): New.
12131 (vec_vpkuhum): New.
12132 (vec_vpkuwum): New.
12134 (vec_vpkuhus): New.
12135 (vec_vpkshss): New.
12136 (vec_vpkuwus): New.
12137 (vec_vpkswss): New.
12138 (vec_vpkshus): New.
12139 (vec_vpkswus): New.
12146 (vec_vrsqrtefp): New.
12157 (vec_vspltisb): New.
12158 (vec_vspltish): New.
12159 (vec_vspltisw): New.
12173 (vec_vsububm): New.
12174 (vec_vsubuhm): New.
12175 (vec_vsubuwm): New.
12177 (vec_vsubcuw): New.
12178 (vec_vsububs): New.
12179 (vec_vsubsbs): New.
12180 (vec_vsubuhs): New.
12181 (vec_vsubshs): New.
12182 (vec_vsubuws): New.
12183 (vec_vsubsws): New.
12184 (vec_vsum4ubs): New.
12185 (vec_vsum4sbs): New.
12186 (vec_vsum4shs): New.
12187 (vec_vsum2sws): New.
12188 (vec_vsumsws): New.
12190 (vec_vupkhsb): New.
12191 (vec_vupkhpx): New.
12192 (vec_vupkhsh): New.
12193 (vec_vupklsb): New.
12194 (vec_vupklpx): New.
12195 (vec_vupklsh): New.
12198 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
12201 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
12202 added literals from substracted literals.
12203 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
12204 (fold) [associate]: Preserve MINUS_EXPR if needed.
12206 2002-04-23 Zack Weinberg <zack@codesourcery.com>
12208 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
12211 2002-04-23 Tom Tromey <tromey@redhat.com>
12213 * gcc.c: Added --resource. For PR java/6314.
12215 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12217 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
12218 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
12221 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12223 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
12225 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12227 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
12229 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
12230 (ix86_expand_clrstr): Fix typo.
12231 * loop.c (gen_load_of_final_value): New.
12232 (loop_givs_rescan, strength_reduce, check_dbra_loop):
12235 2002-04-23 Roger Sayle <roger@eyesopen.com>
12237 * builtins.c (builtin_memset_gen_str): New function.
12238 (expand_builtin_memset): Optimize the case of constant length, but
12241 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
12243 * config/rs6000/altivec.h (vec_step): Remove extraneous
12245 (vec_ctu): Cast return.
12247 2002-04-23 Alan Modra <amodra@bigpond.net.au>
12250 * function.h: (struct function): Add profile_label_no field.
12251 (current_function_profile_label_no): Define.
12252 * function.c: (profile_label_no): New static var.
12253 (expand_function_start): Increment it, and copy to
12254 current_function_profile_label_no.
12255 * output.h (profile_label_no): Delete.
12256 * final.c (profile_label_no): Delete.
12257 (profile_function): Use current_function_profile_label_no.
12258 (final_end_function): Don't increment profile_label_no here.
12259 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
12260 profile_label_no with current_function_profile_label_no.
12261 * config/pa/pa.c (current_function_number): Delete.
12262 (pa_output_function_prologue): Don't output profile label here.
12263 (hppa_profile_hook): Use label_no param rather than
12264 current_function_number.
12265 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
12266 * config/pa/pa.h: .. here.
12267 (FUNCTION_PROFILER): Output profile label here.
12269 2002-04-22 Eric Christopher <echristo@redhat.com>
12271 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
12272 patch of 2002-04-09 due to binutils issues.
12273 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
12275 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12277 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
12278 constraint to 'o' for m=r and r=m alternatives.
12279 ("*movv8hi_internal1"): Same.
12280 ("*movv16qi_internal1"): Same.
12281 ("*movv4sf_internal1"): Same.
12283 2002-04-22 Janis Johnson <janis187@us.ibm.com>
12285 * rtl.h (RTX_FLAG): New macro.
12286 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
12287 * final.c (alter_subreg): Use macro to access rtx flag.
12288 * integrate.c (copy_rtx_and_substitute): Use new access macro.
12289 * print-rtl.c (print_rtx): Use new access macro.
12291 * cse.c (insert): Check rtx code before accessing flag.
12293 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
12294 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
12295 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
12296 convert_const_symbol_ref, make_canonical, make_alternative_compare,
12297 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
12298 simplify_test_exp, optimize_attrs, simplify_by_exploding,
12299 find_and_mark_used_attributes, unmark_used_attributes,
12300 add_values_to_cover, simplify_with_current_value,
12301 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
12302 copy_rtx_unchanging, main): Use new access macros.
12304 2002-04-22 Tom Rix <trix@redhat.com>
12306 * expmed.c (init_expmed): Generate shifted constant once.
12308 2002-04-22 Zack Weinberg <zack@codesourcery.com>
12310 * c-lex.c (lex_charconst): Call convert to get constant in
12311 proper type; don't just smash the type field.
12314 * config.gcc: Add list of obsolete configurations. Disallow
12315 building these without --enable-obsolete.
12316 * doc/install.texi: Document --enable-obsolete and obsoletion
12317 policy. Mention obsoletion of individual targets in
12318 appropriate places.
12320 2002-04-22 Richard Henderson <rth@redhat.com>
12322 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
12324 2002-04-22 Mark Mitchell <mark@codesourcery.com>
12327 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
12328 (walk_fixup_memory_subreg): Likewise.
12329 (fixup_var_refs_insn): Adjust accordingly.
12330 (fixup_var_refs_1): Likewise.
12332 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
12334 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
12335 LIBPATH_ARCH64_SPEC): Define.
12336 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
12337 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
12338 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
12339 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
12341 2002-04-22 Joel Sherrill <joel@OARcorp.com>
12343 * gthr-rtems.h: Correct prototypes to remove warnings.
12345 2002-04-22 Richard Henderson <rth@redhat.com>
12348 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
12350 * gcse.c (free_insn_expr_list_list): New.
12351 (clear_modify_mem_tables): Use it. Fix bit set usage.
12352 (canon_list_insert): Use EXPR_LISTs for expressions.
12353 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
12355 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
12357 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
12358 file change and include code to _cpp_pop_buffer.
12359 * cpphash.h (struct pending_option): Predeclare.
12360 (struct cpp_reader): New member next_include_file.
12361 (_cpp_pop_file_buffer): Update.
12362 (_cpp_push_next_buffer): Update, rename.
12363 * cppinit.c (cpp_destroy): Free include chain and pending here.
12364 (cpp_finish_options): Simplify.
12365 (_cpp_push_next_buffer): Rename and clean up.
12366 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
12368 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
12370 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12372 * config/rs6000/altivec.h (vec_xor): Add variant for both args
12373 being vector signed int.
12375 (vec_xor): Add variant for both args being vector signed char.
12376 Remove redundant variant.
12379 2002-04-21 David S. Miller <davem@redhat.com>
12381 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
12382 compare mode in output RTL.
12384 2002-04-22 David Edelsohn <edelsohn@gnu.org>
12386 * config/rs6000/rs6000.c (rs6000_override_options): Correct
12387 style and formatting of previous patch.
12389 2002-04-22 Alan Modra <amodra@bigpond.net.au>
12391 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
12392 flag_pic for ABI_AIX.
12394 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12396 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
12397 * cppfiles.c (read_include_file): Similarly.
12398 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
12399 uxstrdup ustrchr, ufputs): Similarly.
12400 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
12401 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
12402 cpp_ideq, parse_identifier, parse_number): Similarly.
12403 * cpplib.c (struct directive, dequote_string, D, run_directive,
12404 cpp_push_buffer): Similarly.
12405 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
12406 _cpp_create_definition, check_trad_stringification,
12407 cpp_macro_definition): Similarly.
12409 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12411 * cppmacro.c (funlike_invocation_p): Don't step back
12414 2002-04-21 David Edelsohn <edelsohn@gnu.org>
12416 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
12419 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
12421 * doc/invoke.texi: Remove Chill references.
12422 * doc/gcc.texi: Update last modified date.
12424 2002-04-20 Kazu Hirata <kazu@hxi.com>
12426 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
12427 push and pop. Replace add.l with add.w.
12429 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12431 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
12432 multiply instructions for H8/300H case.
12434 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12436 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
12437 Bum three instructions from each routine.
12439 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
12441 * Makefile.in: Update.
12442 * decl.c (push_c_function_context, pop_c_function_context,
12443 mark_c_function_context): Rename for consistency.
12444 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
12445 * c-tree.h (push_c_function_context, pop_c_function_context,
12446 mark_c_function_context): Rename for consistency.
12447 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12448 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12449 * function.c (init_lang_status, save_lang_status,
12450 restore_lang_status, mark_lang_status, free_lang_status):
12451 Move to langhooks.h.
12452 (push_function_context_to, pop_function_context_from,
12453 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
12455 * function.h (init_lang_status, save_lang_status,
12456 restore_lang_status, mark_lang_status, free_lang_status):
12457 Move to langhooks.h.
12458 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
12459 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
12460 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
12461 LANG_HOOKS_FUNCTION_INITIALIZER): New.
12462 (LANG_HOOKS_INITIALIZER): Update.
12463 (lhd_do_nothing_f): New.
12464 * langhooks.h (struct lang_hooks_for_functions): New.
12465 (struct lang_hooks): New hooks.
12466 * langhooks.c (lhd_do_nothing_f): New.
12468 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12469 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12471 2002-04-19 David S. Miller <davem@redhat.com>
12473 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12474 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
12476 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12478 PR optimization/3756
12479 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
12480 x = ((int) y < 0) ? cst1 : cst2.
12482 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12485 * function.c: Reapply patch for c/6358.
12486 (expand_function_end): Copy decl_rtl's mode, not
12487 current_function_return_rtx mode.
12489 2002-04-19 Joel Sherrill <joel@OARcorp.com>
12491 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
12494 2002-04-19 Tom Tromey <tromey@redhat.com>
12496 * doc/install.texi (Specific): Update status of Solaris 2.8.
12497 For PR libgcj/6158.
12499 2002-04-19 Andreas Schwab <schwab@suse.de>
12501 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
12502 (PUT_REAL): Restore old definition.
12504 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
12505 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12507 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
12508 binutils 2.11.2 and higher generate smaller binaries than Sun's
12511 2002-04-19 Mark Mitchell <mark@codesourcery.com>
12514 * toplev.c (rest_of_compilation): Do not defer functions for which
12515 TREE_SYMBOL_REFERENCED has already been set.
12517 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
12519 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
12522 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
12524 * builtins.c: Include langhooks.h.
12525 (lang_type_promotes_to): Remove.
12526 (expand_builtin_va_arg): Use new hook.
12527 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
12528 (simple_type_promotes_to): Move to c-typeck.c.
12529 * c-common.h (simple_type_promotes_to): Remove.
12530 * c-decl.c (duplicate_decls, grokdeclarator): Update.
12531 * c-format.c: Include langhooks.h.
12532 (check_format_types): Update.
12533 * c-tree.h (c_type_promotes_to): New.
12534 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
12535 (type_lists_compatible_p): Update.
12536 * langhooks-def.h (lhd_type_promotes_to): New.
12537 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
12538 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12539 * langhooks.c (lhd_type_promotes_to): New.
12540 * langhooks.h (struct lang_hooks_for_types): New hook.
12541 * tree.h (lang_type_promotes_to): Remove.
12543 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12545 2002-04-18 Richard Henderson <rth@redhat.com>
12547 * function.c: Revert patch for c/6358.
12549 2002-04-18 Richard Henderson <rth@redhat.com>
12551 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12552 blocks. Handle multiple references to the TRAP block. Handle
12553 non-adjacent THEN and OTHER blocks.
12555 2002-04-18 Richard Henderson <rth@redhat.com>
12557 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12558 crash with no type for by-mode libcalls.
12560 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
12562 2002-04-18 Bob Wilson <bob.wilson@acm.org>
12564 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12565 __xtensa_nonlocal_goto): Use a syscall instructions to flush
12566 the register windows.
12568 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12570 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12571 appropriate. Document need for extended precision even when
12572 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
12573 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
12574 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
12575 instead of relying on later syntax error when REAL_WIDTH > 5.
12576 * real.c: Define NE based only on whether or not we have a
12577 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12578 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
12579 define GET_REAL and PUT_REAL as simple memcpy operations; no
12580 need to byteswap or round.
12581 Use #error instead of #ifdef-ing out the entire file, for
12582 prompt error detection.
12584 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12586 2002-04-18 David S. Miller <davem@redhat.com>
12588 * config/sparc/sparc.h (BRANCH_COST): Define.
12590 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12593 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
12595 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12596 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12597 propagate_block calls after relaxation loop using new variable
12598 stabilized_prop_flags.
12600 2002-04-18 Richard Henderson <rth@redhat.com>
12602 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12603 (ia64_va_arg): Expect variable sized types by reference.
12604 * config/ia64/ia64-protos.h: Update.
12605 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
12606 ia64_function_arg_pass_by_reference.
12608 2002-04-18 Richard Henderson <rth@redhat.com>
12610 * ifcvt.c: Include except.h.
12611 (block_has_only_trap): Break out from find_cond_trap.
12612 (find_cond_trap): Use it. Always delete the trap block.
12613 (merge_if_block): Allow then block null. Be less simplistic about
12614 what insns can end a block.
12615 * Makefile.in (ifcvt.o): Depend on except.h.
12617 * config/ia64/ia64.md (trap, conditional_trap): New.
12619 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12622 * function.c (assign_parms): Assign hard current_function_return_rtx
12624 (expand_function_end): ...not here.
12626 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
12628 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12629 * c-tree.h (c_incomplete_type_error): New.
12630 * c-typeck.c (require_complete_type, build_component_ref): Update.
12631 (incomplete_type_error): Rename.
12632 * langhooks-def.h (lhd_incomplete_type_error): New.
12633 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12634 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12635 * langhooks.c (lhd_incomplete_type_error): New.
12636 * langhooks.h (struct lang_hooks_for_types): New hook.
12637 * tree.c (size_in_bytes): Use new hook.
12638 * tree.h (incomplete_type_error): Remove.
12640 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12642 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12644 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12645 TARGET_FLOAT_FORMAT blocks.
12647 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12649 * doc/install.texi (Downloading the source): Do not mention Chill
12650 any longer, but mention Ada.
12651 (Configuration): Do not mention Chill any longer.
12653 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
12655 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12657 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
12659 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12662 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12664 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12665 instead of unsigned_type.
12667 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12669 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12670 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12673 2002-04-18 Bernd Schmidt <bernds@redhat.com>
12675 * attribs.c (vector_type_node_list): New static variable.
12676 (handle_vector_size_attribute): Use it to avoid generating a
12677 new type node each time we are called.
12679 * combine.c (subst): Avoid trying to make a vector mode subreg of
12680 an integer constant.
12681 (gen_lowpart_for_combine): Likewise.
12683 2002-04-18 Roger Sayle <roger@eyesopen.com>
12684 Jakub Jelinek <jakub@redhat.com>
12686 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12687 for integer constant c (if x has unsigned type or sign bit is not
12688 set in c). This folds the zero/sign extension into the bit-wise and
12691 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12694 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12697 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
12699 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12701 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
12703 * gcc.c (read_specs): Detect and fail if an attempt is made to
12704 rename a spec string to an already existing string.
12706 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12708 * config/s390/s390.c (legitimize_pic_address): Do not generate
12709 illegal address constant without CONST.
12711 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12713 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12714 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12716 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12718 PR optimization/6305
12719 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12720 to make sure previous reloads are taken into account. Generate
12721 better code if one operand is an in-range immediate constant.
12723 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
12725 * doc/install.texi (Building): libgcj requires GNU make.
12727 2002-04-17 Jakub Jelinek <jakub@redhat.com>
12730 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12731 even if hard quad and register is not floating.
12732 (movtf reg<-mem split): Disallow splitting if hard quad and
12733 register is floating.
12734 (movtf mem<-reg split): Likewise.
12735 * config/sparc/sparc.c (fp_register_operand): New predicate.
12736 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12738 2002-04-17 Zack Weinberg <zack@codesourcery.com>
12740 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12741 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12742 (unprotoize.o): Ditto. Build from protoize.c. Define
12743 UNPROTOIZE on command line.
12744 * protoize.c: Include cppdefault.h. Delete include_defaults.
12745 (in_system_include_dir): Use cpp_include_defaults (defined in
12747 * unprotoize.c: Delete file.
12749 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
12751 * config/rs6000/altivec.h (vec_ld): Add array variants.
12755 2002-04-17 Alan Matsuoka <alanm@redhat.com>
12756 Aldy Hernandez <aldyh@redhat.com>
12758 * config/rs6000/altivec.h: Define __ALTIVEC__.
12763 (vec_vmaddfp): New.
12765 Add parentheses to all macro arguments.
12767 2002-04-16 Richard Henderson <rth@redhat.com>
12770 * except.c (remove_eh_handler): Insert inner regions at beginning
12771 of sibling chain. Refactor expressions.
12773 2002-04-16 Richard Henderson <rth@redhat.com>
12775 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12776 * config/sparc/sol2-gas-bi.h: New file.
12777 * config.gcc (sparc*-solaris): Add it as needed.
12778 * configure.in (AS_SPARC64_FLAG): Remove check.
12779 * config.in, configure: Regenerate.
12781 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12783 2002-04-16 Richard Henderson <rth@redhat.com>
12785 * config/mips/mips.c (override_options): Don't override N32 for
12789 * config/mips/mips.md (can_delay): Split out of existing define_delays.
12790 (HILO_delay): Set can_delay false.
12792 2002-04-16 Dale Johannesen <dalej@apple.com>
12794 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12795 instruction addresses.
12796 (rs6000_output_function_epilogue): Likewise.
12798 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
12800 * c-parse.in (poplevel, compstmt_start,
12801 compstmt_primary_start): Add ending ';', in accordance
12804 2002-04-16 Richard Henderson <rth@redhat.com>
12806 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12807 Adjust tm_file order to get TARGET_DEFAULT set properly.
12808 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12809 * doc/install.texi (sparc-solaris): Update.
12811 2002-04-16 Dale Johannesen <dalej@apple.com>
12813 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12814 comparison operands do not match each other or if modes of
12815 conditions do not match result.
12817 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
12820 * config/s390/s390.md (mulsidi3): Set both subregs of the
12821 multiword register.
12823 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
12825 * config/rs6000/altivec.h (vec_addc): Type check.
12827 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12830 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12832 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12834 2002-04-15 Richard Henderson <rth@redhat.com>
12836 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12837 call_really_used_regs too.
12839 2002-04-15 Richard Henderson <rth@redhat.com>
12841 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12843 2002-04-15 David S. Miller <davem@redhat.com>
12845 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12846 as being CLOBBERed.
12848 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12851 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12852 CONST_VECTOR is { 0, ... 0 }.
12854 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
12856 * doc/install.texi (Installing GCC: Configuration): Clarify
12857 the only supported ways to configure gcc.
12859 2002-04-15 Roland McGrath <roland@frob.com>
12861 * config.gcc (alpha*-*-gnu*): New target configuration.
12862 * config/alpha/gnu.h: New file for it.
12863 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12865 2002-04-16 Mark Mitchell <mark@codesourcery.com>
12867 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12868 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12869 * tree.h (expand_start_stmt_expr): Update prototype.
12870 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12871 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12872 on the STMT_EXPR created for the inline function.
12874 2002-04-15 Richard Henderson <rth@redhat.com>
12876 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12877 config/i386/linux-aout.h, config/i386/linux-oldld.h,
12878 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12879 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12880 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12881 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12882 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12883 Define __gnu_linux__, not gnu_linux.
12884 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12886 2002-04-15 Mark Mitchell <mark@codesourcery.com>
12888 Remove Chill front end.
12889 * gcc.c (default_compilers): Remove Chill entries.
12890 * ch: Remove directory.
12891 * doc/frontends.texi: Remove information about Chill.
12892 * doc/sourcebuild.texi: Likewise.
12893 * doc/standards.texi: Likewise.
12895 2002-04-15 Douglas B Rupp <rupp@gnat.com>
12897 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12898 (LONGLONG_STANDALONE): Define.
12900 2002-04-15 David S. Miller <davem@redhat.com>
12902 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12903 Call emit_library_call with LCT_NORMAL.
12904 (sparc_initialize_trampoline): Use LCT_foo instead of
12905 magic constant in emit_library_call invocations.
12906 (sparc64_initialize_trampoline): Likewise.
12907 (sparc_profile_hook): Likewise.
12908 * config/sparc/sparc.md: Likewise.
12910 * config/sparc/sparc.c (sparc_extra_constraint_check):
12911 Fix type of argument 'c'.
12912 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12915 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
12917 * diagnostic.h (output_buffer_state): Redefine.
12918 (output_format_decoder): New macro.
12919 (output_prefixing_rule): Likewise.
12920 (output_line_cutoff): Likewise.
12921 (diagnostic_format_decoder): Adjust.
12922 (diagnostic_prefixing_rule): Likewise.
12923 (diagnostic_line_cutoff): Likewise.
12924 (diagnostic_state): Likewise.
12925 (diagnostic_kind_count): Likewise.
12926 (diagnostic_buffer): Now a macro.
12928 * diagnostic.c (diagnostic_buffer): Remove definition.
12929 (output_is_line_wrapping): Adjust.
12930 (set_real_maximum_length): Likewise.
12931 (output_set_maximum_length): Likewise.
12932 (init_output_buffer): Likewise.
12933 (lhd_print_error_function): Likewise.
12934 (output_do_verbatim): Likewise.
12936 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
12938 * cpperror.c (print_location): Don't print include chain
12940 (cpp_begin_message): Update to use DL_ macros.
12941 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12942 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12943 cpp_notice, cpp_notice_from_errno): Remove.
12944 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12947 * cppexp.c (CPP_ICE): Remove.
12948 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12949 lex, integer_overflow, _cpp_parse_expr): Update.
12950 * cppfiles.c (read_include_file, find_include_file,
12951 handle_missing_header, _cpp_read_file, remap_filename): Update.
12952 * cpphash.h (enum error_type): Remove.
12953 (_cpp_begin_message): Update.
12954 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
12955 cpp_handle_option, cpp_post_options): Update.
12956 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
12957 skip_whitespace, parse_identifier, parse_slow, parse_string,
12958 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
12959 cpp_interpret_charconst): Update.
12960 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
12961 lex_macro_node, do_undef, glue_header_name, parse_include,
12962 do_include_common, read_flag, do_line, do_linemarker, do_ident,
12963 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
12964 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
12965 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
12966 _cpp_pop_buffer, do_diagnostic): Update.
12967 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
12968 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
12969 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12970 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12971 cpp_notice, cpp_notice_from_errno): Remove.
12972 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12975 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
12976 collect_args, enter_macro_context, save_parameter, parse_params,
12977 _cpp_create_definition, check_trad_stringification,
12978 cpp_macro_definition): Update.
12979 * cppmain.c (cpp_preprocess_file): Update.
12980 * fix-header.c (read_scan_file): Update.
12982 2002-04-14 Andreas Schwab <schwab@suse.de>
12984 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
12986 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12988 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
12990 2002-04-13 Mark Mitchell <mark@codesourcery.com>
12992 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
12995 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
12997 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
12999 2002-04-13 Joel Sherrill <joel@OARcorp.com>
13001 * config/sparc/t-elf: Enable v8 multilibs. Impacts
13002 sparc-elf and sparc-rtems targets.
13004 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13006 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
13007 defined, and __gnu_hurd__ wherever __GNU__ is defined.
13008 * arm/linux-elf.h: Likewise.
13009 * cris/aout.h: Likewise.
13010 * cris/linux.h: Likewise.
13011 * i370/linux.h: Likewise.
13012 * i386/gnu.h: Likewise.
13013 * i386/linux-aout.h: Likewise.
13014 * i386/linux-oldld.h: Likewise.
13015 * i386/linux.h: Likewise.
13016 * i386/linux64.h: Likewise.
13017 * ia64/linux.h: Likewise.
13018 * m68k/linux-aout.h: Likewise.
13019 * m68k/linux.h: Likewise.
13020 * mips/linux.h: Likewise.
13021 * pa/pa-linux.h: Likewise.
13022 * pj/linux.h: Likewise.
13023 * rs6000/sysv4.h: Likewise.
13024 * s390/linux.h: Likewise.
13025 * sh/linux.h: Likewise.
13026 * sparc/linux-aout.h: Likewise.
13027 * sparc/linux.h: Likewise.
13028 * sparc/linux64.h: Likewise.
13029 * xtensa/linux.h: Likewise.
13031 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
13033 * stmt.c (check_unique_operand_names): Expect operand names to
13034 be strings rather than identifiers. Use simple_cst_equal to
13036 (resolve_operand_name_1): Make same identifier to string change here.
13037 * c-parse.in (asm_operand): Convert a named operand into a string.
13038 * cp/parse.y (asm_operand): Likewise.
13040 2002-04-13 Andreas Schwab <schwab@suse.de>
13042 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
13044 2002-04-12 Mark Mitchell <mark@codesourcery.com>
13046 Revert these changes:
13048 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13051 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13053 2002-04-12 Richard Henderson <rth@redhat.com>
13055 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
13056 (sparc*-*-solaris): Clean up header files.
13057 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
13058 and plan on generating 64-bit code.
13059 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
13060 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
13061 * config/sparc/sol2-sld-64.h: Rename ...
13062 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
13063 for AS_SPARC64_FLAG not defined.
13064 * config/sparc/sol2-gld-bi.h: New.
13065 * config/sparc/sol2-sld.h: Remove.
13066 * config/sparc/sol26-sld.h: New.
13067 * config/sparc/sol2.h: Tidy comments.
13068 * doc/install.texi: Document sparc-solaris configury changes.
13070 2002-04-12 Richard Henderson <rth@redhat.com>
13072 * recog.c (offsettable_address_p): Match the logic in adjust_address.
13074 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
13075 in 64-bit mode only. Use only for 32-bit or MEDLOW.
13077 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13079 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
13081 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
13083 * pa.c (pa_can_combine_p): Call extract_insn before calling
13084 constrain_operands.
13086 2002-04-12 Douglas B Rupp <rupp@gnat.com>
13088 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
13089 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
13090 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13091 (CPP_PREDEFINES): Handle __declspec.
13092 * config/i386/t-interix (USER_H): Remove.
13094 2002-04-12 DJ Delorie <dj@redhat.com>
13096 * integrate.c (compare_blocks): Make comparisons safe for when
13097 sizeof(int) < sizeof(char *).
13098 (find_block): Likewise.
13100 2002-04-12 Jan Hubicka <jh@suse.cz>
13101 David Edelsohn <edelsohn@gnu.org>
13103 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
13105 (symbol_ref_operand): New.
13106 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
13107 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
13109 2002-04-12 Andreas Schwab <schwab@suse.de>
13111 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
13112 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
13113 overrides the definition in config/svr4.h.
13115 2002-04-12 Eric Norum <eric.norum@usask.ca>
13117 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
13118 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
13119 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
13120 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
13121 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
13122 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
13123 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
13124 definitions to config/rtems.h and make the targets more similar.
13126 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13128 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
13129 POINTERS_EXTEND_UNSIGNED.
13130 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
13131 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
13133 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
13136 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
13138 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
13139 depends on TARGET_SHMEDIA, not TARGET_SH5.
13141 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
13143 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
13144 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
13146 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
13148 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
13151 2002-04-12 Andreas Schwab <schwab@suse.de>
13153 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
13155 2002-04-12 Richard Henderson <rth@redhat.com>
13158 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
13160 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
13161 modes spanning multiple hard regs.
13163 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
13165 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13167 * pa.c (pa_output_function_prologue): Don't accumulate the total
13168 number of code bytes when using TARGET_64BIT, or gas, SOM and not
13169 the portable runtime.
13170 (output_deferred_plabels): Handle 64bit plabels.
13171 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
13172 generating pic code using the GAS assembler for object formats that
13173 are not SOM (ie., ELF32 and ELF64).
13174 (output_millicode_call): Check attribute type if attribute length is 28.
13175 Likewise use $PIC_pcrel$0. Only call get_attr_length and
13176 dbr_sequence_length once.
13177 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
13178 dbr_sequence_length once.
13179 * pa.h (TARGET_SOM): Define if not defined.
13180 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
13181 with GAS and not SOM.
13182 (jump, call_internal_reg, call_value_internal_reg): Likewise.
13183 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
13185 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13187 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
13188 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
13189 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
13190 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
13191 elfos.h and dbxelf.h values are fine now.
13192 * config/i386/freebsd.h, config/alpha/freebsd.h
13193 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
13195 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13197 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
13198 or set Acpu or Amachine. Reformat.
13199 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13201 (LINK_SPEC): Do not need to undef.
13202 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
13203 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
13204 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13206 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
13207 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
13208 (LINK_SPEC): Do not need to undef.
13209 (DONT_USE_BUILTIN_SETJMP): Do not define.
13210 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
13211 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
13212 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
13213 Remove trailing spaces.
13214 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
13215 __ELF__, or set Acpu or Amachine. Reformat.
13216 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13219 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13221 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
13222 all other *-*-freebsd* targets.
13224 2002-04-11 Richard Henderson <rth@redhat.com>
13226 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
13228 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13230 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
13231 Include {cpu}/{cpu}.h thru tm_file.
13232 (alpha*-*-linux*ecoff): Remove target.
13233 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
13234 (LINK_SPEC): Remove, is not OS independent.
13235 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
13236 (LINK_SPEC): Do not need to #undef any longer.
13237 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
13239 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
13241 (LINK_SPEC): Moved here from alpha/elf.h.
13242 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
13243 SUB_CPP_PREDEFINES.
13244 * config/alpha/linux-ecoff.h: Remove.
13245 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
13246 (CPP_SPEC): Define _POSIX_SOURCE as needed.
13247 (CPP_SUBTARGET_SPEC): Do not define.
13248 (LINK_SPEC): Do not need to #undef any longer.
13249 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
13250 * config/alpha/vms.h: Likewise.
13252 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
13254 * doc/extend.texi: Remove old claim that typedefs cannot have
13255 an alignment attribute.
13257 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13259 PR optimization/6177
13260 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
13261 bitpos is 0 and bitsize CONCAT size.
13263 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13266 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
13268 2002-04-10 David O'Brien <obrien@FreeBSD.org>
13270 * config/alpha/freebsd.h: Minor reformatting.
13271 (CPP_SPEC): Define ELF and add cpp_subtarget.
13272 (ASM_SPEC): No longer needed.
13274 2002-04-11 Richard Henderson <rth@redhat.com>
13276 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
13277 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
13278 (dimode mem/zero splitter): New.
13280 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
13282 * config/cris/cris.c (cris_override_options): Tweak error message
13283 for PIC not implemented.
13285 * config/cris/cris.h: Tweak comments related to parameter-passing.
13287 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
13289 2002-04-10 Richard Henderson <rth@redhat.com>
13291 * except.c (add_ehl_entry): Allow duplicates after landing pad
13294 2002-04-10 David Edelsohn <edelsohn@gnu.org>
13296 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
13298 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
13300 * c-decl.c (c_init_decl_processing): Move generation of
13301 decls for g77_integer_type_node and friends from here ...
13302 * c-common.c (c_common_nodes_and_builtins): ... to here.
13304 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
13306 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
13307 is only used as frame pointer when frame_pointer_needed is true.
13309 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
13312 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
13313 for the fact that the pool entry uses two words.
13314 (movdf_hard_insn): Similarly. Also, ADR instruction can span
13316 (movdf_soft_insn): Similarly.
13317 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
13318 for the fact that the pool entry uses three words.
13320 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
13322 * config/mips/mips.c (mips_va_arg): When using the struct version
13323 of the EABI va_list, allow arguments in the register save area to
13324 take up less room than a stack argument.
13326 2002-04-10 Richard Henderson <rth@redhat.com>
13328 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
13329 if EXPAND_INITIALIZER.
13331 2002-04-09 Richard Henderson <rth@redhat.com>
13333 * config/alpha/alpha.md (movdi_er_maybe_g): New.
13334 * config/alpha/alpha.c (alpha_expand_mov): Use it.
13336 2002-04-10 Alan Modra <amodra@bigpond.net.au>
13338 PR optimization/6233
13339 * rtlanal.c (pure_call_p): New function.
13340 * rtl.h (pure_call_p): Declare.
13341 * loop.c (prescan_loop): Use it to set has_nonconst_call.
13342 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
13344 2002-04-09 Eric Christopher <echristo@redhat.com>
13346 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
13347 information to .comm directive.
13349 2002-04-09 Richard Henderson <rth@redhat.com>
13352 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
13354 2002-04-09 Richard Henderson <rth@redhat.com>
13356 * basic-block.h (flow_delete_block_noexpunge): Declare.
13357 (expunge_block_nocompact): Declare.
13358 * cfg.c (expunge_block_nocompact): Split out from ...
13359 (expunge_block): ... here.
13360 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
13361 (flow_delete_block_noexpunge): Split out from ...
13362 (flow_delete_block): ... here.
13363 * cfgcleanup.c (delete_unreachable_blocks): Compact while
13364 removing dead blocks.
13365 * except.c (exception_handler_labels): Remove.
13366 (exception_handler_label_map): New.
13367 (struct eh_region): Add aka member.
13368 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
13369 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
13370 (for_each_eh_label, for_each_eh_label_1): New.
13371 (init_eh): Register exception_handler_label_map.
13372 (free_eh_status): Use free_region.
13373 (find_exception_handler_labels): Use the map, not the list.
13374 (remove_exception_handler_label): Likewise.
13375 (maybe_remove_eh_handler): Likewise.
13376 (remove_eh_handler): Use the region aka bitmap.
13377 * except.h (exception_handler_labels): Remove.
13378 (for_each_eh_label): Declare.
13379 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
13380 * loop.c (invalidate_loops_containing_label): New.
13381 (find_and_verify_loops): Use it. Use for_each_eh_label.
13382 * sched-rgn.c (is_cfg_nonregular): Use
13383 current_function_has_exception_handlers.
13385 2002-04-09 Richard Henderson <rth@redhat.com>
13387 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
13388 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
13389 Do not return changed status.
13390 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
13391 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
13392 New functions that do return changed status.
13393 * sbitmap.h: Update decls.
13394 * gcse.c, lcm.c: Use _cg functions as needed.
13396 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
13398 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
13399 (sh64-*-elf*, sh-*-rtemself*): Likewise.
13400 * config/sh/embed_bb.c: New file.
13401 * config/sh/embed-elf.h: New file.
13402 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
13403 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
13404 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13406 (SUBTARGET_CPP_PTR_SPEC): Don't define.
13407 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
13408 Add subtarget_asm_endian_spec.
13409 (ASM_SPEC): Use subtarget_asm_endian_spec.
13410 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
13411 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
13412 (WCHAR_UNSIGNED): Define.
13413 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
13414 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13415 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
13417 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
13418 (sh_adjust_cost): Likewise.
13419 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13421 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
13422 (WCHAR_TYPE_SIZE): Likewise.
13423 (ASM_SPEC): Use subtarget_asm_endian_spec.
13424 (SH_ELF_WCHAR_TYPE): #undef/ #define.
13425 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
13426 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
13427 (MAX_WCHAR_TYPE_SIZE): Don't #define .
13428 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
13429 (USER_LABEL_PREFIX): Don't #undef /#define .
13430 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13431 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
13432 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
13433 (ASM_SPEC): Likewise.
13434 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
13435 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
13436 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
13437 (LIB2FUNCS_EXTRA): Define.
13438 * t-sh64 (LIB2FUNCS_EXTRA): Define.
13439 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
13440 (LIB1ASMFUNCS_CACHE): Define.
13441 (LIB2FUNCS_EXTRA): Redefine empty.
13443 2002-04-08 Richard Henderson <rth@redhat.com>
13445 * reorg.c (get_branch_condition): Use reversed_comparison_code.
13447 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13449 * config/m68hc11/larith.asm (__map_data_section): Fix condition
13450 and optimize for size.
13451 (__do_global_ctors): Fix pointer comparison.
13452 (__do_global_dtors): Likewise.
13454 2002-04-09 David S. Miller <davem@redhat.com>
13456 * config/sparc/sparc.c (sparc_extra_constraint_check): New
13457 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
13458 allow reloading pseudos.
13459 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
13460 * config/sparc/sparc-protos.h: Declare it.
13462 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
13463 unsigned comparison warning.
13464 (output_restore_regs): Mark leaf_function as unused.
13466 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13468 * expr.c (is_aligning_offset): New function.
13469 (expand_expr, case COMPONENT_EXPR): Call it.
13471 2002-04-08 David S. Miller <davem@redhat.com>
13474 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
13476 Make init_priority work on Sparc when using GNU ld.
13477 * config/sparc/linux.h, config/sparc/linux64.h,
13478 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
13479 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
13480 * config/sparc/sol2-gld.h: New file to do the same.
13481 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
13482 sparc/sol2-gld.h to tm_file.
13484 PR optimization/4328
13485 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
13486 * doc/md.texi: Document it.
13487 * config/sparc/sparc.md (movdi_insn_sp64_novis,
13488 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
13489 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
13490 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
13491 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
13493 2002-04-08 Andreas Jaeger <aj@suse.de>
13495 * stmt.c (expand_asm_operands): Revert last patch from Richard
13498 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13500 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
13501 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
13503 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13505 * doc/contrib.texi (Contributors): Add David O'Brien.
13507 2002-04-08 Alan Modra <amodra@bigpond.net.au>
13509 * configure.in (auto-build.h): Use target_alias and build_alias
13510 when running configure.
13511 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
13512 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
13513 * configure: Regenerate.
13515 2002-04-07 David S. Miller <davem@redhat.com>
13517 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
13519 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13522 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
13523 generating 32-bit pic code.
13525 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
13527 * cppinit.c (cpp_create_reader): Initialize
13528 discard_comments_in_macro_exp.
13529 (COMMAND_LINE_OPTIONS): Add "-CC" option.
13530 (cpp_handle_option): Handle "-CC" option.
13531 * cpplex.c (save_comment): If saving a C++ comment in
13532 a directive, convert it to a C comment.
13533 (_cpp_lex_direct): Pass second comment start character to
13534 save_comment to indicate comment type.
13535 * cpplib.c (_cpp_handle_directive): If processing
13536 a "#define" directive and discard_comments_in_macro_exp
13537 is false, re-enable saving of comments.
13538 (lex_macro_node): If discard_comments_in_macro_exp is false,
13539 discard any comments before the macro identifier.
13540 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
13542 * cppmacro.c (cpp_get_token): If expanding a macro while
13543 processing a directive, discard any comments we might encounter.
13544 (parse_params): If discard_comments_in_macro_exp is false,
13545 ignore comments in the macro parameter list.
13546 * gcc.c (cpp_unique_options): Add "-CC" option.
13547 (option_map): Map "--comments-in-macros" to "-CC".
13548 * doc/cppopts.texi: Document "-CC" option.
13549 * f/lang-specs.h: Add "-CC" option.
13550 * testsuite/gcc.dg/cpp/maccom1.c: New test.
13551 * testsuite/gcc.dg/cpp/maccom2.c: New test.
13552 * testsuite/gcc.dg/cpp/maccom3.c: New test.
13553 * testsuite/gcc.dg/cpp/maccom4.c: New test.
13554 * testsuite/gcc.dg/cpp/maccom5.c: New test.
13555 * testsuite/gcc.dg/cpp/maccom6.c: New test.
13557 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
13560 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13562 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13565 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13568 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13569 RTX_UNCHANGING_P for the functions arguments when a tail call
13572 2002-04-06 Jason Merrill <jason@redhat.com>
13574 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13575 (parse_options_and_default_flags): Set them appropriately.
13576 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13578 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
13580 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13583 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13586 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13587 types come in by-reference. Fix typo in comment.
13589 2002-04-05 David S. Miller <davem@redhat.com>
13591 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13592 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13593 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13594 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13596 2002-04-05 David S. Miller <davem@redhat.com>
13598 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13599 are not going to emit return instructions, emit at least a nop
13600 for the sake of sane backtraces.
13602 2002-04-05 Richard Henderson <rth@redhat.com>
13604 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13606 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
13608 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13610 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
13612 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13613 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13614 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13616 2002-04-05 Andreas Schwab <schwab@suse.de>
13618 * c-convert.c: Include c-common.h.
13619 * Makefile.in (c-convert.o): Updated.
13621 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13623 * mklibgcc.in: Use separate libgcc.map for each multilib.
13624 * Makefile.in (distclean): Don't remove libgcc.map here.
13626 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13628 * Makefile.in (s-mlib): Handle --disable-multilib by separate
13629 genmultilib invocation.
13631 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
13633 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13634 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
13635 to num_gprs for symmetry.
13636 * config/mips/mips.c: Adjust accordingly.
13638 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13640 * c-common.c (truthvalue_conversion): Rename, update.
13641 * c-common.h (c_common_truthvalue_conversion): New.
13642 * c-convert.c (convert): Update.
13643 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13644 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13645 * c-typeck.c (build_binary_op, build_unary_op,
13646 build_conditional_expr): Update.
13647 * fold-const.c (constant_boolean_node, fold): Use langhook.
13648 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13649 * langhooks.h (struct lang_hooks): New hook.
13650 * stmt.c (expand_decl_cleanup): Use langhook.
13651 * tree.h (truthvalue_conversion): Remove.
13653 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13655 2002-04-05 Alan Modra <amodra@bigpond.net.au>
13657 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13658 Add rules to make null object file.
13660 2002-04-04 Jim Blandy <jimb@redhat.com>
13662 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13663 macro formal parameter names.
13665 2002-04-04 David S. Miller <davem@redhat.com>
13667 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13669 2002-04-04 Richard Henderson <rth@redhat.com>
13672 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13673 Support copies into and out of memory. Don't accept allows_reg
13674 and allows_mem as gospel.
13676 2002-04-04 Richard Henderson <rth@redhat.com>
13679 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13680 (write_dependence_p): Likewise.
13682 2002-04-04 Richard Henderson <rth@redhat.com>
13684 * predict.c (estimate_bb_frequencies): Do frequency calculation
13685 with a volatile temporary.
13687 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
13689 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13691 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13694 * final.c (final_start_function): Don't bump profile_label_no here...
13695 (final_end_function): ...but here.
13697 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13699 * config/sparc/sparc.md (pic): New attribute.
13700 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13702 (split after do_builtin_setjmp_setup): New.
13704 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13707 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13710 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13712 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13713 UNITS_PER_WORD for zero sized aggregates.
13715 2002-04-03 David S. Miller <davem@redhat.com>
13717 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13718 one-character spec for this, just use %(link_gcc_c_sequence).
13720 2002-04-03 David S. Miller <davem@redhat.com>
13722 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13725 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13727 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13728 (DWARF_FRAME_RETURN_COLUMN): Move.
13729 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13730 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13731 * pa.c (except.h, predict.h): Include.
13733 (store_reg_modify, set_reg_plus_d): Revise prototypes.
13734 (output_ascii): Add cast.
13735 (store_reg_modify): Revise to add frame notes.
13736 (set_reg_plus_d): Likewise.
13737 (compute_frame_size): Include space for eh data registers in frame if
13738 the current function calls eh_return.
13739 (hppa_expand_prologue): Ensure register %r2 is saved if the current
13740 function calls eh_return. Save eh data registers if the current
13741 function calls eh_return. Fix code to add frame notes. Emit
13742 blockage to prevent insns with frame notes being scheduled in the
13743 delay slot of calls.
13744 (hppa_expand_epilogue): Restore eh data registers and do final stack
13745 adjustment if the current function calls eh_return. Don't add frame
13747 (output_call): Revise for change in length of call insn. Don't do
13748 return pointer adjustment for an unconditional jump in the delay slot
13749 of a call when using frame notes.
13750 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13751 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13752 (ARG_POINTER_CFA_OFFSET): Define.
13753 * pa.md (return_external_pic): New pattern.
13754 (prologue): Correct formatting. Use return_external_pic if current
13755 function calls eh_return.
13756 (call_internal_symref, call_value_internal_symref,
13757 sibcall_internal_symref, sibcall_value_internal_symref): Change default
13758 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13760 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13762 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13763 list of targets to check using "nop" insn.
13764 * configure: Rebuilt.
13766 2002-04-04 Alan Modra <amodra@bigpond.net.au>
13768 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13770 2002-04-03 David S. Miller <davem@redhat.com>
13772 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13773 library sequence passed to the linker.
13774 (LINK_COMMAND_SPEC): Use it.
13775 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13776 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13777 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13779 2002-04-03 Jason Merrill <jason@redhat.com>
13781 * except.c (struct eh_status): Remove protect_list.
13782 (begin_protect_partials, end_protect_partials): Remove.
13783 (add_partial_entry): Remove.
13784 * except.h: Remove prototypes.
13786 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13787 expand_decl_cleanup_eh.
13790 * tree.h (CLEANUP_EH_ONLY): New macro.
13791 * stmt.c (expand_decl_cleanup_eh): New fn.
13792 (expand_cleanups): Check CLEANUP_EH_ONLY.
13793 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13794 Use expand_decl_cleanup_eh.
13795 (expand_stmt): Adjust.
13796 * c-common.h: Adjust prototype.
13798 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
13800 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13801 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13802 (cris_target_asm_function_epilogue): Ditto.
13803 (cris_initial_frame_pointer_offset): Ditto.
13804 (cris_simple_epilogue): Ditto.
13805 (cris_expand_builtin_va_arg): Variable-size types come in
13808 2002-04-03 David S. Miller <davem@redhat.com>
13810 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13812 (set_fast_math): Correct 'fsr' type.
13814 2002-04-03 Richard Henderson <rth@redhat.com>
13817 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13818 * toplev.c (check_global_declarations): Use it.
13819 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13820 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13821 (LANG_HOOKS_DECLS): Add it.
13822 * langhooks.c (lhd_warn_unused_global_decl): New.
13823 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13824 * c-objc-common.c (c_warn_unused_global_decl): New.
13825 * c-tree.h (c_warn_unused_global_decl): Declare.
13826 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13828 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
13830 * langhooks-def.h (lhd_set_decl_assembler_name,
13831 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13832 (LANG_HOOKS_INITIALIZER): Update.
13833 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13834 * langhooks.h (struct lang_hooks): New hook.
13835 * tree.c (set_decl_assembler_name): Move to langhooks.c.
13836 (lang_set_decl_assembler_name): Remove.
13837 (init_obstacks): Don't set hook.
13838 (decl_assembler_name): New function.
13839 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13840 (decl_assembler_name): New.
13841 (lang_set_decl_assembler_name): Remove.
13843 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13845 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13846 works properly with .hidden symbols.
13847 * configure: Rebuilt.
13848 * config.in: Rebuilt.
13849 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13850 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13851 properly with .hidden symbols.
13853 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13856 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13859 2002-04-03 Richard Henderson <rth@redhat.com>
13862 * sched-rgn.c (sets_likely_spilled): New.
13863 (sets_likely_spilled_1): New.
13864 (add_branch_dependences): Use it.
13866 2002-04-02 Richard Henderson <rth@redhat.com>
13869 * loop.h (LOOP_FIRST_PASS): New.
13870 * loop.c (strength_reduce): Mind it when deciding to unroll.
13871 * toplev.c (rest_of_compilation): Set it.
13873 2002-04-02 David S. Miller <davem@redhat.com>
13875 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13876 mems_ok_for_ldd_peep when the order of the loads being examined
13878 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13879 existing comment to increase comprehension of this situation.
13881 2002-04-02 Zack Weinberg <zack@codesourcery.com>
13883 * config/sh/sh.md: Don't use union real_extract.
13885 2002-04-02 Richard Henderson <rth@redhat.com>
13887 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13889 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13891 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13892 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13893 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13894 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13895 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13896 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13897 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13898 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13899 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13900 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13901 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13902 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13903 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13904 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13905 Include as many configury headers via tm_file as possible. This
13906 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13907 * config/openbsd-oldgas.h: New file.
13908 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13909 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13910 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13911 config/i386/i386-coff.h, config/i386/i386-interix.h,
13912 config/i386/iscdbx.h, config/i386/linux-aout.h,
13913 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13914 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13915 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13916 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13917 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13918 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13919 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13920 config/i386/vxi386.h: Do not directly include configury headers.
13921 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13922 Directly include configury headers that are no longer automatically
13923 included by the above headers.
13924 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13925 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13926 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13927 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13928 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13929 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13930 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13931 (TARGET_VERSION): Define.
13932 * config/i386/beos-elf.h, config/i386/freebsd.h,
13933 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13934 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13935 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13936 config/i386/sco5.h, config/i386/sysv4.h
13937 (TARGET_VERSION): Do not need to protect.
13938 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13939 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13940 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13941 config/i386/i386-interix.h, config/i386/linux-aout.h,
13942 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13943 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13944 (YES_UNDERSCORES): Do not define - not needed.
13945 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13946 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13947 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13948 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13949 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13950 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13951 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13952 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13954 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
13955 Richard Henderson <rth@redhat.com>
13958 * function.c (assign_temp): Accept either type or decl argument.
13959 Detect variables whose size is too large to fit into an integer.
13960 * stmt.c (expand_decl): Pass the decl, not the type.
13962 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13964 * protoize.c: Match include directory usage with cppdefault.c.
13966 2002-04-03 Jeffrey A Law (law@redhat.com)
13967 Hans-Peter Nilsson <hp@bitrange.com>
13969 * combine.c (simplify_comparison): Avoid narrowing a comparison
13970 with a paradoxical subreg when doing so would drop signficant bits.
13972 2002-04-02 Steve Ellcey <sje@cup.hp.com>
13974 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
13975 if POINTERS_EXTEND_UNSIGNED is defined.
13977 2002-04-02 Richard Henderson <rth@redhat.com>
13980 * local-alloc.c (contains_replace_regs): LO_SUM may contain
13983 2002-04-02 Richard Henderson <rth@redhat.com>
13985 * doc/standards.texi: Document required freestanding libc entry points.
13987 2002-04-02 Alan Modra <amodra@bigpond.net.au>
13989 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
13990 associated splitter. Remove MQ constraint.
13991 (ctrdi_internal4): Correct CCmode clobber.
13993 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
13995 * milli64.S ($$dyncall): New function.
13996 * t-linux (LIB1ASMFUNCS): Revise module list.
13997 (LIB1ASMSRC): Use pa/milli64.S.
13999 2002-04-02 Richard Henderson <rth@redhat.com>
14001 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
14002 rename solaris_sys_varargs_h.
14004 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14006 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
14007 the same mode as its component.
14009 2002-04-02 Richard Henderson <rth@redhat.com>
14012 * final.c (this_is_asm_operands): Export.
14013 * output.h (this_is_asm_operands): Declare.
14014 * config/i386/i386.c (print_operand): Error odd asm operands.
14016 2002-04-02 Richard Henderson <rth@redhat.com>
14019 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
14021 2002-04-01 Richard Henderson <rth@redhat.com>
14024 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
14025 * fixinc/fixincl.x: Rebuild.
14027 2002-04-01 Richard Henderson <rth@redhat.com>
14029 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
14030 (atomic_alloc, atomic_free): New.
14031 (SIZE, MASK_FOR, PTR_IN): New.
14032 (emergency_reg_state, emergency_reg_state_free): New.
14033 (emergency_labeled_state, emergency_labeled_state_free): New.
14034 (reg_state_alloced, labeled_state_alloced): New.
14035 (alloc_reg_state, free_reg_state): New.
14036 (alloc_label_state, free_label_state, free_label_states): New.
14037 (push, pop, dup_state_stack, free_state_stack): Use them.
14038 (desc_label_state): Likewise.
14039 (uw_frame_state_for): Free label states and state stack.
14040 (uw_update_reg_address): Eliminate warnings.
14042 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
14044 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
14045 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
14047 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14049 * c-decl.c (grokdeclarator): Update.
14050 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14051 * c-tree.h (c_mark_addressable): New.
14052 * c-typeck.c (default_function_array_conversion, build_unary_op,
14053 build_array_ref, convert_for_assignment): Update.
14054 (mark_addressable): Rename.
14055 * calls.c (try_to_integrate, expand_call): Use langhook.
14056 * expr.c (expand_expr): Use langhook.
14057 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
14058 * langhooks.h (struct lang_hooks): New hook.
14059 * stmt.c (expand_asm_operands): Use langhook.
14060 * tree.h (mark_addressable): Remove.
14062 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14064 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14066 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
14067 in previous change.
14069 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14071 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
14072 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
14074 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14076 * c-common.c (unsigned_conversion_warning, convert_and_check,
14077 unsigned_type, signed_type, shorten_compare,
14078 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
14079 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
14080 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
14082 * c-decl.c (grokdeclarator): Update.
14083 * c-format.c (check_format_types): Update.
14084 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14085 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14086 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
14087 * convert.c (convert_to_integer): Use new hooks.
14088 * expmed.c (make_tree): Use new hooks.
14089 * expr.c (store_expr): Use new hooks.
14090 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
14091 all_ones_mask_p, unextend, fold): Use new hooks.
14092 * langhooks.h (struct lang_hooks_for_types): New hooks.
14093 * tree.h (signed_or_unsigned_type, signed_type,
14094 unsigned_type): Remove.
14096 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14097 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14099 2002-03-31 Richard Henderson <rth@redhat.com>
14101 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
14102 (desc_frgr_mem): Fix reference to f16-f31.
14104 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14106 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
14107 RTVEC_ELT): Const-ify.
14108 * varray.h (VARRAY_CHECK): Const-ify.
14109 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
14110 ggc_mark_rtvec, ggc_mark): Const-ify.
14112 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14114 * diagnostic.c: Include langhooks-def.h.
14115 * Makefile.in (diagnostic.o): Update.
14117 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14119 * c-common.c (c_unsafe_for_reeval): Rename.
14120 * c-common.h (c_unsafe_for_reeval): Rename.
14121 * c-decl.c (finish_incomplete_decl): Rename.
14122 (c_init_decl_processing): Don't set langhook.
14123 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14124 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14125 * c-objc-common.c (c_objc_common_init): Don't set langhook.
14126 * c-tree.h (finish_incomplete_decl): Rename.
14127 * langhooks-def.h (lhd_unsafe_for_reeval): New.
14128 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
14129 (LANG_HOOKS_INITIALIZER): Update.
14130 * langhooks.c (lhd_unsafe_For_reeval): New.
14131 * langhooks.h (struct langhooks): New hooks.
14132 * toplev.c (incomplete_decl_finalize_hook): Remove.
14133 (wrapup_global_declarations): Update.
14134 * tree.c (lang_unsafe_for_reeval): Remove.
14135 (unsafe_for_reeval): Update.
14136 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
14139 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14140 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14142 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14144 * diagnostic.c (print_error_function): Remove.
14145 (default_print_error_function): Rename.
14146 (report_error_function): Update.
14147 * diagnostic.h (print_error_function): Remove.
14148 (default_print_error_function): Remove.
14149 * langhooks-def.h (struct diagnostic_context): Predeclare.
14150 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
14151 (LANG_HOOKS_INITIALIZER): Update.
14152 * langhooks.h (struct diagnostic context): Predeclare.
14153 (struct lang_hooks): New hook.
14155 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14157 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
14158 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
14160 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
14161 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
14162 of PIC_OFFSET_TABLE_REGNUM thruout.
14163 * config/rs6000/rs6000.md: Likewise.
14164 * config/rs6000/darwin.h: Likewise.
14166 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14168 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
14169 unsigned HOST_WIDE_INT, not unsigned int.
14171 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14173 PR middle-end/6096, middle-end/6098, middle-end/6099
14174 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
14176 (fill_slots_from_thread): Likewise.
14178 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14180 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
14181 floating fields in float regs.
14182 (function_arg_record_value_2): Likewise.
14184 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14186 * config/mmix/mmix.md (define_constants): Remove misleading
14187 FIXME. Add MMIX_fp_rO_OFFSET.
14188 ("nonlocal_goto_receiver"): Don't have stack-frame address of
14189 saved rO as part of the pattern. Remove FIXME.
14190 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
14191 here, at output-time.
14193 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14196 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
14198 (output_v9branch): Likewise.
14200 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14202 * gcc.c: Revert previous patch for now.
14203 * config/i386/djgpp.h: Likewise.
14205 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14207 * config/mmix/crti.asm (_init): Register _fini with atexit.
14208 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
14210 2002-03-31 Richard Henderson <rth@redhat.com>
14213 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
14214 (ASM_OUTPUT_DEF_FROM_DECLS): New.
14216 2002-03-31 Richard Henderson <rth@redhat.com>
14218 * libgcc2.c (__bb_exit_func): Make static.
14220 * config/alpha/alpha.md (trap): New.
14222 2002-03-31 Richard Henderson <rth@redhat.com>
14224 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
14225 promoted argument types; build trap.
14226 (expand_builtin_trap): New.
14227 (expand_builtin): Use it.
14228 * stmt.c (expand_nl_goto_receivers): Likewise.
14229 * expr.h (expand_builtin_trap): Declare.
14230 * libfuncs.h (LTI_abort, abort_libfunc): New.
14231 * optabs.c (init_optabs): Init abort_libfunc.
14233 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14235 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
14236 (LINK_COMMAND_SPEC): ... from here.
14237 (init_gcc_specs): Duplicate it here too, omitting
14238 shared_name in the second copy.
14239 (init_spec): Test for duplicate
14240 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
14242 2002-03-30 David S. Miller <davem@redhat.com>
14244 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14245 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
14247 2002-03-30 Roger Sayle <roger@eyesopen.com>
14248 Richard Henderson <rth@redhat.com>
14250 * regmove.c (combine_stack_adjustments_for_block): Avoid
14251 emitting a stack adjustment of zero bytes. Let delete_insn
14254 2002-03-30 Richard Henderson <rth@redhat.com>
14256 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
14257 (sparc_emitting_epilogue): New.
14258 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
14259 * config/sparc/sparc-protos.h: Update.
14260 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
14261 (TARGET_SWITCHES): Update.
14262 * config/sparc/sparc.md (return): Remove.
14263 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
14264 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
14265 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
14266 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14267 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
14268 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
14269 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
14270 Remove MASK_EPILOGUE.
14271 * doc/invoke.texi: Update.
14273 2002-03-30 Daniel Berlin <dan@dberlin.org>
14275 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
14276 CPP will start the file for us.
14278 2002-03-30 Richard Henderson <rth@redhat.com>
14281 * config/ia64/ia64.c (group_barrier_needed_p): Special case
14282 prologue_allocate_stack.
14283 (ia64_single_set): Use insn codes for recognition of special
14284 cases, not rtl matching.
14285 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
14287 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
14289 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
14291 2002-03-30 Richard Henderson <rth@redhat.com>
14294 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
14295 or -fomit-frame-pointer with profiling.
14296 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
14297 (FUNCTION_PROFILER): Do nothing.
14298 (PROFILE_HOOK): New.
14299 * config/sparc/sparc.c (sparc_override_options): Don't check
14300 code models for profiling.
14301 (sparc_function_profiler): Remove.
14302 (sparc_profile_hook): New.
14303 * config/sparc/sparc-protos.h: Update.
14305 2002-03-30 Jakub Jelinek <jakub@redhat.com>
14307 PR optimization/6086
14308 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
14309 of SUBREG of volatile MEM or because the MEM was mode dependent,
14310 return CLOBBER instead of unmodified SUBREG.
14312 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
14314 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
14315 when not optimizing.
14317 * toplev.c (rest_of_compilation): Cann mark_constant_function
14318 only when optimizing.
14320 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
14323 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
14324 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
14325 (try_optimize_cfg): clear all AUX fields.
14327 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
14328 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
14329 (ix86_address_cost): Be prepared for SUBREGed registers.
14330 (legitimate_address_p): Accept SUBREGed registers.
14332 2002-03-29 Richard Henderson <rth@redhat.com>
14335 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
14337 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14339 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
14340 for aggregate and TFmode types.
14342 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14344 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
14346 2002-03-29 Richard Henderson <rth@redhat.com>
14349 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
14350 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
14352 2002-03-29 Richard Henderson <rth@redhat.com>
14355 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
14356 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
14357 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
14358 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
14360 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
14362 2002-03-29 Dale Johannesen <dalej@apple.com>
14364 * loop.c (combine_movables): Do allow combination of pseudos.
14366 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
14368 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
14369 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
14370 No functional change except ...
14371 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
14372 * doc/install.texi (*-*-freebsd*): Document port configuration.
14374 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14376 * Makefile.in (convert.o, calls.o, expmed.o): Update.
14377 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
14379 * builtin-types.def (BT_PTRMODE): Update.
14380 * c-common.c (type_for_size): Rename c_common_type_for_size.
14381 (type_for_mode): Similarly.
14382 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
14384 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
14385 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
14386 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
14388 * c-typeck.c (common_type, comptypes, default_conversion):
14390 * calls.c: Include langhooks.h.
14391 (emit_library_call_value_1): Use new hooks. Avoid redundant
14393 * convert.c: Include langhooks.h
14394 (convert_to_pointer, convert_to_integer): Use new hooks.
14395 * except.c (init_eh): Similarly.
14396 * expmed.c: Include langhooks.h.
14397 (expand_mult_add): Use new hooks.
14398 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
14399 try_casesi): Similarly.
14400 * fold-const.c (optimize_bit_field_compare, make_range,
14401 decode_field_reference, fold_truthop, fold): Similarly.
14402 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
14403 put_var_into_stack): Similarly.
14404 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
14405 LANG_HOOKS_TYPE_FOR_SIZE): New.
14406 (LANG_HOOKS_TYPES_INITIALIZER): Update.
14407 * langhooks.h (lang_hooks_for_types): New hooks.
14408 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
14409 * tree.c (get_unwidened, get_narrower): Similarly.
14410 * tree.h (type_for_mode, type_for_size): Remove.
14411 * varasm.c (force_const_mem): Use new hooks.
14412 * utils2.c (nonbinary_modular_operation): Update.
14414 * objc-act.c (handle_impent): Update.
14415 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
14418 2002-03-29 Steve Ellcey <sje@cup.hp.com>
14420 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
14421 * config/ia64/ia64.c (basereg_operand): New.
14422 * config/ia64/ia64-protos.h (basereg_operand): Declare.
14423 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
14425 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14427 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
14428 unwind information when frame_pointer_needed.
14429 (mmix_assemble_integer): Tweak wording in comment.
14431 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14433 * Makefile.in (except.o): Update.
14434 * except.c: Include langhooks.h.
14435 (init_eh): Use langhook.
14436 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
14437 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
14438 (LANG_HOOKS_INITIALIZER): Update.
14439 * langhooks.h (lang_hooks_for_types): New.
14440 (struct lang_hooks): Add it.
14441 * tree.c (make_lang_type_fn, make_lang_type): Remove.
14442 * tree.h (make_lang_type_fn, make_lang_type): Remove.
14444 * alpha/alpha.c: Include langhooks.h.
14445 (alpha_build_va_list): Use langhook.
14446 * d30v/d30v.c: Include langhooks.h.
14447 (d30v_build_va_list): Use langhook.
14448 * i386/i386.c: Include langhooks.h.
14449 (ix86_build_va_list): Use langhook.
14450 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
14451 * s390/s390.c: Include langhooks.h.
14452 (s390_build_va_list): Use langhook.
14453 * stormy16/stormy16.c: Include langhooks.h.
14454 (stormy16_build_va_list): Use langhook.
14456 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14459 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
14461 (length): Compute variable length for branches/calls/jumps here.
14462 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
14463 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
14464 define branch_type attribute.
14465 (divsi3_sp32): Maximum length is 6 not 7.
14466 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
14467 call_address_untyped_struct_value_sp32,
14468 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
14469 * config/sparc/sparc.c (empty_delay_slot): New function.
14470 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
14471 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
14473 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14475 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
14476 nonzero_bits if not needed.
14477 (nonzero_bits) [XOR]: Likewise.
14478 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
14479 reg_last_set_mode and mode are both MODE_INT, but not equal.
14480 (record_value_for_reg): Compute reg_last_set_nonzero_bits
14481 in nonzero_bits_mode for MODE_INT modes.
14483 2002-03-28 Richard Henderson <rth@redhat.com>
14486 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
14487 to GAS. Correct drift between alternatives.
14489 2002-03-28 Richard Henderson <rth@redhat.com>
14492 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
14494 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
14496 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
14497 emulation to the linker.
14499 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
14501 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
14502 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14504 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
14506 * combine.c (simplify_and_const_int): Make sure to apply mask
14507 when force_to_mode returns a constant integer. PR3311.
14509 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14511 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
14513 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14515 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
14516 and Objective-C Dialect Options.
14518 2002-03-28 Richard Henderson <rth@redhat.com>
14520 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
14521 comparison should be done vs !=0 not >0 return code. Tidy cases.
14523 2002-03-28 Richard Henderson <rth@redhat.com>
14525 * c-decl.c (finish_function): New arg can_defer_p. Pass it
14526 on to c_expand_body.
14527 * c-tree.h (finish_function): Update decl.
14528 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
14530 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
14532 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
14534 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
14536 * rtlanal.c: Include flags.h
14537 (may_trap_p): Do not mark FP operations if trapping
14538 if !flag_trapping_math
14539 * Makefile.in (rtlanal.o): Add dependency on flag.h
14540 * ifcvt.c (noce_operand_ok): Avoid the lameness.
14542 2002-03-27 Zack Weinberg <zack@codesourcery.com>
14544 * mips.md: Use dconst1, not 1.0, as first argument of
14545 REAL_VALUE_LDEXP. Don't use union real_extract.
14547 2002-03-28 Alan Modra <amodra@bigpond.net.au>
14549 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14550 rather than $target. Heed program_prefix and
14551 program_transform_name. Search for gas in cross-compiler case too.
14552 "test -x" rather than "test -f".
14553 (gcc_cv_ld): Likewise.
14554 (gcc_cv_nm): Heed program_prefix and program_transform_name.
14555 (gcc_cv_objdump): Likewise.
14556 * configure: Regenerate.
14558 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14560 * Makefile.in (attribs.o): Update.
14561 * attribs.c: Include langhooks.h.
14562 (decl_attributes): Use langhook.
14563 * c-decl.c (insert_default_attributes): Rename.
14564 * c-tree.h (c_insert_default_attributes): New.
14565 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14566 (LANG_HOOKS_INITIALIZER): Update.
14567 * langhooks.h (struct lang_hooks): New hook.
14568 * tree.h (insert_default_attributes): Remove.
14570 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14572 2002-03-27 Andreas Schwab <schwab@suse.de>
14574 * config/i386/i386.c (classify_argument): Also check for
14577 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14579 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14582 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
14584 * i960.md (ret): Set PC.
14585 (nonlocal_goto): Fix expander.
14586 * builtins.c (epxand_builin_longjmp): Check that we've emitted
14589 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
14591 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14592 of libcall regions.
14594 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14596 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14597 assigning to BLOCK_FOR_INSN directly.
14599 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
14601 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14603 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14605 * c-common.c (c_expand_expr): Fix prototype.
14606 * c-common.h (c_expand_expr): Always declare, update.
14607 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14608 * c-objc-common.c (c_objc_common_init): No global hook.
14609 * expr.c (expand_expr): Use langhook.
14610 * expr.h (enum expand_modifier): Conditionally declare.
14611 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14612 (LANG_HOOKS_INITIALIZER): Update.
14613 * langhooks.c (lhd_expand_expr): New.
14614 * langhooks.h (struct lang_hooks): New hook.
14615 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14616 (lang_independent_init): Don't default hook.
14618 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14620 2002-03-27 Richard Henderson <rth@redhat.com>
14623 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14624 TARGET_CONST_GP. Simplify conditions.
14626 2002-03-27 Richard Henderson <rth@redhat.com>
14628 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14629 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14630 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14632 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
14634 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14635 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14636 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14637 Remove unnecessary masks.
14638 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14639 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14640 -mwindows, -mdll switches and their negations.
14642 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14644 * gcc-common.c (lang_mark_false_label_stack): Remove.
14645 * ggc.h (lang_mark_false_label_stack): Similarly.
14647 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
14649 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14651 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14652 or __rtems_ is defined.
14654 2002-03-26 Richard Henderson <rth@redhat.com>
14656 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14657 if a non-trivial load was emitted.
14658 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
14659 in high+extra+low case.
14661 2002-03-26 Richard Henderson <rth@redhat.com>
14663 * config.gcc (sparc*-solaris): Use float_format=sparc.
14665 2002-03-26 Richard Henderson <rth@redhat.com>
14667 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14668 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14669 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14670 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14671 (WINT_TYPE_SIZE): Fix at 32.
14673 2002-03-26 Richard Henderson <rth@redhat.com>
14675 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14676 until after eh landing pad generation.
14677 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14678 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14680 2002-03-26 Richard Henderson <rth@redhat.com>
14682 * expr.h (ADD_PARM_SIZE): One more convert for INC.
14684 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
14686 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
14687 and warning switches.
14688 (cc1_options): Likewise.
14690 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
14692 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14693 Restore more of the signal context. Set no_reg_stack_frame.
14694 * config/ia64/unwind-ia64.c (unw_state_record):
14695 Add no_reg_stack_frame, comments.
14696 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14697 (uw_update_context): Adjust bsp when unwinding from leaf,
14698 but not signal frame.
14700 2002-03-26 David Edelsohn <edelsohn@gnu.org>
14702 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14704 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14706 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14708 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14711 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14712 "Add a pool_range attribute", which was lost during the ARM/Thumb
14715 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14717 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14718 a register into the MAC16 accumulator.
14720 2002-03-26 Andrew Cagney <ac131313@redhat.com>
14722 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14723 (Warning Options): Document -Wswitch-enum.
14724 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
14726 (warn_switch_enum): Define variables.
14727 * flags.h (warn_switch_enum): Declare variables.
14728 * stmt.c (expand_end_case_type): When warn_switch_enum /
14729 -Wswitch-enum, perform switch checks.
14732 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14734 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14735 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14736 (reload_muladdsi_compare0_scratch): Delete.
14738 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
14740 * doc/install.texi (*-*-freebsd*): Update.
14742 2002-03-26 Richard Henderson <rth@redhat.com>
14744 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14745 (SUB_PARM_SIZE): Cast DEC to ssizetype.
14747 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14748 types from the normal argument frame.
14750 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14751 variable sized objects by reference.
14752 (sparc_va_arg): Receive them by reference too.
14754 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
14756 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
14757 code to not restoring global registers.
14759 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
14761 * Makefile.in (ggc-common.o): Update.
14762 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14763 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14764 * c-tree.h (c_mark_tree): New.
14765 * ggc-common.c: Include langhooks.h.
14766 (gcc_mark_trees): Use new langhook.
14767 * ggc-callbacks.c: Delete file.
14768 * ggc.h (lang_mark_tree): Remove.
14769 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14770 (LANG_HOOKS_INITIALIZER): Update.
14771 * langhooks.h (struct lang_hooks): New hook.
14773 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14775 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14777 * doc/cpp.texi: Exclude entire Top node from printed manual.
14778 Move option index after directive index. Insert page breaks
14779 before GFDL and concept index. Index environment variables
14780 with command line options.
14781 * doc/cppenv.texi: Use @vtable for environment variable list.
14782 Add paragraph explaining semantics of empty elements in path
14783 variables. Exclude a cross-reference to Fishkill from the
14784 manpage. Remove an unnecessary cross-reference of the entry
14785 right above the referer. Don't use @anchor in text that goes
14787 * doc/cppopts.texi: Cross-reference the environment variables
14788 section, not the specific environment variable, for consistency.
14790 2002-03-25 Richard Henderson <rth@redhat.com>
14792 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14793 anywhere in the block. Don't refer to insns that have been
14794 removed from the chain. Iterate backward through the new insns.
14795 Don't refer to edges that have been removed.
14797 2002-03-26 Alan Modra <amodra@bigpond.net.au>
14799 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14800 test for overflow of constant.
14802 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
14805 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14806 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14807 these patterns on arm_archv4.
14809 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
14811 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14814 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14816 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
14817 float_handled, float_handler, float_signal, set_float_handler,
14818 and do_float_handler. Set handler for SIGFPE to crash_signal.
14819 * toplev.h: Don't prototype do_float_handler.
14821 * c-lex.c: Fold parse_float into lex_number. Make warning
14822 about portability of hex float constants more informative, and
14823 don't issue it on top of a syntax error.
14824 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14826 * real.h: Define REAL_VALUE_ABS here...
14827 * simplify-rtx.c: ... not here. Fold check_fold_consts,
14828 simplify_unary_real, simplify_binary_real, and
14829 simplify_binary_is2orm1 into their callers.
14830 * tree.c: Fold build_real_from_int_cst_1 into caller.
14832 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14834 * tsystem.h: Include float.h here...
14835 * libgcc2.c: ... not here.
14837 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
14839 Fixes for: PR bootstrap/3591, target/5676
14840 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14841 defined. Do not disable exceptions or rtti.
14842 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14843 mcore.h. Disable exceptions and rtti, since they are not
14846 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
14848 * c-decl.c (maybe_build_cleanup): Remove.
14849 * expr.c (expand_expr): Use langhook.
14850 * langhooks-def.h (lhd_return_null_tree,
14851 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14852 (LANGHOOKS_INITIALIZER): Update.
14853 * langhooks.c (lhd_return_null_tree): New.
14854 * langhooks.h (struct lang_hooks): New hook.
14855 * tree-inline.c (initialize_inlined_parameters): Use langhook.
14856 * tree.h (maybe_build_cleanup): Remove.
14858 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14860 * regrename.c (build_def_use): Move recog_memoized
14861 before extract_insn.
14863 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14866 * expr.c (emit_group_store): Handle storing into CONCAT.
14868 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14870 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14871 corresponding MATCH_DUP.
14873 2002-03-24 Richard Henderson <rth@redhat.com>
14875 * unroll.c (unroll_loop): Zero label_map.
14877 * gcse.c: Include except.h.
14878 * Makefile.in (gcse.o): Update.
14880 2002-03-24 Richard Henderson <rth@redhat.com>
14882 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14883 Do resolve_unique_section before shared data clause.
14885 2002-03-24 Richard Henderson <rth@redhat.com>
14887 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14889 2002-03-24 Richard Henderson <rth@redhat.com>
14891 * recog.c (peephole2_optimize): Split blocks when EH insns are
14892 generated in the middle of a block. Do global life update if
14895 2002-03-24 Richard Henderson <rth@redhat.com>
14897 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14899 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14902 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
14903 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14904 (init_dependency_output): Don't make no_output decision here.
14906 2002-03-24 Andrew Cagney <ac131313@redhat.com>
14908 * stmt.c (check_for_full_enumeration_handling): Remove tests of
14909 warn_switch. Update description.
14910 (expand_end_case_type): Call check_for_full_enumeration_handling
14913 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14915 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14916 (m68hc11_split_move): Call it to see if the source and destination
14917 operands use the same direction auto inc/dec mode, otherwise make the
14918 source an offsetable memory operand and generate an add.
14920 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14922 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14923 register for operand 2.
14924 ("*subsi3_zero_extendqi"): Likewise.
14925 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14926 bits so that it is compatible with a pop.
14927 ("*andhi3_gen"): Likewise.
14928 ("xorhi3"): Likewise.
14930 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14932 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14934 (cpp_post_options): ... not here.
14936 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14937 Aldy Hernandez <aldyh@redhat.com>
14939 Removal of separate preprocessor cpp0.
14941 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14942 cpp0, install-common): Update.
14943 * c-common.c (flag_preprocess_only): New.
14944 (c_common_init): Preprocess for -E.
14945 * c-common.h (flag_preprocess_only): New.
14946 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14947 * c-objc-common.c (c_init_decl_processing): Exit quickly
14948 for NULL return from c_common_init.
14949 * cpplib.h (cpp_preprocess_file): New.
14950 * cppmain.c (main, general_init, pfile, progname): Remove.
14951 (do_preprocessing): Rename cpp_preprocess_file, don't call
14952 cpp_finish. Don't close stdout here.
14953 (setup_callbacks): Update prototype.
14954 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
14956 * tradcpp.c (main): Ignore -quiet.
14958 * lang-specs.h (default_compilers): Preprocess with cc1obj.
14960 2002-03-24 Richard Henderson <rth@redhat.com>
14962 PR optimization/5742
14963 * machmode.def: Add inner mode field to complex modes.
14964 * config/mips/mips.c (mips_function_value): Always define. Add
14965 new argument to handle libcalls.
14966 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
14967 (FUNCTION_VALUE): Likewise.
14968 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
14969 * config/mips/mips-protos.h: Update.
14971 2002-03-23 Richard Henderson <rth@redhat.com>
14973 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
14974 * config/sparc/sparc-protos.h: Update.
14975 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
14977 2002-03-23 Richard Henderson <rth@redhat.com>
14979 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
14980 _start or _init begins the text segment.
14982 2002-03-23 David Edelsohn <edelsohn@gnu.org>
14984 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
14985 not HOST_WIDEST_INT.
14986 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
14988 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
14991 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
14992 operand argument to output_return_instruction.
14993 * arm.c (arm_print_operand, case 'd'): If the operand is
14994 const_true_rtx then just return.
14995 (arm_print_operand, case 'D'): If the operand is const_true_rtx
14998 2002-03-23 Andrew Cagney <ac131313@redhat.com>
15000 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
15001 (Warning Options): Document -Wswitch-default.
15002 * toplev.c (W_options): Add -Wswitch-default. Update comment on
15004 (warn_switch_default): Define variable.
15005 (warn_switch): Update comment.
15006 * flags.h (warn_switch_default): Declare variable.
15007 (warn_switch): Update comment.
15008 * stmt.c (expand_end_case): Check for and, when
15009 warn_switch_no_default, warn of a missing default case.
15011 2002-03-23 Alan Modra <amodra@bigpond.net.au>
15013 * real.h (N): Special case 128 bit doubles.
15015 * combine.c (simplify_comparison): When widening modes, ignore
15016 sign extension on CONST_INTs.
15018 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15020 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
15021 passed to adjust_address. Fix comment formatting.
15024 2002-03-22 Zack Weinberg <zack@codesourcery.com>
15026 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
15027 Always make REAL_VALUE_TYPE a struct containing an array of
15028 HOST_WIDE_INT, not a double. Tidy up the code deciding how
15029 big it is. Don't declare or use union real_extract.
15031 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
15032 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
15033 (print_operand), config/arm/arm.c (output_move_double),
15034 config/arm/arm.md (consttable_4, consttable_8),
15035 config/romp/romp.c (output_fpops), config/s390/s390.h
15036 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
15037 (xtensa_output_literal): Don't use union real_extract.
15039 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
15040 (sfmode_constant_to_ulong), config/ns32k/merlin.h
15041 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
15042 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
15043 (PRINT_OPERAND): Don't use local version of union
15046 * config/convex/convex.c (check_float_value), config/vax/vax.c
15047 (vax_float_literal), config/m88k/m88k.md (divdf3),
15048 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
15049 config/pdp11/pdp11.c (output_move_quad): Don't do host
15050 arithmetic on target floating point quantities.
15052 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
15053 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
15055 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
15056 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
15058 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
15059 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
15061 * print-rtl.c (print_rtx): Disable code which needs
15062 floating-point emulator.
15063 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
15064 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
15065 depending on HOST_FLOAT_FORMAT to be defined properly.
15067 * config/1750a/1750a.c (get_double, float_label): Delete.
15068 (print_operand): Delete huge commented-out chunk. Use
15069 REAL_VALUE_TO_DECIMAL.
15070 * config/1750a/1750a-protos.h: Delete prototypes of deleted
15072 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
15074 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
15075 Use REAL_VALUE_TO_DECIMAL as ELF version does.
15076 * config/m88k/m88k.c (real_power_of_2_operand,
15077 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
15078 real_extract out of the union; run the input through
15079 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
15080 from that into the union.
15081 * config/pdp11/pdp11.c (output_move_double): Rearrange
15082 parentheses to make automatic indenter happy.
15084 * doc/tm.texi (Cross-compilation): Rename node to "Floating
15085 Point" and rewrite to describe current situation. Also adjust
15086 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
15088 * doc/rtl.texi: Adjust cross reference.
15090 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15092 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
15093 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
15094 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
15095 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
15096 prevent use of sp as a reload register.
15097 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
15098 non_acc_reg_operand.
15099 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
15100 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
15101 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
15102 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
15104 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15106 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
15107 * cpplex.c (unterminated): Delete.
15108 (parse_string): No string literal may extend over multiple
15109 lines. Suppress the error when preprocessing assembly.
15110 * cppmain.c (scan_translation_unit): Strings are single-line.
15112 * doc/cpp.texi: Update to match.
15114 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15116 PR optimization/5854
15117 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
15119 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
15120 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
15121 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
15122 const0 if scratch register was not allocated.
15123 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
15124 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
15125 with GEN_INT (...).
15126 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
15127 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
15128 with GEN_INT (...) everywhere. Remove constraints in define_split
15130 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
15131 require scratch register for setting 0 into regs/non-pushable memory.
15133 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15135 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
15136 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
15138 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
15140 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
15141 * cppinit.c (cpp_create_reader): On by default.
15142 (cpp_handle_option): Handle -W[no-]endif-labels.
15143 (cpp_post_options): Also enable if -pedantic.
15144 * cpplib.c (do_else): Use it.
15145 (do_endif): Likewise.
15146 * doc/cppopts.texi: Document new option.
15147 * doc/invoke.texi: Document new option.
15149 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
15151 * config/i386/i386.c, config/i386/i386.md: Change all occurences
15152 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
15154 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15156 * flow.c (calculate_global_regs_live): Clear aux fields of
15159 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15161 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
15162 REG or MEM subregs, pass rtx * instead of rtx to it.
15163 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
15164 rtx * instead of rtx to alter_subreg.
15165 * config/m32r/m32r.c (gen_split_move_double): Likewise.
15166 * config/pj/pj.c (pj_output_rval): Likewise.
15168 2002-03-22 Richard Henderson <rth@redhat.com>
15171 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
15172 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
15173 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
15174 (ia64_expand_prologue): Look at int_regs, not words, for number
15175 of incomming int regs.
15177 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
15179 * expr.c (expand_expr): A RESULT_DECL is part of a call.
15181 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
15183 * toplev.c (flag_loop_optimize, flag_crossjumping):
15184 New static variables.
15185 (rest_of_compilation): Conditionalize crossjumping and
15187 (parse_options_and_default_flags): Default loop_optimize and
15189 (lang_independent_options): Add -fcrossjumping and -floop-optimize
15190 * invoke.texi (crossjumping, loop-optimize): Document.
15192 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15194 * real.c (eiisneg): Move outside #ifdef NANS.
15196 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
15198 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
15199 frequencies match; avoid match on different loop depths.
15200 (try_crossjump_to_bb): Kill tests that no longer brings time
15202 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
15204 (split_edge): Likewise.
15206 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
15209 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
15210 * cfgrtl.c: Include insn-config.h
15211 (split_block) Dirtify block in presence of conditional execution
15213 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15215 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
15216 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
15217 (function_arg): Constify CUMULATIVE_ARGS.
15218 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
15219 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
15220 (UNITS_PER_DOUBLE): New macro.
15221 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
15222 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
15223 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
15224 fp_regs and stack_words.
15225 (EABI_FLOAT_VARARGS_P): New macro.
15226 * config/mips/mips.c (struct mips_arg_info): New.
15227 (mips_arg_info): New function.
15228 (function_arg_advance): Use it. Add adjustment instructions here
15229 rather than in function_arg.
15230 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
15231 for VOIDmode at the beginning of the function.
15232 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
15233 (function_arg_pass_by_reference): Likewise.
15234 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
15235 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
15236 (mips_va_start): Likewise. Use the new stack_words field of
15237 CUMULATIVE_ARGS to set up overflow area. Reformat.
15238 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
15239 doubles and other types, aligning the overflow pointer for non-doubles
15240 too. Remove some code duplication. Replace hard-coded constants.
15242 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15244 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
15245 (CLASS_UNITS): Undefine.
15246 (CLASS_MAX_NREGS): Use FP_INC.
15247 * config/mips/mips.c (compute_frame_size): Likewise.
15248 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
15250 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15252 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
15253 prototype, and handle lexing numbers and identifiers.
15254 (parse_identifier): Update to new form of parse_slow.
15255 (parse_number): Fast path only, use parse_slow otherwise.
15256 (_cpp_lex_direct): Update calls to parse_number.
15258 2002-03-21 DJ Delorie <dj@redhat.com>
15260 * bb-reorder.c (make_reorder_chain_1): Protect against
15261 when redundant edges are omitted.
15262 * predict.c (dump_prediction): Likewise.
15264 2002-03-21 Richard Henderson <rth@redhat.com>
15267 * fixinc/inclhack.def (solaris_stdio_tag): New.
15268 * fixinc/fixincl.x: Regenerate.
15270 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15273 * c-typeck.c (process_init_element): Flag non-static
15274 initialization of a flexible array member as illegal.
15276 2002-03-22 Alan Modra <amodra@bigpond.net.au>
15278 * config/rs6000/t-linux64: New.
15279 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
15280 t-ppccomm. Use t-rs6000 and t-linux64.
15281 (powerpc64-*-gnu* <tmake_file>): Likewise.
15282 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
15283 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
15284 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
15286 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
15288 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
15289 flag_really_no_inline instead of optimize == 0.
15291 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
15293 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
15295 * flags.h (flag_really_no_inline): New.
15297 * c-common.c (c_common_post_options): Initialize
15298 flag_really_no_inline.
15300 * toplev.c (flag_really_no_inline): New.
15302 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15304 * config/avr/avr.md (length): Fix length computation for
15305 conditional branches.
15307 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
15309 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
15310 sdbout.o, profile.o): Update.
15311 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
15313 * c-common.h (gettags): Move here from tree.h.
15314 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
15315 insert_block, getdecls, kept_level_p, global_bindings_p): New.
15316 * dbxout.c (dbxout_init): Use getdecls langhook.
15317 * expr.c (expand_expr): Use insert_block langhook.
15318 * fold-const.c: Include langhooks.h.
15319 (fold_range_test, fold_binary_op_with_conditional_arg,
15320 fold): Use global_bindings_p langhook.
15321 * integrate.c (expand_inline_function): Use insert_block langhook.
15322 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
15323 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
15324 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
15325 LANG_HOOKS_GETDECLS): New.
15326 (LANG_HOOKS_INITIALIZER): Update.
15327 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
15329 * langhooks.h (struct lang_hooks_for_decls): New.
15330 (struct lang_hooks): Update.
15331 * profile.c: Include langhooks.h.
15332 (output_func_start_profiler): Use new langhooks.
15333 * sdbout.c: Include langhooks.h.
15334 (sdbout_init, sdbout_finish): Use getdecls langhook.
15335 * stmt.c: Include langhooks.h.
15336 (expand_fixup, fixup_gotos): Use new langhooks.
15337 * stor-layout.c: Include langhooks.h.
15338 (variable_size): Use global_bindings_p langhook.
15339 * toplev.c (compile_file): Use getdecls langhook.
15340 * tree-inline.c (remap_block): Use insert_block langhook.
15341 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
15342 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
15344 2002-03-21 Richard Henderson <rth@redhat.com>
15346 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
15347 constants in .data when -fpic.
15349 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15351 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
15354 2002-03-21 Tom Tromey <tromey@redhat.com>
15356 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
15358 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15360 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
15362 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
15364 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15365 Richard Henderson <rth@redhat.com>
15368 * c-common.c (c_expand_expr): Preserve result of a statement
15369 expression if needed.
15371 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15374 * genrecog.c (maybe_both_true_mode): Remove.
15375 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
15376 * machmode.def (Pmode): Likewise.
15378 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
15380 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
15381 (nonlocal_mentioned_p_1): New function.
15382 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
15383 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
15384 (mark_constant_function): Recognize pure functions.
15385 * rtl.h (global_reg_mentioned_p): New prototype.
15386 * rtlanal.c (global_reg_mentioned_p,
15387 global_reg_mentioned_p_1): New function.
15389 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15391 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
15393 * fixinc/fixincl.x: Regenerate.
15395 2002-03-20 Jason Merrill <jason@redhat.com>
15397 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
15399 2002-03-20 Michael Meissner <meissner@redhat.com>
15401 * doc/invoke.texi (Optimize Options): Document that -O2 sets
15404 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15406 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
15407 ".literal_position" directive before the constant pool.
15409 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15411 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
15412 Add Craig Rodrigues.
15413 Add Brad Lucier to testers.
15415 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15418 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
15420 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
15421 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
15422 instead of insn_extract.
15424 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15427 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
15429 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
15430 stmt if some case has been output.
15432 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15435 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
15436 movsfcc_1, movdfcc_1): Add %O2.
15437 * config/i386/i386.c (print_operand): Handle %ON.
15438 Print . before float condition codes in Sun as cmov syntax.
15439 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
15440 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
15443 2002-03-20 Philip Blundell <pb@nexus.co.uk>
15445 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
15446 return instruction if PC was popped.
15448 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15450 * config/xtensa/xtensa.md: Remove unused type attributes.
15451 (adddi_carry, subddi_carry): Change type attribute to "multi".
15453 2002-03-19 Dale Johannesen <dalej@apple.com>
15455 PR optimization/5999, middle-end/5731
15456 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
15457 multiplications by reciprocals.
15459 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
15461 * Makefile.in: Update.
15462 * c-common.c: Include langhooks.h.
15463 (inline_forbidden_p): Use new hook.
15464 * diagnostic.c: Include langhooks.h.
15465 (format_with_decl, announce_function,
15466 default_print_error_function): Use new hook.
15467 * dwarf2out.c (dwarf2_name): Use new hook.
15468 * function.c: Include langhooks.h.
15469 (init_function_start): Use new hook.
15470 * langhooks-def.h (lhd_decl_printable_name): New.
15471 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
15472 (LANGHOOKS_INITIALIZER): Update.
15473 * langhooks.c (lhd_decl_printable_name): New.
15474 * langhooks.h (struct lang_hooks): New hook.
15475 * toplev.c (decl_name, decl_printable_name): Remove.
15476 (open_dump_file): Use new hook.
15477 (process_options): Remove old hook.
15478 * tree.h (decl_printable_name): Remove.
15480 * objc-act.c (objc_init): Remove old hook.
15481 (objc_printable_name): Export.
15482 * objc-act.h (objc_printable_name): New.
15483 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
15485 2002-03-19 Jim Blandy <jimb@redhat.com>
15487 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
15488 the start_source_file debug hook, not the current line number.
15490 2002-03-19 Richard Henderson <rth@redhat.com>
15492 * flow.c (EH_USES): Provide default.
15493 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
15494 * doc/tm.texi (EH_USES): New.
15496 * config/ia64/ia64.c (ia64_eh_uses): New.
15497 * config/ia64/ia64-protos.h: Update.
15498 * config/ia64/ia64.h (EH_USES): New.
15500 2002-03-19 Richard Henderson <rth@redhat.com>
15502 * varasm.c (output_constant_def): Fix stupid typo.
15504 2002-03-19 Richard Henderson <rth@redhat.com>
15507 * except.c (current_function_has_exception_handlers): New.
15508 * except.h: Declare it.
15509 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
15510 Combine tests that disable all sibcalls for the function.
15512 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
15514 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
15517 2002-03-19 Richard Henderson <rth@redhat.com>
15520 * config/ia64/ia64.c: Revert 2002-03-01 patch.
15521 * config/ia64/ia64.h (INIT_EXPANDERS): New.
15523 2002-03-19 Jim Blandy <jimb@redhat.com>
15525 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
15526 name, even if the replacement list contains no tokens, as required
15529 2002-03-19 Jason Merrill <jason@redhat.com>
15531 * varasm.c (globalize_decl): Get the name from the RTL, not
15532 DECL_ASSEMBLER_NAME.
15534 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
15536 2002-03-19 Bob Wilson <bob.wilson@acm.org>
15538 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
15539 subdi_carry): Define.
15541 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15543 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15544 about -fpic/-fPIC if extra_warnings set.
15546 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15548 * expr.c (expand_expr): Sign-extend CONST_INT generated from
15549 TREE_STRING_POINTER.
15550 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
15552 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15554 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15555 in favor of SP if FRAME_POINTER_REQUIRED is false.
15557 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
15559 * emit-rtl.c (gen_int_mode): New function.
15560 * rtl.h: Prototype for it.
15561 * combine.c (make_extraction, simplify_comparison), expmed.c
15562 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15563 (convert_modes, store_field), optabs.c (expand_fix),
15564 simplify-rtx.c (neg_const_int, simplify_unary_real),
15566 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15567 Use it instead of GEN_INT (trunc_int_for_mode (...)).
15569 2002-03-19 Jakub Jelinek <jakub@redhat.com>
15572 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15573 convert_parm_for_inlining.
15574 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15576 * langhooks-def.h: Likewise.
15577 * objc/objc-lang.c: Likewise.
15578 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15580 * tree-inline.c (initialize_inlined_parameters):
15581 Call convert_parm_for_inlining lang hook if needed.
15582 * c-typeck.c (c_convert_parm_for_inlining): New function.
15583 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15585 2002-03-18 Mark Mitchell <mark@codesourcery.com>
15587 * calls.c (precompute_arguments): Do not assume that temporaries
15588 can be destroyed after expanding the argument.
15589 (expand_call): Likewise.
15591 2002-03-15 Eric Christopher <echristo@redhat.com>
15593 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15594 Fix register preference on last change.
15595 * config/mips/mips.c (mips_return_in_memory): New function.
15596 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15597 * config/mips/mips-protos.h: Declare.
15598 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15599 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15601 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
15603 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15605 (anddi3, iorsi3): Likewise.
15607 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15608 use %gprel for symbols that are going to be placed in linkonce
15611 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15612 RETURN_ADDRESS_POINTER_REGNUM to $ra.
15613 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15614 not needed. Disregard leaf_function_p().
15615 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15616 mips16 frame pointer.
15617 * config/mips/mips.md (store ra): Only to small SP offsets.
15618 2001-08-22 Graham Stott <grahams@redhat.com>
15619 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15620 return a REG rtx for the return address register.
15622 2002-03-18 Bob Wilson <bob.wilson@acm.org>
15624 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15625 constant-pool addresses as "mode-dependent".
15626 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15628 2002-03-18 Jakub Jelinek <jakub@redhat.com>
15631 * expr.c (emit_group_load): Use extract_bit_field if
15632 needed for CONCAT arguments.
15634 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
15637 * arm.md (tablejump): Make this a define_expand. For PIC add the
15638 offset to the base of the table.
15639 (thumb_tablejump): Matcher for Thumb tablejump insn.
15640 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15641 as the difference of two labels.
15642 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15643 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15644 tables in the code.
15645 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15646 * arm.c (get_jump_table_size): If the table is not in the text
15647 section, return zero.
15649 2002-03-18 Bernd Schmidt <bernds@redhat.com>
15651 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15653 (arm_reload_out_hi): Use gen_lowpart instead of
15654 gen_rtx_SUBREG to access QImode components.
15655 * config/arm/arm.md: Disable zero_extend split for QImode
15656 subregs in BIG_ENDIAN mode.
15657 (storehi_bigend): Match use of least significant byte.
15658 (storeinthi): Remove extraneous SUBREG.
15659 Add missing construction of operands[2].
15660 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15661 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15662 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15664 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
15666 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15669 2002-03-17 Richard Henderson <rth@redhat.com>
15671 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15674 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15676 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15677 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15679 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15681 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15683 * predict.c (estimate_bb_frequencies): Delete unused variables.
15685 2002-03-17 Richard Henderson <rth@redhat.com>
15687 * config/ia64/ia64.c (ia64_attribute_table): Move before
15688 targetm definition. Make static.
15690 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
15692 * c-common.h (yyparse, c_common_parse_file): New.
15693 * c-lang.c: Include c-common.h.
15694 (LANG_HOOKS_PARSE_FILE): Redefine.
15695 * c-lex.c: Include c-common.h.
15696 (yyparse): Rename c_common_parse_file. Call yyparse.
15697 * c-parse.in (yyparse): Remove macro.
15698 * c-tree.h (yyparse_1): Remove.
15699 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15700 (LANG_HOOKS_INITIALIZER): Update.
15701 * langhooks.h (struct lang_hoooks): New hook parse_file.
15702 * toplev.c (compile_file): Use parse_file hook.
15703 * tree.h (yyparse): Remove.
15704 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
15706 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15708 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15709 float_truncate, not fix.
15710 ("*truncdfsf2_real"): Ditto.
15711 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15713 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15715 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
15717 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15718 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
15719 where appropriate. Make the second reference to
15720 leaf_function_p a function call, as intended. Reindented.
15722 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15723 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15725 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15726 add register to non-constant into sp.
15728 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15729 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15730 (mips16_gp_pseudo_rtx): Lose.
15731 (INIT_EXPANDERS): Deleted.
15732 * config/mips/mips.c (mips_init_machine_status): New.
15733 (mips_free_machine_status): New.
15734 (mips_mark_machine_status): New.
15735 (override_options): Set them.
15736 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15737 (struct machine_function): ... new. Replaced all references.
15738 (mips_add_gc_roots): Don't mark them.
15739 (embedded_pic_fnaddr_reg): New, extracted from...
15740 (embedded_pic_offset): ... here.
15741 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15744 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15746 * cppinit.c: Revert -MD removal.
15748 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15750 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15751 soft registers by default for 68HC12.
15752 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15753 when compiling with -fomit-frame-pointer.
15754 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15755 (expand_epilogue): Likewise.
15756 (m68hc11_gen_rotate): Use exg when rotating by 8.
15758 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15760 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15761 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15762 (splits): Remove unused add splits.
15763 ("*addhi3_68hc12"): Tune constraints.
15764 ("addhi_sp"): Try to use X instead of Y in all cases and if the
15765 constant fits in 8-bits and D is dead use abx/aby instructions.
15766 ("*addhi3"): Remove extern declaration of ix_reg.
15767 ("*subsi3"): Optimize and provide new split.
15768 ("subhi3"): Cleanup.
15769 ("*subhi3_sp"): Avoid saving X if we know it is dead.
15770 (arith splits): For 68hc12 save the address register on the stack
15771 and do the arithmetic operation with a pop.
15773 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15775 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15776 allocating QImode in address registers.
15777 ("*movqi_m68hc11"): Likewise.
15779 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
15781 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15783 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15785 * cppinit.c (print_help): Display -MD and -MMD.
15786 Don't display usage string. Update assertion syntax and
15788 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15789 (cpp_handle_option): Update.
15791 2002-03-15 Chris Demetriou <cgd@broadcom.com>
15793 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15794 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15795 and define it so that regardless of target CPU size,
15796 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15797 of "int" rather than "long."
15799 2002-03-15 Richard Henderson <rth@redhat.com>
15801 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15804 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15806 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15807 ("tstqi" split): Avoid using memory for tstqi on address register.
15808 (splits): Remove constraints.
15809 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15810 ("cmpdf", "cmpsf"): Remove since not used.
15811 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15812 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15814 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15816 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15817 ("neghi2"): Tighten constraints.
15818 ("one_cmplsi2"): Optimize and simplify split.
15819 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15821 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15823 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15824 and split of AND operation to clear the upper bits.
15825 ("*logicalsi3_zextqi"): Likewise.
15826 ("*logicallhi3_zexthi_ashift8"): Likewise.
15827 ("*logicalsi3_silshr16"): Likewise.
15828 ("logicalsi3_silshl16"): Likewise.
15829 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15831 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15833 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15834 (m68hc11_indirect_p): New function.
15835 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15836 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15838 (asm_print_register): Likewise.
15839 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15840 (m68hc11_indirect_p): Declare.
15841 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15842 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15843 (TARGET_SWITCHES): New option -mrelax.
15844 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15846 ("iorsi3", "xorsi3"): Likewise.
15847 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15848 ("*andhi3_mem"): New to handle destination in memory with bclr
15849 and a scratch register.
15850 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15851 ("*andhi3_const"): New when operand2 is constant.
15852 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15853 ("*andhi3_gen"): Cleanup of the old "andhi3".
15854 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15855 ("xorqi3"): Update constraints.
15857 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15859 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15860 for reg_equiv_memory_loc when the operand is a register that does
15861 not get a hard register (stack location).
15862 (tst_operand): After reload, accept all memory operand.
15863 (symbolic_memory_operand): Fix detection of symbolic references.
15864 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15865 accept symbols and any constant.
15867 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15869 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15870 note on the insn that sets the soft frame register.
15871 (must_parenthesize): ix and iy are also reserved names.
15872 (print_operand_address): One more place where parenthesis are required
15873 to avoid confusion with register names.
15874 (m68hc11_gen_movhi): Allow push of stack pointer.
15875 (m68hc11_check_z_replacement): Fix handling of parallel with a
15877 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15878 the replacement register is.
15879 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15880 and D8_REGS classes.
15881 (MODES_TIEABLE_P): All modes are tieable except QImode.
15883 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15885 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15886 (___subdi3): Likewise.
15887 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15888 (__map_data_section): Optimize 68hc11 case.
15890 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15892 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15893 than a shift to avoid adding a register with itself.
15894 (m68hc11_memory_move_cost): Take into account NO_REGS.
15895 (m68hc11_register_move_cost): Update and use memory move cost
15896 for soft registers.
15897 (m68hc11_address_cost): Make cost of valid offset not 0 so that
15898 it gives more opportunities to cse to optimize.
15899 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15900 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15902 2002-03-15 Mark Mitchell <mark@codesourcery.com>
15904 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15905 * c-common.def (CLEANUP_STMT): New tree node.
15906 * c-common.h (CLEANUP_DECL): New macro.
15907 (CLEANUP_EXPR): Likewise.
15908 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15909 * expr.c (expand_expr): Tidy.
15910 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15911 * tree-inline.c (initialize_inlined_parameters): Clean up
15912 new local variables.
15914 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15917 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15918 before movrXX only, use reg_overlap_mentioned_p.
15919 Only special case NE if just one insn can be generated.
15921 2002-03-15 Jason Merrill <jason@redhat.com>
15923 * varasm.c (assemble_variable): Call resolve_unique_section before
15924 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
15925 of error_mark_node.
15927 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15930 * arm.md (split pattern for thumb shiftable immediates): Add comment
15931 explaining non-obvious test.
15933 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15936 * arm.md (movaddr, movaddr_insn): Delete.
15938 2002-03-15 Jason Merrill <jason@redhat.com>
15940 * toplev.c (wrapup_global_declarations): Clarify variable handling.
15941 -fkeep-static-consts doesn't apply to comdats.
15943 2002-03-14 Richard Henderson <rth@redhat.com>
15945 * c-decl.c: Include c-pragma.h.
15946 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15947 (finish_function): Tidy.
15948 * c-pragma.c: Include c-common.h.
15949 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15950 (handle_pragma_weak): Use them.
15951 (init_pragma): Register pending_weaks.
15952 * c-pragma.h (maybe_apply_pragma_weak): Declare.
15953 * print-tree.c (print_node): Print DECL_WEAK.
15954 * varasm.c (mark_weak_decls): Remove.
15955 (remove_from_pending_weak_list): Remove.
15956 (add_weak): Remove.
15957 (asm_emit_uninitialised): Call globalize_decl for weak commons.
15958 (weak_decls): Make a tree_list.
15959 (declare_weak): Cons weak_decls directly.
15960 (globalize_decl): Remove weak_decls elements directly.
15961 (weak_finish): Simplify weak_decls walk. Don't weaken unused
15962 symbols. Don't pretend to handle aliases.
15963 (init_varasm_once): Update weak_decls registry.
15964 * Makefile.in: Update dependencies.
15966 2002-03-14 Richard Henderson <rth@redhat.com>
15969 * config/ia64/ia64.c: Include tm_p.h last.
15970 (gen_nop_type): Remove duplicate definition.
15971 (cycle_end_fill_slots): Set sched_data for second L slot.
15972 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
15973 (nop_cycles_until): Fix typos.
15975 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15977 PR optimization/5891
15978 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
15980 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
15982 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
15983 descriptors correctly.
15985 2002-03-14 Michael Meissner <meissner@redhat.com>
15987 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
15988 100, allowing MAX_UNROLLED_INSNS to be overridden.
15990 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
15993 * unroll.c (params.h): Include.
15994 (MAX_UNROLLED_INSNS): Delete, now in params.h.
15996 * doc/invoke.texi (--param max-unroll-insns): Document.
15998 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
16000 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16002 * arm.md: Fix warnings about constraints in peepholes and splits.
16004 2002-03-14 Zack Weinberg <zack@codesourcery.com>
16006 * cpphash.h (struct lexer_state): Remove line_extension member.
16007 * cpplib.c (dequote_string, do_linemarker): New functions.
16008 (linemarker_dir): New data object.
16009 (DIRECTIVE_TABLE): No longer need to interpret #line in
16010 preprocessed source. Delete obsolete comment about return
16011 values of handlers.
16012 (end_directive, directive_diagnostics, _cpp_handle_directive):
16013 Don't muck with line_extension.
16014 (directive_diagnostics): No need to issue warnings for
16016 (_cpp_handle_directive): Issue warnings for linemarkers here,
16017 when appropriate. Dispatch linemarkers to do_linemarker, not
16019 (do_line): Code to handle linemarkers split out to do_linemarker.
16020 Convert escape sequences in filename argument, both places.
16022 * cppmacro.c (quote_string): Rename cpp_quote_string and
16023 export. All callers changed.
16024 * cpplib.h (cpp_quote_string): Prototype.
16025 * cppmain.c (print_line): Call cpp_quote_string on to_file
16026 before printing it.
16028 * doc/cpp.texi: Document that escapes are now interpreted in
16029 #line and in linemarkers, and that non-printing characters are
16030 converted to octal escapes when linemarkers are generated.
16032 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
16034 * emit-rtl.c (try_split): Use delete_insns.
16035 * recog.c (split_all_insns): Fix terminating condition.
16037 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16038 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
16041 * arm.c (arm_output_epilogue): Fix floating-point register save
16042 adjustment when using a frame pointer.
16044 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
16046 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
16047 * config/mips/mips.c (compute_frame_size): Retrofit them here.
16048 (save_restore_insns, mips_expand_epilogue): And here.
16049 (build_mips16_call_stub): And here.
16050 (mips_function_value): Use the new macros to decide whether a single
16051 or complex float can be returned in floating-point registers. Return
16052 a parallel rtx in the complex case.
16054 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
16056 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
16057 call after liveness analysis.
16059 * recog.c (split_insn): Use delete_insn_and_edges.
16061 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
16062 instructions to have branch prediction notes.
16063 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
16065 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
16067 * configure.in: Don't pass -Wno-long-long to a ADA compiler
16068 that doesn't support it.
16069 * configure: Regenerate.
16071 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16074 * config/sparc/sparc.md (normal_branch, inverted_branch,
16075 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
16076 inverted_fp_branch): Adjust calls to output_cbranch.
16077 Set length attribute.
16078 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
16079 output_v9branch. Set length attribute.
16080 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
16082 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
16083 (output_cbranch): Likewise. Handle far branches.
16084 (output_v9branch): Handle far branches.
16085 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
16087 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
16088 noov_compare64_op predicates.
16090 2002-03-13 Jason Merrill <jason@redhat.com>
16092 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
16093 into the function and constify it.
16094 * gthr-dce.h, gthr-solaris.h: Likewise.
16096 2002-03-13 David Edelsohn <edelsohn@gnu.org>
16098 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
16099 * config/rs6000/rs6000.c (rs6000_va_arg): Use
16100 std_expand_builtin_va_arg if not ABI_V4.
16102 2002-03-13 Jason Merrill <jason@redhat.com>
16104 * varasm.c (globalize_decl): New fn.
16105 (assemble_start_function): Use it.
16106 (asm_emit_uninitialized): Use it.
16107 (assemble_alias): Use it.
16108 (assemble_variable): Use it.
16110 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
16112 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
16113 2002-03-12 internal visibility change.
16114 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
16115 visibility into SYMBOL_REF_FLAG.
16117 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
16119 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
16120 VOIDmode operand. Add compile-time optimization for constant results.
16122 2002-03-12 Jason Merrill <jason@redhat.com>
16124 * c-typeck.c (convert_for_assignment): Don't allow conversions
16125 between pointers and references. Only allow lvalues to convert to
16128 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
16130 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
16131 before prologue, to avoid scheduling problems.
16133 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16135 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
16136 (ELIMINABLE_REGS): Add sfp->sp.
16137 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
16139 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16141 PR optimization/5892
16142 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
16144 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16146 * loop.c (basic_induction_var): Don't call convert_modes if mode
16147 classes are different.
16149 2002-03-12 Richard Henderson <rth@redhat.com>
16151 PR optimization/5901
16152 * function.c (reposition_prologue_and_epilogue_notes): Position
16153 the markers after/before the last/first insn not deleted.
16155 2002-03-12 Richard Henderson <rth@redhat.com>
16157 PR optimization/5878
16158 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
16159 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
16160 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
16162 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
16163 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
16164 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
16166 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
16167 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
16168 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
16169 also. Don't set it if not flag_pic.
16170 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
16171 to be INVALID_REGNUM when not used.
16173 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
16175 * expmed.c (store_bit_field): Reset alias set for memory.
16176 (extract_bit_field): Same.
16178 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16180 * c-common.c (c_tree_code_type, c_tree_code_length,
16181 c_tree_code_name, add_c_tree_codes): Delete.
16182 * c-common.h (add_c_tree_codes): Delete.
16183 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
16185 * c-objc-common.c (c_objc_common_init): Don't call
16186 add_c_tree_codes, instead set lang_unsafe_for_reeval.
16187 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
16188 objc_tree_code_name, add_objc_tree_codes): Delete.
16189 (objc_init): Don't call add_objc_tree_codes.
16190 * objc/objc-lang.c (tree_code_type, tree_code_length,
16191 tree_code_name): Define.
16192 * toplev.c (lang_independent_init): Don't set
16193 tree_code_length[IDENTIFIER_NODE].
16194 * tree.c (tree_code_type, tree_code_length, tree_code_name):
16195 Delete definitions, moved to language front-ends.
16196 * tree.def (IDENTIFIER_NODE): Hardwire the length.
16197 * tree.h (tree_code_type, tree_code_length, tree_code_name):
16199 (tree_code_length): Change type to unsigned char.
16201 2002-03-12 Richard Henderson <rth@redhat.com>
16203 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
16204 internal visibility change.
16206 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16208 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
16209 validize_mem() instead of change_address to avoid clobbering
16212 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
16214 * c-lex.h (position_after_whitespace): Remove.
16216 2002-03-12 Jakub Jelinek <jakub@redhat.com>
16218 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
16219 (lex_string): Use unsigned char pointers.
16221 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16223 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
16224 is not a valid memory_operand.
16226 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16228 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
16229 * config/xtensa/lib1funcs.asm: Fix copyright to include
16230 special case for libgcc files.
16231 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
16232 (__divsi3): Likewise.
16233 (__umodsi3): Likewise.
16234 (__modsi3): Likewise.
16235 * config/xtensa/lib2funcs.S: Fix copyright to include
16236 special case for libgcc files.
16238 2002-03-12 Tom Rix <trix@redhat.com>
16240 * collect2.c (resolve_lib_name): Move outside of
16241 OBJECT_FORMAT_COFF ifdef.
16242 (ignore_library): Same.
16244 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16246 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
16248 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16250 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
16251 to function_section before writing out the constant pool.
16253 2002-03-12 David Edelsohn <edelsohn@gnu.org>
16255 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
16257 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
16259 2002-03-12 Alan Modra <amodra@bigpond.net.au>
16261 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
16262 (adddi3): Likewise.
16265 (cmpsi splitter): Likewise.
16266 (modsi3): Fail if <= 0.
16267 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
16268 redundant test when HOST_BITS_PER_WIDE_INT != 32.
16269 (reg_or_sub_cint64_operand): Likewise.
16270 (num_insns_constant_wide): Optimize sign extension.
16271 (rs6000_legitimize_address): Likewise.
16273 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16275 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16276 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16278 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16280 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
16281 address calculation.
16283 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16285 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
16286 scratch register to DImode / TImode.
16287 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
16288 register used does not overlap the target.
16290 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16292 * Makefile.in (debug.o): Depend on debug.h.
16293 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
16294 * debug.c (do_nothing_debug_hooks): Likewise.
16295 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
16296 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
16297 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
16298 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
16299 * dwarfout.c (dwarf_debug_hooks): Likewise.
16300 * integrate.c (output_inline_function): Likewise.
16301 * objc/objc-act.c (synth_module_prologue): Likewise.
16302 * sdbout.c (sdb_debug_hooks): Likewise.
16303 * toplev.c (debug_hooks): Likewise.
16304 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16306 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16308 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
16309 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
16310 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
16311 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
16312 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
16313 * defaults.h (POINTER_SIZE): Define.
16314 * doc/tm.texi (POINTER_SIZE): Document default.
16316 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16318 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
16320 2002-03-11 Richard Henderson <rth@redhat.com>
16322 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
16323 if rebuild_label_notes_after_reload.
16325 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
16327 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
16328 emit pic register load if "internal" visibility.
16329 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
16330 (cris_expand_builtin_va_arg): Do all computations on trees.
16332 2002-03-11 Richard Henderson <rth@redhat.com>
16334 * rtlanal.c: Include recog.h.
16335 (keep_with_call_p): Fix thinko.
16336 * Makefile.in (rtlanal.o): Update dependencies.
16338 2002-03-11 Chris Meyer <cmeyer@gatan.com>
16340 * genflags.c (gen_insn): Use IS_VSPACE.
16341 * genoutput.c (output_insn_data): Likewise.
16342 (process_template): Likewise.
16344 2002-03-11 Richard Henderson <rth@redhat.com>
16346 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
16348 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
16350 * Makefile.in: Update.
16351 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
16352 Update documentation.
16353 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
16354 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
16356 2002-03-11 Zack Weinberg <zack@codesourcery.com>
16358 * Makefile.in: Give texi2pod its input file as a command line
16359 argument, not on stdin.
16361 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
16362 Daniel Berlin <dan@dberlin.org>
16364 C++ alias analysis improvement.
16365 * alias.c (record_component_aliases): Record aliases for base
16368 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
16370 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
16372 2002-03-11 Douglas B Rupp <rupp@gnat.com>
16374 * toplev.c (vms_fopen): Remove, not needed.
16376 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
16378 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
16380 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
16381 for FP, already done later.
16383 * toplev.c (debug_args): Add entry for VMS_DEBUG.
16384 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
16386 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
16388 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
16389 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
16390 LARGEST_EXPONENT_IS_NORMAL for the given mode.
16391 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
16392 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
16393 (ediv, emul, eldexp, esqrt): Likewise.
16394 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
16395 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
16396 (saturate): New function.
16397 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
16398 (make_nan): Use a saturation value instead of a NaN if
16399 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
16400 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
16401 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
16402 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
16403 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
16404 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
16405 !ROUND_TOWARDS_ZERO.
16406 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
16407 (ROUND_TOWARDS_ZERO): Document.
16409 2002-03-11 Andreas Jaeger <aj@suse.de>
16411 * cfg.c (dump_flow_info): Remove unused variable.
16413 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
16415 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
16416 computations on trees.
16418 2002-03-10 Richard Henderson <rth@redhat.com>
16421 * reload.c (copy_replacements_1): New.
16422 (copy_replacements): Use it to recurse through the rtx.
16424 2002-03-10 Richard Henderson <rth@redhat.com>
16426 * loop.c (strength_reduce): Compute number of iterations as
16427 unsigned HOST_WIDE_INT.
16429 2002-03-10 Richard Henderson <rth@redhat.com>
16431 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
16432 to move away from the end of the block.
16434 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
16436 PR preprocessor/5899
16437 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
16439 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16441 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
16443 * attribs.c (decl_attributes): Fix signed/unsigned warning.
16445 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
16447 * config/mmix/mmix.c: Improve comments.
16448 (mmix_target_asm_function_prologue): Drop variable
16449 empty_stack_frame. Don't allocate unused slot above fp.
16450 (mmix_target_asm_function_epilogue): Mirror prologue changes.
16451 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
16452 brace in first column.
16453 (enum reg_class): Ditto.
16454 (FIRST_PARM_OFFSET): Now 0.
16455 (USER_LABEL_PREFIX): Remove #if 0:d definition.
16457 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16459 * combine.c (make_extraction): Fix error in last change.
16461 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16463 * c4x.c (c4x_fp_reglist): Const-ify.
16464 * cris.c (cris_print_operand): Likewise.
16465 * i386.c (ix86_va_arg): Likewise.
16466 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
16467 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
16468 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
16469 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
16470 * mcore.h (regno_reg_class): Likewise.
16471 * mips.c (gen_int_relational): Likewise.
16472 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
16473 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
16474 * pdp11.c (move_costs): Likewise.
16475 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
16476 * s390.c (s390_branch_condition_mnemonic, regclass_map):
16478 * s390.h (regclass_map): Likewise.
16479 * sh.c (shift_amounts): Likewise.
16480 * sh.md (rotlsi3): Likewise.
16482 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16484 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
16485 (ne0+5): Use new clobber to generate proper shift pattern.
16486 Patch by Michael Matz <matz@kde.org>.
16488 2002-03-09 Andreas Schwab <schwab@suse.de>
16490 * gcc.c (validate_all_switches): Also handle `%W{...}'.
16492 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16494 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
16496 2002-03-09 Jakub Jelinek <jakub@redhat.com>
16499 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
16500 even for non-representable constants.
16502 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16504 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
16505 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
16506 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
16507 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
16508 (pop_function_context): Compute MAY_SHARE parameter for
16510 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
16511 (gen_mem_addressof): Call fixup_var_refs with new parm.
16513 * combine.c (make_extraction): Don't make extension of CONST_INT.
16515 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16517 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
16518 in o32 and o64 ABIs.
16519 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
16520 but getting fixed-size structs passed in registers regardless of
16521 padding in o32 and o64 ABIs.
16523 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
16524 offset before loading address of argument passed by transparent
16527 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
16529 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
16531 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16533 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
16534 marker such that registers after it are saved.
16536 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16538 * sparc.c (arith_4096_operand): Fix error in last change.
16540 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16542 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16543 defaults for MEABI.
16545 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16547 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16550 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16552 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
16554 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
16556 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16557 removed; fix return value.
16558 * combine.c (combine_instructions): Dirtify blocks where we failed to
16559 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16560 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16562 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16564 * gcse.c (insert_insn_end_bb): Fix typo in last change.
16566 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
16568 * recog.c (peephole2_optimize): Re-distribute EH edges.
16570 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
16572 * expr.c (expand_expr): Use unsave lang hook.
16573 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16574 (LANG_HOOKS_INITIALIZER): Update.
16575 * langhooks.h (struct lang_hooks): New hook unsave.
16576 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16577 (unsave_expr_1): Remove unused lang_unsave_expr_now.
16578 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
16579 (unsave_expr_now): Remove.
16580 * tree.h (unsave_expr_now, lang_unsave,
16581 lang_unsave_expr_now): Remove.
16584 2002-03-08 Andreas Jaeger <aj@suse.de>
16586 * flow.c (propagate_block_delete_insn): Remove unused variable.
16588 2002-03-08 Kazu Hirata <kazu@hxi.com>
16590 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16591 insn length for memory load/store.
16593 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
16595 * doc/install.texi (--with-libiconv-prefix): Document.
16597 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
16599 * doc/sourcebuild.texi: Fix typo.
16601 2002-03-08 Jakub Jelinek <jakub@redhat.com>
16604 * builtins.c (std_expand_builtin_va_arg): Do all computations on
16607 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16609 * rtl.c (copy_most_rtx): Move from here ...
16610 * emit-rtl.c (copy_most_rtx): ... to here.
16612 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16614 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16615 SUBTARGET_CPP_SIZE_SPEC.
16616 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16618 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16620 2002-03-07 Matt Hiller <hiller@redhat.com>
16622 * gensupport.c (first_dir_md_include): Renamed from include;
16623 change all references.
16624 (last_dir_md_include): Renamed from last_include; change all
16626 (init_md_reader): Unconditionally initialize base_dir whether or
16627 not filename is a relative path.
16629 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
16631 * config/fp-bit.c (_unord_f2): Compile it in even if
16632 US_SOFTWARE_GOFAST is enabled.
16634 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16635 NULL_RTX. Set all HFmode operations as NULL_RTX.
16636 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16637 NULL_RTX, try reversing the comparison and the operands.
16639 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16641 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16642 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16645 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
16647 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16649 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16651 * basic-block.h (fixup_abnormal_edges): Declare.
16652 * reload1.c (fixup_abnormal_edges): New function.
16653 * reg-stack.c (convert_regs): Use it.
16655 * gcse.c (insert_insn_end_bb): Handle trapping insns.
16657 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16659 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
16661 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16662 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16663 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16664 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16665 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16666 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16667 unless x and y could be infinite.
16668 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16669 Check that the common type of both arguments is a real, even for
16670 targets without unordered comparisons. Allow an integer argument
16671 to be compared against a real.
16672 (expand_tree_builtin): Use expand_unordered_cmp.
16673 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16674 * cse.c (fold_rtx): Likewise. Fix indentation.
16675 * fold-const.c (fold_real_zero_addition_p): New.
16676 (fold): Use it, and the new HONOR_... macros.
16677 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16678 * jump.c (reversed_comparison_code_parts): After searching for
16679 the true comparison mode, use HONOR_NANS to decide whether it
16680 can be safely reversed.
16681 (reverse_condition_maybe_unordered): Remove IEEE check.
16682 * simplify-rtx.c (simplify_binary_operation): Use the new macros
16683 to decide which simplifications are valid. Allow the following
16684 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16685 and (a - -b) to (a + b).
16686 (simplify_relational_operation): Use HONOR_NANS.
16687 * doc/tm.texi: Document the MODE_HAS_... macros.
16689 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
16691 * combine.c (simplify_comparison): If simplifying a logical shift
16692 right and compare with constant, force the comparison to unsigned.
16694 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
16696 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
16698 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16700 (alt_reg_names): Remove % for vrsave.
16702 2002-03-06 Richard Henderson <rth@redhat.com>
16704 PR optimization/5844
16705 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
16706 if used indicates we've already emitted one copy of an operand.
16707 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16708 (gen_split): Supply a non-null used.
16710 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16712 * reload1.c (reload): Unshare all rtl after reload is done.
16714 * simplify-rtx.c (simplify_plus_minus): Do not abort,
16715 but simply fail if the expression is too complex to simplify.
16716 (simplify_gen_binary): Handle simplify_plus_minus failures.
16718 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
16720 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16721 consistently call delete_trivially_dead_insns after CSE and GCSE;
16722 fix DFI_life dumping; do jump threading after liveness; do crossjumping
16723 after liveness2; update comment in last crossjumping.
16724 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16726 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
16728 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16729 after completing fast dead code elimination.
16731 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16734 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
16736 * version.c: Fix misplaced leading blanks on first line.
16738 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
16740 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16742 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
16744 * cfgcleanup.c (mentions_nonequal_regs): New function.
16745 (thread_jump): Use it.
16746 * toplev.c (rest_of_compilation): Run jump threading after
16749 2002-03-06 Jakub Jelinek <jakub@redhat.com>
16751 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16754 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
16756 * predict.c (estimate_bb_frequencies): Do not reload the
16757 frequencies from notes.
16759 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
16761 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16762 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16764 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16765 delete_noop_moves): Return indeger.
16766 * flow.c (ndead): New variable.
16767 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16768 BB argument; update callers.
16769 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16770 (life_analysis): Do not call purge_all_dead_edges.
16771 (update_life_info): Return number of deleted insns; print statistics.
16772 (update_life_info_in_dirty_blocks): likewise.
16773 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16774 return number of insns deleted.
16776 * cse.c: Include timevar.h
16777 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16778 iterate until stabilizes; print statistics; return number of killed
16780 * Makefile.in: (cse.o): Add timevar.h dependency
16781 * rtl.h (delete_trivially_dead_insns): New.
16782 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16783 * toplev.c (rest_of_compilation): Update callers.
16785 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16786 (try_optimize_cfg): Do not update liveness.
16787 (cleanup-cfg): Loop until try_optimize_cfg and dead code
16788 removal stabilizes; use delete_trivially_dead_insns.
16790 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16792 2002-03-05 Zack Weinberg <zack@codesourcery.com>
16794 * cppmain.c (setup_callbacks): Disable #pragma and #ident
16795 callbacks when processing assembly language.
16797 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16799 * pa.h (ASM_FILE_END): Define.
16800 * som.h (ASM_FILE_END): Delete.
16802 * pa.c (function_arg): Don't pass floats in general registers in
16803 indirect calls if TARGET_ELF32.
16805 2002-03-05 Richard Henderson <rth@redhat.com>
16807 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16809 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
16811 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16813 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16815 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16816 -r command line. Don't hide any symbols if not building
16819 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
16821 * cfg.c (dump_flow_info): Warn about profile mismatches.
16822 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16823 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16825 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16827 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16828 wide volatile memory by parts.
16830 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16832 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16835 2002-03-05 Richard Henderson <rth@redhat.com>
16837 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
16839 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16841 * toplev.c (documented_lang_options): Document more
16842 language-specific options.
16843 * doc/invoke.texi (Warning Options): Correct documentation for
16844 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16845 * c-decl.c (c_decode_option): Use a table to handle warning options.
16847 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
16849 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16850 parameter to mmix_encode_section_info.
16851 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16852 relocatably. Always produce ELF, not mmo if linking relocatably.
16853 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16854 first is non-zero, don't add symbol prefix.
16855 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16856 prototype accordingly.
16858 2002-03-04 Krister Walfridsson <cato@df.lth.se>
16860 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16862 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
16864 * configure.in: Increase required makeinfo version to 4.1.
16865 * configure: Regenerate.
16867 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16869 * .cvsignore: Remove *.info* and genrtl*; these files are generated
16872 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
16874 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16875 * doc/invoke.texi: Fix @math uses.
16877 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16879 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16882 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
16884 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16885 (powerpc-*-eabisimaltivec*): Same.
16887 * config/rs6000/t-ppcendian: New.
16889 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16891 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16892 nonimmediate_src_operand and nonimmediate_lsrc_operand to
16893 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16895 2002-03-03 Richard Henderson <rth@redhat.com>
16897 * toplev.c (rest_of_decl_compilation): Revert last two changes.
16899 2002-03-03 Zack Weinberg <zack@codesourcery.com>
16901 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16902 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16903 tree.c, config/m68k/m68k.c:
16904 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16905 REAL_ARITHMETIC blocks unconditional. Delete some further
16906 #ifdef blocks predicated on REAL_ARITHMETIC.
16907 * flags.h, toplev.c: Delete remaining references to
16908 flag_pretend_float.
16910 * doc/invoke.texi: Remove documentation of -fpretend-float.
16911 * doc/tm.texi: Describe the various REAL_* macros as provided by
16912 real.h, not by the target configuration files.
16914 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16915 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16916 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16917 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16918 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16919 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16920 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16921 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16922 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16923 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16924 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16925 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16926 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16927 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16928 config/xtensa/xtensa.h:
16929 Do not define, undefine, or mention in comments any of
16930 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16931 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16932 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16933 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16934 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16935 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16936 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16937 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16938 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16940 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16942 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16943 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16944 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16945 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16946 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16947 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16949 * defaults.h (BITS_PER_WORD): Define.
16950 * doc/tm.texi (BITS_PER_WORD): Document default value.
16952 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16953 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16954 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
16956 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16958 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
16959 lieu of explicit sizeof/sizeof.
16960 * i386.c (override_options, ix86_init_mmx_sse_builtins,
16961 ix86_expand_builtin): Likewise.
16962 * mips.c (mips_add_gc_roots): Likewise.
16963 * mmix.c (mmix_output_condition): Likewise.
16964 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
16965 altivec_init_builtins): Likewise.
16966 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
16967 * cppexp.c (Nsuff, parse_number): Likewise.
16968 * cppinit.c (builtin_array_end): Likewise.
16969 * gcc.c (n_default_compilers, process_command): Likewise.
16970 * genpreds.c (output_predicate_decls): Likewise.
16971 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
16972 * lcm.c (N_ENTITIES): Likewise.
16973 * stor-layout.c (set_sizetype): Likewise.
16975 2002-03-03 Richard Henderson <rth@redhat.com>
16977 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
16978 for types or labels.
16980 2002-03-03 Richard Henderson <rth@redhat.com>
16982 * c-decl.c (start_decl): Initialized variables are not common.
16984 2002-03-02 Per Bothner <per@bothner.com>
16986 * gcc.c (option_map): Suport new --bootclasspath option.
16987 --CLASSPATH is now just an alias for --classpath.
16989 2002-03-02 Richard Henderson <rth@redhat.com>
16991 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
16992 load if "internal" visibility.
16993 * doc/extend.texi: Document visibility meanings.
16995 2002-03-02 Richard Henderson <rth@redhat.com>
16997 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
16998 to functions as well.
17000 2002-03-02 Richard Henderson <rth@redhat.com>
17002 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
17003 (handle_visibility_attribute): Don't call assemble_visibility.
17004 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
17005 without asmspec. Invoke assemble_alias when needed.
17006 * varasm.c (maybe_assemble_visibility): New.
17007 (assemble_start_function, assemble_variable, assemble_alias): Use it.
17009 2002-03-02 Richard Henderson <rth@redhat.com>
17011 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
17012 invoke ENCODE_SECTION_INFO with first call flag.
17014 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
17015 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
17016 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
17017 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
17018 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
17019 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
17020 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
17021 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
17022 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
17023 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
17024 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
17025 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
17026 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
17027 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
17028 config/mcore/mcore-protos.h, config/mcore/mcore.c,
17029 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
17030 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
17031 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
17032 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
17033 config/sh/sh.h, config/sparc/sparc.h,
17034 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
17035 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
17036 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
17037 FIRST argument. As needed, examine it and do nothing.
17039 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
17040 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17041 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
17043 * config/arm/t-pe (pe.o): Add dependencies.
17045 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17047 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
17048 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
17049 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
17050 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
17051 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
17052 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
17053 * defaults.h (BITS_PER_UNIT): Define.
17054 * doc/tm.texi (BITS_PER_UNIT): Document default value.
17056 2002-03-02 Kazu Hirata <kazu@hxi.com>
17058 * config/h8300/h8300-protos.h: Add a prototype for
17059 compute_a_shift_length.
17060 * config/h8300/h8300.c (h8300_asm_insn_count): New.
17061 (compute_a_shift_length): Likewise.
17062 (h8300_adjust_insn_length): Do not adjust insn length of shift
17064 * config/h8300/h8300.md (anonymous shift patterns): Use
17065 compute_a_shift_length.
17067 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17069 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
17070 trunc_int_for_mode.
17072 * emit-rtl.c (offset_address): Call update_temp_slot_address.
17074 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17076 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
17077 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
17078 * flags.h (flag_zero_initialized_in_bss): Declare.
17079 * toplev.c (flag_zero_initialized_in_bss): New flag.
17080 (lang_independent_options): Add flag_zero_initialized_in_bss.
17081 * tree.c (initializer_zerop): New function.
17082 * tree.h (initializer_zerop): Declare.
17083 * varasm.c (assemble_variable): If we can emit bss, put zero
17084 initializers in the bss section.
17086 2002-03-02 Alan Modra <amodra@bigpond.net.au>
17088 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
17089 like more than one symbol per .weak directive.
17091 2002-03-01 Richard Henderson <rth@redhat.com>
17093 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
17094 adjust argument_pointer by pretend_args_size.
17095 (ia64_va_start): Adjust va_start address by -pretend_args_size.
17097 2002-03-01 Kazu Hirata <kazu@hxi.com>
17099 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
17101 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
17103 * toplev.c (rest_of_compilation): Delete dead jumptables before
17105 * flow.c (delete_dead_jumptables): Make global.
17106 * rtl.h (delete_dead_jumptables): Declare.
17108 2002-03-01 David Edelsohn <edelsohn@gnu.org>
17110 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
17111 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
17112 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
17114 2002-03-01 Kazu Hirata <kazu@hxi.com>
17116 * config/h8300/h8300-protos.h: Fix formatting.
17117 * config/h8300/h8300.c: Likewise.
17118 * config/h8300/h8300.h: Likewise.
17120 2002-03-01 Kazu Hirata <kazu@hxi.com>
17122 * config/h8300/h8300.c (print_operand): Support 16-bit
17123 constant addresses.
17124 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
17126 2002-02-28 Richard Henderson <rth@redhat.com>
17128 * expmed.c (store_bit_field): Prevent generation of CONCATs;
17129 pun complex values as integers; use gen_lowpart instead of
17131 (extract_bit_field): Likewise.
17133 2002-03-01 Alan Modra <amodra@bigpond.net.au>
17134 David Edelsohn <edelsohn@gnu.org>
17136 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
17137 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
17138 (SUPPORTS_WEAK): Likewise.
17139 * output.h (add_weak): Add tree param.
17140 * varasm.c (add_weak): Likewise. Save decl.
17141 (struct weak_syms): Add decl field.
17142 (mark_weak_decls): New function.
17143 (init_varasm_once): ggc_add_root mark_weak_decls.
17144 (assemble_start_function): Use ASM_WEAKEN_DECL.
17145 (assemble_variable): Likewise.
17146 (assemble_alias): Likewise.
17147 (declare_weak): Pass decl to add_weak.
17148 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
17149 (remove_from_pending_weak_list): Declare and define for
17151 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
17152 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
17153 * defaults.h (SUPPORTS_WEAK): Likewise.
17154 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
17155 .weak for code sym. Do emit .size for descriptor sym.
17156 (ASM_DECLARE_FUNCTION_SIZE): Define.
17157 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
17158 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
17159 .lglobl unless TARGET_XCOFF. Formatting fixes.
17160 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
17161 .weak for code sym.
17162 (HANDLE_PRAGMA_WEAK): Remove.
17163 (ASM_WEAKEN_LABEL): Remove.
17164 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
17166 2002-03-01 Jason Merrill <jason@redhat.com>
17168 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
17169 (TARGET_EXPR_CLEANUP): New macro.
17171 2002-02-28 Steve Ellcey <sje@cup.hp.com>
17173 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
17174 to take ptr_extend into account as third type of extension.
17175 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
17176 fields used by SUBREG_PROMOTED_UNSIGNED_P.
17177 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
17178 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
17179 * calls.c (precompute_arguments): Use new macro.
17180 (expand_call): Ditto.
17181 * combine.c (nonzero_bits): Ditto.
17182 (record_promoted_value): Ditto.
17183 * expr.c (store_expr): Ditto.
17184 (expand_expr): Ditto.
17185 * function.c (assign_parms): Ditto.
17187 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
17189 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
17190 override -shared and -shared-libgcc.
17192 2002-02-28 David O'Brien <obrien@FreeBSD.org>
17194 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
17196 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
17199 2002-02-28 Richard Henderson <rth@redhat.com>
17201 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
17202 4 cycle latency from MM producers.
17203 (ia64_internal_sched_reorder): Likewise with pipeline flush.
17205 2002-02-28 Jakub Jelinek <jakub@redhat.com>
17207 * mklibgcc.in: Don't use GNU make extension.
17209 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17211 * c-parse.in (STATIC): New terminal.
17212 (scspec): New non-terminal. Update productions accordingly.
17213 (program): Remove bogus ifc / end ifc.
17214 (array_declarator): Simplify production using STATIC.
17216 2002-02-28 Jim Meyering <meyering@lucent.com>
17218 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
17219 \a still means TARGET_BELL.
17221 2002-02-28 Richard Henderson <rth@redhat.com>
17223 * haifa-sched.c (sched_emit_insn): New.
17224 (schedule_block): Use last_scheduled_insn to track last insn.
17225 * sched-int.h (sched_emit_insn): Prototype.
17226 * config/ia64/ia64.c (last_issued): Remove.
17227 (ia64_variable_issue): Don't set it.
17228 (nop_cycles_until): Use sched_emit_insn.
17230 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
17232 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
17233 extended constants.
17235 2002-02-28 Kazu Hirata <kazu@hxi.com>
17237 * config/h8300/h8300.c: Fix formatting.
17238 * config/h8300/h8300.h: Likewise.
17240 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
17242 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
17243 which may overwrite the high byte of the frame pointer.
17245 2002-02-28 Bo Thorsen <bo@suse.de>
17247 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
17248 (STARTFILE_SPEC): Add 64 bit files.
17249 (ENDFILE_SPEC): Likewise.
17251 2002-02-28 Jason Merrill <jason@redhat.com>
17253 * c-decl.c (finish_function): Only warn about missing return
17254 statement with -Wreturn-type.
17256 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
17258 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
17260 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
17261 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
17263 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
17265 * basic-block.h (BB_REACHABLE): Renumber.
17266 (BB_DIRTY, BB_NEW): New flags.
17267 (clear_bb_flags): Declare.
17268 (update_life_info_in_dirty_blocks): Declare.
17269 * cfg.c (clear_bb_flags): New function.
17270 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
17271 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
17272 reorder_insns, emit_insn_after): Mark block as dirty.
17273 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
17274 (update_life_info_in_dirty_blocks): New function.
17275 * recog.c (apply_change_group): Dirtify block.
17277 * cse.c (cse_insn): Reorder emitting of jump insn to keep
17279 * gcse.c (delete_null_pointer_checks): Likewise.
17281 * toplev.c (dump_file_index): Move cse2 after bp,
17283 (dump_file_info): Similary.
17284 (rest_of_compilation): Avoid most of CFG rebuilds;
17285 do first if converision after null pointer checks, do cse2
17286 after branch prediction; avoid full liveness rebuild after
17287 initializing subregs.
17288 * invoke.texi (-d options): Document -du, renumber.
17290 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
17291 (notice_new_block): Do not set BB_UPDATE_LIFE.
17292 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
17293 merge_blocks_move_successor_nojumps, merge_blocks,
17294 try_crossjump_to_edge): Likewise.
17295 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
17296 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
17297 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
17298 (merge_of_block): Do not use life_data_ok.
17299 (find_if_case_1): Do not use SET_UPDATE_LIFE.
17300 (if_convert): Use BB_DIRTY mechanizm to update life.
17301 * lcm.c (optimize_mode_switching): Update
17302 update_life_info_in_dirty_blocks
17304 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17306 * Makefile.in (integrate.o): Update.
17307 * c-decl.c (copy_lang_decl): Rename.
17308 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17309 * integrate.c: Include langhooks.h.
17310 (copy_decl_for_inlining): Update to use langhook.
17311 * langhooks-def.h (lhd_do_nothing_t,
17312 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
17313 (LANG_HOOKS_INITIALIZER): Update.
17314 * langhooks.c (lhd_do_nothing_t): New.
17315 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
17316 * tree.h (copy_lang_decl): Remove.
17318 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17320 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
17322 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
17323 POST_DEC, and POST_MODIFY.
17325 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17327 * c-typeck.c (digest_init): Remove unused parameter; all
17330 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
17332 * expmed.c (expand_shift): Correctly test for low part of a
17335 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17337 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
17338 insn UIDs with insn addresses.
17340 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17342 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
17343 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
17344 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
17345 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
17346 gcc.c, toplev.c: Delete code implementing -traditional mode.
17348 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
17349 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
17350 Document removal of -traditional mode for compilation, and
17351 remove documentation only relevant to that mode.
17353 * config/nextstep.h, config/ptx4.h, config/svr4.h,
17354 config/convex/convex.h, config/d30v/d30v.h,
17355 config/i386/dgux.h, config/i386/osf1elf.h,
17356 config/i386/osfelf.h, config/i386/osfrose.h,
17357 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
17358 config/m68k/hp310.h, config/m88k/dgux.h,
17359 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
17360 config/m88k/m88k.h, config/m88k/openbsd.h,
17361 config/mips/abi64.h, config/mips/osfrose.h,
17362 config/mips/svr4-5.h, config/mips/svr4-t.h,
17363 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17364 config/stormy16/stormy16.h: Remove all references to
17365 -traditional from target specs. Delete all mention of the
17366 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
17367 delete a couple of commented-out definitions of
17368 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
17371 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
17372 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
17374 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17376 * mklibgcc.in: Don't use \n in a line subject to
17377 interpretation by echo.
17379 2002-02-27 Graham Stott <grahams@redhat.com>
17381 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
17384 * loop.c (prescan_loop): Handle PARALLEL.
17386 * unroll.c (loop_iterations): Return 0 if the add_val for
17389 * final.c (output_operand_lossage): Constify PFX_STR.
17391 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
17393 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
17395 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
17396 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
17398 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
17400 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17402 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
17404 * cpplex.c (_cpp_lex_token): Handle directives in macro
17406 * cpplib.c (_cpp_handle_directive): Save and restore state
17407 if parsing macro args when entering a directive.
17408 * cppmacro.c (collect_args): No need to handle directives
17409 in macro arguments.
17410 (enter_macro_context, replace_args): Use the original macro
17411 definition in case it was redefined whilst collecting arguments.
17413 * cpp.texi: Update.
17415 2002-02-26 David Edelsohn <edelsohn@gnu.org>
17417 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
17418 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
17419 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
17421 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
17422 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
17423 (load_toc_v4_PIC_2): Same.
17425 2002-02-26 Alan Modra <amodra@bigpond.net.au>
17427 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
17429 2002-02-26 Richard Henderson <rth@redhat.com>
17431 * config/alpha/alpha.md (ashldi_se): Re-enable.
17433 2002-02-26 Richard Henderson <rth@redhat.com>
17435 * config/alpha/alpha.c (alpha_encode_section_info): Examine
17436 MODULE_LOCAL_P; improve commentary.
17438 2002-02-26 Zack Weinberg <zack@codesourcery.com>
17440 * doc/cpp.texi: Clarify documentation of relationship between
17441 #line and #include.
17443 2002-02-26 Kazu Hirata <kazu@hxi.com>
17445 * config/h8300/h8300-protos.h: Update the prototype for
17446 compute_logical_op_length. Add the prototype for
17447 compute_logical_op_cc.
17448 * config/h8300/h8300.c (compute_logical_op_length): Figure out
17449 code from operands.
17450 (compute_logical_op_cc): New.
17451 * config/h8300/h8300.md: Combine all the logical op patterns
17452 in HImode and SImode. Use compute_logical_op_cc.
17454 2002-02-26 Kelley Cook <kelleycook@comcast.net>
17456 * config/i386/i386.c (print_operand): Don't append ATT-style
17457 length suffixs to x87 opcodes when in Intel mode.
17459 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
17461 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
17462 (init_emit_once): Update calls.
17463 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
17464 (init_syntax_once): Prototype.
17466 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
17468 * pa-linux.h (LIB_SPEC): Update definition.
17469 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17471 2002-02-26 Richard Henderson <rth@redhat.com>
17473 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
17474 if we emitted a stop bit.
17476 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17478 * configure.in (libgcc_visibility): Substitute.
17479 * configure: Rebuilt.
17480 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
17481 defined symbols .hidden.
17483 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17485 * attribs.c (c_common_attribute_table): Add visibility.
17486 (handle_visibility_attribute): New function.
17487 * varasm.c (assemble_visibility): New function.
17488 * output.h (assemble_visibility): Add prototype.
17489 * tree.h (MODULE_LOCAL_P): Define.
17490 * crtstuff.c (__dso_handle): Use visibility attribute.
17491 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
17492 for MODULE_LOCAL_P symbols too.
17493 * config/ia64/ia64.c (ia64_encode_section_info): Handle
17494 MODULE_LOCAL_P symbols the same way as local symbols.
17495 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
17496 into .sdata/.sbss by the user.
17497 * doc/extend.texi (Function Attributes): Document visibility
17500 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17503 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
17504 STRING_CST initializer spanning the whole variable without
17506 If expand_expr returned MEM, don't use it.
17508 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
17510 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
17511 generate a die for the lexical block.
17513 2002-02-26 Kazu Hirata <kazu@hxi.com>
17515 * config/h8300/h8300-protos.h: Add a prototype for
17516 compute_logical_op_length.
17517 * config/h8300/h8300.c (compute_logical_op_length): New.
17518 * config/h8300/h8300.md (anonymous logical patterns): Use
17519 compute_logical_op_length for length.
17521 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17523 * dwarf2out.c (modified_type_die): Do not call type_main_variant
17525 (gen_type_die): Same.
17527 * attribs.c (handle_vector_size_attribute): Set debug information.
17529 2002-02-26 Daniel Egger <degger@fhm.edu>
17531 * config/rs6000/rs6000.md: Swap define_insn attributes to
17532 fix incorrect generation of merge high instructions instead
17535 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17537 * c-typeck.c (really_start_incremental_init): Use
17538 bitsize_zero_node for vectors.
17540 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17542 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17543 ("*set_vrsave_internal"): Same.
17545 2002-02-25 Richard Henderson <rth@redhat.com>
17547 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17548 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
17550 2002-02-25 Jakub Jelinek <jakub@redhat.com>
17553 * config/i386/i386.c (ix86_return_pops_args): Only pop
17554 fake structure return argument if it was passed on the stack.
17556 2002-02-25 Jason Merrill <jason@redhat.com>
17558 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17561 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17563 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17564 link with shared_name only.
17565 * doc/invoke.texi (Link Options): Document new behavior.
17567 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17569 * c-typeck.c (push_init_level): Handle vectors.
17571 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17573 * config/sparc/sparc.c (const64_high_operand): Zero-extend
17574 operands of SPARC_SETHI_P.
17575 (input_operand): Likewise.
17576 (sparc_emit_set_const32): Likewise.
17577 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17578 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17579 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
17580 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17581 (movdi_insn_sp64_vis): Likewise.
17582 (movdi split, movdf split): Use SETHI32.
17583 * doc/md.texi: Document SPARC constraints L, M and N.
17585 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17587 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17588 ("*set_vrsave_internal"): use mfspr for Darwin.
17590 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17591 gen_get_vrsave_internal.
17593 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17595 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17597 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
17599 * cpplex.c (cpp_interpret_charconst): Get signedness or
17600 otherwise of wide character constants correct.
17601 * cppexp.c (lex): Get signedness of wide charconsts correct.
17603 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17605 * optabs.c (widen_operand): Only call convert_modes for
17606 promoted SUBREG if signedness matches.
17607 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17609 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17611 * cpplib.c (glue_header_name): Use local buffer to build up
17614 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17616 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17618 2002-02-23 Kazu Hirata <kazu@hxi.com>
17620 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17621 H8/300[HS] separately.
17622 * config/h8300/h8300.md: Remove the early clobber constraint
17623 from bit field patterns.
17625 2002-02-23 Kazu Hirata <kazu@hxi.com>
17627 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17629 (mulhisi3): Likewise.
17630 (umulqisi3): Likewise.
17631 (umulhisi3): Likewise.
17633 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17635 * cppinit.c (output_deps): Correct test for stdout output.
17636 (init_dependency_output): Cure warning.
17638 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17640 * expr.c (store_expr): When converting expression to promoted
17641 equivalent type, allow using SUBREG_REG of TARGET as the target
17642 of the expansion of EXP.
17643 * loop.c (basic_induction_var, case SUBREG): Always look inside.
17644 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17645 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17646 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17647 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17649 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
17651 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17652 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17653 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17655 2002-02-23 Jakub Jelinek <jakub@redhat.com>
17657 PR optimization/5747
17658 * loop.c (scan_loop): Update reg info if move_movables created new
17661 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17663 * gcc.c (init_gcc_spec): Revert last change.
17665 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17667 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17668 gpc_reg_operand constraint.
17670 2002-02-23 Alan Modra <amodra@bigpond.net.au>
17672 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17673 Simplify comparison of `low'.
17674 (add_operand): Fix formatting.
17675 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
17676 (mask_operand): Disallow mask to wrap in 64-bit mode.
17677 (rs6000_stack_info): Remove redundant test setting push_p.
17678 (output_toc): Fix formatting.
17679 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17680 cc_reg_not_cr0_operand constraint.
17681 (booldi3, boolcdi3 splitters): Same.
17683 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
17685 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
17687 2002-02-22 David Edelsohn <edelsohn@gnu.org>
17689 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17690 gcc invoked with -shared-libgcc.
17692 2002-02-22 Jakub Jelinek <jakub@redhat.com>
17695 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17696 decl if any of elements was TREE_USED.
17698 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
17700 * config/sparc/sol2.h: Don't include sys/mman.h.
17701 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17702 (arith_4096_operand): Don't throw high bits away.
17703 (const64_operand): Take sign extension of CONST_INTs into account.
17704 (const64_high_operand, sparc_emit_set_const32): Likewise.
17705 (GEN_HIGHINT64): Likewise.
17706 (sparc_emit_set_const64_quick1): Likewise.
17707 (const64_is_2insns): Likewise.
17708 (print_operand): Use trunc_int_for_mode for sign extension.
17709 * config/sparc/sparc.h (SMALL_INT32): Likewise.
17710 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17711 chars. Assume CONST_INT is already properly sign-extended.
17712 (movdi split): Sign-extend each SImode part.
17713 (andsi3 split): Don't mask high bits off, so that result
17714 remains properly sign-extend.
17715 (iorsi3 split): Likewise.
17716 (xorsi3 split): Likewise.
17718 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
17720 * fold-const.c (fold): Fix typo in comments.
17722 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17724 * Makefile.in (langhooks.o): Update dependencies.
17726 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17728 * langhooks.c: Include flags.h.
17730 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
17732 * testsuite/gcc.dg/attr-alwaysinline.c: New.
17734 * c-common.c (c_common_post_options): Set inline trees by
17737 * doc/extend.texi (Function Attributes): Document always_inline
17739 Update documentation about inlining when not optimizing.
17741 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17743 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17744 unless DECL_ALWAYS_INLINE.
17746 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17747 unless DECL_ALWAYS_INLINE.
17748 (c_disregard_inline_limits): Disregard if always_inline set.
17750 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17751 Disregard if always_inline set.
17752 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17753 unless DECL_ALWAYS_INLINE.
17755 * attribs.c (handle_always_inline_attribute): New.
17756 (c_common_attribute_table): Add always_inline.
17758 * config/rs6000/altivec.h: Add prototypes for builtins
17759 requiring the always_inline attribute.
17761 2002-02-21 Eric Christopher <echristo@redhat.com>
17763 * expmed.c (store_bit_field): Try to simplify the subreg
17764 before generating a new one when when the mode size of
17765 value is less than maxmode.
17767 2002-02-21 Richard Henderson <rth@redhat.com>
17769 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17770 than gen_rtx_PLUS to form the sum.
17771 * explow.c (force_reg): Rearrange to not allocate new pseudo
17772 when force_operand returns a register.
17773 * expr.c (expand_assignment): Allow offset_rtx expansion to
17774 return a sum. Do not force addresses into registers.
17775 (expand_expr): Likewise.
17776 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17777 to canonicalize arithmetic that didn't simpify.
17778 (simplify_plus_minus): New argument force; update
17779 all callers. Don't split CONST unless we can do something with it,
17780 and wouldn't lose the constness of the operands.
17782 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17783 that we generated earlier.
17785 2002-02-21 Tom Tromey <tromey@redhat.com>
17787 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17788 (output_line_info): Use constant `1', with a long explanatory
17790 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17792 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
17794 * jump.c (redirect_jump): If old label has no UID, don't try to
17797 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
17799 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17800 If input is constant, do shifts at compile time.
17802 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
17804 * doc/extend.texi: Fix some more overfull hboxes.
17806 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17808 PR optimization/4994
17809 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17812 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17815 * expr.h (expand_and): Add mode argument.
17816 * expmed.c (expand_and): Add mode argument.
17817 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17818 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17819 * except.c (expand_builtin_extract_return_addr): Likewise.
17820 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17821 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17822 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17823 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17824 * config/c4x/c4x.md: Use GEN_INT (x) instead of
17825 gen_rtx (CONST_INT, VOIDmode, x).
17827 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17830 * stmt.c (warn_if_unused_value): Move side effects test once more.
17832 2002-02-20 Torbjorn Granlund <tege@swox.com>
17834 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
17835 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
17837 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
17839 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17840 SUBREG or ZERO_EXTEND.
17842 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
17844 * sh.h (current_function_anonymous_args): Remove.
17845 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17846 of current_function_varargs and current_function_stdarg is set.
17847 * sh.c (sh_expand_prologue): Check current_function_varargs /
17848 current_function_stdarg / TARGET_SH5 instead of
17849 current_function_anonymous_args.
17851 * sh64.h (TARGET_VERSION): Define.
17853 2002-02-20 David Edelsohn <edelsohn@gnu.org>
17855 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17856 VRSAVE_REGNO on TARGET_ALTIVEC.
17858 2002-02-20 Alan Modra <amodra@bigpond.net.au>
17860 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17861 bits of SImode const_int.
17862 (includes_rshift_p): Likewise.
17863 (print_operand): Call mask_operand and mask64_operand with correct
17865 (rs6000_output_function_epilogue): Pad traceback table to word.
17866 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17867 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17868 mask64_operand with correct mode.
17869 (FUNCTION_ARG_REGNO_P): Correct parentheses.
17871 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17874 * varasm.c (get_pool_constant_mark): New.
17875 * rtl.h (get_pool_constant_mark): Add prototype.
17876 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17877 be represented if it has not been output.
17879 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17881 * combine.c (do_SUBST): Sanity check substitutions of
17882 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17883 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17884 CONST_INT into its operand.
17885 (known_cond): Likewise, for ZERO_EXTEND.
17886 * simplify-rtx.c (simplify_unary_operation): Fix condition to
17887 allow for simplification of wide modes. Reject CONST_INTs in
17888 ZERO_EXTEND when their actual mode is not given.
17890 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17892 * c-decl.c (pushdecl): If no global declaration is found for an
17893 extern declaration in block scope, try a limbo one.
17895 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17898 * c-common.c (pointer_int_sum): Moved from...
17899 * c-typeck.c (pointer_int_sum): ...here.
17900 * c-common.h (pointer_int_sum): Add prototype.
17902 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17905 * c-decl.c (duplicate_decls): Return 0 if issued error about
17908 2002-02-20 Roger Sayle <roger@eyesopen.com>
17909 Jakub Jelinek <jakub@redhat.com>
17912 * tree.c (host_integerp): Ensure that the constant integer is
17913 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17914 when pos is zero or non-zero respectively. Clarify comment.
17915 * c-format.c (check_format_info_recurse): Fix host_integerp
17916 usage; the pos argument should be zero when assigning to a
17917 signed HOST_WIDE_INT.
17919 2002-02-20 Richard Henderson <rth@redhat.com>
17921 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17922 of the operand, rather than assuming TImode.
17923 (ix86_expand_binop_builtin): Cope with commutative patterns
17924 using nonimmediate_operand for both operands.
17925 (ix86_expand_timode_binop_builtin): Likewise.
17926 (ix86_expand_store_builtin): Validate operand 1.
17927 (ix86_expand_unop1_builtin): Likewise.
17929 2002-02-20 Philip Blundell <philb@gnu.org>
17932 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17934 2002-02-20 Richard Henderson <rth@redhat.com>
17937 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17939 2002-02-20 Tom Tromey <tromey@redhat.com>
17941 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17942 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17943 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17944 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17945 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17948 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17950 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17951 for (const_int 0) in X not just INTVAL.
17953 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
17955 * doc/extend.texi: Avoid or reduce overfull hboxes.
17957 2002-02-20 Diego Novillo <dnovillo@redhat.com>
17959 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
17960 operations if the field does not start at a mode boundary.
17962 2001-02-20 Joel Sherrill <joel@OARcorp.com>
17964 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
17965 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
17966 Also done for -Acpu and -Amachine.
17968 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
17970 * cppinit.c (init_dependency_output): Take deps output file
17971 from -o if none given with -MF. Suppress normal output.
17972 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
17973 * doc/cpp.texi, doc/invoke.texi: Update.
17975 2002-02-19 Zack Weinberg <zack@codesourcery.com>
17977 * toplev.c (output_quoted_string): Write unprintable
17978 characters with octal escapes.
17980 2002-02-19 David Edelsohn <edelsohn@gnu.org>
17982 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
17983 really_call_used[VRSAVE_REGNO] if not Altivec.
17985 2002-02-19 Alan Modra <amodra@bigpond.net.au>
17987 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
17989 (constant_pool_expr_1): Fix formatting.
17990 (rs6000_legitimize_reload_address): Likewise.
17992 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17994 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
17995 now that we have one.
17997 2002-02-19 Zack Weinberg <zack@codesourcery.com>
17999 * tree.h (struct tree_common): Remove aux. Add unused_0 at
18000 end of first block of bitfields (which was only seven bits);
18001 rename dummy to unused_1; remove comment which is no longer true.
18003 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18005 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
18007 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18010 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
18014 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
18015 arm_is_longcall_p rather than inspecting call-type cookie
18017 (call_value_insn) [TARGET_THUMB]: Likewise.
18019 2002-02-19 Graham Stott <grahams@redhat.com>
18021 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
18023 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18025 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
18026 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
18027 (FP_SAVE_INLINE): Delete.
18029 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
18030 * config/rs6000/eabi.asm: Remove ABI save restore routines.
18031 * config/rs6000/t-ppccomm: Build crtsavres.o.
18032 * config/rs6000/crtsavres.asm: New file.
18034 2002-02-19 Philip Blundell <philb@gnu.org>
18036 * config/arm/arm.c (use_return_insn): Don't reject interrupt
18038 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
18039 (output_return_instruction): Allow interrupt functions to return with
18040 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
18041 (arm_expand_prologue): Subtract 4 before stacking LR in an
18042 interrupt function.
18044 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18046 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
18047 decl, not just FUNCTION_DECL.
18048 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
18049 (arm_assemble_integer): Likewise.
18050 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
18053 2002-02-19 matthew green <mrg@eterna.com.au>
18055 * config.gcc (sparc-*-netbsdelf*): Enable target.
18056 (sparc64-*-netbsd*): New target.
18057 * config/sparc/netbsd-elf.h: New file.
18058 * config/sparc/t-netbsd64: New file.
18060 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18062 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
18064 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
18066 * doc/invoke.texi: explicitly list the style guidelines that
18067 -Weffc++ checks for.
18069 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
18071 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
18073 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
18076 * gcc.c (cpp_unique_options): Treat -o as indicating object file
18077 only if not -E. If -E, pass -o through to the preprocessor.
18079 2002-02-19 Kazu Hirata <kazu@hxi.com>
18081 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
18082 register number with an appropriate macro.
18084 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18086 * doc/rtl.texi (Constants): Close @code tag.
18088 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
18090 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
18091 ("mmx_uavgv4hi3"): Same.
18092 ("pmulhrwv4hi3"): Same.
18094 * tree-inline.c (walk_tree): Handle vectors.
18096 * c-common.c (constant_expression_warning): Handle vectors.
18097 (overflow_warning): Same.
18099 * sched-deps.c (sched_analyze_2): Handle vectors.
18101 * rtlanal.c (rtx_unstable_p): Handle vectors.
18102 (rtx_varies_p): Same.
18103 (count_occurrences): Same.
18104 (regs_set_between_p): Same.
18105 (modified_between_p): Same.
18106 (modified_in_p): Same.
18107 (volatile_insn_p): Same.
18108 (volatile_refs_p): Same.
18109 (side_effects_p): Same.
18110 (may_trap_p): Same.
18111 (inequality_comparisons_p): Same.
18112 (replace_regs): Same.
18113 (computed_jump_p_1): Same.
18115 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
18117 (inner_mode_array): New.
18118 (copy_rtx): Handle vectors.
18119 (copy_most_rtx): Same.
18120 (rtx_equal_p): Same.
18121 (get_mode_alignment): Adjust for vectors.
18123 * resource.c (mark_referenced_resources): Handle vectors.
18124 (mark_set_resources): Same.
18126 * reload1.c (eliminate_regs): Handle vectors.
18127 (elimination_effects): Same.
18128 (scan_paradoxical_subregs): Same.
18130 * reload.c (subst_reg_equivs): Handle vectors.
18132 * regrename.c (scan_rtx): Handle vectors.
18134 * regclass.c (reg_scan_mark_refs): Handle vectors.
18136 * recog.c (find_single_use_1): Handle vectors.
18138 * local-alloc.c (equiv_init_varies_p): Handle vectors.
18139 (contains_replace_regs): Same.
18140 (memref_referenced_p): Same.
18142 * integrate.c (copy_rtx_and_substitute): Handle vectors.
18143 (subst_constants): Same.
18145 * genattrtab.c (attr_copy_rtx): Handle vectors.
18146 (encode_units_mask): Same.
18147 (clear_struct_flag): Same.
18148 (count_sub_rtxs): Same.
18150 * gcse.c (want_to_gcse_p): Handle vectors.
18151 (oprs_unchanged_p): Same.
18152 (hash_expr_1): Same.
18153 (oprs_not_set_p): Same.
18154 (expr_killed_p): Same.
18155 (compute_transp): Same.
18156 (store_ops_ok): Same.
18158 * function.c (purge_addressof_1): Do not allow paradoxical subregs
18160 (fixup_var_refs_1): Same.
18161 (instantiate_virtual_regs_1): Same.
18163 * fold-const.c (operand_equal_p): Handle vectors.
18165 (rtl_expr_nonnegative_p): Same.
18167 * flow.c (mark_used_regs): Handle vectors.
18169 * df.c (df_uses_record): Handle vectors.
18171 * cselib.c (cselib_subst_to_values): Handle vectors.
18172 (cselib_mem_conflict_p): Same.
18175 * cse.c (canon_reg): Handle vectors.
18177 (cse_process_notes): Same.
18178 (count_reg_usage): Same.
18179 (canon_hash): Same.
18181 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
18183 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
18185 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
18186 (gen_rtx): Handle CONST_VECTOR.
18187 (gen_const_vector_0): New.
18188 (copy_rtx_if_shared): CONST_VECTORs can be shared.
18189 (reset_used_flags): Same.
18190 (copy_insn_1): Same.
18191 (initializer_constant_valid_p): Handle VECTOR_CST.
18193 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
18195 * doc/rtl.texi (Constants): Document const_vector.
18196 (CONST0_RTX): Update for vectors.
18197 (RTL sharing): Same.
18199 * print-tree.c (print_node): Add case for VECTOR_CST.
18201 * tree.h (TREE_VECTOR_CST_ELTS): New.
18202 (struct tree_vector): New.
18203 (union tree_node): Add vector node.
18204 (build_vector): Add prototype.
18206 * tree.def (VECTOR_CST): New.
18208 * tree.c (build_vector): New.
18210 * expmed.c (make_tree): Handle CONST_VECTOR.
18212 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
18213 (CONST_VECTOR_ELT): New.
18214 (CONST_VECTOR_NUNITS): New.
18216 * machmode.h (GET_MODE_INNER): New.
18217 (DEF_MACHMODE): Accept 8th arg.
18219 * machmode.def: Add 8th argument for vector inner mode.
18220 Add inner vector modes for vectors.
18222 * rtl.def (VEC_CONST): Remove.
18223 (CONST_VECTOR): New.
18225 * expr.c (clear_storage): Allow vectors.
18226 (is_zeros_p): Handle VECTOR_CST.
18228 * varasm.c (output_constant_pool): Handle vectors.
18229 (rtx_const): Add veclo and vechi fields.
18230 (kind): Add RTX_VECTOR.
18231 (decode_rtx_const): Add case for vector.
18233 * config/rs6000/rs6000-protos.h: Add zero_constant.
18235 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
18236 constants. Force easy vector constants into memory.
18237 (easy_vector_constant): New.
18238 (emit_easy_vector_constant): New.
18239 (rs6000_legitimize_reload_address): Do not generate bad reloads on
18242 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
18244 ("altivec_lvxl"): Same.
18245 (altivec_lvebx): Same.
18246 (altivec_lvehx): Same.
18247 (altivec_lvewx): Same.
18248 ("*movv4si_const0"): New.
18249 ("*movv4sf_const0"): New.
18250 ("*movv8hi_const0"): New.
18251 ("*movv16qi_const0"): New.
18253 2002-02-18 Kazu Hirata <kazu@hxi.com>
18255 * config/h8300/h8300.c (notice_update_cc): Use
18258 2002-02-18 Kazu Hirata <kazu@hxi.com>
18260 * config/h8300/h8300.md (divmod patterns): Change the
18261 constraints for operands[1] to register_operand.
18263 2002-02-18 Kazu Hirata <kazu@hxi.com>
18265 * config/h8300/h8300-protos.h: Remove the prototype for
18267 * config/h8300/h8300.c (p_operand): Remove.
18268 * config/h8300/h8300.md: Replace p_operand with
18271 2002-02-18 Philip Blundell <pb@nexus.co.uk>
18273 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
18275 (output_return_instruction): Allow use of LDR to unstack
18276 return addresss even for interrupt handlers or when
18277 interworking. If compiling for ARMv5, use interworking-safe
18278 return instructions by default. Remove duplicated code and
18279 lengthy "strcat" sequences.
18281 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18283 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
18284 (LINK_EH_SPEC): Define.
18285 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
18287 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
18289 * config/s390/s390.c (s390_emit_prologue): Do not set the
18290 frame_related flag for call-clobbered registers.
18292 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
18294 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
18295 (construct_container): Fix handling of SSE operands.
18296 (ix86_expand_builtin): Fix handling of 64bit pointers.
18297 (mmx_maskmovq_rex): New pattern.
18299 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
18301 * regrename.c (kill_set_value): Handle subregs properly.
18303 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
18305 * objc/objc-act.c (handle_impent): Remove leading '*'
18306 from objc_class_name.
18308 2002-02-17 Richard Henderson <rth@redhat.com>
18310 * config/alpha/alpha.c (some_small_symbolic_operand,
18311 some_small_symbolic_operand_1, split_small_symbolic_operand,
18312 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
18313 Handle small SYMBOL_REFs anywhere, not just inside memories.
18314 * config/alpha/alpha-protos.h: Update.
18315 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18316 * config/alpha/alpha.md (small symbolic operand splitter): Update.
18318 2002-02-17 Roland McGrath <roland@frob.com>
18320 * config.gcc (powerpc-*-gnu-gnualtivec*,
18321 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
18322 * config/rs6000/gnu.h: New file.
18323 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
18324 Grok "gnu" in rs6000_abi_name.
18325 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
18326 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
18327 Grok -mcall-gnu analogous to -mcall-linux et al.
18328 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18329 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
18330 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
18332 2002-02-17 Jakub Jelinek <jakub@redhat.com>
18335 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
18338 2002-02-17 Philipp Thomas <pthomas@suse.de>
18340 * config/cris/cris.h: Undefine STARTFILE_SPEC and
18341 ENDFILE_SPEC before (re)defining them.
18343 2002-02-17 Kazu Hirata <kazu@hxi.com>
18345 * config/h8300/h8300.c: Fix formatting.
18346 * config/h8300/h8300.h: Likewise.
18348 2002-02-17 Philipp Thomas <pthomas@suse.de>
18350 * doc/tm.texi: Explain why empty strings should not be
18351 marked for translation.
18353 2002-02-17 Philipp Thomas <pthomas@suse.de>
18355 * final.c (output_operand_lossage): Changed to accept
18356 printf style arguments. Change calls where necessary.
18357 * output.h (output_operand_lossage): Change declaration
18358 accordingly. Update copyright.
18359 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
18360 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
18361 Update copyright date where necessary.
18363 * config/i386/i386.c (print_operand): Likewise. Remove use of
18366 * config/cris/cris.c (cris_operand_lossage): Likewise.
18367 Rename parameter so that exgettext recognizes it as
18368 translatable message.
18369 (LOSE_AND_RETURN): Rename parameter to msgid.
18371 2002-02-17 Kazu Hirata <kazu@hxi.com>
18373 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
18374 hard coded register number with an appropriate macro.
18375 (HARD_REGNO_MODE_OK): Likewise.
18376 (ARG_POINTER_REGNUM): Likewise.
18377 (STATIC_CHAIN_REGNUM): Likewise.
18378 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
18379 * config/h8300/h8300.md (define_constants): Define more
18382 2002-02-17 Philipp Thomas <pthomas@suse.de>
18384 * config/i386/i386.h: Don't mark empty strings for translation.
18386 2002-02-16 H.J. Lu <hjl@gnu.org>
18388 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
18390 2002-02-16 Zack Weinberg <zack@codesourcery.com>
18392 * cppinit.c (merge_include_chains): Check for brack being
18393 NULL before attempting to merge it with qtail.
18395 2002-02-16 Andrew Cagney <ac131313@redhat.com>
18397 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
18400 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18402 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
18404 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18406 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
18407 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
18408 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
18410 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18412 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
18413 now only if !TARGET_FIX.
18414 (*movsi_nt_vms_fix): New pattern.
18416 2002-02-16 Douglas B Rupp <rupp@gnat.com>
18418 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
18419 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
18420 (alpha_sa_mask, alpha_sa_size): Reflect above change.
18421 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
18422 (alpha_start_function, alpha_expand_epilogue): Likewise.
18423 (unicosmk_gen_dsib): Likewise.
18425 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18427 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
18429 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
18431 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
18432 check_and_change_labels, s390_final_chunkify): Delete.
18433 (s390_split_branches, s390_chunkify_pool): New functions.
18434 (s390_function_prologue): Call them.
18436 * config/s390/s390.h (S390_REL_MAX): Delete.
18437 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
18439 * config/s390/s390.md (cjump, icjump, jump): Fix length
18440 attribute calculation.
18443 2002-02-15 David Edelsohn <edelsohn@gnu.org>
18445 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
18446 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
18448 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18450 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
18451 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
18452 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
18454 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18456 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
18458 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18460 * reload.c (find_dummy_reload): Check that an output register
18461 is valid for its mode.
18463 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
18465 * combine.c (known_cond): After replacing the REG of a SUBREG, try
18468 * function.c (assign_parms): Demote promoted argument passed by
18469 transparent reference.
18471 2001-02-14 Joel Sherrill <joel@OARcorp.com>
18473 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
18474 -Acpu() and -Amachine() to eliminate warnings.
18476 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
18478 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
18480 2002-02-14 Kazu Hirata <kazu@hxi.com>
18482 * config/h8300/h8300-protos.h: Update the prototype for
18484 * config/h8300/h8300.c (const_costs): Treat SET as a little
18485 more expensive operation.
18486 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
18487 reference to const_costs.
18489 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
18491 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
18493 2002-02-14 Jakub Jelinek <jakub@redhat.com>
18496 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
18497 use arguments from newtype.
18499 2002-02-13 Eric Christopher <echristo@redhat.com>
18501 * config/mips/mips.c (override_options): Add check for march/mipsX
18502 on the same command line. Fix error message in cpu processing.
18503 Remove architecture and ISA checks.
18505 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18507 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
18509 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
18511 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18513 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
18515 ("*movv8hi_internal1"): Same.
18516 ("*movv16qi_internal1"): Same.
18517 ("*movv4sf_internal1"): Same.
18519 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
18520 not push_reload for altivec modes.
18522 2002-02-13 Joel Sherrill <joel@OARcorp.com>
18524 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
18525 all RTEMS targets including removal of #includes from config/*/rtems*.h
18526 file and adding them to tm_file setting. Added xm_defines=POSIX to
18528 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
18529 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
18530 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
18531 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
18532 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
18533 config/m68k/rtemself.h: Ditto.
18534 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
18535 config/mips/rtems64.h: Ditto.
18536 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
18537 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
18539 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
18540 config/sparc/rtemself.h: Ditto.
18541 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
18542 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18543 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18545 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18546 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18547 target made more similar to i386-elf.
18548 * config/i386/t-rtems-i386: Added soft float support and multilibs.
18549 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18550 be similar to config/m68k/t-m68kelf.
18551 * gthr-rtems.h: Encapsulate with extern "C" for C++.
18553 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
18555 * regmove.c (kill_value): Handle subregs.
18557 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
18559 * i386.md (mul patterns): Allow memory operand to be first;
18560 add expanders where needed; fix constraints.
18561 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18562 Allow memory operand to be the first.
18564 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18567 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18570 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18573 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18575 PR optimization/5547:
18576 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18577 all valid IA-32 address modes involving non-scaled %ebx and
18578 GOT/GOTOFF as displacement.
18580 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
18582 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18583 after emitting ltorg insns.
18585 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18586 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18587 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18588 *abssf2): Fix "op_type" attribute.
18590 2002-02-13 Douglas B Rupp <rupp@gnat.com>
18592 * mkconfig.sh: Avoid using a subshell redirect.
18593 ($output.T): Change to $(output)T.
18594 (ENABLE_NLS): Remove unneeded undef.
18596 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18597 * config/alpha/x-vms (libsubdir): Define.
18599 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18600 register frame procedures. Optimize retrieving context.
18602 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18603 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18604 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18606 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18608 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18609 Make same change as for find_base_value.
18611 2002-02-13 Kazu Hirata <kazu@hxi.com>
18613 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18614 of QImode and SImode.
18616 2002-02-13 Kazu Hirata <kazu@hxi.com>
18618 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18619 length computation of movsi.
18620 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18622 2002-02-13 Kazu Hirata <kazu@hxi.com>
18624 * config/h8300/h8300.md (subqi3): Tighten the predicate for
18625 operands[2] to register_operand.
18627 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
18629 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18631 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
18633 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18634 for altivec_lvx* and altivec_stvx*.
18635 ("*movv4si_internal"): Add constraint for loading from GPRs.
18636 ("*movv8hi_internal1"): Same.
18637 ("*movv16qi_internal1"): Same.
18638 ("*movv4sf_internal1"): Same.
18640 * config/rs6000/rs6000.c (altivec_register_operand): New.
18642 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18643 altivec_register_operand.
18645 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
18647 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18650 2002-02-13 Stan Shebs <shebs@apple.com>
18652 * c-typeck.c (digest_init): Handle vectors.
18653 (really_start_incremental_init): Same.
18654 (pop_init_level): Same.
18655 (process_init_element): Same.
18657 * varasm.c (output_constant): Same.
18659 * expr.c (clear_storage): Same.
18660 (store_constructor): Same.
18662 2002-02-12 Eric Christopher <echristo@redhat.com>
18664 * explow.c (hard_function_value): Add comment explaining
18665 signed/unsigned comparison.
18667 2002-02-12 Jakub Jelinek <jakub@redhat.com>
18669 * jump.c (never_reached_warning): Add finish argument.
18670 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18671 real insn after end.
18672 * rtl.h (never_reached_warning): Adjust prototype.
18673 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18674 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18675 never_reached_warning.
18677 2002-02-12 Graham Stott <grahams@redhat.com>
18679 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18681 2002-02-12 Kazu Hirata <kazu@hxi.com>
18683 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18684 logical shifts on H8/300.
18685 (shift_alg_si): Improve several shifts on H8/300.
18686 (get_shift_alg): Likewise.
18688 2002-02-12 Graham Stott <grahams@redhat.com>
18690 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18692 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18694 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18695 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18697 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
18699 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18700 non-CONST_INT through default_assemble_integer.
18701 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18702 <case 8>: Abort for CONST_DOUBLE.
18704 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
18706 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18708 * config/pa/pa-linux.h (LIB_SPEC): Delete.
18709 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18711 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
18713 * config/stormy16/stormy16.md (zero_extendqihi2): New.
18715 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
18717 * regrename.c (regrename_optimize): Don't accept a
18718 part-clobbered register if the replaced register is not part
18721 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18722 take padding into account when computing the argument value.
18724 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18726 * combine.c (try_combine): Apply substitutions in
18727 CALL_INSN_FUNCTION_USAGE too.
18729 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
18731 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18732 __builtin_altivec_abs*.
18735 * config/rs6000/rs6000.h (rs6000_builtins): Add
18736 ALTIVEC_BUILTIN_ABS*.
18738 * config/rs6000/altivec.h: Use const char for builtins expecting
18740 (vec_abs): New versions for C and C++.
18743 2002-02-10 Kazu Hirata <kazu@hxi.com>
18745 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18748 2002-02-10 Kazu Hirata <kazu@hxi.com>
18750 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18751 constant definition from h8300.md.
18752 (FRAME_POINTER_REGNUM): Likewise.
18753 * config/h8300/h8300.md (define_constants): Add FP_REG.
18755 2002-02-10 Kazu Hirata <kazu@hxi.com>
18757 * config/h8300/h8300.c (print_operand): Remove redundant code.
18759 2002-02-10 Kazu Hirata <kazu@hxi.com>
18761 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18762 * config/h8300/h8300.c (byte_reg): Make it static.
18764 2002-02-10 Richard Henderson <rth@redhat.com>
18767 * c-typeck.c (incomplete_type_error): Handle flexible array members.
18769 2002-02-10 Richard Henderson <rth@redhat.com>
18772 * tree.c (append_random_chars): Don't abort if main_input_filename
18775 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
18777 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18779 2002-02-10 Kazu Hirata <kazu@hxi.com>
18781 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
18782 (pushhi1): Likewise.
18784 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
18786 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18787 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18789 2002-02-09 David O'Brien <obrien@FreeBSD.org>
18791 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18793 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
18795 2002-02-09 Kazu Hirata <kazu@hxi.com>
18797 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18798 a half of an SImode register on H8/300.
18800 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
18802 * i386.md (movdi_2): Add missing '!'.
18804 2002-02-09 Kazu Hirata <kazu@hxi.com>
18806 * config/h8300/h8300.h: Fix formatting. Remove commented-out
18809 2002-02-09 Kazu Hirata <kazu@hxi.com>
18811 * config/h8300/h8300.md (length): Correct the distance valid
18812 for the short branch.
18814 2002-02-09 Kazu Hirata <kazu@hxi.com>
18816 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18818 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18820 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18821 registers in SImode.
18822 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18825 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18828 Contribute sh64-elf.
18829 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18830 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18831 (sh_cannot_modify_jumps_p): New function.
18832 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
18833 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18834 (sh_ms_bitfield_layout_p): New function.
18835 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
18836 Zack Weinberg <zack@codesourcery.com>
18837 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18838 expand_simple_binop instead of expand_binop.
18839 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
18840 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18841 use of .quad and .uaquad.
18842 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18843 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18844 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18845 * config/sh/sh.md (movdi_const, movdi_const_32bit,
18846 movdi_const_16bit): Make sure all CONSTs have modes.
18847 (sym2PIC): Ditto, but by adjusting all callers.
18848 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18849 if the prologue calls the SHmedia argument decoder or register
18851 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18852 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18853 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18854 (sh_expand_epilogue): Don't emit USE of return target register.
18855 (prepare_move_operands): Legitimize DImode PIC addresses.
18856 (sh_media_register_for_return): Skip tr0, used to initialize the
18858 (sh_expand_prologue): Remove explicit USE of return register.
18859 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
18860 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
18861 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18862 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18863 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18864 EXTRA_CONSTRAINT_T.
18865 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18866 (MOVI_SHORI_BASE_OPERAND_P): New.
18867 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18868 (EXTRA_CONSTRAINT_T): Define in terms of them.
18869 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18870 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18871 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18872 alternatives supporting TARGET_REGS.
18873 (UNSPEC_GOTPLT): New constant.
18874 (movdi split): Move incrementing of LABEL_NUSES...
18875 (movdi_const, movdi_const_32bit): Here. Use
18876 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18877 (movdi_const_16bit): New.
18878 (call, call_value) [flag_pic]: Use GOTPLT.
18879 (call_pop, call_value_pop): New expands.
18880 (call_pop_compact, call_pop_rettramp): New insns.
18881 (call_value_pop_compact, call_value_pop_rettramp): New insns.
18882 (sibcall) [flag_pic]: Use GOT.
18883 (builtint_setjmp_receiver): Remove bogus, unused expand.
18884 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18885 (*pt, *ptb, ptrel): New insns.
18886 (sym2GOT): Handle DImode GOT.
18887 (sym2GOTPLT, symGOTPLT2reg): New expands.
18888 (sym2PIC): New expand.
18889 (shcompact_return_tramp): Use GOTPLT to return trampoline.
18890 (shcompact_return_tramp_i): Use return register explicitly.
18891 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18892 disable flag_reorder_blocks.
18893 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
18894 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18895 clobbers, for clarity.
18896 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18897 restoring of r0 in macl as MAYBE_DEAD.
18898 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
18899 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18900 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18901 alter_subreg all over.
18902 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18903 reload, instead of emitting instructions that would require
18905 (casesi_load_media): Add missing modes.
18906 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
18907 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18908 as used if the argument decoder is called.
18909 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18910 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18911 Pmode, then extend it to DImode if necessary.
18912 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18913 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18914 constants in FPU-enabled SHmedia, let them be loaded from memory.
18915 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18916 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18917 Adjust whitespace in assembly output templates.
18918 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18919 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18920 mode of if_then_else.
18921 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
18922 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18924 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
18925 Joern Rennecke <amylaar@redhat.com>
18926 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18927 (SUBTARGET_CPP_PTR_SPEC): New.
18928 (SUBTARGET_CPP_SPEC): Remove.
18929 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18930 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18931 Fix typo in previous checkin.
18932 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
18933 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18934 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
18935 Alexandre Oliva <aoliva@redhat.com>
18936 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18937 what single FP register can hold for SHmedia target.
18938 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18939 Alexandre Oliva <aoliva@redhat.com>
18940 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18941 Do not split into SUBREG.
18942 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
18943 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18944 and added new functions as specified in SH5 ABI r9.
18945 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
18946 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18948 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
18949 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18950 gen_consttable_4 and gen_consttable_8. Emit multiple labels
18951 and consttable_window_ends.
18952 2001-06-03 Graham Stott <grahams@redhat,com>
18953 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18954 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
18955 * config/sh/sh.c (print_operand): Handle floating-point pair,
18956 vector and matrix registers.
18957 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
18958 vector modes into account.
18959 * config/sh/sh.md (movv2sf): Split move between registers into
18961 (movv4sf, movv16sf): Introduce insns that get split only after
18963 * config/sh/shmedia.h: Fix Copyright dates.
18964 * config/sh/ushmedia.h: Likewise. Move loop counter
18965 declarations into conditionals that uses them.
18966 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
18968 * config/sh/sshmedia.h: Fix Copyright dates.
18969 (sh_media_PUTCFG): Fix constraints.
18970 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
18971 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
18972 ptrmemfunc_vbit_in_delta for SH5.
18973 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
18974 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
18975 * invoke.texi: Likewise.
18976 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
18977 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
18978 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
18979 GCC_pop_shmedia_regs_nofpu): New global symbols.
18980 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
18981 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
18982 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
18983 compact function with nonlocal labels.
18984 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
18985 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
18986 (initial_elimination_offset): Account for their stack space.
18987 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
18988 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
18989 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
18990 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
18991 least one of the operands to be a register.
18992 (movv2sf): Likewise. Renamed to movv2sf_i.
18993 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
18994 prepare_move_operands() before emitting SHmedia insns.
18995 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
18996 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
18997 Don't save nor initialize r12. Don't mis-align the stack.
18998 Pad the code with a nop.
18999 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
19001 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
19002 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
19003 [__SHMEDIA__]: Implement.
19004 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
19005 * config/sh/sh.md: Set latency of `pt' closer to reality.
19006 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
19007 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
19008 Set move, load and store type attributes.
19009 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
19010 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
19012 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
19013 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
19014 * config/sh/sh.c (sh_media_register_for_return): New function.
19015 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
19016 branch-target register.
19017 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
19018 * config/sh/sh.md (return_media_i): Use any call-clobbered
19019 branch-target register.
19020 (return_media): If r18 wasn't copied in the prologue, copy it
19022 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
19023 Clear class FP0_REGS.
19024 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
19026 2001-03-08 DJ Delorie <dj@redhat.com>
19027 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
19028 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
19029 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
19030 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
19031 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
19032 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
19033 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
19034 return value correctly for call_cookie.
19035 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
19036 * config/sh/crt1.asm (start): Modified so as to call
19037 ___setup_argv_and_call_main.
19038 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
19039 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
19041 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
19042 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
19043 (STRIP_NAME_ENCODING): Use it.
19044 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
19045 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
19046 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
19047 prepare_scc_operands().
19048 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
19049 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
19050 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
19051 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
19052 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
19053 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
19054 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
19055 used in shcompact_incoming_args.
19056 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
19058 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
19060 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
19061 Adjust accordingly.
19062 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19063 Simplify. Adjust. Add sanity check.
19064 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
19066 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
19068 (udivsi3, divsi3): Use them.
19069 (force_mode_for_call): New insn.
19070 (call, call_value, sibcall_value): Emit it before SHcompact
19072 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
19073 * config/sh/sh.md (call, call_value, sibcall): Make sure the
19074 call cookie is non-NULL before taking its value.
19075 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
19076 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
19077 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
19078 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
19080 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
19081 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
19082 temporary for stack adjusts. Use MACL and MACH to pass
19083 arguments to shcompact_incoming_args.
19084 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
19086 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
19087 (nested_trampoline): Load static chain address into r1.
19088 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
19089 2001-01-07 Alexandre Oliva <aoliva@redhat.com
19090 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
19091 fp_arith_reg_operand().
19092 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
19093 * config/sh/sh.md (casesi): Sign-extend the first two operands,
19094 and use signed compares for them.
19095 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
19096 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
19097 ones properly aligned.
19098 (find_barrier): Account for extra alignment needed for 8-byte wide
19100 (machine_dependent_reorg): Require a label for the second 4-byte
19101 constant after an 8-byte one.
19102 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
19104 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19105 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
19106 last_float when switching float modes.
19107 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
19108 auto-increment for general-purpose registers.
19109 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
19111 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
19113 * config/sh/sh.c (sh_builtin_saveregs): Support using all
19114 registers for varargs.
19115 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
19116 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
19117 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
19118 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
19119 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
19120 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
19121 call_cookie accordingly.
19122 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
19123 (SHCOMPACT_BYREF): Likewise.
19124 (SHCOMPACT_FORCE_ON_STACK): New macro.
19125 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
19126 (sh_builtin_saveregs): Likewise.
19127 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19128 shcompact_incoming_args): Use new shift values. Support
19129 sequences of consecutive and non-consecutive pushes/pops.
19130 * config/sh/sh.md (return): Don't explicitly use PR_REG.
19131 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
19132 * config/sh/sh.h (TEXT_SECTION): Define.
19133 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
19134 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19135 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
19136 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
19137 return values on FPU-enabled SHmedia.
19138 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
19139 FPU-enabled SHmedia.
19140 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
19141 value is returned in a non-FP reg and is not returned by
19143 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
19145 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
19146 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
19147 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
19148 quad-aligned to be passed by callee-copy reference.
19149 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
19150 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
19151 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
19152 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
19153 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
19154 copying low-numbered FP regs to r7 and r8.
19155 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
19156 FP regs to general-purpose regs only if the copy was passed on the
19158 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
19159 copying FP reg to r9.
19160 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
19161 copy FP regs to general-purpose regs only in outgoing calls.
19162 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
19163 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
19165 * config/sh/sh.h (struct sh_args): Document all fields.
19166 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
19167 passed partially on the stack should not consider making
19169 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
19170 stack_regs only for incoming calls. When passing FP args,
19171 make sure there are FP regs available before modifying
19173 (SHCOMPACT_BYREF): Pass double args in general-purpose
19174 registers by reference.
19175 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
19176 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
19177 attempt to generate sibcalls if the caller got any arguments
19179 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
19180 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
19181 to 8-byte boundaries.
19182 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
19183 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
19184 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
19185 stored in the stack.
19186 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
19187 for the offsets to have the ISA bit set.
19188 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
19189 invocation. Use beq instead of bgt to mark end of sequence of
19191 (shcompact_incoming_args): Fix store of r2. Use beq instead of
19192 bgt to mark end of sequence of stores.
19193 * config/sh/sh.c (arith_operand): Don't check whether
19194 CONST_OK_FOR_J for now.
19195 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
19196 instead of long for conversion.
19197 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
19198 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
19199 before passing it to fprintf.
19200 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
19201 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
19202 Call set_fpscr before reading/writing SR.
19203 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
19205 * config/sh/lib1funcs.asm: Add `.align 2' directives before
19207 (FMOVD_WORKS): Define on SH5 with FPU.
19208 (set_fpscr): Define on SH5. Remove separate _fpscr_values
19210 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
19212 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
19213 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
19215 (ia_main_table): Ditto.
19216 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
19217 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19218 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
19219 the definitions from sh.h.
19220 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
19222 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
19223 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
19224 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19225 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
19226 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
19227 Increment LABEL_NUSES.
19229 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
19231 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
19233 * config/sh/elf.h (SIZE_TYPE): Likewise.
19234 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19235 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19236 shcompact_incoming_args): Load switch table addresses using
19238 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19239 (NO_BUILTIN_SIZE_TYPE): Define.
19240 (SIZE_TYPE): Don't define.
19241 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19242 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
19243 definition of __SH5__=32 for -m5-compact-nofpu.
19244 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
19246 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
19247 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
19248 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
19249 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
19250 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
19251 (INSN_LENGTH_ALIGNMENT): Likewise.
19252 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19253 * config/sh/sh.md (call, call_value, sibcall): Simplify
19254 copying of non-branch-target register.
19255 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19256 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
19257 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
19258 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19259 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
19260 floating-point values as structs.
19261 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
19262 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
19263 general-purpose register.
19264 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
19265 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19266 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
19267 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
19268 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
19269 (ENCODE_SECTION_INFO): Enclose variables and constants in
19271 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
19272 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
19273 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
19274 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
19275 only for LABEL_REFs. For SYMBOL_REFs, prepend
19276 SH_DATALABEL_ENCODING to the symbol name.
19277 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
19279 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19280 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
19282 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
19283 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
19284 (DATALABEL_REF_P): Don't require CONST.
19285 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
19287 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
19288 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
19290 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19291 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
19292 Use shallow_copy_rtx and PUT_MODE to change the mode of
19293 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
19294 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
19295 on SHmedia using GENERAL_REGs.
19296 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19297 bltu_media_i): Fix reversion of conditions.
19298 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19299 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
19300 * config/sh/sh.c (output_far_jump): Save r13 in macl.
19301 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
19302 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
19303 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
19304 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
19305 (GCC_nested_trampoline): Likewise.
19306 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
19307 * config/sh/sh.c (gen_datalabel_ref): Define.
19308 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
19309 (INITIALIZE_TRAMPOLINE): Likewise.
19310 (TRAMPOLINE_ADJUST_ADDRESS): Define.
19311 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
19312 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
19313 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
19314 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
19315 (ic_invalidate): Adjust for SH5.
19316 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
19317 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
19318 _nested_trampoline.
19319 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
19320 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
19321 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
19322 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19323 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
19324 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
19325 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19326 * config/sh/sh.c (target_reg_operand): Match only target-branch
19327 registers and pseudos that aren't virtual registers.
19328 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19329 Copy operands that don't match target_reg_operand to pseudos.
19330 (call_media, call_value_media, sibcall_media): Use
19331 target_reg_operand instead of target_operand.
19332 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
19333 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
19334 * config/sh/sh.c (target_reg_operand): Match hardware registers
19335 other than branch-target registers.
19336 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
19337 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
19338 (fpscr_values) [SH5 == 32]: Define.
19339 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
19340 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19341 Handle function addresses coming in SUBREGs.
19342 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
19343 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19344 shcompact_return_trampoline): Use datalabel where appropriate.
19345 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
19346 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
19347 general-purpose register to copy one branch-target register to
19349 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19350 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
19351 SYMBOL_REFs with VOIDmode.
19352 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19353 bltu_media_i): New insns.
19354 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19355 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
19356 (INIT_CUMULATIVE_ARGS): Likewise.
19357 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
19358 * machmode.def (V16SFmode): New mode.
19359 * c-common.c (type_for_mode): Support V2SF and V16SF.
19360 * tree.c (build_common_tree_nodes_2): Likewise.
19361 * tree.h (tree_index): Likewise.
19362 * calls.c (emit_call_1): Take args_so_far. Adjust all
19363 callers. Introduce CALL_POPS_ARGS.
19364 * tm.texi (CALL_POPS_ARGS): Document.
19365 * config/sh/crt1.asm: Implement in SHmedia mode.
19366 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
19367 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
19368 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
19369 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
19370 Implement divsi and udivsi in SHmedia mode. Introduce
19371 SHcompact trampolines.
19372 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
19374 (regno_reg_class): Rewrite.
19375 (fp_reg_names): Remove.
19376 (sh_register_names, sh_additional_register_names): New.
19377 (print_operand): Added `u'. Support SUBREGs in addresses.
19378 Add parentheses around shifted CONSTs.
19379 (output_file_start): Output .mode and .abi directives.
19380 (shiftcosts, addsubcosts, multcosts): Adjust.
19381 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
19382 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
19383 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
19384 bytes, not registers. Take into account the need for the
19385 SHcompact incoming args trampoline. Adjust all callers.
19386 (sh_expand_prologue): Take stack_regs into account. Call
19387 incoming args trampoline. Keep stack aligned as per SH5 ABI.
19388 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
19389 stack aligned as per SH5 ABI.
19390 (sh_builtin_saveregs): Support SH5 ABI.
19391 (sh_build_va_list, sh_va_start): Likewise.
19392 (initial_elimination_offset): Take alignment into account.
19393 Compute location of PR according to the SH5 stack frame.
19394 (arith_reg_operand): Reject branch-target registers.
19395 (shmedia_6bit_operand): New.
19396 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
19397 (target_reg_operand): Match DImode only. Accept SUBREGs.
19398 (target_operand): New.
19399 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
19400 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
19401 SIBCALL_REGS for SHmedia.
19402 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
19403 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
19404 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
19405 (TARGET_SWITCHES): New SH5 flags.
19406 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
19407 VALID_REGISTER_P to disable unsupported registers.
19408 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
19409 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
19410 (FUNCTION_ARG_PADDING): Define.
19411 (FASTEST_ALIGNMENT): Adjust.
19412 (SH_REGISTER_NAMES_INITIALIZER): New.
19413 (sh_register_names): Declare.
19414 (DEBUG_REGISTER_NAMES): Define.
19415 (REGISTER_NAMES): Define based on sh_register_names.
19416 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
19417 (sh_additional_register_names): Declare.
19418 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
19419 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
19420 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
19421 (REGISTER_NATURAL_MODE): Define.
19422 (FIRST_PSEUDO_REGISTER): Adjust.
19423 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
19424 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
19425 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
19426 (VECTOR_MODE_SUPPORTED_P): Define.
19427 (REG_CLASS_CONTENTS): Adjust.
19428 (SMALL_REGISTER_CLASSES): Adjust.
19429 (REG_ALLOC_ORDER): Adjust.
19430 (INDEX_REG_CLASS): Adjust.
19431 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
19432 (CONST_OK_FOR_LETTER_P): Adjust.
19433 (PREFERRED_RELOAD_CLASS): Adjust.
19434 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
19435 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
19436 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
19437 (FIRST_FP_PARM_REG): Adjust.
19438 (CALL_POPS_ARGS): Define.
19439 (FUNCTION_ARG_REGNO_P): Adjust.
19440 (struct sh_args): New fields.
19441 (GET_SH_ARG_CLASS): Adjust.
19442 (INIT_CUMULATIVE_ARGS): Adjust.
19443 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
19444 (FUNCTION_ARG_ADVANCE): Adjust.
19445 (FUNCTION_ARG): Adjust.
19446 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
19447 (FUNCTION_ARG_CALLEE_COPIES): Define.
19448 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
19449 (STRICT_ARGUMENT_NAMING): Define.
19450 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
19451 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
19452 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
19453 (SETUP_INCOMING_VARARGS): Adjust.
19454 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
19455 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
19456 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
19457 (SUBREG_OK_FOR_INDEX_P): Adjust.
19458 (EXTRA_CONSTRAINT_S): Update.
19459 (EXTRA_CONSTRAINT_T): New.
19460 (EXTRA_CONSTRAINT): Adjust.
19461 (GO_IF_LEGITIMATE_INDEX): Adjust.
19462 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
19463 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
19464 (MOVE_MAX): Adjust.
19465 (MAX_MOVE_MAX): Define.
19467 (CONST_COSTS): Adjust.
19468 (REGISTER_MOVE_COST): Adjust.
19469 (BRANCH_COST): Adjust.
19470 (TEXT_SECTION_ASM_OP): Adjust.
19471 (DBX_REGISTER_NUMBER): Adjust.
19472 (ASM_OUTPUT_DOUBLE_INT): New.
19473 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
19474 (PREDICATE_CODES): Adjust.
19475 (PROMOTE_MODE): Adjust.
19476 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
19477 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
19478 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
19479 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
19480 (DR0_REG, DR2_REG, DR4_REG): Renumber.
19481 (TR0_REG, TR1_REG, TR2_REG): New.
19482 (XD0_REG): Renumber.
19483 (UNSPEC_COMPACT_ARGS): New.
19484 (type): Added pt and ptabs.
19485 (length): Default to 4 on SHmedia. Default pt length to 12
19486 and 20 on SHmedia32 and SHmedia64, respectively.
19487 (pt): New function unit.
19488 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
19489 Add whitespace between operands of SHmedia instructions.
19491 (adddi3_media, addsi3_media): Adjust constraints.
19492 (subsi3) [SHmedia]: Force operand 1 into a register.
19493 (udivsi3_i1_media, udivsi3_i4_media): New.
19494 (udivsi3): Support SHmedia.
19495 (divsi3_i1_media, divsi3_i4_media): New.
19496 (divsi3): Support SHmedia.
19497 (anddi3, iordi3, xordi3): Adjust constraints.
19498 (zero_extendhidi2, zero_extendqidi2): New.
19499 (extendsidi2, extendhidi2, extendqidi2): New.
19500 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
19501 (pop_e, pop_fpul, pop_4): Likewise.
19502 (movsi_media): Support FP and BT registers.
19503 (movsi_media_nofpu): New. Adjust splits to DImode.
19504 (lduw, ldub): Renamed to zero_extend* above.
19505 (movqi_media): Fix typo.
19506 (movdi_media): Support FP and BT registers.
19507 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
19508 (movdi_const_32bit): New.
19509 (shori_media): Require immediate operand. Use `u' for output.
19510 (movdf_media, movsf_media): Simplified.
19511 (movdf_media_nofpu, movsf_media_nofpu): New.
19512 (movdf, movsf): Adjust
19513 (movv2sf, movv2sf, movv16sf): New.
19514 (beq_media, beq_media_i): Adjust constraints. Don't use
19515 scratch BT register.
19516 (bne_media, bne_media_i): Likewise.
19517 (bgt_media, bgt_media_i): Likewise.
19518 (bge_media, bge_media_i): Likewise.
19519 (bgtu_media, bgtu_media_i): Likewise.
19520 (bgeu_media, bgeu_media_i): Likewise.
19521 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
19522 bunordered): Emit jump insn. Force operands to registers when
19524 (jump_media, jump): Simplify.
19525 (call_compact, call_compact_rettramp): New.
19526 (call_value_compact, call_value_compact_rettramp): New.
19527 (call_media, call_value_media): Simplify.
19528 (sibcall_compact, sibcall_media): New.
19529 (call, call_value): Adjust for SHmedia and SHcompact.
19530 (sibcall, sibcall_value, untyped_call): Likewise.
19531 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
19532 (indirect_jump): Adjust for SHmedia.
19533 (casesi_jump_media): New.
19534 (nop): Re-enable for SHmedia.
19535 (call_site): Restrict to SH1.
19536 (casesi): Adjust for SHmedia.
19537 (casesi_shift_media, casesi_load_media): New.
19538 (return): Explicitly use PR register. Call return trampoline
19540 (return_i): Explicitly use PR register.
19541 (shcompact_return_tramp, shcompact_return_tramp_i): New.
19542 (return_media): Adjust.
19543 (shcompact_incoming_args): New.
19544 (epilogue): Adjust.
19545 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19546 (movstrsi): Disable on SH5.
19547 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19548 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19549 (subsf3, subsf3_media): Likewise.
19550 (mulsf3, mulsf3_media, mac_media): Likewise.
19551 (divsf3, divsf3_media): Likewise.
19552 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
19553 (floatsisf2, fux_truncsfsi2): Likewise.
19554 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
19556 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19557 (cmpunsf_media, cmpsf): Likewise.
19558 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19559 (abssf2, abssf2_media): Likewise.
19560 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19561 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19562 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
19563 (floatsidf2, fix_truncdfsi2): Likewise.
19564 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
19566 (cmpeqdf_media, cmpgtdf_media): Likewise.
19567 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19568 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19569 (absdf2, absdf2_media): Likewise.
19570 (extendsfdf2, extendsfdf2_media): Likewise.
19571 (truncsfdf2, truncsfdf2_media): Likewise.
19572 * config/sh/sh64.h: New file.
19573 * config/sh/t-sh64: New file.
19574 * config/sh/shmedia.h: New file.
19575 * config/sh/ushmedia.h: New file.
19576 * config/sh/sshmedia.h: New file.
19577 * configure.in: Added sh64-*-elf.
19578 * configure: Rebuilt.
19579 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
19580 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19581 (reg_class_from_letter): Use `b' for TARGET_REGS.
19582 (print_operand): Support `%M', `%m', `AND' and
19583 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
19584 (andcosts): Adjust for SHmedia.
19585 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19587 (target_reg_operand): New function.
19588 * config/sh/sh-protos.h (target_reg_operand): Declare.
19589 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19590 FP registers on SH5.
19591 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19593 (TARGET_REGISTER_P): New macro.
19594 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19595 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19596 (EXTRA_CONSTRAINT_S): New macro.
19597 (EXTRA_CONSTRAINT): Adjust.
19598 (FLOAT_TYPE_SIZE): Define to 32.
19599 (Pmode): DImode on SHmedia.
19600 (CONST_COSTS): Adjust for SHmedia literals.
19601 (PREDICATE_CODES): Added target_reg_operand.
19602 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19603 * config/sh/sh.md: Remove all attrs from SHmedia insns.
19604 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19605 (cmpdi): Accept SHmedia.
19606 (movdicc_false, movdicc_true): New insns.
19607 (movdicc): New expand.
19608 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19610 (addsi3_media): Match `S' constraint.
19611 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19612 (negdi2): Expand for SHmedia.
19613 (one_cmpldi2): New expand.
19614 (zero_extendsidi2): Change from expand to insn.
19615 (extendsidi2): Add constraints.
19616 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
19617 LD/ST address. Fix SI immediate loading split.
19618 (movhi_media, movqi_media, lduw, ldub): New insns.
19619 (movhi, movqi): Accept SHmedia.
19620 (shori_media, movdi_media): Relax input constraints. Split
19621 symbolic constants.
19622 (movdf_media, movsf_media): New insn. New split to movdi.
19623 (movdf, movsf): Match on SHmedia.
19624 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19625 bgeu_media): New insns and splits. New insns with `_i' suffix.
19626 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19627 (bunordered): New expand.
19628 (jump_compact): Renamed from `jump'.
19629 (jump_media): New insn.
19630 (jump): New expand.
19631 (call_media, call_value_media): New insns.
19632 (call, call_value): Adjust.
19633 (indirect_jump_compact): Renamed from `indirect_jump'.
19634 (indirect_jump_media): New insn.
19635 (indirect_jump): New expand.
19636 (untyped_call, return): Accept SHmedia.
19637 (return_media): New insn.
19638 (prologue, epilogue, blockage): Accept SHmedia.
19639 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19640 (sunordered): New expand.
19641 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19642 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19643 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19644 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19645 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19646 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19647 abssf2_media): New insns.
19648 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19649 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19650 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19651 floatdidf2, floatsidf2_media, fix_truncdfdi2,
19652 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19653 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19654 absdf2_media): New insns.
19655 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19656 (extendsfdf2_media, truncdfsf2_media): New insns.
19657 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
19658 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19659 * config/sh/sh.h (CONST_OK_FOR_J): Document.
19660 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19661 * config/sh/sh.md (adddi3): New expand.
19662 (adddi3_media, adddi3z_media): New insns.
19663 (adddi3_compact): Renamed from adddi3.
19664 (addsi3_media): Use add.l r63 to add constant zero.
19665 (subdi3): New expand.
19666 (subdi3_media): New insn.
19667 (subdi3_compact): Renamed from subdi3.
19668 (mulsidi3): New expand.
19669 (mulsidi3_media): New insn.
19670 (mulsidi3_compact): Renamed from mulsidi3.
19671 (umulsidi3): New expand.
19672 (umulsidi3_media): New insn.
19673 (umulsidi3_compact): Renamed from umulsidi3.
19674 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19675 (ashlsi3, ashrsi3, lshrsi3): Use them.
19676 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19677 (ashldi3, ashrdi3, lshrdi3): Use them.
19678 (zero_extendsidi2): New expand.
19679 (extendsidi2): New insn.
19680 (movsi_media): New insn. Split to movdi to load constants.
19681 (movsi): Enable for shmedia.
19682 (movdi_media): New insn. Use shori_media to load wide constants.
19683 (short_media): New insn.
19684 (movdi): Enable for shmedia.
19685 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
19686 * config/sh/sh.h (CPP_SPEC): Added `m5'.
19687 (SUBTARGET_CPP_SPEC): Added `!m5'.
19688 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19689 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
19690 to all other SH variants.
19691 (TARGET_DEFAULT): Set to SH1_BIT.
19692 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19693 (BITS_PER_WORD): Raise to 64 on shmedia.
19694 (MAX_BITS_PER_WORD): Change to 64.
19695 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19696 (INT_TYPE_SIZE): Keep as 32.
19697 (UNITS_PER_WORD): Raise to 8 on shmedia.
19698 (MIN_UNITS_PER_WORD): Keep as 4.
19699 (POINTER_SIZE): Raise to 64 on shmedia.
19700 (CONST_OK_FOR_J): New macro.
19701 (CONST_OK_FOR_LETTER_P): Use it.
19702 (processor_type): Add PROCESSOR_SH5.
19703 * config/sh/sh.md: Conditionalize all expands, insns and
19704 splits to TARGET_SH1.
19706 (addsi3_compact): Renamed from...
19707 (addsi3): Now an expand.
19708 (addsi3_media, subsi3_media): New insns.
19709 (subsi3): Don't negate constants with SHmedia.
19711 * hooks.c: New file.
19712 * hooks.h: New file.
19713 * Makefile.in (HOOKS_H): New.
19714 (TARGET_DEF_H): Added $(HOOKS_H).
19715 (OBJS): Added hooks.o.
19716 (cfgcleanup.o, bb-reorder.o): Added target.h.
19717 (hooks.o): Added dependencies.
19718 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19719 (TARGET_INITIALIZER): this.
19720 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19721 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19722 * bb-reorder.c: Include target.h.
19723 (reorder_basic_blocks): Skip if cannot modify jumps.
19724 * cfgcleanup.c: Include target.h.
19725 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19727 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19729 * config/mips/mips.md (casesi_internal, casesi_internal_di):
19730 Protect jump delay slot instructions with .set noreorder and
19733 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19735 * config/mips/mips.md (casesi_internal_di): Calculate
19736 the index into the target offset table correctly.
19738 2002-02-08 Richard Henderson <rth@redhat.com>
19740 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19741 * final.c (output_addr_const): Accept and discard SUBREG.
19742 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19743 mark them unknown instead.
19744 (simplify_subtraction): Handle RTX_UNKNOWN.
19745 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19747 2002-02-08 David Edelsohn <edelsohn@gnu.org>
19749 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19751 2002-02-08 Richard Henderson <rth@redhat.com>
19753 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19755 2002-02-08 Andreas Jaeger <aj@suse.de>
19757 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19758 * config/i386/t-linux64: New file.
19760 2002-02-08 Jakub Jelinek <jakub@redhat.com>
19762 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19763 * c-parse.in (compstmt): Clear last_expr_type.
19765 2002-02-07 Richard Henderson <rth@redhat.com>
19767 * loop.c (strength_reduce): Sink final_value when not
19770 2002-02-07 David O'Brien <obrien@FreeBSD.org>
19772 * config/sparc/freebsd.h: Fix mismatched spec {.
19774 2002-02-07 Richard Henderson <rth@redhat.com>
19776 * cfgrtl.c: Include recog.h and insn-config.h.
19777 (keep_with_call_p): Fix general_operand invocation.
19778 * Makefile.in (cfgrtl.o): Update dependencies.
19780 2002-02-07 Kazu Hirata <kazu@hxi.com>
19782 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19783 comment. Accept HImode only if TARGET_H8300.
19785 2002-02-07 Eric Christopher <echristo@redhat.com>
19787 * config/mips/crtn.asm: Cleanup #ifdefs.
19789 2002-02-07 Eric Christopher <echristo@redhat.com>
19791 * config/mips/crti.asm: Add changes for mips16. mips16 uses
19792 register 7 as RA instead of $31.
19793 * config/mips/crtn.asm: Ditto.
19794 * config/mips/mips.c (mips_move_2words): Add case for
19795 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19796 (compute_frame_size): Fix typo.
19797 (save_restore_insns): Ditto. Make documentation about using
19798 register $7 as return register more precise.
19799 (mips_expand_epilogue): Fix comment. Add code to work around not
19800 being able to add to the stack pointer directly.
19801 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19802 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19805 2002-02-07 Tom Rix <trix@redhat.com>
19807 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
19808 immediates in ldu and stdu DS opcode field.
19809 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19810 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19811 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19813 2002-02-07 Jeff Sturm <jsturm@one-point.com>
19815 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19816 offset for stack bias.
19818 2002-02-07 H.J. Lu <hjl@gnu.org>
19820 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19822 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
19824 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19826 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
19828 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19829 * i386.c (x86_order_regs_for_local_alloc): New global function.
19830 * i386.h (REG_ALLOC_ORDER): CLeanup.
19831 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19833 2002-02-07 Richard Henderson <rth@redhat.com>
19835 PR optimization/2463
19836 * alias.c (find_base_value): Recall base values for fixed hard regs.
19837 * loop.c (loop_regs_update): Don't use single_set on non-insns.
19839 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
19841 * config/mips/mips.md (define_delay) [mips16]: Adjust required
19844 2002-02-06 Richard Henderson <rth@redhat.com>
19847 * stmt.c (resolve_operand_name_1): Take more care with mixed
19848 named and unnamed operands.
19850 2002-02-06 Janis Johnson <janis187@us.ibm.com>
19851 Jan Hubicka <jh@suse.cz>
19853 * loop.c (remove_constant_addition): Avoid clobbering a shared
19856 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19858 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19859 * config/s390/t-linux64: New file.
19860 * config/s390/libgcc-glibc.ver: New file.
19862 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19864 * config/s390/linux64.h: Delete file.
19865 * config/s390/s390x.h: New file.
19866 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19867 as target header file.
19868 * config/s390/linux.h (TARGET_VERSION): Define depending on
19869 DEFAULT_TARGET_64BIT.
19870 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19871 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19872 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19873 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19874 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19875 (EXTRA_SPEC): New define.
19876 * config/s390/s390.h (TARGET_VERSION): Define depending on
19877 DEFAULT_TARGET_64BIT.
19878 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19880 2002-02-06 Jason Merrill <jason@redhat.com>
19882 * c-decl.c (finish_function): Warn about a non-void function with
19883 no return statement and no abnormal exit.
19884 (current_function_returns_abnormally): New variable.
19885 (start_function): Clear it.
19886 (struct c_language_function): Add returns_abnormally.
19887 (push_c_function_context): Save it.
19888 (pop_c_function_context): Restore it.
19889 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19890 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19891 an explicit return type.
19892 * c-tree.h: Declare current_function_returns_abnormally.
19893 (C_FUNCTION_IMPLICIT_INT): New macro.
19894 * c-typeck.c (build_function_call): Set it.
19895 (c_expand_return): Set current_function_returns_value even if the
19896 value is erroneous.
19898 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19901 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19902 unsafe for reevaluation.
19904 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19907 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19908 EXPR_STMT, but COMPOUND_STMT, recurse into it.
19910 2002-02-06 Richard Henderson <rth@redhat.com>
19912 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19913 be a general_operand. Dest for function value must be a pseudo.
19915 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
19917 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19918 as SYMBOL_REFs from the constant pool.
19920 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
19922 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19923 passed by invisible reference.
19925 2002-02-05 Richard Henderson <rth@redhat.com>
19927 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19929 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
19931 Implement using "base addresses" in insn operands as default.
19932 * config/mmix/mmix.c (mmix_conditional_register_usage): if
19933 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19934 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19935 used to read the rtx value.
19936 (mmix_target_asm_function_epilogue): Fix spacing.
19937 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19938 (mmix_legitimate_address): Ditto.
19939 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19940 should be loaded with a GETA insn. Don't allocate needless extra
19941 char for nul termination and fix misleading comment.
19942 (mmix_print_operand_address): Handle constants if
19943 TARGET_BASE_ADDRESSES.
19944 (mmix_output_register_setting): Use base addressing if
19945 TARGET_BASE_ADDRESSES and the number of insns is 3.
19946 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19947 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19948 to use R as constraint, add LDA to match s.
19949 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19950 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19951 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19952 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19953 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19954 order with other fixed registers.
19955 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
19956 other parameter/call-clobbered registers.
19957 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
19958 -mbase-addresses, -mno-base-addresses.
19959 (MMIX Options): Ditto.
19961 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
19963 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
19965 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
19967 * config/rs6000/altivec.h: Change elem to _S_elem.
19969 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19971 * config/netbsd.h (WCHAR_TYPE): Define.
19972 (WCHAR_TYPE_SIZE): Ditto.
19973 (WINT_TYPE): Ditto.
19974 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
19975 (WCHAR_UNSIGNED): Ditto.
19976 (WCHAR_TYPE_SIZE): Ditto.
19977 (WINT_TYPE): Ditto.
19978 * config/arm/netbsd.h: Likewise.
19979 * config/i386/netbsd-elf.h: Likewise.
19980 * config/i386/netbsd.h: Likewise.
19981 * config/m68k/netbsd-elf.h: Likewise.
19982 * config/m68k/netbsd.h: Likewise.
19983 * config/ns32k/netbsd.h: Likewise.
19984 * config/sparc/netbsd.h: Likewise.
19985 * config/vax/netbsd.: Likewise.
19987 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
19989 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
19990 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
19991 (TARGET_INITIALIZER): this.
19992 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
19993 (BITFIELD_NBYTES_LIMITED): Markup fix.
19994 * tree.h (default_ms_bitfield_layout_p): Declare.
19995 (record_layout_info): Added prev_field.
19996 * tree.c (default_ms_bitfield_layout_p): New fn.
19997 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
19998 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
19999 * stor-layout.c: Include target.h.
20000 (start_record_layout): Initialize prev_field.
20001 (place_field): Handle MS bit-field layout, and disregard
20002 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
20003 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
20004 * Makefile.in (stor-layout.o): Adjust dependencies.
20006 2002-02-05 Jason Merrill <jason@redhat.com>
20008 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
20010 2002-02-05 Andreas Jaeger <aj@suse.de>
20012 * crtstuff.c: Fix comments.
20014 2002-02-05 Richard Henderson <rth@redhat.com>
20017 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
20018 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
20021 * config/mips/mips.c (function_arg): Handle TImode.
20022 (function_arg_advance): Likewise.
20024 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20026 * config/rs6000/altivec.h (vec_step_help): Rename to
20029 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20031 * config/rs6000/altivec.h: Fix typos.
20033 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20035 * config/arm/netbsd.h: Correct a comment.
20037 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20039 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
20040 building void typed builtins.
20042 * config/rs6000/altivec.h (vec_ld*): Fix typos.
20043 (vec_step): Implement for C++.
20045 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20047 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
20049 2002-02-04 Richard Henderson <rth@redhat.com>
20051 * combine.c (nonzero_bits): Re-introduce special case for
20052 sp/fp/ap wrt REGNO_POINTER_ALIGN.
20054 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20056 * doc/extend.texi: Warn about unsupported usage of altivec
20059 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
20060 (altivec_predicate_*): New.
20062 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
20063 Add C++ version of vec_*() functions.
20065 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
20066 (bdesc_2arg): Remove altivec predicates.
20067 (altivec_expand_builtin): Handle predicates.
20068 (altivec_init_builtins): Handle predicates.
20069 (altivec_expand_predicate_builtin): New.
20071 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20073 * pa.c (DO_FRAME_NOTES): Move forward.
20074 (store_reg): Revise handling of frame notes.
20075 (load_reg): Likewise.
20076 (set_reg_plus_d): Likewise.
20077 (hppa_expand_prologue): Likewise.
20078 (hppa_expand_epilogue): Likewise.
20080 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20082 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
20084 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20086 PR c/4475, c++/3780:
20087 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
20088 * c-common.h (SWITCH_TYPE): Define.
20089 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
20090 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
20091 Rename spareness variable to sparseness.
20092 (expand_end_case_type): Renamed from expand_end_case, use orig_type
20093 if non-NULL instead of TREE_TYPE (orig_index).
20094 * tree.h (expand_end_case_type): Renamed from expand_end_case.
20095 (expand_end_case): Define using expand_end_case_type.
20096 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
20097 to expand_end_case_type.
20098 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
20100 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20102 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
20103 (BIGGEST_ALIGNMENT): Change to 128.
20105 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20107 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
20109 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20111 * pa.md (call_internal_reg_64bit): Remove unused variable.
20113 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
20115 * config/arm/arm.h (machine_function): Add uses_anonymous_args
20117 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
20118 * config/arm/arm.c (current_function_anonymous_args): Delete,
20119 replace uses with cfun->machine->uses_anonymous_args.
20120 (arm_reorg): Do not reset uses_anonymous_args.
20122 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
20123 any geenral register.
20125 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
20127 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
20130 2002-02-04 Richard Henderson <rth@redhat.com>
20132 * combine.c (force_to_mode): Remove STACK_BIAS code.
20133 (nonzero_bits): Likewise. Replace sp/fp special case with
20134 REGNO_POINTER_ALIGN.
20136 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
20137 (HARD_FRAME_POINTER_REGNUM): New.
20138 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
20139 (FIXED_REGS, CALL_USED_REGS): Update.
20140 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
20141 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
20142 (HARD_REGNO_NREGS): Update for SFP.
20143 (STACK_POINTER_OFFSET): Include bias here ...
20144 (FIRST_PARM_OFFSET): ... not here.
20145 (STACK_BIAS): Remove.
20146 (INIT_EXPANDERS): New.
20147 (STARTING_FRAME_OFFSET): Do not include bias.
20148 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
20149 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
20150 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
20151 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
20152 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
20153 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
20154 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
20155 (MUST_SAVE_REGISTER): Likewise.
20156 (sparc_flat_function_prologue): Likewise.
20157 (sparc_flat_function_epilogue): Likewise.
20158 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
20159 (sparc_init_modes): SFP is GENERAL_REGS.
20160 (sparc_builtin_saveregs): SFP does not have bias applied.
20162 2002-02-04 Richard Henderson <rth@redhat.com>
20164 * config/alpha/alpha.c (current_function_is_thunk): Don't check
20165 current_function_is_thunk.
20166 (alpha_sa_mask): Distinguish between current_function_is_thunk
20167 called from ASM_OUTPUT_MI_THUNK and not.
20168 (alpha_does_function_need_gp): Thunks always need gp.
20169 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20170 (alpha_output_mi_thunk_osf): New.
20171 * config/alpha/alpha-protos.h: Update.
20172 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
20174 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
20176 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
20177 function types, not when they're taken away.
20179 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
20181 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
20182 CODE_LABEL and jump table when replacing a table jump with a
20185 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20187 * config/s390/s390-protos.h (legitimize_la_operand,
20188 s390_secondary_input_reload_class, s390_plus_operand,
20189 s390_expand_plus_operand): Add prototypes.
20191 config/s390/s390.c (s390_secondary_input_reload_class,
20192 s390_plus_operand, s390_expand_plus_operand): New functions.
20194 (struct s390_address): New member 'pointer'.
20195 (s390_decompose_address): Compute it.
20196 (legitimate_la_operand_p): Use it.
20197 (legitimize_la_operand): New function.
20198 (movti, movdi, movdf splitters): Call it.
20200 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
20201 (PREDICATE_CODES): Add s390_plus_operand.
20203 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
20204 (la_ccclobber): Allow GENERAL_REGS as output operand.
20206 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
20207 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
20208 (*la_64, *la_31, reload_indi, reload_insi): ... these.
20210 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20212 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
20213 register names for regular asm () construct.
20215 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20217 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
20220 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20222 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
20225 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
20227 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
20228 constant pool to be identical by string address and index.
20230 2002-02-04 Anthony Green <green@redhat.com>
20232 * output.h (SECTION_OVERRIDE): Define.
20233 * varasm.c (named_section): Obey SECTION_OVERRIDE.
20235 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20237 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
20238 by existing arm*-*-netbsd* (a.out) target.
20239 (ns32k-*-netbsdelf*): Likewise.
20240 (sparc-*-netbsdelf*): Likewise.
20241 (vax-*-netbsdelf*): Likewise.
20243 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
20245 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
20246 headers and libobjc headers.
20248 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
20250 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
20251 (_mingw.h): Remove duplicate include.
20253 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20255 * config.gcc: Set cpu_type to m68k for 68010, as well.
20256 (m68010-*-netbsdelf*): New...
20257 (m68k*-*-netbsdelf*): ...targets.
20258 * config/m68k/netbsd-elf.h: New file.
20260 2002-02-02 Kazu Hirata <kazu@hxi.com>
20262 * config/h8300/h8300.c (hand_list): Move inside function_arg.
20264 2002-02-02 Kazu Hirata <kazu@hxi.com>
20266 * config/h8300/h8300.c (h8_push_ops): Move inside
20268 (h8_pop_ops): Likewise.
20269 (h8_move_ops): Likewise.
20271 2002-02-02 Kazu Hirata <kazu@hxi.com>
20273 * config/h8300/h8300.c (os_task): Make it static.
20274 (monitor): Likewise.
20275 (pragma_saveall): Likewise.
20277 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
20279 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
20280 constant is a valid sign-extension for Pmode.
20282 2002-02-02 Kazu Hirata <kazu@hxi.com>
20284 * config/h8300/h8300.c: Fix formatting.
20286 2002-02-02 Kazu Hirata <kazu@hxi.com>
20288 * config/h8300/h8300.md: Fix formatting.
20290 2002-02-02 Kazu Hirata <kazu@hxi.com>
20292 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
20293 predicates of operands[1]. Split the patterns for each
20296 2002-02-02 Kazu Hirata <kazu@hxi.com>
20298 * config/h8300/h8300.md (xor patterns): Tighten the predicates
20299 of operands[1] to register_operand.
20301 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20303 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
20304 * cpphash.c (_cpp_init_hashtable): Similarly.
20305 * cppinit.c (cpp_create_reader): Default the signed_char flag.
20306 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
20307 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
20308 (cpp_handle_option): Handle the new options.
20309 * cpplex.c (cpp_interpret_charconst): Use new flag.
20310 * cpplib.h (struct cpp_options): New member signed_char.
20311 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
20312 (cpp_options): Handle -fsigned-char and -funsigned-char.
20313 (static_specs): Remove signed_char_spec.
20314 (do_spec1): Don't handle %c.
20315 * system.h: Poison SIGNED_CHAR_SPEC.
20316 * tradcif.y (yylex): Use flag_signed_char.
20317 * tradcpp.h (flag_signed_char): New.
20318 * tradcpp.c (flag_signed_char): New.
20319 (main): Handle new command-line options.
20320 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
20322 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
20323 * avr/avr.h: Remove old comments.
20324 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
20325 (CC1_SPEC): Pass -fsigned-char if -mic*.
20326 (SIGNED_CHAR_SPEC): Remove.
20328 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
20330 2002-02-01 Eric Christopher <echristo@redhat.com>
20332 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
20333 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
20334 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
20335 (ASM_OUTPUT_REG_POP): Ditto.
20337 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20339 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
20342 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20344 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
20346 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20349 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
20352 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20354 * cfganal.c: Include tm_p.h.
20355 (keep_with_call_p): Fix the test that determines if a register holds
20356 the return value of a call.
20358 2002-02-01 DJ Delorie <dj@redhat.com>
20360 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
20361 we are given conflicting registers, switch to the other one we
20362 had allocated for us.
20363 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
20364 as TImode so we know when the "other" register is available.
20366 2002-02-01 David O'Brien <obrien@FreeBSD.org>
20368 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
20371 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20373 * cfganal.c (keep_with_call_p): New function.
20374 (flow_call_edges_add): Prevent splitting a block between a call and
20375 a single-set instruction that should be kept in the same block.
20377 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
20379 * doc/install.texi (avr): Update outdated URL.
20381 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
20383 * config/stormy16/stormy16.md (pushqi): New.
20387 (movhi): Remove stack operands.
20389 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
20390 nonimmediate_nonstack_operand.
20391 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
20393 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
20396 2002-01-31 Jason Merrill <jason@redhat.com>
20398 * Makefile.in (c-parse.c): Handle .output file.
20399 * objc/Make-lang.in (objc-parse.c): Likewise.
20401 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
20403 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
20404 the -me[lb] option is given. Don't output the default flag
20407 2002-01-31 Zack Weinberg <zack@codesourcery.com>
20409 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
20410 the primary source file; this has not been done yet.
20411 * c-decl.c (c_expand_body): Reset input_filename from
20412 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
20414 2002-01-31 Kazu Hirata <kazu@hxi.com>
20416 * rtlanal.c (subreg_regno_offset): Do not use
20417 SUBREG_REGNO_OFFSET.
20418 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
20419 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
20421 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20423 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
20424 version rather than GNATS version in --version output.
20426 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
20428 * ifcvt.c (noce_process_if_block): Make a copy of the destination
20429 when copying back from a temporary.
20431 2002-01-30 Richard Henderson <rth@redhat.com>
20433 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
20434 and new_dest are the same.
20436 2002-01-30 Richard Henderson <rth@redhat.com>
20439 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
20440 * rtl.c (note_insn_name): Update.
20441 * emit-rtl.c (remove_unnecessary_notes): Kill it.
20442 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
20443 to perform loop rotation.
20444 (expand_exit_loop_top_cond): New.
20445 * tree.h (expand_exit_loop_top_cond): Declare it.
20446 * c-semantics.c (genrtl_while_stmt): Use it.
20447 (genrtl_for_stmt): Likewise.
20449 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
20451 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
20452 arguments to 64-bit boundaries on 64-bit ABIs.
20454 2002-01-30 Steve Ellcey <sje@cup.hp.com>
20456 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
20458 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20460 * c-decl.c (grokdeclarator): Handle type being a typedef for an
20463 2002-01-30 David O'Brien <obrien@FreeBSD.org>
20465 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
20466 * config/sparc/sparc_bi.h: Remove file.
20467 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
20469 2002-01-30 Richard Henderson <rth@redhat.com>
20471 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
20473 2002-01-30 Zack Weinberg <zack@codesourcery.com>
20475 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
20477 2002-01-30 Jason Merrill <jason@redhat.com>
20479 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
20480 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
20481 (reg_save): Use DW_CFA_offset_extended_sf instead.
20483 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
20485 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20487 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
20490 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
20492 * rs6000.md ("*call_value_local32"): Remove constraints.
20493 ("*call_value_local64"): Same.
20494 ("*call_value_indirect_nonlocal_aix32"): Same.
20495 ("*call_value_nonlocal_aix32"): Same.
20496 ("*call_value_indirect_nonlocal_aix64"): Same.
20497 ("*call_value_nonlocal_aix64"): Same.
20498 ("*call_value_nonlocal_sysv"): Same.
20500 2002-01-29 Richard Henderson <rth@redhat.com>
20502 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
20504 2002-01-29 Richard Henderson <rth@redhat.com>
20506 * expr.c (force_operand): Ignore flag_pic for detecting pic
20508 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
20509 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
20510 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
20511 instead of open-coded loop.
20512 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
20513 be fixed when in use.
20515 2002-01-29 Richard Henderson <rth@redhat.com>
20517 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
20518 * sched-rgn.c (propagate_deps): Update them.
20519 * sched-deps.c (sched_analyze_insn): Update them. Flush the
20520 clobbers list when either gets too long.
20522 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20524 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
20525 and INDEX_REGS the same as GENERAL_REGS.
20526 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
20528 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20530 * tree.c (build_nonstandard_integer_type): Correct prototype.
20532 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
20534 * config/s390/s390.md (movstrsico, movstrdix_64,
20535 movstrsix_31): Remove, replace by ...
20536 (movstrdi_short, movstrsi_short, movstrdi_long,
20537 movstrsi_long): ... these. New.
20538 (movstrdi, movstrsi): Adapt.
20540 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
20541 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
20542 Remove unnecessary CC clobber.
20543 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20544 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20546 (divmoddi4): Don't partially initialize TImode register.
20548 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
20550 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20552 2002-01-29 Richard Henderson <rth@redhat.com>
20554 * flow.c (print_rtl_and_abort): Remove.
20555 (print_rtl_and_abort_fcn): Remove.
20556 (verify_local_live_at_start): Use dump_bb instead.
20557 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20558 (verify_wide_reg_1): Return 2 on mode test failure.
20560 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20562 PR c/3325, c/3326, c/2511, c/3347
20563 * c-decl.c (enum_decl_context): Remove BITFIELD.
20564 (grokdeclarator): Take bitfield width as an input.
20565 Ensure bitfields are given the correct type. Perform
20566 bitfield width validation with build_bitfield_integer_type
20567 rather than waiting for finish_struct.
20568 (grok_typename, grok_typename_in_parm_context, start_decl,
20569 push_parmdecl, grokfield, start_function): Update calls to
20571 (build_bitfield_integer_type): New function.
20572 (finish_struct): Move bitfield validation to grokdeclarator
20573 and build_bitfield_integer_type.
20574 * tree.c (build_nonstandard_integer_type): New function.
20575 * tree.h (build_nonstandard_integer_type): New prototype.
20577 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20579 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20582 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20583 don't ignore unrecognized -W* options.
20584 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20585 * cpplib.h (cpp_handle_option): Adjust prototype.
20586 * c-decl.c (c_decode_options): Pass 0 as last argument to
20590 * gcc.c (cpp_unique_options): Split from cpp_options.
20591 (cpp_options): Source cpp_unique_options.
20592 (default_compilers): Use cpp_unique_options instead of cpp_options
20593 when used together with cc1_options.
20594 (static_specs): Add cpp_unique_options.
20595 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20596 when used together with cc1_options.
20598 2002-01-29 Kazu Hirata <kazu@hxi.com>
20600 * config/h8300/h8300-protos.h: Update the prototype of
20602 * config/h8300/h8300.c (output_a_shift): Remove an unused
20603 argument 'insn'. Remove redundant code.
20604 * config/h8300/h8300.md: Adust to the new prototype of
20607 2002-01-29 Kazu Hirata <kazu@hxi.com>
20609 * config/h8300/h8300-protos.h: Update the prototypes of
20610 emit_a_rotate and expand_a_rotate.
20611 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20612 first argument to 'enum rtx_code'.
20613 (expand_a_rotate): Likewise.
20615 2002-01-28 Kazu Hirata <kazu@hxi.com>
20617 * config/h8300/h8300-protos.h: Update the prototype of
20619 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20621 * config/h8300/h8300.md: Adjust to the new prototype.
20623 2002-01-28 Kazu Hirata <kazu@hxi.com>
20625 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20628 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
20630 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20631 is a fixed register before returning pic_offset_table_rtx.
20632 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20633 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20635 2002-01-28 Jason Merrill <jason@redhat.com>
20637 * dwarf2.h: Sync with src version.
20639 2002-01-28 Paul Koning <pkoning@equallogic.com>
20641 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20642 BT_FN_VOID_PTR_VAR.
20643 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20644 * doc/extend.texi (__builtin_prefetch): Update documentation:
20645 first argument is now const void ptr.
20647 2002-01-28 Kazu Hirata <kazu@hxi.com>
20649 * config/h8300/h8300-protos.h: Remove an unused prototype.
20651 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
20653 * toplev.c (lang_independent_init): Round up identifier size.
20655 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20657 * config.gcc: Revert previous change.
20659 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
20661 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20663 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20665 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20666 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
20667 other non-elf netbsd config frags.
20668 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20669 collect2 will does that.
20670 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20671 shared-lib frobbing will work.
20673 2002-01-28 Kazu Hirata <kazu@hxi.com>
20675 * config/h8300/h8300.h: Fix formatting.
20676 * config/h8300/h8300.md: Likewise.
20678 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
20680 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20681 the old, removed AAA_standards fix.
20682 * fixinc/fixincl.x: Rebuilt.
20684 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
20686 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20687 atexit call in crtbegin, hooked in after call to frame_dummy;
20688 register EH before registering __fini__start.
20690 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
20692 * config/rs6000/altivec.h: Remove spurious semicolons.
20694 2002-01-27 Kazu Hirata <kazu@hxi.com>
20696 * config/h8300/h8300.md: Replace dead bit extraction patterns
20697 with ones that work.
20699 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20701 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20702 if not STRICT_ALIGNMENT.
20703 * rtl.h (MEM_ALIGN): Likewise.
20705 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
20707 * doc/invoke.texi (-fdump-translation-unit): Revert this
20708 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
20710 2002-01-27 Kazu Hirata <kazu@hxi.com>
20712 * config/h8300/h8300.md (define_constants): New.
20713 (anonymous patterns) Use defined constants appropriately.
20715 2002-01-27 Kazu Hirata <kazu@hxi.com>
20717 * config/h8300/h8300.c (function_arg): Remove redundant code.
20719 2002-01-26 Richard Henderson <rth@redhat.com>
20721 * sched-deps.c (reg_pending_uses_head): New.
20722 (reg_pending_barrier): Rename from reg_pending_sets_all.
20723 (find_insn_list): Don't mark inline.
20724 (find_insn_mem_list): Remove.
20725 (add_dependence_list, add_dependence_list_and_free): New.
20726 (flush_pending_lists): Replace only_write param with separate
20727 for_read and for_write parameters. Update all callers. Use
20728 add_dependence_list_and_free.
20729 (sched_analyze_1): Do not add reg dependencies here; just set
20730 the pending bits. Use add_dependence_list.
20731 (sched_analyze_2): Likewise.
20732 (sched_analyze_insn): Replace schedule_barrier_found with
20733 reg_pending_barrier. Add all dependencies for pending reg
20734 uses, sets, and clobbers.
20735 (sched_analyze): Don't add reg dependencies for calls, just
20736 set pending bits. Use regs_invalidated_by_call. Treat
20737 sched_before_next_call as a normal list, not a fake insn.
20738 (init_deps): No funny init for sched_before_next_call.
20739 (free_deps): Free pending mems lists. Don't zero reg_last.
20740 (init_deps_global): Init reg_pending_uses.
20741 (finish_deps_global): Free it.
20742 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
20743 (find_insn_mem_list): Remove.
20744 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20745 (propagate_deps): Use them. Zero temp mem lists.
20747 2002-01-26 Richard Henderson <rth@redhat.com>
20749 * Makefile.in (CRTSTUFF_CFLAGS): New.
20750 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20751 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20752 crtstuff.c instead of alpha assembly version.
20753 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20754 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
20755 not FORCE_{INIT,FINI}_SECTION_ALIGN.
20756 (__do_global_dtors_aux): Mark used.
20757 (frame_dummy, __do_global_ctors_aux): Mark used.
20758 (fini_dummy, init_dummy): Remove.
20760 * config/alpha/crtbegin.asm: Remove file.
20761 * config/alpha/crtend.asm: Remove file.
20762 * config/alpha/t-crtbe: Remove file.
20763 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20764 (LINK_EH_SPEC): New.
20766 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20767 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
20768 calling constructors.
20769 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20771 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20772 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20773 CRT_END_INIT_DUMMY hack.
20774 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20775 FORCE_{INIT,FINI}_SECTION_ALIGN.
20777 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20778 FORCE_{INIT,FINI}_SECTION_ALIGN.
20780 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20781 invocation sequence.
20782 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20784 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20785 (FORCE_CODE_SECTION_ALIGN): New.
20787 2002-01-26 Richard Henderson <rth@redhat.com>
20789 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20791 2002-01-26 Richard Henderson <rth@redhat.com>
20793 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20794 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20796 2002-01-26 Kazu Hirata <kazu@hxi.com>
20798 * config/h8300/h8300.md: Remove bit extraction patterns that
20799 cannot be triggered.
20800 Restrict each bit extraction pattern to a variant on which the
20803 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
20805 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20807 2002-01-26 Kazu Hirata <kazu@hxi.com>
20809 * config/h8300/h8300.md: Remove bit test patterns that cannot
20811 Restrict each bit test pattern to a variant on which the
20814 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20816 * builtins.c (expand_builtin_strncat): Remove redundant check for
20819 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20821 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20823 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20826 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20828 * dbxout.c (dbxout_init): Use assemble_name rather than just
20829 stripping off the first character.
20830 (dbxout_source_file): Likewise.
20832 2002-01-25 DJ Delorie <dj@redhat.com>
20834 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20835 using rtx_equal_p, not by comparing pointers.
20837 2002-01-25 Steve Ellcey <sje@cup.hp.com>
20839 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20840 for PIC_OFFSET_TABLE_REGNUM.
20841 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20843 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20845 * config.gcc (x86_64-*-freebsd*): New target.
20846 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20848 (i[34567]86-*-freebsd*): Don't include svr4.h.
20849 * config/i386/freebsd64.h: New file.
20851 2002-01-25 Douglas B Rupp <rupp@gnat.com>
20853 * config/alpha/x-vms (version): Make static.
20855 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20856 in previous checkin.
20858 * Makefile.in (install-headers-cp): New target.
20859 * config.gcc (alpha-dec-*vms*): Install headers with
20862 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
20864 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20867 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20869 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20870 of compare_tree_int.
20871 (expand_builtin_strncat): Likewise.
20872 * c-decl.c (finish_struct): Use tree_low_cst.
20873 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20874 * tree.c (compare_tree_int): Likewise.
20876 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
20878 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20879 adjustments even if they are implemented by more than two insns.
20881 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
20883 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
20884 * df.h (struct ref): Kill B.
20885 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20887 * basic-block.h (PROP_EQUAL_NOTES): New flag.
20888 * flow.c (propagate_one_insn): Use it.
20889 (mark_used_regs): Handle NIL.
20891 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20893 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20896 2002-01-25 David Edelsohn <edelsohn@gnu.org>
20898 * rs6000.md (prefetch): Make address V4SI mode so that the address
20899 is restricted to legitimate form for instruction.
20901 2002-01-25 Bob Wilson <bob.wilson@acm.org>
20903 * doc/install.texi (xtensa-*-elf): New target.
20904 (xtensa-*-linux*): New target.
20905 * doc/contrib.texi: Add myself.
20907 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
20909 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20910 purpose register to hold an SImode (or smaller) value.
20912 2002-01-25 Jakub Jelinek <jakub@redhat.com>
20914 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20916 * crtstuff.c: Likewise.
20918 2002-01-25 Kazu Hirata <kazu@hxi.com>
20920 * config/h8300/h8300.md (negation patterns): Tighten
20921 predicates to register_operand.
20923 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
20925 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20928 * builtins.c (expand_builtin_prefetch): Same.
20930 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20932 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20935 2002-01-24 Kazu Hirata <kazu@hxi.com>
20937 * config/h8300/h8300.c (print_operand): Remove support for
20938 operand character 'A'.
20939 * config/h8300/h8300.md (three anonymous patterns): Replace
20940 operand character 'A' with either 'T' or 'S'.
20942 2002-01-24 Kazu Hirata <kazu@hxi.com>
20944 * config/h8300/h8300.c (print_operand): Remove support for
20945 operand character 'U'.
20947 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
20949 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
20951 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
20953 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20954 values to be assigned to the stack pointer.
20956 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
20958 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
20959 to const_double needs to be done right for big-endian systems.
20961 2002-01-24 Jason Merrill <jason@redhat.com>
20964 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
20965 to can_throw_internal.
20967 2002-01-23 Richard Henderson <rth@redhat.com>
20969 * fold-const.c (fold): Change UINT_MAX test to check vs precision
20970 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
20972 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20974 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
20975 (symGOT2reg): Use them, then set as GOT value as unchanging.
20976 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
20977 as a temporary, if possible.
20978 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
20979 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
20981 2002-01-23 Kazu Hirata <kazu@hxi.com>
20983 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
20984 accept to accept 0x80 as operands[2].
20986 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20988 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
20990 2002-01-23 Richard Henderson <rth@redhat.com>
20992 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
20994 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
20996 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
20997 (parmlist_or_identifiers_1): Verify that only a parmlist follows
21000 2002-01-23 Richard Henderson <rth@redhat.com>
21002 * expr.c (move_by_pieces_1): Extend size before negation.
21004 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
21005 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
21006 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
21007 * config/m68k/t-m68kelf: Likewise.
21009 2002-01-23 Bob Wilson <bob.wilson@acm.org>
21011 * config/xtensa/elf.h: New file.
21012 * config/xtensa/lib1funcs.asm: New file.
21013 * config/xtensa/lib2funcs.S: New file.
21014 * config/xtensa/linux.h: New file.
21015 * config/xtensa/t-xtensa: New file.
21016 * config/xtensa/xtensa-config.h: New file.
21017 * config/xtensa/xtensa-protos.h: New file.
21018 * config/xtensa/xtensa.c: New file.
21019 * config/xtensa/xtensa.h: New file.
21020 * config/xtensa/xtensa.md: New file.
21021 * config.gcc (xtensa-*-elf*): New target.
21022 (xtensa-*-linux*): New target.
21023 * cse.c (canon_hash): Compare rtx pointers instead of register
21024 numbers. This is required for the Xtensa port.
21025 * integrate.c (copy_insn_list): Handle case where the static
21026 chain is in memory and the memory address has to be copied to
21028 * doc/invoke.texi (Option Summary): Add Xtensa options.
21029 (Xtensa Options): New node.
21030 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
21032 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21034 * diagnostic.c (internal_error): Do ICE suppression only
21035 when ENABLE_CHECKING is not defined.
21037 * c-typeck.c (require_complete_type): Return error_mark_node
21038 if type is error_mark_node.
21040 2002-01-23 Janis Johnson <janis187@us.ibm.com>
21042 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
21043 -Os and issue a warning.
21045 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21047 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
21048 current (lack of) need for host configuration by hand.
21050 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
21051 references. Documentation of some target macros moved from
21052 hostconfig.texi to tm.texi.
21054 2002-01-23 Will Cohen <wcohen@redhat.com>
21056 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
21059 2002-01-23 Kazu Hirata <kazu@hxi.com>
21061 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
21064 2002-01-23 Jason Merrill <jason@redhat.com>
21066 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
21068 * function.c (assign_parms): Don't put args of inline functions
21069 into registers when not optimizing.
21071 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
21073 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
21074 (prologue_use): New pattern.
21075 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
21076 preference to gen_rtx_USE.
21077 (thumb_expand_prologue): Use gen_prologue_use in preference to
21079 (thumb_expand_epilogue): Use gen_prologue_use in preference to
21082 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
21084 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
21086 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
21089 * doc/extend.texi: Correct documentation of __alignof__.
21091 2002-01-22 Zack Weinberg <zack@codesourcery.com>
21093 * params.h: Rename arguments of DEFPARAM so that it will be
21094 recognized as a translation keyword.
21096 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21098 * extend.texi: Document altivec functions.
21099 Fix N-bit adjectives in X86 builtin documentation.
21101 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21103 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
21104 auto_inc_dec values.
21106 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
21108 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
21110 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
21112 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21114 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
21116 2002-01-22 Richard Henderson <rth@redhat.com>
21118 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
21119 copy_insn not copy_rtx.
21121 2002-01-23 Alan Modra <amodra@bigpond.net.au>
21123 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
21124 "nonzero" as that might add "1" bits. Ensure "constop" is
21125 properly sign extened.
21126 (force_to_mode): Tweak for sign extended constop.
21128 2002-01-22 Richard Henderson <rth@redhat.com>
21130 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
21131 for_each_rtx instead of assuming we're already looking at the MEM.
21132 (split_small_symbolic_mem_operand): Likewise.
21133 * config/alpha/alpha.h (PREDICATE_CODES): Update.
21134 * config/alpha/alpha.md (small symbolic memory splitters): Update.
21136 2002-01-22 Richard Henderson <rth@redhat.com>
21138 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
21139 sequence number for the literal.
21140 (divmoddi_internal_er): Likewise.
21142 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21145 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
21146 in LIBICONV variable.
21147 * configure: Regenerated.
21149 2002-01-22 Krister Walfridsson <cato@df.lth.se>
21151 * dependence.c (build_def_use): Remove array_idx.
21153 * dwarfout.c (last_filename): Remove.
21154 (output_compile_unit_die): Remove last_filename.
21156 2002-01-22 Roger Sayle <roger@eyesopen.com>
21157 Richard Henderson <rth@redhat.com>
21160 * fold-const.c (fold): Optimize unsigned comparisons against
21161 UINT_MAX (and similar unsigned constants).
21163 2002-01-22 Janis Johnson <janis187@us.ibm.com>
21165 * Makefile.in (loop.o): Depend on OPTABS_H.
21166 * loop.c (emit_prefetch_instructions): Check the prefetch operand
21167 against the predicate.
21170 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
21171 for the address operand.
21173 2002-01-22 Richard Henderson <rth@redhat.com>
21175 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
21177 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21180 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
21181 preprocessor flags.
21183 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
21185 * config.gcc (x86_64-*-netbsd*): New target.
21186 * config/i386/netbsd64.h: New file.
21188 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21190 * regrename.c (kill_value): Fix typo.
21192 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21194 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
21196 * config/rs6000/rs6000.h: Same.
21198 * function.c (instantiate_virtual_regs): Remove
21199 STARTING_FRAME_PHASE.
21200 (assign_stack_local_1): Same.
21201 Calculate frame phase.
21203 2002-01-22 Nick Clifton <nickc@redhat.com>
21205 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
21206 variable declaration to outer scope in order to simplify
21208 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
21209 arm_hard_regno_mode_ok.
21210 * config/arm/arm-protos.h: Add a prototype for
21211 arm_hard_regno_mode_ok.
21212 * config/arm/arm.c (soft_df_operand): Remove now redundant
21213 check for DImode values using IP_REGNUM.
21214 (nonimmediate_soft_df_operand): Remove now redundant check for
21215 DImode values using IP_REGNUM.
21216 (arm_hard_regno_mode_ok): New function. New check: make sure
21217 that DImode values are not stored in IP_REGNUM.
21219 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
21221 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
21223 2002-01-22 Jason Merrill <jason@redhat.com>
21225 * c-semantics.c (genrtl_compound_stmt): Only check nesting
21226 consistency if this COMPOUND_STMT is scoped.
21228 2002-01-22 Kazu Hirata <kazu@hxi.com>
21230 * predict.c: Fix formatting.
21231 * print-tree.c: Likewise.
21232 * protoize.c: Likewise.
21233 * real.h: Likewise.
21235 * sbitmap.h: Likewise.
21236 * scan.c: Likewise.
21237 * sched-deps.c: Likewise.
21238 * sched-vis.c: Likewise.
21239 * sdbout.c: Likewise.
21240 * sibcall.c: Likewise.
21242 * ssa-ccp.c: Likewise.
21243 * ssa-dce.c: Likewise.
21244 * stmt.c: Likewise.
21245 * stor-layout.c: Likewise.
21246 * system.h: Likewise.
21248 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21250 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
21251 if fits in bounds of base type.
21253 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
21254 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
21255 (add_bound_info, default): If can't find a context, make a
21257 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
21259 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
21261 * c-typeck.c (parser_build_binary_op): If result from
21262 build_binary_op is ERROR_MARK just return error_mark_node without
21263 further processing.
21265 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
21267 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
21268 Split a.out-specific bits into...
21269 * config/netbsd-aout.h: ...this.
21270 * config/netbsd-elf.h: New file.
21271 * config/alpha/netbsd-elf.h: Remove.
21272 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
21273 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
21274 (STARTFILE_SPEC): Remove redundant definition.
21275 (ENDFILE_SPEC): Likewise.
21276 (LINK_SPEC): Likewise.
21277 (CPP_SPEC): Likewise.
21278 (ASM_SPEC): Likewise.
21279 (LIB_SPEC): Likewise.
21280 (SWITCH_TAKES_ARG): Likewise.
21281 (TARGET_MEM_FUNCTIONS): Likewise.
21282 (CPP_PREDEFINES): Redefine.
21283 (ASM_FINAL_SPEC): Remove redefinition.
21284 (ASM_COMMENT_START): Redefine.
21285 (FUNCTION_PROFILER): Define.
21286 (TARGET_VERSION): Redefine.
21287 Comment and formatting cleanup.
21288 * config/i386/netbsd.h: Include <netbsd-aout.h>.
21289 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
21290 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
21291 big- or little-endian.
21292 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
21293 * config.gcc (*-*-netbsd*): Add definitions common to all
21295 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
21296 gnu_ld definitions. Add netbsd-elf.h to and remove
21297 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
21298 tmake_file, and don't lose previous tmake_file contents.
21299 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
21300 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
21301 gnu_ld definitions. Add netbsd-elf.h to tm_file.
21302 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
21303 (mipsel-*-netbsd*): Rename this to...
21304 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
21305 mips/little.h to tm_file for mips*el-*.
21306 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
21307 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
21308 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
21310 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21312 * pa-protos.h (reg_before_reload_operand): New function prototype.
21313 * pa.c (reg_before_reload_operand): New function implementation.
21314 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
21315 contraints to "*m".
21317 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21319 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
21321 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21323 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
21324 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
21325 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
21326 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
21327 (ENDFILE_SPEC): Undefine.
21328 (STARTFILE_SPEC): Redefine for PA.
21330 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21332 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
21334 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
21336 * config.gcc: Add entries to supported PowerPC --with-cpu
21339 2002-01-21 Jakub Jelinek <jakub@redhat.com>
21341 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
21342 true for 64-bit mode only SSE registers in 32-bit mode.
21344 2002-01-21 Kazu Hirata <kazu@hxi.com>
21346 * unwind-dw2.c: Fix formatting.
21347 * unwind-dw2-fde.c: Likewise.
21348 * unwind-dw2-fde.h: Likewise.
21349 * unwind-pe.h: Likewise.
21350 * varasm.c: Likewise.
21351 * varray.h: Likewise.
21353 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
21355 Remove workaround for register stack overwrite bug in mmix.
21356 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
21357 support for TARGET_REG_STACK_FILL_BUG.
21358 * config/mmix/mmix.h: Remove member has_call_without_parameters.
21359 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
21361 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
21362 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
21363 -mno-reg-stack-fill-bug-workaround.
21364 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
21365 machine member has_call_without_parameters.
21366 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
21367 -mreg-stack-fill-bug-workaround and
21368 -mno-reg-stack-fill-bug-workaround.
21369 (MMIX Options): Ditto.
21371 2002-01-21 Kazu Hirata <kazu@hxi.com>
21373 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
21375 Remove redundant code.
21377 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
21379 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
21380 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21381 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21382 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
21383 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
21384 out target macro definitions and non-target-specific comments
21385 mostly taken from old versions of the manual.
21387 2002-01-20 Kazu Hirata <kazu@hxi.com>
21389 * config/h8300/h8300.h: Fix comment formatting.
21390 * config/ia64/aix.h: Likewise.
21391 * config/ia64/ia64-protos.h: Likewise.
21392 * config/ia64/ia64.c: Likewise.
21393 * config/ia64/ia64.h: Likewise.
21394 * config/ia64/ia64intrin.h: Likewise.
21395 * config/ia64/linux.h: Likewise.
21396 * config/ia64/unwind-aix.c: Likewise.
21397 * config/ia64/unwind-ia64.c: Likewise.
21399 2002-01-20 Kazu Hirata <kazu@hxi.com>
21401 * config/h8300/h8300.c: Revise comments about shift code.
21403 2002-01-20 Kazu Hirata <kazu@hxi.com>
21405 * config/h8300/h8300.c (function_arg): Update a comment.
21407 2002-01-20 Kazu Hirata <kazu@hxi.com>
21409 * config/h8300/h8300.md: Update the comments at the beginning
21412 2002-01-20 Kazu Hirata <kazu@hxi.com>
21414 * config/i370/i370.c: Fix comment formatting.
21415 * config/i370/i370.h: Likewise.
21416 * config/i370/i370.md: Likewise.
21417 * config/i370/linux.h: Likewise.
21419 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21421 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
21423 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
21424 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
21425 in incomplete case.
21427 2002-01-20 Graham Stott <grahams@redhat.com>
21429 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
21431 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
21433 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
21435 2002-01-19 Tom Rix <trix@redhat.com>
21437 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
21439 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
21441 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
21443 * function.c (assign_stack_local_1): Adjust x_frame_offset with
21444 STARTING_FRAME_PHASE.
21445 (STARTING_FRAME_PHASE): New.
21446 (instantiate_virtual_regs): Check saneness of
21447 STARTING_FRAME_PHASE.
21449 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
21451 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
21453 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
21455 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
21457 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
21458 be used for bootstrapping GCC 3.0.
21460 2002-01-18 Kazu Hirata <kazu@hxi.com>
21462 * config/h8300/h8300.md: Fix an insn length.
21464 2002-01-18 Kazu Hirata <kazu@hxi.com>
21466 * bitmap.h: Fix comment formatting.
21467 * combine.c: Likewise.
21468 * cppfiles.c: Likewise.
21469 * c-pragma.h: Likewise.
21470 * c-typeck.c: Likewise.
21472 * dwarf2out.c: Likewise.
21473 * function.c: Likewise.
21475 * genattrtab.c: Likewise.
21476 * gthr-win32.h: Likewise.
21477 * haifa-sched.c: Likewise.
21478 * predict.c: Likewise.
21479 * rtlanal.c: Likewise.
21481 * unwind-dw2-fde.h: Likewise.
21482 * unwind-pe.h: Likewise.
21483 * vmsdbgout.c: Likewise.
21485 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21487 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
21488 if type_required and passed decl.
21490 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
21492 * config.gcc (cpu_type): Include altivec.h in powerpc
21496 * config/rs6000/altivec.h: New.
21498 2002-01-17 David Edelsohn <edelsohn@gnu.org>
21500 * doc/install.texi (*-ibm-aix*): Update assembler and exception
21501 handling information.
21502 * doc/trouble.texi (Interoperation): Add libstdc++ information
21504 (Misunderstandings): Add template instantiation and static template
21505 member information for AIX.
21507 2002-01-17 Jason Merrill <jason@redhat.com>
21509 * dbxout.c (dbxout_type): Support const and volatile.
21511 * except.c (add_partial_entry): Remove backwards compatibility code.
21512 (end_protect_partials): Likewise.
21514 2002-01-17 Jakub Jelinek <jakub@redhat.com>
21516 * config/ia64/ia64.md (prologue_use): New.
21517 * config/ia64/ia64.c (ia64_expand_prologue): Use
21518 gen_prologue_use instead of gen_rtx_USE.
21519 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
21520 as CODE_FOR_pred_rel_mutex.
21521 (ia64_sched_reorder2): Likewise.
21523 2002-01-16 Eric Christopher <echristo@redhat.com>
21525 * config/mips/r3900.h: Reformat.
21526 (SUBTARGET_CPP_SIZE_SPEC): Remove.
21527 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
21528 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
21529 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
21530 * config/mips/t-elf: Remove mips3 multilib.
21532 2002-01-16 H.J. Lu <hjl@gnu.org>
21534 * config/mips/linux.h: Include "mips/abi64.h".
21536 2002-01-16 H.J. Lu <hjl@gnu.org>
21538 * config/mips/t-linux: New.
21540 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
21542 * config/mips/linux.h: Don't include "gofast.h".
21543 (INIT_SUBTARGET_OPTABS): Removed.
21545 2002-01-16 Kazu Hirata <kazu@hxi.com>
21547 * config/h8300/h8300-protos.h: Replace emit_a_shift with
21549 * config/h8300/h8300.c: Likewise.
21550 * config/h8300/h8300.md: Likewise.
21552 2002-01-16 Kazu Hirata <kazu@hxi.com>
21554 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21555 spaces after an opcode name.
21556 (pushqi1_h8300hs): Likewise.
21557 (pushhi1_h8300hs): Likewise.
21559 2002-01-16 Kazu Hirata <kazu@hxi.com>
21561 * doc/extend.texi: Replace "option" with "attribute"
21564 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21566 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21567 (and:DI () (const_int -8)).
21568 (split_small_symbolic_mem_operand): Split
21569 (mem (and:DI () (const_int -8)).
21571 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21574 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
21575 same way as TYPE_IMUL.
21576 (ultrasparc_sched_reorder): Likewise.
21577 * config/sparc/sparc.md (type): Add comment to update
21578 ultrasparc_sched_reorder when making changes.
21580 2002-01-16 Kazu Hirata <kazu@hxi.com>
21582 * doc/invoke.texi: Change the dump file name of block
21583 reordering pass from 28.bbro to 29.bbro.
21584 Mention -dk option.
21586 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
21588 * i386.md (minsf splitter): Fix pasto.
21590 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21592 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21593 to frame pointer initialisation instruction.
21594 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21595 initialisation instruction.
21596 (soft_df_operand): Do not accept the IP register.
21597 (nonimmediate_soft_df_operand): Do not accept the IP register.
21599 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21602 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21603 MASK_V8 being both set.
21605 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
21607 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21608 insn for GOT register; add REG_MAYBE_DEAD notes instead.
21609 config/s390/s390.md (call, call_value): Add GOT register to
21610 CALL_INSN_FUNCTION_USAGE where needed.
21611 (call_exp, call_value_exp): New.
21613 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21615 * config/arm/arm.c: General formatting tidy up.
21617 2002-01-16 Graham Stott <grahams@redhat.com>
21619 * calls.c (try_to_integrate): Use "(size_t)" intermediate
21620 cast and when casting an integer literal to "rtx" pointer.
21621 (expand_call): Likewise.
21622 * flow.c (try_pre_increment): Likewise.
21623 (find_use_as_address): Likewise.
21624 * integrate.c (expand_iline_function): Likewise.
21625 * regmove.c (try_auto_increment): Likewise.
21627 2002-01-16 Graham Stott <grahams@redhat.com>
21629 * sched-rgn.c (passed): Use sbitmap_free.
21630 (header): Likewise.
21632 (in_queue): Likewise.
21633 (in_stack): Likewise.
21635 2002-01-15 Eric Christopher <echristo@redhat.com>
21637 * flow.c (propagate_one_insn): Change to use fatal_insn.
21639 2002-01-15 Kazu Hirata <kazu@hxi.com>
21641 * expmed.c (extract_fixed_bit_field): Remove unused code.
21642 * system.h: Poison SLOW_ZERO_EXTEND.
21643 * doc/tm.texi: Remove.
21644 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21645 * config/arm/arm.h: Likewise.
21646 * config/avr/avr.h: Likewise.
21647 * config/clipper/clipper.h: Likewise.
21648 * config/convex/convex.h: Likewise.
21649 * config/d30v/d30v.h: Likewise.
21650 * config/dsp16xx/dsp16xx.h: Likewise.
21651 * config/elxsi/elxsi.h: Likewise.
21652 * config/fr30/fr30.h: Likewise.
21653 * config/h8300/h8300.h: Likewise.
21654 * config/i370/i370.h: Likewise.
21655 * config/i386/i386.h: Likewise.
21656 * config/m68k/m68k.h: Likewise.
21657 * config/mips/mips.h: Likewise.
21658 * config/ns32k/ns32k.h: Likewise.
21659 * config/pdp11/pdp11.h: Likewise.
21660 * config/pj/pj.h: Likewise.
21661 * config/s390/s390.h: Likewise.
21662 * config/sh/sh.h: Likewise.
21663 * config/stormy16/stormy16.h: Likewise.
21664 * config/v850/v850.h: Likewise.
21665 * config/vax/vax.h: Likewise.
21666 * config/we32k/we32k.h: Likewise.
21668 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21670 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21671 (altivec_lvsl): Change constraint to b.
21672 (altivec_lvsr): Same.
21673 (altivec_lvebx): Same.
21674 (altivec_lvehx): Same.
21675 (altivec_lvewx): Same.
21676 (altivec_lvxl): Same.
21677 (altivec_lvx): Same.
21678 (altivec_stvx): Add parallel.
21679 (altivec_stvxl): Same.
21680 (altivec_stvehx): Same.
21681 (altivec_stvebx): Same.
21682 (altivec_stvebx): Same.
21684 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21686 * config.gcc: Change altivec.h to altivec-defs.h.
21688 * config/rs6000/altivec.h: Delete.
21690 * config/rs6000/altivec-defs.h: Add.
21692 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
21694 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21697 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21698 less than or equal to eight bytes.
21700 * vax.md (andsi3): Remove constraints and change SET destination
21701 operand type to nonimmediate_operand.
21702 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
21703 when it is a CONST_INT.
21705 2002-01-15 Jason Merrill <jason@redhat.com>
21707 * c-common.def (FILE_STMT): New code.
21708 * c-common.c (statement_code_p): It's a statement.
21709 * c-common.h (stmt_tree_s): Add x_last_filename.
21710 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21711 (last_expr_filename): New macro.
21712 * c-semantics.c (begin_stmt_tree): Initialize it.
21713 (add_stmt): If the filename changed, also insert a
21715 (expand_stmt): Handle seeing one.
21717 2002-01-15 Eric Christopher <echristo@redhat.com>
21719 * flow.c (propagate_one_insn): Add error message and print out
21720 insn for debugging.
21722 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21724 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21725 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21726 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21727 TRAMPOLINE_ALIGNMENT.
21728 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
21730 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21731 PCC_BITFIELD_TYPE_MATTERS.
21732 * config/interix.h (STDC_VALUE): Remove. Use
21733 STDC_0_IN_SYSTEM_HEADERS.
21734 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21735 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21736 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21738 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
21740 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21741 not work on this platform currently.
21743 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21745 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21746 readonly_warning in _().
21748 2002-01-15 Douglas B Rupp <rupp@gnat.com>
21750 * gcc.c (delete_if_ordinary): Backout previous change.
21752 2002-01-15 Kazu Hirata <kazu@hxi.com>
21754 * config/h8300/h8300.c (print_operand): Remove support for
21755 unused operand characters.
21757 * read-rtl.c: Fix formatting.
21758 * real.c: Likewise.
21759 * recog.c: Likewise.
21760 * regclass.c: Likewise.
21761 * regmove.c: Likewise.
21762 * reg-stack.c: Likewise.
21763 * reload1.c: Likewise.
21764 * rtlanal.c: Likewise.
21766 2002-01-15 Kazu Hirata <kazu@hxi.com>
21768 * config/i386/i386.c: Fix formatting.
21770 2002-01-15 Jakub Jelinek <jakub@redhat.com>
21772 * c-typeck.c (process_init_element): Don't save_expr
21773 COMPOUND_LITERAL_EXPR if just its initializer will be used.
21775 2002-01-15 David Edelsohn <edelsohn@gnu.org>
21777 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21778 emit optional traceback table if optimize_size or TARGET_ELF.
21779 * config/rs6000/rs6000.md (prefetch): New.
21781 2002-01-15 Andreas Jaeger <aj@suse.de>
21783 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21785 2002-01-15 Kazu Hirata <kazu@hxi.com>
21787 * mips-tfile.c: Fix formatting.
21789 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
21791 * unroll.c (final_reg_note_copy): Fix previous commit.
21793 2002-01-14 Kazu Hirata <kazu@hxi.com>
21795 * config/h8300/h8300-protos.h: Remove the prototype for
21797 * config/h8300/h8300.c (eq_operator): Remove.
21799 2002-01-14 Richard Henderson <rth@redhat.com>
21801 * config/i386/i386.md (prefetch): Tidy.
21802 (prefetch_3dnow): Fix locality operand.
21804 2002-01-14 Richard Henderson <rth@redhat.com>
21806 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21807 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21809 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
21811 * reload1.c (reload_combine): Pass reg_sum replacement through
21812 copy_rtx in loop performing multiple changes.
21814 2002-01-14 Jakub Jelinek <jakub@redhat.com>
21816 * except.c (remove_unreachable_regions): New.
21817 (free_eh_status): Clear exception_handler_labels.
21818 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21819 (find_exception_handler_labels): Don't add the same label more than
21821 (remove_exception_handler_label): Don't die if
21822 find_exception_handler_labels hasn't been called for the current
21825 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
21827 * toplev.c (rest_of_compilation): Rebuild jump labels after
21830 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
21832 * doc/extend.texi: Move documentation of X86 built-in functions
21834 * doc/invoke.texi: From here.
21835 * doc/sourcebuild.texi: Document location of documentation for
21836 machine built-in functions.
21838 2002-01-13 Christopher Faylor <cgf@redhat.com>
21840 * cppfiles.c (TEST_THRESHOLD): New macro.
21841 (SHOULD_MMAP): Ditto.
21842 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21845 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
21847 * unroll.c (final_reg_note_copy): Properly handle
21849 (unroll_loops): Fix LOOP_CONDITION heuristics.
21851 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
21853 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21854 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21856 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
21858 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21861 2002-01-14 Tom Rix <trix@redhat.com>
21863 * config/rs6000/rs6000.md: Fix typo with sradi.
21865 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
21867 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21868 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21869 (clrstrdi, clrstrsi): Adapt callers.
21871 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21873 (movti splitter): Never use register 0 as base register.
21875 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21877 * combine.c (simplify_shift_const): Always generate new rtx
21878 for shift expression instead of reusing given expression.
21880 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21882 * config/alpha/alpha.c (alpha_expand_mov): Don't call
21883 alpha_legitimize_address unless mode is Pmode.
21885 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
21887 * doc/md.texi (Modifiers): Document the '*' constraint for the
21890 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21891 * doc/extend.texi (Function Attributes): 'interrupt' is valid
21894 2002-01-13 Richard Henderson <rth@redhat.com>
21896 * reload.c (find_reloads): Use a hard reg destination as reload reg
21897 for an input reload of the source.
21899 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21901 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21904 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
21906 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21907 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21909 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21911 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21913 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21915 2002-01-12 Tom Rix <trix@redhat.com>
21917 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
21920 2002-01-12 Richard Henderson <rth@redhat.com>
21922 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21924 * doc/invoke.texi: Update Alpha options.
21926 * doc/invoke.texi: Update i386 built-in function lists.
21928 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
21930 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21931 referencing outside.
21933 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21935 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21936 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21937 offsets, and change line folding.
21938 * optabs.c (expand_binop): Remove warnings.
21939 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
21941 2002-01-12 Graham Stott <grahams@redhat.com>
21943 * attribs.c (handle_deprecated_attribute): constify WHAT.
21944 * diagnostic.c (warn_deprecated_use): Add braces, fixes
21945 dangling else warning and constify WHAT.
21946 * except.h (struct function, struct inline_remap): Move
21947 struct tag forward defs before all prototypes.
21948 (duplicate_eh_regions): Whitespace.
21950 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
21952 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21953 MODE_BASE_REG_CLASS.
21954 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
21956 2002-01-12 Richard Henderson <rth@redhat.com>
21958 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
21959 (ix86_expand_vector_move): New.
21960 (bdesc_2arg): Remove andps, andnps, orps, xorps.
21961 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
21962 Remove old prefetch builtins. Special case the logicals removed above.
21963 (ix86_expand_builtin): Likewise.
21964 (safe_vector_operand): Use V4SFmode, not TImode.
21965 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
21966 (ix86_expand_timode_binop_builtin): New.
21967 * config/i386/i386-protos.h: Update.
21968 * config/i386/i386.h (enum ix86_builtins): Update.
21969 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
21970 Use ix86_expand_vector_move in vector move expanders.
21971 (movti_internal, movti_rex64): Add xorps alternative.
21972 (sse_clrv4sf): Rename and adjust from sse_clrti.
21973 (prefetch): Don't work so hard.
21974 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
21975 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
21976 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
21978 2002-01-11 Richard Henderson <rth@redhat.com>
21980 * config/i386/mmintrin.h: New file.
21981 * config/i386/xmmintrin.h: New file.
21982 * config.gcc (i?86-*-*): Add extra_headers.
21983 * simplify-rtx.c (simplify_unary_operation): Handle saturating
21985 (simplify_binary_operation): Handle saturating arithmetic codes.
21986 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
21987 not the lowpart subreg.
21988 (ix86_expand_builtin): Return a TImode dummy register instead of 0
21990 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
21992 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21994 * conflict.c (conflict_graph_compute): Free regsets when finished.
21995 * ssa.c (compute_coalesced_reg_partition): Likewise.
21997 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21999 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
22000 every where we allocate a register.
22002 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22004 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
22005 * lcm.c (compute_earliest, compute_farthest): Likewise.
22007 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22009 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
22011 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22013 * doc/rtl.texi (Insns): Fix 2 typos.
22015 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
22017 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
22018 options. Use @table @gcctabopt for MMIX options. Add index
22019 entries for MMIX options. Start new paragraph with first
22020 heading of the machine-dependent options.
22022 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
22025 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
22026 * combine.c (force_to_mode): Same.
22027 * reload1.c (clear_reload_reg_in_use): Same.
22029 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
22031 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
22034 2002-01-11 Andreas Jaeger <aj@suse.de>,
22035 Brad Lucier <lucier@math.purdue.edu>
22037 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
22040 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
22042 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
22043 Protect with IN_LIBGCC.
22044 (LINK_EH_SPEC): Add required trailing space.
22046 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
22048 * c-tree.h: Move function declarations so that they are listed
22049 under the filename which contains them.
22050 (check_identifier, finish_decl_top_level,
22051 lookup_name_current_level_global, shadow_record_fields): Remove.
22053 2002-01-11 Andreas Jaeger <aj@suse.de>
22055 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
22058 2002-01-10 Richard Henderson <rth@redhat.com>
22060 * config/alpha/alpha.c (print_operand): Add 'J'.
22061 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
22062 new operand with the sequence number for the lituse. When splitting
22063 the insns, use gen_movdi_er_high_g and generate a sequence number.
22064 (gen_movdi_er_high_g): Print the sequence number if non-zero.
22066 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
22068 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
22069 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
22071 (altivec_expand_builtin): Same.
22072 (altivec_expand_stv_builtin): New.
22074 * config/rs6000/rs6000.h (rs6000_builtins): Same.
22076 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
22077 ("altivec_lvehx"): New.
22078 ("altivec_lvewx"): New.
22079 ("altivec_lvxl"): New.
22080 ("altivec_lvx"): New.
22081 ("altivec_stvx"): New.
22082 ("altivec_stvebx"): New.
22083 ("altivec_stvehx"): New.
22084 ("altivec_stvewx"): New.
22085 ("altivec_stvxl"): New.
22087 2002-01-10 Richard Henderson <rth@redhat.com>
22089 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
22090 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
22091 care not to delete instructions twice.
22093 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22095 * toplev.c: Don't declare environ (it's not used anywhere).
22096 * configure.in: Don't check for declaration of environ.
22097 * config/i386/xm-mingw32.h: Don't #define environ.
22098 * config.in, configure: Regenerate.
22100 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22102 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
22103 * configure: Regenerate.
22105 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
22106 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
22107 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
22109 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
22110 LIMITS_H_TEST here, not in m68k/x-next.
22111 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
22112 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
22114 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
22115 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
22116 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
22118 * config/i386/x-djgpp: Renamed i386/t-djgpp.
22119 * config/m88k/x-dolph: Renamed m88k/t-dolph.
22120 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
22121 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
22122 replacement of quadlib.asm with quadlib.c.
22124 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
22125 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
22126 config/rs6000/xm-beos.h: Delete file.
22128 * config.gcc: Update to match above changes.
22130 2002-01-10 Kazu Hirata <kazu@hxi.com>
22132 * config/h8300/h8300.h: Fix comment typos.
22133 * config/h8300/h8300.md: Likewise.
22134 * config/h8300/lib1funcs.asm: Likewise.
22136 2002-01-10 Dale Johannesen <dalej@apple.com>
22138 PR optimization/5269
22139 * unroll.c (precondition_loop_p): Make *increment be the correct
22140 sign when n_iterations known, to avoid confusing caller.
22142 2002-01-10 Kazu Hirata <kazu@hxi.com>
22144 * doc/extend.texi (deprecated): Fix a typo.
22146 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
22148 * basic-block.h (update_br_prob_note): Declare.
22149 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
22150 (try_forward_edges): Care negative frequencies and update note.
22151 (outgoing_edges_match): Tweek conditional merging heuristics.
22152 (try_crossjump_to_edge): use update_br_prob_note.
22153 * cfglayout.c (fixup_reorder_chain): Likewise.
22154 * cfrtl.c (update_br_prob_note): New.
22155 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
22157 * i386.c (ix86_decompose_address): Return -1 if address contains
22159 (legitimate_address_p): Require ix86_decompose_address to return 1.
22161 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
22162 (cprop_insn): Likewise.
22164 2002-01-10 Kazu Hirata <kazu@hxi.com>
22166 * toplev.c: Fix formatting.
22167 * tree.c: Likewise.
22168 * tree-dump.c: Likewise.
22169 * unroll.c: Likewise.
22170 * unwind-dw2.c: Likewise.
22171 * unwind-dw2-fde.c: Likewise.
22172 * unwind-dw2-fde-glibc.c: Likewise.
22173 * unwind-sjlj.c: Likewise.
22175 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22177 * doc/invoke.texi: Document PDP-11 options.
22179 2002-01-10 Kazu Hirata <kazu@hxi.com>
22181 * config/h8300/h8300.h: Fix formatting.
22183 2002-01-10 Ira Ruben <ira@apple.com>
22185 Add __attribute__ ((deprecated)).
22186 * extend.texi: Document __attribute__ ((deprecated)).
22187 * invoke.texi: Document -Wno-deprecated-declarations.
22188 * testsuite/g++.dg/other/deprecated.C: New C++ test.
22189 * testsuite/gcc.dg/deprecated.c: New C test.
22190 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
22191 (c_common_attribute_table): Add "deprecated" entry.
22192 (handle_deprecated_attribute): New function.
22193 * c-decl.c (deprecated_states): New enum.
22194 deprecated_state: State of "deprecated" handling.
22195 (start_decl): Set deprecated_state based on attributes.
22196 (grokdeclarator): Test for deprecated uses, propagate attribute.
22197 * c-typeck.c (build_component_ref): Test for deprecated fields.
22198 (build_external_ref): Test for deprecated primaries.
22199 * diagnostic.c (warn_deprecated_use) New function to issue
22200 warnings about __attribute__ ((depricated)) references.
22201 * flags.h (warn_deprecated_decl): Extern declared for
22202 -W[no-]deprecated-declarations option.
22203 * print-tree.c (print_node): Show deprecated flag status.
22204 * toplev.c (warn_deprecated_decl): Defined.
22205 (W_options): Added "deprecated-declaration".
22206 * toplev.h (warn_deprecated_use): Extern declared.
22207 * tree.h (struct tree_common): Define deprecated_flag.
22208 (TREE_DEPRECATED): New macro to access flag.
22209 * cp/call.c (build_call): Test for deprecated calls.
22210 * cp/class.c (add_implicitly_declared_members): Set global
22211 flag to tell grokdeclarator to not issue deprecated warnings.
22212 * cp/cp-tree.h: Add extern for adding_implicit_members.
22213 * cp/decl.c (deprecated_states): New enum.
22214 (start_decl): Set deprecated_state based on attributes.
22215 (grokdeclarator): Test for deprecated uses, propagate attribute.
22216 * cp/lex.c (do_identifier): Test for deprecated primaries.
22217 * cp/typeck.c (build_component_ref): Test for deprecated fields.
22219 2002-01-10 Ira Ruben <ira@apple.com>
22221 Fix to assign attributes to inline member functions.
22222 * cp/decl.c (start_method): Handle attrlist.
22224 2002-01-10 Kazu Hirata <kazu@hxi.com>
22226 * combine.c (expand_field_assignment): Use subreg_lsb().
22228 2002-01-10 David Edelsohn <edelsohn@gnu.org>
22230 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
22231 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
22232 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
22233 Recurse for any operand of AND as long as constant is non-zero.
22235 2002-01-10 Kazu Hirata <kazu@hxi.com>
22237 * config/h8300/h8300.md: Remove constraints from expanders.
22239 2002-01-10 Kazu Hirata <kazu@hxi.com>
22241 * varasm.c: Fix formatting.
22242 * varray.c: Likewise.
22243 * vmsdbgout.c: Likewise.
22244 * xcoffout.c: Likewise.
22246 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
22248 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
22249 update edge probabilities to match.
22251 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22253 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
22255 * doc/languages.texi, doc/sourcebuild.texi: New files.
22256 * doc/configfiles.texi: Make a subsubsection. Update.
22257 * doc/configterms.texi: Add @node. Remove warning that this isn't
22258 instructions for building GCC.
22259 * doc/makefile.texi: Make a subsection.
22260 * doc/gccint.texi: Update.
22262 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
22264 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
22266 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
22268 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
22270 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
22272 * optabs.c (expand_fix): Look for wider integer modes first.
22274 * i386.md (mov?f): Avoid the fake const double trick for medium
22276 (min?f*/max?f*): Prohibit memory operands for i387 variant.
22277 (fop_df_4): Disable for SSE compilation.
22279 2002-01-10 Graham Stott <grahams@redhat.com>
22281 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
22282 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
22284 2002-01-10 Richard Henderson <rth@redhat.com>
22286 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
22288 2002-01-10 Richard Henderson <rth@redhat.com>
22290 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
22291 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
22293 2002-01-10 Kazu Hirata <kazu@hxi.com>
22295 * combine.c (can_combine_p): Fix a comment typo.
22297 2002-01-09 Zack Weinberg <zack@codesourcery.com>
22299 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
22300 empty list correctly. Change loop index $t to $f for
22301 consistency with rest of Makefile.
22303 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
22305 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
22306 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22308 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
22309 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
22310 (altivec_init_builtins): Same.
22311 (altivec_expand_unop_builtin): Return NULL_RTX on error.
22312 (altivec_expand_binop_builtin): Same.
22313 (altivec_expand_ternop_builtin): Same.
22316 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
22317 ("altivec_vctuxs"): Fix typo.
22318 ("altivec_vnmsubfp"): Same.
22319 ("altivec_dssall"): New.
22320 ("altivec_mfvscr"): New.
22321 ("altivec_dss"): New.
22322 ("altivec_lvsl"): New.
22323 ("altivec_lvsr"): New.
22324 ("altivec_dstt"): New.
22325 ("altivec_dstst"): New.
22326 ("altivec_dststt"): New.
22327 ("altivec_dst"): New.
22329 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
22330 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22332 2002-01-09 Richard Henderson <rth@redhat.com>
22334 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
22336 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
22338 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
22340 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
22342 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
22344 2002-01-09 Kazu Hirata <kazu@hxi.com>
22346 * read-rtl.c: Fix formatting.
22347 * real.c: Likewise.
22348 * regclass.c: Likewise.
22349 * regrename.c: Likewise.
22350 * reg-stack.c: Likewise.
22351 * reload1.c: Likewise.
22352 * reload.c: Likewise.
22355 2002-01-09 Kazu Hirata <kazu@hxi.com>
22357 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
22358 to extract items in the expr_list chain.
22360 2002-01-09 Richard Henderson <rth@redhat.com>
22362 * config/vax/vax.c (vax_rtx_cost): Never abort.
22364 * config/vax/vax.h (REAL_ARITHMETIC): Define.
22366 2002-01-09 Jan Hubicka <jh@suse.cz>
22368 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
22370 2002-01-09 Richard Henderson <rth@redhat.com>
22372 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
22373 Unify code from various alternatives.
22375 2002-01-09 Richard Henderson <rth@redhat.com>
22377 * regrename.c (copy_value): Ignore the copy if the source register
22378 is present in the value chain with a narrower mode.
22380 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22382 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
22383 for the c4x target. Also improve layout.
22385 2002-01-09 Richard Henderson <rth@redhat.com>
22387 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
22388 * config/m32r/m32r.md (and ior xor splitters): Swap operands
22389 to match insn patterns.
22391 2002-01-09 Richard Henderson <rth@redhat.com>
22393 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
22394 (copyprop_hardreg_forward_1): Likewise.
22396 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
22398 * pa.md (decrement_and_branch_until_zero): Change predicate for
22399 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
22401 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
22403 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
22404 gets undefined. For Darwin.
22406 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22408 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
22410 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22412 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
22414 2002-01-08 Richard Henderson <rth@redhat.com>
22416 * regrename.c (copy_value): Ignore overlapping copies.
22418 2002-01-08 Richard Henderson <rth@redhat.com>
22420 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
22421 as needed to avoid shared structure.
22423 2002-01-08 Kazu Hirata <kazu@hxi.com>
22425 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
22428 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22430 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
22431 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
22432 documentation of obsolete macros.
22433 * system.h: Poison these macros.
22434 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
22435 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
22436 config/c4x/c4x.h, config/clipper/clipper.h,
22437 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
22438 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
22439 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
22440 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
22441 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
22442 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
22443 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22444 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
22445 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
22446 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22447 config/sparc/sparc.h, config/stormy16/stormy16.h,
22448 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
22449 definitions and commented out definitions of obsolete macros.
22450 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
22451 of MAX_INT_TYPE_SIZE.
22453 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22455 * config/s390/s390.c (s390_preferred_reload_class): Never
22456 return ADDR_REGS if it isn't a subset of the given class.
22457 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
22458 FP_REGS, but all superclasses as well.
22460 * config/s390/s390.c (s390_function_profiler): Fix thinko.
22462 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
22463 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
22464 must not be a const_int.
22466 2002-01-08 Richard Henderson <rth@redhat.com>
22468 * Makefile.in (toplev.o): Depend on options.h.
22469 (gcc.o): Depend on specs.h.
22471 2002-01-08 Jakub Jelinek <jakub@redhat.com>
22473 * expr.c (store_expr): Convert VOIDmode constants back to target's
22476 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22478 * doc/invoke.texi: Markup gcc as @command. Refer to
22479 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
22480 of http://gcc.gnu.org/thanks.html.
22482 2002-01-08 Dale Johannesen <dalej@apple.com>
22484 * config/rs6000/rs6000.md: Add missing int register
22485 target case to movdf_low.
22487 2002-01-08 Zack Weinberg <zack@codesourcery.com>
22489 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
22490 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
22491 (cppinit.o): Depend on except.h.
22492 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
22493 s-specs): New rules.
22495 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
22496 Don't create specs.h/options.h/gencheck.h here. Remove
22497 unnecessary variable settings from last argument of AC_OUTPUT.
22498 * config.in, configure: Regenerate.
22499 * intl.c: Hardcode package name as "gcc".
22501 * cppinit.c: Include except.h.
22502 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
22504 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
22505 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
22506 (!)USING_SJLJ_EXCEPTIONS.
22507 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
22509 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22511 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
22512 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
22513 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
22514 documentation of obsolete macros.
22515 * system.h: Poison these macros.
22516 * config/d30v/d30v.h, config/ns32k/encore.h,
22517 config/stormy16/stormy16.h: Remove definitions and commented out
22518 definitions of obsolete macros.
22520 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
22522 * objc/objc-act.c (handle_class_ref): Mark the declaration of
22523 %sobjc_class_ref_%s as used - to prevent unwanted compiler
22526 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22528 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
22529 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
22530 to insn adjusting stack/frame pointer.
22531 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
22532 accept operands that cause the insn to be non-splittable.
22534 2002-01-08 Graham Stott <grahams@redhat.com>
22536 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
22537 (C_TYPE_FIELDS_VOLATILE): Likewise.
22538 (C_TYPE_BEING_DEFINED): Likewise.
22539 (C_IS_RESERVED_WORD): Likewise.
22540 (C_TYPE_VARIABLE_SIZE): Likewise.
22541 (C_DECL_VARIABLE_SIZE): Likewise.
22542 (C_MISSING_PROTOTYPE_WARNED): Likewise.
22543 (C_SET_EXP_ORIGINAL_CODE): Likewise.
22544 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22546 (C_DECL_ANTICIPATED): Likewise.
22547 (c_build_type_variant): Add parenthesis.
22549 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22551 * gcc.c (option_map): Remove --version.
22552 (process_command): Handle -fversion following the GNU Coding
22553 Standards. Partially addresses PR other/704.
22555 2002-01-08 Graham Stott <grahams@redhat.com>
22557 * combine.c (combine_instructions): Fix typo.
22559 2002-01-08 Graham Stott <grahams@redhat.com>
22561 * debug.h: Use "tree" and "rtx" throughout.
22563 * debug.c: Likewise.
22565 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
22567 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22568 constant pool, use the pool's version of the symbol instead.
22570 2002-01-07 Richard Henderson <rth@redhat.com>
22572 * regrename.c (find_oldest_value_reg): Ignore the value chain if
22573 the original register was copied in a mode with a fewer number of
22574 hard registers than the desired mode.
22575 (copyprop_hardreg_forward_1): Likewise.
22576 (debug_value_data): Fix loop test.
22577 * toplev.c (parse_options_and_default_flags): Reenable
22578 -fcprop-registers at -O1.
22580 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22582 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22583 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
22585 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22588 * config/rs6000/rs6000.md: Add altivec predicate patterns.
22590 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
22592 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22593 (pa_output_function_prologue): Output local label at the beginning of
22594 the prologue when profiling.
22595 (hppa_profile_hook): Use the local label rather than the function label.
22596 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22598 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22600 * config/rs6000/rs6000.c (print_operand): Remove extra space.
22601 (altivec_expand_unop_builtin): Fix thinko.
22602 (altivec_expand_binop_builtin): Same.
22603 (altivec_expand_ternop_builtin): Same.
22604 (altivec_expand_builtin): Same.
22606 2002-01-07 Richard Henderson <rth@redhat.com>
22608 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22610 2002-01-07 Jason Merrill <jason@redhat.com>
22612 * unwind-dw2.c (execute_cfa_program): Use < again.
22614 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22616 * predict.c (combine_predictions_for_insn): Avoid division by zero.
22618 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22620 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22621 Don't allow -1 - x -> ~x simplifications in the first pass.
22623 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22625 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22627 (altivec_expand_binop_builtin): Same.
22628 (altivec_expand_unop_builtin): Same.
22629 (print_operand): Fix typo.
22630 (bdesc_1arg): Add vupk* variants.
22632 * rs6000.h (rs6000_builtins): Add vupk* enums.
22634 * rs6000.md: Add altivec_vupk* variants.
22636 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
22638 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22639 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22640 and last update dates.
22642 2002-01-07 Janis Johnson <janis187@us.ibm.com>
22644 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22646 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
22648 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22649 * config/avr/avr.h (CPP_SPEC): Likewise.
22650 (LINK_SPEC): Likewise.
22651 (CRT_BINUTILS_SPECS): Likewise.
22652 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22653 * doc/invoke.texi (AVR Options): Document them.
22655 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
22657 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22660 2002-01-07 Graham Stott <grahams@redhat.com>
22662 * config/i386/i386.h: Update copyright date.
22663 (HALF_PIC_PTR): Add parenthesis.
22664 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22665 (CONSTANT_ALIGNMENT): Add parenthesis.
22666 (DATA_ALIGNMENT): Likewise.
22667 (LOCAL_ALIGNMENT): Likewise.
22668 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22669 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22670 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22671 (HARD_REGNO_NREGS): Add paranethesis.
22672 (VALID_SSE_REG_MODE): Whitespace.
22673 (VALID_MMX_REG_MODE): Whitespace.
22674 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22675 (ix86_hard_regno_mode_ok): Add parenthesis.
22676 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22677 (RETURN_IN_MEMORY): Whitespace.
22678 (N_REG_CLASSES): Add parenthesis.
22679 (INTEGER_CLASS_P): Add parenthesis and wrap.
22680 (FLOAT_CLASS_P): Likewise.
22681 (SSE_CLASS_P): Likewise.
22682 (MMX_CLASS_P): Likewise.
22683 (MAYBE_INTEGER_CLASS_P): Likewise.
22684 (MAYBE_FLOAT_CLASS_P): Likewise.
22685 (MAYBE_SSE_CLASS_P): Likewise.
22686 (MAYBE_MMX_CLASS_P): Likewise.
22687 (Q_CLASS_P): Likewise.
22688 (GENERAL_REGNO_P): Uppercase macro parameter.
22689 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22690 (FP_REGNO_P): Likewise.
22691 (ANY_FP_REGNO_P): Uppercase macro parameter.
22692 (SSE_REGNO_P): Likewise.
22693 (SSE_REGNO): Likewise.
22694 (SSE_REG_P): Likewise.
22695 (SSE_FLOAT_MODE_P): Likewise.
22696 (MMX_REGNO_P): Likewise.
22697 (MMX_REG_P):Likewise.
22698 (STACK_REG_P): Likewise.
22699 (NON_STACK_REG_P): Likewise.
22700 (STACK_TOP_P): Likewise.
22701 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22702 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22703 (SECONDARY_MEMORY_NEEDED): Likewise.
22704 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22705 (MD_ASM_CLOBBERS): Whitespace and wrap.
22706 (MUST_PASS_IN_STACK): Whitespace and wrap.
22707 (RETURN_POPS_ARGS): Add parenthesis.
22708 (INIT_CUMULATIVE_ARGS): Likewise.
22709 (FUNCTION_ARG): Likewise.
22710 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22711 (SETUP_INCOMING_VARARGS): Likewise.
22712 (BUILD_VA_LIST_TYPE): Add parenthesis.
22713 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22715 (EXPAND_BUILTIN_VA_ARG): Likewise.
22716 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22717 (INITIALIZE_TRAMPOLINE): Add parenthesis.
22718 (INITIAL_ELIMINATION_OFFSET): Likewise.
22719 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22720 (REGNO_OK_FOR_BASE_P): Likewise.
22721 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22722 (REGNO_OK_FOR_DIREG_P): Likewise.
22723 (REG_OK_FOR_INDEX_P): Whitespace.
22724 (REG_OK_FOR_BASE_P): Whitespace.
22725 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22727 (FIND_BASE_TERM): Fix typo.
22728 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
22729 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22730 (SYMBOLIC_CONST; Whitespace.
22731 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
22732 (ENCODE_SECTION_INFO): Whitespace.
22733 (FINALIZE_PIC): Remove do { ... } while (0).
22734 (PROMOTE_MODE): Wrap in do { ... } while (0).
22735 (CONST_COSTS): Whitespace.
22736 (RTX_COSTS): Add paramethesis, whitespace and wrap.
22737 (REGISTER_MOVE_COST): Add parenthesis.
22738 (MEMORY_MOVE_COST): Likewise.
22739 (EXTRA_CC_MODES): Whitespace.
22740 (SELECT_CC_MODE): Add parenthesis and whitespace.
22741 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22742 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22743 (ASM_OUTPUT_LABEL): Add paramethesis.
22744 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22745 (ASM_OUTPUT_REG_POP): Likewise.
22746 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22747 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22749 * config/i386/i386.c: Update copyright.
22750 (CHECK_STACK_LIMIT): Add parenthesis.
22751 (AT_BP): Uppercase macro parameter.
22752 (x86_64_int_parameter_registers): Constify.
22753 (x86_64_int_return_registers): Likewise.
22754 (ix86_compare_op0): Use rtx.
22755 (construct_container): Constify INTREG parameter.
22756 (function_arg): Use rtx.
22758 * diagnostic.h: Update copyright date.
22759 (output_buffer_state): Add parenthesis.
22760 (output_buffer_format_args): Likewise.
22762 * combine.c (combine_instructions): Replace XEXP (links, 0)
22765 2002-01-06 H.J. Lu <hjl@gnu.org>
22767 * cfgcleanup.c (thread_jump): Fix 2 typos.
22769 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
22771 * config.gcc: Add support for --enable-altivec.
22773 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22775 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22777 2002-01-06 Jakub Jelinek <jakub@redhat.com>
22779 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22780 __objc_class_name_*.
22782 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22784 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22786 2002-01-06 Richard Henderson <rth@redhat.com>
22788 * reorg.c (emit_delay_sequence): Remove death notes, not merely
22789 nop them out. Increment label reference count for REG_LABEL.
22790 (fill_slots_from_thread): Frob label reference count around
22791 delete_related_insns.
22793 2002-01-05 Richard Henderson <rth@redhat.com>
22795 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22798 2002-01-05 Richard Henderson <rth@redhat.com>
22800 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22801 * integrate.c (output_inline_function): Likewise.
22802 * toplev.c (rest_of_compilation): Do it here instead. Move call
22803 to remove_unnecessary_notes after emitting abstract instance.
22804 Force an emitted nested function to have its parent emited as well.
22805 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22807 (rtl_for_decl_location): Do not look at reload data structures
22808 before reload has run.
22810 2002-01-05 Kazu Hirata <kazu@hxi.com>
22812 * cse.c: Fix formatting.
22813 * dwarf2asm.c: Likewise.
22814 * dwarf2out.c: Likewise.
22815 * explow.c: Likewise.
22816 * expmed.c: Likewise.
22817 * function.c: Likewise.
22818 * gcov.c: Likewise.
22819 * gencheck.c: Likewise.
22820 * genrecog.c: Likewise.
22821 * ggc-common.c: Likewise.
22822 * ggc-page.c: Likewise.
22823 * global.c: Likewise.
22825 2002-01-05 Kazu Hirata <kazu@hxi.com>
22827 * combine.c: Fix formatting.
22829 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
22832 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22834 2002-01-05 David Edelsohn <edelsohn@gnu.org>
22836 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22837 as 1 for __powerpc64__ as well.
22839 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22841 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22844 2002-01-05 Daniel Berlin <dan@dberlin.org>
22846 * lcm.c: Revert change, due to performance regression it causes on
22847 SPEC because it's slightly more conservative (sigh, I hate
22850 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
22852 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22854 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
22856 * doc/cppinternals.texi: Update.
22858 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
22860 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22861 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22863 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
22864 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22865 kludge for pre-october-14th mmix versions to handle new-found bug
22866 with PUSHJ/PUSHGO and the register stack.
22867 * config/mmix/mmix.h (struct machine_function): Rename member
22868 has_call_value_without_parameters to has_call_without_parameters.
22869 All referers changed.
22870 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22871 TARGET_MASK_BRANCH_PREDICT): New macros.
22872 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22873 -mno-reg-stack-fill-bug-workaround.
22874 * config/mmix/mmix.md ("call"): Set struct machine member
22875 has_call_without_parameters.
22877 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
22879 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22881 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
22883 * cfgcleanup.c: Include tm_p.h
22884 (mark_effect): Fix handling of hard register; fix handling of SET
22886 2002-01-04 Kazu Hirata <kazu@hxi.com>
22888 * config/h8300/h8300.md (anonymous patterns): Check that
22889 operands are registers before using REGNO on them.
22891 2002-01-03 Roland McGrath <roland@frob.com>
22893 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22895 2002-01-04 Jakub Jelinek <jakub@redhat.com>
22897 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22898 * c-common.h (genrtl_expr_stmt_value): Likewise.
22899 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22900 (expand_expr_stmt_value): Add maybe_last argument.
22901 Don't warn about statement with no effect if it is the last statement
22902 in expression statement.
22903 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22904 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22905 expand_expr_stmt_value.
22906 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22907 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22908 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22909 as maybe_last to expand_expr_stmt_value.
22911 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
22913 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22914 be passed in, do not build it.
22915 (c_begin_if_stmt): New function.
22916 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22917 * c-common.h (c_expand_start_cond): Update prototype.
22918 (c_begin_if_stmt): Prototype new function.
22919 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22920 * c-parse.in (if_prefix): Use c_begin_if_stmt,
22921 c_begin_while_stmt and c_finish_while_stmt_cond.
22923 2002-01-04 William Cohen <wcohen@redhat.com>
22925 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22926 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22927 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22928 * config/pa/som.h (ASM_FILE_START): Likewise.
22930 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
22932 * lcm.c: Include df.h.
22933 Add available_transfer_function prototype.
22934 (compute_available): Rework to use iterative dataflow framework.
22935 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22936 with bb_info in df.h
22937 (available_transfer_function): New function.
22939 * Makefile.in (lcm.o): add df.h to dependencies.
22941 2002-01-04 Richard Henderson <rth@redhat.com>
22943 * config/alpha/alpha.c (some_operand): Accept HIGH.
22944 (input_operand): Likewise; accept simple references to globals.
22945 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22946 (alpha_const_double_ok_for_letter_p): Likewise.
22947 (alpha_extra_constraint): Likewise.
22948 (alpha_preferred_reload_class): Likewise. Do not force
22949 symbolic constants to memory.
22950 (alpha_legitimate_address_p): Accept simple references
22951 to small_symbolic_operand.
22952 (alpha_legitimize_address): New arg scratch. Be prepared to be
22953 called when no_new_pseudos. Emit simple symbolic references.
22954 Split integers into low, high, and rest.
22955 (alpha_expand_mov): Use alpha_legitimize_address.
22956 (some_small_symbolic_mem_operand): New.
22957 (split_small_symbolic_mem_operand): New.
22958 * config/alpha/alpha-protos.h: Update.
22959 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
22960 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
22961 (EXTRA_CONSTRAINT): Likewise.
22962 (PREFERRED_RELOAD_CLASS): Likewise.
22963 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
22964 (PREDICATE_CODES): Update.
22965 * config/alpha/alpha.md: New post-reload splitters to convert
22966 simplfied symbolic operands to the form that references $29.
22967 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
22968 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
22970 2002-01-03 Richard Henderson <rth@redhat.com>
22972 * local-alloc.c (function_invariant_p): Update commentary.
22974 2002-01-04 H.J. Lu <hjl@gnu.org>
22976 * toplev.c (rest_of_compilation): Fix a typo when calling
22979 2002-01-03 Kazu Hirata <kazu@hxi.com>
22981 * c-common.c: Fix formatting.
22982 * diagnostic.c: Likewise.
22983 * doloop.c: Likewise.
22984 * dwarf2out.c: Likewise.
22986 2002-01-03 Kazu Hirata <kazu@hxi.com>
22988 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
22989 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
22991 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22993 * cpperror.c: Update comments and copyright.
22994 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
22995 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
22997 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
22999 * collect2.c (main): Use strcmp when testing for "-shared".
23001 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23003 * cppmacro.c: Don't include intl.h. Update comments.
23004 (new_number_token): Allocate enough buffer for 64-bit unsigned
23005 integers; update prototype.
23006 * cppmain.c: Update comments.
23008 2002-01-03 William Cohen <wcohen@redhat.com>
23010 * function.h (struct function): Add profile.
23011 (current_function_profile): New.
23012 doc/extend.texi: Update documentation.
23013 * final.c (final_start_function): Use current_function_profile
23014 instead of profile_flag.
23015 (profile_after_prologue): Likewise.
23016 * function.c (expand_function_start): Likewise.
23017 (expand_function_start): Likewise.
23018 * config/alpha/alpha.c (direct_call_operand):
23019 (alpha_does_function_need_gp): Likewise.
23020 (alpha_expand_prologue): Likewise.
23021 * config/arm/arm.c (arm_expand_prologue): Likewise.
23022 thumb_expand_prologue: Likewise.
23023 * config/d30v/d30v.c (d30v_stack_info): Likewise.
23024 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
23025 (fr30_expand_prologue): Likewise.
23026 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
23027 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
23028 * config/i386/i386.h (FINALIZE_PIC): Likewise.
23029 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
23030 * config/i960/i960.c (i960_output_function_prologue): Likewise.
23031 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
23032 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
23033 (m32r_expand_prologue): Likewise.
23034 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
23035 (m88k_expand_prologue): Likewise.
23036 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
23037 * config/mips/mips.c (compute_frame_size): Likewise.
23038 (mips_expand_prologue): Likewise.
23039 (mips_can_use_return_insn): Likewise.
23040 * config/pa/elf.h (ASM_FILE_START): Likewise.
23041 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23042 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23043 * config/pa/som.h (ASM_FILE_START): Likewise.
23044 * config/romp/romp.c (romp_using_r14): Likewise.
23045 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
23046 (rs6000_stack_info): Likewise.
23047 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
23048 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
23049 * config/v850/v850.c (compute_register_save_size): Likewise.
23051 2002-01-03 Jakub Jelinek <jakub@redhat.com>
23053 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
23054 gen_lowpart_common fails, use gen_lowpart_SUBREG.
23056 2002-01-03 Turly O'Connor <turly@apple.com>
23058 * darwin.c (machopic_output_possible_stub_label): Don't generate
23059 stub routines for pseudo-stubs which we've just defined.
23061 2002-01-03 Kazu Hirata <kazu@hxi.com>
23063 * builtins.c: Fix formatting.
23064 * c-typeck.c: Likewise.
23065 * combine.c: Likewise.
23066 * expr.c: Likewise.
23067 * loop.c: Likewise.
23069 2002-01-03 Andreas Schwab <schwab@suse.de>
23071 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
23072 and return true if _cpp_push_next_buffer pushed a new include
23074 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
23075 _cpp_pop_file_buffer did not push a new file.
23076 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
23078 2002-01-02 Eric Christopher <echristo@redhat.com>
23080 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
23081 FIND_REG_INC_NOTE call. Update copyright.
23082 * loop.c (canonicalize_condition): Ditto.
23083 * reorg.c (delete_scheduled_jump): Ditto.
23085 2002-01-03 Kazu Hirata <kazu@hxi.com>
23087 * gcse.c: Fix formatting.
23089 2002-01-03 Graham Stott <grahams@redhat.com>
23091 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
23092 forward defs for struct tags rtx_def, union_tree, rtvec_def
23093 also output corresponding typedefs for rtx, tree, and rtvec.
23095 * system.h: Move forward defs for struct tags rtx_def, union_tree,
23096 rtvec_def along with corresponding typedefs for rtx, tree, and
23097 rtvec to config.h, hconfig.h, tconfig.h.
23099 2002-01-03 Graham Stott <grahams@redhat.com>
23101 * tree.h: Update copyright date.
23102 (IS_EXPR_CODE_CLASS): Add parenthesis.
23103 (TREE_SET_CODE): Add whitespace.
23104 (TREE_CHECK): Add parenthesis.
23105 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
23106 (CST_OR_CONSTRUCTOR_CHECK):
23107 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
23108 (TREE_SYMBOL_REFERENCED): Whitespace.
23109 (INT_CST_LT): Likewise.
23110 (INT_CST_LT_UNSIGNED): Likewise.
23111 (tree_real_cst): Unwrap comment.
23112 (tree_string): Likewise.
23113 (tree_complex): Likewise.
23114 (IDENTIFIER_POINTER): correct cast.
23115 (SAVE_EXPR_CONTEXT): Whitespace.
23116 (EXPR_WFL_FILENAME_NODE): Likewise.
23117 (EXPR_WFL_FILENAME): Remove parenthesis.
23118 (DECL_ORIGIN): Add parenthesis.
23119 (DECL_FROM_INLINE): Use NULL_TREE.
23120 (build_int_2): Whitespace.
23121 (build_type_variant): Add parenthesis.
23123 * gcc/jcf-parse.c: Update copyright date.
23124 (yyparse): Constify resource_filename.
23126 2002-01-03 Graham Stott <grahams@redhat.com>
23128 * rtl.h: Update copyright date.
23129 (RTL_CHECK1): Wrap long line.
23130 (RTL_CHECK2): Likewise.
23131 (RTL_CHECKC1): Wrap long line and whitespace.
23132 (RTL_CHECKC2): Likewise.
23133 (XWINT): Whitespace.
23139 (XBITMAP): Likewise.
23141 (XBBDEF): Likewise.
23143 (X0WINT): Likewise.
23145 (X0UINT): Likewise.
23149 (X0MODE): Likewise.
23150 (X0BITMAP): Likewise.
23151 (X0TREE): Likewise.
23152 (X0BBDEF): Likewise.
23153 (X0ADVFLAGS): Likewise.
23154 (X0CSELIB): Likewise.
23155 (X0MEMATTR): Likewise.
23156 (XCWINT): Likewise.
23158 (XCUINT): Likewise.
23162 (XCMODE): Likewise.
23163 (XCBITMAP): Likewise.
23164 (XCTREE): Likewise.
23165 (XCBBDEF): Likewise.
23166 (XCADVFLAGS): Likewise.
23167 (XCCSELIB): Likewise.
23168 (XC2EXP): Likewise.
23169 (INSN_UID): Likewise.
23170 (PREV_INSN): Likewise.
23171 (PATTERN): Likewise.
23172 (INSN_CODE): Likewise.
23173 (PUT_REG_NOTE_KIND): Likewise.
23174 (CODE_LABEL_NUMBER): Likewise.
23175 (NOTE_SOURCE_FILE): Likewise.
23176 (NOTE_BLOCK): Likewise.
23177 (NOTE_EH_HANDLER): Likewise.
23178 (NOTE_RANGE_INFO): Likewise.
23179 (NOTE_LIVE_INFO): Likewise.
23180 (NOTE_BASIC_BLOCK): Likewise.
23181 (NOTE_EXPECTED_VALUE): Likewise.
23182 (NOTE_LINE_NUMBER): Likewise.
23183 (LABEL_NAME): Likewise.
23184 (LABEL_NUSES): Likewise.
23185 (LABEL_ALTERNATE_NAME): Likewise.
23186 (ADDRESSOF_DECL): Likewise.
23187 (JUMP_LABEL): Likewise.
23188 (LABEL_NEXTREF): Likewise.
23190 (ORIGINAL_REGNO: Likewise.
23191 (HARD_REGISTER_NUM_P): Add parenthesis.
23192 (SUBREG_REG): Whitespace.
23193 (SUBREG_BYTE): Likewise.
23194 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
23195 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
23196 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
23197 (ASM_OPERANDS_INPUT_VEC): Likewise.
23198 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
23199 (ASM_OPERANDS_INPUT): Likewise.
23200 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
23201 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
23202 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
23203 (ASM_OPERANDS_INPUT_MODE): Likewise.
23204 (ASM_OPERANDS_SOURCE_FILE): Likewise.
23205 (ASM_OPERANDS_SOURCE_LINE): Likewise.
23206 (MEM_SET_IN_STRUCT_P): Minor reformat.
23207 (TRAP_CONDITION): Whitespace.
23208 (TRAP_CODE): Likewise.
23209 (COND_EXEC_TEST): Likewise.
23210 (COND_EXEC_CODE): Likewise.
23211 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
23212 (PHI_NODE_P): Add parenthesis.
23213 (plus_constant): Whitespace and add parenthesis.
23215 2002-01-03 Kazu Hirata <kazu@hxi.com>
23217 * config/avr/avr.c: Fix comment typos.
23218 * config/c4x/c4x.md: Likewise.
23219 * config/dsp16xx/dsp16xx.h: Likewise.
23220 * config/dsp16xx/dsp16xx.md: Likewise.
23221 * config/i386/i386.md: Likewise.
23222 * config/ia64/ia64.c: Likewise.
23223 * config/m32r/m32r.h: Likewise.
23224 * config/m68hc11/m68hc11.md: Likewise.
23225 * config/mmix/mmix.c: Likewise.
23226 * config/mn10200/mn10200.c: Likewise.
23227 * config/romp/romp.c: Likewise.
23228 * config/sh/sh.c: Likewise.
23229 * config/stormy16/stormy16.c: Likewise.
23230 * config/stormy16/stormy16.h: Likewise.
23231 * config/stormy16/stormy16.md: Likewise.
23233 2002-01-03 Graham Stott <grahams@redhat.com>
23235 * loop.h: Update copyright date.
23236 (LOOP_MOVABLES): Fix typo.
23237 (LOOP_REGS): Likewise.
23238 (LOOP_IVS): Likewise.
23240 2002-01-03 Graham Stott <grahams@redhat.com>
23242 * cppinit.c: Update copyright date.
23243 Don't include output.h
23244 * Makefile.in: Update copyright date.
23247 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
23250 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
23251 (-pthread) Add to RS/6000 options.
23253 2002-01-02 Kazu Hirata <kazu@hxi.com>
23255 * except.c: Fix comment typos.
23256 * loop.c: Likewise.
23257 * varasm.c: Likewise.
23258 * doc/tm.texi: Fix a typo.
23260 2002-01-02 Jakub Jelinek <jakub@redhat.com>
23262 * c-typeck.c (output_init_element): Allow initializing static storage
23263 duration objects with compound literals.
23265 2002-01-02 Richard Henderson <rth@redhat.com>
23267 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
23270 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23272 * gcc.c (default_compilers): Const-ify.
23273 * mips-tdump.c (stab_names): Likewise.
23274 * mips-tfile.c (map_coff_types, map_coff_storage,
23275 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
23276 pseudo_ops_t, pseudo_ops): Likewise.
23277 * protoize.c (default_include): Likewise
23279 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
23280 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
23281 Add array size in declaration.
23282 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
23283 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
23284 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
23285 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
23286 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
23287 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
23288 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
23289 emtens, make_nan): Const-ify.
23290 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
23291 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
23293 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
23295 * config.gcc (ia64-*-*): Set extra_headers.
23296 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
23297 * config/alpha/t-osf: Remove.
23298 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
23300 2002-01-02 David Edelsohn <edelsohn@gnu.org>
23302 * config/rs6000/t-aix43: Revert previous change.
23304 2002-01-02 Jason Merrill <jason@redhat.com>
23306 * c-decl.c (c_expand_body): Call outlining_inline_function when
23307 emitting an inline function out of line.
23309 2002-01-02 Richard Henderson <rth@redhat.com>
23311 * dwarf2out.c (limbo_die_node): Add created_for member.
23312 (new_die): New argument created_for. Update all callers.
23313 (mark_limbo_die_list): New.
23314 (dwarf2out_init): Register limbo_die_list as a root.
23315 (dwarf2out_finish): Force insert limbo dies into their function
23318 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
23321 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
23323 2002-01-02 Kazu Hirata <kazu@hxi.com>
23325 * config/h8300/fixunssfsi.c: Update copyright.
23328 * config/h8300/h8300.c: Update copyright.
23329 Eliminate warnings.
23331 2002-01-02 Kazu Hirata <kazu@hxi.com>
23333 * config/romp/romp.c: Fix comment formatting.
23334 * config/romp/romp.h: Likewise.
23335 * config/romp/romp.md: Likewise.
23336 * config/s390/s390.c: Likewise.
23337 * config/stormy16/stormy16.c: Likewise.
23338 * config/stormy16/stormy16.h: Likewise.
23340 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
23342 * c-common.h (genrtl_expr_stmt_value): Declare.
23343 * c-semantics.c (genrtl_goto_stmt): Redirect to...
23344 (genrtl_goto_stmt_value): ... this new function. Pass new
23345 argument down to expand_expr_stmt_value, taking
23346 TREE_ADDRESSABLE into account.
23347 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
23348 STMT_EXPR as addressable, i.e., one whose result we want.
23349 * expr.c (expand_expr): Don't save expression statement value
23350 of labeled_blocks or loop_exprs.
23351 * stmt.c (expand_expr_stmt): Redirect to...
23352 (expand_expr_stmt_value): ... this new function. Use new
23353 argument to tell whether to save expression value.
23354 (expand_end_stmt_expr): Reset last_expr_type and
23355 last_expr_value if we don't have either.
23356 * tree-inline.c (declare_return_variable): Mark its use
23357 statement as addressable.
23358 * tree.h: Document new use of TREE_ADDRESSABLE.
23359 (expand_expr_stmt_value): Declare.
23361 2002-01-01 Tom Rix <trix@redhat.com>
23363 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
23364 rs6000_emit_allocate_stack.
23366 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
23368 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
23369 ${srcdir}/ginclude/ to every entry in extra_headers.
23370 * configure: Regenerate.
23371 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
23372 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
23373 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
23374 * ginclude/proto.h: Rename to config/convex/proto.h.
23376 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23378 * attribs.c (handle_vector_size_attribute): Use host_integerp
23379 and tree_int_cst; remove warnings.
23380 * caller-save.c (insert_restore): Add cast to get rid of warning.
23381 (insert_save): Likewise.
23382 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
23383 * regmove.c (find_matches): Add temporary var to kill a warning.
23385 2002-01-01 Douglas B Rupp <rupp@gnat.com>
23387 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
23388 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
23389 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
23390 (vms-dwarf2eh.o): Add Makefile rule.
23391 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
23392 * config/alpha/vms-dwarf2eh.asm: New file.
23394 * gcc.c (delete_if_ordinary): Delete all versions.
23396 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
23398 * config/mmix/mmix.md: Update FIXME to not mention
23400 (MMIX_rJ_REGNUM): New define_constants constant.
23401 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
23402 "*movdicc_real"): Adjust contraints formatting.
23403 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
23404 for branch prediction.
23405 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
23407 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
23408 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
23409 number. Delete related FIXMEs.
23410 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
23411 from number to MMIX_rJ_REGNUM.
23412 (TARGET_MASK_BRANCH_PREDICT): New.
23413 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
23414 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
23415 value. Add -mbranch-predict and -mno-branch-predict.
23416 (TARGET_VERSION): Drop date.
23417 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
23418 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
23419 for finding out global symbols.
23420 (mmix_asm_output_labelref): Revert condition for global symbol.
23421 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
23422 (mmix_print_operand_punct_valid_p): A '+' is valid.
23424 See ChangeLog.6 for earlier changes.