1 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
3 * dwarf2out.c (SECTION_ASM_OP,
4 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5 * system.h (SECTION_ASM_OP): Poison.
6 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
7 * config/alpha/alpha-interix.h, config/mips/linux.h
8 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
9 * config/mmix/mmix-protos.h, config/mmix/mmix.c
10 (mmix_asm_output_define_label_difference_symbol): Remove.
12 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
14 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
16 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
17 (constrain_operands): Likewise.
18 * regclass.c (record_reg_classes): Likewise.
19 * reload.c (find_reloads): Likewise.
20 * doc/md.texi: Likewise.
22 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
23 * simplify-rtx.c (simplify_subreg): When converting to a non-int
24 mode, try to convert to an integer mode of matching size first.
26 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
27 from individual subregs, check that each subreg has been generated
30 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
32 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
33 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
34 FOR_EACH_BB_IN_SBITMAP): Remove.
35 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
36 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
37 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
38 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
39 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
40 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
42 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
44 * pretty-print.h: New file.
46 2002-07-23 Paul Koning <pkoning@equallogic.com>
48 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
49 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
50 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
51 (TARGET_G_FLOAT): Default to 0 if not defined.
52 (ieeetoe): New, common routine to convert target format floats
54 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
56 (e113toe): Change to use ieeetoe.
58 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
60 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
62 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
63 (e64toe): Remove special cases for DEC and IBM. Remove support for
64 ARM_EXTENDED_IEEE_FORMAT.
65 (e24toe): Remove special cases for DEC.
66 (significand_size): Simplify. Indent.
67 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
68 (etoieee, toieee): New.
69 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
70 etoieee and toieee for IEEE arithmetic.
72 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
74 * doc/extend.texi: Say ISO C90, not ISO C89.
75 * doc/invoke.texi: Likewise.
76 * doc/standards.texi: Likewise.
78 2002-07-23 Steve Ellcey <sje@cup.hp.com>
80 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
81 Fix permutation of conversion and plus/mult.
82 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
83 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
84 (expand_builtin_strncpy) Ditto.
85 (expand_builtin_memset) Ditto.
87 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
90 * c-common.c (c_sizeof_or_alignof_type): New function.
91 (c_alignof): Remove definition.
92 * c-common.h (c_sizeof, c_alignof): Define as macros.
93 (c_sizeof_or_alignof_type): Declare.
94 (my_friendly_assert): Moved from cp/cp-tree.h
95 * c-typeck.c (c_sizeof): Remove definition.
97 2002-07-23 Jan Hubicka <jh@suse.cz>
99 * gcse.c (try_replace_reg): Use num_changes_pending.
100 * recog.c (num_changes_pending): New function.
101 (validate_replace_src): Use validate_repalce_src_group.
102 (validate_replace_src_group): New.
103 * recog.h (validate_repalce_src_group): New.
104 (num_changes_pending): Likewise.
106 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
108 * calls.c (emit_library_call_value_1): If
109 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
110 libcall, const call nor pure call.
112 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
114 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
116 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
118 * vmsdbgout.c (SECTION_ASM_OP): Remove.
120 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
122 * config/i386/i386.c (AT_BP): Remove.
124 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
126 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
128 * gcse.c: Don't define obstack_chunk_free.
129 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
130 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
131 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
132 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
133 Don't define obstack macros.
135 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
138 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
139 ASM_OPERANDS instructions.
141 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
144 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
145 constant addresses only on 68HC12.
147 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
149 * cppfiles.c (stack_include_file): Correct test of whether
150 a dependency should be output.
152 2002-07-22 David Edelsohn <edelsohn@gnu.org>
154 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
156 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
158 * arm.md (movqi): If optimizing and we can create pseudos, use
159 a ZERO_EXTEND to load from memory, then copy the result into the
161 (movhi): Likewise, but only for ARMv4.
163 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
165 * ssa-ccp.c (PHI_PARMS): Remove.
167 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
169 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
170 on big-endian targets.
172 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
174 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
175 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
176 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
177 New formatting macros.
179 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
181 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
183 * rtlanal.c (subreg_regno_offset): Return correct offset for
184 big endian paradoxical subregs.
186 * optabs.c (expand_vector_unop): Don't expand using sub_optab
187 if we got the wrong mode.
189 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
190 * genrecog.c (write_switch, write_cond): Use it.
191 * genemit.c (gen_exp): Likewise.
193 2002-07-22 Jakub Jelinek <jakub@redhat.com>
195 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
197 2002-07-22 Jakub Jelinek <jakub@redhat.com>
199 * c-decl.c (build_compound_literal): Defer compound literal decls
200 until until file end to emit them only if they are actually used.
202 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
204 * ra-build.c (check_conflict_numbers): Hide unused function.
205 (livethrough_conflicts_bb): Avoid automatic aggregate
207 (parts_to_webs_1): Avoid `U' integer constant modifier.
208 (conflicts_between_webs): Wrap a variable in the macro controlling
210 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
211 (dump_igraph, dump_graph_cost): Avoid string concatenation
212 (dump_static_insn_cost): Avoid automatic aggregate
214 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
216 (dump_cost): Avoid string concatenation
218 2002-07-21 Richard Henderson <rth@redhat.com>
220 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
221 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
223 2002-07-21 Richard Henderson <rth@redhat.com>
225 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
226 that are not unrolled completely.
228 2002-07-21 Richard Henderson <rth@redhat.com>
230 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
231 * loop.c (strength_reduce): Update.
232 * toplev.c (rest_of_compilation): Do unrolling in the first
233 loop pass, not the second.
235 2002-07-21 Richard Henderson <rth@redhat.com>
237 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
238 when flag_argument_noalias == 2.
239 * alias.c (nonoverlapping_memrefs_p): Handle that.
240 * print-rtl.c (print_mem_expr): Likewise.
242 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
244 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
245 instead of __negdi2 directly.
247 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
249 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
250 * function.c (SYMBOL__MAIN): Remove definition.
251 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
252 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
253 * profile.c (GCOV_INDEX_TO_BB): Remove.
254 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
255 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
257 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
259 * c-lex.c (GET_ENVIRONMENT): Remove.
260 * collect2.c (GET_ENV_PATH_LIST): Remove.
261 (prefix_from_env): Use GET_ENVIRONMENT.
262 * cppinit.c (GET_ENV_PATH_LIST): Remove.
263 (init_standard_includes): Use GET_ENVIRONMENT.
264 * defaults.h (GET_ENVIRONMENT): Define here if not already.
265 * gcc.c (GET_ENV_PATH_LIST): Remove.
266 (make_relative_prefix, process_command): Update.
267 * protoize.c (GET_ENV_PATH_LIST): Remove.
268 (do_processing): Update.
270 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
272 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
273 (grokdeclarator): Likewise.
274 * c-format.c (C_STD_NAME): Likewise.
275 * c-lex.c (interpret_integer): Likewise.
276 * c-typeck.c (build_array_ref): Likewise.
277 * cpplex.c (_cpp_lex_direct): Likewise.
278 * toplev.c (documented_lang_options): Likewise.
280 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
282 * c-format.c (T99_I, T99_UI): Remove.
284 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
286 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
288 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
290 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
293 2002-07-21 Andreas Jaeger <aj@suse.de>
295 * reload1.c (fixup_abnormal_edges): Remove unused variable.
297 2002-07-21 Bernd Schmidt <bernds@redhat.com>
299 Improvements for the ifcvt pass from Michael Meissner, with patches
300 by Richard Sandiford <rsandifo@redhat.com>
301 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
302 * ifcvt.c (cond_exec_changed_p): New static variable.
303 (last_active_insn): New function, renamed from last_active_insn_p
304 and changed to return the last active insn in a basic block. All
306 (block_fallthru): New function.
307 (cond_exec_process_insns): New argument CE_INFO. Pass it to
308 IFCVT_MODIFY_INSN. All callers updated.
309 Return false if START or END are NULL.
310 Handle case where we're processing an insn that is already
313 (noce_process_if_block): CE_INFO argument rather than
314 multiple args containing the involved basic blocks. All callers
316 (process_if_block, merge_if_block, find_if_block,
317 cond_exec_process_if_block): Likewise.
319 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
321 Use new function last_active_insn to simplify some code.
322 New code to handle multiple tests.
323 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
324 cond_exec_changed_p to TRUE.
326 (process_if_block): New code to handle multiple tests.
327 (merge_if_block): Likewise.
328 (find_if_header): New arg PASS. Changed to return the currently
329 processed basic block or NULL instead of true/false. All callers
331 Call IFCVT_INIT_EXTRA_FIELDS.
332 (block_jumps_and_fallthru_p): New function.
333 (find_if_block): Discover opportunities to convert multiple tests.
334 Add additional debugging output.
335 Update the ce_info structure before returning.
337 (if_convert): Run multiple passes of if-conversion.
338 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
339 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
340 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
343 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
345 * gcse.c: Include cselib.h
346 (constptop_register): Break out from ...
347 (cprop_insn): ... here; kill basic_block argument.
348 (do_local_cprop, local_cprop_pass): New functions.
349 (one_cprop_pass): Call local_cprop_pass.
351 2002-07-20 Roger Sayle <roger@eyesopen.com>
353 * simplify-rtx.c (simplify_relational_operation): Optimize
354 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
356 2002-07-20 Michae Matz <matz@suse.de>
358 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
360 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
362 * cppexp.c (struct op): Add token pointer.
363 (check_promotion, CHECK_PROMOTION): New.
365 (_cpp_parse_expr): Update, use token pointer of struct op.
366 (reduce): Warn about change of sign owing to promotion.
367 * cppinit.c (cpp_handle_option): New warning if -Wall.
368 * cpplib.h (struct cpp_options): New member.
370 2002-07-19 David Edelsohn <edelsohn@gnu.org>
372 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
373 fpu list. Separate Power4 compare and delayed_compare. Correct
375 (fix_truncdfsi2_internal): Restore FPR preference.
376 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
377 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
379 2002-07-19 Momchil Velikov <velco@fadata.bg>
381 * reload1.c (reload_as_needed): Duplicate oldpat.
383 2002-07-20 Alan Modra <amodra@bigpond.net.au>
386 * loop.h (struct loop_info): Add "preconditioned".
387 * unroll.c (unroll_loop): Set it.
388 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
390 2002-07-19 Zack Weinberg <zack@codesourcery.com>
392 * rtl.def (CODE_LABEL): Remove slot 8.
393 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
394 (LABEL_ALTERNATE_NAME): Delete.
395 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
396 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
398 * final.c (output_alternate_entry_point): New.
399 (final_scan_insn): Use it instead of
400 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
401 of a case label being an alternate entry point.
403 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
404 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
405 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
407 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
409 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
410 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
411 * doc/tm.texi: Delete documentation of
412 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
414 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
416 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
417 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
419 (STARTFILE_SPEC): Define.
420 (ENDFILE_SPEC): Define.
422 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
423 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
425 * config/mips/iris6-o32-gas.h: New file.
426 * config.gcc (mips-sgi-irix6*o32): Use it.
428 * config/mips/t-iris5-gas: New file.
429 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
431 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
433 * cppexp.c (ALWAYS_EVAL): Remove.
434 (optab, reduce): Always evaluate.
435 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
436 only if not skipping evaluation.
438 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
440 * config/avr/avr.c (debug_hard_reg_set): Remove.
442 2002-07-19 Chris Demetriou <cgd@broadcom.com>
444 * gcc.c (cpp_options): Include "%1" (cc1_spec).
446 2002-07-19 Richard Henderson <rth@redhat.com>
448 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
450 2002-07-19 Alan Modra <amodra@bigpond.net.au>
452 * prefix.c (update_path): Don't zap single `.' path components
453 unless followed by another `.' and fix typo last patch.
455 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
457 * cppexp.c (cpp_num_mul): Remove unused parameter.
458 (UNARY, BINARY, OTHER, binary_handler): Remove.
461 (reduce): Refactor to a large switch, don't use a function
464 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
466 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
468 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
470 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
471 (sh_expand_binop_v2sf): Likewise.
472 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
473 (int_gpr_dest, trunc_hi_operand): New functions.
474 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
476 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
477 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
478 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
479 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
480 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
481 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
482 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
483 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
484 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
485 (movsf_ie+1): Likewise.
486 (loaddi_trunc): Use int_gpr_dest predicate.
487 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
488 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
489 (casesi_worker_0+[12], casesi_worker): Likewise.
490 (shcompact_preserve_incoming_args): Likewise.
491 (mov_nop): Use any_register_operand predicate.
492 (mperm_w0): Use trunc_hi_operand predicate.
494 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
496 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
497 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
500 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
502 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
504 2002-07-18 Richard Henderson <rth@redhat.com>
507 * ifcvt.c (noce_get_condition): Make certain that the condition
510 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
512 * sh.c (barrier_align, push): Shut up compiler warnings.
513 (initial_elimination_offset,sh_media_init_builtins): Likewise.
514 (reg_no_subreg_operand): Delete.
516 2002-07-17 Bo Thorsen <bo@suse.de>
518 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
519 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
520 (STARTFILE_SPEC): Remove hardcoded library paths.
521 (ENDFILE_SPEC): Likewise.
523 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
525 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
527 * gcse.c (try_replace_reg): Do not return false positives.
529 2002-07-18 Alan Modra <amodra@bigpond.net.au>
531 * prefix.c: (update_path): Strip ".." components when prior dir
532 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
534 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
535 (ASM_OUTPUT_REG_POP): Likewise.
537 2002-07-18 Alan Modra <amodra@bigpond.net.au>
539 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
540 adjustments to first_reg for profiling case.
541 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
542 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
543 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
544 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
545 (ASM_OUTPUT_REG_POP): Define.
546 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
547 (ASM_OUTPUT_REG_POP): Undef.
549 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
551 * cpplib.c (do_sccs): Handle #sccs on all systems.
552 * system.h (SCCS_DIRECTIVE): Poison.
553 * config/darwin.h, config/freebsd.h, config/netbsd.h,
554 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
555 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
556 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
557 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
558 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
559 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
560 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
561 Remove all references to SCCS_DIRECTIVE.
562 * doc/cpp.texi, doc/tm.texi: Update.
564 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
566 * regrename.c (maybe_mode_change): New function.
567 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
569 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
571 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
572 suppress addition when either ct or cf are zero.
574 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
575 Glen Nakamura <glen@imodulo.com>
578 * loop.c (loop_givs_rescan): Explicitly delete the insn that
579 sets a non-replaceable giv after issuing the new one.
581 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
583 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
584 eval_token): Clarify and correct use of "bool" variables.
585 * cpplib.h (struct cpp_options): Similarly.
586 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
587 * cpptrad.c (recursive_macro): Similarly.
589 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
591 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
594 * sh.md (cmpgtudi_media): Remove spurious @.
596 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
597 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
599 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
600 * sh-protos.h (sh_initialize_trampoline): Declare.
601 * sh.c (sh_initialize_trampoline): New function.
602 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
603 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
604 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
605 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
606 * sh.md (initialize_trampoline, double_shori): New patterns.
607 (initialize_trampoline_compact): Likewise.
608 (shmedia32_initialize_trampoline_big): Remove.
609 (shmedia32_initialize_trampoline_little): Likewise.
611 * sh-protos.h (binary_float_operator): Remove declaration.
612 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
613 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
614 (unary_float_operator, sh_expand_unop_v2sf): New functions.
615 (sh_expand_binop_v2sf): Likewise.
616 (zero_vec_operand): Delete.
617 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
619 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
620 Enable nsb and byterev.
621 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
622 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
624 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
625 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
627 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
629 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
630 lowpart fp regs - only for big endian for now.
631 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
633 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
634 (LOAD_EXTEND_OP): NIL for SImode.
635 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
636 general and fp registers is 4.
637 PREDICATE_CODES: Amend binary_float_operator entry.
638 Remove zero_vec_operand. Add unary_float_operator.
639 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
641 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
642 (truncdiqi2): Do sign extension.
643 (movsi_media, movdi_media): Allow to use r63 to an fp register.
644 (movdf_media, movsf_media): Likewise.
645 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
646 Collapse to one define_insn_and_split. Allow immediate sources.
647 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
648 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
649 (movv4sf): Allow immediate sources.
650 (movsf_media_nofpu+1): Don't split moves to FP registers.
651 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
652 (movv8qi_i+3): Check against CONST0_RTX.
653 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
654 for input and output operands. Fix argument 3 to gen_mextr_rl.
655 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
656 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
657 (mshf0_w, fipr, ftrv): Likewise.
658 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
660 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
662 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
663 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
666 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
668 * config/mips/mips-protos.h (mips_sign_extend): Declare.
669 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
670 (TARGET_SWITCHES): Remove debugh.
671 (ISA_HAS_TRUNC_W): New macro.
672 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
673 (PREDICATE_CODES): Remove se_nonimmediate_operand.
674 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
675 any SImode move_operand.
676 (se_nonimmediate_operand): Remove.
677 (mips_sign_extend): New.
678 (mips_move_2words): Use it for sign-extended source operands.
679 (override_options): Allow integers to be put into single FPRs.
680 (mips_secondary_reload_class): Handle integers in float registers.
681 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
682 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
683 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
684 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
685 (fix_truncdfdi2): Provide only a single alternative, in which the
686 integer is in a float register. Depend on TARGET_FLOAT64 rather
688 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
689 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
690 (movdi_internal2): Don't allow the source operand to be sign-extended.
691 Add alternatives for float registers.
692 (*movdi_internal2_extend): New. Version of movdi_internal2 that
693 allows sign-extension.
694 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
695 (movsi_internal2): Rename to movsi_internal. Add alternatives for
696 float registers. Remove TARGET_DEBUG_H_MODE test.
697 (movhi_internal1): Rename to movhi_internal. Don't check
698 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
699 (movqi_internal1): Rename to movqi_internal and remove
700 TARGET_DEBUG_H_MODE dependency.
701 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
703 2002-07-16 Jim Wilson <wilson@redhat.com>
705 * toplev.c (lang_dependent_init): Create function context for
708 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
710 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
712 * config/cris/cris.h: Ditto.
714 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
716 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
717 the comparison directly gives a mask suppress addition when cf is
718 zero by complementing the mask.
720 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
722 * Makefile.in: Delete references to enquire.
723 * enquire.c: Move to contrib.
725 2002-07-16 Stan Shebs <shebs@apple.com>
727 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
728 config/rs6000/darwin.h.
729 (ASM_OUTPUT_SKIP): Ditto.
730 (TEXT_SECTION_ASM_OP): Ditto.
731 (DATA_SECTION_ASM_OP): Ditto.
732 (ASM_APP_ON): Define.
733 (ASM_APP_OFF): Define.
734 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
735 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
737 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
738 (machopic_function_base_name): Declare result to be const.
739 (machopic_non_lazy_ptr_name): Ditto.
740 (machopic_stub_name): Ditto.
741 * config/darwin-protos.h: Ditto for the prototypes.
743 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
745 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
747 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
749 * i386.md (prefetch): Fix for 64bit mode.
750 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
752 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
754 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
755 * i386.c (x86_machine_dependent_reorg): New function.
756 * i386-protos.h (x86_machine_dependent_reorg): Declare.
758 2002-07-16 Zack Weinberg <zack@codesourcery.com>
760 * builtins.c (std_expand_builtin_va_start): Remove unused
762 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
763 std_expand_builtin_va_start with just two arguments.
764 * expr.h: Update prototypes.
766 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
767 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
768 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
769 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
770 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
771 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
772 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
773 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
774 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
775 argument from all implementations of EXPAND_BUILTIN_VA_START
776 and all uses of std_expand_builtin_va_start.
778 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
780 * regrename.c (copy_value): Don't record high part copies.
782 2002-07-16 Steve Ellcey <sje@cup.hp.com>
784 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
785 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
786 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
788 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
790 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
792 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
793 into addsi3 using register class "x" and "y".
795 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
796 "earlyclobber" constraint modifier for some alternative.
798 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
799 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
801 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
803 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
804 (TARGET_SWITCHES): Add -mieee-compare option.
805 (OVERRIDE_OPTIONS): 32332 is a subset of
806 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
807 (TARGET_SWITCHES): Fix description of bitfield option.
808 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
809 -mieee-compare option. Remove 32332 flag.
811 2002-07-16 Steve Ellcey <sje@cup.hp.com>
813 * explow.c (convert_memory_address): Remove special handling
814 when POINTERS_EXTEND_UNSIGNED < 0.
815 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
816 (movedi_symbolic): Fix typo.
817 (load_fptr): Remove mode restriction so it works for SI and DI.
818 (load_fptr_internal1): Ditto.
820 (load_symptr_internal1): Ditto.
822 * config/ia64.c (call_operand): Modify mode check.
823 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
824 (ia64_expand_move): Ditto.
825 (ia64_assemble_integer): Handle SImode function pointers.
826 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
827 (ia64_expand_op_and_fetch): Ditto.
828 (ia64_expand_compare_and_swap): Ditto.
829 (ia64_expand_lock_test_and_set): Ditto.
830 (ia64_expand_lock_release): Ditto.
832 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
834 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
836 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
837 Richard Earnshaw <rearnsha@arm.com>
839 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
840 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
842 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
844 * arm.md (stack_tie): New insn. Use an idiom that the alias code
845 understands to be a memory clobber.
846 * arm.c (arm_expand_prologue): Use it.
848 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
850 * ra-rewrite.c: #include reload.h, insn-config.h
851 * ra-build.c: #include reload.h
852 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
853 depend on reload.h, insn-config.h.
855 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
857 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
858 the same size as a word.
860 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
861 BYTES_BIG_ENDIAN into account.
863 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
865 * i386.md (prefetch): Fix for 64bit mode.
866 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
868 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
870 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
872 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
874 2002-07-15 Zack Weinberg <zack@codesourcery.com>
876 * ginclude/varargs.h: Replace with stub which issues #error.
877 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
880 * builtins.def (BUILT_IN_VARARGS_START): Delete.
881 (BUILT_IN_VA_START): New.
882 * builtins.c (expand_builtin_va_start): Eliminate first
883 argument and code to implement pre-ISO varargs.
884 (std_expand_builtin_va_start): Ignore first argument; it is
886 (expand_builtin): Handle BUILT_IN_VA_START and
887 BUILT_IN_STDARG_START identically. Delete
888 BUILT_IN_VARARGS_START case.
890 * function.c (assign_parms): Delete hide_last_arg and all
892 (mark_varargs): Delete function.
893 * function.h (struct function): Delete 'varargs' bit.
894 (current_function_varargs): Delete macro.
895 * tree.h: Don't declare mark_varargs.
897 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
898 (c_expand_body): Don't call mark_varargs.
899 * c-objc-common.c: Handle BUILT_IN_VA_START and
900 BUILT_IN_STDARG_START identically. Delete
901 BUILT_IN_VARARGS_START case.
902 * c-tree.h: Don't declare c_mark_varargs.
903 * c-parse.in: Remove grammar rules for '&...' (which has been
904 commented out since before 2.7.2) and for '...' in K+R
905 argument declarations.
907 * builtins.c, function.c, integrate.c, sibcall.c,
908 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
909 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
910 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
911 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
912 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
913 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
914 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
915 config/stormy16/stormy16.c: Delete all references to
916 current_function_varargs, and code predicated on that flag.
918 * config/alpha/alpha.c (alpha_va_start),
919 config/arc/arc.c (arc_va_start),
920 config/i386/i386.c (ix86_va_start),
921 config/mips/mips.c (mips_va_start),
922 config/mn10300/mn10300.c (mn10300_va_start),
923 config/rs6000/rs6000.c (rs6000_va_start),
924 config/s390/s390.c (s390_va_start),
925 config/sh/sh.c (sh_va_start),
926 Ignore first argument; it is always 1.
928 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
929 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
930 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
931 Delete m68hc11_va_start.
932 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
933 No need to define EXPAND_BUILTIN_VA_START.
935 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
936 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
938 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
941 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
942 dies in more than one insn.
944 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
946 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
948 2002-07-15 Michael Matz <matz@suse.de>,
949 Daniel Berlin <dberlin@dberlin.org>,
950 Denis Chertykov <denisc@overta.ru>
952 Add a new register allocator.
956 * ra-build.c: New file.
957 * ra-colorize.c: New file.
958 * ra-debug.c: New file.
959 * ra-rewrite.c: New file.
961 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
962 (ra-rewrite.o): New .o files for libbackend.a.
963 (GTFILES): Add basic-block.h.
965 * toplev.c (flag_new_regalloc): New.
966 (f_options): New option "new-ra".
967 (rest_of_compilation): Call initialize_uninitialized_subregs()
968 only for the old allocator. If flag_new_regalloc is set, call
969 new allocator, instead of local_alloc(), global_alloc() and
972 * doc/invoke.texi: Document -fnew-ra.
973 * basic-block.h (FOR_ALL_BB): New.
974 * config/rs6000/rs6000.c (print_operand): Write small constants
977 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
978 (df_reg_table_realloc): Make size at least as large as max_reg_num().
979 (df_insn_table_realloc): Size argument now is absolute, not relative.
982 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
983 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
985 2002-06-20 Michael Matz <matz@suse.de>
987 * df.h (struct ref.id): Make unsigned.
988 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
990 2002-06-13 Michael Matz <matz@suse.de>
992 * df.h (DF_REF_MODE_CHANGE): New flag.
993 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
994 involving subregs with invalid mode changes, when
995 CLASS_CANNOT_CHANGE_MODE is defined.
997 2002-05-07 Michael Matz <matz@suse.de>
999 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
1001 2002-05-03 Michael Matz <matz@suse.de>
1003 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
1005 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
1007 * regclass.c (regclass): Work with all regs which have sets or
1009 (reg_scan_mark_refs): Count regs inside (clobber ...).
1011 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
1013 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
1014 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
1016 (df_bb_refs_update): Don't clear insns_modified here, ...
1017 (df_analyse): ... but here.
1019 * sbitmap.c (dump_sbitmap_file): New.
1020 (debug_sbitmap): Use it.
1022 * sbitmap.h (dump_sbitmap_file): Add prototype.
1024 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
1026 * df.c (df_insn_modify): Grow the UID table if necessary, rather
1027 than assume all emits go through df_insns_modify.
1029 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
1031 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
1032 increase REG_N_REFS (like flow does), so that regclass doesn't
1033 think a reg is useless, and thus, not calculate a class, when it
1036 2001-01-28 Daniel Berlin <dberlin@redhat.com>
1038 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
1041 2002-07-15 Jakub Jelinek <jakub@redhat.com>
1044 * config/i386/i386.c (const_int_1_31_operand): New.
1045 * config/i386/i386.h (PREDICATE_CODES): Add it.
1046 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
1047 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
1048 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
1050 2002-07-14 Alan Modra <amodra@bigpond.net.au>
1053 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
1054 (floatunssidf2): Likewise.
1055 (floatsidf_ppc64): New insn_and_split.
1056 (floatunssidf_ppc64): Likewise.
1058 2002-07-14 Andreas Jaeger <aj@suse.de>
1060 * config.gcc (sh64): Remove unused
1061 target_requires_64bit_host_wide_int.
1063 2002-07-12 Roger Sayle <roger@eyesopen.com>
1065 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
1066 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
1067 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
1068 whether clear_by_pieces should be used to clear storage.
1069 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
1071 * doc/tm.texi: Document these two new target macros.
1073 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
1075 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
1076 the scratch register.
1077 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
1078 of it, forbid reload to use it.
1080 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
1082 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
1083 usage on 64-bit hosts, return value was truncated to 32 bits.
1085 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
1087 * simplify-rtx.c (simplify_subreg): Handle floating point
1088 CONST_DOUBLEs. When an integer subreg of a smaller mode than
1089 the element mode is requested, compute a subreg with an
1090 integer mode of the same size as the element mode first.
1092 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1094 * combine.c (try_combine): When converting a paradoxical subreg
1095 to an extension, take LOAD_EXTEND_OP into account.
1097 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1099 * config.gcc (mips-sgi-irix6*o32): New configuration.
1101 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
1103 * configure: Regenerate.
1105 * config/mips/iris6-o32-as.h: New file.
1106 * config/mips/iris6-o32.h: New file.
1108 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
1110 (HAVE_AS_SHF_MERGE): Undefine.
1112 * config/mips/t-iris5-as: New file.
1113 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1115 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
1116 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
1117 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
1118 dp-bit.c, fp-bit.c): Move ...
1119 * config/mips/t-iris5-6: ... here.
1120 New file, shared by IRIX 5 and IRIX 6.
1121 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
1122 mips-sgi-irix5*): Use it.
1124 * config/mips/iris6.h: Remove duplicate comment.
1126 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1127 !TARGET_IRIX6]: Define.
1128 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
1130 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
1132 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1134 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
1135 and delete code to force constant to register.
1136 * pa-protos.h (adddi3_operand): Add prototype.
1137 * pa.c (adddi3_operand): New function.
1139 2002-07-11 Roger Sayle <roger@eyesopen.com>
1141 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
1142 non-ANSI builtin functions.
1144 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
1146 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
1147 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
1148 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
1149 (gen_const_vector_0): Use it.
1151 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1153 * pa.md (adddi3): For 32-bit targets, force constants to a register
1154 if they don't fit in an 11-bit immediate. Change insn predicate to
1155 arith11_operand. Remove comment.
1156 * pa.c (cint_ok_for_move): Fix comment.
1157 (emit_move_sequence): Don't directly split DImode constants on 32-bit
1160 2002-07-11 Tim Josling <tej@melbpc.org.au>
1162 Remove front end hard coding from gengtype.c.
1165 (STAGESTUFF): add gtyp-gen.h
1166 (GTFILES): Remove front end specific files.
1167 (GTFILES_FILES_LANGS): New, from configure..
1168 (GTFILES_FILES_FILES): Likewise.
1169 (GTFILES_LANG_DIR_NAMES): Likewise.
1170 (GTFILES_SRCDIR): Likewise.
1171 (gtyp-gen.h): Build from configure information.
1172 (s-gtype): Remove command line parameters from gengtype.
1173 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
1174 (mostlyclean): Delete files generated by and for gengtype.
1176 * c-config-lang.in: New file.
1178 * configure.in (all_gtfiles_files_langs): New. Accumulate files
1180 (all_gtfiles_files_files): New. Accumulate language for each file
1182 (gtfiles): Pick up value for C.
1183 (srcdir): AC-SUBST this variable.
1184 (all_gtfiles_files_langs): AC-SUBST this variable.
1185 (all_gtfiles_files_files): AC-SUBST this variable.
1187 * configure: Regenerate.
1189 * gengtype-lex.l (parse_file): Make parameter const.
1191 * gengtype.c (toplevel): include gtyp-gen.h.
1192 (BASE_FILE_<language> unnamed enum): Delete.
1193 (lang_names): Delete (replaced by gtyp-gen.h)
1194 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
1196 (NUM_GT_FILES): New.
1197 (NUM_LANG_FILES): New.
1199 (NUM_BASE_FILES): Change calculation.
1200 (open_base_files): Change prototype to avoid warning.
1201 (startswith): Delete.
1202 (get_file_basename): Iterate through generated language list not
1204 (get_base_file_bitmap): Use generated list of files and languages.
1205 (close_output_files): Add prototype to rmove warning.
1206 (main): Iterate through list of generated files from gtyp-gen.h
1207 rather than command line paramaters. Ignore duplicated file
1210 * gengtype.h (parse_file): Amend prototype for const parameter.
1212 * doc/sourcebuild.texi: Document gtfiles variable.
1214 * doc/gty.texi: Document changes to gtfiles variable for front
1217 * objc/config-lang.in (gtfiles): Add files needed for objc front
1220 2002-07-10 Roger Sayle <roger@eyesopen.com>
1223 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
1224 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
1226 2002-07-10 Roger Sayle <roger@eyesopen.com>
1227 Zack Weinberg <zack@codesourcery.com>
1229 * builtins.def: Make the argument types of abort and exit
1230 independent of the front-end.
1232 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1234 * config/rs6000/linux64.h (ASM_SPEC): Define.
1236 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
1238 * config/rs6000/rs6000.c (emit_frame_save): New.
1239 (rs6000_frame_related): Replace reg2 before reg.
1240 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
1241 and eh_return registers.
1243 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
1245 Revert all patches for optimization of Complex .op. Real.
1246 * complex_part_zero_p: Remove
1247 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
1249 * expand_cmplxdiv_wide: Ditto.
1250 * expand_binop: Ditto.
1252 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1254 * config/avr/avr.md: Fix two 0x80000000 constants to make them
1255 negative also on 64-bit hosts.
1257 Default to -fno-reorder-blocks when optimizing for size.
1258 * config/avr/avr-protos.h (avr_optimization_options): Declare.
1259 * config/avr/avr.c (avr_optimization_options): New function.
1260 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
1262 Optimize returning from simple functions.
1263 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
1264 * config/avr/avr.c (avr_simple_epilogue): New function.
1265 * config/avr/avr.md (return): New insn.
1267 2002-07-10 Douglas B Rupp <rupp@gnat.com>
1269 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
1270 HAS_INIT_SECTION to protection.
1272 2002-07-10 Mark Mitchell <mark@codesourcery.com>
1274 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
1277 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
1279 * combine.c (gen_lowpart_for_combine): Handle vector modes.
1280 Supply non-VOID mode to simplify_gen_subreg.
1282 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
1284 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
1286 2002-07-10 Jeffrey A Law <law@redhat.com>
1288 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
1291 * mn10200.c (expand_epilogue): Fix test to determine which scratch
1294 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
1296 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
1298 If simplify_gen_subreg fails, try next equivalent.
1300 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
1302 * diagnostic.h: #include location.h
1303 (location_t): Move definition to..
1304 * location.h: ... here. New file.
1305 * tree.h: #include location.h
1306 (DECL_SOURCE_LOCATION): New macro.
1307 (DECL_SOURCE_FILE): Use.
1308 (DECL_SOURCE_LINE): Likewise.
1309 (struct tree_decl): REplace filename and linenum with locus.
1310 * Makefile.in (TREE_H): add location.h
1311 (diagnostic.o): Depends on gt-location.h
1312 (gt-location.h): Depends on s-gtype
1314 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
1316 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
1317 TARGET_OS_CPP_BUILTINS.
1318 * config/rs6000/aix31.h: Likewise.
1319 * config/rs6000/aix41.h: Likewise.
1320 * config/rs6000/aix43.h: Likewise.
1321 * config/rs6000/aix51.h: Likewise.
1322 * config/rs6000/beos.h: Likewise.
1323 * config/rs6000/darwin.h: Likewise.
1324 * config/rs6000/eabi.h: Likewise.
1325 * config/rs6000/eabisim.h: Likewise.
1326 * config/rs6000/linux.h: Likewise.
1327 * config/rs6000/linux64.h: Likewise.
1328 * config/rs6000/lynx.h: Likewise.
1329 * config/rs6000/mach.h: Likewise.
1330 * config/rs6000/rtems.h: Likewise.
1331 * config/rs6000/sysv4.h: Likewise.
1332 * config/rs6000/vxppc.h: Likewise.
1334 2002-07-09 Devang Patel <dpatel@apple.com>
1335 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
1336 Do not allow ObjC objects as a parameter type for Objective-C methods.
1337 My previous patch restricted 'struct' also.
1339 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
1341 * cpperror.c (cpp_error): Default to directive_line within
1343 * cppexp.c (cpp_interpret_integer): Only use traditional
1344 number semantics in directives.
1345 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
1346 (do_include_common): Similarly.
1347 * cpptrad.c (scan_out_logical_line): Implement accurate
1348 quoting of <> in #include.
1349 * doc/cpp.texi: Update.
1351 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
1352 J"orn Rennecke <joern.rennecke@superh.com>
1354 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
1355 * sh.md (attribute issues): Replace with:
1356 (attribute pipe_model). All users changed.
1357 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
1359 (function units sh5issue, sh5fds): New.
1360 (attribute is_mac_media): New.
1361 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
1362 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
1363 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
1364 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
1365 (call_media, call_value_media, sibcall_media): Likewise.
1366 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
1367 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
1368 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
1369 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
1370 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
1371 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
1372 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
1373 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
1374 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
1375 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
1376 (truncdfsf2_media): Likewise.
1377 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
1378 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
1380 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
1382 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
1383 * sh.c (general_extend_operand, inqhi_operand): New functions.
1384 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
1385 alternatives using 'N' modifier. Add type.
1386 (adddi3z_media): Likewise. Enable generator function generation.
1387 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
1388 exact predicates / constraints. Add type.
1389 (subsi3): Allow 0 for SHMEDIA.
1390 (udivsi3_i4_media): Use match_operand for input values
1391 rather than hard registers.
1392 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1393 unnecessarily through hard registers. Keep copies of pseudo
1394 registers outside of the libcall sequence.
1395 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
1396 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
1397 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
1398 (extendhidi2, extendqidi2): Likewise.
1399 (andsi3_compact): Name.
1400 (andcdi3): Enable generator function generation.
1401 (zero_extendhisi2, zero_extendqisi2): Rename to
1402 (zero_extendhisi2_compact, zero_extendqisi2_compact).
1403 (extendhisi2, extendqisi2): Rename to
1404 (extendhisi2_compact, extendqisi2_compact).
1405 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
1406 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
1407 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
1408 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
1409 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
1410 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
1411 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
1412 (shmedia32_initialize_trampoline_big): Likewise.
1413 (shmedia32_initialize_trampoline_little): Likewise.
1414 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
1415 (negdi2): Remove spurious T clobber.
1416 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
1417 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
1418 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
1419 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
1420 (ic_invalidate_line_media): Write back data cache before invalidating
1421 instruction cache. Add type.
1422 (movsf_media): Sign-extend when the destination is a general
1423 purpose register. Add type.
1424 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
1425 (casesi_worker_0+1): Only increment ref count for proper label.
1426 (casesi_worker_0+2): Likewise.
1428 2002-07-09 Mark Mitchell <mark@codesourcery.com>
1430 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
1432 2002-07-09 Steve Ellcey <sje@cup.hp.com>
1434 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
1435 from Pmode to ptr_mode.
1436 (get_exception_pointer): Ditto.
1437 (connect_post_landing_pads): Ditto.
1438 (dw2_build_landing_pads): Ditto.
1440 2002-07-08 Steve Ellcey <sje@cup.hp.com>
1441 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
1442 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
1443 (handle_pragma_redefine_extname): Change to use new function.
1445 2002-07-08 Roger Sayle <roger@eyesopen.com>
1447 * combine.c (combine_simplify_rtx): Add an explicit cast
1448 to avoid signed/unsigned comparison warning.
1449 (simplify_if_then_else): Likewise.
1450 (extended_count): Likewise.
1451 (simplify_shift_const): Likewise.
1452 (simplify_comparison): Likewise.
1454 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
1456 * config/mips/mips.md: Add imadd type. Update scheduler description
1457 to use imadd as well as imul.
1458 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
1459 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
1460 (*mul_sub_si): Likewise for first alternative. Change second
1461 alternative from imul to multi.
1463 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
1465 * c-common.c (c_common_post_options): Update prototype;
1466 don't init backends if preprocessing only.
1467 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
1468 * langhooks.h (struct lang_hooks): Update post_options to
1470 * toplev.c (parse_options_and_default_flags, do_compile,
1471 lang_independent_init): Update prototypes. Allow the
1472 front end to specify that there is no need to initialize
1474 (general_init): Move call to hex_init here...
1475 (toplev_main): ...from here. Pass flag for back end init
1478 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1480 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
1481 (PREDICATE_CODES): Add entries for equality_comparison_operator,
1482 greater_comparison_operator and less_comparison_operator.
1483 * sh.c (print_operand): Add '\'' code. Make 'o' handle
1485 (equality_comparison_operator): New function.
1486 (greater_comparison_operator, less_comparison_operator): Likewise.
1487 * sh.md (beq_media_i): Disable generator function generation.
1488 Use match_operator to handle a whole class of comparisons. Add
1489 modifier in output template to provide branch prediction. Add type.
1490 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
1491 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
1492 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
1493 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
1495 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
1497 Emit MMIX function prologue and epilogue as rtl.
1498 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
1499 not unprototyped get_hard_reg_initial_val.
1500 ("call_value", "nonlocal_goto_receiver"): Ditto.
1501 ("return"): Make define_expand. Move real insn to...
1502 ("*expanded_return"): New pattern.
1503 ("prologue", "epilogue"): New define_expands.
1504 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
1505 (struct machine_function): New member in_prologue.
1506 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
1507 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
1508 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
1509 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
1510 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
1511 (LOCAL_REGNO): Define. Adjust comment.
1512 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
1513 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
1515 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
1517 (mmix_target_asm_function_prologue): Make static. Just mark that
1518 the prologue is being emitted. Move guts to...
1519 (mmix_expand_prologue): New function. Adjust for emitting
1520 prologue as rtl. For sizes, use HOST_WIDE_INT only.
1521 (mmix_target_asm_function_epilogue): Make static. Simply emit a
1523 (mmix_expand_epilogue): New function. Adjust for emitting
1524 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
1525 (mmix_target_asm_function_end_prologue): Mark that the prologue
1527 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1528 (mmix_conditional_register_usage): Improve comments.
1529 (mmix_local_regno): New function.
1530 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
1531 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
1532 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
1533 (mmix_get_hard_reg_initial_val): Ditto.
1535 2002-07-06 Andreas Jaeger <aj@suse.de>
1537 * toplev.c (set_fast_math_flags): Don't use ISO C style function
1539 * gengtype.c (open_base_files): Likewise.
1540 (close_output_files): Likewise.
1541 * tracer.c (find_best_predecessor): Likewise.
1542 (find_best_successor): Likewise.
1543 (ignore_bb_p): Likewise.
1545 2002-07-05 Roger Sayle <roger@eyesopen.com>
1548 * builtin-attrs.def: Define new attribute lists for use in
1550 * builtins.def [DEF_BUILTIN]: Modify to take an additional
1551 ATTRS argument, an enumerated value defined in builtin-attrs.def
1552 that represents the attribute list for the builtins. Modify
1553 all builtin functions to pass an appropriate attribute list.
1554 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
1555 their required noreturn attributes.
1556 * tree.h (enum_builtin_function): Ignore the additional parameter
1558 * builtins.c (built_in_names): Likewise.
1559 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
1560 argument with a tree representing the functions attribute list.
1561 Pass this "attrs" argument to builtin_function. No longer handle
1562 the noreturn_p processing manually.
1563 (built_in_attributes): Move the definitions from builtin-attrs.def
1564 before c_common_nodes_and_builtins.
1565 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
1566 DEF_BUILTIN, passing it to both builtin_function and the changed
1569 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
1570 __builtin__exit and __builtin__Exit.
1572 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1574 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1575 QI mode registers in soft registers.
1576 ("zero_extendqihi2"): Do not take into account soft registers
1577 for register allocation (use '*' constraint).
1579 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1581 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1583 ("*ashrsi3"): Likewise.
1584 ("*lshrsi3"): Likewise.
1586 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
1588 * genautomata.c (output_max_insn_queue_index_def): Take latencies
1591 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1593 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1594 address computation and memory moves.
1596 2002-07-03 Mark Mitchell <mark@codesourcery.com>
1599 * dwarfout.c (output_reg_number): Fix warning message.
1600 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1603 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1605 * gcc/gcc.c (asm_debug): Move initialization ...
1606 (init_spec): ... here.
1608 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
1610 * c-parse.in (extdef): Append ';'.
1611 (old_style_parm_decls): Append ';'.
1613 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1615 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1616 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1617 to gcc_cv_as_gstabs_flag.
1618 * configure: Rebuilt.
1620 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
1622 * ggc.h (ggc_add_root): Document as obsolete.
1624 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
1626 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1627 (mshflo_w): Likewise.
1629 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1631 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1632 vector mode subregs of constants to finding integer mode
1633 subregs of constants.
1634 * cse.c (cse_insn): Use simplify_gen_subreg.
1635 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1636 From a vector mode expression of different size than the
1639 2002-07-03 Eric Christopher <echristo@redhat.com>
1641 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1642 * config/mips/mips.h: Remove deprecated -m<processor> options
1643 and cc1_cpu_spec associated.
1644 (CONSTANT_ADDRESS_P): Fix last patch.
1645 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1646 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1649 2002-07-03 Stan Shebs <shebs@apple.com>
1651 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1652 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1653 (CPP_SPEC): Remove insertion of APPLE_CC definition.
1655 2002-07-03 Roger Sayle <roger@eyesopen.com>
1657 * combine.c (struct_undo): Change types of recorded substitutions
1658 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1659 (do_SUBST_INT): Change types of the substitution from unsigned int
1660 to int, to avoid compilation warning from SUBST_INT's only caller.
1662 (make_extraction): Add cast to avoid compilation warning.
1663 (force_to_mode): Remove cast to avoid compilation warning.
1665 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
1666 Jeff Law <law@redhat.com>
1668 * i386.md (length_immediate attribute): Fix typo.
1669 (length_address attribute): Likewise.
1670 (modrm attribute): Set it to 0 for immediate call instructions.
1671 (jcc_1 pattern): Set modrm attribute to 0.
1672 (jcc_2 pattern ): Likewise.
1673 (jump pattern): Likewise.
1674 (doloop_end_internal pattern): Explicitly set length.
1675 (leave pattern): Fix typo.
1676 (leave_rex64 pattern): Likewise.
1678 2002-07-03 David Edelsohn <edelsohn@gnu.org>
1680 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1681 in FPR as preference.
1683 (floatdidf2, fix_truncdfdi2): Same.
1684 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1686 (floatsitf2, fix_trunctfsi2): SImode in GPR.
1687 (ctrdi): Remove FPR alternative and splitter.
1689 2002-07-03 Will Cohen <wcohen@redhat.com>
1691 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1693 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
1695 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1696 than UNITS_PER_WORD, unless this is little endian and the first unit
1697 in this word. Let extract_bit_field decide how to load an element.
1698 Force arguments to matching mode.
1699 (expand_vector_unop): Likewise.
1701 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1702 consist of word_mode elements.
1703 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1704 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1705 (build_unary_op): Allow vector types for BIT_NOT_EPR.
1706 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1708 * optabs.c (expand_vector_binop): Try to perform operation in
1709 smaller vector modes with same inner size. Add handling of AND, IOR
1710 and XOR. Reject expansion to inner-mode sized scalars when using
1711 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
1712 (expand_vector_unop): Try to perform operation in smaller vector
1713 modes with same inner size. Add handling of one's complement.
1714 When there is no vector negate operation, try a vector subtract
1715 operation. Use simplify_gen_subreg on constants.
1716 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1717 constants into smaller vectors with same inner mode, and to
1718 integer CONST_DOUBLEs.
1720 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1722 * c-parse.in (parsing_iso_function_signature): New variable.
1723 (extdef_1): New, copied from...
1724 (extdef): ... here. Reset parsing_iso_function_signature.
1725 (old_style_parm_decls): Reset parsing_iso_function_signature.
1726 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1727 Warn about ISO C style function definitions.
1728 (nested_function, notype_nested_function): Reset
1729 parsing_iso_function_signature.
1730 (parmlist_2): Set parsing_iso_function_signature.
1732 * doc/invoke.texi (-Wtraditional): Document new behavior.
1734 2002-07-02 Chris Demetriou <cgd@broadcom.com>
1736 * config.gcc (mips*el-*-*): Use tm_defines to set
1737 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1738 * config/mips/little.h: Remove.
1740 2002-07-02 Devang Patel <dpatel@apple.com>
1742 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
1743 object as parameter. Prevent something like 'NSObject' to be
1744 used as the type for a method argument.
1746 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
1748 * cpptrad.c: Update comment.
1750 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1752 * doc/cpp.texi: Update for traditional preprocessing changes.
1753 * goc/cppopts.texi: Similarly.
1755 2002-07-02 Ziemowit Laski <zlaski@apple.com>
1757 * c-parse.in (designator): Enable designated initializers if ObjC.
1758 (objcmessageexpr): Remove references to objc_receiver_context.
1759 * objc/objc-act.h (objc_receiver_context): Remove decl.
1760 * objc/objc-act.c (objc_receiver_context): Remove.
1761 (lookup_objc_ivar): Test objc_method_context instead of
1762 objc_receiver_context.
1764 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1766 * sh.c (print_operand, case 'N'): Allow zero vector.
1767 (arith_reg_or_0_operand): Likewise.
1768 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
1769 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
1770 IOR, XOR, PLUS and SET and take their respective constant
1771 ranges into account.
1772 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1773 * sh.md (subdi3, subdi3_media): Allow zero operand.
1774 (movv8qi_i+3): Only vector that is not split is the zero vector.
1775 Fix operand 3 to simplify_subreg.
1776 (movv2si_i): Split alternative 1.
1777 (mshfhi_l_di_rev+1): New splitter.
1779 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1781 PR preprocessor/7029
1782 * cppinit.c (cpp_handle_option): Suppress warnings with an
1783 implicit "-w" for "-M" and "-MM".
1784 * doc/cppopts.texi: Update.
1786 2002-07-01 Roger Sayle <roger@eyesopen.com>
1788 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1789 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
1792 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1794 * README.Portability: Fix typos.
1796 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
1799 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1800 of indirections for register inside sign-extended mem part.
1802 2002-07-01 Roger Sayle <roger@eyesopen.com>
1804 * tree.h: Modify builtin_function interface to take an extra
1805 argument ATTRS, which is a tree representing an attribute list.
1807 * c-decl.c (builtin_function): Accept additional parameter.
1808 * objc/objc-act.c (builtin_function): Likewise.
1809 * f/com.c (builtin_function): Likewise.
1810 * java/decl.c (builtin_function): Likewise.
1811 * ada/utils.c (builtin_function): Likewise.
1812 * cp/decl.c (builtin_function): Likewise.
1813 (builtin_function_1): Likewise.
1815 * c-common.c (c_common_nodes_and_builtins): Pass an additional
1816 NULL_TREE argument to builtin_function. (builtin_function_2):
1818 * cp/call.c (build_java_interface_fn_ref): Likewise.
1819 * objc/objc-act.c (synth_module_prologue): Likewise.
1820 * java/decl.c (java_init_decl_processing): Likewise.
1821 * f/com.c (ffe_com_init_0): Likewise.
1823 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1824 NULL_TREE argument to builtin_function.
1825 * config/arm/arm.c (def_builtin): Likewise.
1826 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1827 * config/i386/i386.c (def_builtin): Likewise.
1828 * config/ia64/ia64.c (def_builtin): Likewise.
1829 * config/rs6000/rs6000.c (def_builtin): Likewise.
1831 2002-07-01 Zack Weinberg <zack@codesourcery.com>
1833 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1834 * config/mips/t-isa3264: Likewise.
1835 * config/mmix/t-mmix: Likewise.
1837 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1839 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1841 2002-07-01 Roger Sayle <roger@eyesopen.com>
1844 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1845 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1848 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
1850 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1852 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
1854 * README.Portability (Function prototypes): Give an example of
1855 declaring and defining a function with no arguments.
1857 * README.Portability (Function prototypes): Document new
1858 variable-argument function macros.
1860 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
1862 * sh.c (langhooks.h): Include.
1863 (sh_init_builtins, sh_media_init_builtins): New functions.
1864 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1865 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1866 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1867 (builtin_description): New struct tag.
1868 (signature_args, bdesc): New arrays.
1869 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1870 (print_operand): Add 'N' modifier.
1871 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1872 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1873 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1874 (CONST_COSTS): Add special case for SHmedia AND.
1875 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1876 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1877 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1878 target_operand can also be const or unspec.
1879 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1880 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1881 (attribute type): Add new types.
1882 (anddi3): Add splitter.
1883 (movdi_const_16bit+1): Add code to handle vector constants and
1884 bitmasks efficiently.
1885 (shori_media): Have generator function made.
1886 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1887 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1888 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1889 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1890 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1891 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1892 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1893 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1894 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1895 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1896 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1897 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1898 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1899 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1900 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1901 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1902 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1903 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1904 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1907 (fpu_switch+1, fpu_switch+2): Remove constraint.
1909 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
1911 * tree.c (build_function_type_list): Update function comment.
1912 Rename first argument to return_type.
1914 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1916 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1917 tradcif.y and related files.
1919 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1921 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1923 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1925 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1927 2002-06-30 Devang Patel <dpatel@apple.com>
1929 * objc/objc-act.c (finish_file): Avoid finish_objc() if
1932 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
1933 Frank Ch. Eigler <fche@redhat.com>
1934 Matthew Green <mrg@redhat.com>
1935 Richard Henderson <rtl@redhat.com>
1936 Dave Hudson <dave.hudson@ubicom.com>
1937 Jeff Johnston <jjohnstn@redhat.com>
1938 Alan Lehotsky <apl@alum.mit.edu>
1939 Bernd Schmidt <bernds@redhat.com>
1940 Graham Stott <grahams@redhat.com>
1942 * doc/extend.texi: Add ip2k port to description of attribute
1944 * doc/install.texi (Specific): Add ip2k description.
1945 * doc/install-old.texi (Configurations): Add ip2k to possible
1947 * doc/md.texi: Document ip2k constraints.
1948 * config/ip2k/crt0.S: New file.
1949 * config/ip2k/ip2k-protos.h: New file.
1950 * config/ip2k/ip2k.c: New file.
1951 * config/ip2k/ip2k.h: New file.
1952 * config/ip2k/ip2k.md: New file.
1953 * config/ip2k/libgcc.S: New file.
1954 * config/ip2k/t-ip2k: New file.
1956 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
1958 * config/mmix/mmix.md ("return"): New pattern.
1959 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1960 (TARGET_USE_RETURN_INSN): New macros.
1961 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1962 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1963 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1964 (MMIX_POP_ARGUMENT): New macro.
1965 (mmix_target_asm_function_prologue): When no epilogue is executed,
1966 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
1967 (mmix_print_operand) <case '.'>: New case.
1968 (mmix_print_operand_punct_valid_p): Match '.'.
1969 (mmix_use_simple_return): New function.
1970 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1971 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1972 -msingle-exit, -mno-single-exit.
1973 (MMIX Options): Ditto.
1975 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
1977 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
1979 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1981 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1983 2002-06-30 Alan Modra <amodra@bigpond.net.au>
1985 * unroll.c (loop_iterations): Handle EQ loops.
1987 2002-06-29 David Edelsohn <edelsohn@gnu.org>
1989 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1990 constraint in define_expand, not splitter.
1993 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
1995 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1996 build_function_type_list instead of build_function_type.
1998 * config/ia64/ia64.c (ia64_init_builtins): Same.
2000 * config/alpha/alpha.c (alpha_init_builtins): Same.
2002 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
2004 * config/arm/arm.c (arm_init_builtins): Same.
2006 * tree.h: Add build_function_type_list prototype.
2008 * tree.c (build_function_type_list): New.
2010 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2012 * collect2.c (scan_prog_file): Fix typo in message.
2014 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
2016 * fold-cont.c: Remove unused CHARMASK.
2018 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
2020 PR preprocessor/7150
2021 * cppmain.c (scan_translation_unit_trad): Simplify.
2022 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
2024 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
2026 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
2027 Don't use CPP_PREDEFINES.
2028 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
2029 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
2030 * config/i386/djgpp.h, config/i386/i386-coff.h,
2031 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2032 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2033 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
2034 config/i386/uwin.h: Similarly.
2036 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2038 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
2039 flag_inline_trees to enable inlining.
2041 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
2043 * configure.in (gcc_gxx_include_dir): Change to match versioned
2044 C++ headers if --enable-version-specific-runtime-libs is used.
2045 * configure: Regenerate.
2047 2002-06-28 Jan Hubicka <jh@suse.cz>
2049 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
2051 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
2053 * combine.c (combine_simplify_rtx): Pass the mode of the
2054 shift count, not the shift operation when trying to simplify
2055 a shift on a SHIFT_COUNT_TRUNCATED target.
2057 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2059 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
2060 avoid the auto increment addressing modes.
2061 ("*subsi3"): Likewise.
2062 (split for add/sub on address): For 68HC12 push the value on
2063 the stack and do the operation with a pop.
2065 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2067 * cpplib.c (_cpp_handle_directive): Move #define-specific
2068 code to the #define handler...
2069 (do_define): ...here.
2070 (lex_macro_node): No longer a need to check for comments here.
2072 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2074 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
2075 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2077 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
2078 do not reorder basic blocks at the end when optimizing for size.
2080 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2082 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
2083 (m68hc11_make_autoinc_notes): New function.
2084 (m68hc11_split_move): Be very cautious when spliting a move with
2085 auto increment/decrement modes because this may result in incompatible
2086 directions; add REG_INC notes to the resulting insn for CSE reg.
2088 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
2090 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
2091 can be a valid address.
2093 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
2095 * config/rs6000/rs6000.c: Remove unusued variables from last
2098 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2101 * config/rs6000/rs6000.c (rs6000_override_options): Move
2102 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2104 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2106 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
2107 lvx/stv/dst builtins...
2108 (altivec_expand_ld_builtin): ...to here.
2109 (altivec_expand_st_builtin): ...here.
2110 (altivec_expand_dst_builtin): ...and here (respectively).
2112 2002-06-28 Bob Wilson <bob.wilson@acm.org>
2114 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
2116 2001-06-08 Bernd Schmidt <bernds@redhat.com>
2118 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
2120 * recog.c (general_operand, register_operand): Disallow them.
2122 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2124 PR preprocessor/7138
2125 * cpplib.c (_cpp_handle_directive): Do traditional
2126 preparation after setting state.angled_headers.
2127 * cpptrad.c (scan_out_logical_line): Fix potential
2130 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2132 * config/rs6000/rs6000.c (rs6000_override_options): Move
2133 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2135 2002-06-27 Bob Wilson <bob.wilson@acm.org>
2137 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
2138 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
2139 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
2141 2002-06-27 Roger Sayle <roger@eyesopen.com>
2143 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
2144 * config/stormy16/stormy16.h: Likewise.
2146 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
2149 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2151 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
2152 Hitachi entry. Make punctuation more consistent.
2154 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
2156 * doc/install.texi: Change ` bit' to `-bit'.
2157 * doc/md.texi: Change `-bits' to `-bit'.
2158 * doc/tm.texi: Change `-bits' to ` bits'.
2160 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
2162 * gcse.c (hoist_code): Rewrite to only get list of dominated
2163 blocks once per BB. Also fix reversed test (by removing need for
2166 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2168 * cpphash.h (_cpp_set_trad_context): Remove.
2169 * cpplib.c (prepare_directive_trad): Do nothing for #define.
2170 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
2171 * cpptrad.c: Update comments.
2172 (_cpp_read_logical_line_trad): Let scan_logical_line handle
2173 updating the current context.
2174 (scan_logical_line): Update the current context.
2175 (_cpp_create_trad_definition): Similarly.
2176 (_cpp_set_trad_context): Remove.
2178 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2180 PR preprocessor/7070
2181 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
2183 2002-06-26 Bob Wilson <bob.wilson@acm.org>
2185 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
2186 config/xtensa/xtensa.c (xtensa_return_addr): New function.
2187 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
2188 config/xtensa/xtensa.md (fix_return_addr): New pattern.
2190 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2192 * mips.c (coprocessor_operand, coprocessor2_operand,
2193 symbolic_operand): Move prototypes from here...
2194 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
2195 symbolic_operand): ...to here.
2197 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2199 * config/sh/crt1.asm: remove _stack label definition
2202 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2204 * varasm.c: Include real.h before output.h.
2206 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
2208 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
2209 check for TARGET_ALTIVEC.
2211 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
2213 * config.gcc (vax-*-vms*): Make obselete.
2215 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2217 * gcc.c (warn_std): Delete.
2219 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
2221 * doc/extend.texi: Fix formatting of last checkin.
2223 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2225 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
2226 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
2228 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
2230 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2231 discrepancies from motorola's documentation.
2233 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
2235 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
2236 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
2238 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
2239 produce a 32 bit result before normalization, then normalize with a
2240 left shift. Compute approximative error of 2nd reciprocal
2241 approximation in 2's complement. Fix mask generation from upper
2242 longword of second divide stage result.
2243 For large divisor, fix shift count used to truncate first stage
2244 divide result; make decision if to adjust upwards based on comparison
2245 of higher parts of normalized values.
2246 (udivdi): Likewise. Undo normalization of result for large divisor
2249 2002-06-25 David S. Miller <davem@redhat.com>
2251 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
2253 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
2255 * cpplib.c (do_include_common): Revert to correct line number
2257 * cpptrad.c (scan_out_logical_line): Treat null directive as
2258 white space. Invlidate MI optimization for non-whitespace
2259 text outside a directive.
2261 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2263 * Makefile.in (SHELL): Set to @SHELL@.
2264 * fixinc/Makefile.in (SHELL): Likewise.
2266 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
2267 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
2270 2002-06-24 Jeff Law <law@redhat.com>
2272 * flow.c (propagate_one_insn): When removing an insn
2273 with a REG_LIBCALL note but not the entire libcall sequence,
2274 delete the associated REG_RETVAL note.
2276 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
2278 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
2279 (udivsi3): Likewise. Rewrite SH1 implementation.
2280 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
2281 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
2282 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
2283 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
2284 (_moddi3): Likewise.
2286 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
2288 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
2289 arguments into account for stack_regs.
2291 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
2293 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
2296 2002-06-24 Art Haas <ahaas@neosoft.com>
2298 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
2299 * doc/tm.texi (Frame Layout): Likewise.
2301 2002-06-20 Steve Ellcey <sje@cup.hp.com>
2303 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
2304 Set float_format to i128.
2306 2002-06-24 David S. Miller <davem@redhat.com>
2308 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
2309 32-bit ABI libfuncs to NULL.
2311 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
2312 strings instead of quoted strings for code blocks.
2314 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
2315 optabs if op1 is const0_rtx.
2317 * Makefile.in (GTFILES): Add basic-block.h
2318 * basic-block.h (label_value_list, tail_recursion_label_list):
2321 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
2323 * cpptrad.c (scan_out_logical_line): Check recursing only when
2324 we know we have a macro invocation in the function-like case.
2325 Only call _cpp_handle_directive if we know we have a good
2326 directive, or we want to reject a bad directive.
2328 2002-06-24 Alan Modra <amodra@bigpond.net.au>
2330 * doloop.c (doloop_valid_p): Correct comment.
2331 (doloop_modify_runtime <abs_inc != 1>): Simplify.
2332 (doloop_modify_runtime <do-while>): Don't emit code when NE.
2334 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
2336 * config.gcc: Add support for ip2k.
2338 2002-06-23 Jan Hubicka <jh@suse.cz>
2339 Jeff Law <law@redhat.com>
2341 * function.h (struct emit_status): Clarify potential contents
2342 of regno_reg_rtx array.
2343 * integrate.c (copy_rtx_and_substitute): Update comments. Make
2344 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
2346 * reg-stack.c (convert_regs_exit): Push the registers to stack in
2349 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2352 * function.c (assign_stack_temp_for_type): Do not return
2353 the same MEM rtx for multiple uses of a stack slot.
2355 2002-06-22 David S. Miller <davem@redhat.com>
2357 PR target/6841 target/6770 target/6719
2358 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
2359 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
2360 GENERAL_OR_EXTRA_FP_REGS.
2362 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
2364 * cpptrad.c (struct fun_macro): Add line number.
2365 (scan_out_logical_line): Set it, and use it to report unterminated
2368 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2370 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
2371 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
2372 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
2373 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
2374 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
2375 REGEXP_ONEOF, check_name): Const-ify.
2377 2002-06-21 Matt Thomas <matt@3am-software.com>
2379 * config/vax/vax.c (vax_output_function_prologue): Use
2380 REGISTER_PREFIX. Fix some indentation.
2381 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
2382 (VAX_ISTREAM_SYNC): Define.
2383 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
2384 i-stream sync to the end.
2385 (REGISTER_PREFIX): Define as "".
2386 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
2388 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2390 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
2393 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2395 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
2396 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
2398 2002-06-21 Matt Thomas <matt@3am-software.com>
2400 * config/vax/netbsd.h: Adjust a comment.
2401 (TARGET_DEFAULT): Redefine as 0.
2403 2002-06-21 Richard Henderson <rth@redhat.com>
2405 * bb-reorder.c (make_reorder_chain_1): Search harder for the
2406 vax casesi fallthru edge.
2407 * cfglayout.c (cleanup_unconditional_jumps): Use
2408 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
2409 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
2410 block after ADDR_VEC.
2412 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2414 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2416 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
2418 * cpperror.c (cpp_error): For traditional CPP, default to
2419 diagnostics on pfile->line.
2420 * cpplib.c (prepare_directive_trad): Set line number for
2421 diagnostics for #define too.
2422 * cpptrad.c (skip_whitespace): Skip comments properly.
2423 (_cpp_expansions_different_trad): Initialize quote2.
2425 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
2427 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
2428 * config/mmix/mmix.h: Ditto.
2429 * config/mmix/mmix-protos.h: Ditto.
2430 * config/mmix/mmix.c: Ditto. Fix typo in comment.
2431 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
2432 comment. Comment extra CC modes.
2434 2002-06-20 Jan Hubicka <jh@suse.cz>
2436 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
2437 (scope_to_insns_finalize): Do not call set_block_levels; handle
2439 (choose_inner_scope): New.
2440 * rtl.h (choose_inner_scope): Declare.
2442 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
2444 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
2446 * pa.c (pa_asm_output_mi_thunk): Likewise.
2447 (n_deferred_plabels): Change type to size_t.
2448 (output_deferred_plabels, output_call): Use size_t instead of int.
2450 2002-06-20 Richard Henderson <rth@redhat.com>
2453 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
2454 pattern and adjust constraints for coldfire.
2456 2002-06-20 Richard Henderson <rth@redhat.com>
2458 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
2460 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2462 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
2464 2002-06-20 Chris Demetriou <cgd@broadcom.com>
2466 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
2468 2002-06-20 Stan Shebs <shebs@apple.com>
2470 * dominance.c: Include errors.h instead of error.h.
2472 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
2474 * cppexp.c (cpp_interpret_integer): Don't force traditional
2475 numbers to be unsigned.
2476 * cpplib.c (prepare_directive_trad): Set line number for
2478 * cpptrad.c (scan_out_logical_line): Continue scanning out
2480 * gcc.c (trad_capable_cpp): Use cc1 always.
2482 2002-06-20 Jeffrey Law <law@redhat.com>
2484 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
2485 elimination in leaf functions by default yet.
2487 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
2489 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
2491 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2493 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
2495 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2496 Fixes PR other/6836.
2498 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
2499 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2501 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
2503 * basic-block.h: Do not include et-forest.h
2504 (dominance_info): Declare as struct dominance-info.
2505 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
2507 * dominance.c (struct dominance_info): Define.
2508 (BB_NODE, SET_BB_NODE): New macros.
2509 (bb_hash_func, bb_eq_func): Kill.
2510 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
2511 nearest_common_dominator, dominated_by_p, recount_dominator,
2512 add_to_dominance_info, delete_from_dominance_info): update for new
2514 (get_dominated_by, redirect_immediate_dominators): Rewrite using
2516 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
2517 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
2520 * et-forest.h: Update copyright; revamp all function to operate on
2522 (et_forest_value): Kill.
2523 (et_forest_enumerate_sons, et_forest_node_value): New.
2524 * et-forest.c: Update copyright.
2525 * et-forest.h: Update copyright; revamp all function to operate on
2527 (et_forest_value): Kill.
2528 (et_forest_enumerate_sons, et_forest_node_value): New.
2530 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2532 * basic-block.h: Inlude et-forest.h
2533 (basic_block_def): Kill dominator.
2534 (dominance_info): New type.
2535 (loops): Use dominace_info.
2536 (dominace handling functions): Take dominace_info as argument
2538 (create_preheader): Likewise.
2539 * cfg.c (entry_exit_blocks): Kill dominator.
2540 (dump_flow_info): Do not dump dominators.
2541 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
2543 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
2544 (flow_loops_pre_header_scan, make_forwarder_block,
2545 canonicale_loop_headers, flow_loops_find): Likewise.
2546 * dominance.c: Include error.h
2547 (idoms_to_doms): Kill.
2548 (bb_hash_func, bb_eq_func): New static functions.
2549 (debug_dominace_info): New global function.
2550 (calculate_dominance_info): Use new et forest structure.
2551 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
2552 get_dominated_by, redirect_immediate_dominators,
2553 nearest_common_dominator, dominated_by_p, verify_dominators,
2554 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
2555 delete_from_dominance_info): New global functions.
2556 * gcse.c (domnators): CHange to dominance_info.
2557 (alloc_hoist_mem): Do not alloc dominators
2558 (free_code_hoist_mem): Use free_dominance_info.
2559 (compute_code_hoist_data): Use dominance_info.
2560 (hoist_code): Likewise.
2561 * ifcvt.c (post_dominators): Likewise.
2562 (find_if_case_2, if_convert): Likewise.
2563 * predict.c (process_note_predictions, process_note_prediction,
2564 estimate-probability): Likewise.
2565 * sched-rgn.c (find_rgns, init_regions): Likewise.
2566 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
2567 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
2568 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
2569 find_evaluations, convert_to_ssa): Likewise.
2570 * ssa.h (compute_dominance_frontiers): Likewise.
2572 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2574 * Makefile.in (et-forest.c): Add.
2575 * et-forest.c: New file.
2576 * at-forest.h: New file.
2578 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2580 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
2581 array size calculation.
2582 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
2585 * diagnostic.c (diagnostic_kind_text): Const-ify.
2586 * gengtype.c (lang_names): Likewise.
2588 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
2590 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2592 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2594 * config/sol2.h: New file.
2595 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2596 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2597 (sparc-*-chorusos*): Likewise.
2598 (sparc-*-elf*): Likewise.
2599 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2600 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2601 (sparc-hal-solaris2*): Likewise.
2602 (sparc-*-solaris2*): Likewise.
2603 (sparclite-*-elf*): Likewise.
2604 (sparc86x-*-elf*): Likewise.
2605 (sparc64-*-elf*): Likewise.
2607 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2609 (ASM_SPEC): Override config/sol2.h version for now.
2610 Removed obsolete GAS_REJECTS_MINUS_S variant.
2611 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2612 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2613 (TARGET_OS_CPP_BUILTINS): Likewise.
2615 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2616 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2618 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2619 (ASM_CPU_SPEC): Define.
2620 (SUBTARGET_EXTRA_SPECS): Define.
2622 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2623 in config/sparc/sol2.h.
2624 (ASM_SPEC): Moved to config/sol2.h.
2625 (CPP_CPU_SPEC): Simplified.
2626 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2628 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2629 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2630 STARTFILE_ARCH64_SPEC.
2631 (STARTFILE_SPEC): Moved to config/sol2.h
2632 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2633 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2634 (LINK_ARCH64_SPEC): Simplified.
2635 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2636 (LINK_SPEC): Moved to config/sol2.h
2638 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2640 Use BITS_PER_WORD for size.
2641 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2642 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2643 (CPP_PREDEFINES): Removed OS-specific part handled by
2644 TARGET_OS_CPP_BUILTINS.
2645 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2646 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2647 (ASM_SPEC): Moved to config/sol2.h.
2648 (PREFERRED_DEBUGGING_TYPE): Likewise.
2649 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2650 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2651 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2652 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
2654 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2655 * config/i386/sol2gas.h: Removed.
2657 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2659 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2661 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
2663 * gcc.c-torture/execute/simd-1.c: New.
2665 * gcc.dg/simd-1.c: New.
2667 * doc/extend.texi (Vector Extensions): Document that we can
2668 specify simd types not specifically supported by the hardware.
2669 Document that simd types can be used as function arguments.
2670 Document that signness does make a difference in SIMD types.
2671 Misc cleanups and revisions to the vector extensions section.
2673 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2676 * expr.c (vector_mode_valid_p): New.
2678 * expr.h: Add vector_mode_valid_p.
2680 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2682 * c-common.c (type_for_mode): Always build vector nodes regardless
2683 of VECTOR_MODE_SUPPORTED_P.
2684 (handle_mode_attribute): Error if we can't emulate a nonexisting
2686 (handle_vector_size_attribute): Same.
2688 * optabs.c (expand_binop): Open-code vector operations.
2689 (expand_unop): Open-code vector unops.
2690 (expand_vector_binop): New.
2691 (expand_vector_unop): New.
2693 * c-typeck.c (build_binary_op): Allow vectors in binops.
2694 Allow vectors in conditional operatiors.
2695 (build_unary_op): Allow vectors in unary minus.
2697 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2700 2002-05-20 Richard Henderson <rth@redhat.com>
2702 * c-common.c (c_common_get_alias_set): Correctly handle characters.
2703 Rearrange order of expressions; don't handle vectors here.
2704 * alias.c (get_alias_set): Let vectors match their components.
2706 2002-06-19 Chris Demetriou <cgd@broadcom.com>
2708 * config/mips/mips.c (mips_emit_prefetch): Use hints which
2709 match desired locality.
2711 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2713 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2714 (h8300_insert_attributes): New.
2716 2002-06-19 Akim Demaille <akim@epita.fr>
2718 * c-parse.in (initelt: identifier ':' initval): Add an empty
2719 action to fix a type clash.
2720 (aliasdecl, classdef): Add the missing closing `;'.
2722 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2723 $$ = $1 type clashes.
2725 2002-06-19 Eric Christopher <echristo@redhat.com>
2727 * config/mips/mips.c (symbol_operand): New function.
2728 (mips_emit_prefetch): Ditto.
2729 * config/mips/mips-protos.h: Define.
2730 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2731 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2732 (LEGITIMIZE_ADDRESS): Ditto.
2733 * config/mips/mips.md (prefetch, prefetch_si_address,
2734 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2736 2002-06-19 Eric Christopher <echristo@redhat.com>
2738 * config/fp-bit.h: Add unordered defines for gofast.
2740 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
2742 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2743 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2744 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2745 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2746 checking and without it.
2747 (decl_name, decl_mode_check_failed, regexp_name,
2748 regexp_mode_check_failed): New functions.
2749 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2750 gen_presence_set, gen_absence_set, gen_automaton,
2751 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2752 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2753 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2754 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
2755 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2756 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
2757 (decl_hash, decl_eq_p): Use the macros.
2758 (find_decl): Ditto. Set up mode of work_decl.
2759 (process_excls, process_presence_absence, process_decls,
2760 check_automaton_usage, process_regexp, process_regexp_decls,
2761 check_usage, loop_in_regexp, check_loops_in_regexps,
2762 process_regexp_cycles, add_advance_cycle_insn_decl,
2763 initiate_states, initiate_excl_sets,
2764 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2765 transform_2): Use the macros.
2766 (transform_3): Ditto. Check mode before making transformations of
2768 (regexp_transform_func, transform_insn_regexps,
2769 process_unit_to_form_the_same_automaton_unit_lists,
2770 form_the_same_automaton_unit_lists_from_regexp,
2771 form_the_same_automaton_unit_lists,
2772 process_seq_for_forming_states, process_alts_for_forming_states,
2773 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2774 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2775 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2776 units_to_automata_heuristic_distr, create_ainsns,
2777 units_to_automata_distr, create_automata): Use the macros.
2778 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
2779 (longest_path_length, min_issue_delay_pass_states,
2780 output_dead_lock_vect, output_tables, output_insn_code_cases,
2781 output_internal_insn_latency_func, output_print_reservation_func,
2782 output_description, output_automaton_units, generate): Use the
2784 (make_insn_alts_attr): Ditto. Check case when there are not
2785 alternatives in the reservation.
2786 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2787 make_bypass_attr, form_important_insn_automata_lists,
2788 expand_automata): Use the macros.
2790 2002-06-20 Tim Josling <tej@melbpc.org.au>
2792 * Makefile.in: Clean up code to check for misspecified languages
2793 in enable-languages.
2795 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
2797 * cpptrad.c (_cpp_replacement_text_len): initialize len.
2799 2002-06-19 Jason Merrill <jason@redhat.com>
2801 * Makefile.in (unstrap, restrap): New targets.
2802 (bootstrap): Mention restrap.
2804 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
2806 * except.c (ehl_free): Remove.
2808 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2809 builtin_define and builtin_define_std.
2811 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2813 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2814 (sCOND): Restrict operand class so that gcc knows how to reload them.
2815 (bitfield_set): Merge two unnamed insn's using alternatives.
2816 (call_value): Remove constraint on unused uperand.
2817 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2818 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
2820 * longlong.h (count_trailing_zeros): Escape newline and beautify.
2822 2002-06-19 Mark Mitchell <mark@codesourcery.com>
2824 * Makefile.in (QMTEST_DIR): Simplify definition.
2826 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
2828 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2831 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
2833 * cpphash.h (struct cpp_reader): Make date and time strings.
2834 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2835 _cpp_replacement_text_len): New.
2836 * cppinit.c (cpp_create_reader): Update.
2837 (init_builtins): Register appropriate builtins for -traditional-cpp.
2838 * cppmacro.c (new_number_token): Remove.
2839 (_cpp_builtin_macro_text): New.
2840 (builtin_macro): Use it.
2841 (cpp_macro_definition): Update to handle traditional macros.
2842 * cppmain.c (cb_line_change): Don't do column positioning for
2844 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
2846 (skip_whitespace): Fix.
2847 (maybe_start_funlike): Don't set state.parsing_args.
2848 (scan_out_logical_line): Remove duplicate error. Use lex_state
2849 rather than state.parsing_args.
2850 (push_replacement_text): Handle builtins.
2851 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2853 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2854 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2856 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2857 attribute __always_inline__.
2859 2002-06-18 Bob Wilson <bob.wilson@acm.org>
2861 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2862 when generating the call to _mcount.
2863 (NO_PROFILE_COUNTERS): Define.
2865 2002-06-18 Richard Henderson <rth@redhat.com>
2867 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2870 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
2872 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2873 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2874 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2875 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
2877 * sh-protos.h (sh_pr_interrupt): Declare.
2878 * sh.c (sh_pr_interrupt): New function.
2879 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2880 (sh_hard_regno_rename_ok): Likewise.
2881 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2883 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
2885 * rtl.def (DEFINE_AUTOMATON): Add description of new options
2886 `time' and `v'. Fix incorrect description of option `w'.
2888 * doc/md.texi: Ditto.
2890 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2891 (gen_automata_option): Process the new options.
2892 (transform_2, transform_3): Initialize some variables.
2893 (initiate_automaton_gen): Use the new macros.
2895 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
2897 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2898 (mips_set_return_address, mips_restore_gp): Declare.
2899 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2900 (current_frame_info): Remove.
2901 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2902 * config/mips/mips.c: Remove uses of current_frame_info.
2903 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
2904 (struct machine_function): Add 'frame' and 'insns_len'.
2905 (current_frame_info, zero_frame_info): Remove.
2906 (mips_restore_gp, mips_set_return_address): New.
2907 (mips_initial_elimination_offset): New.
2908 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2909 (eh_return define_split): Use mips_set_return_address.
2911 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
2913 * cpplib.c (dtable): Update.
2914 (end_directive): Decrement expansion prevention count.
2915 Clear state.in_expression.
2916 (prepare_directive_trad): Set state.in_expression.
2917 Increment expansion prevention count.
2918 * cpptrad.c (enum ls): New.
2919 (_cpp_overlay_buffer): Set overlaid_buffer.
2920 (_cpp_remove_overlay): Use overlaid_buffer.
2921 (_cpp_read_logcial_line_trad): Update buffer when it might
2923 (scan_out_logical_line): Handle state transitions for assertions
2924 and defined() in #if, and for funlike invocations including the
2925 directive case. Handle '<' and '>' as a quote mechanism in
2926 #include. Warn about unterminated macro invocations.
2927 * cpphash.h (struct lexer_state): New member in_expression.
2928 (struct cpp_reader): New member overlaid buffer.
2930 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2932 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2935 2002-06-18 Alan Modra <amodra@bigpond.net.au>
2937 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2939 * doloop.c (doloop_optimize): Extract pattern from insn.
2941 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
2943 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2945 2002-06-17 Jeff Law <law@redhat.com>
2947 * libgcc2.c: Do not include symcat.h or machmode.h.
2949 2002-06-17 Richard Henderson <rth@redhat.com>
2952 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2954 2002-06-17 Tom Tromey <tromey@redhat.com>
2956 * dwarfout.c: Include function.h.
2958 2002-06-17 Andreas Schwab <schwab@suse.de>
2960 * print-rtl.c (print_rtx): Print space before vector, not after.
2961 (debug_rtx): Clear sawclose before printing.
2962 (debug_rtx_list): Print newline after each list element.
2963 (debug_rtx_range): Likewise.
2965 2002-06-17 Richard Henderson <rth@redhat.com>
2967 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2968 (current_function_funcdef_no): Similarly.
2969 * function.c (funcdef_no): Similarly.
2970 (prepare_function_start): Set current_function_funcdef_no.
2971 (expand_function_start): Don't set current_function_profile_label_no.
2972 * dwarf2out.h (current_funcdef_number): Remove.
2973 * dwarf2out.c (current_funcdef_number): Remove. Replace with
2974 current_function_funcdef_no throughout.
2975 * dwarfout.c, vmsdbgout.c: Similarly.
2976 * except.c (sjlj_funcdef_number): Remove.
2977 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2978 (output_function_exception_table): Likewise.
2979 * final.c (profile_function): Use current_function_funcdef_no
2980 instead of current_function_profile_label_no.
2982 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
2984 * sched-ebb.c (init_ready_list): Check INSN_P first.
2986 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
2988 * sh.md (divsi3): Update way how to find insns in a sequence.
2990 * reload1.c (merge_assigned_reloads): Don't change reloads
2991 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2992 to RELOAD_OTHER when there are conflicting input reloads.
2994 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
2996 * function.c (epilogue_done): Correctly build a sequence of insns for
2999 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
3001 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
3004 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
3006 2002-06-16 Richard Henderson <rth@redhat.com>
3008 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
3009 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
3011 2002-06-16 Richard Henderson <rth@redhat.com>
3014 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
3016 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
3018 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
3019 * config/i386/i386-aout.h, config/i386/i386elf.h,
3020 config/i386/sysv4.h: Remove CPP_PREDEFINES.
3021 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
3022 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
3023 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
3024 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3025 CPP_PREDEFINES and part of CPP_SPEC.
3026 * config/i386/sysv4-cpp.h: New.
3028 2002-06-16 Richard Henderson <rth@redhat.com>
3031 * dwarf2out.c (modified_type_die): Don't assign the qualified die
3032 to the unqualified type.
3034 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
3036 * i386-protos.h (x86_field_alignment): Declare.
3037 * i386.c (x86_field_alignment): Define.
3038 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
3039 (BIGGEST_FIELD_ALIGNMENT): Kill.
3041 2002-06-16 Richard Henderson <rth@redhat.com>
3043 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
3045 2002-06-16 Richard Henderson <rth@redhat.com>
3047 * c-common.c (flag_ms_extensions): Move from c++ front end.
3048 * c-common.h (flag_ms_extensions): Declare.
3049 * c-decl.c (c_decode_option): Add -fms-extensions.
3050 (grokfield): Don't accept anonymous structures in ISO C mode;
3051 accept only unnamed anonymous structures in GNU C mode; accept
3052 Plan 9 extensions in MS mode.
3053 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
3054 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
3055 (extension): Clear flag_iso.
3056 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
3058 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
3061 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
3062 early if current_function_epilogue_delay_list is non-empty.
3063 * config/cris/cris.md ("return"): Add sanity check asserting that
3064 current_function_epilogue_delay_list is empty.
3066 2002-06-16 Jeff Law <law@redhat.com>
3068 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
3069 sharing of hard registers.
3071 * toplev.c (rest_of_compilation): Remove redundant conditional.
3073 * toplev.c (rest_of_compilation): Perform a simpler, less costly
3074 cleanup of the CFG when not optimizing.
3076 2002-06-16 Alan Modra <amodra@bigpond.net.au>
3078 * gcc.c (main): Correct startfile_prefix_spec check.
3080 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3082 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
3083 include both darwin.o and rs6000-c.o.
3085 2002-06-15 Roger Sayle <roger@eyesopen.com>
3087 * expr.c (compare_from_rtx): Call simplify_relational_operation
3088 on all comparisons, not just those between integer constants,
3089 with the correct (possibly unsigned) comparison code.
3090 (do_compare_rtx_and_jump): Likewise.
3092 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3094 * Makefile.in (tm_defines): New configuration variable.
3095 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
3096 Pass tm_defines in TM_DEFINES.
3097 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
3098 * config.gcc (tm_defines): New configuration variable.
3099 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
3100 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
3101 * configure.in: Substitute tm_defines.
3102 * configure: Rebuilt.
3103 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
3104 * doc/install.texi: Update.
3105 * pa/pa-700.h: Delete file.
3106 * pa/pa-7100.h: Delete file.
3108 2002-06-15 Roger Sayle <roger@eyesopen.com>
3110 * fold-const.c (comparison_to_compcode): New function to convert
3111 an comparison TREE CODE into a bit-based representation.
3112 (compcode_to_comparison): New function to convert from this bit
3113 based representation back to a comparison TREE CODE.
3114 (fold_truthop): Simplify (x<y) && (x==y) and related composite
3117 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
3119 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
3121 * stor-layout.c (compute_record_mode): Remove check for
3122 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
3123 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
3124 MEMBER_TYPE_FORCES_BLK.
3126 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
3128 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
3130 2002-06-14 Jeff Sturm <jsturm@one-point.com>
3132 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
3134 2002-06-14 Steve Ellcey <sje@cup.hp.com>
3136 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
3137 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
3138 * configure, config.in: Regenerate.
3140 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3142 * loop.c (check_final_value): Use v->always_executed
3143 instead of v->always_computable.
3144 * unroll.c (final_giv_value): Don't calculate the final
3145 value as a function of the biv if the giv is not computed
3146 for every loop iteration.
3148 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3150 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
3152 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3155 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
3156 the truncation down when the target type is signed.
3157 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
3158 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
3159 the conversion if the target type is a smaller type.
3161 2002-06-14 Richard Henderson <rth@redhat.com>
3163 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
3164 earlier. Re-factor comparisons vs extrema.
3166 2002-06-14 Richard Henderson <rth@redhat.com>
3168 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
3170 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3172 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
3173 * sched-deps.c (add_dependence): Likewise.
3174 (group_leader): Likewise.
3175 * sched-rgn.c (init_ready_list): Likewise.
3176 * doc/rtl.texi: Adjust accordingly.
3178 2002-06-13 Jeffrey Law <law@redhat.com>
3180 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
3181 null pointer checks were eliminated. Update prototype.
3182 (delete_null_pointer_checks): Similarly.
3183 * rtl.h (delete_null_pointer_checks): Update prototype.
3184 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
3185 delete_null_pointer_checks deletes one or more null
3186 pointer checks. Do not run cleanup_cfg before gcse, the
3187 CFG is accurate and optimized at that point..
3189 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
3192 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3194 * Makefile.in (libgcc.mk): Depend on specs.
3196 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
3198 * sh.md (mulsi3): Update way how to find insns in a sequence.
3200 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3202 * sh.h: Define HARD_REGNO_RENAME_OK
3203 * sh.c: sh_hard_regno_rename_ok: New. If current function has
3204 interrupt_handler attribute, only registers saved on stack are OK.
3205 * sh-protos.h: Declare sh_hard_regno_rename_ok.
3207 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
3209 * config/sh/sh.md (jump): Emit jump insn.
3210 (call_pcrel): Get pattern of the result of gen_call_site.
3211 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
3213 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
3215 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
3216 * cpptrad.c: Update comments.
3217 (skip_whitespace, copy_comment): Take a new parameter.
3218 (skip_escaped_newlines): Don't duplicate escaped newline test.
3219 (copy_comment): Different location for CUR, decide here how
3220 to copy / replace the comment.
3221 (skip_whitespace): Copy whitespace.
3222 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
3223 (scan_out_logical_line): Let copy comment handle keeping or
3225 (scan_parameters, _cpp_create_trad_definition): Update.
3227 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
3229 * reload.c (get_secondary_mem,find_reloads_address,
3230 find_reloads_address_1): Pass reference to MEM to find_reloads_address
3231 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
3233 2002-06-13 Jessica Han <jessica@cup.hp.com>
3235 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3236 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3237 * doc/tm.texi: Document them.
3238 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3239 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3240 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
3241 (ASM_OUTPUT_FDESC): Likewise.
3243 2002-06-13 Eric Christopher <echristo@redhat.com>
3245 * diagnostic.c (output_format): Fix thinko.
3247 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
3249 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
3250 (DWARF2_UNWIND_INFO): Define to 0.
3252 * config/sh/sh.c (calc_live_regs): Don't use initial_value
3253 optimization for PR_MEDIA_REG.
3255 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3257 * cpphash.h (_cpp_lex_identifier_trad): Remove.
3258 * cpplib.c (end_directive): Don't skip, always remove overlay
3260 (prepare_directive_trad): Handle NULL pfile->directive.
3261 (_cpp_handle_directive): Always call prepare_directive_trad
3263 * cppmain.c (check_multiline_token): Rename account_for_newlines,
3265 (scan_translation_unit_trad): Use it.
3266 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
3267 output, get escaped newline in comment close correct.
3268 (check_output_buffer, skip_whitespace): Update.
3269 (_cpp_lex_identifier_trad): Remove.
3270 (scan_out_logical_line): Handle -C and comments in directives
3273 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3275 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
3276 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3277 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
3278 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
3279 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
3280 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
3281 (SELECT_SH5_COMPACT_NOFPU): Likewise.
3282 (TARGET_SWITCHES): Use them.
3283 (TARGET_CPU_DEFAULT): Define if not already defined.
3284 (TARGET_DEFAULT): Use it.
3285 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
3286 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
3287 * config/sh/t-monolib: New file.
3289 2002-06-13 Roger Sayle <roger@eyesopen.com>
3291 * toplev.c (rest_of_compilation): Simplify (and correct) the
3292 logic of the first delete-null-pointer-checks pass.
3294 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3296 * i386.c (ix86_expand_movstr): Fix pasto.
3298 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3300 * reload.c (find_valid_class): Fix thinko in my previous patch.
3302 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3304 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
3305 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
3306 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
3307 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
3309 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3311 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3314 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3316 * diagnostic.c (output_format): Recognize "%H" as a format
3317 specifier for a location_t.
3318 (text_specifies_location): New function.
3319 (diagnostic_set_info): Use it.
3321 2002-06-13 Jeffrey Law <law@redhat.com>
3323 * emit-rtl.c (static_regno_reg_rtx): Define.
3324 (init_emit_once): Initialize static_regno_reg_rtx.
3325 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
3326 of building new hard reg objects once per function.
3327 (gen_rtx_REG): Try to share hard regs.
3328 * regclass.c (init_fake_stack_mems): New function broken out from
3330 * rtl.h (init_fake_stack_mems): Declare.
3331 * toplev.c (lang_independent_init): Call init_regs before
3332 init_emit_once. Call init_fake_stack_mems after init_emit_once.
3334 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
3336 * alias.c (argument_registers): Remove.
3337 (init_alias_once): Initialize static_reg_base_value here. Remove
3338 initialization of argument_registers.
3339 (init_alias_once_per_function): Remove.
3340 (init_alias_analysis): Copy all the entries from static_reg_base_value
3341 into new_reg_base_value all at once.
3342 * rtl.h (init_alias_once_per_function): Remove declaration.
3343 * function.c (prepare_function_start): Do not call
3344 init_alias_once_per_function.
3346 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
3347 starting a sequence and emitting an INSN.
3349 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
3351 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
3353 2002-06-13 David S. Miller <davem@redhat.com>
3355 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
3357 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3359 * cpplib.c (end_directive): Handle line skipping. Only remove
3360 the rest of the line if the directive was valid.
3361 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
3362 expanding a traditional macro.
3363 * cpptrad.c (recursive_macro): New.
3364 (read_logical_line_trad): Handle skipping.
3365 (scan_out_logical_line): Continue after a successful directive.
3366 Don't expand macros whilst skipping, or if recursing.
3367 (_cpp_create_trad_definition): scan_out_logical_line now sets
3368 the output current position.
3370 2002-06-12 Eric Christopher <echristo@redhat.com>
3372 From Chris Demetriou <cgd@broadcom.com>
3373 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
3375 (ISA_HAS_MADD_MSUB): Ditto.
3376 (ISA_HAS_NMADD_NMSUB): Ditto.
3378 2002-06-12 Eric Christopher <echristo@redhat.com>
3380 * config.gcc: Consolidate little endian handling and
3381 little/big endian targets.
3382 * config/mips/elfl.h: Remove file.
3383 * config/mips/elfl64.h: Ditto.
3384 * config/mips/ecoffl.h: Ditto.
3385 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
3387 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3389 * gengtype.h (xvasprintf): New prototype.
3390 (xasprintf): New prototype.
3392 (get_output_file): Return an outf_p.
3393 (header_file): Is now an outf_p.
3394 (base_files): Now are outf_p.
3396 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
3397 rather than stdio operations. Use xasprintf in a few places,
3401 (struct filemap): Delete.
3403 (output_files): New.
3405 (create_file): Create an outf_p. Add parameter to indicate output
3406 file name, change all callers.
3407 (open_base_files): Create gtype-desc.c here.
3408 (get_output_file_with_visibility): Rewrite.
3409 (get_output_file_name): Just look at 'name' field in struct outf.
3410 (close_output_files): Rewrite.
3412 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
3414 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3415 (MASK_G_FLOAT): Define.
3416 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
3417 (TARGET_SWITCHES): Likewise.
3418 (TARGET_DEFAULT): Likewise.
3420 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
3422 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
3423 * config/mips/mips.c (mips_output_filename): Don't print a
3424 ".file" directive if we are using DWARF-2.
3425 (mips_output_function_prologue): Do not emit source file
3426 name for TARGET_GAS.
3428 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
3430 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
3431 decide whether emit the short opcode.
3432 * i386.h (x86_shift1): Declare.
3433 (TARGET_SHIFT1): New macro.
3434 * i386.c (x86_shift1): New global variable.
3436 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
3437 unconditionally; make loop to rebuild CFG; kill unnecesary
3438 find_basic_block calls; kill compute_bb_for_insn call.
3439 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
3440 * haifa-sched.c (sched_init): Likewise.
3441 * ssa-ccp.c (ssa_const_prop): Likewise.
3442 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3444 2002-06-11 David S. Miller <davem@redhat.com>
3446 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
3449 2002-06-11 Richard Henderson <rth@redhat.com>
3451 * c-common.c (builtin_define_type_max): New.
3452 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
3453 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
3455 From Joseph S. Myers:
3456 * glimits.h: Rewrite to expect the double underscore definitions
3459 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
3460 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
3461 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
3462 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3463 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
3464 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
3465 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
3466 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
3468 2002-06-11 Richard Henderson <rth@redhat.com>
3470 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
3471 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
3472 (code_for_builtns): Update.
3473 (alpha_init_builtins): Add __builtin_thread_pointer and
3474 __builtin_set_thread_pointer.
3475 (alpha_expand_builtin): Handle void builtins.
3476 * doc/extend.texi (Alpha Built-in Functions): Update.
3478 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
3481 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
3483 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3485 * config.gcc: Make the name of the extra-modes file adjustable
3487 (s390x, strongarm, xscale stanzas): Use this facility.
3488 * configure.in: Update to match.
3489 * configure: Regenerate.
3491 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
3493 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
3494 max/mins as unsigned GE compares.
3496 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
3498 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
3499 * config/vax/bsd.h: New file.
3500 * config/vax/netbsd.h: Add missing notice.
3501 (CPP_PREDEFINES): Remove.
3502 (TARGET_OS_CPP_BUILTINS): Define.
3503 (CPP_SPEC): Use NETBSD_CPP_SPEC.
3504 * config/vax/openbsd.h: Update copyright years.
3505 (CPP_PREDEFINES): Remove.
3506 (TARGET_OS_CPP_BUILTINS): Define.
3507 * config/vax/ultrix.h: Likewise.
3508 * config/vax/vaxv.h: Likewise.
3509 * config/vax/vms.h: Likewise.
3510 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
3511 (CPP_PREDEFINES, CPP_SPEC): Remove.
3513 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
3515 * i386.md (addqi_1_slp, subqi_1_slp
3516 (andqi_ext0, testqi_ext0): Remove unnecesary check.
3517 (addhi*, addqi*): Simplify "dec" condition.
3518 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
3519 (and, or, xor to QImode splitters): New.
3522 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
3523 (andqi_ext_1_rex64): New.
3527 (rotrqi3*_slp): New.
3528 (rotlqi3*_slp): New.
3530 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3532 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
3534 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
3535 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3536 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
3537 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
3538 __LONG_DOUBLE_128__ setting, _CALL_* setting.
3539 (CPP_DEFAULT_SPEC): Delete.
3540 (CPP_FLOAT_DEFAULT_SPEC): Delete.
3541 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
3542 (CPP_SYSV_DEFAULT_SPEC): Delete.
3543 (CPP_ENDIAN_BIG_SPEC): Delete.
3544 (CPP_ENDIAN_LITTLE_SPEC): Delete.
3545 (CPP_ENDIAN_SPEC): Delete.
3546 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
3547 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
3548 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
3549 cpp_longdouble_default.
3550 * config/rs6000/softfloat.h: Delete.
3551 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
3552 (EXTRA_SPECS): Delete cpp_cpu.
3553 (TARGET_CPU_CPP_BUILTINS): New.
3554 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
3556 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
3557 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
3558 (CPP_DEFAULT_SPEC): Delete.
3559 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
3560 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
3561 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
3562 (CPP_DEFAULT_SPEC): Delete.
3563 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3564 (CPLUSPLUS_CPP_SPEC): Likewise.
3565 (CPP_CPU_SPEC): Delete.
3566 (CPP_DEFAULT_SPEC): Delete.
3567 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3568 (CPLUSPLUS_CPP_SPEC): Likewise.
3569 (CPP_CPU_SPEC): Delete.
3570 (CPP_DEFAULT_SPEC): Delete.
3571 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
3572 (CPP_DEFAULT_SPEC): Delete.
3573 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
3574 (CPP_DEFAULT_SPEC): Delete.
3576 * doc/gty.texi: Small updates.
3578 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
3580 * objc/objc-act.c (warn_with_ivar): Adjust calls to
3581 diagnostic_count_error.
3582 (warn_with_method): Likewise.
3584 * diagnostic.h (warnings_are_errors_message): New field of
3586 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
3588 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3589 (diagnostic_count_diagnostic): Make aware of other kinds of
3591 (diagnostic_initialize): Initialize warnings_are_errors_message field.
3593 2002-06-11 Tom Tromey <tromey@redhat.com>
3596 * fold-const.c (fold_convert): Don't modify existing tree's type.
3598 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
3600 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3602 2002-06-11 Richard Henderson <rth@redhat.com>
3604 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3606 2002-06-11 Richard Henderson <rth@redhat.com>
3608 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
3609 DWARF2_UNWIND_INFO is false.
3611 2002-06-11 Bob Wilson <bob.wilson@acm.org>
3613 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3615 * config/s390/s390.c (emit_prologue): gen_store_multiple
3616 returns an insn now, not a pattern.
3618 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3620 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3623 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3625 * i386.c (x86_promote_QImode): Set for Athlon
3626 (x86_fast_prefix): New global variable.
3627 (x86_arch_always_fancy_math_387): Fix formating.
3628 * i386.h (x86_fast_prefix): Declare
3629 (TARGET_FAST_PREFIX): define.
3630 * i386.md (and to strict_low_part, HI to SI
3631 promoting splitter): Use new macro.
3633 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3635 2002-06-11 Zack Weinberg <zack@codesourcery.com>
3637 * Makefile.in (distclean): Delete junk left in testsuite
3640 2002-06-11 Jeffrey Law <law@redhat.com>
3642 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3643 last insn created by the splitter.
3645 * caller-save.c (init_caller_save): Move creation of SAVEINSN
3646 and RESTINSN into into the scope of the sequence.
3648 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3651 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3653 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3654 not the pattern. So extract the pattern from the insn.
3656 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3658 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3660 * config/s390/s390.md (movsi): Only use floating point
3661 register alternatives when operands are already fprs.
3662 (movdi_31, movdi_64): Likewise.
3664 2002-06-11 David S. Miller <davem@redhat.com>
3666 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3667 Only run RTX equality checks on INSN_P rtl.
3669 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3671 * config/s390/s390.md (reload_base, ltorg): Remove.
3672 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3673 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3674 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3675 s390_asm_output_pool_prologue): Likewise.
3676 * s390.h (s390_pool_start_insn): Likewise.
3678 * s390.c (s390_output_symbolic_const): Remove support for
3679 old-style pool chunks.
3680 (s390_function_epilogue): Likewise.
3681 (s390_output_constant_pool): Likewise. Also, fix incorrect
3682 alignment for 64-bit literal pools.
3683 (print_operand_address): Remove 'y' and 'Y' format flags.
3684 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3685 old-style pool chunks.
3686 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3687 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3688 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3690 * s390.c (consttable_operand): New function.
3691 * s390-protos.h (consttable_operand): Declare it.
3692 * s390.h (PREDICATE_CODES): Add consttable_operand.
3693 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3694 consttable_sf, consttable_df, pool_start_31, pool_end_31,
3695 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3696 * s390.c (struct constant, struct constant_pool): New data types.
3697 (constant_modes, gen_consttable): New variables.
3698 (s390_start_pool, s390_end_pool, s390_add_pool,
3699 s390_dump_pool, s390_free_pool): New functions.
3700 (s390_chunkify_pool): Completely reimplement literal pool
3703 * s390.c (s390_pool_overflow): New variable.
3704 * s390.h (s390_pool_overflow): Declare it.
3705 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
3706 jumps in literal pool overflow situations.
3708 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
3709 (s390_frame_info): Account for possible use of RETURN_REGNUM
3710 by new literal pool overflow code.
3711 (s390_emit_prologue): Likewise.
3713 2002-06-05 David S. Miller <davem@redhat.com>
3715 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3716 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3717 emit_insns_before_scope, emit_insns_after,
3718 emit_insns_after_scope): Delete declaration.
3719 * ada/misc.c (insert_code_for): Use emit_insn* instead of
3721 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3722 (alpha_set_memflags): Fix comment.
3723 (set_frame_related_p): Use get_insns instead of gen_sequence.
3724 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3726 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3728 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3729 * config/fr30/fr30.c (fr30_move_double): Likewise.
3730 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3732 * config/ia64/ia64.c (spill_restore_mem): Likewise.
3733 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3735 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3736 instead of gen_sequence.
3737 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3738 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3739 * config/sh/sh.c (sh_need_epilogue): Likewise.
3740 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3742 (setjmp pattern and split): Use them to avoid splitter which emits
3744 * genattrtab.c (main): Emit include of function.h
3745 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3746 get_insns instead of gen_sequence.
3747 * config/cris/cris.c (cris_split_movdx): Likewise.
3748 * emit-rtl.c (emit_insns*): Kill.
3749 (try_split): Expect insn list instead of SEQUENCE.
3750 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3751 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3752 Make them abort if a SEQUENCE is given and RTL checking is
3754 (emit_*_scope): Don't forget to set scope on final insn.
3755 (gen_sequence): Move from here...
3756 * ssa.c (gen_sequence): To here as private function.
3757 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3759 (expand_builtin_return, expand_builtin_mathfn): Likewise.
3760 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3761 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3762 (expand_builtin_expect_jump): Use get_insns and fix comments.
3763 * calls.c (try_to_integrate): Use emit_insn_foo.
3764 (expand_call, emit_library_call_value_1): Likewise.
3765 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3766 (emit_move_insn_1): Use get_insns instead of gen_sequence.
3767 (expand_expr): Use emit_insn_foo.
3768 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3769 * except.c (build_post_landing_pads): Likewise.
3770 * flow.c (attempt_auto_inc): Likewise.
3771 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3772 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3773 * function.c (fixup_var_refs_insn): Use get_insns instead of
3775 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3776 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3777 (fixup_stack_1, purge_addressof_1, expand_main_function,
3778 get_arg_pointer_save_area): Likewise.
3779 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3780 expand_function_end): Use emit_insn_foo.
3781 (record_insns, keep_stack_depressed): Work with insn list instead
3782 of SEQUENCE, fix comments.
3783 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3784 noce_try_store_flag_constants, noce_try_store_flag_inc,
3785 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3786 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3787 (noce_process_if_block): Use get_insns instead of gen_sequence.
3788 * optabs.c (add_equal_note): Work with insn list, fix comments.
3789 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3790 (expand_unop, expand_complex_abs, expand_unop_insn,
3791 expand_no_conflict_block): Likewise.
3792 (gen_move_insn): Use get_insns instead of gen_sequence.
3793 (gen_cond_trap): Likewise.
3794 * integrate.c (copy_rtx_and_substitute): Likewise.
3795 (emit_initial_value_sets): Use emit_insn_foo.
3796 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3797 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3798 now that RTL generators give insn lists.
3799 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3800 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3801 instead of gen_sequence.
3802 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3803 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3804 instead of gen_sequence.
3805 * loop.c (move_movables, emit_prefetch_instructions,
3806 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3808 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3809 (product_cheap_p): Likewise, and add commentary about RTL wastage
3811 * lcm.c (optimize_mode_switching): Use get_insns instead of
3813 * profile.c (gen_edge_profiler): Likewise.
3814 * regmove.c (copy_src_to_dest): Likewise.
3815 * reg-stack.c (compensate_edge): Likewise and fix comment.
3816 * gcse.c (process_insert_insn): Likewise.
3817 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3818 * jump.c (delete_prior_computation): Update comment.
3819 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3820 of gen_sequence, update comments to match.
3821 * recog.c (peephole2_optimize): Work with insn lists instead of
3823 * sched-vis.c (print_pattern): Abort on SEQUENCE.
3824 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3825 Use get_insns instead of gen_sequence.
3826 (copy_loop_body): Likewise and don't emit dummy NOTE.
3827 * genrecog.c: Don't mention SEQUENCE rtl in comments.
3828 * combine.c (try_combine): Expect insn lists from split generator.
3829 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3832 2002-06-11 Roger Sayle <roger@eyesopen.com>
3833 Andreas Jaeger <aj@suse.de>
3835 * cfgbuild.c: Update copyright years.
3837 2002-06-11 Andreas Schwab <schwab@suse.de>
3839 * config/m68k/m68k.h (PREDICATE_CODES): Define.
3841 2002-06-11 Eric Christopher <echristo@redhat.com>
3843 * doc/tm.texi (Run-time Target): Add comment about flag_iso
3845 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3846 * config/mips/ecoffl.h: Ditto.
3847 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3848 (CPP_PREDEFINES): Ditto.
3849 * config/mips/elfl64.h: Ditto.
3850 * config/mips/elfl.h: Ditto.
3851 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3852 out until irix header consolidation.
3853 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3854 with SUBTARGET_OS_CPP_BUILTINS.
3855 * config/mips/iris6.h: Ditto.
3856 (CPLUSPLUS_CPP_SPEC): Remove.
3857 * config/mips/linux.h: Ditto.
3858 * config/mips/netbsd.h: Ditto.
3859 * config/mips/openbsd.h: Ditto.
3860 * config/mips/rtems.h: Ditto.
3861 * config/mips/rtems64.h: Ditto.
3862 * config/mips/sni-svr4.h: Ditto.
3863 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3864 ISA_MIPS32, ISA_MIPS64): New defines.
3865 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3866 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3867 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3868 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3869 (TARGET_CPU_CPP_BUILTINS): Define.
3870 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3871 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3872 (movdicc): Remove check for ISA_MIPS32.
3873 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3874 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3875 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3876 sunge_sf, sunle_df, sunle_sf): New patterns.
3878 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
3880 * Makefile.in: Update cppmain.o.
3881 * cpphash.h (struct cpp_reader): Move some members to a
3883 (trad_line): Rename saved_line.
3884 (_cpp_read_logical_line_trad): Update.
3885 (_cpp_remove_overlay): New.
3886 * cppinit.c (cpp_create_reader): No need to set saved_line.
3887 (cpp_destroy): Update.
3888 (cpp_read_main_file): Only overlay if compiling.
3889 * cpplex.c (continue_after_nul): Return false if in directive.
3890 * cpplib.c (EXPAND): New.
3891 (directive_table, SEEN_EOL): Update.
3892 (end_directive): Remove overlay if traditional; don't skip
3893 line in traditional #define.
3894 (prepare_directive_trad): New.
3895 (_cpp_handle_directive, run_directive): Update for traditional
3897 (lex_macro_node): Simplify, don't use lex_identifier_trad.
3898 * cpplib.h (struct options): Add preprocess_only.
3899 * cppmain.c: Don't include intl.h.
3900 (cpp_preprocess_file): Set options->preprocess_only.
3901 (scan_translation_unit_trad): Fix, and print line numbers.
3902 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3903 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3904 save_replacement_text, _cpp_create_trad_definition): Update for
3906 (_cpp_overlay_buffer): Save line number.
3907 (_cpp_remove_overlay): Rename from restore_buff, restore line.
3908 (_cpp_read_logical_line_trad): Don't handle overlays here.
3909 (scan_out_logical_line): Process directives.
3911 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
3913 * gthr-win32.h: Wrap functions in extern "C".
3914 (__gthread_key_t): Typedef as unsigned long,
3916 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3917 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3918 (__gthr_win32_once, __gthr_win32_key_create,
3919 __gthr_win32_key_delete, __gthr_win32_getspecific,
3920 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3921 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3922 __gthr_win32_mutex_unlock): Declare.
3923 (__gthread_once,__gthread_key_create,
3924 __gthread_key_delete, __gthread_getspecific,
3925 __gthread_setspecific, __gthread_mutex_init_function,
3926 __gthread_mutex_lock,__gthread_mutex_trylock,
3927 __gthread_mutex_unlock): Call corresponding
3928 __gthr_win32_* extern implementations if #defined
3929 __GTHREAD_HIDE_WIN32API.
3930 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
3931 $(srcdir)/config/i386/gthr-win32.c
3932 * config/i386/gthr-win32.c: New implementation file.
3933 (__gthr_win32_once, __gthr_win32_key_create,
3934 __gthr_win32_key_delete, __gthr_win32_getspecific,
3935 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3936 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3937 __gthr_win32_mutex_unlock): New functions, based on
3938 static inlines in gthr-win32.h.
3940 2002-06-10 Bob Wilson <bob.wilson@acm.org>
3942 * config/xtensa/xtensa.c (override_options): Don't warn about
3943 using -fpic or -fPIC when PIC is enabled by default.
3945 2002-06-10 Roger Sayle <roger@eyesopen.com>
3947 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3949 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3951 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
3952 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
3953 exists, substitute its pathname as @extra_modes_file@, define
3954 EXTRA_MODES_FILE to be an appropriate string to #include it
3955 with, and define EXTRA_CC_MODES to 1.
3957 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
3958 it's defined. Get rid of redundancy in calling sequence for
3959 CC; don't use it to define CCmode, to avoid a warning.
3960 * libgcc2.c: Include symcat.h for the sake of machmode.def.
3962 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3963 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3964 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3966 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3967 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3969 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3970 defining extra CC modes.
3972 2002-06-10 Roger Sayle <roger@eyesopen.com>
3973 Andreas Jaeger <aj@suse.de>
3975 * cfgrtl.c (create_basic_block_structure): Remove index argument
3976 and use last_basic_block++ instead. (create_basic_block): Update.
3977 * cfgbuild.c (find_basic_blocks_1): Likewise.
3979 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3980 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3981 * sched-ebb.c (schedule_ebbs): Likewise.
3982 * sched-rgn.c (schedule_insns): Likewise.
3983 * ssa-ccp.c (ssa_const_prop): Likewise.
3984 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3985 * toplev.c (rest_of_compilation): Likewise.
3986 * config/ia64/ia64.c (ia64_reorg): Likewise.
3988 2002-06-10 Roger Sayle <roger@eyesopen.com>
3990 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3991 of matching registers.
3993 2002-06-10 Roger Sayle <roger@eyesopen.com>
3995 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3996 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3998 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
4000 * config/mmix/mmix.h: Improve comments.
4001 (CPP_SPEC, CPP_PREDEFINES): Don't define.
4002 (TARGET_CPU_CPP_BUILTINS): Define.
4003 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
4004 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
4006 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
4008 (mmix_constant_address_p): Remove another
4009 redundant test before case.
4010 (mmix_canonicalize_comparison): Remove unused function.
4011 (mmix_print_operand_address): Don't test and adjust for operand in
4012 non-canonical format.
4013 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
4014 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
4016 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4018 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
4019 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
4020 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
4021 (gen_compare): Use CCmode unconditionally.
4023 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4025 PR optimization/6759
4026 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
4029 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4032 * c-decl.c (grokfield): Allow user defined types if they declare
4033 structs or unions for unnamed fields.
4035 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4038 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
4040 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4042 PR optimization/6842
4043 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
4044 operand subreg cannot be simplified.
4046 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4048 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
4049 (compare_constant): Likewise.
4050 (output_addressed_constants): Likewise.
4052 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4054 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
4055 merge bb with itself.
4057 2002-06-10 Richard Henderson <rth@redhat.com>
4059 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
4060 (builtin_zapnot): Likewise.
4062 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
4065 2002-06-10 Eric Christopher <echristo@redhat.com>
4067 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
4068 prototype and function.
4069 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
4070 (call_insn_operand): Remove half pic references.
4071 (legitimate_address_p): Ditto.
4072 * config/i386/i386.h: Remove half pic defines.
4074 2002-06-10 Eric Christopher <echristo@redhat.com>
4076 * doc/extend.texi (Return Address): Add note explaining the side-
4077 effects of inlining on __builtin_return_address.
4079 2002-06-10 Tom Tromey <tromey@redhat.com>
4081 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
4082 (c-common.o): Depend on langhooks.h.
4084 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4086 * cpphash.h (_cpp_read_logical_line_trad,
4087 _cpp_expansions_different_trad): Update prototypes.
4088 * cpplex.c (continue_after_nul): New.
4089 * cppmain.c: Include cpphash.h.
4090 (scan_translation_unit_trad): New.
4091 (cpp_preprocess_file): Call it.
4092 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
4094 (_cpp_expansions_different_trad): Update prototype.
4096 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
4098 Fix cfi generation for SH[1-4]:
4100 * sh.c (frame_insn): New function.
4101 (output_stack_adjust): Add parameter emit_fn. All callers changed.
4102 (push): Now returns rtx. Use frame_insn.
4103 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
4105 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
4107 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4109 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
4111 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
4112 (distclean): ... not here. But do delete all testsuite/*.log,
4113 testsuite/*.sum files here. Delete mkheaders. Delete
4114 po/*.gmo and the testsuite directory in a split tree build.
4116 2002-06-10 Jeffrey Law <law@redhat.com>
4118 * alias.c (static_reg_base_value): New to hold RTL for
4119 items allocated once per function for the aliasing code.
4120 (init_alias_once_per_function): Initialize static_reg_base_value.
4121 (init_alias_analysis): Avoid throw-away allocations of RTL by
4122 using pre-computed values in static_reg_base_value.
4123 * function.c (prepare_function_start): Call
4124 init_alias_once_per_function appropriately.
4125 * rtl.h (init_alias_once_per_function): Declare.
4126 * caller-save (init_caller_save): Restructure slightly to
4127 avoid lots of silly RTL generation.
4128 * expr.c (init_expr_once): Likewise.
4129 * reload1.c (reload_cse_regs_1): Allocate throw-away register
4130 RTL object here. Pass it into children.
4131 (reload_cse_simplify_operands): Use passed-in register RTL
4133 (reload_cse_simplify): Pass through throw-away register
4136 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
4138 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
4140 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
4142 * gcc.c (process_command): Avoid assignment to read-only location.
4143 Fix sizeof calculation.
4145 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4147 * cpphash.h (struct cpp_macro): Put comments on their own lines.
4148 (_cpp_expansions_different_trad): New.
4149 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
4150 * cpptrad.c (canonicalize_text): New.
4151 (scan_out_logical_line): Handle no arguments correctly.
4152 (save_replacement_text): Commit memory when finished.
4153 (_cpp_expansions_different_trad): New.
4155 2002-06-10 Tim Josling <tej@melbpc.org.au>
4157 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
4159 (lang_names): Add treelang and cobol.
4160 (get_file_basename): Add code to support treelang and cobol as
4161 4th and 5th users of c-common.c.
4163 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
4165 * Makefile.in (install-driver): Install driver as
4166 $(target_alias)-gcc-$(version).
4167 * gcc.c (spec_version): Make const.
4168 (process_command): Handle -V and -b by using exec.
4169 * doc/invoke.texi (Target Options): Restore -V option,
4170 update docs for -b option.
4172 2002-06-10 Tim Josling <tej@melbpc.org.au>
4174 * configure.in (remaining_languages_check):
4175 Added check that all languages specified were found.
4176 Exit if not found. Previous behaviour was silent failure.
4177 * configure: Regenerated.
4179 2002-06-10 Tim Josling <tej@melbpc.org.au>
4181 First steps to making treelang documentation compliant, based on
4182 instructions in sourcebuild.texi. Also add to gcc.c list of
4185 * doc/contrib.texi: Add self as contributor of treelang.
4187 * doc/frontends.texi: Add mention of treelang.
4189 * doc/invoke.texi (Overall Options): Add mention of treelang.
4191 * doc/standards.texi: Add mention of treelang.
4193 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
4195 * config/cris/cris.c: Include ggc.h
4197 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
4199 * cpphash.h (_cpp_push_text_context): Update.
4200 (_cpp_arguments_ok): New.
4201 * cppmacro.c (_cpp_arguments_ok): New, split out from...
4202 (collect_args): ...here.
4203 (_cpp_push_text_context): Change inputs.
4204 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
4205 replace_args_and_push): New.
4206 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
4207 Don't use IS macros directly.
4208 (scan_out_logical_line): Handle function-like macro argument
4210 (push_replacement_text): Update.
4211 (replacement_length): Remove.
4212 (_cpp_create_trad_definition): Don't skip whitespace before
4215 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4217 * config/avr/avr.c (avr_mcu_types): Update for new devices.
4218 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
4219 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
4220 * config/avr/avr.md ("type" and "length" attributes): New type
4221 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
4222 output a single "call" or "rcall" insn depending on device size.
4223 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
4225 2002-06-09 David Edelsohn <edelsohn@gnu.org>
4227 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
4228 synonym for 630. Add power4. Remove embedded processors. Use -m604
4230 (CPP_CPU_SPEC): Add power3 and power4.
4231 (PROCESSOR_DEFAULT): Change to 604e.
4232 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
4233 (CPP_CPU_SPEC): Similar additions.
4234 (enum process_type): Add POWER4.
4235 (RTX_COSTS): Add POWER4.
4236 (CPP_CPU_SPEC): Similar additions.
4237 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
4238 (PROCESSOR_DEFAULT64): Define.
4239 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
4240 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
4242 (rs6000_issue_rate): Add Power4.
4243 * config/rs6000/rs6000.md (cpu attr): Add power4.
4244 (iu compare): Remove 604, 604e, 620, 630.
4245 Add basic Power4 scheduling information.
4246 (mfcr/mtcrf): Change type attribute to cr_logical.
4248 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4250 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
4252 * gengtype-lex.l: Fix format specifier warning.
4254 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
4256 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
4257 lieu of isspace/IDchar.
4258 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
4259 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
4262 2002-06-08 Zack Weinberg <zack@codesourcery.com>
4264 * Makefile.in (LIBCPP_OBJS): Take out version.o.
4265 * cpphash.h (cpp_reader): Take out print_version member.
4266 * cppinit.c: (cpp_handle_option): Don't do anything with
4267 -version. Just set help_only for --version, --target-help.
4268 Just set verbose option for -v.
4269 (cpp_post_options): Don't print a version string.
4271 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4273 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
4274 (avr_section_type_flags): New, handle .noinit* sections.
4276 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4278 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
4279 and include netbsd_entry_point.
4280 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4281 (NETBSD_ENTRY_POINT): Define.
4283 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4285 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
4286 if not already defined.
4287 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
4289 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4291 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
4292 in a noreturn function.
4293 (avr_output_function_prologue, avr_output_function_epilogue):
4294 Correct function size calculation. Do not crash on empty function.
4295 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
4297 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4299 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4300 netbsd_link_spec and netbsd_entry_point.
4301 (LINK_SPEC): Use %(netbsd_link_spec).
4302 (NETBSD_ENTRY_POINT): Define.
4304 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4306 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
4308 (LINK_ARCH64_SPEC): Likewise.
4309 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
4310 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
4312 2002-06-08 Marc Espie <espie@openbsd.org>
4314 * lists.c (free_list): Fix typo in comment.
4316 2002-06-08 Andreas Jaeger <aj@suse.de>
4318 * lcm.c (optimize_mode_switching): Add unused attribute for
4321 * sched-deps.c (sched_analyze): Remove unused variable.
4323 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
4325 * diagnostic.def: Don't capitalize diagnostict descriptors.
4327 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4329 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
4330 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4331 (NETBSD_ENTRY_POINT): Define.
4333 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4335 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
4336 NETBSD_LINK_SPEC_ELF.
4337 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
4338 (NETBSD_ENTRY_POINT): Define.
4339 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
4340 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
4342 (NETBSD_ENTRY_POINT): Define.
4344 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4346 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4347 netbsd_link_spec and netbsd_entry_point.
4348 (LINK_SPEC): Use %(netbsd_link_spec).
4349 (NETBSD_ENTRY_POINT): Define.
4351 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4353 * config/netbsd-elf.h (LINK_SPEC): Rename to...
4354 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
4355 to specify program entry point.
4357 2002-06-07 Jeff Law <law@redhat.com
4359 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
4360 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
4361 than creating a new register.
4362 (distribute_notes): Likewise.
4363 * df.c (df_reg_use_gen): Likewise.
4364 (df_reg_clobber_gen): Likewise.
4365 (df_ref_record): Likewise.
4366 * expr.c (use_regs): Likewise.
4367 * flow.c (propagate_one_insn): Likewise.
4368 (mark_set_1): Likewise.
4369 (mark_used_reg): Likewise.
4370 * reload.c (emit_reload_insns): Likewise.
4372 2002-06-07 Roger Sayle <roger@eyesopen.com>
4374 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
4375 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
4376 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
4377 comparison code comp can be reversed.
4379 2002-06-07 Roger Sayle <roger@eyesopen.com>
4381 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
4382 constants last in comparisons. Optimize (x+1.0)>0.0 into the
4383 equivalent x > -1.0 when -ffast-math.
4385 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4387 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
4388 * config/mips/t-netbsd: New file.
4390 2002-06-07 Zack Weinberg <zack@codesourcery.com>
4392 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4393 options their own entries.
4394 (parse_option): Clarify comment.
4395 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
4396 special case. Replace if/strcmp chain for -W options with
4397 use of new OPT_* entries for them.
4398 (cpp_handle_options): Update to match.
4399 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
4400 * c-decl.c: Update call to cpp_handle_option.
4402 2002-06-07 Akim Demaille <akim@epita.fr>
4404 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
4407 2002-06-07 Jeffrey Law <law@redhat.com>
4409 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
4412 2002-06-07 H.J. Lu (hjl@gnu.org)
4414 * configure.in: Add --enable-__cxa_atexit.
4415 * configure: Regenerated.
4416 * config.in: Likewise.
4418 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
4421 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
4423 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
4425 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4427 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
4429 2002-06-07 Jason Merrill <jason@redhat.com>
4431 * cppexp.c (num_equality_op): Use a temporary variable to work
4432 around gcc 3.0.4 bug.
4434 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
4436 * diagnostic.c (diagnostic_build_prefix): Tidy.
4438 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
4440 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
4441 scan_parameters, save_replacement_text, replacement_length): New.
4442 (scan_out_logical_line): Take a macro and save parameters if
4444 (_cpp_logical_line_trad): Update.
4445 (_cpp_create_trad_definition): Update to handle function-like
4447 * cpplex.c (new_buff): Update.
4448 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
4449 * cpphash.h: ...here.
4450 (CPP_ALIGN2, _cpp_save_parameter): New.
4451 * cppmacro.c (save_parameter): Rename, export.
4452 (parse_params): Update.
4454 2002-06-07 Andreas Jaeger <aj@suse.de>
4456 * config/mmix/mmix.c: Remove extra broken prototype for
4457 mmix_init_machine_status.
4459 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
4461 * gengtype.c: Add comments before all the routines.
4463 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4465 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
4466 from and add t-sh64 to ${tmake_file}.
4467 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
4468 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
4469 * config/sh/t-netbsd-sh5-32: Remove.
4470 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
4472 (MULTILIB_DIRNAMES): Define.
4474 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
4476 * i386.md (and promoting splitters): Disable QI to SImode promoting
4477 when doing so changes immediate to be 32bit.
4479 * rtl.h (emit_*_scope): Declare.
4480 * emit-rtl.c (emit_*_scope): New global functions.
4481 (try_split): Copy scope.
4482 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4483 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4484 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4485 noce_process_if_block, find_cond_trap): Copy scopes.
4486 * recog.c (peephole2_optimize): likewise.
4488 2002-06-06 Jeffrey Law <law@redhat.com>
4490 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
4492 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
4494 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
4496 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4498 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
4499 ($(docdir)/gccinstall.info): New target.
4500 (info): Depend on it.
4501 (gccinstall.dvi): New target.
4502 (dvi): Depend on it.
4503 * doc/.cvsignore: Ignore new info files.
4504 * doc/install.texi (@setfilename): Reflect new info filename.
4506 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
4508 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
4511 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
4514 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
4515 c_common_get_alias_set.
4516 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
4518 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4520 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
4522 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
4523 * avr/avr.c (avr_output_function_epilogue): Use above to determine
4525 * pa/pa.c (pa_output_function_prologue): Likewise.
4527 2002-06-05 David S. Miller <davem@redhat.com>
4529 * integrate.c (subst_constants): Handle 'B' RTL format.
4531 2002-06-05 Eric Christopher <echristo@redhat.com>
4533 * varasm.c (make_decl_rtl): Fix comment for removed
4536 2002-06-05 Eric Christopher <echristo@redhat.com>
4538 * Makefile.in: Remove missed halfpic bits.
4540 2002-06-05 Eric Christopher <echristo@redhat.com>
4542 * toplev.c: Remove half-pic.
4543 * config/mips/mips.c: Ditto.
4544 * config/mips/mips.h: Ditto. Remove unused defines.
4545 * config/mips/openbsd.h: Update comment to reflect above.
4546 * config/mips/mips.md: Remove half-pic constraints.
4547 * halfpic.h: Delete.
4550 2002-06-05 Jeffrey Law <law@redhat.com>
4552 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
4553 rejects (mem (lo_sum (reg) (unspec))), but will allow
4554 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
4556 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4558 * cpphash.h (_cpp_create_definition): Update prototype.
4559 (_cpp_push_text_context, _cpp_create_trad_definition): New.
4560 ( cpp_lex_identifier_trad): New.
4561 (_cpp_set_trad_context): New.
4562 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
4563 * cpplib.c (SEEN_EOL): Update.
4564 (lex_macro_node): Update for -traditional.
4565 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
4566 * cppmacro.c (_cpp_create_definition): Split into
4567 create_iso_definition() and _cpp_create_trad_definition().
4568 (warn_of_redefinition): Update prototype; handle traditional
4570 (_cpp_push_text_context): New.
4571 * cpptrad.c (skip_whitespace, push_replacement_text): New.
4572 (lex_identifier): Call ht_lookup with correct start.
4573 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
4574 _cpp_set_trad_context): New.
4575 (scan_out_logical_line): Update to handle changing contexts.
4577 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
4579 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
4581 * config/sh/t-be (MULTILIB_ENDIAN): Set.
4582 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
4583 * t-sh (MULTILIB_ENDIAN): Set.
4584 (MULTILIB_OPTIONS): Use it.
4585 * t-sh64 (MULTILIB_OPTIONS): Likewise.
4586 (MULTILIB_DIRNAMES): Likewise.
4588 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
4590 * toplev.h (report_error_function): Remove.
4592 * diagnostic.h (location_t): New datatype.
4593 (text_info): Likewise.
4594 (diagnostic_info): Likewise.
4595 (output_prefix): New macro.
4596 (diagnostic_last_function_changed): Likewise.
4597 (diagnostic_set_last_function): Likewise.
4598 (diagnostic_last_module_changed): Likewise.
4599 (diagnostic_set_last_module): Likewise.
4600 (report_diagnostic): Now macro.
4601 (diagnostic_set_info): Declare.
4603 * diagnostic.c (report_problematic_module): Rename to
4604 diagnostic_repor_current_module.
4605 (set_diagnostic_context): Remove.
4606 (count_error): Rename to diagnostic_error_count.
4607 (error_function_changed): Remove.
4608 (record_last_error_function): Likewise.
4609 (error_module_changed): Likewise.
4610 (record_last_error_module): Likewise.
4611 (context_as_prefix): Rename to diagnostic_build_prefix.
4612 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4613 (diagnostic_set_info): New function.
4615 * objc/objc-act.c: #include diagnostic.h
4616 (error_with_ivar): Adjust call to count_error.
4617 (warn_with_method): Likewise.
4618 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4620 2002-06-05 Bob Wilson <bob.wilson@acm.org>
4622 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4623 lang_hooks.types.make_type instead of make_node; set up
4624 __va_list_tag type decl.
4625 (xtensa_builtin_saveregs): Remove broken use of
4626 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4627 for saved registers; add varargs alias set.
4629 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4632 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4633 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4634 CPP_PREDEFINES and part of CPP_SPEC.
4635 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4636 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4638 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
4640 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4642 2002-06-05 Alan Modra <amodra@bigpond.net.au>
4644 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4646 2002-06-04 Zack Weinberg <zack@codesourcery.com>
4648 * gengtype-yacc.y: Make sure all rules end with a semicolon.
4650 2002-06-04 Bob Wilson <bob.wilson@acm.org>
4652 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4653 typo in function prototype and include "ggc.h" header.
4655 2002-06-04 Richard Henderson <rth@redhat.com>
4657 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4658 (print_operand) ['U']: Likewise.
4659 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4660 (alpha_expand_unaligned_store_words): Likewise.
4661 (alpha_expand_builtin_vector_binop): Fix typo.
4662 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4663 umulh, and cix insns.
4664 (one_arg_builtins): Add cix builtins.
4665 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4666 (alpha_expand_builtin): Fix typo in arity.
4667 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4668 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4669 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4670 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4671 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4672 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4673 builtin_ctlz, builtin_ctpop): New.
4674 * doc/extend.texi (Alpha Built-in Functions): Update.
4676 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
4678 * gengtype.c (write_gc_root): Don't unnecessarily prevent
4679 global variable-length arrays being roots.
4681 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4682 * configure.in (config_gtfiles): New variable.
4683 (all_gtfiles): Initialise from config_gtfiles.
4684 * configure: Regenerate.
4686 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4689 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4690 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4691 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4692 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4693 win32.h (CPP_SPEC): Remove cpp_cpu.
4694 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4695 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4697 2002-06-04 Janis Johnson <janis187@us.ibm.com>
4699 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4701 2002-06-04 Jeff Law <law@redhat.com.
4702 David Edelsohn <edelsohn@gnu.org>
4703 Michael Matz <matz@kde.org>
4705 * sched-int.h (struct deps): New field libcall_block_tail_insn.
4706 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4707 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4708 is set, then mark the current insn as being part of a libcall
4710 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4712 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4713 insns against the issue rate.
4715 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
4717 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4718 * final.c (final_scan_insn): Likewise.
4719 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4720 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4721 * haifa-sched.c (unlink_other_notes): Likeewise.
4722 (reemit_notes): Likewise.
4723 * print-rtl.c (print_rtx): Likewise.
4724 * sched-deps (sched-analyze): Likewise.
4725 * rtl.c (note_insn_name): Likewise.
4726 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4727 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4730 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4732 * varasm.c (mark_constants): Handle RTX format 'B'.
4734 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4736 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4737 (struct cpp_context): Add traditional fields.
4738 * cppmacro.c (paste_all_tokens, push_ptoken_context,
4739 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4740 * cpptrad.c (skip_comment, lex_identifier,
4741 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4743 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
4745 * gbl-ctors.h: Fix formatting.
4747 * gccspec.c: Likewise.
4749 * gcov-io.h: Likewise.
4751 * ggc-common.c: Likewise.
4753 * ggc-page.c: Likewise.
4754 * ggc-simple.c: Likewise.
4755 * global.c: Likewise.
4756 * graph.h: Likewise.
4757 * gthr-dce.h: Likewise.
4759 * gthr-posix.h: Likewise.
4760 * gthr-rtems.h: Likewise.
4761 * gthr-solaris.h: Likewise.
4762 * gthr-win32.h: Likewise.
4764 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
4766 Merge from pch-branch:
4768 * gengtype.h (UNION_OR_STRUCT_P): New macro.
4769 * gengtype.c (write_gc_structure_fields): Use it.
4770 (write_gc_root): Use it here too.
4772 * gengtype.c (write_gc_structure_fields): Assume that lengths
4773 of typenames fit into an 'int'; don't pass a size_t to "%d" in
4775 (write_gc_marker_routine_for_structure): Likewise.
4776 (write_gc_types): Likewise.
4777 (write_gc_root): Likewise.
4779 * varray.h (VARRAY_CLEAR): New.
4780 (varray_clear): Prototype.
4781 * varray.c (varray_clear): New.
4782 * cselib.c (reg_values_old): New.
4783 (used_regs_old): New.
4784 (cselib_init): Use cached varrays if available to avoid
4785 generating large amounts of garbage.
4786 (cselib_finish): Don't throw away old varrays.
4788 * final.c (insn_addresses_): Move out of ifdef.
4790 * varray.c (uses_ggc): Make more varray kinds GCable.
4791 * varray.h (union varray_data_tag): Let gengtype see
4792 fields 'generic' and 'te'.
4793 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4794 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4795 (reg_to_stack): Don't call VARRAY_FREE.
4796 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4797 (insn_addresses_): Use gengtype to mark.
4798 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4799 pointers; handle generic pointers in unused union fields.
4800 (get_output_file_with_visibility): Include cselib.h,
4801 insn-addr.h in gtype-desc.c.
4802 * function.c (prologue): Use gengtype to mark.
4803 (epilogue): Likewise.
4804 (sibcall_epilogue): Likewise.
4805 * dependence.c: Include gt-dependence.h, ggc.h.
4806 (struct def_use): Use gengtype to mark.
4807 (struct loop): Likewise.
4808 (struct induction): Likewise.
4809 (struct dependence): Likewise.
4810 (def_use_chain): Likewise.
4811 (dep_chain): Likewise.
4812 (loop_chain): Likewise.
4813 (induction_chain): Likewise.
4814 (init_dependence_analysis): Don't free anything, just clear pointers.
4815 (build_def_use): Use GGC to allocate def_use.
4816 (add_loop): Use GGC to allocate loop.
4817 (find_induction_variable): Use GGC to allocate induction.
4818 (check_node_dependence): Use GGC to allocate induction, dependence.
4819 (dump_node_dependence): Don't free varrays.
4820 (end_dependence_analysis): Likewise.
4821 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4822 (struct elt_loc_list): Likewise.
4823 (struct elt_list): Likewise.
4824 * cselib.c: Don't include obstack.h.
4825 (hash_table): Use gengtype to mark.
4826 (reg_values): Use gengtype to mark.
4827 (used_regs): Use gengtype to mark.
4828 (cselib_obstack): Delete.
4829 (cselib_startobj): Delete.
4830 (empty_vals): Mark as deletable.
4831 (empty_elt_lists): Mark as deletable.
4832 (empty_elt_loc_lists): Mark as deletable.
4833 (new_elt_list): Use GGC to allocate struct elt_list.
4834 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4835 (clear_table): Don't delete obstack; don't unnecessarily clear
4836 deletable variables.
4837 (new_cselib_val): Use GGC to allocate struct cselib_val.
4838 (cselib_init): Don't set up obstacks. Use GGC to allocate
4840 (cselib_finish): Just clear variables, don't free anything.
4841 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4842 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4843 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4844 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4845 (gt-reg-stack.h): New rule.
4846 (gt-dependence.h): New rule.
4847 (gtype-desc.o): Add cselib.h, insn-addr.h.
4849 * varray.c: Use only necessary headers.
4850 (element_size): New.
4852 (varray_init): Take type, not size. Use GGC if appropriate.
4853 (varray_grow): Update for change to struct varray_head_tag.
4854 Use GGC if appropriate.
4855 * varray.h (struct const_equiv_data): Use gengtype.
4856 (enum varray_data_enum): New.
4857 (union varray_data_tag): Use gengtype.
4858 (struct varray_head_tag): Use gengtype. Replace size field with
4859 enum varray_data_enum.
4860 (varray_init): Update prototype.
4861 (VARRAY_SCHED_INIT): Delete.
4862 (VARRAY_*_INIT): Update for change to varray_init.
4863 (VARRAY_SCHED): Delete.
4864 (VARRAY_PUSH_SCHED): Delete.
4865 (VARRAY_TOP_SCHED): Delete.
4866 * tree.h: Update for change to length specifier.
4867 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4868 (clone_body): Likewise.
4869 * ssa.h (ssa_definition): Use gengtype to mark.
4870 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4871 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4872 * rtl.h (struct rtvec_def): Update for change to length specifier.
4873 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4874 (struct initial_value_struct): Update for change to length specifier.
4875 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4876 (ggc_add_tree_varray_root): Delete prototype.
4877 (ggc_mark_rtx_varray): Delete prototype.
4878 (ggc_mark_tree_varray): Delete prototype.
4879 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4880 (ggc_add_tree_varray_root): Delete.
4881 (ggc_mark_rtx_varray): Delete.
4882 (ggc_mark_tree_varray): Delete.
4883 (ggc_mark_rtx_varray_ptr): Delete.
4884 (ggc_mark_tree_varray_ptr): Delete.
4885 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4886 (create_varray): Delete prototype.
4887 * gengtype.c (varrays): Delete.
4888 (create_varray): Delete.
4889 (adjust_field_type): Detect array of string pointers.
4890 (process_gc_options): Remove code to handle varray_type option.
4891 (set_gc_used_type): Remove TYPE_VARRAY case.
4892 (output_escaped_param): New.
4893 (write_gc_structure_fields): Use output_escaped_param on all
4894 parameters. Handle 'skip' with 'use_param' option. Handle
4895 arrays of strings. Remove TYPE_VARRAY handling.
4896 (write_gc_roots): Use boolean to detect 'length' option.
4897 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4898 (struct_fields): Call adjust_field_type on array fields.
4899 (type): Remove VARRAY_TYPE case.
4900 (type_option): Likewise.
4901 * gengtype-lex.l: Don't consider varray_type a keyword.
4902 * function.h: Update for change to length specifier.
4903 (free_eh_status): Delete prototype.
4904 * function.c (free_after_compilation): Don't call free_eh_status.
4905 (reorder_blocks): Don't use VARRAY_FREE.
4906 * except.c (struct eh_status): Update for change to length specifier.
4907 remove varray_type specifier.
4908 (free_eh_status): Delete.
4909 * dwarf2out.c: Include gt-dwarf2out.h.
4910 (used_rtx_varray): Use gengtype to mark, move
4912 (incomplete_types): Likewise.
4913 (decl_scope_table): Likewise.
4914 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
4915 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4916 * c-tree.h (struct lang_type): Update for change to length specifier.
4917 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4918 * c-objc-common.c: Include gt-c-objc-common.h.
4919 (deferred_fns): Mark for gengtype.
4920 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4921 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4922 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4923 (gtype-desc.o): Update dependencies.
4924 (dwarf2out.o): Add gt-dwarf2out.h.
4925 (varray.o): Update dependencies.
4926 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4927 (gt-c-objc-common.h): New rule.
4928 (gt-dwarf2out.h): New rule.
4929 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4931 * doc/gty.texi (GTY Options): Correct spelling.
4932 (GGC Roots): Likewise.
4933 * Makefile.in (TEXI_CPP_FILES): New.
4934 (TEXI_GCC_FILES): New.
4935 (TEXI_GCCINT_FILES): New.
4936 (TEXI_CPPINT_FILES): New.
4937 ($(docdir)/cpp.info): Use new macros.
4938 ($(docdir)/gcc.info): Likewise.
4939 ($(docdir)/gccint.info): Likewise.
4940 ($(docdir)/cppinternals.info): Likewise.
4941 (cpp.dvi): Likewise.
4942 (gcc.dvi): Likewise.
4943 (gccint.dvi): Likewise.
4944 (cppinternals.dvi): Likewise.
4946 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4947 * doc/gccint.texi (Top): Include gty.texi.
4948 * doc/gty.texi: New file.
4950 * bitmap.c: Include ggc.h, gt-bitmap.h.
4951 (bitmap_ggc_free): New.
4952 (bitmap_elem_to_freelist): New.
4953 (bitmap_element_free): Use bitmap_elem_to_freelist.
4954 (bitmap_element_allocate): Allow use of GGC.
4955 (bitmap_clear): Use bitmap_elem_to_freelist.
4956 (bitmap_copy): Update for change to bitmap_element_allocate.
4957 (bitmap_set_bit): Likewise.
4958 (bitmap_operation): Update for changes elsewhere.
4959 (bitmap_initialize): Allow to create bitmaps that will use GGC.
4960 * bitmap.h (struct bitmap_element_def): Use gengtype.
4961 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
4962 (bitmap_initialize): Add extra parameter.
4963 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4964 (BITMAP_ALLOCA): Delete.
4965 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4966 (BITMAP_GGC_ALLOC): New.
4967 * Makefile.in (gtype-desc.o): Add bitmap.h.
4968 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4969 (GTFILES): Add bitmap.c.
4970 (gt-bitmap.h): New rule.
4971 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4972 * basic-block.h: Update for changes to bitmap_initialize.
4973 * except.c (exception_handler_label_map): Move into...
4974 (struct eh_status): Here.
4975 (struct eh_region): Make 'aka' GCable.
4976 (free_eh_status): Don't need to specially handle
4977 exception_handler_label_map.
4978 (add_ehl_entry): Update for changes to exception_handler_label_map.
4979 (find_exception_handler_labels): Likewise.
4980 (remove_exception_handler_label): Likewise.
4981 (maybe_remove_eh_handler): Likewise.
4982 (for_each_eh_label): Likewise.
4983 (remove_eh_handler): Allocate 'aka' using GGC.
4984 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4985 to list of includes.
4987 * gengtype.c (write_gc_marker_routine_for_structure): Name
4988 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
4989 (write_gc_types): Arrange for the tests with NULL to be inlined.
4990 (write_gc_roots): Update uses of procedure pointers.
4991 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4993 * Makefile.in (explow.o): Add dependency on gt-explow.h.
4994 (sdbout.o): Add dependency on gt-sdbout.h.
4996 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4997 (mem_attrs_htab): Likewise.
4998 (init_emit_once): Don't call ggc_add_deletable_htab.
4999 * fold-const.c (size_htab): Use gengtype to clear unused entries.
5000 (size_int_type_wide): Don't call ggc_add_deletable_htab.
5001 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
5002 parameters, use them, change callers.
5003 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
5004 (write_gc_roots): Handle 'if_marked' option.
5005 (main): Don't need to call set_gc_used_type any more.
5006 * ggc.h (ggc_htab_marked_p): Delete.
5007 (ggc_htab_mark): Delete.
5008 (struct ggc_cache_tab): New.
5009 (gt_ggc_cache_rtab): New declaration.
5010 * ggc-common.c (struct d_htab_root): Delete.
5011 (d_htab_roots): Delete.
5012 (ggc_add_deletable_htab): Delete.
5013 (ggc_htab_delete): Handle new htab-deleting mechanism.
5014 (ggc_mark_roots): Use new htab-deleting mechanism.
5015 * tree.c (type_hash_table): Use gengtype to clear unused entries.
5017 (init_obstacks): Don't call ggc_add_deletable_htab.
5019 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
5020 (struct hashed_entry): Likewise.
5021 (nst_method_hash_list): Likewise.
5022 (cls_method_hash_list): Likewise.
5023 (HASH_ALLOC_LIST_SIZE): Delete.
5024 (ATTR_ALLOC_LIST_SIZE): Delete.
5025 * objc/objc-act.c (hash_init): Use ggc to allocate
5026 nst_method_hash_list, cls_method_hash_list.
5027 (hash_enter): Use ggc to allocate; allocate one entry at a time.
5028 (hash_add_attr): Likewise.
5029 (ggc_mark_hash_table): Delete.
5030 (objc_act_parse_init): Delete.
5031 (objc_init): Delete reference to objc_act_parse_init.
5032 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
5033 obstack.h. Replace references to 'struct hash_table' with htab_t.
5034 (struct symbol_hash_entry): Replace hash header with key field.
5035 (struct file_hash_entry): Replace hash header with key field.
5036 (struct demangled_hash_entry): Replace hash header with key field.
5037 (hash_string_eq): New.
5038 (hash_string_hash): New.
5039 (symbol_hash_newfunc): Delete.
5040 (symbol_hash_lookup): Modify to use htab_t.
5041 (file_hash_newfunc): Delete.
5042 (file_hash_lookup): Modify to use htab_t.
5043 (demangled_hash_newfunc): Delete.
5044 (demangled_hash_lookup): Modify to use htab_t.
5045 (tlink_init): Modify to use htab_t.
5048 * ggc.h: Delete forward structure declarations.
5049 Delete prototypes for deleted functions.
5050 * ggc-common.c: Don't include hash.h.
5051 (ggc_add_tree_hash_table_root): Delete.
5052 (ggc_mark_tree_hash_table_entry): Delete.
5053 (ggc_mark_tree_hash_table): Delete.
5054 (ggc_mark_tree_hash_table_ptr): Delete.
5055 * gengtype.c (write_gc_structure_fields): Allow param_is option.
5056 (write_gc_marker_routine_for_structure): Use visibility of
5057 the parameter if there is one.
5058 * function.c: Replace hash.h with hashtab.h. Replace references
5059 to 'struct hash_table *' with htab_t.
5060 (struct insns_for_mem_entry): Include a plain key.
5061 (fixup_var_refs_insns_with_hash): Update to use htab_t.
5062 (insns_for_mem_newfunc): Delete.
5063 (insns_for_mem_hash): Update to use htab_t.
5064 (insns_for_mem_comp): Likewise.
5065 (insns_for_mem_walk): Likewise.
5066 * c-lang.c: Include ggc.h.
5067 * Makefile.in (OBJS): Remove hash.o.
5068 (c-lang.o): Add GGC_H.
5069 (COLLECT2_OBJS): Remove hash.o.
5070 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
5071 (ggc-common.o): Remove hash.h.
5072 (function.o): Remove hash.h, add HASHTAB_H.
5073 (genautomata.o): Remove hash.h, add HASHTAB_H.
5075 * varasm.c (mark_const_str_htab_1): Delete.
5076 (mark_const_str_htab): Delete.
5077 (const_str_htab_del): Delete.
5078 (const_str_htab): Use gengtype to mark.
5079 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
5081 * tree.c (mark_tree_hashtable_entry): Delete.
5082 (mark_tree_hashtable): Delete.
5083 * tree.h (mark_tree_hashtable): Delete prototype.
5084 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
5085 (ggc_mark): Likewise.
5087 (htab_create_ggc): New.
5088 * ggc-common.c (ggc_calloc): New.
5089 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
5090 (struct type): Add param_struct structure.
5091 * gengtype.c (param_structs): New.
5092 (adjust_field_type): Handle param_is option.
5093 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
5094 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
5095 (write_gc_structure_fields): Add new PARAM parameter. Update
5096 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
5097 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
5098 Use it to generate function name. Update callers.
5099 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
5101 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
5103 (main): Define PTR as pointer-to-scalar. Don't specially
5104 mark deferred_string or ehl_map_entry.
5105 * gengtype-yacc.y (PARAM_IS): Add new token.
5106 (externstatic): Use adjust_field_type.
5107 (type_option): Add PARAM_IS.
5108 * gengtype-lex.l: Add rule for typedef of function pointers.
5109 Add rule for PARAM_IS.
5110 (IWORD): Add size_t.
5111 * except.c (exception_handler_label_map): Use gengtype to mark.
5112 (type_to_runtime_map): Likewise.
5113 (mark_ehl_map_entry): Delete.
5114 (mark_ehl_map): Delete.
5115 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
5116 (t2r_mark_1): Delete.
5118 * Makefile.in (gtype-desc.o): Correct dependencies.
5119 (GTFILES): Add hashtab.h.
5120 (genautomata.o): Actually uses hashtab.h.
5122 * Makefile.in (stringpool.o): Add $(GGC_H).
5123 (dwarf2asm.o): Likewise.
5124 (GTFILES): Add hashtable.h.
5125 * c-common.h (struct c_common_identifier): Use gengtype.
5126 * c-decl.h (c_mark_tree): Delete.
5127 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5128 * c-tree.h (struct lang_identifier): Use gengtype.
5129 (union lang_tree_node): New.
5130 (c_mark_tree): Delete prototype.
5131 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
5133 * gengtype-lex.l (IWORD): Allow 'bool'.
5135 * gengtype-yacc.y (ALIAS): New token.
5136 (type_option): New rule.
5137 (option): Use type_option.
5138 * gengtype.c (process_gc_options): New.
5139 (set_gc_used_type): Use it.
5140 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
5141 Add new variable 't' to hold the type of the field being processed.
5142 Add more error checking. Use UNION_P when looking at 'desc' option.
5143 Handle language-specific structures containing other
5144 language-specific structures.
5145 (write_gc_types): Handle 'ptr_alias' option.
5146 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
5147 * ggc-common.c (ggc_pending_trees): Delete.
5148 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
5149 (ggc_mark_trees): Delete.
5150 (gt_ggc_m_tree_node): Delete.
5151 * ggc.h (ggc_pending_trees): Delete.
5152 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
5153 * hashtable.h (ht_identifier): Use gengtype.
5154 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
5155 * langhooks.h (struct lang_hooks): Delete mark_tree.
5156 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
5158 * system.h: Poison LANG_HOOKS_MARK_TREE.
5159 * tree.c (tree_node_structure): New.
5160 * tree.h (struct tree_common): Use gengtype.
5161 (struct tree_int_cst): Likewise.
5162 (struct tree_real_cst): Likewise.
5163 (struct tree_string): Likewise.
5164 (struct tree_complex): Likewise.
5165 (struct tree_vector): Likewise.
5166 (struct tree_identifier): Likewise.
5167 (struct tree_list): Likewise.
5168 (struct tree_vec): Likewise.
5169 (struct tree_exp): Likewise.
5170 (struct tree_block): Likewise.
5171 (struct tree_type): Likewise.
5172 (struct tree_decl): Likewise.
5173 (enum tree_structure_enum): New.
5174 (union tree_node): Use gengtype, with an alias.
5175 (tree_node_structure): Prototype.
5176 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5178 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
5179 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
5180 to LANG_HOOKS_FUNCTION_FINAL.
5181 * Makefile.in (GTFILES): Add bitmap.h.
5182 * except.c (struct eh_region): Mark field 'aka' to be skipped.
5184 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
5185 (alpha_init_machine_status): Give proper type.
5186 * Makefile.in (c-lang.o): Depend on gtype-c.h.
5187 (optabs.o): Depend on gt-optabs.h.
5188 (GTFILES): Add optabs.o.
5189 (gt-optabs.h): Add rule.
5190 * optabs.c: Include gt-optabs.h.
5192 * gengtype.c (set_gc_used_type): Correct some errors in last change.
5193 (write_gc_structure_fields): If a field which should be NULL is
5195 * c-pragma.c: Move struct align_stack and variable alignment_stack
5198 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
5199 * config/xtensa/xtensa.c: Include gt-cris.h.
5200 (struct machine_function): Use gengtype to mark.
5201 * config/mmix/mmix.h (struct machine_function): Use gengtype
5203 * config/cris/t-cris: Add dependencies for gt-cris.h.
5204 * config/cris/cris.c: Include gt-cris.h.
5205 (struct machine_function): Use gengtype to mark.
5206 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
5208 * doc/tm.texi (Per-Function Data): Delete references to
5209 mark_machine_status.
5210 * config/ia64/ia64.c (ia64_override_options): Don't set
5211 mark_machine_status.
5212 * config/i386/i386.c (override_options): Likewise.
5213 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
5214 * config/arm/arm.c (arm_init_expanders): Likewise.
5215 * config/alpha/alpha.c (override_options): Likewise.
5216 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
5217 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
5218 (write_gc_structure_fields): Don't handle 'really' option.
5219 Handle 'maybe_null' option.
5220 (write_gc_types): Handle 'maybe_null' option.
5221 * function.h (struct function): Don't use "really".
5222 (mark_machine_status): Delete declaration.
5223 (mark_lang_status): Delete declaration.
5224 (gt_ggc_mr_machine_function): Delete prototype.
5225 (gt_ggc_mr_language_function): Delete prototype.
5226 * function.c (mark_machine_status): Delete.
5227 (mark_lang_status): Delete.
5228 (gt_ggc_mr_machine_function): Delete.
5229 (gt_ggc_mr_language_function): Delete.
5230 * c-tree.h (mark_c_function_context): Delete prototype.
5231 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
5232 * c-decl.c (struct language_function): Rename from struct
5233 c_language_function. Update uses. Use gengtype to mark.
5234 (mark_c_function_context): Delete.
5235 * c-common.h (struct c_language_function): Rename from struct
5237 (mark_stmt_tree): Delete prototype.
5238 (c_mark_lang_decl): Delete prototype.
5239 (mark_c_language_function): Delete prototype.
5240 * c-common.c (mark_stmt_tree): Delete.
5241 (c_mark_lang_decl): Delete.
5242 (mark_c_language_function): Delete.
5244 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
5245 (lang_bitmap): New typedef. Use where appropriate.
5246 (struct type): Add gc_used field, lang_struct field.
5247 (UNION_P): New macro.
5248 (new_structure): New prototype.
5249 (find_structure): Remove 'pos' parameter. Change all callers.
5250 * gengtype-lex.l: Update for changes to find_structure.
5251 * gengtype-yacc.y (typedef_struct): Use new_structure.
5252 (yacc_ids): Suppress warning.
5253 (type): Use new_structure.
5254 * gengtype.c (string_type): Update for changes to struct type.
5255 (find_structure): Just find a structure, don't worry about
5257 (new_structure): New.
5258 (note_yacc_type): Use new_structure.
5259 (set_gc_used_type): New.
5261 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
5262 (write_gc_types): Handle TYPE_LANG_STRUCT.
5263 (write_gc_marker_routine_for_structure): New.
5264 (main): Call set_gc_used. Add some calls to set_gc_used_type
5265 for places where GCC doesn't use gengtype properly yet.
5266 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
5267 (gt_ggc_m_tree_node): Likewise.
5269 * varasm.c (copy_constant): Call expand_constant if we hit
5270 something we can't recognise.
5272 * ggc-common.c (ggc_mark_rtvec_children): Delete.
5273 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
5274 (lang_mark_false_label_stack): Delete.
5275 * rtl.h (struct rtvec_def): Use gengtype to mark.
5276 * ggc.h (ggc_mark_rtvec): Delete.
5277 (gt_ggc_m_rtvec_def): Delete.
5278 (ggc_mark_nonnull_tree): Delete.
5279 (ggc_mark_rtvec_children): Delete prototype.
5280 (lang_mark_false_label_stack): Delete declaration.
5282 * gengtype.h (note_yacc_type): Add prototype.
5283 * gengtype.c (note_yacc_type): New function.
5284 * gengtype-lex.l: Add lexer support for yacc files.
5285 * gengtype-yacc.y (start): Extract union from yacc files.
5286 (yacc_union): New rule.
5287 (yacc_typematch): New rule.
5288 (yacc_ids): New rule.
5289 (enum_items): Tweak for efficiency.
5290 (optionseq): Likewise.
5292 * c-common.h (struct language_function): Use gengtype.
5293 (struct c_lang_decl): Likewise.
5294 * c-tree.h (struct lang_decl): Likewise.
5295 (struct lang_type): Likewise.
5296 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
5297 tree language substructures.
5299 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
5301 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
5303 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
5305 * stmt.c (struct nesting): Add discriminator. Use gengtype to
5306 mark. Remove 'data.block.cleanup_ptr' field.
5307 (struct stmt_status): Use usual technique to mark struct nesting.
5308 (gt_ggc_mr_nesting_cond): Delete.
5309 (gt_ggc_mr_nesting_loop): Delete.
5310 (gt_ggc_mr_nesting_block): Delete.
5311 (gt_ggc_mr_nesting_case_stmt): Delete.
5312 (expand_start_cond): Set discriminator.
5313 (expand_start_loop): Likewise.
5314 (expand_start_null_loop): Likewise.
5315 (expand_start_bindings_and_block): Set discriminator. Don't set
5317 (expand_decl_cleanup): Replace 'cleanup_ptr' with
5318 &thisblock->data.block.cleanups.
5319 (expand_start_case): Set discriminator.
5320 (expand_start_case_dummy): Set discriminator.
5322 * ggc-callbacks.c: Remove.
5324 * gengtype.h (struct type): Add 'u.s.bitmap' field.
5325 (find_structure): Add 'pos' parameter.
5326 * gengtype-lex.l: Update callers to find_structure.
5327 * gengtype-yacc.y: Likewise.
5328 * gengtype.c (find_structure): Allow for structures to be defined
5329 in multiple language backends.
5330 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
5331 (counter): Rename to gc_counter.
5332 (write_gc_structure_fields): Fail when writing out fields for
5333 an incomplete structure. Ignore arrays of scalars. Handle
5335 (write_gc_types): Reset counter for each procedure written.
5337 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
5338 (free_case_nodes): Delete.
5339 (expand_end_case_type): Delete call to free_case_nodes.
5341 * Makefile.in (cselib.o): Include gt-<filename>.h.
5343 (profile.o): Likewise.
5344 (alias.o): Likewise.
5345 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
5346 alphabetize backend files.
5347 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
5348 * alias.c: Use gengtype for roots.
5349 * c-common.h (struct stmt_tree_s): Use gengtype.
5350 * c-decl.c: Use gengtype for roots.
5351 * cselib.c: Use gengtype for roots.
5352 * expr.c: Use gengtype for roots.
5353 * fold-const.c: Use gengtype for roots.
5354 * gcse.c: Use gengtype for roots.
5355 * gengtype-lex.l: Handle typedefs of function types.
5356 Allow for empty array bounds.
5357 Allow processing to stop on initialisers.
5358 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
5359 (semiequal): New rule.
5360 * gengtype.c (create_file): Tidy output files.
5361 (get_output_file_with_visibility): Fix paren warning. Fix bug
5362 involving multiple input files mapping to one output file.
5363 (write_gc_structure_fields): Skip arrays of scalars.
5364 (write_gc_types): Tidy output files.
5365 (write_gc_root): New function.
5366 (write_gc_roots): Fix bugs, add support for roots that are
5368 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
5369 (ggc_mark_tree_ptr): Delete.
5370 (ggc_add_rtx_root): Delete.
5371 (ggc_add_tree_root): Delete.
5372 (ggc_del_root): Delete.
5373 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
5374 allocate struct initial_value_struct.
5375 * profile.c: Use gengtype for roots.
5376 * sdbout.c: Use gengtype for roots.
5377 * varasm.c (mark_weak_decls): Delete unused prototype.
5378 (mark_const_hash_entry): Delete unused function.
5379 * config/darwin-protos.h: Use gengtype for roots.
5380 (machopic_add_gc_roots): Delete.
5381 * config/arm/arm.c: Use gengtype for roots.
5382 * config/arm/arm.h: Use gengtype for roots.
5383 * config/c4x/c4x-protos.h: Use gengtype for roots.
5384 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
5385 * config/d30v/d30v-protos.h: Use gengtype for roots.
5386 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
5387 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
5388 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
5389 * config/ia64/ia64-protos.h: Use gengtype for roots.
5390 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
5391 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
5392 * config/m68hc11/m68hc11.c (z_reg): Make global.
5393 (z_reg_qi): Make global.
5394 (m68hc11_add_gc_roots): Delete.
5395 * config/mcore/mcore-protos.h: Use gengtype for roots.
5396 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
5397 * config/mips/mips.c (mips_add_gc_roots): Delete.
5398 * config/mips/mips.h: Use gengtype for roots.
5399 * config/mmix/mmix.c (override_options): Use gengtype for roots.
5400 * config/mmix/mmix.h: Use gengtype for roots.
5401 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
5402 * config/mn10200/mn10200.h: Use gengtype for roots.
5403 * config/pa/pa.c: Use gengtype for roots, marking.
5404 (struct deferred_plabel): Use GGC, gengtype.
5405 (pa_add_gc_roots): Delete.
5406 (mark_deferred_plabels): Delete.
5407 * config/pj/pj-protos.h: Use gengtype for roots.
5408 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
5409 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
5410 machopic_add_gc_roots.
5411 * config/rs6000/rs6000.h: Use gengtype for roots.
5412 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
5413 (gt-darwin.h): Add rule.
5414 * config/sh/sh.c: Use gengtype for roots.
5415 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
5416 (gt-sh.h): Add rule.
5417 * config/sparc/sparc.c: Use gengtype for roots.
5418 (sparc_add_gc_roots): Delete.
5419 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
5420 (mark_ultrasparc_pipeline_state): Delete.
5421 * config/sparc/sparc.h: Use gengtype for roots.
5423 * Makefile.in (c-parse.o): Update dependencies.
5424 (c-common.o): Likewise.
5425 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
5426 Add dependencies for the files they generate.
5427 * c-common.c: Replace ggc_add_* uses with GTY annotations.
5428 * c-common.h: Likewise.
5429 * c-decl.c: Likewise.
5430 (gt_ggc_mp_binding_level): Delete.
5431 * c-lang.c: Include gtype-c.h.
5432 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
5434 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
5435 (gt_ggc_mp_align_stack): Delete.
5436 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
5437 * function.c: Replace ggc_add_* uses with GTY annotations.
5438 (gt_ggc_mp_function): Delete.
5439 * function.h: Replace ggc_add_* uses with GTY annotations.
5440 * gengtype.c (lang_names): New.
5441 (NUM_BASE_FILES): New.
5442 (open_base_files): Create language base files.
5444 (get_file_basename): New.
5445 (get_base_file_bitmap): New.
5446 (get_output_file_with_visibility): Rename from get_output_file.
5447 Add more mappings for various C/Objc filenames.
5448 (finish_root_table): New.
5449 (write_gc_roots): Handle dependencies and scoping properly.
5450 * gengtype.h: Add prototypes for new functions.
5451 * ggc-common.c (struct deletable_root): Delete.
5452 (deletables): Delete.
5453 (ggc_add_deletable_root): Delete.
5454 (ggc_mark_roots): No need to deal with deleted functionality.
5455 * ggc.h (ggc_add_deletable_root): Delete prototype.
5456 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
5457 (gtype-objc.h): Add rule to create.
5458 * objc/config-lang.in (gtfiles): New.
5459 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
5460 ggc_add_* with GTY markers. Include gtype-objc.h.
5461 (ggc_mark_imp_list): Delete.
5462 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
5463 * objc/objc-lang.c: Random Whitespace Change.
5465 * except.h (exception_handler_labels): Delete.
5466 (get_exception_handler_labels): New.
5467 * except.c (exception_handler_labels): Delete.
5468 (struct eh_status): Add exception_handler_labels field.
5469 (doing_eh): Don't add exception_handler_labels as root.
5470 (free_eh_status): Don't need to free exception_handler_labels.
5471 (get_exception_handler_labels): New.
5472 (find_exception_handler_labels): Update for move of
5473 exception_handler_labels.
5474 (remove_exception_handler_label): Likewise.
5475 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
5476 * jump.c (rebuild_jump_labels): Likewise.
5477 * loop.c (find_and_verify_loops): Likewise.
5478 * sched-rgn.c (is_cfg_nonregular): Likewise.
5480 * gengtype.c (write_gc_structure_fields): Handle variable-length
5483 * varasm.c (struct weak_syms): Use GGC, gengtype.
5484 (mark_weak_decls): Delete.
5485 (weak_decls): Likewise.
5486 (add_weak): Likewise.
5487 (remove_from_pending_weak_list): Likewise.
5488 (init_varasm_once): Likewise.
5490 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
5491 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
5492 stor-layout.c, regclass.c, and lists.c.
5493 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
5494 gt-regclass.h and gt-lists.h on s-gtype.
5495 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
5496 * except.c: Use gengtype for roots.
5497 * explow.c: Use gengtype for roots. Include gt-explow.h.
5498 * expr.h (init_stor_layout_once): Delete prototype.
5499 * function.c: Use gengtype for roots.
5500 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
5501 * gengtype-yacc.y (start): Can also be an externstatic.
5502 (externstatic): New production.
5503 (struct_fields): Correct array bounds inversion for 2-d arrays.
5504 * gengtype.c (variables): New variable.
5505 (note_variable): New function.
5506 (get_output_file): Include libfuncs.h into gtype-desc.c.
5507 (get_output_file_name): New function.
5508 (write_gc_structure_fields): Suppress warnings.
5509 (write_gc_types): Make static.
5510 (put_mangled_filename): New function.
5511 (write_gc_roots): New function.
5512 (main): Call write_gc_roots.
5513 * gengtype.h (note_variable): Prototype.
5514 (get_output_file_name): Prototype.
5515 (write_gc_types): Delete prototype.
5516 * ggc.h: Clean up unnecessary structure predefinitions.
5517 (struct ggc_root_tab): Define.
5518 (gt_ggc_m_rtx_def): Make function, not macro.
5519 (gt_ggc_m_tree_node): Likewise.
5520 * libfuncs.h: Use gengtype for roots.
5521 * lists.c: Use gengtype for roots. Include gt-lists.h.
5522 (init_EXPR_INSN_LIST_cache): Delete.
5523 * optabs.c: Use gengtype for roots.
5524 (gt_ggc_mp_optab): Delete.
5525 * optabs.h: Use gengtype for roots.
5526 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
5527 * rtl.h: Use gengtype for roots.
5528 (init_EXPR_INSN_LIST_cache): Delete prototype.
5529 * stor-layout.c: Use gengtype for roots.
5530 Include gt-stor-layout.h.
5531 (init_stor_layout_once): Delete.
5532 * toplev.c: Use gengtype for roots. Delete calls to deleted
5534 * tree.c: Use gengtype for roots.
5535 * tree.h: Use gengtype for roots.
5536 * varasm.c: Use gengtype for roots.
5538 * Makefile.in (GTFILES): Add @all_gtfiles@.
5539 * configure: Regenerate.
5540 * configure.in: Construct all_gtfiles from the gtfiles definitions
5542 * gengtype-yacc.y (type): Warn about duplicate structure names.
5543 * gengtype.c (get_output_file): Handle .c files in language
5546 * Makefile.in (GTFILES): Run gengtype on all the config files
5547 and on the target .c file.
5548 * except.c (mark_eh_region): Delete.
5549 (init_eh_for_function): Use GGC on struct eh_status.
5550 (mark_eh_status): Delete.
5551 (free_eh_status): Use GGC.
5552 (expand_eh_region_start): Use GGC to
5553 (collect_eh_region_array): Allocate last_region_number using GGC.
5554 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
5555 (remove_eh_handler): Let GGC free struct eh_region.
5556 (add_call_site): Use GGC to reallocate call_site_record array.
5557 * function.c (init_machine_status): Update calling sequence.
5558 (mark_machine_status): Likewise.
5559 (mark_lang_status): Likewise.
5560 (prepare_function_start): Update init_machine_status call.
5561 (mark_function_status): Delete.
5562 (maybe_mark_struct_function): Delete.
5563 (ggc_mark_struct_function): Delete.
5564 (gt_ggc_mp_function): New.
5565 (gt_ggc_mr_machine_function): New.
5566 (gt_ggc_mr_language_function): New.
5567 (init_function_once): Use canonical names.
5568 * function.h (struct function): Use gengtype.
5569 (init_machine_status): Return the structure.
5570 (mark_machine_status): Take a 'void *'.
5571 (mark_lang_status): Likewise.
5572 * ggc-common.c (ggc_mark_trees): Use canonical name for
5573 ggc_mark_struct_function.
5574 * tree.h (ggc_mark_struct_function): Delete prototype.
5575 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
5576 (alpha_init_machine_status): Likewise.
5577 (override_options): Use canonical name for alpha_mark_machine_status.
5578 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
5579 * config/arm/arm.h (struct machine_function): Use gengtype.
5580 * config/arm/arm.c (arm_mark_machine_status): Delete.
5581 (arm_init_machine_status): Update calling sequence.
5582 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
5583 * config/cris/cris.c (cris_init_machine_status): Update
5585 * config/d30v/d30v.h (struct machine_function): Use gengtype.
5586 * config/d30v/d30v.c (d30v_init_machine_status): Update
5588 (d30v_mark_machine_status): Delete.
5589 * config/i386/i386.c: Include gt-i386.h.
5590 (struct machine_function): Use gengtype.
5591 (ix86_init_machine_status): Update calling sequence.
5592 (ix86_mark_machine_status): Delete.
5593 (override_options): Use canonical namke for ix86_mark_machine_status.
5594 * config/ia64/ia64.h (struct machine_function): Use gengtype.
5595 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
5597 (ia64_mark_machine_status): Delete.
5598 (ia64_override_options): Use canonical name for
5599 ia64_mark_machine_status.
5600 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
5602 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5603 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5604 * gengtype.c (get_output_file): Fix warning.
5605 (main): Add prototype to suppress warning.
5606 * tree.c: Remove tree_hash_mark prototype.
5608 * tree.h (init_stmt): Delete prototype.
5609 * toplev.c (lang_independent_init): Don't call init_stmt.
5610 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5611 (stmt_obstack): Delete.
5612 (POPSTACK): No need to free 'struct nesting'.
5613 (gt_ggc_mr_nesting_cond): Use canonical names.
5614 (gt_ggc_mr_nesting_loop): Use canonical names.
5615 (gt_ggc_mr_nesting_block): Use canonical names.
5616 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5617 (mark_stmt_status): Delete.
5618 (init_stmt): Delete.
5619 (clear_last_expr): Clear both last_expr_type and last_expr_value.
5620 Use it everywhere that last_expr_type was cleared.
5621 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5622 (zap_lists): Delete.
5623 * ggc.h (ggc_add_deletable_root): Prototype.
5624 (mark_stmt_status): Remove prototype.
5625 * ggc-common.c (ggc_add_deletable_root): New.
5626 (ggc_mark_roots): Handle deletable roots.
5627 * function.c (ggc_mark_struct_function): Use canonical name
5628 for mark_stmt_status.
5629 * emit-rtl.c (free_sequence_stack): New.
5630 (start_sequence): Use a freelist for sequences.
5631 (end_sequence): Likewise.
5632 (init_emit_once): Add free_sequence_stack as a deleteable root.
5633 * c-pragma.c Include gt-c-pragma.h.
5634 (struct align_stack): Use gengtype.
5635 (push_alignment): Use GGC for struct align_stack.
5636 (mark_align_stack): Delete.
5637 (gt_ggc_mp_align_stack): New.
5638 (init_pragma): Use canonical name for mark_align_stack.
5639 * c-decl.c: Include gt-c-decl.h.
5640 (struct binding_level): Use gengtype.
5641 (make_binding_level): Use GGC; handle the freelist here.
5642 (pop_binding_level): New.
5643 (pushlevel): Move code into make_binding_level.
5644 (push_label_level): Likewise.
5645 (poplevel): Move code into pop_binding_level.
5646 (pop_label_level): Likewise.
5647 (mark_binding_level): Delete.
5648 (gt_ggc_mp_binding_level): New.
5649 (c_init_decl_processing): Use canonical name for mark_binding_level.
5650 Add free_binding_level as deletable root.
5651 (mark_c_function_context): Use canonical name for mark_binding_level.
5652 * Makefile.in (c-decl.o): Add gt-c-decl.h.
5653 (c-pragma.o): Add gt-c-pragma.h.
5654 (GTFILES): Add c-decl.c and c-pragma.c.
5655 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5657 * tree.c (struct type_hash): Use gengtype.
5658 (init_obstacks): Use canonical name for type_hash_mark.
5659 (type_hash_mark): Delete.
5661 * rtl.h (struct mem_attrs): Use gengtype.
5662 * optabs.h (struct optab): Use gengtype.
5663 * optabs.c (expand_binop): Squish signed/unsigned warning.
5664 (mark_optab): Make local, use canonical name, use autogenerated
5666 (init_optabs): Use canonical name for mark_optab.
5667 (new_optab): Use GGC to allocate optabs.
5668 * ggc.h: Delete mark_optab prototype.
5669 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5670 mem_attrs marker procedure.
5671 * gengtype.c (get_output_file): Include headers in gtype-desc.c
5672 explicitly rather than deducing them from file names.
5673 (write_gc_structure_fields): Handle arrays of structures.
5674 (main): Return non-zero exit code if errors occur during output.
5675 * emit-rtl.c (mem_attrs_mark): Delete.
5676 (init_emit_once): Use canonical name for mem_attrs marker procedure.
5677 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5678 (tree.o): Depend on gt-tree.h.
5679 (GTFILES): Add rtl.h, optabs.h, tree.c.
5680 (gt-tree.h): Add it to s-gtype rule.
5682 * .cvsignore: Ignore gengtype flex/bison generated files.
5683 * Makefile.in (GGC_H): Add gtype-desc.h.
5684 (OBJS): Add gtype-desc.o.
5685 (GEN): Add gengtype.
5686 (STAGESTUFF): Add gengtype.
5687 (varasm.o): Add gt-varasm.h.
5688 (stmt.o): Add gt-stmt.h.
5689 (except.o): Add gt-except.h.
5690 (integrate.o): Add gt-integrate.h.
5692 Add new rules for new files.
5693 * configure: Regenerate.
5694 * configure.in: Correct defaults.h paths.
5695 * emit-rtl.c (mark_sequence_stack): Delete.
5696 (mark_emit_status): Delete.
5697 (start_sequence): Allocate sequence structures using GGC.
5698 (end_sequence): Allocate sequence structures using GGC.
5699 * except.c: Use gengtype for various structures. Include
5701 * expr.c (mark_expr_status): Delete.
5702 * function.c: Use gengtype for various structures. Include
5704 (mark_function_status): Use standard gt_ggc names for marker functions.
5705 (ggc_mark_struct_function): Likewise.
5706 * function.h: Use gengtype for various structures.
5707 * gengtype-lex.l: New file.
5708 * gengtype-yacc.y: New file.
5709 * gengtype.c: New file.
5710 * gengtype.h: New file.
5711 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
5712 the standard names. Remove some now-unnecessary prototypes.
5713 * integrate.c: Use gengtype for various structures. Include
5715 (mark_hard_reg_initial_vals): Delete.
5716 * integrate.h (mark_hard_reg_initial_vals): Delete.
5717 * stmt.c: Use gengtype for various structures. Include
5719 (mark_case_node): Delete.
5720 (mark_goto_fixup): Delete.
5721 (mark_stmt_status): Use standard gt_ggc names for marker functions.
5722 * system.h: Define GTY to empty. In flex/bison files,
5723 don't poison malloc or realloc, instead just define them to
5724 xmalloc and xrealloc.
5725 * varasm.c: Use gengtype for various structures. Include
5726 gt-varasm.h. Use standard gt_ggc names for marker functions.
5727 (mark_pool_constant): Delete.
5728 (mark_varasm_status): Delete.
5729 (decode_rtx_const): #if 0 out non-typesafe hack.
5731 * function.h (free_lang_status): Mark as obsolete.
5732 * function.c (free_lang_status): Mark as obsolete.
5733 * c-decl.c (push_c_function_context): Use GC to allocate and free
5734 struct language_function.
5735 (pop_c_function_context): Likewise.
5736 * c-common.c (mark_c_language_function): Mark struct
5739 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5740 Document that the machine_function structures must be allocated
5741 using GC. Update mark_machine_status documentation.
5742 * function.h: Don't declare free_machine_status.
5743 * function.c (free_machine_status): Don't define.
5744 (free_after_compilation): Don't call free_machine_status.
5745 (ggc_mark_struct_function): Mark f->machine. Call
5746 mark_machine_status only on non-NULL pointers.
5747 * system.h: Poison free_machine_status.
5748 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5749 struct machine_function.
5750 (xtensa_free_machine_status): Delete.
5751 (override_options): Don't set free_machine_status.
5752 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5753 free_machine_status.
5754 (rs6000_init_machine_status): Use GC on struct machine_function.
5755 (rs6000_free_machine_status): Delete.
5756 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5758 (ia64_mark_machine_status): Likewise.
5759 (ia64_free_machine_status): Delete.
5760 (ia64_override_options): Don't set free_machine_status.
5761 * config/i386/i386.c (override_options): Don't set
5762 free_machine_status.
5763 (ix86_init_machine_status): Use GC on struct machine_function.
5764 (ix86_mark_machine_status): Likewise.
5765 (ix86_free_machine_status): Delete.
5766 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5768 (d30v_mark_machine_status): Likewise.
5769 (d30v_free_machine_status): Delete.
5770 (d30v_init_expanders): Don't set free_machine_status.
5771 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5773 (arm_init_machine_status): Likewise.
5774 (arm_free_machine_status): Delete.
5775 (arm_init_expanders): Don't set free_machine_status.
5776 * config/alpha/alpha.c (override_options): Don't set
5777 free_machine_status.
5778 (alpha_init_machine_status): Use GC on struct machine_function.
5779 (alpha_mark_machine_status): Likewise.
5780 (alpha_free_machine_status): Delete.
5782 * varasm.c (compare_constant): Fix typo.
5784 * varasm.c: Don't include obstack.h.
5785 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5786 (struct rtx_const): Give substructures names, improve formatting.
5787 (struct constant_descriptor): Delete.
5788 (struct constant_descriptor_tree): New, based on constant_descriptor.
5789 (const_hash_table): Is a hash table of trees.
5790 (mark_const_hash_entry): Is used for hashes of trees. Mark
5791 constant_descriptor_tree structure.
5792 (mark_const_str_htab_1): Mark deferred_string structure.
5793 (compare_constant): Rewrite to compare trees.
5794 (compare_constant_1): Delete.
5795 (record_constant): Delete.
5796 (record_constant_1): Delete.
5797 (output_constant_def): Use struct constant_descriptor_tree.
5798 Don't duplicate trees twice.
5799 (struct constant_descriptor_rtx): New.
5800 (struct pool_constant): Used for rtx constants.
5801 (init_varasm_status): Update for change to struct varasm_status.
5802 (mark_varasm_status): Likewise.
5803 (free_varasm_status): Delete.
5804 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5805 (record_constant_rtx): Likewise.
5806 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5807 (force_const_mem): Likewise.
5808 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5809 * function.c (free_after_compilation): Don't use free_varasm_status.
5810 * function.h: Don't prototype free_varasm_status.
5812 * ggc-common.c (ggc_realloc): Handle X being NULL.
5814 * ggc-common.c (ggc_realloc): New function.
5815 * ggc.h: Prototype it.
5816 * emit-rtl.c (free_emit_status): Delete.
5817 (init_emit): Allocate emit subarrays using GC.
5818 (gen_reg_rtx): Reallocate subarrays using GC.
5819 (init_emit): Use GC to allocate 'struct emit_status' and its
5821 (mark_emit_status): Mark structure and its subarrays.
5822 * stmt.c (free_stmt_status): Delete.
5823 * expr.c (free_expr_status): Delete.
5824 * function.h: Remove prototypes for deleted functions.
5825 * function.c (free_after_compilation): Don't use deleted functions.
5826 Don't call free() on x_parm_reg_stack_loc.
5827 (free_after_parsing): Don't use free_stmt_status.
5828 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5829 (mark_function_status): Mark x_parm_reg_stack_loc.
5831 * varasm.c (init_varasm_status): Use GC to allocate
5832 'struct varasm_status' and its fields x_const_rtx_hash_table
5833 and x_const_rtx_sym_hash_table.
5834 (mark_varasm_status): Mark them.
5835 (free_varasm_status): Use GC to free them.
5836 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5837 (mark_expr_status): Mark the structure itself.
5838 (free_expr_status): Use GC to free the structure.
5839 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5840 (mark_stmt_status): Mark the 'struct stmt_status' itself.
5841 (init_stmt_for_function): Allocate the structure for GC.
5843 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5844 (equate_type_number_to_die): Likewise.
5845 * tree.h (TYPE_SYMTAB_DIE): New macro.
5846 (struct die_struct): Predeclare.
5847 (struct tree_type): Add field symtab.die. Add a tag
5848 to the union type of field symtab.
5850 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5851 'struct rtvec_def *', not 'struct rtvec_def'.
5853 * function.h (original_arg_vector): Make a real rtvec.
5854 * function.c (ggc_mark_struct_function): Adjust.
5855 * integrate.c (expand_inline_function): Adjust.
5857 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5859 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5860 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5861 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5862 (TARGET_VERSION_CPU): Define according to the
5864 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5866 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5867 if TARGET_SHMEDIA64.
5868 (LINK_DEFAULT_CPU_EMUL): Define according to the
5870 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5871 (SUBTARGET_LINK_SPEC): Define.
5872 (LINK_SPEC): Use SH_LINK_SPEC.
5874 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5875 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5876 and TARGET_SHMEDIA64 which abort, for now.
5877 * config/sh/t-netbsd-sh5: New file.
5878 * config/sh/t-netbsd-sh5-32: New file.
5879 * config/sh/t-netbsd-sh5-64: New file.
5881 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5882 Richard Henderson <rth@redhat.com>
5884 * config/alpha/alpha.c (reg_or_const_int_operand): New.
5885 (some_operand, input_operand): Accept CONST_VECTOR.
5886 (alpha_extra_constraint): Add 'W'.
5887 (alpha_expand_zap_mask): New.
5888 (alpha_expand_builtin_vector_binop): New.
5889 (enum alpha_builtin): New.
5890 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5891 (alpha_init_builtins, alpha_expand_builtin): New.
5892 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5893 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5894 (PREDICATE_CODES): Update.
5895 * config/alpha/alpha-protos.h: Update.
5896 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5897 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5898 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5899 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5900 (movv2si, movv2si_fix, movv2si_nofix): New.
5901 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5902 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5903 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5904 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5905 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5906 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5907 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5908 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5909 builtin_unpkbw, unpkbw): New.
5910 * doc/extend.texi (Alpha Built-in Functions): New.
5912 2002-06-03 Richard Henderson <rth@redhat.com>
5914 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5915 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5917 2002-06-03 Richard Henderson <rth@redhat.com>
5919 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5921 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5922 (const0_operand): New.
5923 (reg_or_fp0_operand, fp0_operand): Remove.
5924 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5925 * config/alpha/alpha-protos.h: Update.
5926 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5927 and fp0_operand with reg_or_0_operand and const0_operand.
5929 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5931 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5933 2002-06-03 Roger Sayle <roger@eyesopen.com>
5935 * gcse.c (cprop_jump): Use single_set to get the pattern
5936 from the setcc argument.
5938 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
5940 * diagnostic.h (diagnostic_count): Move from output_buffer to
5942 (diagnostic_kind_count): Adjust definition.
5944 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
5946 * except.c (except.c): Do not rebuild CFG.
5947 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5950 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5952 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5953 * toplev.c: Include cfglahout.h
5954 * Makefile.in (toplev.c): Add dependnecy.
5956 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
5958 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5959 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5960 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5962 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5964 * config/ns32k/netbsd.h: Update copyright years.
5965 (TARGET_OS_CPP_BUILTINS): Define.
5966 (CPP_PREDEFINES): Remove.
5967 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5968 (TARGET_CPU_CPP_BUILTINS): Define.
5970 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5972 * emit-rtl.c: Fix formatting.
5973 * errors.h: Likewise.
5974 * except.c: Likewise.
5975 * explow.c: Likewise.
5976 * expmed.c: Likewise.
5980 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5982 * config/h8300/elf.h: Fix formatting.
5983 * config/h8300/rtems.h: Likewise.
5985 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5987 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5989 2002-06-02 Tom Tromey <tromey@redhat.com>
5991 * fixinc/fixincl.x: Rebuilt.
5992 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5994 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5997 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5998 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
6002 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
6004 * final.c (final): Allow notes to not have computed addresses;
6005 kill no longer needed STACK_REGS ifdef.
6007 2002-06-02 Richard Henderson <rth@redhat.com>
6009 * gcse.c (bypass_conditional_jumps): Fix typo last change.
6011 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6013 * loop.c (emit_prefetch_instructions): Properly place the address
6016 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
6018 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
6019 (set_block_for_insn): Turn into macro.
6020 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
6021 * cfglayout.c (insn_scopes): Kill.
6022 (scope_to_insns_initialize): Do not use insn_scopes.
6023 (scope_to_insns_finalize): Likewise.
6024 (duplicate_insn_chain): Likewise.
6025 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
6026 * cfgrtl.c (basic_block_for_insn): Kill.
6027 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
6028 (create_basic_block_structure): Use reorder_insns.
6029 (compute_bb_for_insn): Do not use basic_block_for_insn.
6030 (merge_blocks_nomove): Likewise.
6031 (update_bb_for_insn): Likewise.
6032 (verify_flow_info): Likewise.
6033 (set_block_for_insn): Kill.
6034 * combine.c (try_combine): Update gen_rtx_INSN call.
6035 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
6036 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
6038 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
6039 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
6041 (emit_insns_after): Simplify.
6042 (emit_copy_of_insn_after): Copy scope.
6043 * final.c (final_start_function): Lower scopes.
6044 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
6045 * integrate.c (copy_insn_list): Cope scopes.
6046 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
6047 * loop.c (loop_optimize): Do not care block notes.
6048 * print-rtl.c (print_rtx): Print BB.
6049 * recog.c (apply_change_group): Simplify.
6050 * rtl.c (copy_rtx): Handle 'B'.
6051 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
6052 * rtl.h (Field accessors): Update indexes.
6053 * sched-ebb.c (schedule_ebbs): Do not lower notes.
6054 * sched-rgn.c (schedule_insns): Likewise.
6055 * toplev.c (rest_of_compilation): Lower notes.
6056 * unroll.c (unroll_loop): Do not care scoping notes.
6057 (copy_loop_body): Copy scopes.
6059 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6062 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
6064 * rtems.h: Similarly.
6065 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
6066 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
6067 (TARGET_CPU_CPP_BUILTINS): Use.
6069 2002-06-02 Richard Henderson <rth@redhat.com>
6071 * alias.c: Include target.h.
6072 (mark_constant_function): Use targetm.binds_local_p instead
6073 of checking TREE_PUBLIC ourselves.
6074 * Makefile.in (alias.o): Add TARGET_H.
6076 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6078 * c-lex.c: Update copyright and file description.
6080 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6082 * config/fr30/fr30.h: Update to new CPP macros.
6084 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6086 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
6088 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6089 Zack Weinberg <zack@codesourcery.com>
6091 * c-common.c (c_common_init): Override cpplib's default
6092 warn_long_long setting.
6093 * c-lex.c (lex_number): Replace with interpret_integer,
6094 interpret_float, narrowest_unsigned_type and
6095 narrowest_signed_type, taking advantage of the new
6096 cpplib functionality.
6097 * cpperror.c (_cpp_begin_message): If a warning is turned
6098 into an error, avoid printing "warning:".
6099 * cppexp.c (cpp_num_sign_extend): New.
6100 * cppinit.c: Update comment.
6101 * cpplib.h (cpp_num_sign_extend): New.
6102 * tree.h: Update comment.
6104 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6106 * diagnostic.h (struct diagnostic_context): Add new member
6108 (internal_error_function): Remove declaration.
6109 * diagnostic.c (internal_error_function): Remove definition..
6110 (internal_error): Adjust use.
6112 2002-06-02 Richard Henderson <rth@redhat.com>
6114 * rtl.h (CC0_P): New.
6115 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
6116 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
6117 (bypass_block): Save old dest block for dump text.
6118 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
6119 Allow only true SET insns, not single_set.
6121 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6123 * diagnostic.c (diagnostic_finish): Rename to output_flush.
6124 (clear_disgnostic_info): Rename to output_clear_data. Use false
6125 instead of 0 for boolean value.
6126 Adjust function call throughout.
6128 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6130 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
6131 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
6133 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6135 * d30v.h (CPP_PREDEFINES): Replace with
6136 (TARGET_CPU_CPP_BUILTINS): New.
6138 2002-06-02 Roger Sayle <roger@eyesopen.com>
6140 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
6142 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
6144 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
6146 2002-06-02 Richard Henderson <rth@redhat.com>
6148 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
6150 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
6152 Support for C++ constructors/destructors.
6153 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
6154 instead of looping if main() returns.
6155 (asm_file_start): Output global symbols that cause .data and .bss
6156 initialization code to be linked in, unconditionally for now.
6157 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
6158 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
6159 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6161 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
6162 (__tablejump__): New.
6163 (__do_copy_data, __do_clear_bss): New.
6164 (__do_global_ctors, __do_global_dtors): New.
6165 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
6168 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6170 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
6171 (CPP_SPEC, CPP_PREDEFINES): Kill.
6172 * c4x/rtems.h (CPP_PREDEFINES): Kill.
6173 (TARGET_OS_CPP_BUILTINS): New.
6175 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
6177 * Makefile.in (tracer.o): New.
6178 * params.def (TRACER_*): New options.
6179 * rtl.h (tracer): Declare.
6180 * timevar.def (TV_TRACER): New.
6181 * toplev.c (dump_file_index): Add DFI_tracer.
6182 (dump_file_info): Add tracer.
6184 (lang_indepdenent_options): Add tracer.
6185 (rest_of_compilation): Call tracer.
6186 * tracer.c: New file.
6187 * invoke.texi (-ftracer): Document.
6188 (--param tracer-*): Document.
6190 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
6192 * tree-inline.c (expand_call_inline): Make the statement
6193 expression we generate have a COMPOUND_STMT.
6195 2002-06-01 Roger Sayle <roger@eyesopen.com>
6197 * gcse.c (cprop_cc0_jump): Function deleted.
6198 (cprop_jump): Take an additional argument which is the possibly
6199 NULL cc setting insn immediately before the conditional jump.
6200 When a MODE_CC set is present, substitute it into the JUMP_INSN
6201 before attempting the constant propagation.
6202 (cprop_insn): Recognize cc setters followed by conditional jumps
6203 as a special case. Use cprop_jump instead of cprop_cc0_jump.
6204 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
6205 (find_bypass_set): New function based upon find_avail_set used by
6206 cprop, but finds constant expressions available at the end of
6208 (bypass_block): New function. Given a basic block that begins
6209 with a conditional jump and multiple incoming edges, perform
6210 the jump bypass optimization.
6211 (bypass_conditional_jumps): New function. Call bypass_block with
6212 each suitable basic block in the CFG using a simple single pass.
6214 2002-06-01 Roger Sayle <roger@eyesopen.com>
6216 * tree.c (real_minus_onep): New function to test for -1.0.
6217 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
6219 2002-06-01 Roger Sayle <roger@eyesopen.com>
6221 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
6222 and "!p && !q" into "(p|q) == 0" under suitable conditions.
6224 2002-06-01 Andreas Jaeger <aj@suse.de>
6226 * cppexp.c (cpp_classify_number): Cast precission to int for
6227 correct printf format.
6229 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
6231 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
6232 expected, but don't really exist: atmega83, atmega85, attiny10.
6233 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
6234 emulations for all devices.
6235 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
6236 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
6238 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
6240 * config/h8300/h8300-protos.h: Add a prototype for
6241 h8300_shift_needs_scratch_p.
6242 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
6243 * config/h8300/h8300.h (OK_FOR_R): New.
6244 (OK_FOR_S): Likewise.
6245 (OK_FOR_T): Likewise.
6246 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
6247 * config/h8300/h8300.md (anonymous shift patterns): Use
6248 constraints R, S, and T.
6250 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6252 * basic-block.h (struct basic_block_def): New field loop_father.
6253 (BB_VISITED): New flag.
6254 (struct loop): New field pred, removed field shared.
6255 (struct loops): New field parray.
6256 (LOOP_EXITS_DOMS): Removed.
6257 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
6258 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
6259 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
6260 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
6261 verify_loop_structure): Declare.
6262 * cfg.c (entry_exit_blocks): Initialize loop_father field.
6263 * cfganal.c (dfs_enumerate_from): New function.
6264 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
6265 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6266 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
6267 flow_loop_dump, flow_loops_dump, flow_loops_free,
6268 flow_loop_tree_node_add, flow_loop_level_compute,
6269 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
6270 flow_loop_outside_edge_p): Modified for new infrastructure.
6271 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
6272 redirect_edge_with_latch_update, flow_loop_free): New static functions.
6273 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
6274 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
6275 find_common_loop, verify_loop_structure, loop_latch_edge,
6276 loop_preheader_edge): New functions.
6277 (flow_loops_cfg_dump): Do not show dominators, as this information
6278 does not remain up to date long.
6279 (flow_loops_find): Store results in new format.
6280 * predict.c (propagate_freq, estimate_probability,
6281 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
6284 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
6286 * except.c (nothrow_function_p): Walk epilogue delay list
6287 checking the insn, not the chain for potential throws.
6289 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6291 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
6292 (install): Refer to install-cpp directly.
6293 (uninstall-cpp): Folded into uninstall rule.
6294 * configure.in: Delete all code relating to --disable-cpp.
6295 * configure: Regenerate.
6296 * config/t-install-cpp: Delete.
6298 2002-05-31 Richard Henderson <rth@redhat.com>
6300 * configure.in (HAVE_AS_TLS): Add alpha tests.
6301 * configure: Rebuild.
6302 * config/alpha/alpha.c (TARGET_AS_TLS): New.
6303 (alpha_tls_size, alpha_tls_size_string): New.
6304 (overide_options): Set it. Always install machine_status hooks.
6305 (input_operand): Accept got tls predicates.
6306 (local_symbol_p): Merge into ...
6307 (local_symbolic_operand): ... here. Reject tls symbols.
6308 (global_symbolic_operand): Likewise.
6309 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
6310 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
6311 (tp16_symbolic_operand, tp32_symbolic_operand): New.
6312 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
6313 (alpha_encode_section_info): Handle TLS symbols.
6314 (alpha_strip_name_encoding): Likewise.
6315 (alpha_legitimate_address_p): Likewise.
6316 (alpha_legitimize_address): Likewise.
6317 (alpha_expand_mov): Early exit to avoid nop moves.
6318 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
6319 (alpha_init_machine_status, alpha_mark_machine_status,
6320 alpha_free_machine_status): Always define.
6321 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
6322 (print_operand, print_operand_address): Add TLS relocs.
6323 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
6324 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
6325 (TARGET_SWITCHES): Add -mtls-kernel.
6326 (alpha_tls_size, alpha_tls_size_string): New.
6327 (TARGET_OPTIONS): Add -mtls-size=.
6328 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
6329 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
6330 (ASM_OUTPUT_LABELREF): Skip %.
6331 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
6332 (PREDICATE_CODES): Update.
6333 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
6334 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
6335 UNSPEC_TP, UNSPECV_SET_TP): New.
6336 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
6337 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
6338 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
6339 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
6340 (call_value_osf_2_er): Accept anything as op4.
6341 * config/alpha/alpha-protos.h: Update.
6342 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
6344 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6346 * cppinit.c (append_include_chain): Always pay attention to
6347 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
6350 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
6352 * target.h: Fix formatting.
6353 * timevar.h: Likewise.
6354 * tlink.c: Likewise.
6355 * toplev.c: Likewise.
6356 * toplev.h: Likewise.
6358 * tree-dump.h: Likewise.
6360 * tree-inline.h: Likewise.
6361 * unroll.c: Likewise.
6362 * unwind-dw2.c: Likewise.
6363 * unwind-dw2-fde.c: Likewise.
6364 * unwind-dw2-fde-glibc.c: Likewise.
6365 * unwind-dw2-fde.h: Likewise.
6366 * unwind.h: Likewise.
6367 * unwind-sjlj.c: Likewise.
6368 * varasm.c: Likewise.
6369 * varray.h: Likewise.
6370 * vmsdbg.h: Likewise.
6371 * vmsdbgout.c: Likewise.
6372 * xcoffout.h: Likewise.
6374 2002-05-31 Igor Shevlyakov <igor@microunity.com>
6376 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
6377 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
6379 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
6381 * gcc.c (cpp_unique_options): Remove "-d" options.
6382 (cpp_debug_options): New spec string.
6383 (default_compilers): Use it.
6384 * objc/lang-specs.h: Likewise.
6386 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
6388 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
6389 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
6390 * gcc/mklibgcc.in: Likewise.
6391 * gcc/config/arc/t-arc: Likewise.
6392 * gcc/configure.in: Likewise.
6393 * gcc/configure: Regenerate.
6395 2002-05-31 Stan Shebs <shebs@apple.com>
6396 Turly O'Connor <turly@apple.com>
6398 * c-decl.c (struct binding_level): Change int field n_incomplete
6399 to tree list incomplete_list.
6400 (clear_binding_level): Init field with NULL.
6401 (pushdecl): Add incomplete type to list.
6402 (mark_binding_level): Mark the incomplete list.
6403 (finish_struct): Scan the incomplete list for types instead
6404 of all decls in the current binding level.
6406 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6408 * pa.c (output_millicode_call): Add missing '%' characters.
6409 (output_call): Likewise.
6411 2002-05-31 David Edelsohn <edelsohn@gnu.org>
6413 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
6414 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6416 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
6418 * varasm.c (mark_constant_pool): Walk epilogue delay list
6419 checking the insn, not the chain for potential constants.
6421 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
6423 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
6425 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
6427 * i386.c (classify_argument): Properly handle base types.
6429 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
6430 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
6433 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6435 * gcse.c (gcse_emit_move_after): New.
6436 (pre_delete, hoist_store): Use it.
6438 * reload1.c (emit_input_reload_insns): Use constrain_operands
6439 instead of constraint_accepts_reg_p to verify optimization.
6440 (constraint_accepts_reg_p): Kill
6442 * reload1.c (reload_cse_delete_noop_set): Kill.
6443 (reload_cse_simplify): use delte_insn_and_edges.
6445 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6447 * cfgloop.c (flow_loops_find): Initialize first and last fields
6450 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
6452 * c-common.c (builtin_define_std): Correct logic.
6454 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6456 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
6457 (output_call): Likewise.
6459 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6461 * pa.c: Move output.h include after tree.h include.
6462 (pa_asm_output_mi_thunk): Constify identifier lab.
6464 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6466 * config/ns32k/ns32k.h: Define named constants for the
6467 bits in target_flags and use them.
6468 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
6470 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6472 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
6473 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
6474 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
6475 default scheduling model.
6476 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
6477 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
6478 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
6479 * doc/install.texi (hppa*-*-*): Document default scheduling.
6481 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6483 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
6485 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6487 * config.gcc (ns32k-*-netbsd*): Set tm_file to
6488 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
6489 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
6490 netbsd.h, or netbsd-aout.h.
6492 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
6494 * longlong.h (count_trailing_zeros): Add missing \, and clean up
6495 whitespace in __ns32000__ case.
6497 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
6499 * expr.c (expand_expr): Output partially zeroed out vectors with
6500 output_constant_def.
6502 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6504 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
6506 (shl*-*-netbsdelf*): New targets.
6507 * config/sh/netbsd-elf.h: New file.
6508 * config/sh/t-netbsd: New file.
6510 2002-05-30 Richard Henderson <rth@redhat.com>
6511 Eric Botcazou <ebotcazou@multimania.com>
6513 PR optimization/6822
6514 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
6515 to unsigned int for op1 comparisons. Use gen_int_mode.
6517 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
6519 * expmed.c (const_mult_add_overflow_p): New.
6520 * expr.h: Declare it.
6521 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
6522 Don't eliminate the biv if the giv has a constant multiplier and
6523 the rhs argument of the comparison does satisfy the predicate.
6524 Use expand_mult_add to compute the replacement constant.
6526 2002-05-30 Osku Salerma <osku@iki.fi>
6528 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
6529 (c_common_get_alias_set): Handle it.
6530 * doc/extend.texi: Document it.
6532 2002-05-30 Richard Henderson <rth@redhat.com>
6534 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6535 * toplev.c (process_options): Don't check it.
6536 * doc/tm.texi: Don't document it.
6537 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
6538 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6539 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
6540 frame pointer optimization if current_function_profile.
6542 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
6544 * langhooks.c: Fix formatting.
6545 * langhooks.h: Likewise.
6547 * libgcc2.c: Likewise.
6548 * lists.c: Likewise.
6549 * local-alloc.c: Likewise.
6553 2002-05-30 Marc Espie <espie@openbsd.org>
6555 * config.gcc (sparc64-*-openbsd*): New.
6556 * config/sparc/openbsd1-64.h: New.
6557 * config/sparc/openbsd64.h: New.
6559 2002-05-30 Jeff Law <law@redhat.com>
6561 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
6562 a dead insn with a REG_RETVAL note when the entire libcall is not
6563 dead and remove the associated REG_LIBCALL note at the same time.
6565 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
6567 * lcm.c (output.h): #include.
6568 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
6569 as an ordinary block.
6570 (optimize_mode_switching): Don't pretend that the exit block is
6571 an ordinary block, or handle sucessors of entry block specially.
6572 Instead, split edges from entry block and to exit block, and
6573 put a computing definition on the thus gained post-entry-block,
6574 and a need on the pre-exit-block.
6576 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6578 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
6579 * rtl.texi: Document 'B'
6581 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6583 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
6585 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
6587 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
6589 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6590 const0_rtx instead of NULL_RTX when in error.
6591 (altivec_expand_abs_builtin): Same.
6592 (rs6000_expand_binop_builtin): Same.
6593 (altivec_expand_predicate_builtin): Same.
6594 (altivec_expand_stv_builtin): Same.
6595 (rs6000_expand_ternop_builtin): Same.
6596 (altivec_expand_builtin): Same.
6598 2002-05-29 David S. Miller <davem@redhat.com>
6600 * rtl.h (clear_emit_caches): Delete.
6601 * integrate.c (output_inline_function): Don't call it.
6602 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6603 (clear_emit_caches): Delete definition.
6604 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6606 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
6608 * config/mmix/mmix.c: Include real.h.
6609 (mmix_constant_address_p): Remove redundant test before switch.
6611 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6613 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6614 only if not already defined.
6616 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6618 * config/h8300/h8300-protos.h: Remove prototypes for
6619 ok_for_bclr and small_power_of_two.
6620 * config/h8300/h8300.c (small_power_of_two): Remove.
6621 (ok_for_blcr): Likewise.
6622 (fix_bit_operand): Make WHAT deal with an integer instead of a
6623 constraint character.
6624 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6625 (CONST_OK_FOR_P): Likewise.
6626 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6627 CONST_OK_FOR_P any more.
6628 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6633 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6635 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6636 (CPP_PREDEFINES): Make sure this is undefined.
6637 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6638 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
6639 or -U__MIPSEB__ before defining one or the other. Instead,
6640 use %(subtarget_endian_default) if neither -EB nor -EL are
6642 (SUBTARGET_EXTRA_SPECS): Define.
6643 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
6646 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6648 * doc/md.texi (Patterns): Note pattern condition pitfall
6651 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
6653 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6654 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
6655 ternary operations from here...
6656 (rs6000_expand_builtin): ...to here.
6657 New argument expandedp.
6658 Change all instances of altivec_expand_binop_builtin to
6659 rs6000_expand_binop_builtin.
6660 (altivec_expand_unop_builtin): Rename to
6661 rs6000_expand_unop_builtin.
6662 (altivec_expand_binop_builtin): Rename to
6663 rs6000_expand_binop_builtin.
6664 (altivec_expand_ternop_builtin): Rename to
6665 rs6000_expand_ternop_builtin.
6667 2002-05-29 Richard Henderson <rth@redhat.com>
6669 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6670 (TARGET_BI_ARCH): Likewise.
6671 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6672 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6673 (TARGET_64BIT_DEFAULT): Default to 0.
6674 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6676 2002-05-29 Richard Henderson <rth@redhat.com>
6678 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6679 (get_pc_thunk_name): New.
6680 (output_set_got): Use it.
6681 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6682 into linkonce sections.
6684 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6686 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6687 (CPP_PREDEFINES): Make sure this is undefined.
6688 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6689 (CPP_SUBTARGET_SPEC): Don't provide different versions for
6690 default-32 and default-64. Just always use %(netbsd_cpp_spec).
6691 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6692 cpp_subtarget_spec64. Add netbsd_cpp_spec.
6693 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6694 (CPP_PREDEFINES): Make sure this is undefined.
6695 (SUBTARGET_EXTRA_SPECS): Define.
6696 (CPP_SPEC): Use %(netbsd_cpp_spec).
6698 2002-05-29 Jeff Law <law@redhat.com>
6700 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6702 * flow.c (propagate_one_insn): Do not remove a dead insn if it
6703 contains a REG_RETVAL note.
6705 * haifa-sched (sched_analyze): Remove another useless clearing
6706 of SCHED_GROUP_P I missed yesterday.
6708 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6709 * pa.c (pa_asm_output_mi_thunk): New function.
6710 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6712 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6713 Marek Michalkiewicz <marekm@amelek.gda.pl>
6715 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6716 (avr_asm_only_p): Make non-static.
6717 (enum avr_arch): Remove.
6718 (avr_arch_types): New.
6719 (avr_mcu_types): Update.
6720 (avr_override_options): Use avr_arch_types table instead of switch.
6721 * avr.h (CPP_PREDEFINES): Die.
6722 (avr_base_arch_macro, avr_extra_arch_macro): New.
6723 (TARGET_CPU_CPP_BUILTINS): New.
6724 (CPP_SPEC, EXTRA_SPECS): Simplify.
6725 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6726 CPP_AVR5_SPEC): Die.
6728 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6730 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6731 NETBSD_OS_CPP_BUILTINS_AOUT.
6732 (SUBTARGET_EXTRA_SPECS): Define.
6733 (CPP_SPEC): Use %(netbsd_cpp_spec).
6735 2002-05-29 Richard Henderson <rth@redhat.com>
6737 * config/i386/i386.c (ix86_output_function_epilogue): New.
6738 (TARGET_ASM_FUNCTION_EPILOGUE): New.
6739 (pic_label_name): Remove.
6740 (pic_labels_used): New.
6741 (ix86_asm_file_end): Emit one pc load stub for each register used.
6742 (output_set_got): Generate deep pc load to any register.
6743 (ix86_select_alt_pic_regnum): New.
6744 (ix86_save_reg): Don't save pic register if we can find a valid
6745 call-clobbered replacement.
6746 (ix86_expand_prologue): If we found a valid replacement, renumber
6747 pic_offset_table_rtx.
6748 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6749 pic_offset_table_rtx after reload.
6750 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6751 * config/i386/i386.md (set_got): Make insn, not expander.
6752 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6754 2002-05-29 Richard Henderson <rth@redhat.com>
6756 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6757 alignment for alloca.
6759 2002-05-29 Richard Henderson <rth@redhat.com>
6761 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6762 (print_operand_address): Only add rip for symbolic addresses
6763 for which we do not have another relocation type.
6765 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6767 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6768 (EXTRA_SPECS): Add netbsd_cpp_spec.
6769 (CPP_SPEC): Use %(netbsd_cpp_spec).
6770 (CPP_PREDEFINES): Remove.
6771 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6772 (EXTRA_SPECS): Define.
6773 (CPP_SPEC): Use %(netbsd_cpp_spec).
6774 (CPP_PREDEFINES): Remove.
6776 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6778 PR preprocessor/6844
6779 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6782 2002-05-29 Eric Christopher <echristo@redhat.com>
6784 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6785 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6787 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
6789 * config/fr30/fr30.md: Remove previous restriction on splits.
6790 Enforce conformance through gen_lowpart and cont_int_operand.
6791 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
6792 as the assembler does not support ".bss".
6794 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6796 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6797 (CPP_PREDEFINES): Remove.
6798 (SUBTARGET_EXTRA_SPECS): Define.
6799 (CPP_SPEC): Use %(netbsd_cpp_spec).
6800 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6801 (CPP_PREDEFINES): Remove.
6802 (SUBTARGET_EXTRA_SPECS): Define.
6803 (CPP_SPEC): Use %(netbsd_cpp_spec).
6804 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6805 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6806 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6807 Add netbsd_cpp_spec.
6808 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6810 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6811 Zack Weinberg <zack@codesourcery.com>
6813 * cppexp.c (cpp_num): Move to cpplib.h.
6814 (CPP_ERROR): Remove.
6815 (interpret_float_suffix, interpret_int_suffix): New.
6816 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6817 (cpp_classify_number, cpp_interpret_integer): New.
6818 (interpret_number): Remove.
6819 (eval_token): Update to use new routines.
6820 * cpphash.h (cpp_num_part): Move to cpplib.h.
6821 * cppinit.c (cpp_post_options): Set warn_long_long.
6822 * cpplib.h (struct cpp_options): Add warn_long_long.
6823 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6824 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6825 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6826 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6827 cpp_interpret_integer): New.
6829 2002-05-29 Joel Sherrill <joel@OARcorp.com>
6831 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6833 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6835 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6836 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6837 (CPP_SUBTARGET_SPEC): Define.
6838 (SUBTARGET_EXTRA_SPECS): Define.
6841 2002-05-29 Chris Lattner <sabre@nondot.org>
6843 * ssa.c (rename_insn_1): Rename uses of undefined registers to
6844 prevent confusion if/when the register is defined.
6846 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6849 * config/cris/cris.md: Fix typos and thinkos in comments.
6850 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6852 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6853 ("*mov_sideqi_mem"): Similar, but for operand 3.
6854 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6855 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6856 Remove spurious mode specifier on operand 2.
6858 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6860 * config/h8300/h8300-protos.h: Remove the prototype for
6862 Add prototypes for single_one_operand and single_zero_operand.
6863 * config/h8300/h8300.c (o_operand): Remove.
6864 (single_one_operand): New.
6865 (single_zero_operand): Likewise.
6866 (print_operand): For 'V' operand, and the operand with 0xff.
6867 For 'V' and 'W' operands, do not and the bit position with 7.
6868 * config/h8300/h8300.md (various anonymous patterns): Replace
6869 use of exact_log2 with single_one_operand/single_zero_operand.
6871 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6873 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6875 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6877 * config/s390/s390.c (legitimate_pic_operand_p): Do not
6878 accept symbolic LARL operands.
6879 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
6882 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
6884 * config/s390/s390.md (cmpstr_64/31): Mark whole
6885 input registers as used.
6887 2002-05-28 Richard Henderson <rth@redhat.com>
6889 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6890 not current_function_uses_pic_offset_table and
6891 current_function_uses_const_pool; examine current_function_profile.
6892 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
6893 input to blockage if needed.
6894 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6895 (legitimize_pic_address): Likewise. Set regs_ever_live for
6896 pic_offset_table_rtx when invoked during reload.
6897 * config/i386/i386.h (FINALIZE_PIC): Remove.
6898 * config/i386/i386.md (tablejump): Reformat. Do not set
6899 current_function_uses_pic_offset_table.
6900 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6901 (blockage): Accept anything as operand 0.
6903 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6905 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6906 common CPP built-ins for all NetBSD a.out targets.
6907 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6908 common CPP built-ins for all NetBSD ELF targets.
6909 * config/netbsd.h: Add missing notice.
6910 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6911 for all NetBSD targets.
6912 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6913 for all NetBSD targets using an LP64 code model.
6914 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6917 2002-05-28 Richard Henderson <rth@redhat.com>
6919 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6920 update if UPDATE_LIFE_LOCAL.
6922 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6924 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6926 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6927 Jason R. Thorpe <thorpej@wasabisystems.com>
6929 config/sh reorganization to factor out endianness and coff:
6931 * config/sh/little.h: New file.
6932 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6933 defined, define to 0 to select big-endian.
6934 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
6935 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6936 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6937 * config/sh/t-be: New file.
6938 * config/sh/t-le: New file.
6940 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6941 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6942 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6943 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6944 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6945 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6946 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6947 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6948 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6949 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6950 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6951 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6952 (LINK_SPEC): Define to SH_LINK_SPEC.
6953 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6954 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6955 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6956 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6957 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6958 * config/sh/coff.h: New file.
6959 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6960 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6961 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6962 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6963 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6964 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6965 (PTRDIFF_TYPE): Likewise.
6966 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6967 (CPP_PREDEFINES): Don't define.
6968 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6969 (LINK_SPEC): Define to SH_LINK_SPEC.
6970 (LINK_EMUL_PREFIX): Redefine.
6971 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6972 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6973 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6974 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6975 (TARGET_OS_CPP_BUILTINS): Define.
6976 (TARGET_DEFAULT): Redefine.
6977 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6978 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6979 (LINK_SPEC): Don't redefine.
6980 (LINK_DEFAULT_CPU_EMUL): Redefine.
6981 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6982 * sh.c (sh_asm_named_section): Don't declare / define.
6983 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6984 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6985 (sh64-*-elf* tm_file): Likewise.
6986 (sh-*-rtemself* tm_file): Likewise.
6987 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
6988 (sh-*-linux* tmake_file): Add sh/t-le.
6989 (sh-*-rtems* tm_file): Add sh/coff.h
6990 (sh-*-* tm_file): Likewise.
6992 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6994 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6995 CONSTANT_POOL_ADDRESS_P.
6997 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6999 2002-05-28 David Edelsohn <edelsohn@gnu.org>
7000 Jeff Law <law@redhat.com>
7002 * optabs.c (expand_binop): Fix nwords sign warnings.
7003 generate pseudo for add_optab.
7005 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
7006 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
7008 2002-05-28 Marc Espie <espie@openbsd.org>
7010 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
7011 inherited from gas.h.
7012 (ASM_QUAD): Undef. OpenBSD does not support it.
7014 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
7016 * doc/install.texi (binaries): Change mingw binaries
7017 link to www.mingw.org.
7019 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7021 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
7023 2002-05-28 Richard Henderson <rth@redhat.com>
7025 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
7026 bottom alignment for leaf functions.
7028 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7030 * config/pa/milli32.S, config/pa/lib1funcs.asm,
7031 config/sparc/sol2-g1.asm: Delete unused files.
7033 2002-05-28 Richard Henderson <rth@redhat.com>
7035 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
7037 * flow.c (calculate_global_regs_live): Rename call_used to
7038 invalidated_by_call. Initialize from regs_invalidated_by_call
7039 instead of call_used_regs.
7041 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
7044 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7046 * tree.h: Don't include real.h.
7047 Forward-declare struct realvaluetype.
7048 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
7050 (TREE_REAL_CST_PTR): New accessor.
7051 (TREE_REAL_CST): Update.
7052 * real.h: Include machmode.h.
7053 (realvaluetype): Make it struct realvaluetype, not a typedef.
7054 (build_real): Prototype here.
7056 * tree.c: Include real.h.
7057 (build_real): Allocate the REAL_VALUE_TYPE as a separate
7058 object in GC memory, set TREE_REAL_CST_PTR to point to it.
7059 (build_real_from_int_cst): Use build_real.
7060 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
7063 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
7064 fold-const.c, print-tree.c, real.c: Include real.h.
7065 * Makefile.in: Update dependency lists.
7067 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7069 * basic-block.h (last_basic_block): Declare.
7070 (expunge_block_nocompact): Declaration removed.
7071 (compact_blocks): Declare.
7072 * cfg.c (last_basic_block): New variable.
7073 (expunge_block_nocompact): Removed.
7074 (expunge_block): Do not compact basic blocks.
7075 (compact_blocks): New.
7076 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
7078 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
7080 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
7081 real positions of blocks.
7082 (delete_unreachable_blocks): Simplified -- quadratic behavior now
7084 (cleanup_cfg): Compact blocks.
7085 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
7086 basic_block_info varray.
7087 (flow_delete_block): Comment update.
7088 (back_edge_of_syntactic_loop_p): Modify position check code.
7089 (verify_flow_info): Update checking.
7090 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
7091 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7092 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
7093 indices no longer change.
7094 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
7096 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
7097 * profile.c (branch_prob): Compact blocks.
7098 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
7101 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
7103 * config/h8300/h8300.md (two anonymous patterns): New.
7105 2002-05-28 David S. Miller <davem@redhat.com>
7107 * config/sparc/sparc.md (cpu): Tidy.
7108 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
7110 (in_call_delay): Delete reference to 'return' type.
7111 (eligible_for_return_delay, in_return_delay, define_delay
7112 referencing those): Delete.
7113 (rest of file): Use new type attributes as appropriate.
7114 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
7115 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
7116 * config/sparc/ultra1_2.md (us1_single): New reservation.
7117 (us1_ialuX): Likewise.
7118 * config/sparc/ultra3.md (us3_single): Likewise.
7119 (us3_ialuX): Likewise.
7120 (us3_imul, us3_idiv): Tweak.
7122 2002-05-28 Richard Henderson <rth@redhat.com>
7124 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
7127 2002-05-28 Richard Henderson <rth@redhat.com>
7129 * config.gcc: Obsolete mn10200.
7131 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
7133 * cppexp.c (interpret_number): Optimize for single-digit
7134 and less-than-half-precision cases.
7135 (num_trim, num_positive, num_div_op): Cast constants.
7137 2002-05-27 Bo Thorsen <bo@suse.de>
7139 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
7140 3.1 branch. The file was made by Jakub Jelinek.
7141 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
7142 support so multilib doesn't break. And don't define this at all
7143 when -Dinhibit_libc is used.
7144 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
7145 * config/i386/t-linux64: Implement full multilib support. Patch
7146 originally done by Andreas Jaeger and Jakub Jelinek.
7148 2002-05-27 Roger Sayle <roger@eyesopen.com>
7150 * c-common.c: Add support for __attribute__((nothrow)) to specify
7151 that a function cannot throw an exception (using TREE_NOTHROW).
7152 (handle_nothrow_attribute): New function to process this attribute.
7154 * doc/extend.texi: Document the new nothrow function attribute.
7156 2002-05-27 H.J. Lu (hjl@gnu.org)
7158 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
7159 (num_positive): Likewise.
7160 (num_div_op): Likewise.
7162 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7164 * c-common.c (c_common_init): Always use intmax_t.
7166 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7168 * c-common.c (c_common_init): Use intmax_t for now.
7170 2002-05-24 Andrew Haley <aph@redhat.com>
7172 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
7173 if T is a boolean type.
7175 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7177 * basic-block.h (last_basic_block): Defined as synonym for
7179 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
7180 flow_depth_first_order_compute, flow_preorder_transversal_compute,
7181 flow_dfs_compute_reverse_init): Replaced relevant occurences of
7182 n_basic_blocks with last_basic_block.
7183 * cfgbuild.c (make_edges): Likewise.
7184 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
7185 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
7186 * combine.c (combine_instructions): Likewise.
7187 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
7188 iterative_dataflow_bitmap): Likewise.
7189 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7190 calc_idoms, idoms_to_doms): Likewise.
7191 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
7193 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
7194 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
7195 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
7196 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
7197 delete_null_pointer_checks, compute_code_hoist_vbeinout,
7198 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7199 compute_store_table, build_store_vectors): Likewise.
7200 * haifa-sched.c (sched_init): Likewise.
7201 * ifcvt.c (if_convert): Likewise.
7202 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7203 pre_edge_lcm, compute_available, compute_nearerout,
7204 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
7206 * predict.c (estimate_probability, process_note_prediction,
7207 note_prediction_to_br_prob): Likewise.
7208 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
7209 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7210 * regrename.c (copyprop_hardreg_forward): Likewise.
7211 * resource.c (init_resource_info): Likewise.
7212 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
7213 init_regions, schedule_insns): Likewise.
7214 * ssa-ccp.c (ssa_const_prop): Likewise.
7215 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7216 * ssa.c (compute_dominance_frontiers,
7217 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
7219 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
7220 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
7223 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
7225 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
7227 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
7228 hoist_insn_after, hoist_insn_to_edge): New.
7230 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
7232 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
7233 (PROP_FINAL): Include.
7234 * flow.c (life_analysis, update_life_info,
7235 init_propagate_block_info, mark_set_1, mark_used_rgs):
7236 Support SCAN_DEAD_STORE.
7238 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7240 * c-common.c (c_common_init): Set CPP arithmetic precision.
7241 * cppexp.c (cpp_num_part): Move typedef ...
7242 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
7243 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
7244 (sanity_checks): Update.
7246 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
7248 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
7249 (mkheaders): New rule.
7250 (install-mkheaders): New rule.
7251 * configure.in (all_outputs): Add mkheaders.
7252 * configure: Regenerate.
7253 * mkheaders.in: New file.
7255 2002-05-26 Jakub Jelinek <jakub@redhat.com>
7257 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
7259 2002-05-26 Andreas Jaeger <aj@suse.de>
7261 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
7263 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
7265 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
7266 right_shift): Remove.
7267 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
7269 (struct op): Use cpp_num.
7270 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
7271 num_part_mul, num_unary_op, num_binary_op, num_negate,
7272 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
7273 num_div_op, num_lshift, num_rshift, append_digit): New.
7274 (interpret_number, parse_defined, eval_token, reduce): Update
7275 for two-integer arithmetic.
7276 (binary_handler): New typedef.
7278 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
7279 (_cpp_parse_expr, reduce): Update to handle two-integers.
7280 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
7282 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7284 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
7285 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
7286 branch insn into account, do not assume 1.
7287 (avr_out_sbxx_branch): New function. Optimize cases of skipping
7288 over single word insn. Handle upper half of I/O space too.
7289 * config/avr/avr.md (*sbrx_branch): Use it.
7290 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
7291 (*sbix_branch, *sbix_branch_bit7): Likewise.
7292 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
7293 Use RTL peepholes to optimize register operand sign tests.
7295 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7297 * config/avr/avr.c (avr_asm_only_p): New variable.
7298 (avr_override_options): Set it here if AVR1.
7299 (asm_file_start): Test it here, report an error if set.
7301 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
7303 * alias.c: Fix formatting.
7304 * attribs.c: Likewise.
7305 * bb-reorder.c: Likewise.
7306 * bitmap.c: Likewise.
7307 * bitmap.h: Likewise.
7308 * builtins.c: Likewise.
7310 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
7312 * reload.c (find_valid_class): Accept new argument DEST,
7313 choose class accordingly.
7314 (push_reload): Update callers.
7316 2002-05-26 Andreas Jaeger <aj@suse.de>
7318 * combine.c (combine_instructions): Do not indent #if for
7321 2002-05-25 Richard Henderson <rth@redhat.com>
7323 * c-pragma.c (apply_pragma_weak): Convert value identifier to
7324 string for decl_attributes.
7325 (handle_pragma_weak): Call assemble_alias if we're modifying
7328 2002-05-25 Richard Henderson <rth@redhat.com>
7331 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
7332 using rtl instead of fprintf.
7333 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
7334 * config/sparc/sparc-protos.h: Update.
7336 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
7338 * Makefile.in (C_COMMON_H): Fix.
7339 Update other targets.
7340 * c-common.c: Don't include c-lex.h.
7341 (builtin_define_with_value): Make static and prototype.
7342 (builtin_define_std): Move from c-lex.h.
7343 * c-common.h (init_c_lex): Move from c-lex.h.
7344 * c-decl.c: Don't include c-lex.h.
7345 (make_pointer_declarator): Move from c-parse.in.
7346 * c-lex.c: Don't include c-lex.h.
7348 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
7349 (make_pointer_declarator): Move to c-decl.c.
7350 * c-pragma.c: Don't include c-lex.h.
7351 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
7352 * c-tree.h (make_pointer_declarator): New.
7354 * passes.texi, tm.texi: Update.
7356 * Make-lang.in: Update and correct.
7357 * objc-act.c: Don't include c-lex.h or cpplib.h.
7359 * treetree.c: Don't include c-lex.h.
7361 * darwin-c.c: Don't include c-lex.h.
7362 * c4x/c4x-c.c: Don't include c-lex.h.
7363 * c4x/t-c4x: Update.
7364 * i370/i370-c.c: Don't include c-lex.h.
7365 * i370/t-i370: Update.
7366 * i960/i960-c.c: Don't include c-lex.h.
7367 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
7368 * i960/t-960bare: Update.
7369 * i960/t-vxworks: Update.
7370 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
7371 * rs6000/t-darwin: Update.
7372 * rs6000/t-rs6000-c-rule: Update.
7373 * v850/v850-c.c: Don't include c-lex.h.
7374 * v850/v850.c: Don't include c-lex.h or cpplib.h.
7377 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7379 * tree.def: Fix typos.
7380 * doc/install.texi: Likewise.
7382 2002-05-25 Richard Henderson <rth@redhat.com>
7384 * configure.in (HAVE_AS_TLS): Add ia64 test.
7385 * configure: Rebuild.
7386 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
7387 (override_options): Set it.
7388 (TARGET_HAVE_TLS): New.
7389 (sdata_symbolic_operand): Look for 's'.
7390 (tls_symbolic_operand): New.
7391 (ia64_expand_load_address): Abort for tls symbols.
7392 (gen_tls_get_addr): New.
7393 (gen_thread_pointer): New.
7394 (ia64_expand_move): Split out from movdi. Handle tls symbols.
7395 (rtx_needs_barrier): Add new unspecs.
7396 (ia64_encode_section_info): Handle tls symbols.
7397 (ia64_strip_name_encoding): Strip two encoding chars.
7398 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
7399 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
7400 (TARGET_OPTIONS): Add tls-size.
7401 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
7402 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
7403 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
7404 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
7405 (movsf, movdf): Likewise.
7406 (movdi_symbolic): Use match_scratch. Don't split if we won't
7407 have a scratch availiable.
7408 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
7409 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
7410 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
7411 * config/ia64/ia64-protos.h: Update.
7412 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7413 sdata_symbolic_operand.
7414 (ASM_OUTPUT_LABELREF): Strip two characters.
7416 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7418 * combine.c (simplify_set): Remove an unnecessary subreg.
7420 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
7422 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
7424 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
7426 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7428 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
7430 2002-05-25 Roger Sayle <roger@eyesopen.com>
7432 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
7433 (cond (compare x y) 0) into the equivalent (cond x y).
7435 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7437 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
7439 2002-05-24 Zack Weinberg <zack@codesourcery.com>
7441 * config.gcc: Remove all stanzas for previously obsoleted
7442 systems. Where necessary, add explicit error stanzas to
7443 prevent removed systems from being misidentified as something
7444 else. Begin a fresh obsoletions list, with the systems that
7445 were reprieved last round.
7446 * doc/install.texi: Remove all mention of dead targets.
7447 * fixinc/mkfixinc.sh: Likewise.
7449 * config/arm/arm.h: Bit 31 of target_flags is no longer
7452 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
7453 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
7454 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
7455 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
7456 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
7457 config/alpha/osf12.h, config/alpha/osf2or3.h,
7458 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
7459 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
7460 config/clipper/clipper-protos.h, config/clipper/clipper.c,
7461 config/clipper/clipper.h, config/clipper/clipper.md,
7462 config/clipper/clix.h, config/convex/convex-protos.h,
7463 config/convex/convex.c, config/convex/convex.h,
7464 config/convex/convex.md, config/convex/fixinc.convex,
7465 config/convex/proto.h, config/elxsi/elxsi-protos.h,
7466 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
7467 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
7468 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
7469 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
7470 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
7471 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
7472 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
7473 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
7474 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
7475 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
7476 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
7477 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
7478 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
7479 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
7480 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
7481 config/m68k/altos3068.h, config/m68k/apollo68.h,
7482 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
7483 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
7484 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
7485 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
7486 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
7487 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
7488 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
7489 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
7490 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
7491 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
7492 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
7493 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
7494 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
7495 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
7496 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
7497 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
7498 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
7499 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
7500 config/mips/dec-osf1.h, config/mips/elflorion.h,
7501 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
7502 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
7503 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
7504 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
7505 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
7506 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
7507 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
7508 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
7509 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
7510 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
7511 config/ns32k/sequent.h, config/ns32k/tek6000.h,
7512 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
7513 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
7514 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
7515 config/sparc/rtems.h, config/we32k/we32k-protos.h,
7516 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
7519 2002-05-24 Richard Henderson <rth@redhat.com>
7521 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
7522 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
7523 * config/i386/i386.c (tls_model_chars): Add leading space.
7524 (tls_symbolic_operand): Don't bias by 1.
7525 (legitimize_address): Don't unbias by 1.
7527 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7529 * lcm.c (optimize_mode_switching): Change bb used as indices
7532 2002-05-24 Richard Henderson <rth@redhat.com>
7534 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
7535 of update_life_info_in_dirty_blocks.
7537 2002-05-24 Jakub Jelinek <jakub@redhat.com>
7540 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
7542 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
7544 PR preprocessor/6780
7545 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
7547 2002-05-24 Jim Blandy <jimb@redhat.com>
7549 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
7550 entry with a type code of zero, marking the end of the compilation
7553 2002-05-24 Richard Henderson <rth@redhat.com>
7555 * varasm.c (asm_output_bss): Always output one byte.
7556 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7558 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7560 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
7563 2002-05-24 Andreas Jaeger <aj@suse.de>
7565 * ggc-page.c (alloc_page): Cast variables of type size_t to
7566 unsigned long, adjust printf format string.
7567 (ggc_alloc): Likewise.
7568 (ggc_print_statistics): Likewise.
7569 (ggc_print_statistics): Correct printf format string for SCALE to
7572 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
7574 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
7576 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
7577 Zack Weinberg <zack@codesourcery.com>
7579 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
7581 * dwarf2out.c (lookup_filename): Properly quote filename in .file
7582 directive in assembly file.
7583 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7584 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7585 * config/pj/pj.h (ASM_FILE_START): Likewise.
7586 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7587 * config/avr/avr.c (asm_file_end): Likewise.
7588 * toplev.c (output_quoted_string): Handle possibly signed plain
7590 * toplev.h (output_clean_symbol_name): Declare
7591 * toplev.c (output_clean_symbol_name): Define.
7592 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7593 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7595 2002-05-24 Alan Modra <amodra@bigpond.net.au>
7597 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7599 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
7601 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7602 of size of unsigned.
7604 2002-05-23 Richard Henderson <rth@redhat.com>
7606 * configure.in (HAVE_AS_TLS): New test.
7607 * config.in, configure: Rebuild.
7608 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7609 (ix86_tls_dialect_string, ix86_tls_dialect): New.
7610 (override_options): Set it.
7611 (tls_model_chars, tls_symbolic_operand): New.
7612 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7613 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7614 (local_exec_symbolic_operand): New.
7615 (get_pic_label_name): Merge into output_set_got.
7616 (ix86_asm_file_end): Emit pic_label_name if defined.
7617 (legitimate_constant_p, constant_address_p): New.
7618 (legitimate_pic_operand_p): New.
7619 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7620 (legitimate_address_p): Likewise.
7621 (ix86_encode_section_info): Rename from i386_; handle tls decls.
7622 (ix86_strip_name_encoding): New.
7623 (get_thread_pointer): New.
7624 (legitimize_address): Handle tls symbols.
7625 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7627 (struct machine_function): Add some_ld_name.
7628 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7629 (print_operand) [&]: Use it. Handle UNSPEC_TP.
7630 (output_addr_const_extra): New.
7631 (maybe_get_pool_constant): New.
7632 (ix86_split_to_parts): Use it.
7633 (ix86_expand_move): Handle tls symbols.
7634 (ix86_tls_get_addr): New.
7635 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7636 (TARGET_OPTIONS): Add tls-dialect.
7637 (CONSTANT_ADDRESS_P): Use new out-of-line function.
7638 (LEGITIMATE_CONSTANT_P): Likewise.
7639 (LEGITIMATE_PIC_OPERAND_P): Likewise.
7640 (TARGET_STRIP_NAME_ENCODING): New.
7641 (ASM_OUTPUT_LABELREF): New.
7642 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7643 (OUTPUT_ADDR_CONST_EXTRA): New.
7644 (PREDICATE_CODES): Update.
7645 (ix86_tls_dialect, ix86_tls_dialect_string): New.
7646 * config/i386/i386.md: Regroup and renumber unspec constants.
7647 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7648 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7649 (tls_global_dynamic, tls_local_dynamic_base): New.
7650 (tls_local_dynamic_once): New.
7651 * config/i386/i386-protos.h: Update.
7653 2002-05-23 Richard Henderson <rth@redhat.com>
7655 * genemit.c (gen_insn): Print file:lineno comment before function.
7657 * gensupport.c (struct queue_elem): Add filename member.
7658 (queue_pattern): Initialize it; update all callers.
7659 (process_include): Don't free filename.
7660 (read_md_rtx): Set read_rtx_filename.
7662 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
7664 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7666 2002-05-23 Richard Henderson <rth@redhat.com>
7668 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7670 2002-05-23 Richard Henderson <rth@redhat.com>
7672 * doc/extend.texi (C++98 Thread-Local Edits): Update with
7673 commentary from Mark.
7675 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7677 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7678 Use FOR_EACH_BB macros to iterate over basic block chain.
7679 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7680 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7682 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7683 find_unreachable_blocks, create_edge_list, verify_edge_list,
7684 remove_fake_edges, add_noreturn_fake_exit_edges,
7685 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7687 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7688 find_sub_basic_blocks): Likewise.
7689 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7691 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7693 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7695 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7696 commit_edge_insertions, commit_edge_insertions_watch_calls,
7697 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7698 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7699 * conflict.c (conflict_graph_compute): Likewise.
7700 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7701 df_modified_p, df_refs_unlink, df_dump): Likewise.
7702 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7703 * final.c (compute_alignments): Likewise.
7704 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7705 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7706 count_or_remove_death_notes): Likewise.
7707 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7708 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7709 classic_gcse, compute_transp, cprop, compute_pre_data,
7710 compute_transpout, invalidate_nonnull_info,
7711 delete_null_pointer_checks_1, delete_null_pointer_checks,
7712 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7713 compute_store_table, build_store_vectors, store_motion): Likewise.
7714 * global.c (global_conflicts, mark_elimination): Likewise.
7715 * graph.c (print_rtl_graph_with_bb): Likewise.
7716 * haifa-sched.c (sched_init): Likewise.
7717 * ifcvt.c (if_convert): Likewise.
7718 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7719 compute_available, compute_nearerout, compute_rev_insert_delete,
7720 optimize_mode_switching): Likewise.
7721 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7722 * predict.c (estimate_probability, note_prediction_to_br_prob,
7723 propagate_freq, counts_to_freqs, expensive_function_p,
7724 estimate_bb_frequencies): Likewise.
7725 * profile.c (instrument_edges, get_exec_counts,
7726 compute_branch_probabilities, compute_checksum, branch_prob,
7727 find_spanning_tree): Likewise.
7728 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7729 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7731 * regclass.c (scan_one_insn, regclass): Likewise.
7732 * regmove.c (mark_flags_life_zones, regmove_optimize,
7733 record_stack_memrefs): Likewise.
7734 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7735 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7736 * resource.c (find_basic_block): Likewise.
7737 * sched-ebb.c (schedule_ebbs): Likewise.
7738 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7739 find_single_block_region, find_rgns, schedule_insns)
7740 * sibcall.c (optimize_sibling_and_tail_recursive_call)
7741 * ssa-ccp.c (optimize_unexecutable_edges,
7742 ssa_ccp_df_delete_unreachable_insns): Likewise.
7743 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7744 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7745 rename_block, convert_to_ssa, compute_conservative_reg_partition,
7746 compute_coalesced_reg_partition, rename_equivalent_regs,
7747 convert_from_ssa): Likewise.
7748 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7749 process_for_unwind_directive): Likewise.
7751 * df.c (FOR_ALL_BBS): Removed.
7752 * gcse.c (struct null_pointer_info): Type of current_block field
7754 (struct reg_avail_info): Type of last_bb field changed.
7755 * config/ia64/ia64.c (block_num): Removed.
7756 (need_copy_state): Type changed.
7759 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7761 * cppinit.c (mark_named_operators): Split out from init_builtins.
7762 (cpp_finish_options): Call it from here instead.
7764 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7766 * builtin-attrs.def: Update copyright years.
7767 (ATTR_NONNULL): New attribute identifier.
7768 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7769 attribute tree lists.
7770 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7772 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7773 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7774 attribute lists. Chain the appropriate nonnull attribute.
7775 * c-format.c (check_format_arg): Remove null format string
7777 * testsuite/gcc.dg/format/null-1.c: New test.
7779 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7781 * Makefile.in (ADAC): Define.
7783 (.SUFFIXES): Move before language makefile fragments.
7784 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7786 2002-05-23 Mark Mitchell <mark@codesourcery.com>
7788 * varasm.c (make_decl_rtl): Don't allow weak variables to be
7791 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7793 * cfg.c (dump_flow_info): Print results of
7794 maybe_hot/probably_never_executed predicates.
7795 * toplev.c (open_dump_file): Print function frequency.
7797 2002-05-23 David S. Miller <davem@redhat.com>
7799 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7802 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7804 * c-common.c (warn_nonnull): Declare.
7805 (c_common_attribute_table): Add "nonnull" attribute.
7806 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7807 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7808 check_function_arguments_recurse): New functions.
7809 * c-common.h (warn_nonnull): Declare extern.
7810 (check_function_arguments, check_function_arguments_recurse): New
7812 * c-decl.c (c_decode_option): Add -Wnonnull option.
7813 * c-format.c (set_Wformat): Set warn_nonnull if enabling
7815 (format_check_context): New structure.
7816 (check_format_info_recurse): Remove recursion and rename to...
7817 (check_format_arg): ...this. Update comment.
7818 (check_format_info): Use check_function_arguments_recurse.
7819 * c-typeck.c (build_function_call): Call check_function_arguments
7820 instead of check_function_format.
7821 * doc/extend.texi: Document "nonnull" attribute.
7822 * doc/invoke.texi: Docuemnt -Wnonnull option.
7823 * testsuite/gcc.dg/nonnull-1.c: New test.
7824 * testsuite/gcc.dg/nonnull-2.c: New test.
7826 2002-05-23 David S. Miller <davem@redhat.com>
7828 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7829 * cfgcleanup.c (cleanup_cfg): If it is set do not
7830 attempt to delete trivially dead insns.
7831 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7832 * toplev.c (rest_of_compilation): Document non-trivial aspect
7833 the RTL before optimize_save_area_alloca is run.
7835 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7837 * c-lex.c (indent_level): Remove.
7838 (cb_file_change, c_lex): Remove indent level handling.
7839 * c-lex.h (indent_level): Remove.
7840 * input.h (struct file_stack): Remove indent_level.
7841 * toplev.c (push_srcloc): Remove indent_level handling.
7843 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7846 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7847 of x in constraints for clarity.
7848 (sse_mov?fcc split): abort if op2 == op3.
7849 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7850 sse_movsfcc_const0_4): Add earlyclobber.
7851 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7852 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
7853 Use Y instead of x in constraints.
7855 2002-05-23 Richard Henderson <rth@redhat.com>
7857 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7858 (C++98 Thread-Local Edits): New subsection.
7860 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7861 (ix86_arch): Set type to enum processor_type.
7863 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
7864 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7866 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7868 * configure.in: Fix as version test for binutils 2.12.1 releases
7870 * configure: Rebuilt.
7872 2002-05-23 Richard Henderson <rth@redhat.com>
7874 * config/i386/i386.c (get_pic_label_name): New.
7875 (load_pic_register): Remove.
7876 (output_set_got): New.
7877 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7878 * config/i386/i386.md (UNSPEC_SET_GOT): New.
7879 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7880 (prologue_set_got, prologue_get_pc): Remove.
7881 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7882 (builtin_setjmp_receiver): Use gen_set_got.
7883 * config/i386/i386-protos.h: Update.
7885 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7887 * gcse.c (hash_expr): Do not use alias set for hashing.
7889 2002-05-22 Kevin Buettner <kevinb@redhat.com>
7891 * dbxout.c (dbxout_class_name_qualifiers): New function.
7892 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7894 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7896 * cpperror.c (_cpp_begin_message): No special casing
7898 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7899 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7900 * cpplib.c (do_include_common): Use DL_ERROR.
7901 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7903 * fix-header.c (read_scan_file): Update.
7905 2002-05-22 Richard Henderson <rth@redhat.com>
7907 * config/i386/i386.c (ix86_expand_call): New function, extracted
7908 from md call patterns. Add pic_offset_table_rtx to
7909 CALL_INSN_FUNCTION_USAGE when needed.
7910 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7911 (call_value_pop, call_value, untyped_call): Likewise.
7912 (call_exp, call_value_exp): Remove.
7913 * config/i386/i386-protos.h: Update.
7915 2002-05-22 Richard Henderson <rth@redhat.com>
7917 * varasm.c (default_section_type_flags): Check for VAR_DECL
7918 before using DECL_THREAD_LOCAL.
7920 2002-05-22 David Edelsohn <edelsohn@gnu.org>
7922 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7923 (STARTFILE_SPEC): Delete PE crt0.o.
7924 * config/rs6000/aix51.h: Same.
7925 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7926 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7927 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
7928 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7929 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7931 2002-05-22 Richard Henderson <rth@redhat.com>
7933 * varasm.c (default_section_type_flags): Handle tls data and
7935 (default_unique_section): Handle tls sections.
7937 2002-05-23 Alan Modra <amodra@bigpond.net.au>
7939 * configure.in (CROSS): Define NATIVE_CROSS.
7940 * configure: Regenerate.
7941 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7942 (startfile_prefix_spec): New var.
7943 (static_specs): Add startfile_prefix_spec.
7944 (do_spec_2): Split out from..
7946 (main): Process startfile_prefix_spec.
7947 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7949 (STARTFILE_PREFIX_SPEC): Define.
7950 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
7953 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7955 * cpperror.c: Fix formatting.
7956 * cppexp.c: Likewise.
7957 * cppfiles.c: Likewise.
7958 * cpphash.c: Likewise.
7959 * cpphash.h: Likewise.
7960 * cppinit.c: Likewise.
7961 * cpplex.c: Likewise.
7962 * cpplib.c: Likewise.
7963 * cppmacro.c: Likewise.
7964 * cppmain.c: Likewise.
7965 * cppspec.c: Likewise.
7967 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7969 * combine.c (force_to_mode): Use gen_int_mode.
7970 Don't clear CONST_INT bits outside of mode.
7972 2002-05-22 Richard Henderson <rth@redhat.com>
7974 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7975 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7977 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7980 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7981 if DECL_SIZE_UNIT is INTEGER_CST.
7983 2002-05-22 Richard Henderson <rth@redhat.com>
7985 * flow.c (life_analysis): Delete broken reg_label check.
7987 2002-05-22 Richard Henderson <rth@redhat.com>
7989 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7990 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7992 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7994 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7995 (embed-bb.c): New rule.
7996 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
7997 * config/sh/embed_bb.c: Delete.
7999 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
8001 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
8003 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8005 * config/h8300/h8300.md (*andorqi3): New.
8007 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
8009 PR preprocessor/6517
8010 * Makefile.in: Update.
8011 * c-common.c (c_common_post_options): Add preprocessor
8012 errors to the error count.
8013 * c-lang.c (c_post_options): Kill.
8014 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8015 * hooks.h: Add header guards.
8016 * langhooks-def.h: Include hooks.h.
8017 (LANG_HOOKS_POST_OPTIONS): Update.
8018 * langhooks.h (struct lang_hooks): Update post_options.
8019 * toplev.c (parse_options_and_default_flags): Update.
8021 * objc-lang.c (objc_post_options): Kill.
8022 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8024 2002-05-21 Bruce Korb <bkorb@gnu.org>
8026 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
8027 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
8028 * fixinc/fixincl.x: regen.
8030 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
8032 * cfgbuild.c: Fix formatting.
8034 * cfgcleanup.c: Likewise.
8035 * cfglayout.c: Likewise.
8036 * cfgloop.c: Likewise.
8037 * cfgrtl.c: Likewise.
8039 2002-05-21 Richard Henderson <rth@redhat.com>
8041 * c-common.h (enum rid): Add RID_THREAD.
8042 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
8043 (grokdeclarator): Grok __thread.
8044 * c-parse.in (reswords): Add __thread.
8045 (rid_to_yy): Add RID_THREAD.
8047 * tree.h (DECL_THREAD_LOCAL): New.
8048 (struct tree_decl): Add thread_local_flag.
8049 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
8050 * tree.c (staticp): TLS variables are not static.
8052 * target-def.h (TARGET_HAVE_TLS): New.
8053 * target.h (have_tls): New.
8054 * output.h (SECTION_TLS): New.
8055 * varasm.c (assemble_variable): TLS variables can't be common for now.
8056 (default_section_type_flags): Handle .tdata and .tbss.
8057 (default_elf_asm_named_section): Handle SECTION_TLS.
8058 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
8060 * flags.h (flag_tls_default): Declare.
8061 * toplev.c (flag_tls_default): Define.
8062 (display_help): Display help for it.
8063 (decode_f_option): Set it.
8065 * doc/extend.texi (Thread-Local): New node describing language-level
8066 thread-local storage.
8067 * doc/invoke.texi (-ftls-model): Document.
8069 * fixinc/inclhack.def (thread_keyword): New.
8070 * fixinc/fixincl.x: Rebuild.
8072 2002-05-21 Jeffrey A Law <law@redhat.com>
8074 * optabs.c (expand_binop): For double-word integer multiplies,
8075 do not compute intermediate results into something that is
8076 not a register (such as a SUBREG or MEM).
8078 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
8079 (ix86_sched_reorder): Make sure to initialize scheduling
8080 data even when there's only one insn in the ready queue.
8082 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8084 * genautomata.c (reserv_sets_hash_value): Fix a typo.
8086 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8088 * genautomata.c (reserv_sets_hash_value): Define hash_value as
8089 set_el_t. Transform the hash value into unsigned.
8090 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
8091 (transform_3): Add code to process `(A,B)+(D,E)'.
8093 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
8095 * reload1.c (do_output_reload): Run delete_output_reload
8098 2002-05-21 Roger Sayle <roger@eyesopen.com>
8101 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
8102 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
8103 (can_store_by_pieces): ... and here to limit the largest mode used.
8104 Add a comment to document this function.
8106 2002-05-21 Richard Henderson <rth@redhat.com>
8108 * flow.c (life_analysis): Fix test for deleted label.
8110 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
8112 * doc/tm.texi: Fix typo.
8114 2002-05-21 Zack Weinberg <zack@codesourcery.com>
8116 * c-common.c (c_common_init): Set options->unsigned_char from
8118 (cb_register_builtins): Define __STRICT_ANSI__ and
8119 __CHAR_UNSIGNED__ here...
8120 * cppinit.c (init_builtins): Not here.
8121 (cpp_create_reader): unsigned_char option defaults to 0, not
8122 !DEFAULT_SIGNED_CHAR.
8123 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
8124 and -funsigned-char.
8126 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
8127 * cpphash.c (_cpp_init_hashtable): Don't set it.
8128 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
8129 directly. Clarify comment.
8131 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8133 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
8134 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
8135 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
8136 BASIC_BLOCK (n_basic_blocks - 1).
8137 * cfganal.c (can_fallthru, flow_call_edges_add,
8138 flow_preorder_transversal_compute): Too.
8139 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
8140 find_sub_basic_blocks): Too.
8141 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
8142 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
8143 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
8144 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
8145 * combine.c (this_basic_block): Type changed to basic_block.
8146 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
8147 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8148 get_last_value, distribute_notes, distribute_links): Too.
8149 * final.c (compute_alignments): Too.
8150 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
8151 * function.c (thread_prologue_and_epilogue_insns): Too.
8152 * gcse.c (compute_code_hoist_vbeinout): Too.
8153 * global.c (build_insn_chain): Too.
8154 * ifcvt.c (find_if_block, find_cond_trap): Too.
8155 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
8156 * regmove.c (regmove_optimize): Too.
8157 * resource.c (find_basic_block): Too.
8158 * sched-ebb.c (schedule_ebbs): Too.
8159 * ssa-dce.c (find_control_dependence, find_pdom): Too.
8161 2002-05-21 Andreas Jaeger <aj@suse.de>
8163 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
8165 2002-05-21 Richard Henderson <rth@redhat.com>
8167 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
8168 unspec names, not numbers.
8170 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
8172 * doc/sourcebuild.texi: Mention snapshot-README and
8173 snapshot-index.html as needing updating for new front ends.
8175 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8177 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
8178 disabling checking, and avoid multiple evaluation of RTX.
8180 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
8182 * bitmap.c (bitmap_find_bit): Return early if we have the correct
8185 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8187 * profile.c (gen_edge_profiler): Set alias set before the memory is
8190 2002-05-20 David S. Miller <davem@redhat.com>
8192 * cselib.c (max_value_regs): New.
8193 (cselib_lookup, cselib_invalidate_regno): Initialize it when
8194 adding new entries to the REG_VALUES table and we are dealing with
8196 (clear_table): Initialize it.
8197 (cselib_invalidate_regno): Use it to determine which hard
8198 registers to scan when mode is not VOIDmode.
8200 2002-05-20 Duraid Madina <duraid@fl.net.au>
8202 * tradcpp.c (fixup_newlines): Use old-style function header.
8204 2002-05-20 Krister Walfridsson <cato@df.lth.se>
8206 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
8208 2002-05-20 H.J. Lu (hjl@gnu.org)
8210 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
8212 * config/mips/mips.h (DFMODE_NAN): Defined.
8213 (SFMODE_NAN): Likewise.
8215 2002-05-20 Dale Johannesen <dalej@apple.com>
8217 * combine.c (cant_combine_insn_p): Back out my
8220 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8222 * params.c: Fix formatting.
8223 * params.h: Likewise.
8224 * predict.c: Likewise.
8225 * prefix.c: Likewise.
8226 * print-rtl.c: Likewise.
8227 * print-tree.c: Likewise.
8228 * profile.c: Likewise.
8230 2002-05-20 H.J. Lu (hjl@gnu.org)
8232 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
8234 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
8236 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
8237 switches straight on to the assembler, do not abbreviate them.
8238 * config/arm/elf.h (ASM_SPEC): As above.
8239 * config/arm/semi.h (ASM_SPEC): As above.
8240 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
8241 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
8242 -mcpu=xscale on to the assembler by default.
8243 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
8245 2002-05-20 Richard Henderson <rth@redhat.com>
8247 * cse.c (canon_hash): Reorder do_not_record test. Always
8248 allow pic_offset_table_rtx.
8250 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
8252 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
8253 (expand_binop): Ditto (3 times).
8255 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
8257 * Makefile.in (distclean): Remove QMTest stuff.
8258 (QMTEST_PATH): New variable.
8259 (QMTESTFLAGS): Likewise.
8260 (QMTESTRUNFLAGS): Likewise.
8262 (QMTEST_GPP_TESTS): Likewise.
8263 (QMTEST_DIR): Likewise.
8264 (QMTEST_DIR/context): New target.
8265 (qmtest-g++): Likeise.
8266 (qmtest-gui): Likewise.
8267 (QMTEST_DIR/gpp-expected.qmr): Likewise.
8269 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
8271 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
8272 an altivec register if TARGET_ALTIVEC.
8274 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
8275 to ALTIVEC_VECTOR_MODE.
8276 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
8277 (rs6000_va_arg): Vectors may go in registers if they are not
8280 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
8282 * protoize.c: Fix formatting.
8284 2002-05-19 Richard Henderson <rth@redhat.com>
8286 * gensupport.c (init_include_reader): Merge into ...
8287 (process_include): ... here. Simplify composite path creation.
8288 Plug memory leaks. Fix file/line number tracking. Do not
8289 process_define_cond_exec. Return void.
8290 (process_rtx): Don't check process_include return value.
8292 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8294 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
8296 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8297 traversing basic block chain.
8298 (create_basic_block_structure, create_basic_block): Declaration changed.
8299 (link_block, unlink_block): Declare.
8300 * cfg.c (entry_exit_blocks): Initialize new fields.
8301 (link_block, unlink_block): New.
8302 (expunge_block_nocompact): Unlink basic block.
8303 (dump_flow_info): Print prev_bb/next_bb fields.
8304 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
8305 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
8306 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
8307 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8308 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
8309 (verify_flow_info): Check that list agrees with numbering.
8311 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
8313 * c-common.c (preprocessing_asm): New macro.
8314 * c-lex.h (builtin_define, builtin_assert): Use pfile.
8318 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
8319 (CPP_SPEC): Simplify.
8320 (TARGET_CPU_CPP_BUILTINS): Update.
8321 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
8322 (CPP_SPEC): Simplify.
8323 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
8324 (TARGET_OS_CPP_BUILTINS): Update.
8325 * osf.h (CPP_XFLOAT_SPEC): Kill.
8326 (TARGET_OS_CPP_BUILTINS): Update.
8327 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
8328 * osf5.h (CPP_XFLOAT_SPEC): Kill.
8329 * vms.h (CPP_SUBTARGET_SPEC): Kill.
8330 (TARGET_OS_CPP_BUILTINS): Update.
8332 2002-05-19 Richard Henderson <rth@redhat.com>
8334 * varasm.c (default_binds_local_p): Fix typo.
8336 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
8338 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
8339 CONST_INT operand to the correct mode after adding 1 to it.
8341 2002-05-19 Mark Mitchell <mark@codesourcery.com>
8343 * config.gcc (powerpc-wrs-windiss*): New target.
8345 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8347 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
8350 2002-05-18 Mark Mitchell <mark@codesourcery.com>
8352 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
8354 * config.in: Regenerated.
8355 * configure: Regenerated.
8357 2002-05-19 Richard Henderson <rth@redhat.com>
8359 * target-def.h (TARGET_BINDS_LOCAL_P): New.
8360 * target.h (struct gcc_target): Move boolean fields to the end.
8362 * varasm.c (default_binds_local_p): New.
8363 * output.h: Declare it.
8365 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
8366 * config/cris/cris.c (cris_encode_section_info): Likewise.
8367 * config/i386/i386.c (i386_encode_section_info): Likewise.
8368 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
8369 * config/sh/sh.c (sh_encode_section_info): Likewise.
8371 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
8372 (TARGET_BINDS_LOCAL_P): New.
8374 2002-05-19 Richard Henderson <rth@redhat.com>
8376 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
8377 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
8378 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
8380 * toplev.c (display_help): Kill -a -ax help.
8382 * config/1750a/1750a.h, config/alpha/alpha.h,
8383 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
8384 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
8385 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
8386 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
8388 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
8389 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
8391 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
8392 (ix86_output_function_block_profiler): Kill.
8393 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
8394 (m68hc11_function_block_profiler): Kill.
8395 * config/m68hc11/m68hc11-protos.h: Update.
8396 * config/m88k/m88k.c (output_block_profiler): Kill.
8397 (output_function_block_profiler): Kill.
8398 * config/m88k/m88k-protos.h: Update.
8400 2002-05-19 Richard Henderson <rth@redhat.com>
8402 * system.h (STRIP_NAME_ENCODING): Poison it.
8403 * output.h (STRIP_NAME_ENCODING): Remove.
8404 (default_strip_name_encoding): Declare.
8405 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
8406 * target.h (strip_name_encoding): New.
8407 * varasm.c (default_strip_name_encoding): New.
8409 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
8410 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
8411 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
8412 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
8413 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
8414 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
8415 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
8416 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
8417 config/v850/v850.h: Use the hook, not the macro.
8419 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8420 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
8421 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
8422 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
8423 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
8424 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
8425 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8426 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
8427 config/v850/v850.c, config/v850/v850.h:
8428 Move STRIP_NAME_ENCODING to out-of-line function and add
8429 TARGET_STRIP_NAME_ENCODING.
8431 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
8432 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
8433 with TARGET_STRIP_NAME_ENCODING referencing existing function;
8434 make function static.
8436 * xcoffout.c: Include target.h
8437 * Makefile.in (xcoffout.o): Update.
8439 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
8440 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
8441 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
8442 reloc argument unused.
8443 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
8445 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
8446 STRIP_NAME_ENCODING docs.
8448 2002-05-19 Andreas Jaeger <aj@suse.de>
8450 * gengenrtl.c: Add prototype for excluded_rtx.
8452 * real.h: Add prototype for exact_real_truncate.
8454 2002-05-18 Richard Henderson <rth@redhat.com>
8456 * system.h (ENCODE_SECTION_INFO): Poison it.
8457 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
8458 * target.h (encode_section_info): New.
8459 * varasm.c (make_decl_rtl, output_constant_def): Use it.
8460 * hooks.c (hook_tree_int_void): New.
8461 * hooks.h: Declare it.
8463 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8464 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
8465 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
8466 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
8467 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
8468 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
8469 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
8470 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
8471 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8472 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8473 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
8474 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
8475 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
8476 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
8477 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
8478 referencing existing function. Make function static.
8480 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8481 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
8482 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
8483 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
8484 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8485 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
8486 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
8487 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
8488 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
8489 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8490 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
8491 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
8492 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
8493 Move ENCODE_SECTION_INFO to out-of-line function and add
8494 TARGET_ENCODE_SECTION_INFO.
8496 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
8497 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8499 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
8501 (switch_to_section): Replace in_rdata case with in_readonly_data.
8503 * config/h8300/h8300.c (h8300_encode_label): Make static.
8504 * config/h8300/h8300-protos.h: Update.
8506 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
8507 from rs6000_encode_section_info; make static.
8508 (rs6000_xcoff_encode_section_info): New.
8510 * config/v850/v850.c (v850_encode_data_area): Make static.
8511 * config/v850/v850-protos.h: Update.
8513 * config/vax/vax.c: Include flags.h.
8514 (vms_select_section): Fix typo.
8516 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
8517 ENCODE_SECTION_INFO docs.
8519 2002-05-18 Richard Henderson <rth@redhat.com>
8521 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
8522 REGISTER_TARGET_PRAGMAS.
8523 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
8525 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
8527 2002-05-18 Richard Henderson <rth@redhat.com>
8529 * system.h (SELECT_RTX_SECTION): Poison.
8530 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
8531 * target.h (select_rtx_section): New.
8532 * varasm.c (output_constant_pool): Use it.
8533 (default_select_rtx_section, default_elf_select_rtx_section): New.
8534 * output.h: Declare them.
8536 * config/darwin.h (SELECT_RTX_SECTION): Move ...
8537 * config/darwin.c (machopic_select_rtx_section): ... here.
8538 * config/darwin-protos.h: Update.
8540 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
8541 * config/nextstep.c (machopic_select_rtx_section): ... here.
8542 (nextstep_select_section): Rename variable to avoid macro clash.
8543 * config/nextstep-protos.h: Update.
8545 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
8546 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
8547 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8548 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
8549 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
8550 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8551 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
8552 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
8553 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
8554 (SELECT_RTX_SECTION): Remove.
8556 * config/darwin.h, config/elfos.h, config/nextstep.h,
8557 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
8558 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
8559 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
8560 config/sparc/lynx.h, config/xtensa/xtensa.c
8561 (TARGET_ASM_SELECT_RTX_SECTION): New.
8563 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
8564 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
8565 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
8566 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
8567 (ia64_aix_select_rtx_section): New.
8568 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
8570 * config/mips/mips.c (mips_select_rtx_section): Make static.
8571 Support ELF SHF_MERGE features.
8572 * config/mips/mips-protos.h: Update.
8573 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
8574 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
8575 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
8576 make static, fall back to default_elf_select_rtx_section.
8577 * config/rs6000/rs6000-protos.h: Update.
8578 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
8579 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
8580 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
8581 * config/romp/romp.c (romp_select_rtx_section): New.
8582 * config/s390/s390.c (s390_select_rtx_section): New.
8583 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
8584 declarations before target macro definition.
8585 (xtensa_emit_call): Use static buffer.
8586 (xtensa_select_rtx_section): New.
8587 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8588 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8589 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8591 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8592 SELECT_RTX_SECTION docs.
8594 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8596 * i386.md (movsi/movdi): Fix template.
8597 (sse2 patterns): Set attributes consistently.
8599 * i386.md (pushqi2, ashrqi_*): Fix constraint.
8601 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
8603 * optabs.c (complex_part_zero_p): New.
8604 * (expand_cmplxdiv_straight): Use it.
8605 * (expand_cmplxdiv_wide): Ditto.
8606 * (expand_binop): Ditto.
8608 2002-05-18 Richard Henderson <rth@redhat.com>
8610 * final.c (HAVE_READONLY_DATA_SECTION): New.
8611 (shorten_branches): Use it instead of ifdefs.
8612 * varasm.c (enum in_section): Add in_readonly_data.
8613 (text_section, data_section): Tidy.
8614 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8616 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8617 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8618 (READONLY_DATA_SECTION): Don't undef.
8620 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8621 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8622 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8624 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8625 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8626 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8627 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8629 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8630 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8631 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8632 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8633 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8634 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8635 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8636 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8637 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8639 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8640 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8641 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8642 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8643 config/pa/pa64-hpux.h, config/sparc/litecoff.h
8644 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8646 * config/elfos.h, config/netware.h, config/svr3.h,
8647 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8648 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8649 config/h8300/h8300.h, config/i386/i386-interix.h,
8650 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8651 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8653 * config/elfos.h, config/netware.h, config/svr3.h,
8654 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8655 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8656 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8657 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8659 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8660 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8661 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8662 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8663 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8664 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8665 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8666 config/rs6000/sysv4.h, config/v850/v850.h
8667 (EXTRA_SECTIONS): Remove in_const/in_rdata.
8668 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8670 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8671 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8672 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8673 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8674 * config/alpha/alpha.c (alpha_start_function): Likewise.
8675 (alpha_write_linkage): Likewise.
8676 * config/m32r/m32r.c (m32r_select_section): Likewise.
8677 * config/m88k/m88k.c (m88k_select_section): Likewise.
8678 * config/mips/mips.c (mips_select_rtx_section): Likewise.
8679 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8680 (rs6000_elf_select_section): Likewise.
8681 * config/v850/v850.c (v850_select_section): Likewise.
8683 * config/1750a/1750a.h, config/i860/sysv3.h
8684 (READONLY_DATA_SECTION_ASM_OP): New.
8685 READONLY_DATA_SECTION_ASM_OP.
8686 * config/i386/interix.c, config/i386/winnt.c
8687 (i386_pe_unique_section): Always use .rdata prefix.
8688 * config/pa/som.h (readonly_data): Always switch to read-only section.
8689 (READONLY_DATA_SECTION): Predicate on flag_pic.
8690 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8691 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8692 (READONLY_DATA_SECTION): Update.
8694 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
8696 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8697 is used without -Wformat.
8698 * c-common.h (warn_format_zero_length): Declare extern.
8699 * c-decl.c (warn_options): Add "format-zero-length".
8700 * c-format.c (warn_format_zero_length): Declare.
8701 (set_Wformat): Set warn_format_zero_length for -Wformat.
8702 (check_format_info): Only warn about zero-length formats if
8703 warn_format_zero_length is true. Include the format type
8704 name in the warning message.
8705 * doc/invoke.texi: Document -Wformat-zero-length.
8706 * testsuite/gcc.dg/format/zero-length-1.c: New test.
8708 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
8710 * timevar.c: Fix formatting.
8711 * tlink.c: Likewise.
8712 * toplev.c: Likewise.
8713 * tree-dump.c: Likewise.
8714 * tree-inline.c: Likewise.
8716 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8718 * cppinit.c (cpp_post_options): If preprocessed, turn off
8719 traditional. If traditional, turn off column numbers.
8720 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8721 * cpptrad.c (handle_newline): Update line_base.
8722 (skip_comment): Handle -Wcomment.
8724 2002-05-17 Zack Weinberg <zack@codesourcery.com>
8726 * cppinit.c (struct builtin): Remove unused fields.
8727 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8728 (operator_array): New - was second half of builtin_array.
8729 (init_builtins): Simplify loop over builtin_array/operator_array.
8731 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8733 * defaults.h (UNIQUE_SECTION): Remove.
8734 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8736 2002-05-17 Richard Henderson <rth@redhat.com>
8738 * expr.c (init_expr_once): Don't use start/end_sequence.
8739 Use rtx_alloc instead of emit_insn.
8740 * toplev.c (lang_dependent_init): Run init_expr_once here ...
8741 (lang_independent_init): ... not here.
8743 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8745 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8747 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
8749 * config/avr/avr.c (avr_regs_to_save): New function. Also check
8750 for fixed registers, possibly used for global register variables.
8751 (initial_elimination_offset, avr_output_function_prologue,
8752 avr_output_function_epilogue): Move common code to avr_regs_to_save.
8754 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8756 * Makefile.in: Update for cpptrad.c.
8757 * cpphash.h (struct cpp_buffer): New members for buffer
8759 (struct cpp_reader): New members for traditional output.
8760 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8761 * cppinit.c (cpp_create_reader): Set trad_line.
8762 (cpp_destroy): Free trad_out_base if used.
8763 (cpp_read_main_file): Overlay an empty buffer if traditional.
8764 (cpp_finish_options): Don't do builtins.
8765 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8766 (cpp_handle_option): Handle it.
8767 * cpplex.c (continue_after_nul): New.
8768 (_cpp_lex_direct): Use handle_nul.
8769 * cpplib.h (struct cpp_options): New traditional option.
8770 * cpptrad.c: New file.
8772 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8774 * c-common.c (c_common_init_options): Use C89 for Objective-C,
8775 and set the options flag.
8776 * cppinit.c (lang_flags): Remove objc.
8777 (lang_defaults): Remove OBJC and OBJCXX.
8779 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8780 (cpp_handle_option): Remove -+ and -lang-objc++.
8781 For ObjC, just set a flag.
8782 (print_help): Update.
8783 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8785 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8787 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8788 bootstrap with -mips3.
8790 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
8792 * final.c: Fix formatting.
8793 * fix-header.c: Likewise.
8795 * fold-const.c: Likewise.
8796 * function.c: Likewise.
8798 2002-05-17 David S. Miller <davem@redhat.com>
8800 PR c/6689, PR optimization/6615
8801 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8802 and make it a pointer to rtx. Update comments.
8803 (update_equiv_regs): When scanning for equivalences, record
8804 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
8805 it while making the equiv replacements.
8807 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8809 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8811 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
8813 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8814 when encoding visibility into SYMBOL_REF_FLAG.
8816 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
8818 * expr.c (force_operand): Fix reversed move.
8820 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
8822 * doc/install.texi (Testing): Mention two common DejaGnu warnings
8823 that can be ignored.
8825 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8827 * doc/install.texi (Final install): Recommend to install into a
8828 "clean" target directory.
8830 2002-05-17 Richard Henderson <rth@redhat.com>
8832 * config/ia64/ia64.md: Use braced strings instead of quoted strings
8833 for code blocks. Tidy whitespace.
8835 2002-05-17 Richard Henderson <rth@redhat.com>
8837 * hooks.c (hook_tree_bool_false): New.
8838 * hooks.h: Declare it.
8839 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8840 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8841 * target.h (select_section, unique_section): New.
8842 (in_small_data_p): New.
8843 * varasm.c (resolve_unique_section): Use hooks instead of macros.
8844 (variable_section, output_constant_def_contents): Likewise.
8845 (default_select_section, default_unique_section): New.
8846 (categorize_decl_for_section, default_elf_select_section): New.
8847 * output.h: Declare them.
8849 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8850 (TARGET_ASM_SELECT_SECTION): New.
8851 (SELECT_SECTION): Move ...
8852 * config/darwin.c (machopic_select_section): ... here.
8853 * config/darwin-protos.h: Update.
8855 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8856 (SELECT_SECTION): Move ...
8857 * config/nextstep.c (nextstep_select_section): ... here.
8858 * config/nextstep-protos.h: Update.
8860 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8861 (TARGET_ASM_SELECT_SECTION): New.
8862 * config/svr3.h (SELECT_SECTION): Remove.
8864 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8865 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8866 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8867 (alpha_encode_section_info): Use it.
8868 * config/alpha/alpha-protos.h: Update.
8869 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8870 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8871 (TARGET_ASM_SELECT_SECTION): New.
8872 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8874 * config/arm/pe.h (UNIQUE_SECTION): Remove.
8875 (TARGET_ASM_UNIQUE_SECTION): New.
8877 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8878 (avr_unique_section): Rename from unique_section; make static.
8879 * config/avr/avr-protos.h: Update.
8880 * config/avr/avr.h (UNIQUE_SECTION): Remove.
8882 * config/c4x/c4x.h (SELECT_SECTION): Remove.
8884 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8885 (TARGET_ASM_UNIQUE_SECTION): New.
8886 * config/i386/i386-interix.h: Likewise.
8887 * config/i386/win32.h: Likewise.
8888 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8889 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8890 * config/i386/sco5.h (SELECT_SECTION): Remove.
8891 (TARGET_ASM_SELECT_SECTION): New.
8892 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8894 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8895 instead of SELECT_SECTION.
8896 * config/m68k/dpx2.h: Likewise.
8897 * config/rs6000/lynx.h: Likewise.
8899 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8900 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8901 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8902 (ia64_in_small_data_p): New.
8903 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
8904 (ia64_aix_select_section, ia64_aix_unique_section): New.
8905 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8906 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8908 * config/m32r/m32r.h (SELECT_SECTION): Remove.
8909 (TARGET_ASM_SELECT_SECTION): New.
8910 * config/m32r/m32r.c (m32r_select_section): Take align argument.
8911 * config/m32r/m32r-protos.h: Update.
8913 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8914 (SELECT_SECTION): Move ...
8915 * config/m88k/m88k.c (m88k_select_section): ... here.
8917 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8918 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8919 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8920 (mcore_unique_section): Make static.
8921 * config/mcore/mcore-protos.h: Update.
8923 * config/mips/elf.h (UNIQUE_SECTION): Remove.
8924 (TARGET_ASM_UNIQUE_SECTION): New.
8925 * config/mips/elf64.h: Likewise.
8926 * config/mips/iris6gld.h: Likewise.
8927 * config/mips/linux.h: Likewise.
8928 * config/mips/mips-protos.h: Update.
8929 * config/mips/mips.c (mips_select_section): Add align argument.
8930 * config/mips/mips.h (SELECT_SECTION): Remove.
8931 (TARGET_ASM_SELECT_SECTION): New.
8933 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8934 * config/mmix/mmix.c (mmix_select_section): Remove.
8935 (mmix_unique_section): Remove.
8936 * config/mmix/mmix-protos.h: Update.
8938 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8939 (SELECT_SECTION): Move ...
8940 * config/pa/pa.c (pa_select_section): ... here.
8941 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8943 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8944 from rs6000_select_section and make static.
8945 (rs6000_elf_unique_section): Similarly.
8946 (rs6000_xcoff_select_section): From xcoff.h.
8947 (rs6000_xcoff_unique_section): Likewise.
8948 * config/rs6000/rs6000-protos.h: Update.
8949 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8950 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8951 * config/rs6000/xcoff.h: Likewise.
8953 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8954 (SELECT_SECTION): Move ...
8955 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8957 * config/v850/v850.h (SELECT_SECTION): Move ...
8958 * config/v850/v850.c (v850_select_section): ... here.
8959 (TARGET_ASM_SELECT_SECTION): New.
8961 * config/vax/vms.h (SELECT_SECTION): Move ...
8962 * config/vax/vax.c (vms_select_section): ... here.
8963 (TARGET_ASM_SELECT_SECTION): New.
8965 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8966 for the target hooks.
8968 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
8970 * config/arm/arm.c (emit_multi_reg_push): Do not set
8971 RTX_FRAME_RELATED_P on the SEQUENCE.
8973 2002-05-16 Richard Henderson <rth@redhat.com>
8975 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8976 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
8978 2002-05-16 Richard Henderson <rth@redhat.com>
8980 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8982 * config/ia64/ia64.c (saveable_obstack): Do not declare.
8984 2002-05-16 Richard Henderson <rth@redhat.com>
8986 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8987 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8988 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8989 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8990 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8991 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8992 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8993 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8994 Revert "Basic block renumbering removal", and two followup patches.
8996 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8998 * lcm.c (optimize_mode_switching): Revert previous change.
9000 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9002 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
9003 with only extant block numbers.
9005 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9007 * lcm.c (optimize_mode_switching): Fix typo.
9009 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9011 * flow.c (calculate_global_regs_live): Queue blocks in program order.
9013 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9015 * doc/install.texi (Configuration): Document PWDCMD.
9017 2002-05-16 Dale Johannesen <dalej@apple.com>
9019 * combine.c (cant_combine_insn_p): Reenable combinations
9020 involving hard regs unless CLASS_LIKELY_SPILLED_P.
9022 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9024 * c-common.c (cb_register_builtins): Handle more built-ins
9025 here rather than in gcc.c specs.
9026 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
9027 (cpp_options): Pass -O flags even when only preprocessing.
9028 * toplev.c (set_fast_math_flags): New prototype.
9029 (fast_math_flags_set_p): New.
9030 (set_no_fast_math_flags): Remove.
9031 (decode_f_option): Update.
9032 * toplev.h (set_fast_math_flags): Update.
9033 (fast_math_flags_set_p): New.
9034 (set_no_fast_math_flags): Remove.
9036 * c4x/c4x.c (c4x_override_options): Update.
9038 2002-05-16 Zack Weinberg <zack@codesourcery.com>
9040 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
9041 Default-define here.
9042 (builtin_define_with_value): Can now wrap the expansion in
9043 quotation marks if such is wanted.
9044 (cb_register_builtins): Update calls to builtin_define_with_value.
9045 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
9047 (c_common_init): Set options->stdc_0_in_system_headers.
9048 * c-lex.h: Update prototype of builtin_define_with_value.
9049 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
9050 and REGISTER_PREFIX.
9052 * cppinit.c (VERS, ULP, C, X): Kill.
9053 (builtin_array): Remove entries for __VERSION__,
9054 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
9055 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
9057 (init_builtins): Kill off a bunch of now-dead code.
9058 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
9059 -fno-leading-underscore.
9060 (cpp_handle_option): Remove code to set user_label_prefix.
9061 (cpp_post_options): Likewise.
9063 * cpplib.h (struct cpp_options): Remove user_label_prefix.
9064 (stdc_0_in_system_headers): New.
9065 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
9066 stdc_0_in_system_headers) too to decide the value of __STDC__.
9068 * tradcpp.c (user_label_prefix): Kill.
9069 (main): Remove code handling -f(no-)leading-underscore.
9070 (initialize_builtins): Don't define __REGISTER_PREFIX__
9071 or __USER_LABEL_PREFIX__.
9072 (install_value): Wrap compound statement in dummy loop so the
9073 macro works properly in an if statement.
9076 2002-05-16 Janis Johnson <janis187@us.ibm.com>
9078 * loop.h (struct loop_info): Add member has_prefetch.
9079 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
9080 (prescan_loop): Initialize has_prefetch.
9081 (struct prefetch_info): Change prefetch_in_loop and
9082 prefetch_before_loop from bit fields to ints.
9083 (emit_prefetch_instructions): Several small fixes.
9084 (check_dbra_loop): Don't reverse loop that uses prefetch.
9086 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9088 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
9089 * configure.in: Likewise.
9090 * fixinc/check.tpl: Likewise.
9091 * fixinc/fixinc.dgux: Likewise.
9092 * fixinc/fixinc.svr4: Likewise.
9093 * fixinc/fixinc.winnt: Likewise.
9094 * fixinc/fixincl.sh: Likewise.
9095 * fixproto: Likewise.
9096 * configure: Regenerate.
9098 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9100 Basic block renumbering removal:
9101 * basic_block.h (struct basic_block_def): Renamed index to sindex,
9102 added prev_bb and next_bb fields.
9103 (n_basic_blocks): Renamed to num_basic_blocks.
9104 (last_basic_block): New, index of last basic block.
9105 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9106 traversing basic block chain.
9107 (BLOCK_NUM): index -> sindex.
9108 (create_basic_block_structure, create_basic_block): Declaration changed.
9109 (debug_num2bb): Declare.
9110 (expunge_block_nocompact): Declaration removed.
9111 (link_block, unlink_block, compact_blocks): Declare.
9112 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
9113 * cfg.c (entry_exit_blocks): Initialize new fields.
9114 (clear_edges, alloc_block, expunge_block, cached_make_edge,
9115 redirect_edge_pred, dump_flow_info, dump_edge_info,
9116 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
9117 free_aux_for_edges): Modified.
9118 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
9119 (expunge_block_nocompact): Removed.
9120 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
9121 find_unreachable_blocks, create_edge_list, print_edge_list,
9122 verify_edge_list, flow_edge_list_print, remove_fake_successors,
9123 remove_fake_edges, flow_reverse_top_sort_order_compute,
9124 flow_depth_first_order_compute, flow_preorder_transversal_compute,
9125 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
9126 flow_dfs_compute_reverse_execute): Modified.
9127 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
9128 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
9130 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9131 merge_blocks_move_predecessor_nojumps,
9132 merge_blocks_move_successor_nojumps, merge_blocks,
9133 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
9134 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
9135 * cfglayout.c (skip_insns_after_block, label_for_bb,
9136 record_effective_endpoints, scope_to_insns_finalize,
9137 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
9138 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
9139 cfg_layout_duplicate_bb): Modified.
9140 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
9141 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
9142 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
9143 flow_loops_find, flow_loop_outside_edge_p): Modified.
9144 * cfgrtl.c (create_basic_block_structure, create_basic_block,
9145 flow_delete_block, compute_bb_for_insn, split_block,
9146 try_redirect_by_replacing_jump, redirect_edge_and_branch,
9147 force_nonfallthru_and_redirect, tidy_fallthru_edge,
9148 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
9149 commit_edge_insertions, commit_edge_insertions_watch_calls,
9150 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
9151 purge_all_dead_edges): Modified.
9152 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
9153 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
9154 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
9156 * conflict.c (conflict_graph_compute): Modified.
9157 * df.c (FOR_ALL_BBS): Removed.
9158 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
9159 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
9160 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
9161 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
9162 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
9163 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
9164 * final.c (compute_alignments, final_scan_insn): Modified.
9165 * flow.c (verify_local_live_at_start, update_life_info,
9166 update_life_info_in_dirty_blocks, free_basic_block_vars,
9167 delete_noop_moves, calculate_global_regs_live,
9168 initialize_uninitialized_subregs, allocate_bb_life_data,
9169 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
9170 mark_used_reg, count_or_remove_death_notes): Modified.
9171 * function.c (thread_prologue_and_epilogue_insns): Modified.
9172 * gcse.c (struct null_pointer_info): Change typo of current_block
9174 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
9175 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
9176 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
9177 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
9178 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
9179 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
9180 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
9181 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
9182 pre_delete, one_pre_gcse_pass, compute_transpout,
9183 invalidate_nonnull_info, delete_null_pointer_checks_1,
9184 free_code_hoist_mem, compute_code_hoist_vbeinout,
9185 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
9186 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
9187 compute_store_table, build_store_vectors, insert_insn_start_bb,
9188 insert_store, replace_store_insn, free_store_memory, store_motion):
9190 * global.c (global_alloc, global_conflicts, mark_elimination,
9191 build_insn_chain): Modified.
9192 * graph.c (print_rtl_graph_with_bb): Modified.
9193 * haifa-sched.c (sched_init): Modified.
9194 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
9195 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
9196 if_convert): Modified.
9197 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
9198 compute_insert_delete, pre_edge_lcm, compute_available,
9199 compute_farthest, compute_nearerout, compute_rev_insert_delete,
9200 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
9202 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
9203 * loop.c (loop_dump_aux): Modified.
9204 * predict.c (combine_predictions_for_insn, estimate_probability,
9205 last_basic_block_p, process_note_prediction, process_note_predictions,
9206 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
9207 expensive_function_p, estimate_bb_frequencies,
9208 compute_function_frequency): Modified.
9209 * print-rtl.c (print_rtx): Modified.
9210 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
9211 get_exec_counts, compute_branch_probabilities, compute_checksum,
9212 branch_prob, find_spanning_tree): Modified.
9213 * recog.c (split_all_insns, peephole2_optimize): Modified.
9214 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
9215 convert_regs_1, convert_regs_2, convert_regs): Modified.
9216 * regclass.c (scan_one_insn, regclass): Modified.
9217 * regmove.c (mark_flags_life_zones, regmove_optimize,
9218 combine_stack_adjustments): Modified.
9219 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
9220 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
9221 * reorg.c (dbr_schedule): Modified.
9222 * resource.c (find_basic_block, init_resource_info): Modified.
9223 * sbitmap.c (sbitmap_intersection_of_succs,
9224 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
9225 sbitmap_union_of_preds): Modified.
9226 * sched-deps.c (init_dependency_caches): Modified.
9227 * sched-ebb.c (schedule_ebbs): Modified.
9228 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
9229 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
9230 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
9231 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
9232 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
9233 ssa_const_prop): Modified.
9234 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
9235 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
9236 * ssa.c (remove_phi_alternative, find_evaluations,
9237 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
9238 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
9239 make_regs_equivalent_over_bad_edges,
9240 make_equivalent_phi_alternatives_equival,
9241 compute_conservative_reg_partition,
9242 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
9243 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
9246 2002-05-16 Mark Mitchell <mark@codesourcery.com>
9248 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
9250 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
9252 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
9253 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9254 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
9255 calling CONSTANT_POOL_ADDRESS_P.
9256 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
9257 to decide whether to define __arm__ or __thumb.
9258 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
9259 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9261 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9263 * config/arc/arc.h (CPP_PREDEFINES): Remove.
9265 (TARGET_CPU_CPP_BUILTINS): New.
9267 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9269 * cpphash.h (cpp_macro): Move here, and make expansion a union.
9270 * cppmacro.c (cpp_macro): Remove.
9271 (enter_macro_context, replace_args, warn_of_redefinition,
9272 _cpp_create_definition, cpp_macro_definition): Update.
9274 2002-05-16 Jason Merrill <jason@redhat.com>
9276 * config/mips/mips.c (mips_output_external): Don't do sdata
9277 optimization for a variable with DECL_COMDAT set.
9279 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9281 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
9282 Cleanups for accepting modifiers on pointers.
9283 Fix predicate typos.
9284 Allow long pointers as well as int pointers.
9286 2002-05-15 Richard Henderson <rth@redhat.com>
9288 * varasm.c (merge_weak): Remove special case for extern and common.
9290 2002-05-15 Matt Hiller <hiller@redhat.com>
9292 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
9294 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
9295 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
9296 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
9297 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
9298 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
9299 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
9301 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9303 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
9305 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9307 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
9308 ("altivec_mfvscr"): Read from VSCR.
9310 Add vscr sets for the following insns: altivec_vctuxs,
9311 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
9312 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
9313 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
9314 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
9315 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
9316 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
9317 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
9318 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
9319 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
9320 altivec_vsum2sws, altivec_vsumsws.
9322 * config/rs6000/rs6000.h: Add VSCR fixed register.
9323 (CALL_REALLY_USED_REGISTERS): Add vscr.
9324 (CALL_USED_REGISTERS): Same.
9325 (FIXED_REGISTERS): Same.
9326 (REG_ALLOC_ORDER): Same.
9327 (reg_class): Add VSCR_REGS.
9328 (REG_CLASS_NAMES): Same.
9329 (REG_CLASS_CONTENTS): Same.
9331 (REGISTER_NAMES): Add vscr.
9332 (DEBUG_REGISTER_NAMES): Same.
9333 (ADDITIONAL_REGISTER_NAMES): Same.
9334 (FIRST_PSEUDO_REGISTER): Increment.
9335 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
9337 2002-05-15 Jakub Jelinek <jakub@redhat.com>
9339 * fold-const.c (fold): Fix a typo.
9341 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
9343 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
9344 comparison against the highest or lowest integer value before
9345 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
9346 transformation and that of an unsigned comparison against 0
9349 2002-05-15 Richard Henderson <rth@redhat.com>
9351 * varasm.c (merge_weak): Error for any weakening after definition.
9352 Adjust weakening after use warning to catch more cases.
9353 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
9354 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
9356 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
9358 * invoke.texi (-malign-double): Re-add lost warning.
9360 * i386-protos.h (x86_output_mi_thunk): Declare.
9361 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
9362 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
9364 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
9365 when flag_asynchronous_unwind_tables is set.
9367 * flags.h (flag_reorder_functions): Declare.
9368 * function.c (prepare_function_start): Initialize frequnecy.
9369 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
9370 * Makefile.in (predict.o): Add dependency on target.h and params.h
9371 * defaults.h (HOT_TEXT_SECTION_NAME,
9372 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
9373 * predict.c (choose_function_section): New function.
9374 (estimate_bb_frequencies): Use it.
9375 * toplev.c (flag_reorder_functions): New global variable.
9376 (lang_independent_options): New.
9377 (parse_options_and_default_flags): Set.
9378 * varasm.c (assemble_start_function): Bypass functdion alignment
9379 for never executed functions.
9380 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
9381 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
9382 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
9385 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
9387 * predict.c: Inlude profile.h
9388 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
9389 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
9390 Use the information about maximal counter in the program.
9392 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
9394 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
9395 probably_never_executed_bb_p): New functions.
9396 * cfgcleanup.c (outgoing_edges_match): Use them.
9397 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
9398 (maybe_hot_bb_p, probably_cold_bb_p,
9399 probably_never_executed_bb_p): New functions.
9401 * function.h (function): Add new field function_frequency.
9402 * predict.c (compute_function_frequency): New function.
9403 (estimate_probability): Call it.
9405 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9407 PR optimization/5172, optimization/5200
9408 * gcse.c (gcse_main): Disable store_motion.
9410 2002-05-14 Zack Weinberg <zack@codesourcery.com>
9412 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
9413 (c_common_nodes_and_builtins): Use it.
9414 (builtin_define_with_value): New function.
9415 (cb_register_builtins): Define __SIZE_TYPE__,
9416 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
9417 using builtin_define_with_value. Use consistent notation when
9418 defining __GXX_WEAK__.
9419 (WCHAR_TYPE_SIZE): Don't redefine.
9420 (combine_strings): Don't use WCHAR_TYPE_SIZE.
9422 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
9423 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
9424 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
9425 * tradcpp.c (initialize_builtins): Likewise.
9426 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
9428 * c-lex.h (builtin_define_with_value): Prototype.
9429 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
9430 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
9431 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
9433 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
9434 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
9435 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
9436 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
9437 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
9438 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
9439 config/sparc/sol2-bi.h, config/sparc/sparc.h:
9440 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
9441 to __SIZE_TYPE__ etc from all spec strings. When this makes
9442 extra specs empty, delete them.
9444 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
9446 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
9447 for PA8000 or generating dwarf2 call frame information.
9448 (output_call): Remove DO_FRAME_NOTES check from return pointer
9450 (following_call): Return 0 when scheduling for PA8000 or generating
9451 dwarf2 call frame information. Revise comment.
9453 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9456 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
9457 and __IEEE_FP_INEXACT as appropriate.
9458 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
9459 (CPP_SPEC): Remove ieee defines.
9460 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
9462 2002-05-14 Richard Henderson <rth@redhat.com>
9464 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
9465 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
9467 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9469 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
9471 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
9472 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
9473 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
9474 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
9475 (EXTRA_SPECS): Update.
9476 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
9477 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
9478 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
9479 define TARGET_OS_CPP_BUILTINS if necessary.
9481 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
9483 * gcc.c (cpp_options): Must pass -m* and -f* options
9484 to the front end even when only preprocessing.
9485 (cc1_options): Remove redundant -lang-c.
9486 * tradcpp.c (main): Ignore -m options.
9488 * lang-specs.h: Similarly.
9490 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
9492 * genautomata.c (transform_3): Add code for transformation
9493 `(A,B,...)+C -> A+C,B,...'.
9495 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
9497 * final.c (end_final): Do not output profile_arcs constructor, when
9498 no functions are instrumented.
9500 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
9502 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
9504 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9506 * doc/install.texi: Remove special markup originally required for
9507 HTML generation with texi2html.
9509 2002-05-14 Andreas Schwab <schwab@suse.de>
9511 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
9513 (UNIQUE_SECTION): Define to get small data correctly.
9515 * varasm.c (resolve_unique_section): Add third parameter
9516 flag_function_or_data_sections and use it instead of
9517 flag_function_sections.
9518 (assemble_start_function): Pass flag_function_sections.
9519 (asm_emit_uninitialised): Pass flag_data_sections.
9520 (assemble_variable): Likewise.
9522 2002-05-14 Richard Henderson <rth@redhat.com>
9524 * config/i386/i386.md: Use define_constants for unspec numbers.
9525 * config/i386/i386.c: Likewise.
9527 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9529 * doc/contrib.texi: Update my entry.
9531 2002-05-13 Mark Mitchell <mark@codesourcery.com>
9533 * fixinc/inclhack.def (winidss_valist): Limit applicability.
9534 * fixinc/fixincl.x: Regenerated.
9535 * fixinc/tests/base/math.h: Update.
9536 * fixinc/tests/base/testing.h: Likewise.
9538 2002-05-13 Zack Weinberg <zack@codesourcery.com>
9540 * genattr.c (gen_attr): Don't emit a comma after the last
9543 2002-05-13 Richard Henderson <rth@redhat.com>
9545 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
9547 * recog.c (peephole2_optimize): Likewise.
9549 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
9551 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
9554 2002-05-13 Jeffrey A Law (law@redhat.com)
9556 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
9557 Update prototype and callers.
9558 (propagate_one_insn): Stack pointer adjustments kill MEMs on
9559 the mem_set_list which reference the stack pointer, as do
9560 calls to constant functions as they may clobber outgoing
9563 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
9565 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9566 (ia32_multipass_dfa_lookahead): New function.
9568 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9570 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
9571 (translate_options): Remove 'V'.
9572 (process_command): Similarly.
9574 * invoke.texi: Remove documentation of 'V'.
9576 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
9578 * config/s390/linux.h: Revert 2002-04-22 changes.
9580 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
9582 * config/fr30/fr30.md: Only allow splits of immediate loads
9583 if the destination is a register.
9585 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9587 * Makefile.in (c-common.o, cppinit.o): Update.
9588 * c-common.c: Include except.h.
9589 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9590 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9591 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9592 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9593 CPP_PREDEFINES): Handle here.
9595 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9596 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9597 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9598 TARGET_OS_CPP_BUILTINS.
9599 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9600 (CPP_SPEC, EXTRA_SPECS): Update.
9601 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9602 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9603 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9604 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9605 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9607 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9608 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9610 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9612 * emit-rtl.c (global_rtl): Update comment.
9613 (const_double_htab, const_double_htab_hash,
9614 const_double_htab_hash, lookup_const_double): New.
9615 (const_int_htab_hash, const_int_htab_eq): Remove const
9616 qualifiers, which cause tons of warnings with RTL checking on.
9617 (gen_rtx_CONST_DOUBLE): Deleted.
9618 (const_double_from_real_value): New function - bears some
9619 resemblance to the former immed_real_const_1.
9620 (immed_double_const): Moved here from varasm.c and
9622 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9623 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9624 (gen_rtx): Use immed_double_const.
9625 (init_emit_once): Initialize the const_double_htab. Use
9626 REAL_VALUE_FROM_INT where possible. Can now use
9627 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9628 * varasm.c (struct varasm_status): Remove x_const_double_chain.
9629 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9630 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9631 (init_varasm_status, mark_varasm_status): Don't touch
9632 x_const_double_chain.
9634 * output.h: Delete prototype for clear_const_double_mem.
9635 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
9636 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
9637 const_double_from_real_value, not immed_real_const_1, and use
9638 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
9640 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9641 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9642 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9643 (gen_rtx_REG): Second arg is unsigned.
9645 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9646 (excluded_rtx): New, return true for CONST_DOUBLE.
9647 (genmacro): Write nothing for excluded codes.
9648 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9649 * expr.c (expand_expr): Likewise.
9650 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9652 * toplev.c (rest_of_compilation): Don't call
9653 clear_const_double_mem.
9655 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9656 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9657 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9658 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9659 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9660 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9661 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9662 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9664 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9666 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9668 2002-05-12 Tom Tromey <tromey@redhat.com>
9670 * tree.h (copy_node): Don't mention TREE_PERMANENT.
9672 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9674 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9675 (scan_comma_elt): New function. Accepts whitespace in comma lists.
9676 * gensupport.h: Prototype new routines.
9677 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
9679 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9680 (next_comma_elt): Use scan_comma_elt.
9682 * config/i386/i386.md: Use new attribute notation to break up
9683 long lines in define_attr forms.
9685 2002-05-12 Richard Henderson <rth@redhat.com>
9687 * expr.c (compress_float_constant): New.
9688 (emit_move_insn): Use it.
9689 (float_extend_from_mem): New.
9690 (init_expr_once): Initialize it.
9691 * real.c (exact_real_truncate): New.
9693 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9694 dropped into memory; penalize for size.
9695 (RTX_COSTS): FLOAT_EXTEND is free.
9696 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9697 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9699 2002-05-12 Richard Henderson <rth@redhat.com>
9701 * profile.h (profile_info): Add missing extern to declaration.
9702 * profile.c (profile_info): Define it.
9704 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9706 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9707 used for DImode and TImode.
9709 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
9711 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9714 2002-05-11 Zack Weinberg <zack@codesourcery.com>
9716 * config/rs6000/rs6000.c (rs6000_default_long_calls,
9717 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9718 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9719 (rs6000_override_options): Handle -m(no-)longcall.
9720 (init_cumulative_args, output_mi_thunk): Check for both
9721 longcall and shortcall attributes on the function.
9722 (rs6000_attribute_table): Add "shortcall".
9723 (rs6000_handle_longcall_attribute): Update comment.
9724 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9725 altivec_expand_ternop_builtin): Add default clauses to switches
9726 to silence warnings.
9728 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9729 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
9730 (TARGET_OPTIONS): Add longcall and no-longcall.
9732 * config/rs6000/rs6000.md (call_nonlocal_sysv,
9733 call_value_nonlocal_sysv): Split by alternatives. One pair
9734 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9735 the call cookie. The other pair accepts only LR/CTR and has
9738 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9739 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9741 * config/rs6000/rs6000-c.c: New file.
9742 * config/rs6000/t-rs6000-c-rule: New file.
9743 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9744 Prototype rs6000_pragma_longcall.
9746 * doc/extend.texi: Document shortcall attribute.
9747 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9749 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9751 * reorg.c (dbr_schedule): Remove unnecessary test.
9753 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9755 * i386.md (testsi to testqi spliters): New.
9757 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
9759 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9761 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
9763 * basic-block.h: New flag EDGE_CAN_FALLTHRU
9764 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9765 that can be made fallthru.
9767 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
9769 * cfglayout.c (cleanup_unconditional_jumps): New static function.
9770 (cfg_layout_initialize): Use it.
9772 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
9774 * config/avr/avr.c (avr_mcu_types): Update supported devices.
9775 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9776 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9778 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
9780 * dbxout.c: Fix formatting.
9781 * dependence.c: Likewise.
9783 * diagnostic.c: Likewise.
9784 * doloop.c: Likewise.
9785 * dominance.c: Likewise.
9786 * doschk.c: Likewise.
9787 * dwarf2asm.c: Likewise.
9788 * dwarf2out.c: Likewise.
9789 * dwarfout.c: Likewise.
9791 2002-05-10 Richard Henderson <rth@redhat.com>
9793 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
9794 Convert integers constants as needed. Replace "nwords" field with
9796 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9797 * function.h: Fix typo in comment.
9798 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9800 2002-05-10 Roger Sayle <roger@eyesopen.com>
9802 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9803 into the equivalent (signed char)c > 0.
9805 2002-05-10 Janis Johnson <janis187@us.ibm.com>
9807 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9808 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9809 (struct prefetch_info): Fix spelling of member bytes_accessed.
9810 (emit_prefetch_instructions): Make dump messages more regular;
9811 restructure code to add more dump messages; use new macros for
9812 heuristics. (There are no code generation changes in any of this).
9814 2002-05-10 David S. Miller <davem@redhat.com>
9816 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9817 (struct rtx_def): Update unchanging flag comment.
9818 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9819 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9820 to be handled to INSN too.
9821 (dbr_schedule): Likewise.
9822 * resource.c (next_insn_no_annul): Likewise.
9824 * cse.c (rtx_cost): Remove multiplication by power of 2 special
9827 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9829 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9830 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9831 (possibly) work around broken /bin/sh.
9833 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9835 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9836 . as N64/N32 libgcc_s.so subdirs.
9838 2002-05-10 David S. Miller <davem@redhat.com>
9840 * config/sparc/sparc.md: Use define_constants for unspec numbers.
9842 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9844 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9846 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9847 * doc/rtl.texi: Document these macros more accurately.
9848 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9849 JUMP_INSNs and CALL_INSNs.
9850 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9851 or INSN_FROM_TARGET_P if the code is appropriate.
9853 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
9855 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9856 before using SYMBOL_REF_FLAG (addr).
9858 * config/avr/avr-protos.h (avr_io_address_p): Declare.
9859 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9860 Make non-static. Update all callers.
9861 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9862 New insns to clear/set/test a single bit in I/O address space.
9864 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9866 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9868 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9870 * Makefile.in: Update.
9871 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9872 builtin_define_std): New.
9873 (c_common_init): Register CPP builtins callback.
9874 * c-common.h (flag_iso, flag_undef): New.
9875 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9876 * c-lex.c: Don't include target.h.
9877 (cb_register_builtins): Move to c-common.c.
9878 (init_c_lex): Don't register hook here.
9879 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9880 (cpp_define, cpp_assert): Remove.
9881 * gcc.c (cc1_options): Pass -undef to front end.
9882 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9883 (TARGET_INITIALIZER): Update.
9884 * target.h (struct cpp_reader): Don't predeclare.
9885 (struct gcc_target): Remove cpp builtin hook.
9886 * tree.c (default_register_cpp_builtins): Remove.
9890 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9892 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9894 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9896 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9897 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9899 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9901 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9902 * config/sparc/libgcc-sparc-glibc.ver: New file.
9903 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9904 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9906 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9909 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9910 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9911 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9913 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9914 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9915 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9916 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9918 2002-05-09 Richard Henderson <rth@redhat.com>
9920 * config/ia64/ia64.md: Use define_constants for unspec numbers.
9921 * config/ia64/ia64.c: Likewise.
9923 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
9925 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9926 (save_restore_insns): Likewise.
9927 (mips_expand_prologue, mips_expand_epilogue): Update callers.
9928 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9930 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
9932 * athlon.md, k6.md, pentium.md, ppro.md): New files.
9933 * i386.md: Move scheduling information into new files.
9935 * i386.md (type attribute): Add "rotate" for rotate insns.
9936 (rotate insns): Set type to "rotate".
9937 (various attributes and function units): Treat rotate like shift.
9938 (pent_pair attribute): Only rotates by one bit position are
9940 (sbb insns): Explicitly set pent_pair attribute on a couple
9941 that were missing it.
9943 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9945 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9946 make sure that buffer starts on odd word address.
9947 (sh_va_arg): Skip odd fp registers when reading a double precision
9950 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9952 * tree.h (preserve_data, object_permanent_p, type_precision):
9955 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9957 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9958 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9960 * cpp.texi: Update for removal of obsolete features.
9962 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
9963 Jeffrey A Law (law@redhat.com)
9965 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
9966 the DFA interface for Pentium processors.
9967 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9968 (attr_pent_pair, ix86_pent_find_pair): Remove.
9969 (ix86_sched_reorder_pentium): Remove.
9970 (ix86_sched_reorder): Remove reordering for Pentium.
9971 * i386.md (Pentium scheduling): Rewrite using DFA description.
9973 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
9975 * cfganal.c (can_fallthru): Fix fast path.
9976 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9977 with edges to the next block.
9979 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
9980 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
9982 * final.c (end_final): Use C trees to output data structures for profiling.
9984 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
9985 (profile.o): New dependency profile.h
9986 (final.o): New dependency profile.h
9987 * profile.h: New file. New global structure profile_info.
9988 * final.h (count_edges_instrumented_now): Declare.
9989 (current_function_cfg_checksum): Declare.
9990 (function_list): New structure.
9991 (functions_head, functions_tail): New static variables.
9992 (end_final): Emits more data, removed some -ax stuff.
9993 (final): Stores function names and chcksums.
9994 * gcov-io.h (__write_gcov_string): New function.
9995 (__read_gcov_string): New function.
9996 * gcov.c (read_profile): New function.
9997 (create_program_flow_graph): Uses read_profile instead of reading
9999 (read_files): Removed da_file checking, it's done by read_profile now.
10000 * libgcc2.c (bb_function_info): New structure.
10001 (bb): New field in structure, removed some -ax stuff.
10002 (__bb_exit_func): Changed structure of da_file.
10003 * profile.c (count_edges_instrumented_now): New global variable.
10004 (current_function_cfg_checksum): New global variable.
10005 (max_counter_in_program): New global variable.
10006 (get_exec_counts): New function.
10007 (compute_checksum): New function.
10008 (instrument_edges): Sets count_edges_instrumented_now.
10009 (compute_branch_probabilities): Uses get_exec_counts instead of
10011 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
10012 (init_branch_prob): Removed da_file checking, done in get_exec_counts
10014 (end_branch_prob): Removed da_file checking, done in get_exec_counts
10016 * gcov.texi: Updated information about gcov file format.
10018 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
10020 * sbitmap.c: Fix formatting.
10021 * scan.c: Likewise.
10022 * scan-decls.c: Likewise.
10023 * sched-deps.c: Likewise.
10024 * sched-ebb.c: Likewise.
10025 * sched-rgn.c: Likewise.
10026 * sched-vis.c: Likewise.
10027 * sdbout.c: Likewise.
10028 * sibcall.c: Likewise.
10029 * simplify-rtx.c: Likewise.
10031 * ssa-ccp.c: Likewise.
10032 * ssa-dce.c: Likewise.
10033 * stmt.c: Likewise.
10034 * stor-layout.c: Likewise.
10035 * stringpool.c: Likewise.
10037 2002-05-09 David S. Miller <davem@redhat.com>
10039 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
10041 2002-05-07 David S. Miller <davem@redhat.com>
10043 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
10044 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
10045 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
10046 library implementation clobbers the output before the inputs
10047 are fully consumed, use stack temporary for the output.
10049 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
10051 * config/netbsd.h (CPP_SPEC): Remove.
10052 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
10053 * config/i386/netbsd.h (CPP_SPEC): Define.
10054 * config/ns32k/netbsd.h (CPP_SPEC): Define.
10055 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
10056 * config/sparc/netbsd.h (CPP_SPEC): Define.
10057 * config/vax/netbsd.h (CPP_SPEC): Define.
10059 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
10061 * read-rtl.c: Fix formatting.
10062 * real.c: Likewise.
10063 * recog.c: Likewise.
10064 * regclass.c: Likewise.
10065 * regmove.c: Likewise.
10066 * reg-stack.c: Likewise.
10067 * reload1.c: Likewise.
10068 * reload.c: Likewise.
10069 * resource.c: Likewise.
10070 * rtlanal.c: Likewise.
10072 * rtl-error.c: Likewise.
10074 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10076 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
10077 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
10079 2002-05-08 Bernd Schmidt <bernds@redhat.com>
10081 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
10082 use __SSE2__ macro instead.
10083 * config/i386/xmmintrin.h: Likewise.
10085 2002-05-08 Janis Johnson <janis187@us.ibm.com>
10087 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
10088 and use it in all invocations of these macros. Clean up comments.
10089 * rtl.c (rtl_check_failed_flag): Add an argument for the name
10090 of the flag access macro whose check failed.
10091 * doc/rtl.texi (Flags): Document additional flag uses.
10093 2002-05-08 Robert Spier <rspier@pobox.com>
10094 Neil Booth <neil@daikokuya.demon.co.uk>
10096 PR preprocessor/6521
10097 * cppfiles.c (handle_missing_header): Don't do anything
10098 different for <> includes.
10100 * cppopts.texi: Update documentation for -MG.
10102 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
10104 * cpplex.c (cpp_interpret_charconst): Truncate as well as
10107 * cpp.texi: Clarify multichar charconst valuation.
10109 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10111 * doc/invoke.texi: Document -mwindiss option.
10113 2002-05-08 Jason Merrill <jason@redhat.com>
10115 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
10117 * dwarf2out.c (gen_type_die): Abort on broken recursion.
10120 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
10123 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
10125 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
10126 little-endian multilibs to override arm/thumb multilibs.
10127 Do not build hardware floating point multilibs, nor apcs-26
10128 multilibs for the Thumb.
10130 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10133 * varasm.c (mark_weak): New function.
10134 (merge_weak): Use it. Do not call declare_weak.
10135 (declare_weak): Use merge_weak.
10137 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10139 * cse.c (dead_libcall_p): Update counts.
10140 (delete_trivially_dead_insns): Update call of dead_libcall_p.
10142 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
10144 * cfglayout.c (function_tail_eff_head): Rename to ...
10145 (function_footer): ... this one.
10146 (unlink_insn_chain): New functions.
10147 (label_for_bb): Only call block_label and emit debug message.
10148 (record_effective_endpoints): Actually unlink the headers and footers.
10149 (fixup_reorder_cahin): Re-insert the unlinked sequences.
10150 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
10151 * cfglayout.h (struct reorder_block_def): New fields footer/header;
10152 remove eff_head/eff_end.
10153 * rtl.h (set_first_insn): Declare.
10154 * emit-rtl.c (set_first_insn): New function.
10156 * cfglayout.c (fixup_reorder_chain): Dump duplicated
10157 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10158 cfg_layout_duplicate_bb): New global function.
10159 (duplicate_insn_chain): New static function.
10160 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10161 cfg_layout_duplicate_bb): Declare.
10162 (struct reorder_block_def): Add "original" field.
10163 * emit-rtl.c (emit_copy_of_insn_after): New function.
10164 * rtl.h (emit_copy_of_insn_after): Declare.
10166 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
10167 (fixup_reorder_chain): properly handle edges to exit block.
10169 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10170 Jan Hubicka <jh@suse.cz>
10172 * basic-block.h (note_prediction_to_br_prob): declare.
10173 * c-semantics.c: Inlucde predit.h
10174 (expand_stmt): predict GOTO_STMT as not taken.
10175 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
10176 (cleanup_cfg): Do not free tail_recursion_list.
10177 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
10178 (flow_delete_block): Kill predictions past end of basic block.
10179 * output.h (delete_unreachable_blocks): Declare.
10180 * predict.c (predicted_by_p, process_note_predictions,
10181 process_note_prediction, last_block_p): New function.
10182 (estimate_probability): Bypass loop on PRED_CONTINUE;
10183 do not handle noreturn heuristics; kill PRED_RETURN; add
10185 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
10186 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
10187 * predict.h (IS_TAKEN): New constant.
10188 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
10189 * rtl.c (NOTE_INSN_PREDICTION): New.
10190 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
10192 (insn_note): add NOTE_INSN_PREDICTION.
10193 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
10194 CFG; free tail_recursion_label_list.
10195 * stmt.c: Include predict.h;
10196 (return_prediction): New.
10197 (expand_value_return): Use it.
10198 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
10200 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
10202 * config/mips/mips.md: Name the unspecs with define_constant.
10203 (*HILO_delay): Rename to 'hilo_delay' (no star).
10204 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
10205 (reload_outdi, reload_outsi): Likewise.
10207 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
10209 * toplev.c: Fix formatting.
10211 2002-05-07 Janis Johnson <janis187@us.ibm.com>
10213 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
10214 * configure.in (ac_rtlflag_checking): New.
10215 * doc/install.texi (--enable-checking): Document RTL flag checking.
10217 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10219 * c-common.c (c_common_init): Set options->unsigned_wchar.
10220 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
10221 group target dependencies.
10222 (init_builtins, cpp_handle_option): Update.
10223 * cpplex.c (cpp_interpret_charconst): Update.
10224 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
10225 signed_char to unsigned_char, group target dependencies.
10226 * defaults.h (WCHAR_UNSIGNED): Remove.
10227 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
10229 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
10230 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
10231 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
10232 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
10233 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
10235 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
10237 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10239 * fixinc/inclhack.def (windiss_math1): New fix.
10240 (windiss_math2): Likewise.
10241 (windiss_valist): Likewise.
10242 * fixinc/fixincl.x: Regenerated.
10244 2002-05-07 Andreas Jaeger <aj@suse.de>
10246 * genautomata.c (output_internal_min_issue_delay_func): Add
10247 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
10248 (output_internal_trans_func): Likewise.
10250 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
10252 * pa.c (hppa_profile_hook): Use force_reg to get the address
10253 of the profile hook into an appropriate pseudo register.
10255 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10257 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
10258 (LINK_START_SPEC): Handle it.
10259 (LINK_OS_SPEC): Likewise.
10260 (CPP_SPEC): Likewise.
10261 (STARTFILE_SPEC): Likewise.
10262 (LIB_SPEC): Likewise.
10263 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
10265 (CRTSAVRES_DEFAULT_SPEC): New macro.
10266 (LIB_WINDISS_SPEC): New macro.
10267 (CPP_OS_WINDISS_SPEC): Likewise.
10268 (STARTFILE_WINDISS_SPEC): Likewise.
10269 (ENDFILE_WINDISS_SPEC): Likewise.
10270 (LINK_START_WINDISS_SPEC): Likewise.
10271 (LINK_OS_WINDISS_SPEC): Likewise.
10272 * config/rs6000/windiss.h: New file.
10274 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
10276 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
10278 2002-05-06 David S. Miller <davem@redhat.com>
10280 * config/sparc/sparc.md (shift insns): Do not mask off
10281 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
10284 2002-05-06 Richard Henderson <rth@redhat.com>
10287 * expr.c (highest_pow2_factor_for_type): New.
10288 (expand_assignment): Use it.
10290 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
10292 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
10294 ("altivec_mfvscr"): Same.
10296 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10298 * rtl.h (struct rtx_def): Update comments.
10299 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
10300 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
10301 RTL_FLAG_CHECK macros with list of expected RTL codes.
10302 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
10303 (rtl_check_failed_flag): New.
10304 * reload1.c (reload): Use REG macro before changing rtx to MEM.
10305 (reload_cse_noop_set_p): Check rtx code before using access macro.
10306 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
10307 before using access macro.
10309 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10311 * doc/rtl.texi (Flags): Update to reflect current usage.
10313 2002-05-06 Roger Sayle <roger@eyesopen.com>
10316 * fold-const.c (sign_bit_p): New function.
10317 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
10318 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
10319 Reapply fold when converting (A & C) == C into (A & C) != 0.
10320 (fold_binary_op_with_conditional_arg): Fix typo in comment.
10322 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10324 * c-common.c (warn_multichar): New.
10325 (c_common_init): Set CPP's warn_multichar.
10326 * c-common.h (warn_multichar): New.
10327 * c-decl.c (warn_multichar): Remove.
10328 * c-lex.c (lex_charconst): Update.
10329 * c-tree.h (warn_multichar): Remove.
10330 * cppexp.c (eval_token): Sign-extend charconst value.
10331 * cppinit.c (cpp_create_reader): Set warn_multichar.
10332 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
10333 each character. Update prototype. Sign-extend the result.
10334 * cpplib.h: Fix conditions.
10335 (struct cpp_options): Add new warning flag.
10336 (cpp_interpret_charconst): Update prototype.
10338 * cpp.texi: Update documentation.
10340 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
10342 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
10343 Fix typo in usage of allof instead of unit.
10345 2002-05-06 Richard Henderson <rth@redhat.com>
10347 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
10348 and any jump or call for IN.
10350 2002-05-06 Bernd Schmidt <bernds@redhat.com>
10352 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
10354 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
10356 2002-05-06 Roger Sayle <roger@eyesopen.com>
10358 * fold-const.c (lshift-double): Cast the high word to an unsigned
10359 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
10360 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
10361 avoid compiler warning. (fold): Remove redundant code from
10362 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
10364 2002-05-06 Jeff Law <law@redhat.com>
10366 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
10367 * pa.c (pa_adjust_cost): Remove all true dependency cost
10368 adjustments. Also remove support for non-DFA scheduling.
10369 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
10370 to adjust true dependency costs. Update various comments.
10371 (7100lc, 7200, 7300 scheduling): Simplify by combining the
10372 FP ALU & MPY units into a single unit.
10374 2002-05-06 Catherine Moore <clm@redhat.com>
10376 * config/v850/v850.c (compute_register_save_size): Make sure
10377 to count all of the registers that will be saved.
10379 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10381 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
10383 2002-05-06 David S. Miller <davem@redhat.com>
10385 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
10386 allow result to overlap input operands in memory.
10388 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10391 * cpp.texi: Update multichar charconst docs.
10393 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10395 * cpplex.c (cpp_interpret_charconst): Sign-extend each
10396 character. Don't ignore excess characters. Treat
10397 multicharacter character constants as signed.
10398 (cpp_parse_escape): Clarify diagnostic.
10400 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10402 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
10403 use add instead of shift.
10404 (ashldi3_sp64): Likewise.
10405 (ashlsi3_const1, ashldi3_const1): Remove.
10406 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
10407 * config/sparc/sparc.c (const1_operand): New.
10409 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
10411 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
10413 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10416 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
10418 2002-05-05 Richard Henderson <rth@redhat.com>
10420 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
10421 memory latency adjustments.
10422 (alpha_variable_issue): Remove.
10423 (alpha_use_dfa_pipeline_interface): New.
10424 (alpha_multipass_dfa_lookahead): New.
10425 * config/alpha/alpha.md: Remove define_function_unit scheduling;
10426 include new dfa scheduling.
10427 (attr type): Add none.
10428 (blockage): Use it.
10429 * config/alpha/ev4.md: New.
10430 * config/alpha/ev5.md: New.
10431 * config/alpha/ev6.md: New.
10433 2002-05-05 David S. Miller <davem@redhat.com>
10435 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
10437 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
10439 * cse.c: Fix formatting.
10440 * emit-rtl.c: Likewise.
10442 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10444 * genautomata.c (initiate_states): Add additional guard to
10445 initialize `units_array'.
10447 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
10449 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
10450 process_unit_to_form_the_same_automaton_unit_lists,
10451 form_the_same_automaton_unit_lists
10452 check_unit_distributions_to_automata): New prototypes and
10454 (check_automata): Rename it into `check_automata_insn_issues'.
10455 (unit_decl): New fields `the_same_automaton_unit' and
10456 `the_same_automaton_message_reported_p'.
10457 (unit_decl_t): New typedef.
10458 (the_same_automaton_lists): New gloval variable.
10459 (unit_regexp, unit_set_el, units_array, units_cmp,
10460 output_get_cpu_unit_code_func): Use the typedef.
10461 (evaluate_max_reserv_cycles): Increment
10462 `description->max_insn_reserv_cycles'.
10463 (initiate_states): Don't increment `max_cycles_num'.
10464 (transform_insn_regexps): Move code around transformation of
10465 regexps from `generate'.
10466 (generate): Remove call of `transform_insn_regexps'.
10467 (expand_automata): Call `transform_insn_regexps' and
10468 `check_unit_distributions_to_automata'. Check errors before
10471 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
10472 automaton `ultrasparc3_1'.
10474 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
10476 * c-common.c (c_common_init): Set up CPP arithmetic.
10477 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
10478 something reasonable for the host.
10479 (sanity_checks): Add checks.
10480 (cpp_read_main_file): Call sanity_checks() from here...
10481 (cpp_post_options): ... not here.
10482 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
10483 * cpplib.h (struct cpp_options): New member int_precision.
10485 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10487 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
10489 2002-05-04 David S. Miller <davem@redhat.com>
10491 * config/sparc/linux.h, config/sparc/linux64.h
10492 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
10494 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
10496 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
10498 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
10501 2002-05-05 Tim Josling <tej@melbpc.org.au>
10503 * treelang; New directory for new sample language treelang.
10505 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10507 * Makefile.in (c-lex.o): Update.
10508 * c-lex.c: Include target.h.
10509 (cb_register_builtins): New.
10510 (init_c_lex): Set builtins callback.
10511 * c-lex.h (cpp_define, cpp_assert): New prototypes.
10512 * cppinit.c (init_builtins): Use callback, including for
10514 * cpplib.h (struct cpp_callbacks): New member.
10515 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
10516 (TARGET_INITIALIZER): Update.
10517 * target.h (struct gcc_target): New hook.
10518 * tree.c (default_register_cpp_builtins): New.
10519 * tree.h (default_register_cpp_builtins): New.
10521 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
10523 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10525 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
10526 (cpp_post_options): Move sanity checks to...
10527 (sanity_checks): New.
10528 * cpplex.c (maybe_read_ucs): Fix prototype.
10529 (parse_string, cpp_parse_escape): Cast for %c format specifier.
10530 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
10533 2002-05-04 Bernd Schmidt <bernds@redhat.com>
10535 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
10536 builtins. Use V2DI patterns instead of TI for logical operations.
10537 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
10538 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
10539 (ix86_expand_builtins): Change the pattern used for movntdq.
10540 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
10541 sse2_nandv2di3): New patterns.
10542 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
10544 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
10545 (cvtdq2pd): Correct mode on operand 1.
10546 (sse2_umulsidi3): Describe without unspec.
10547 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
10549 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
10550 (ashlv2di3): Likewise, from sse2_ashlv2di3.
10551 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
10552 ashlv4si3, ashlv2di3): Use SImode for shift count.
10553 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
10554 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
10556 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
10558 (__m128i, __m128d): New macros.
10559 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
10560 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
10561 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
10562 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
10563 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
10564 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
10565 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
10566 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
10567 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
10568 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
10569 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
10570 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
10571 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
10572 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
10573 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
10574 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
10575 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
10576 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
10577 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
10578 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
10579 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
10580 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
10581 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
10582 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
10583 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
10584 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
10585 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
10586 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
10587 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10588 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10589 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10590 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10591 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10592 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10593 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10594 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10595 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10597 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
10598 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10600 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
10602 * dwarf2out.c: Fix formatting.
10603 * varasm.c: Likewise.
10605 2002-05-04 David Edelsohn <edelsohn@gnu.org>
10608 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10609 clobber and use result as temporary value.
10611 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
10613 * expr.c (force_operand): Use expand_simple_* to handle more
10616 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10618 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10619 and sign-extension.
10620 (lex_charconst): Update for change in prototype of
10621 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
10623 * cpphash.h (BITS_PER_CPPCHAR_T): New.
10624 * cppinit.c (cpp_create_reader): Initialize them for no
10625 change in semantics.
10626 (cpp_post_options): Add sanity checks.
10627 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10628 and truncation issues. Calculate in type cppchar_t.
10629 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10630 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
10631 run-time dependent precision correctly. Return whether the
10632 result is signed or not.
10633 * cpplib.c (dequote_string): Use cppchar_t; update.
10634 * cpplib.h (cppchar_signed_t): New.
10635 struct cpp_options): New precision members.
10636 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
10637 * cppexp.c (eval_token): Update.
10639 2002-05-03 David S. Miller <davem@redhat.com>
10641 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10642 * config/sparc/sparc.c (sparc_rtx_costs): New function
10643 implementing RTX_COSTS and CONST_COSTS.
10644 * config/sparc/sparc.h (CONST_COSTS): Delete.
10645 (RTX_COSTS_CASES): Define.
10646 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10649 * config/sparc/sparc.md (DFA schedulers): Split out...
10650 * config/sparc/cypress.md, config/sparc/hypersparc.md,
10651 config/sparc/sparclet.md, config/sparc/supersparc.md,
10652 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10654 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10655 checks on it, always defined for Sparc.
10657 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10658 Tweak, and add more detailed comments.
10660 2002-05-03 Zack Weinberg <zack@codesourcery.com>
10662 * Re-apply patch accidentally reverted with
10663 DFA scheduler merge: remove all rules and variables to slurp
10664 source files out of libiberty and rebuild them with HOST_CC.
10665 ($(HOST_PREFIX_1)varray.o): New rule.
10666 (genattrtab rule): Word wrap.
10668 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10670 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10671 (CPP_SUBTARGET_SPEC): Define.
10672 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10673 cpp_subtarget specs.
10674 (CPP_SPEC): Redefine to include %(cpp_subtarget).
10676 2002-05-03 David S. Miller <davem@redhat.com>
10678 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10679 * target.h (struct gcc_target): Delete cycle_display member.
10681 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10682 (rtx_needs_barrier): Delete reference to cycle_display unspec.
10683 (ia64_sched_reorder2): Mention need for cycle display handling
10684 once such notes exist.
10686 2002-05-03 Richard Henderson <rth@redhat.com>
10688 * real.c (etoasc): Strip most trailing zeros for clarity.
10689 * sched-vis.c: Include real.h.
10690 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10691 * Makefile.in (sched-vis.o): Add real.h.
10693 2002-05-03 David S. Miller <davem@redhat.com>
10695 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10698 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
10700 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10701 when we get an out of range literal.
10702 (altivec_expand_ternop_builtin): Same.
10703 (altivec_expand_unop_builtin): Same.
10704 (altivec_expand_builtin): Same, for dss.
10705 (altivec_expand_builtin): Use trees instead of rtl when
10706 determining literal argument validity.
10708 2002-05-03 David S. Miller <davem@redhat.com>
10710 Delete cycle display scheduling hook.
10711 * config/ia64/ia64.c (ia64_cycle_display,
10712 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10713 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10714 and use emit_insn_before instead of ia64_emit_insn_before.
10715 * config/ia64/ia64.md (unspec usage): Delete cycle display.
10716 (cycle_display): Delete insn pattern.
10717 * config/sparc/sparc.md (unspec usage): Delete cycle display.
10718 (cycle_display): Delete insn pattern.
10719 * config/sparc/sparc.c (sparc_cycle_display,
10720 TARGET_SCHED_CYCLE_DISPLAY): Delete.
10721 * doc/md.texi (cycle_display): Don't mention.
10722 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
10724 2002-05-03 Richard Henderson <rth@redhat.com>
10726 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10727 * recog.h: Declare them.
10729 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10730 * config/sparc/sparc.md: Use store_data_bypass_p instead.
10731 * config/sparc/sparc-protos.h: Update.
10733 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10735 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10736 -D__arch64__. Add -D_LP64.
10737 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10739 (CPP_ARCH64_SPEC): Likewise.
10740 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10741 (NO_BUILTIN_SIZE_TYPE): Undef.
10743 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
10745 * genautomata.c (min_issue_delay_pass_states): Change return type
10747 (min_issue_delay_pass_states): Change the algorithm.
10748 (min_issue_delay): Set up min_insn_issue_delay for the state.
10749 (output_min_issue_delay_table): Interchange the nested loops and
10750 and initiate min_insn_issue_delay for states.
10752 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
10754 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
10755 jump is simplejump.
10757 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
10759 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
10762 2002-05-03 Richard Henderson <rth@redhat.com>
10765 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10766 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10767 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10768 code before JUMP, not EARLIEST.
10770 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
10772 * c-format.c (check_format_info_main): Don't check for presence of
10773 parameter for * width until after operand number has been read,
10774 and only check for it if format parameters are available.
10777 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10779 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10780 (LINK_SPEC): Undef before defining.
10782 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10784 PR preprocessor/6489
10785 * tradcpp.c (fixup_newlines): New.
10786 (main, finclude): Use it.
10788 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
10790 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10791 * config/mips/mips.c (mips_unique_section): Strip encoding from
10794 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10796 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10799 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10801 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10802 (Specific): Removed buildstats references.
10803 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10804 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10805 Accomodate Solaris versions beyond 8.
10806 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10807 (Specific, *-*-solaris2.8): Removed, obsolete.
10809 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10812 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10813 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10814 fill leaf_reg_remap with identity.
10815 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10817 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10819 * config/h8300/crti.asm: Remove trailing spaces.
10820 * config/h8300/h8300.c: Likewise.
10821 * config/h8300/lib1funcs.asm: Likewise.
10823 2002-05-02 Jason Merrill <jason@redhat.com>
10825 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10826 * c-decl.c (c_init_decl_processing): Use it.
10827 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10828 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10829 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10831 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10833 * regrename.c: Fix formatting.
10834 * tree.c: Likewise.
10836 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
10838 * i386.md (attribute memory): Handle compares properly.
10840 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
10842 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
10845 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
10847 * function.c: Fix formatting.
10849 2002-05-02 Jan Hubicka <jh@suse.cz>
10851 * haifa-sched.c (schedule_insn): Print table of instructions and
10853 (sched_block): Do not print ready list at verbosity level 1.
10854 * sched-vis.c (print_insn): Make global.
10855 * sched-ebb.c (ebb_print_insn): Rename from...
10856 (print_insn): ... this one.
10857 * sched-int.h (print_insn): Declare
10859 2002-05-02 Richard Henderson <rth@redhat.com>
10861 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10862 emitted by cycle_display.
10864 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
10866 * doc/install.texi (*-*-freebsd*): Update to latest status.
10868 2002-05-02 Jakub Jelinek <jakub@redhat.com>
10871 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10872 * config/float-sparc.h: Assume 128-bit long double if
10873 __LONG_DOUBLE_128__ is defined.
10875 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
10877 * genattrtab.c (write_function_unit_info): Add a dummy element
10878 when num_units == 0.
10880 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10882 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10883 TYPE_MODE (double_type_node) instead of DFmode.
10885 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
10887 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10889 * toplev.c (rest_of_compilation): Revert Richard's patch.
10891 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10893 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10895 2002-05-02 Catherine Moore <clm@redhat.com>
10897 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10899 2002-05-02 Kazu Hirata <kazu@hxi.com>
10901 * combine.c: Fix comment typos.
10902 * expr.c: Likewise.
10903 * genautomata.c: Likewise.
10904 * stmt.c: Likewise.
10905 * tree.h: Likewise.
10907 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
10909 * doc/install.texi: State GNAT version requirements.
10911 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
10913 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10914 of the frame pointer or arg pointer register which strict register
10915 checking is not enabled.
10917 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
10919 * gcc.dg/altivec-8.c: New.
10921 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10922 PRE_INC and PRE_DEC for altivec modes.
10924 2002-05-01 Bruce Korb <bkorb@gnu.org>
10926 * fixinc/check.tpl(set-writable): make sure the function exists first
10927 * fixinc/inclhack.def(alpha_assert): fix test_text
10928 * fixinc/tests/base/assert.h: add in missing result
10930 2002-05-01 Jeff Law <law@redhat.com>
10932 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10935 2002-05-01 Joel Brobecker <brobecker@gnat.com>
10937 * dbxout.c (dbxout_type): Emit size information for range types,
10938 as well, but only when using GDB extensions.
10940 2002-05-01 Richard Henderson <rth@redhat.com>
10942 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10943 target-independent gnu binutils date test.
10945 2002-05-01 Richard Henderson <rth@redhat.com>
10947 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10948 info before expunging the block.
10950 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10952 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10953 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
10954 -M -or -MM is in effect.
10956 2002-05-01 Zack Weinberg <zack@codesourcery.com>
10958 * config.gcc: Correct test of --enable-obsolete. Obsolete all
10959 A29k configurations.
10960 * doc/install.texi: Update to match.
10962 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10965 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10966 for duplicates. Always loop over whole list.
10968 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10970 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10972 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10974 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10977 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10979 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10981 2002-05-01 David Edelsohn <edelsohn@gnu.org>
10983 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10984 (nabs_nopower): Same.
10985 (floatdisf2): New pattern.
10986 (absdi2): Convert to define_insn_and_split.
10988 (trunctfsf2): Same.
10989 (floatditf2): Same.
10990 (floatsitf2): Same.
10991 (fix_trunctfdi2): Same.
10992 (fix_trunctfsi2): Same.
10994 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
10996 * doc/install.texi: Update Texinfo version requirement
10999 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11001 PR target/6512, PR target/5628
11002 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
11003 when memory is not aligned.
11004 (movdf_insn_v9only_vis): Likewise.
11005 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
11006 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
11007 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
11009 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
11011 * gcc.dg/altivec-7.c: New.
11013 * config/rs6000/altivec.h: Cleanup.
11015 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
11017 * doc/invoke.texi (Option Summary): Add -mvrsave=.
11018 (RS/6000 and PowerPC Options): Document -mvrsave=.
11020 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
11021 (rs6000_altivec_vrsave_string): Same.
11022 (rs6000_override_options): Call rs6000_parse_vrsave_option.
11023 (rs6000_parse_vrsave_option): New.
11024 (rs6000_stack_info): Only generate vrsave instructions when
11025 TARGET_ALTIVEC_VRSAVE.
11027 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
11028 (rs6000_altivec_vrsave_string): Define extern.
11029 (rs6000_altivec_vrsave): Same.
11030 (TARGET_ALTIVEC_VRSAVE): New.
11032 2002-04-30 Richard Henderson <rth@redhat.com>
11035 * toplev.c (rest_of_compilation): Don't run cross-jump before
11038 2002-04-30 Tom Rix <trix@redhat.com>
11040 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
11041 check which_alternative.
11043 2002-04-30 Kazu Hirata <kazu@hxi.com>
11045 * cpplex.c: Fix comment formatting.
11046 * function.c: Likewise.
11047 * integrate.c: Likewise.
11048 * regrename.c: Likewise.
11049 * sibcall.c: Likewise.
11050 * simplify-rtx.c: Likewise.
11051 * tree-inline.c: Likewise.
11053 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11055 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
11056 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
11057 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
11058 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
11059 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
11060 * pa/x-ada: New file. Define ADA_CFLAGS.
11062 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
11064 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
11065 from MMIX_LAST_REGISTER_FILE_REGNUM.
11066 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
11067 (struct machine_function): New member highest_saved_stack_register
11068 previously static variable in mmix.c.
11069 (MACHINE_DEPENDENT_REORG): Define.
11070 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
11071 (MMIX_OUTPUT_REGNO): New.
11072 (mmix_target_asm_function_prologue): Move calculation of last used
11073 saved-stack-register into...
11074 (mmix_machine_dependent_reorg): New function. Update to also handle
11076 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
11077 register names, simplify somewhat by new variable regno.
11078 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
11080 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
11081 emitting register names.
11082 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
11083 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
11084 Remove fixed FIXME.
11085 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
11088 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
11090 2002-04-30 Richard Henderson <rth@redhat.com>
11092 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
11093 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
11094 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
11095 emit_tfmode_cvt): New.
11096 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
11097 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
11098 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
11099 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
11100 * config/sparc/sparc-protos.h: Update.
11102 2002-04-30 Janis Johnson <janis187@us.ibm.com>
11104 * install.texi (Final install): Add to the list of info to include
11105 in a report of a successful bootstrap, and add link to 3.1 list.
11107 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
11109 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
11110 (mode): Add vector modes
11111 (i387): Kill attribute.
11112 (unit): New attribute.
11113 (length_immediate): Grok new types.
11114 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
11115 (modrm): Use "unit".
11116 (memory): Handle MMX/SSE properly.
11117 (scheduling descriptions): Kill uses of fop1.
11118 (sse, mmx, fp patterns): Set type and mode properly.
11120 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
11122 * pa.c (override_options): Default to PA8000 scheduling.
11123 * doc/invoke.texi (HP-PA options): Mention newly added 7300
11124 scheduling parameter.
11126 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
11127 handling of double precision multiplies.
11129 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
11130 fpdiv and fpsqrt instructions.
11131 (7200 & 7300 scheduling): Fix typo in handling of
11132 store-load and store-store penalties.
11134 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11136 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
11137 mips. Add two missing commas.
11139 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
11141 * doc/contrib.texi (Contributors): Update Paolo Carlini's
11142 and Benjamin Kosnik's entries.
11144 2002-04-29 David S. Miller <davem@redhat.com>
11146 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
11147 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
11148 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
11149 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11151 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11153 * combine.c (find_split_point): Use gen_int_mode.
11155 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
11157 Merging code from dfa-branch:
11159 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
11161 * genautomata.c (output_reserv_sets): Fix typo.
11163 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
11165 * genautomata.c (output_reserv_sets): Remove
11166 next_cycle_output_flag.
11168 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
11170 * sched-rgn.c (init_ready_list): Make the DFA code handle
11171 USE/CLOBBER insns in the same way as the traditional
11173 (new_ready): Similarly..
11175 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
11177 * haifa-sched.c (schedule_block): Change the DFA state only after
11180 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
11182 * pa.c (hppa_use_dfa_pipeline_interface): New function.
11183 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
11184 (override_options): Add PA7300 scheduling support.
11185 (pa_adjust_cost): Update various comments. Properly
11186 handle anti and output dependencies when using the
11188 (pa_issue_rate): Add PA7300 scheduling support.
11189 (pa_can_combine_p): Call extract_insn before calling
11190 constrain_operands (taken from mainline tree).
11191 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
11192 * pa.md (cpu attr): Add 7300. Rewrite pipeline
11193 descriptions using DFA descriptions. Add PA7300
11194 scheduling support.
11196 2002-03-30 David S. Miller <davem@redhat.com>
11198 Add UltraSPARC-III DFA scheduling support.
11199 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
11200 Update FP conditional move on register insn patterns to use it, as
11202 (define_attr cpu): Add ultrasparc3.
11203 (define_attr us3load_type): New, update integer load patterns to
11204 set it, as appropriate.
11205 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
11206 (rest): Add UltraSPARC3 scheduling description.
11207 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
11208 (PROCESSOR_ULTRASPARC3): New.
11209 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
11210 ({ASM,CPP}_CPU_SPEC): Likewise.
11211 (REGISTER_MOVE_COST): Likewise.
11212 (RTX_COSTS): Likewise.
11213 * config/sparc/sparc.c (sparc_override_options,
11214 sparc_initialize_trampoline, sparc64_initialize_trampoline,
11215 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11216 sparc_issue_rate): Likewise.
11217 * config/sparc/sol2.h: Likewise.
11218 * config/sparc/sol2-sld-64.h: Likewise.
11219 * config/sparc/linux64.h: Likewise.
11221 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
11223 * doc/md.texi: Add comments about usage the latency time for the
11224 different dependencies and about case when two or more conditions
11225 in different define_insn_reservations returns TRUE for an insn.
11227 * doc/md.texi: Add reference for automaton based pipeline
11230 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
11232 * doc/passes.texi: Add missed information about genattrtab.
11234 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
11236 * genautomata.c (output_automata_list_transition_code): Check
11237 automata_list on NULL.
11239 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
11241 * genautomata.c (output_insn_code_cases,
11242 output_automata_list_min_issue_delay_code,
11243 output_automata_list_transition_code,
11244 output_automata_list_state_alts_code): Comment the functions.
11246 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
11248 * genautomata.c (automata_list_el_t): New typedef.
11249 (get_free_automata_list_el,free_automata_list_el,
11250 free_automata_list, automata_list_hash, automata_list_eq_p,
11251 initiate_automata_lists, automata_list_start, automata_list_add,
11252 automata_list_finish, finish_automata_lists,
11253 output_insn_code_cases, output_automata_list_min_issue_delay_code,
11254 output_automata_list_transition_code,
11255 output_automata_list_state_alts_code, add_automaton_state,
11256 form_important_insn_automata_lists): New functions and prototypes.
11257 (insn_reserv_decl): Add members important_automata_list and
11259 (ainsn): Add members important_p.
11260 (automata_list_el): New structure.
11261 (first_free_automata_list_el, current_automata_list,
11262 automata_list_table): New global variables.
11263 (create_ainsns): Initiate member important_p.
11264 (output_internal_min_issue_delay_func): Generate the switch and
11265 call output_insn_code_cases.
11266 (output_internal_trans_func, output_internal_state_alts_func):
11268 (generate): Call initiate_automata_lists.
11269 (automaton_states): New global variable.
11270 (expand_automata): Call form_important_insn_automata_lists.
11271 (write_automata): Call finish_automata_lists.
11273 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
11275 * genautomata.c (add_excls, add_presence_absence): Check that
11276 cpu units in the sets belong the same automaton.
11278 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
11279 about that cpu units in the sets belong the same automaton.
11281 * doc/md.texi: Ditto.
11283 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
11284 Nitin Gupta <niting@noida.hcltech.com>
11286 * config/sh/sh.c (sh_use_dfa_interface): New function.
11288 (sh_issue_rate): New Function.
11289 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
11290 TARGET_SCHED_ISSUE_RATE: define.
11292 * config/sh/sh.md: Add DFA based pipeline description for SH4.
11294 (define_attr insn_class): New attribute used for DFA
11296 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
11297 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
11298 cmpeqdi_t): Likewise.
11300 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
11301 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
11303 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
11305 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11307 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
11310 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11312 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
11313 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
11315 (output_dfa_start_func): Initiate new variable insn_codes_length,
11316 (write_automata): Output definition of the new variable.
11318 2001-10-02 David S. Miller <davem@redhat.com>
11320 * haifa-sched.c (advance_one_cycle): New function.
11321 (schedule_block): Use it.
11322 (queue_to_ready): Use it, and also make sure to advance the DFA
11323 state on all stall cycles, not just those where insn_queue links
11326 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
11328 * haifa-sched.c (max_issue): Remove last_p argument. Only return
11329 non-zero if the highest-priority instruction could be scheduled.
11330 (choose_ready): Remove last argument from max_issue call.
11332 2001-09-28 David S. Miller <davem@redhat.com>
11334 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
11335 ultrasparc and 3 for other multi-issue sparcs.
11337 2001-09-27 David S. Miller <davem@redhat.com>
11339 * config/sparc/sparc.md (cycle_display): New pattern.
11340 * config/sparc/sparc.c (sparc_cycle_display): New.
11341 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
11343 2001-09-25 David S. Miller <davem@redhat.com>
11345 Convert all of Sparc scheduling to DFA
11346 * config/sparc/sparc.md: Kill all define_function_unit
11347 directives and replace with DFA equivalent.
11348 * config/sparc/sparc.c (ultrasparc_adjust_cost,
11349 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
11350 ultra_fpmode_conflict_exists, ultra_find_type,
11351 ultra_build_types_avail, ultra_flush_pipeline,
11352 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
11353 ultrasparc_variable_issue, ultrasparc_sched_init,
11354 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
11355 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
11356 ultra_cur_hist, ultra_cycles_elapsed): Kill.
11357 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11358 ultrasparc_store_bypass_p): New.
11359 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
11362 2001-09-24 David S. Miller <davem@redhat.com>
11364 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
11365 ready->vec[foo] not ready[foo].
11367 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11369 * doc/md.texi: Correct examples for define_insn_reservations
11372 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11374 * genautomata.c (create_automata): Print message about creation of
11376 (generate): Remove printing meease about creation of
11379 2001-09-05 David S. Miller <davem@redhat.com>
11381 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11382 * config/sparc/linux64.h: Likewise.
11384 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
11386 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
11387 schedule_block, sched_init, sched_finish): Add missed calls of
11388 use_dfa_pipeline_interface.
11390 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
11393 * sched-vis.c (get_visual_tbl_length): Ditto.
11395 2001-08-27 Richard Henderson <rth@redhat.com>
11397 * genattr.c (main): Emit state_t even when not doing scheduling.
11399 2001-08-27 Richard Henderson <rth@redhat.com>
11401 * genautomata.c (expand_automata): Always create a description.
11403 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
11405 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
11406 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
11407 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
11410 * genattr.c (main): New variable num_insn_reservations. Increase
11411 it if there is DEFINE_INSN_RESERVATION. Output automaton based
11412 pipeline hazard recognizer interface.
11414 * genattrtab.h: New file.
11416 * genattrtab.c: Include genattrtab.h.
11417 (attr_printf, check_attr_test, make_internal_attr,
11418 make_numeric_value): Move protypes into genattrtab.h. Define them
11420 (num_dfa_decls): New global variable.
11421 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
11422 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
11423 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
11424 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
11426 * genautomata.c: New file.
11428 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
11430 * sched-int.h: (curr_state): Add the external definition for
11431 automaton pipeline interface.
11432 (haifa_insn_data): Add comments for members blockage and units.
11434 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11435 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11436 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11437 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11438 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11439 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11440 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
11442 (TARGET_SCHED): Use the new macros.
11444 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
11445 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
11446 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
11447 dfa_bubble): New members in gcc_target.sched.
11449 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
11450 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
11451 (insn_queue): Redefine it as pointer to array.
11452 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
11454 (max_insn_queue_index_macro_value): New variable.
11455 (curr_state, dfa_state_size, ready_try): New varaibles for
11456 automaton interface.
11457 (ready_element, ready_remove, max_issue): New function prototypes
11458 for automaton interface.
11459 (choose_ready): New function prototype.
11460 (insn_unit, blockage_range): Add comments.
11461 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
11462 FUNCTION_UNITS_SIZE == 0.
11463 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
11464 actual_hazard, potential_hazard): Add comments.
11465 (insn_cost): Use cost -1 as undefined value. Remove
11466 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
11467 pipeline interface.
11468 (ready_element, ready_remove): New functions for automaton
11470 (schedule_insn): Add new code for automaton pipeline interface.
11471 (queue_to_ready): Add new code for automaton pipeline interface.
11472 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
11473 (debug_ready_list): Print newline when the queue is empty.
11474 (max_issue): New function for automaton pipeline interface.
11475 (choose_ready): New function.
11476 (schedule_block): Add new code for automaton pipeline interface.
11477 Print ready list before scheduling each insn.
11478 (sched_init): Add new code for automaton pipeline interface.
11479 Initiate insn cost by -1.
11480 (sched_finish): Free the current automaton state and finalize
11481 automaton pipeline interface.
11483 * sched-rgn.c: Include target.h.
11484 (init_ready_list, new_ready, debug_dependencies): Add new code for
11485 automaton pipeline interface.
11487 * sched-vis.c: Include target.h.
11488 (get_visual_tbl_length): Add code for automaton interface.
11489 (target_units, print_block_visualization): Add comments.
11491 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
11492 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
11493 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
11494 (getruntime.o, genautomata.o): New entries.
11495 (genattrtab.o): Add new dependency file genattrtab.h.
11496 (genattrtab): Add new dependencies. Link it with `libm.a'.
11497 (getruntime.o, hashtab.o): New entries for canadian cross.
11499 * doc/md.texi: Description of automaton based model.
11501 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
11503 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11504 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11505 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11506 TARGET_SCHED_DFA_POST_CYCLE_INSN,
11507 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11508 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11509 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
11511 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
11512 MAX_DFA_ISSUE_RATE): New macro descriptions.
11514 * doc/contrib.texi: Add dfa based scheduler contribution.
11516 * doc/gcc.texi: Add more information about genattrtab.
11518 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11520 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
11521 adjust_address_nv call.
11523 2002-04-29 Janis Johnson <janis187@us.ibm.com>
11525 * doc/install.texi (Testing): Provide additional information, and
11526 a stronger encouragement, for running the testsuites.
11528 2002-04-29 DJ Delorie <dj@redhat.com>
11530 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
11531 given in upper case.
11533 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11535 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
11536 Solaris 2 <widec.h> if missing.
11537 * fixinc/fixincl.x: Regenerate.
11538 * fixinc/tests/base/widec.h: New file.
11540 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
11542 * toplev.c (f_options): Add "profile" switch so that
11543 -fno-profile can be used to disable -p.
11545 2002-04-29 Bernd Schmidt <bernds@redhat.com>
11547 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
11549 * tree.c (build_common_tree_nodes_2): Likewise.
11550 * tree.h (enum tree_index): Likewise.
11551 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
11553 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
11555 (init_mmx_sse_builtins): Initialize SSE2 builtins.
11556 (ix86_expand_builtin): Add support for SSE2 builtins.
11557 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
11558 (VALID_SSE_REG_MODE): Use it.
11559 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
11560 (enum ix86_builtins): Add SSE2 builtins.
11561 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
11562 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
11563 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
11564 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
11565 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
11566 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
11567 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
11568 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
11569 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
11570 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
11571 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
11572 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
11573 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
11574 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11575 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
11576 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
11577 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
11578 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
11579 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
11580 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
11581 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
11582 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
11583 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
11584 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
11585 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
11586 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
11587 lfence_insn): New patterns.
11588 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11589 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11591 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
11593 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11595 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11597 * doc/contrib.texi (Contributors): Add Paolo Carlini and
11599 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11600 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11601 and CPU instead of cpu.
11603 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
11605 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11607 (lang_independent_options): Add -fif-conversion, -fif-conversion2
11608 (rest_of_compilation): Do if conversion only when asked for.
11609 (parse_options_and_default_flags): Set new variables to 1 for -O1
11610 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11612 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
11614 * i386.c (dbx64_register_map): Fix typo.
11616 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
11618 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11619 real_one_half, real_bb_freq_max): New static variables.
11620 (debug_profile_bbauxs): Kill.
11621 (process_note_predictions): Kill unused variable.
11622 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11624 (propagate_freq): Use REAL_ARITHMETICS.
11625 (estimate_bb_frequencies): Likevise; init new static variables.
11626 * Makefile.in (predict.o): Add dependency on real.h
11628 2002-04-28 David S. Miller <davem@redhat.com>
11631 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11632 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
11633 several {reads,writes} instead.
11634 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11637 2002-04-27 David S. Miller <davem@redhat.com>
11640 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11643 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11644 including signal.h and sys/ucontext.h, not needed.
11646 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
11648 * varasm.c (output_constant_def): Correct test for not calling
11649 ENCODE_SECTION_INFO for INTEGER_CST.
11651 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
11653 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11654 keep most cases as function eval_token.
11655 (eval_token): New function.
11656 (_cpp_parse_expr): Read token here for improved diagnostics.
11657 Don't use op_as_text. Detect bad ':' here.
11658 (reduce): Don't detect bad ':' here.
11659 (op_as_text): Remove.
11660 * cpphash.h (_cpp_test_assertion): Change prototype.
11661 * cpplib.c (_cpp_test_assertion): Change prototype.
11663 2002-04-28 Richard Henderson <rth@redhat.com>
11666 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11667 (ggc_mark_rtx_children): New.
11669 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11672 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11673 after call peepholes for UltraSPARC.
11674 (call + jump 64-bit peepholes): Remove.
11676 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11679 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11680 result as temporary value.
11682 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11685 * toplev.c (rest_of_compilation): Only run regrename and copy
11686 propagation if optimizing.
11688 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11690 PR optimization/6475
11691 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11692 register of REGNO_DECL (i).
11693 * Makefile.in (reload1.o): Add $(TREE_H).
11695 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
11697 * cppexp.c (lex): Update to use state.skip_eval.
11698 (struct op): Remove prio and flags members.
11699 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11700 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11701 (LEFT_ASSOC): New macro.
11702 (optab): New table of operator priorities and flags.
11704 (_cpp_parse_expr): Clean up logic. Return bool. Use a
11705 malloc-ed parser stack.
11706 (reduce): New; reduce the operator stack.
11707 (_cpp_expand_op_stack): Expand the operator stack as necessary.
11708 * cpphash.h (struct op): Predeclare.
11709 (struct cpp_reader): New members op_stack, op_limit.
11710 (struct lexer_state): New member skip_eval.
11711 (_cpp_parse_expr): Update.
11712 (_cpp_expand_op_stack): New.
11713 * cpplib.c (do_if): Update.
11714 * cppinit.c (cpp_create_reader): Create op stack.
11715 (cpp_destroy): And destroy it.
11716 * cpplib.h (CPP_LAST_CPP_OP): Correct.
11717 (TTYPE_TABLE): Correct.
11719 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11722 * c-decl.c (duplicate_decls): Call merge_weak.
11723 * c-pragma.c (apply_pragma_weak): Warn about misuse.
11724 * output.h (merge_weak): Prototype merge_weak.
11725 * varasm.c (merge_weak): New function.
11726 (declare_weak): Make sure we don't give an error on VAR_DECLs.
11727 Mark RTL with SYMBOL_REF_WEAK.
11729 2002-04-27 Kurt Garloff <garloff@suse.de>
11731 * tree-inline.c (inlinable_function_p): Improve heuristics
11732 by using a smoother function to cut down allowable inlinable size.
11733 * param.def: Add parameters max-inline-insns-single,
11734 max-inline-slope, min-inline-insns that determine the exact
11735 shape of the above function.
11736 * param.h: Likewise.
11738 2002-04-26 Richard Henderson <rth@redhat.com>
11740 * c-parse.in (malloced_yyss, malloced_yyvs): New.
11741 (yyoverflow): Re-add. Set them.
11742 (free_parser_stacks): New.
11743 * c-common.h: Declare it.
11744 * c-lex.c (c_common_parse_file): Call it.
11746 2002-04-26 Richard Henderson <rth@redhat.com>
11748 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11749 for fallthru search.
11751 2002-04-26 Eric Christopher <echristo@redhat.com>
11753 PR optimization/3700
11754 * config/mips/mips.c (mips_issue_rate): Define. New function.
11755 (TARGET_SCHED_ISSUE_RATE): Use.
11757 2002-04-25 David S. Miller <davem@redhat.com>
11760 * reorg.c (optimize_skip): Do not allow exception causing
11761 instructions to be considered for delay slots.
11762 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11763 (relax_delay_slots): Do not try to consider exception causing
11764 instructions as redundant.
11766 2002-04-26 Richard Henderson <rth@redhat.com>
11769 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11771 2002-04-26 Mark Mitchell <mark@codesourcery.com>
11774 * config/i386/i386.md (untyped_call): Return the value in a float
11775 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11778 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
11780 * tree.c (tree_int_cst_lt): Compare constants whose types differ
11781 in unsigned-ness correctly.
11783 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11785 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11786 portable runtime model.
11788 2002-04-26 Richard Henderson <rth@redhat.com>
11790 * c-parse.in (yyoverflow): Revert.
11792 2002-04-26 David Edelsohn <edelsohn@gnu.org>
11793 Richard Henderson <rth@redhat.com>
11795 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11796 result as temporary value.
11798 2002-04-26 Richard Henderson <rth@redhat.com>
11801 * c-common.c (fix_string_type): Split out of ...
11802 (combine_strings): ... here. Take a varray, not a tree list.
11803 (c_expand_builtin_printf): Use fix_string_type.
11804 * c-common.h: Update decls.
11805 * c-parse.in (string): Remove. Update all uses to use STRING
11806 instead, and not call combine_strings.
11807 (yylexstring): New.
11809 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11810 (build_asm_stmt): Likewise.
11811 * objc/objc-act.c (my_build_string): Use fix_string_type.
11812 (build_objc_string_object): Build varray for combine_strings.
11814 2002-04-26 Bo Thorsen <bo@suse.co.uk>
11816 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11819 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
11821 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11822 (HAVE_NO_R_OPERAND): Remove.
11823 (HAVE_VALUE): Remove.
11824 (op_to_prio): Update.
11825 (UNARY): Don't alter flags.
11826 (_cpp_parse_expr): want_value used to indicate whether
11827 a number or unary operator is expected next. Distinguish
11828 unary and binary +/-.
11829 (op_as_text): Update for unary operators.
11831 2002-04-25 Richard Henderson <rth@redhat.com>
11834 * c-parse.in (yyoverflow): New.
11836 2002-04-25 Richard Henderson <rth@redhat.com>
11839 * c-common.c (shorten_compare): Simplfy conditions leading to
11840 the generation of a warning.
11842 2002-04-25 Richard Henderson <rth@redhat.com>
11845 * expmed.c (extract_bit_field): Fall through to generic code rather
11846 than aborting on subreg special case.
11848 2002-04-25 David S. Miller <davem@redhat.com>
11850 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11851 for DECL being NULL.
11853 2002-04-25 Steve Christiansen <smc@us.ibm.com>
11855 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11857 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
11859 * c-decl.c (grokdeclarator): Remove outdated ??? note
11860 on invalid declaration of flexible array members.
11862 2002-04-25 Richard Henderson <rth@redhat.com>
11864 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11866 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
11868 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11869 needed by the compiler, even if they are used as global regs.
11871 2002-04-25 Matt Hiller <hiller@redhat.com>
11873 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11875 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11876 of the corresponding functions.
11877 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11880 2002-04-25 Matt Hiller <hiller@redhat.com>
11882 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11884 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11885 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11886 registers, adjust comment accordingly.
11887 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11888 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11889 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11890 for coprocessor registers.
11891 (ADDITIONAL_REGISTER_NAMES): Include
11892 ALL_COP_ADDITIONAL_REGISTER_NAMES.
11894 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11895 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11896 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11897 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11898 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11900 (mips_char_to_class): Adjust comment to include coprocessor
11901 constraint letters.
11903 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11905 (mips_reg_names, mips_regno_to_class): Include coprocessor
11907 (mips_sw_reg_names): Ditto, make non-static.
11908 (mips_move_1word): Handle moves to and from coprocessor registers.
11909 (mips_move_2words): Handle moves to and from coprocessor
11911 (mips_class_max_nregs, mips_register_move_cost): Handle
11912 coprocessor register classes.
11913 (override_options): Initialize mips_char_to_class and
11914 mips_hard_regno_mode_ok properly for coprocessor registers.
11916 * config/mips/mips.md (movdi_internal, movdi_internal2,
11917 movsi_internal1, movsi_internal2): Add constraint-sets for
11918 coprocessor registers.
11919 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11920 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11922 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11923 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11925 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11926 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11928 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11929 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11932 * doc/tm.texi: Document feature.
11934 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11936 * integrate.c (function_attribute_inlinable_p): Simplify.
11937 Check the table pointer is not NULL.
11939 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
11941 * doc/c-tree.texi: Fix typo in introduction.
11943 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11945 * c-common.h (c_common_parse_file): Update.
11946 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11947 * c-lex.c (YYDEBUG): Get from c-lex.h.
11948 (c_common_parse_file): Update.
11949 * c-lex.h (YYDEBUG, yydebug): New.
11950 * c-parse.in (YYDEBUG): Get from c-lex.h.
11951 (c_set_yydebug): Remove.
11952 * c-tree.h (c_set_yydebug): Remove.
11953 * langhooks-def.h (lhd_do_nothing_i): New.
11954 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11955 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11956 * langhooks.c (lhd_do_nothing_i): New.
11957 (lhd_set_yydebug): Remove.
11958 * langhooks.h (struct lang_hooks): Update.
11959 * toplev.c (set_yydebug): New.
11960 (compile_file): Update call to parse_file hook.
11961 (decode_d_option): Update.
11963 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11965 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
11967 * loop.c (load_mems): Don't change the interface of called functions.
11969 * calls.c (expand_call): Take current_function_pretend_args_size
11970 into account when setting argblock for sibcalls.
11972 2002-04-24 Matt Hiller <hiller@redhat.com>
11974 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11977 * cpplex.c (skip_line_comment): Process comment one multibyte
11978 character at a time rather than one char at a time, if
11980 (parse_string): Process string one multibyte character at a time
11981 rather than one char at a time, if appropriate.
11982 * c-lex.c (lex_string): Lex and copy multibyte strings
11984 * cpplib.h (cppchar_t): Change to unsigned.
11986 2002-04-24 Richard Henderson <rth@redhat.com>
11989 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11992 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
11994 * sh.c (sh_va_arg): If argument was passed by reference,
11995 dereference the pointer.
11997 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11999 * sh.md (divsi3_i4_media): Use match_operand for input values
12000 rather than hard registers.
12001 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
12002 unnecessarily through hard registers. Keep copies of pseudo
12003 registers outside of the libcall sequence.
12005 * sh.md (casesi_shift_media): Add modes.
12007 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
12010 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
12012 * attribs.c (c_common_attribute_table): Move table and handlers
12014 (format_attribute_table, lang_attribute_table,
12015 lang_attribute_common): Remove.
12016 (init_attributes): Replace NULL pointers with pointers to the
12018 (handle_packed_attribute, handle_nocommon_attribute,
12019 handle_common_attribute, handle_noreturn_attribute,
12020 handle_noinline_attribute, handle_always_inline_attribute,
12021 handle_used_attribute, handle_unused_attribute,
12022 handle_const_attribute, handle_transparent_union_attribute,
12023 handle_constructor_attribute, handle_destructor_attribute,
12024 handle_mode_attribute, handle_section_attribute,
12025 handle_aligned_attribute, handle_weak_attribute,
12026 handle_alias_attribute, handle_visibility_attribute,
12027 handle_no_instrument_function_attribute, handle_malloc_attribute,
12028 handle_no_limit_stack_attribute, handle_pure_attribute,
12029 handle_deprecated_attribute, handle_vector_size_attribute,
12030 vector_size_helper): Move to c-common.c.
12031 * c-common.c (c_common_attribute_table,
12032 handle_packed_attribute, handle_nocommon_attribute,
12033 handle_common_attribute, handle_noreturn_attribute,
12034 handle_noinline_attribute, handle_always_inline_attribute,
12035 handle_used_attribute, handle_unused_attribute,
12036 handle_const_attribute, handle_transparent_union_attribute,
12037 handle_constructor_attribute, handle_destructor_attribute,
12038 handle_mode_attribute, handle_section_attribute,
12039 handle_aligned_attribute, handle_weak_attribute,
12040 handle_alias_attribute, handle_visibility_attribute,
12041 handle_no_instrument_function_attribute, handle_malloc_attribute,
12042 handle_no_limit_stack_attribute, handle_pure_attribute,
12043 handle_deprecated_attribute, handle_vector_size_attribute,
12044 vector_size_helper): Move from attribs.c.
12045 * c-common.h (c_common_attribute_table,
12046 c_common_format_attribute_table): New.
12047 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12048 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12049 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
12050 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
12051 (LANG_HOOKS_INITIALIZER): Update.
12052 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
12053 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
12054 * target.h: Update comment.
12055 * tree.c (default_target_attribute_table): Remove.
12056 * tree.h (default_target_attribute_table, format_attribute_table,
12057 lang_attribute_table, lang_attribute_common): Remove.
12059 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12060 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12062 2002-04-24 Jason Merrill <jason@redhat.com>
12064 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
12065 * dwarf2out.c (dwarf_attr_name): Support it.
12066 (gen_array_type_die): Emit it.
12067 (lookup_type_die): No special handling for VECTOR_TYPE.
12068 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
12070 2002-04-24 Richard Henderson <rth@redhat.com>
12072 * config/mips/mips.md (movdi_usd): Renumber.
12074 2002-04-24 David S. Miller <davem@redhat.com>
12077 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
12078 32-bit Sparc and current_function_returns_struct is true.
12080 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12082 * loop.c (canonicalize_condition): Use gen_int_mode.
12084 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
12086 * config/rs6000/altivec.h: Cleanup file. Add non individual
12088 (vec_vaddubm): New.
12089 (vec_vadduhm): New.
12090 (vec_vadduwm): New.
12092 (vec_vaddcuw): New.
12093 (vec_vaddubs): New.
12094 (vec_vaddsbs): New.
12095 (vec_vadduhs): New.
12096 (vec_vadduws): New.
12097 (vec_vaddsws): New.
12107 (vec_vcmpbfp): New.
12108 (vec_vcmpequb): New.
12109 (vec_vcmpequh): New.
12110 (vec_vcmpequw): New.
12111 (vec_vcmpeqfp): New.
12112 (vec_vcmpgefp): New.
12113 (vec_vcmpgtub): New.
12114 (vec_vcmpgtsb): New.
12115 (vec_vcmpgtuh): New.
12116 (vec_vcmpgtsh): New.
12117 (vec_vcmpgtuw): New.
12118 (vec_vcmpgtsw): New.
12119 (vec_vcmpgtfp): New.
12120 (vec_vcmpgefp): New.
12125 (vec_vexptefp): New.
12130 (vec_lde): Add vector float variant.
12133 (vec_vlogefp): New.
12134 (vec_vmaddfp): New.
12135 (vec_vmhaddshs): New.
12157 (vec_vmladduhm): New.
12158 (vec_vmhraddshs): New.
12159 (vec_msumubm): New.
12160 (vec_vmsummbm): New.
12161 (vec_vmsumuhm): New.
12162 (vec_vmsumshm): New.
12163 (vec_vmsumuhs): New.
12164 (vec_vmsumshs): New.
12165 (vec_vmuleub): New.
12166 (vec_vmulesb): New.
12167 (vec_vmuleuh): New.
12168 (vec_vmulesh): New.
12169 (vec_vmuloub): New.
12171 (vec_vmulouh): New.
12172 (vec_vmulosh): New.
12173 (vec_vnmsubfp): New.
12176 (vec_vpkuhum): New.
12177 (vec_vpkuwum): New.
12179 (vec_vpkuhus): New.
12180 (vec_vpkshss): New.
12181 (vec_vpkuwus): New.
12182 (vec_vpkswss): New.
12183 (vec_vpkshus): New.
12184 (vec_vpkswus): New.
12191 (vec_vrsqrtefp): New.
12202 (vec_vspltisb): New.
12203 (vec_vspltish): New.
12204 (vec_vspltisw): New.
12218 (vec_vsububm): New.
12219 (vec_vsubuhm): New.
12220 (vec_vsubuwm): New.
12222 (vec_vsubcuw): New.
12223 (vec_vsububs): New.
12224 (vec_vsubsbs): New.
12225 (vec_vsubuhs): New.
12226 (vec_vsubshs): New.
12227 (vec_vsubuws): New.
12228 (vec_vsubsws): New.
12229 (vec_vsum4ubs): New.
12230 (vec_vsum4sbs): New.
12231 (vec_vsum4shs): New.
12232 (vec_vsum2sws): New.
12233 (vec_vsumsws): New.
12235 (vec_vupkhsb): New.
12236 (vec_vupkhpx): New.
12237 (vec_vupkhsh): New.
12238 (vec_vupklsb): New.
12239 (vec_vupklpx): New.
12240 (vec_vupklsh): New.
12243 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
12246 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
12247 added literals from substracted literals.
12248 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
12249 (fold) [associate]: Preserve MINUS_EXPR if needed.
12251 2002-04-23 Zack Weinberg <zack@codesourcery.com>
12253 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
12256 2002-04-23 Tom Tromey <tromey@redhat.com>
12258 * gcc.c: Added --resource. For PR java/6314.
12260 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12262 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
12263 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
12266 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12268 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
12270 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12272 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
12274 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
12275 (ix86_expand_clrstr): Fix typo.
12276 * loop.c (gen_load_of_final_value): New.
12277 (loop_givs_rescan, strength_reduce, check_dbra_loop):
12280 2002-04-23 Roger Sayle <roger@eyesopen.com>
12282 * builtins.c (builtin_memset_gen_str): New function.
12283 (expand_builtin_memset): Optimize the case of constant length, but
12286 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
12288 * config/rs6000/altivec.h (vec_step): Remove extraneous
12290 (vec_ctu): Cast return.
12292 2002-04-23 Alan Modra <amodra@bigpond.net.au>
12295 * function.h: (struct function): Add profile_label_no field.
12296 (current_function_profile_label_no): Define.
12297 * function.c: (profile_label_no): New static var.
12298 (expand_function_start): Increment it, and copy to
12299 current_function_profile_label_no.
12300 * output.h (profile_label_no): Delete.
12301 * final.c (profile_label_no): Delete.
12302 (profile_function): Use current_function_profile_label_no.
12303 (final_end_function): Don't increment profile_label_no here.
12304 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
12305 profile_label_no with current_function_profile_label_no.
12306 * config/pa/pa.c (current_function_number): Delete.
12307 (pa_output_function_prologue): Don't output profile label here.
12308 (hppa_profile_hook): Use label_no param rather than
12309 current_function_number.
12310 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
12311 * config/pa/pa.h: .. here.
12312 (FUNCTION_PROFILER): Output profile label here.
12314 2002-04-22 Eric Christopher <echristo@redhat.com>
12316 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
12317 patch of 2002-04-09 due to binutils issues.
12318 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
12320 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12322 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
12323 constraint to 'o' for m=r and r=m alternatives.
12324 ("*movv8hi_internal1"): Same.
12325 ("*movv16qi_internal1"): Same.
12326 ("*movv4sf_internal1"): Same.
12328 2002-04-22 Janis Johnson <janis187@us.ibm.com>
12330 * rtl.h (RTX_FLAG): New macro.
12331 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
12332 * final.c (alter_subreg): Use macro to access rtx flag.
12333 * integrate.c (copy_rtx_and_substitute): Use new access macro.
12334 * print-rtl.c (print_rtx): Use new access macro.
12336 * cse.c (insert): Check rtx code before accessing flag.
12338 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
12339 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
12340 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
12341 convert_const_symbol_ref, make_canonical, make_alternative_compare,
12342 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
12343 simplify_test_exp, optimize_attrs, simplify_by_exploding,
12344 find_and_mark_used_attributes, unmark_used_attributes,
12345 add_values_to_cover, simplify_with_current_value,
12346 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
12347 copy_rtx_unchanging, main): Use new access macros.
12349 2002-04-22 Tom Rix <trix@redhat.com>
12351 * expmed.c (init_expmed): Generate shifted constant once.
12353 2002-04-22 Zack Weinberg <zack@codesourcery.com>
12355 * c-lex.c (lex_charconst): Call convert to get constant in
12356 proper type; don't just smash the type field.
12359 * config.gcc: Add list of obsolete configurations. Disallow
12360 building these without --enable-obsolete.
12361 * doc/install.texi: Document --enable-obsolete and obsoletion
12362 policy. Mention obsoletion of individual targets in
12363 appropriate places.
12365 2002-04-22 Richard Henderson <rth@redhat.com>
12367 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
12369 2002-04-22 Mark Mitchell <mark@codesourcery.com>
12372 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
12373 (walk_fixup_memory_subreg): Likewise.
12374 (fixup_var_refs_insn): Adjust accordingly.
12375 (fixup_var_refs_1): Likewise.
12377 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
12379 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
12380 LIBPATH_ARCH64_SPEC): Define.
12381 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
12382 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
12383 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
12384 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
12386 2002-04-22 Joel Sherrill <joel@OARcorp.com>
12388 * gthr-rtems.h: Correct prototypes to remove warnings.
12390 2002-04-22 Richard Henderson <rth@redhat.com>
12393 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
12395 * gcse.c (free_insn_expr_list_list): New.
12396 (clear_modify_mem_tables): Use it. Fix bit set usage.
12397 (canon_list_insert): Use EXPR_LISTs for expressions.
12398 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
12400 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
12402 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
12403 file change and include code to _cpp_pop_buffer.
12404 * cpphash.h (struct pending_option): Predeclare.
12405 (struct cpp_reader): New member next_include_file.
12406 (_cpp_pop_file_buffer): Update.
12407 (_cpp_push_next_buffer): Update, rename.
12408 * cppinit.c (cpp_destroy): Free include chain and pending here.
12409 (cpp_finish_options): Simplify.
12410 (_cpp_push_next_buffer): Rename and clean up.
12411 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
12413 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
12415 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12417 * config/rs6000/altivec.h (vec_xor): Add variant for both args
12418 being vector signed int.
12420 (vec_xor): Add variant for both args being vector signed char.
12421 Remove redundant variant.
12424 2002-04-21 David S. Miller <davem@redhat.com>
12426 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
12427 compare mode in output RTL.
12429 2002-04-22 David Edelsohn <edelsohn@gnu.org>
12431 * config/rs6000/rs6000.c (rs6000_override_options): Correct
12432 style and formatting of previous patch.
12434 2002-04-22 Alan Modra <amodra@bigpond.net.au>
12436 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
12437 flag_pic for ABI_AIX.
12439 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12441 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
12442 * cppfiles.c (read_include_file): Similarly.
12443 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
12444 uxstrdup ustrchr, ufputs): Similarly.
12445 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
12446 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
12447 cpp_ideq, parse_identifier, parse_number): Similarly.
12448 * cpplib.c (struct directive, dequote_string, D, run_directive,
12449 cpp_push_buffer): Similarly.
12450 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
12451 _cpp_create_definition, check_trad_stringification,
12452 cpp_macro_definition): Similarly.
12454 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
12456 * cppmacro.c (funlike_invocation_p): Don't step back
12459 2002-04-21 David Edelsohn <edelsohn@gnu.org>
12461 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
12464 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
12466 * doc/invoke.texi: Remove Chill references.
12467 * doc/gcc.texi: Update last modified date.
12469 2002-04-20 Kazu Hirata <kazu@hxi.com>
12471 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
12472 push and pop. Replace add.l with add.w.
12474 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12476 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
12477 multiply instructions for H8/300H case.
12479 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12481 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
12482 Bum three instructions from each routine.
12484 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
12486 * Makefile.in: Update.
12487 * decl.c (push_c_function_context, pop_c_function_context,
12488 mark_c_function_context): Rename for consistency.
12489 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
12490 * c-tree.h (push_c_function_context, pop_c_function_context,
12491 mark_c_function_context): Rename for consistency.
12492 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12493 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12494 * function.c (init_lang_status, save_lang_status,
12495 restore_lang_status, mark_lang_status, free_lang_status):
12496 Move to langhooks.h.
12497 (push_function_context_to, pop_function_context_from,
12498 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
12500 * function.h (init_lang_status, save_lang_status,
12501 restore_lang_status, mark_lang_status, free_lang_status):
12502 Move to langhooks.h.
12503 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
12504 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
12505 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
12506 LANG_HOOKS_FUNCTION_INITIALIZER): New.
12507 (LANG_HOOKS_INITIALIZER): Update.
12508 (lhd_do_nothing_f): New.
12509 * langhooks.h (struct lang_hooks_for_functions): New.
12510 (struct lang_hooks): New hooks.
12511 * langhooks.c (lhd_do_nothing_f): New.
12513 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12514 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12516 2002-04-19 David S. Miller <davem@redhat.com>
12518 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12519 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
12521 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12523 PR optimization/3756
12524 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
12525 x = ((int) y < 0) ? cst1 : cst2.
12527 2002-04-19 Jakub Jelinek <jakub@redhat.com>
12530 * function.c: Reapply patch for c/6358.
12531 (expand_function_end): Copy decl_rtl's mode, not
12532 current_function_return_rtx mode.
12534 2002-04-19 Joel Sherrill <joel@OARcorp.com>
12536 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
12539 2002-04-19 Tom Tromey <tromey@redhat.com>
12541 * doc/install.texi (Specific): Update status of Solaris 2.8.
12542 For PR libgcj/6158.
12544 2002-04-19 Andreas Schwab <schwab@suse.de>
12546 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
12547 (PUT_REAL): Restore old definition.
12549 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
12550 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12552 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
12553 binutils 2.11.2 and higher generate smaller binaries than Sun's
12556 2002-04-19 Mark Mitchell <mark@codesourcery.com>
12559 * toplev.c (rest_of_compilation): Do not defer functions for which
12560 TREE_SYMBOL_REFERENCED has already been set.
12562 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
12564 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
12567 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
12569 * builtins.c: Include langhooks.h.
12570 (lang_type_promotes_to): Remove.
12571 (expand_builtin_va_arg): Use new hook.
12572 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
12573 (simple_type_promotes_to): Move to c-typeck.c.
12574 * c-common.h (simple_type_promotes_to): Remove.
12575 * c-decl.c (duplicate_decls, grokdeclarator): Update.
12576 * c-format.c: Include langhooks.h.
12577 (check_format_types): Update.
12578 * c-tree.h (c_type_promotes_to): New.
12579 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
12580 (type_lists_compatible_p): Update.
12581 * langhooks-def.h (lhd_type_promotes_to): New.
12582 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
12583 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12584 * langhooks.c (lhd_type_promotes_to): New.
12585 * langhooks.h (struct lang_hooks_for_types): New hook.
12586 * tree.h (lang_type_promotes_to): Remove.
12588 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12590 2002-04-18 Richard Henderson <rth@redhat.com>
12592 * function.c: Revert patch for c/6358.
12594 2002-04-18 Richard Henderson <rth@redhat.com>
12596 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12597 blocks. Handle multiple references to the TRAP block. Handle
12598 non-adjacent THEN and OTHER blocks.
12600 2002-04-18 Richard Henderson <rth@redhat.com>
12602 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12603 crash with no type for by-mode libcalls.
12605 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
12607 2002-04-18 Bob Wilson <bob.wilson@acm.org>
12609 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12610 __xtensa_nonlocal_goto): Use a syscall instructions to flush
12611 the register windows.
12613 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12615 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12616 appropriate. Document need for extended precision even when
12617 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
12618 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
12619 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
12620 instead of relying on later syntax error when REAL_WIDTH > 5.
12621 * real.c: Define NE based only on whether or not we have a
12622 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12623 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
12624 define GET_REAL and PUT_REAL as simple memcpy operations; no
12625 need to byteswap or round.
12626 Use #error instead of #ifdef-ing out the entire file, for
12627 prompt error detection.
12629 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12631 2002-04-18 David S. Miller <davem@redhat.com>
12633 * config/sparc/sparc.h (BRANCH_COST): Define.
12635 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12638 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
12640 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12641 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12642 propagate_block calls after relaxation loop using new variable
12643 stabilized_prop_flags.
12645 2002-04-18 Richard Henderson <rth@redhat.com>
12647 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12648 (ia64_va_arg): Expect variable sized types by reference.
12649 * config/ia64/ia64-protos.h: Update.
12650 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
12651 ia64_function_arg_pass_by_reference.
12653 2002-04-18 Richard Henderson <rth@redhat.com>
12655 * ifcvt.c: Include except.h.
12656 (block_has_only_trap): Break out from find_cond_trap.
12657 (find_cond_trap): Use it. Always delete the trap block.
12658 (merge_if_block): Allow then block null. Be less simplistic about
12659 what insns can end a block.
12660 * Makefile.in (ifcvt.o): Depend on except.h.
12662 * config/ia64/ia64.md (trap, conditional_trap): New.
12664 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12667 * function.c (assign_parms): Assign hard current_function_return_rtx
12669 (expand_function_end): ...not here.
12671 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
12673 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12674 * c-tree.h (c_incomplete_type_error): New.
12675 * c-typeck.c (require_complete_type, build_component_ref): Update.
12676 (incomplete_type_error): Rename.
12677 * langhooks-def.h (lhd_incomplete_type_error): New.
12678 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12679 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12680 * langhooks.c (lhd_incomplete_type_error): New.
12681 * langhooks.h (struct lang_hooks_for_types): New hook.
12682 * tree.c (size_in_bytes): Use new hook.
12683 * tree.h (incomplete_type_error): Remove.
12685 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12687 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12689 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12690 TARGET_FLOAT_FORMAT blocks.
12692 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12694 * doc/install.texi (Downloading the source): Do not mention Chill
12695 any longer, but mention Ada.
12696 (Configuration): Do not mention Chill any longer.
12698 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
12700 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12702 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
12704 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12707 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12709 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12710 instead of unsigned_type.
12712 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12714 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12715 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12718 2002-04-18 Bernd Schmidt <bernds@redhat.com>
12720 * attribs.c (vector_type_node_list): New static variable.
12721 (handle_vector_size_attribute): Use it to avoid generating a
12722 new type node each time we are called.
12724 * combine.c (subst): Avoid trying to make a vector mode subreg of
12725 an integer constant.
12726 (gen_lowpart_for_combine): Likewise.
12728 2002-04-18 Roger Sayle <roger@eyesopen.com>
12729 Jakub Jelinek <jakub@redhat.com>
12731 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12732 for integer constant c (if x has unsigned type or sign bit is not
12733 set in c). This folds the zero/sign extension into the bit-wise and
12736 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12739 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12742 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
12744 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12746 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
12748 * gcc.c (read_specs): Detect and fail if an attempt is made to
12749 rename a spec string to an already existing string.
12751 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12753 * config/s390/s390.c (legitimize_pic_address): Do not generate
12754 illegal address constant without CONST.
12756 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12758 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12759 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12761 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12763 PR optimization/6305
12764 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12765 to make sure previous reloads are taken into account. Generate
12766 better code if one operand is an in-range immediate constant.
12768 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
12770 * doc/install.texi (Building): libgcj requires GNU make.
12772 2002-04-17 Jakub Jelinek <jakub@redhat.com>
12775 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12776 even if hard quad and register is not floating.
12777 (movtf reg<-mem split): Disallow splitting if hard quad and
12778 register is floating.
12779 (movtf mem<-reg split): Likewise.
12780 * config/sparc/sparc.c (fp_register_operand): New predicate.
12781 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12783 2002-04-17 Zack Weinberg <zack@codesourcery.com>
12785 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12786 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12787 (unprotoize.o): Ditto. Build from protoize.c. Define
12788 UNPROTOIZE on command line.
12789 * protoize.c: Include cppdefault.h. Delete include_defaults.
12790 (in_system_include_dir): Use cpp_include_defaults (defined in
12792 * unprotoize.c: Delete file.
12794 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
12796 * config/rs6000/altivec.h (vec_ld): Add array variants.
12800 2002-04-17 Alan Matsuoka <alanm@redhat.com>
12801 Aldy Hernandez <aldyh@redhat.com>
12803 * config/rs6000/altivec.h: Define __ALTIVEC__.
12808 (vec_vmaddfp): New.
12810 Add parentheses to all macro arguments.
12812 2002-04-16 Richard Henderson <rth@redhat.com>
12815 * except.c (remove_eh_handler): Insert inner regions at beginning
12816 of sibling chain. Refactor expressions.
12818 2002-04-16 Richard Henderson <rth@redhat.com>
12820 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12821 * config/sparc/sol2-gas-bi.h: New file.
12822 * config.gcc (sparc*-solaris): Add it as needed.
12823 * configure.in (AS_SPARC64_FLAG): Remove check.
12824 * config.in, configure: Regenerate.
12826 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12828 2002-04-16 Richard Henderson <rth@redhat.com>
12830 * config/mips/mips.c (override_options): Don't override N32 for
12834 * config/mips/mips.md (can_delay): Split out of existing define_delays.
12835 (HILO_delay): Set can_delay false.
12837 2002-04-16 Dale Johannesen <dalej@apple.com>
12839 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12840 instruction addresses.
12841 (rs6000_output_function_epilogue): Likewise.
12843 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
12845 * c-parse.in (poplevel, compstmt_start,
12846 compstmt_primary_start): Add ending ';', in accordance
12849 2002-04-16 Richard Henderson <rth@redhat.com>
12851 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12852 Adjust tm_file order to get TARGET_DEFAULT set properly.
12853 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12854 * doc/install.texi (sparc-solaris): Update.
12856 2002-04-16 Dale Johannesen <dalej@apple.com>
12858 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12859 comparison operands do not match each other or if modes of
12860 conditions do not match result.
12862 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
12865 * config/s390/s390.md (mulsidi3): Set both subregs of the
12866 multiword register.
12868 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
12870 * config/rs6000/altivec.h (vec_addc): Type check.
12872 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12875 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12877 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12879 2002-04-15 Richard Henderson <rth@redhat.com>
12881 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12882 call_really_used_regs too.
12884 2002-04-15 Richard Henderson <rth@redhat.com>
12886 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12888 2002-04-15 David S. Miller <davem@redhat.com>
12890 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12891 as being CLOBBERed.
12893 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12896 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12897 CONST_VECTOR is { 0, ... 0 }.
12899 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
12901 * doc/install.texi (Installing GCC: Configuration): Clarify
12902 the only supported ways to configure gcc.
12904 2002-04-15 Roland McGrath <roland@frob.com>
12906 * config.gcc (alpha*-*-gnu*): New target configuration.
12907 * config/alpha/gnu.h: New file for it.
12908 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12910 2002-04-16 Mark Mitchell <mark@codesourcery.com>
12912 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12913 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12914 * tree.h (expand_start_stmt_expr): Update prototype.
12915 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12916 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12917 on the STMT_EXPR created for the inline function.
12919 2002-04-15 Richard Henderson <rth@redhat.com>
12921 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12922 config/i386/linux-aout.h, config/i386/linux-oldld.h,
12923 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12924 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12925 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12926 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12927 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12928 Define __gnu_linux__, not gnu_linux.
12929 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12931 2002-04-15 Mark Mitchell <mark@codesourcery.com>
12933 Remove Chill front end.
12934 * gcc.c (default_compilers): Remove Chill entries.
12935 * ch: Remove directory.
12936 * doc/frontends.texi: Remove information about Chill.
12937 * doc/sourcebuild.texi: Likewise.
12938 * doc/standards.texi: Likewise.
12940 2002-04-15 Douglas B Rupp <rupp@gnat.com>
12942 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12943 (LONGLONG_STANDALONE): Define.
12945 2002-04-15 David S. Miller <davem@redhat.com>
12947 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12948 Call emit_library_call with LCT_NORMAL.
12949 (sparc_initialize_trampoline): Use LCT_foo instead of
12950 magic constant in emit_library_call invocations.
12951 (sparc64_initialize_trampoline): Likewise.
12952 (sparc_profile_hook): Likewise.
12953 * config/sparc/sparc.md: Likewise.
12955 * config/sparc/sparc.c (sparc_extra_constraint_check):
12956 Fix type of argument 'c'.
12957 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12960 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
12962 * diagnostic.h (output_buffer_state): Redefine.
12963 (output_format_decoder): New macro.
12964 (output_prefixing_rule): Likewise.
12965 (output_line_cutoff): Likewise.
12966 (diagnostic_format_decoder): Adjust.
12967 (diagnostic_prefixing_rule): Likewise.
12968 (diagnostic_line_cutoff): Likewise.
12969 (diagnostic_state): Likewise.
12970 (diagnostic_kind_count): Likewise.
12971 (diagnostic_buffer): Now a macro.
12973 * diagnostic.c (diagnostic_buffer): Remove definition.
12974 (output_is_line_wrapping): Adjust.
12975 (set_real_maximum_length): Likewise.
12976 (output_set_maximum_length): Likewise.
12977 (init_output_buffer): Likewise.
12978 (lhd_print_error_function): Likewise.
12979 (output_do_verbatim): Likewise.
12981 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
12983 * cpperror.c (print_location): Don't print include chain
12985 (cpp_begin_message): Update to use DL_ macros.
12986 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12987 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12988 cpp_notice, cpp_notice_from_errno): Remove.
12989 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12992 * cppexp.c (CPP_ICE): Remove.
12993 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12994 lex, integer_overflow, _cpp_parse_expr): Update.
12995 * cppfiles.c (read_include_file, find_include_file,
12996 handle_missing_header, _cpp_read_file, remap_filename): Update.
12997 * cpphash.h (enum error_type): Remove.
12998 (_cpp_begin_message): Update.
12999 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
13000 cpp_handle_option, cpp_post_options): Update.
13001 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
13002 skip_whitespace, parse_identifier, parse_slow, parse_string,
13003 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
13004 cpp_interpret_charconst): Update.
13005 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
13006 lex_macro_node, do_undef, glue_header_name, parse_include,
13007 do_include_common, read_flag, do_line, do_linemarker, do_ident,
13008 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
13009 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
13010 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
13011 _cpp_pop_buffer, do_diagnostic): Update.
13012 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
13013 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
13014 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13015 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13016 cpp_notice, cpp_notice_from_errno): Remove.
13017 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13020 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
13021 collect_args, enter_macro_context, save_parameter, parse_params,
13022 _cpp_create_definition, check_trad_stringification,
13023 cpp_macro_definition): Update.
13024 * cppmain.c (cpp_preprocess_file): Update.
13025 * fix-header.c (read_scan_file): Update.
13027 2002-04-14 Andreas Schwab <schwab@suse.de>
13029 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
13031 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13033 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
13035 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13037 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
13040 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
13042 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
13044 2002-04-13 Joel Sherrill <joel@OARcorp.com>
13046 * config/sparc/t-elf: Enable v8 multilibs. Impacts
13047 sparc-elf and sparc-rtems targets.
13049 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13051 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
13052 defined, and __gnu_hurd__ wherever __GNU__ is defined.
13053 * arm/linux-elf.h: Likewise.
13054 * cris/aout.h: Likewise.
13055 * cris/linux.h: Likewise.
13056 * i370/linux.h: Likewise.
13057 * i386/gnu.h: Likewise.
13058 * i386/linux-aout.h: Likewise.
13059 * i386/linux-oldld.h: Likewise.
13060 * i386/linux.h: Likewise.
13061 * i386/linux64.h: Likewise.
13062 * ia64/linux.h: Likewise.
13063 * m68k/linux-aout.h: Likewise.
13064 * m68k/linux.h: Likewise.
13065 * mips/linux.h: Likewise.
13066 * pa/pa-linux.h: Likewise.
13067 * pj/linux.h: Likewise.
13068 * rs6000/sysv4.h: Likewise.
13069 * s390/linux.h: Likewise.
13070 * sh/linux.h: Likewise.
13071 * sparc/linux-aout.h: Likewise.
13072 * sparc/linux.h: Likewise.
13073 * sparc/linux64.h: Likewise.
13074 * xtensa/linux.h: Likewise.
13076 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
13078 * stmt.c (check_unique_operand_names): Expect operand names to
13079 be strings rather than identifiers. Use simple_cst_equal to
13081 (resolve_operand_name_1): Make same identifier to string change here.
13082 * c-parse.in (asm_operand): Convert a named operand into a string.
13083 * cp/parse.y (asm_operand): Likewise.
13085 2002-04-13 Andreas Schwab <schwab@suse.de>
13087 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
13089 2002-04-12 Mark Mitchell <mark@codesourcery.com>
13091 Revert these changes:
13093 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13096 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13098 2002-04-12 Richard Henderson <rth@redhat.com>
13100 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
13101 (sparc*-*-solaris): Clean up header files.
13102 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
13103 and plan on generating 64-bit code.
13104 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
13105 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
13106 * config/sparc/sol2-sld-64.h: Rename ...
13107 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
13108 for AS_SPARC64_FLAG not defined.
13109 * config/sparc/sol2-gld-bi.h: New.
13110 * config/sparc/sol2-sld.h: Remove.
13111 * config/sparc/sol26-sld.h: New.
13112 * config/sparc/sol2.h: Tidy comments.
13113 * doc/install.texi: Document sparc-solaris configury changes.
13115 2002-04-12 Richard Henderson <rth@redhat.com>
13117 * recog.c (offsettable_address_p): Match the logic in adjust_address.
13119 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
13120 in 64-bit mode only. Use only for 32-bit or MEDLOW.
13122 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13124 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
13126 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
13128 * pa.c (pa_can_combine_p): Call extract_insn before calling
13129 constrain_operands.
13131 2002-04-12 Douglas B Rupp <rupp@gnat.com>
13133 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
13134 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
13135 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13136 (CPP_PREDEFINES): Handle __declspec.
13137 * config/i386/t-interix (USER_H): Remove.
13139 2002-04-12 DJ Delorie <dj@redhat.com>
13141 * integrate.c (compare_blocks): Make comparisons safe for when
13142 sizeof(int) < sizeof(char *).
13143 (find_block): Likewise.
13145 2002-04-12 Jan Hubicka <jh@suse.cz>
13146 David Edelsohn <edelsohn@gnu.org>
13148 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
13150 (symbol_ref_operand): New.
13151 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
13152 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
13154 2002-04-12 Andreas Schwab <schwab@suse.de>
13156 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
13157 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
13158 overrides the definition in config/svr4.h.
13160 2002-04-12 Eric Norum <eric.norum@usask.ca>
13162 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
13163 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
13164 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
13165 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
13166 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
13167 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
13168 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
13169 definitions to config/rtems.h and make the targets more similar.
13171 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13173 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
13174 POINTERS_EXTEND_UNSIGNED.
13175 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
13176 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
13178 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
13181 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
13183 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
13184 depends on TARGET_SHMEDIA, not TARGET_SH5.
13186 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
13188 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
13189 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
13191 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
13193 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
13196 2002-04-12 Andreas Schwab <schwab@suse.de>
13198 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
13200 2002-04-12 Richard Henderson <rth@redhat.com>
13203 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
13205 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
13206 modes spanning multiple hard regs.
13208 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
13210 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13212 * pa.c (pa_output_function_prologue): Don't accumulate the total
13213 number of code bytes when using TARGET_64BIT, or gas, SOM and not
13214 the portable runtime.
13215 (output_deferred_plabels): Handle 64bit plabels.
13216 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
13217 generating pic code using the GAS assembler for object formats that
13218 are not SOM (ie., ELF32 and ELF64).
13219 (output_millicode_call): Check attribute type if attribute length is 28.
13220 Likewise use $PIC_pcrel$0. Only call get_attr_length and
13221 dbr_sequence_length once.
13222 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
13223 dbr_sequence_length once.
13224 * pa.h (TARGET_SOM): Define if not defined.
13225 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
13226 with GAS and not SOM.
13227 (jump, call_internal_reg, call_value_internal_reg): Likewise.
13228 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
13230 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13232 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
13233 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
13234 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
13235 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
13236 elfos.h and dbxelf.h values are fine now.
13237 * config/i386/freebsd.h, config/alpha/freebsd.h
13238 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
13240 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13242 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
13243 or set Acpu or Amachine. Reformat.
13244 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13246 (LINK_SPEC): Do not need to undef.
13247 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
13248 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
13249 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13251 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
13252 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
13253 (LINK_SPEC): Do not need to undef.
13254 (DONT_USE_BUILTIN_SETJMP): Do not define.
13255 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
13256 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
13257 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
13258 Remove trailing spaces.
13259 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
13260 __ELF__, or set Acpu or Amachine. Reformat.
13261 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13264 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13266 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
13267 all other *-*-freebsd* targets.
13269 2002-04-11 Richard Henderson <rth@redhat.com>
13271 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
13273 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13275 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
13276 Include {cpu}/{cpu}.h thru tm_file.
13277 (alpha*-*-linux*ecoff): Remove target.
13278 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
13279 (LINK_SPEC): Remove, is not OS independent.
13280 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
13281 (LINK_SPEC): Do not need to #undef any longer.
13282 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
13284 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
13286 (LINK_SPEC): Moved here from alpha/elf.h.
13287 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
13288 SUB_CPP_PREDEFINES.
13289 * config/alpha/linux-ecoff.h: Remove.
13290 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
13291 (CPP_SPEC): Define _POSIX_SOURCE as needed.
13292 (CPP_SUBTARGET_SPEC): Do not define.
13293 (LINK_SPEC): Do not need to #undef any longer.
13294 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
13295 * config/alpha/vms.h: Likewise.
13297 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
13299 * doc/extend.texi: Remove old claim that typedefs cannot have
13300 an alignment attribute.
13302 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13304 PR optimization/6177
13305 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
13306 bitpos is 0 and bitsize CONCAT size.
13308 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13311 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
13313 2002-04-10 David O'Brien <obrien@FreeBSD.org>
13315 * config/alpha/freebsd.h: Minor reformatting.
13316 (CPP_SPEC): Define ELF and add cpp_subtarget.
13317 (ASM_SPEC): No longer needed.
13319 2002-04-11 Richard Henderson <rth@redhat.com>
13321 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
13322 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
13323 (dimode mem/zero splitter): New.
13325 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
13327 * config/cris/cris.c (cris_override_options): Tweak error message
13328 for PIC not implemented.
13330 * config/cris/cris.h: Tweak comments related to parameter-passing.
13332 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
13334 2002-04-10 Richard Henderson <rth@redhat.com>
13336 * except.c (add_ehl_entry): Allow duplicates after landing pad
13339 2002-04-10 David Edelsohn <edelsohn@gnu.org>
13341 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
13343 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
13345 * c-decl.c (c_init_decl_processing): Move generation of
13346 decls for g77_integer_type_node and friends from here ...
13347 * c-common.c (c_common_nodes_and_builtins): ... to here.
13349 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
13351 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
13352 is only used as frame pointer when frame_pointer_needed is true.
13354 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
13357 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
13358 for the fact that the pool entry uses two words.
13359 (movdf_hard_insn): Similarly. Also, ADR instruction can span
13361 (movdf_soft_insn): Similarly.
13362 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
13363 for the fact that the pool entry uses three words.
13365 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
13367 * config/mips/mips.c (mips_va_arg): When using the struct version
13368 of the EABI va_list, allow arguments in the register save area to
13369 take up less room than a stack argument.
13371 2002-04-10 Richard Henderson <rth@redhat.com>
13373 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
13374 if EXPAND_INITIALIZER.
13376 2002-04-09 Richard Henderson <rth@redhat.com>
13378 * config/alpha/alpha.md (movdi_er_maybe_g): New.
13379 * config/alpha/alpha.c (alpha_expand_mov): Use it.
13381 2002-04-10 Alan Modra <amodra@bigpond.net.au>
13383 PR optimization/6233
13384 * rtlanal.c (pure_call_p): New function.
13385 * rtl.h (pure_call_p): Declare.
13386 * loop.c (prescan_loop): Use it to set has_nonconst_call.
13387 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
13389 2002-04-09 Eric Christopher <echristo@redhat.com>
13391 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
13392 information to .comm directive.
13394 2002-04-09 Richard Henderson <rth@redhat.com>
13397 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
13399 2002-04-09 Richard Henderson <rth@redhat.com>
13401 * basic-block.h (flow_delete_block_noexpunge): Declare.
13402 (expunge_block_nocompact): Declare.
13403 * cfg.c (expunge_block_nocompact): Split out from ...
13404 (expunge_block): ... here.
13405 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
13406 (flow_delete_block_noexpunge): Split out from ...
13407 (flow_delete_block): ... here.
13408 * cfgcleanup.c (delete_unreachable_blocks): Compact while
13409 removing dead blocks.
13410 * except.c (exception_handler_labels): Remove.
13411 (exception_handler_label_map): New.
13412 (struct eh_region): Add aka member.
13413 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
13414 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
13415 (for_each_eh_label, for_each_eh_label_1): New.
13416 (init_eh): Register exception_handler_label_map.
13417 (free_eh_status): Use free_region.
13418 (find_exception_handler_labels): Use the map, not the list.
13419 (remove_exception_handler_label): Likewise.
13420 (maybe_remove_eh_handler): Likewise.
13421 (remove_eh_handler): Use the region aka bitmap.
13422 * except.h (exception_handler_labels): Remove.
13423 (for_each_eh_label): Declare.
13424 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
13425 * loop.c (invalidate_loops_containing_label): New.
13426 (find_and_verify_loops): Use it. Use for_each_eh_label.
13427 * sched-rgn.c (is_cfg_nonregular): Use
13428 current_function_has_exception_handlers.
13430 2002-04-09 Richard Henderson <rth@redhat.com>
13432 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
13433 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
13434 Do not return changed status.
13435 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
13436 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
13437 New functions that do return changed status.
13438 * sbitmap.h: Update decls.
13439 * gcse.c, lcm.c: Use _cg functions as needed.
13441 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
13443 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
13444 (sh64-*-elf*, sh-*-rtemself*): Likewise.
13445 * config/sh/embed_bb.c: New file.
13446 * config/sh/embed-elf.h: New file.
13447 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
13448 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
13449 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13451 (SUBTARGET_CPP_PTR_SPEC): Don't define.
13452 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
13453 Add subtarget_asm_endian_spec.
13454 (ASM_SPEC): Use subtarget_asm_endian_spec.
13455 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
13456 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
13457 (WCHAR_UNSIGNED): Define.
13458 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
13459 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13460 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
13462 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
13463 (sh_adjust_cost): Likewise.
13464 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13466 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
13467 (WCHAR_TYPE_SIZE): Likewise.
13468 (ASM_SPEC): Use subtarget_asm_endian_spec.
13469 (SH_ELF_WCHAR_TYPE): #undef/ #define.
13470 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
13471 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
13472 (MAX_WCHAR_TYPE_SIZE): Don't #define .
13473 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
13474 (USER_LABEL_PREFIX): Don't #undef /#define .
13475 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13476 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
13477 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
13478 (ASM_SPEC): Likewise.
13479 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
13480 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
13481 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
13482 (LIB2FUNCS_EXTRA): Define.
13483 * t-sh64 (LIB2FUNCS_EXTRA): Define.
13484 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
13485 (LIB1ASMFUNCS_CACHE): Define.
13486 (LIB2FUNCS_EXTRA): Redefine empty.
13488 2002-04-08 Richard Henderson <rth@redhat.com>
13490 * reorg.c (get_branch_condition): Use reversed_comparison_code.
13492 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13494 * config/m68hc11/larith.asm (__map_data_section): Fix condition
13495 and optimize for size.
13496 (__do_global_ctors): Fix pointer comparison.
13497 (__do_global_dtors): Likewise.
13499 2002-04-09 David S. Miller <davem@redhat.com>
13501 * config/sparc/sparc.c (sparc_extra_constraint_check): New
13502 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
13503 allow reloading pseudos.
13504 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
13505 * config/sparc/sparc-protos.h: Declare it.
13507 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
13508 unsigned comparison warning.
13509 (output_restore_regs): Mark leaf_function as unused.
13511 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13513 * expr.c (is_aligning_offset): New function.
13514 (expand_expr, case COMPONENT_EXPR): Call it.
13516 2002-04-08 David S. Miller <davem@redhat.com>
13519 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
13521 Make init_priority work on Sparc when using GNU ld.
13522 * config/sparc/linux.h, config/sparc/linux64.h,
13523 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
13524 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
13525 * config/sparc/sol2-gld.h: New file to do the same.
13526 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
13527 sparc/sol2-gld.h to tm_file.
13529 PR optimization/4328
13530 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
13531 * doc/md.texi: Document it.
13532 * config/sparc/sparc.md (movdi_insn_sp64_novis,
13533 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
13534 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
13535 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
13536 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
13538 2002-04-08 Andreas Jaeger <aj@suse.de>
13540 * stmt.c (expand_asm_operands): Revert last patch from Richard
13543 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13545 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
13546 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
13548 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13550 * doc/contrib.texi (Contributors): Add David O'Brien.
13552 2002-04-08 Alan Modra <amodra@bigpond.net.au>
13554 * configure.in (auto-build.h): Use target_alias and build_alias
13555 when running configure.
13556 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
13557 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
13558 * configure: Regenerate.
13560 2002-04-07 David S. Miller <davem@redhat.com>
13562 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
13564 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13567 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
13568 generating 32-bit pic code.
13570 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
13572 * cppinit.c (cpp_create_reader): Initialize
13573 discard_comments_in_macro_exp.
13574 (COMMAND_LINE_OPTIONS): Add "-CC" option.
13575 (cpp_handle_option): Handle "-CC" option.
13576 * cpplex.c (save_comment): If saving a C++ comment in
13577 a directive, convert it to a C comment.
13578 (_cpp_lex_direct): Pass second comment start character to
13579 save_comment to indicate comment type.
13580 * cpplib.c (_cpp_handle_directive): If processing
13581 a "#define" directive and discard_comments_in_macro_exp
13582 is false, re-enable saving of comments.
13583 (lex_macro_node): If discard_comments_in_macro_exp is false,
13584 discard any comments before the macro identifier.
13585 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
13587 * cppmacro.c (cpp_get_token): If expanding a macro while
13588 processing a directive, discard any comments we might encounter.
13589 (parse_params): If discard_comments_in_macro_exp is false,
13590 ignore comments in the macro parameter list.
13591 * gcc.c (cpp_unique_options): Add "-CC" option.
13592 (option_map): Map "--comments-in-macros" to "-CC".
13593 * doc/cppopts.texi: Document "-CC" option.
13594 * f/lang-specs.h: Add "-CC" option.
13595 * testsuite/gcc.dg/cpp/maccom1.c: New test.
13596 * testsuite/gcc.dg/cpp/maccom2.c: New test.
13597 * testsuite/gcc.dg/cpp/maccom3.c: New test.
13598 * testsuite/gcc.dg/cpp/maccom4.c: New test.
13599 * testsuite/gcc.dg/cpp/maccom5.c: New test.
13600 * testsuite/gcc.dg/cpp/maccom6.c: New test.
13602 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
13605 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13607 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13610 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13613 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13614 RTX_UNCHANGING_P for the functions arguments when a tail call
13617 2002-04-06 Jason Merrill <jason@redhat.com>
13619 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13620 (parse_options_and_default_flags): Set them appropriately.
13621 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13623 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
13625 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13628 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13631 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13632 types come in by-reference. Fix typo in comment.
13634 2002-04-05 David S. Miller <davem@redhat.com>
13636 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13637 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13638 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13639 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13641 2002-04-05 David S. Miller <davem@redhat.com>
13643 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13644 are not going to emit return instructions, emit at least a nop
13645 for the sake of sane backtraces.
13647 2002-04-05 Richard Henderson <rth@redhat.com>
13649 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13651 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
13653 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13655 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
13657 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13658 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13659 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13661 2002-04-05 Andreas Schwab <schwab@suse.de>
13663 * c-convert.c: Include c-common.h.
13664 * Makefile.in (c-convert.o): Updated.
13666 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13668 * mklibgcc.in: Use separate libgcc.map for each multilib.
13669 * Makefile.in (distclean): Don't remove libgcc.map here.
13671 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13673 * Makefile.in (s-mlib): Handle --disable-multilib by separate
13674 genmultilib invocation.
13676 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
13678 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13679 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
13680 to num_gprs for symmetry.
13681 * config/mips/mips.c: Adjust accordingly.
13683 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13685 * c-common.c (truthvalue_conversion): Rename, update.
13686 * c-common.h (c_common_truthvalue_conversion): New.
13687 * c-convert.c (convert): Update.
13688 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13689 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13690 * c-typeck.c (build_binary_op, build_unary_op,
13691 build_conditional_expr): Update.
13692 * fold-const.c (constant_boolean_node, fold): Use langhook.
13693 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13694 * langhooks.h (struct lang_hooks): New hook.
13695 * stmt.c (expand_decl_cleanup): Use langhook.
13696 * tree.h (truthvalue_conversion): Remove.
13698 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13700 2002-04-05 Alan Modra <amodra@bigpond.net.au>
13702 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13703 Add rules to make null object file.
13705 2002-04-04 Jim Blandy <jimb@redhat.com>
13707 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13708 macro formal parameter names.
13710 2002-04-04 David S. Miller <davem@redhat.com>
13712 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13714 2002-04-04 Richard Henderson <rth@redhat.com>
13717 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13718 Support copies into and out of memory. Don't accept allows_reg
13719 and allows_mem as gospel.
13721 2002-04-04 Richard Henderson <rth@redhat.com>
13724 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13725 (write_dependence_p): Likewise.
13727 2002-04-04 Richard Henderson <rth@redhat.com>
13729 * predict.c (estimate_bb_frequencies): Do frequency calculation
13730 with a volatile temporary.
13732 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
13734 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13736 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13739 * final.c (final_start_function): Don't bump profile_label_no here...
13740 (final_end_function): ...but here.
13742 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13744 * config/sparc/sparc.md (pic): New attribute.
13745 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13747 (split after do_builtin_setjmp_setup): New.
13749 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13752 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13755 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13757 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13758 UNITS_PER_WORD for zero sized aggregates.
13760 2002-04-03 David S. Miller <davem@redhat.com>
13762 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13763 one-character spec for this, just use %(link_gcc_c_sequence).
13765 2002-04-03 David S. Miller <davem@redhat.com>
13767 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13770 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13772 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13773 (DWARF_FRAME_RETURN_COLUMN): Move.
13774 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13775 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13776 * pa.c (except.h, predict.h): Include.
13778 (store_reg_modify, set_reg_plus_d): Revise prototypes.
13779 (output_ascii): Add cast.
13780 (store_reg_modify): Revise to add frame notes.
13781 (set_reg_plus_d): Likewise.
13782 (compute_frame_size): Include space for eh data registers in frame if
13783 the current function calls eh_return.
13784 (hppa_expand_prologue): Ensure register %r2 is saved if the current
13785 function calls eh_return. Save eh data registers if the current
13786 function calls eh_return. Fix code to add frame notes. Emit
13787 blockage to prevent insns with frame notes being scheduled in the
13788 delay slot of calls.
13789 (hppa_expand_epilogue): Restore eh data registers and do final stack
13790 adjustment if the current function calls eh_return. Don't add frame
13792 (output_call): Revise for change in length of call insn. Don't do
13793 return pointer adjustment for an unconditional jump in the delay slot
13794 of a call when using frame notes.
13795 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13796 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13797 (ARG_POINTER_CFA_OFFSET): Define.
13798 * pa.md (return_external_pic): New pattern.
13799 (prologue): Correct formatting. Use return_external_pic if current
13800 function calls eh_return.
13801 (call_internal_symref, call_value_internal_symref,
13802 sibcall_internal_symref, sibcall_value_internal_symref): Change default
13803 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13805 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13807 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13808 list of targets to check using "nop" insn.
13809 * configure: Rebuilt.
13811 2002-04-04 Alan Modra <amodra@bigpond.net.au>
13813 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13815 2002-04-03 David S. Miller <davem@redhat.com>
13817 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13818 library sequence passed to the linker.
13819 (LINK_COMMAND_SPEC): Use it.
13820 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13821 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13822 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13824 2002-04-03 Jason Merrill <jason@redhat.com>
13826 * except.c (struct eh_status): Remove protect_list.
13827 (begin_protect_partials, end_protect_partials): Remove.
13828 (add_partial_entry): Remove.
13829 * except.h: Remove prototypes.
13831 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13832 expand_decl_cleanup_eh.
13835 * tree.h (CLEANUP_EH_ONLY): New macro.
13836 * stmt.c (expand_decl_cleanup_eh): New fn.
13837 (expand_cleanups): Check CLEANUP_EH_ONLY.
13838 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13839 Use expand_decl_cleanup_eh.
13840 (expand_stmt): Adjust.
13841 * c-common.h: Adjust prototype.
13843 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
13845 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13846 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13847 (cris_target_asm_function_epilogue): Ditto.
13848 (cris_initial_frame_pointer_offset): Ditto.
13849 (cris_simple_epilogue): Ditto.
13850 (cris_expand_builtin_va_arg): Variable-size types come in
13853 2002-04-03 David S. Miller <davem@redhat.com>
13855 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13857 (set_fast_math): Correct 'fsr' type.
13859 2002-04-03 Richard Henderson <rth@redhat.com>
13862 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13863 * toplev.c (check_global_declarations): Use it.
13864 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13865 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13866 (LANG_HOOKS_DECLS): Add it.
13867 * langhooks.c (lhd_warn_unused_global_decl): New.
13868 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13869 * c-objc-common.c (c_warn_unused_global_decl): New.
13870 * c-tree.h (c_warn_unused_global_decl): Declare.
13871 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13873 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
13875 * langhooks-def.h (lhd_set_decl_assembler_name,
13876 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13877 (LANG_HOOKS_INITIALIZER): Update.
13878 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13879 * langhooks.h (struct lang_hooks): New hook.
13880 * tree.c (set_decl_assembler_name): Move to langhooks.c.
13881 (lang_set_decl_assembler_name): Remove.
13882 (init_obstacks): Don't set hook.
13883 (decl_assembler_name): New function.
13884 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13885 (decl_assembler_name): New.
13886 (lang_set_decl_assembler_name): Remove.
13888 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13890 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13891 works properly with .hidden symbols.
13892 * configure: Rebuilt.
13893 * config.in: Rebuilt.
13894 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13895 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13896 properly with .hidden symbols.
13898 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13901 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13904 2002-04-03 Richard Henderson <rth@redhat.com>
13907 * sched-rgn.c (sets_likely_spilled): New.
13908 (sets_likely_spilled_1): New.
13909 (add_branch_dependences): Use it.
13911 2002-04-02 Richard Henderson <rth@redhat.com>
13914 * loop.h (LOOP_FIRST_PASS): New.
13915 * loop.c (strength_reduce): Mind it when deciding to unroll.
13916 * toplev.c (rest_of_compilation): Set it.
13918 2002-04-02 David S. Miller <davem@redhat.com>
13920 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13921 mems_ok_for_ldd_peep when the order of the loads being examined
13923 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13924 existing comment to increase comprehension of this situation.
13926 2002-04-02 Zack Weinberg <zack@codesourcery.com>
13928 * config/sh/sh.md: Don't use union real_extract.
13930 2002-04-02 Richard Henderson <rth@redhat.com>
13932 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13934 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13936 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13937 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13938 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13939 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13940 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13941 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13942 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13943 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13944 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13945 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13946 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13947 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13948 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13949 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13950 Include as many configury headers via tm_file as possible. This
13951 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13952 * config/openbsd-oldgas.h: New file.
13953 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13954 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13955 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13956 config/i386/i386-coff.h, config/i386/i386-interix.h,
13957 config/i386/iscdbx.h, config/i386/linux-aout.h,
13958 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13959 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13960 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13961 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13962 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13963 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13964 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13965 config/i386/vxi386.h: Do not directly include configury headers.
13966 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13967 Directly include configury headers that are no longer automatically
13968 included by the above headers.
13969 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13970 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13971 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13972 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13973 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13974 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13975 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13976 (TARGET_VERSION): Define.
13977 * config/i386/beos-elf.h, config/i386/freebsd.h,
13978 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13979 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13980 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13981 config/i386/sco5.h, config/i386/sysv4.h
13982 (TARGET_VERSION): Do not need to protect.
13983 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13984 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13985 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13986 config/i386/i386-interix.h, config/i386/linux-aout.h,
13987 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13988 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13989 (YES_UNDERSCORES): Do not define - not needed.
13990 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13991 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13992 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13993 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13994 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13995 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13996 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13997 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13999 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
14000 Richard Henderson <rth@redhat.com>
14003 * function.c (assign_temp): Accept either type or decl argument.
14004 Detect variables whose size is too large to fit into an integer.
14005 * stmt.c (expand_decl): Pass the decl, not the type.
14007 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14009 * protoize.c: Match include directory usage with cppdefault.c.
14011 2002-04-03 Jeffrey A Law (law@redhat.com)
14012 Hans-Peter Nilsson <hp@bitrange.com>
14014 * combine.c (simplify_comparison): Avoid narrowing a comparison
14015 with a paradoxical subreg when doing so would drop signficant bits.
14017 2002-04-02 Steve Ellcey <sje@cup.hp.com>
14019 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
14020 if POINTERS_EXTEND_UNSIGNED is defined.
14022 2002-04-02 Richard Henderson <rth@redhat.com>
14025 * local-alloc.c (contains_replace_regs): LO_SUM may contain
14028 2002-04-02 Richard Henderson <rth@redhat.com>
14030 * doc/standards.texi: Document required freestanding libc entry points.
14032 2002-04-02 Alan Modra <amodra@bigpond.net.au>
14034 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
14035 associated splitter. Remove MQ constraint.
14036 (ctrdi_internal4): Correct CCmode clobber.
14038 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
14040 * milli64.S ($$dyncall): New function.
14041 * t-linux (LIB1ASMFUNCS): Revise module list.
14042 (LIB1ASMSRC): Use pa/milli64.S.
14044 2002-04-02 Richard Henderson <rth@redhat.com>
14046 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
14047 rename solaris_sys_varargs_h.
14049 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14051 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
14052 the same mode as its component.
14054 2002-04-02 Richard Henderson <rth@redhat.com>
14057 * final.c (this_is_asm_operands): Export.
14058 * output.h (this_is_asm_operands): Declare.
14059 * config/i386/i386.c (print_operand): Error odd asm operands.
14061 2002-04-02 Richard Henderson <rth@redhat.com>
14064 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
14066 2002-04-01 Richard Henderson <rth@redhat.com>
14069 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
14070 * fixinc/fixincl.x: Rebuild.
14072 2002-04-01 Richard Henderson <rth@redhat.com>
14074 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
14075 (atomic_alloc, atomic_free): New.
14076 (SIZE, MASK_FOR, PTR_IN): New.
14077 (emergency_reg_state, emergency_reg_state_free): New.
14078 (emergency_labeled_state, emergency_labeled_state_free): New.
14079 (reg_state_alloced, labeled_state_alloced): New.
14080 (alloc_reg_state, free_reg_state): New.
14081 (alloc_label_state, free_label_state, free_label_states): New.
14082 (push, pop, dup_state_stack, free_state_stack): Use them.
14083 (desc_label_state): Likewise.
14084 (uw_frame_state_for): Free label states and state stack.
14085 (uw_update_reg_address): Eliminate warnings.
14087 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
14089 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
14090 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
14092 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14094 * c-decl.c (grokdeclarator): Update.
14095 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14096 * c-tree.h (c_mark_addressable): New.
14097 * c-typeck.c (default_function_array_conversion, build_unary_op,
14098 build_array_ref, convert_for_assignment): Update.
14099 (mark_addressable): Rename.
14100 * calls.c (try_to_integrate, expand_call): Use langhook.
14101 * expr.c (expand_expr): Use langhook.
14102 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
14103 * langhooks.h (struct lang_hooks): New hook.
14104 * stmt.c (expand_asm_operands): Use langhook.
14105 * tree.h (mark_addressable): Remove.
14107 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14109 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14111 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
14112 in previous change.
14114 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14116 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
14117 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
14119 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14121 * c-common.c (unsigned_conversion_warning, convert_and_check,
14122 unsigned_type, signed_type, shorten_compare,
14123 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
14124 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
14125 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
14127 * c-decl.c (grokdeclarator): Update.
14128 * c-format.c (check_format_types): Update.
14129 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14130 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14131 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
14132 * convert.c (convert_to_integer): Use new hooks.
14133 * expmed.c (make_tree): Use new hooks.
14134 * expr.c (store_expr): Use new hooks.
14135 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
14136 all_ones_mask_p, unextend, fold): Use new hooks.
14137 * langhooks.h (struct lang_hooks_for_types): New hooks.
14138 * tree.h (signed_or_unsigned_type, signed_type,
14139 unsigned_type): Remove.
14141 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14142 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14144 2002-03-31 Richard Henderson <rth@redhat.com>
14146 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
14147 (desc_frgr_mem): Fix reference to f16-f31.
14149 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14151 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
14152 RTVEC_ELT): Const-ify.
14153 * varray.h (VARRAY_CHECK): Const-ify.
14154 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
14155 ggc_mark_rtvec, ggc_mark): Const-ify.
14157 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14159 * diagnostic.c: Include langhooks-def.h.
14160 * Makefile.in (diagnostic.o): Update.
14162 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14164 * c-common.c (c_unsafe_for_reeval): Rename.
14165 * c-common.h (c_unsafe_for_reeval): Rename.
14166 * c-decl.c (finish_incomplete_decl): Rename.
14167 (c_init_decl_processing): Don't set langhook.
14168 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14169 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14170 * c-objc-common.c (c_objc_common_init): Don't set langhook.
14171 * c-tree.h (finish_incomplete_decl): Rename.
14172 * langhooks-def.h (lhd_unsafe_for_reeval): New.
14173 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
14174 (LANG_HOOKS_INITIALIZER): Update.
14175 * langhooks.c (lhd_unsafe_For_reeval): New.
14176 * langhooks.h (struct langhooks): New hooks.
14177 * toplev.c (incomplete_decl_finalize_hook): Remove.
14178 (wrapup_global_declarations): Update.
14179 * tree.c (lang_unsafe_for_reeval): Remove.
14180 (unsafe_for_reeval): Update.
14181 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
14184 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14185 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14187 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14189 * diagnostic.c (print_error_function): Remove.
14190 (default_print_error_function): Rename.
14191 (report_error_function): Update.
14192 * diagnostic.h (print_error_function): Remove.
14193 (default_print_error_function): Remove.
14194 * langhooks-def.h (struct diagnostic_context): Predeclare.
14195 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
14196 (LANG_HOOKS_INITIALIZER): Update.
14197 * langhooks.h (struct diagnostic context): Predeclare.
14198 (struct lang_hooks): New hook.
14200 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14202 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
14203 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
14205 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
14206 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
14207 of PIC_OFFSET_TABLE_REGNUM thruout.
14208 * config/rs6000/rs6000.md: Likewise.
14209 * config/rs6000/darwin.h: Likewise.
14211 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14213 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
14214 unsigned HOST_WIDE_INT, not unsigned int.
14216 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14218 PR middle-end/6096, middle-end/6098, middle-end/6099
14219 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
14221 (fill_slots_from_thread): Likewise.
14223 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14225 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
14226 floating fields in float regs.
14227 (function_arg_record_value_2): Likewise.
14229 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14231 * config/mmix/mmix.md (define_constants): Remove misleading
14232 FIXME. Add MMIX_fp_rO_OFFSET.
14233 ("nonlocal_goto_receiver"): Don't have stack-frame address of
14234 saved rO as part of the pattern. Remove FIXME.
14235 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
14236 here, at output-time.
14238 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14241 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
14243 (output_v9branch): Likewise.
14245 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14247 * gcc.c: Revert previous patch for now.
14248 * config/i386/djgpp.h: Likewise.
14250 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14252 * config/mmix/crti.asm (_init): Register _fini with atexit.
14253 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
14255 2002-03-31 Richard Henderson <rth@redhat.com>
14258 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
14259 (ASM_OUTPUT_DEF_FROM_DECLS): New.
14261 2002-03-31 Richard Henderson <rth@redhat.com>
14263 * libgcc2.c (__bb_exit_func): Make static.
14265 * config/alpha/alpha.md (trap): New.
14267 2002-03-31 Richard Henderson <rth@redhat.com>
14269 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
14270 promoted argument types; build trap.
14271 (expand_builtin_trap): New.
14272 (expand_builtin): Use it.
14273 * stmt.c (expand_nl_goto_receivers): Likewise.
14274 * expr.h (expand_builtin_trap): Declare.
14275 * libfuncs.h (LTI_abort, abort_libfunc): New.
14276 * optabs.c (init_optabs): Init abort_libfunc.
14278 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14280 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
14281 (LINK_COMMAND_SPEC): ... from here.
14282 (init_gcc_specs): Duplicate it here too, omitting
14283 shared_name in the second copy.
14284 (init_spec): Test for duplicate
14285 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
14287 2002-03-30 David S. Miller <davem@redhat.com>
14289 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14290 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
14292 2002-03-30 Roger Sayle <roger@eyesopen.com>
14293 Richard Henderson <rth@redhat.com>
14295 * regmove.c (combine_stack_adjustments_for_block): Avoid
14296 emitting a stack adjustment of zero bytes. Let delete_insn
14299 2002-03-30 Richard Henderson <rth@redhat.com>
14301 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
14302 (sparc_emitting_epilogue): New.
14303 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
14304 * config/sparc/sparc-protos.h: Update.
14305 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
14306 (TARGET_SWITCHES): Update.
14307 * config/sparc/sparc.md (return): Remove.
14308 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
14309 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
14310 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
14311 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14312 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
14313 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
14314 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
14315 Remove MASK_EPILOGUE.
14316 * doc/invoke.texi: Update.
14318 2002-03-30 Daniel Berlin <dan@dberlin.org>
14320 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
14321 CPP will start the file for us.
14323 2002-03-30 Richard Henderson <rth@redhat.com>
14326 * config/ia64/ia64.c (group_barrier_needed_p): Special case
14327 prologue_allocate_stack.
14328 (ia64_single_set): Use insn codes for recognition of special
14329 cases, not rtl matching.
14330 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
14332 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
14334 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
14336 2002-03-30 Richard Henderson <rth@redhat.com>
14339 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
14340 or -fomit-frame-pointer with profiling.
14341 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
14342 (FUNCTION_PROFILER): Do nothing.
14343 (PROFILE_HOOK): New.
14344 * config/sparc/sparc.c (sparc_override_options): Don't check
14345 code models for profiling.
14346 (sparc_function_profiler): Remove.
14347 (sparc_profile_hook): New.
14348 * config/sparc/sparc-protos.h: Update.
14350 2002-03-30 Jakub Jelinek <jakub@redhat.com>
14352 PR optimization/6086
14353 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
14354 of SUBREG of volatile MEM or because the MEM was mode dependent,
14355 return CLOBBER instead of unmodified SUBREG.
14357 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
14359 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
14360 when not optimizing.
14362 * toplev.c (rest_of_compilation): Cann mark_constant_function
14363 only when optimizing.
14365 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
14368 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
14369 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
14370 (try_optimize_cfg): clear all AUX fields.
14372 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
14373 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
14374 (ix86_address_cost): Be prepared for SUBREGed registers.
14375 (legitimate_address_p): Accept SUBREGed registers.
14377 2002-03-29 Richard Henderson <rth@redhat.com>
14380 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
14382 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14384 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
14385 for aggregate and TFmode types.
14387 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14389 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
14391 2002-03-29 Richard Henderson <rth@redhat.com>
14394 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
14395 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
14397 2002-03-29 Richard Henderson <rth@redhat.com>
14400 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
14401 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
14402 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
14403 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
14405 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
14407 2002-03-29 Dale Johannesen <dalej@apple.com>
14409 * loop.c (combine_movables): Do allow combination of pseudos.
14411 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
14413 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
14414 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
14415 No functional change except ...
14416 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
14417 * doc/install.texi (*-*-freebsd*): Document port configuration.
14419 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14421 * Makefile.in (convert.o, calls.o, expmed.o): Update.
14422 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
14424 * builtin-types.def (BT_PTRMODE): Update.
14425 * c-common.c (type_for_size): Rename c_common_type_for_size.
14426 (type_for_mode): Similarly.
14427 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
14429 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
14430 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
14431 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
14433 * c-typeck.c (common_type, comptypes, default_conversion):
14435 * calls.c: Include langhooks.h.
14436 (emit_library_call_value_1): Use new hooks. Avoid redundant
14438 * convert.c: Include langhooks.h
14439 (convert_to_pointer, convert_to_integer): Use new hooks.
14440 * except.c (init_eh): Similarly.
14441 * expmed.c: Include langhooks.h.
14442 (expand_mult_add): Use new hooks.
14443 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
14444 try_casesi): Similarly.
14445 * fold-const.c (optimize_bit_field_compare, make_range,
14446 decode_field_reference, fold_truthop, fold): Similarly.
14447 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
14448 put_var_into_stack): Similarly.
14449 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
14450 LANG_HOOKS_TYPE_FOR_SIZE): New.
14451 (LANG_HOOKS_TYPES_INITIALIZER): Update.
14452 * langhooks.h (lang_hooks_for_types): New hooks.
14453 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
14454 * tree.c (get_unwidened, get_narrower): Similarly.
14455 * tree.h (type_for_mode, type_for_size): Remove.
14456 * varasm.c (force_const_mem): Use new hooks.
14457 * utils2.c (nonbinary_modular_operation): Update.
14459 * objc-act.c (handle_impent): Update.
14460 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
14463 2002-03-29 Steve Ellcey <sje@cup.hp.com>
14465 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
14466 * config/ia64/ia64.c (basereg_operand): New.
14467 * config/ia64/ia64-protos.h (basereg_operand): Declare.
14468 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
14470 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14472 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
14473 unwind information when frame_pointer_needed.
14474 (mmix_assemble_integer): Tweak wording in comment.
14476 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14478 * Makefile.in (except.o): Update.
14479 * except.c: Include langhooks.h.
14480 (init_eh): Use langhook.
14481 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
14482 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
14483 (LANG_HOOKS_INITIALIZER): Update.
14484 * langhooks.h (lang_hooks_for_types): New.
14485 (struct lang_hooks): Add it.
14486 * tree.c (make_lang_type_fn, make_lang_type): Remove.
14487 * tree.h (make_lang_type_fn, make_lang_type): Remove.
14489 * alpha/alpha.c: Include langhooks.h.
14490 (alpha_build_va_list): Use langhook.
14491 * d30v/d30v.c: Include langhooks.h.
14492 (d30v_build_va_list): Use langhook.
14493 * i386/i386.c: Include langhooks.h.
14494 (ix86_build_va_list): Use langhook.
14495 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
14496 * s390/s390.c: Include langhooks.h.
14497 (s390_build_va_list): Use langhook.
14498 * stormy16/stormy16.c: Include langhooks.h.
14499 (stormy16_build_va_list): Use langhook.
14501 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14504 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
14506 (length): Compute variable length for branches/calls/jumps here.
14507 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
14508 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
14509 define branch_type attribute.
14510 (divsi3_sp32): Maximum length is 6 not 7.
14511 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
14512 call_address_untyped_struct_value_sp32,
14513 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
14514 * config/sparc/sparc.c (empty_delay_slot): New function.
14515 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
14516 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
14518 2002-03-29 Jakub Jelinek <jakub@redhat.com>
14520 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
14521 nonzero_bits if not needed.
14522 (nonzero_bits) [XOR]: Likewise.
14523 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
14524 reg_last_set_mode and mode are both MODE_INT, but not equal.
14525 (record_value_for_reg): Compute reg_last_set_nonzero_bits
14526 in nonzero_bits_mode for MODE_INT modes.
14528 2002-03-28 Richard Henderson <rth@redhat.com>
14531 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
14532 to GAS. Correct drift between alternatives.
14534 2002-03-28 Richard Henderson <rth@redhat.com>
14537 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
14539 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
14541 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
14542 emulation to the linker.
14544 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
14546 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
14547 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14549 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
14551 * combine.c (simplify_and_const_int): Make sure to apply mask
14552 when force_to_mode returns a constant integer. PR3311.
14554 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14556 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
14558 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14560 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
14561 and Objective-C Dialect Options.
14563 2002-03-28 Richard Henderson <rth@redhat.com>
14565 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
14566 comparison should be done vs !=0 not >0 return code. Tidy cases.
14568 2002-03-28 Richard Henderson <rth@redhat.com>
14570 * c-decl.c (finish_function): New arg can_defer_p. Pass it
14571 on to c_expand_body.
14572 * c-tree.h (finish_function): Update decl.
14573 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
14575 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
14577 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
14579 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
14581 * rtlanal.c: Include flags.h
14582 (may_trap_p): Do not mark FP operations if trapping
14583 if !flag_trapping_math
14584 * Makefile.in (rtlanal.o): Add dependency on flag.h
14585 * ifcvt.c (noce_operand_ok): Avoid the lameness.
14587 2002-03-27 Zack Weinberg <zack@codesourcery.com>
14589 * mips.md: Use dconst1, not 1.0, as first argument of
14590 REAL_VALUE_LDEXP. Don't use union real_extract.
14592 2002-03-28 Alan Modra <amodra@bigpond.net.au>
14594 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14595 rather than $target. Heed program_prefix and
14596 program_transform_name. Search for gas in cross-compiler case too.
14597 "test -x" rather than "test -f".
14598 (gcc_cv_ld): Likewise.
14599 (gcc_cv_nm): Heed program_prefix and program_transform_name.
14600 (gcc_cv_objdump): Likewise.
14601 * configure: Regenerate.
14603 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14605 * Makefile.in (attribs.o): Update.
14606 * attribs.c: Include langhooks.h.
14607 (decl_attributes): Use langhook.
14608 * c-decl.c (insert_default_attributes): Rename.
14609 * c-tree.h (c_insert_default_attributes): New.
14610 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14611 (LANG_HOOKS_INITIALIZER): Update.
14612 * langhooks.h (struct lang_hooks): New hook.
14613 * tree.h (insert_default_attributes): Remove.
14615 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14617 2002-03-27 Andreas Schwab <schwab@suse.de>
14619 * config/i386/i386.c (classify_argument): Also check for
14622 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14624 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14627 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
14629 * i960.md (ret): Set PC.
14630 (nonlocal_goto): Fix expander.
14631 * builtins.c (epxand_builin_longjmp): Check that we've emitted
14634 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
14636 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14637 of libcall regions.
14639 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14641 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14642 assigning to BLOCK_FOR_INSN directly.
14644 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
14646 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14648 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14650 * c-common.c (c_expand_expr): Fix prototype.
14651 * c-common.h (c_expand_expr): Always declare, update.
14652 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14653 * c-objc-common.c (c_objc_common_init): No global hook.
14654 * expr.c (expand_expr): Use langhook.
14655 * expr.h (enum expand_modifier): Conditionally declare.
14656 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14657 (LANG_HOOKS_INITIALIZER): Update.
14658 * langhooks.c (lhd_expand_expr): New.
14659 * langhooks.h (struct lang_hooks): New hook.
14660 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14661 (lang_independent_init): Don't default hook.
14663 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14665 2002-03-27 Richard Henderson <rth@redhat.com>
14668 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14669 TARGET_CONST_GP. Simplify conditions.
14671 2002-03-27 Richard Henderson <rth@redhat.com>
14673 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14674 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14675 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14677 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
14679 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14680 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14681 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14682 Remove unnecessary masks.
14683 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14684 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14685 -mwindows, -mdll switches and their negations.
14687 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14689 * gcc-common.c (lang_mark_false_label_stack): Remove.
14690 * ggc.h (lang_mark_false_label_stack): Similarly.
14692 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
14694 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14696 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14697 or __rtems_ is defined.
14699 2002-03-26 Richard Henderson <rth@redhat.com>
14701 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14702 if a non-trivial load was emitted.
14703 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
14704 in high+extra+low case.
14706 2002-03-26 Richard Henderson <rth@redhat.com>
14708 * config.gcc (sparc*-solaris): Use float_format=sparc.
14710 2002-03-26 Richard Henderson <rth@redhat.com>
14712 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14713 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14714 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14715 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14716 (WINT_TYPE_SIZE): Fix at 32.
14718 2002-03-26 Richard Henderson <rth@redhat.com>
14720 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14721 until after eh landing pad generation.
14722 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14723 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14725 2002-03-26 Richard Henderson <rth@redhat.com>
14727 * expr.h (ADD_PARM_SIZE): One more convert for INC.
14729 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
14731 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
14732 and warning switches.
14733 (cc1_options): Likewise.
14735 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
14737 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14738 Restore more of the signal context. Set no_reg_stack_frame.
14739 * config/ia64/unwind-ia64.c (unw_state_record):
14740 Add no_reg_stack_frame, comments.
14741 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14742 (uw_update_context): Adjust bsp when unwinding from leaf,
14743 but not signal frame.
14745 2002-03-26 David Edelsohn <edelsohn@gnu.org>
14747 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14749 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14751 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14753 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14756 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14757 "Add a pool_range attribute", which was lost during the ARM/Thumb
14760 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14762 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14763 a register into the MAC16 accumulator.
14765 2002-03-26 Andrew Cagney <ac131313@redhat.com>
14767 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14768 (Warning Options): Document -Wswitch-enum.
14769 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
14771 (warn_switch_enum): Define variables.
14772 * flags.h (warn_switch_enum): Declare variables.
14773 * stmt.c (expand_end_case_type): When warn_switch_enum /
14774 -Wswitch-enum, perform switch checks.
14777 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14779 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14780 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14781 (reload_muladdsi_compare0_scratch): Delete.
14783 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
14785 * doc/install.texi (*-*-freebsd*): Update.
14787 2002-03-26 Richard Henderson <rth@redhat.com>
14789 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14790 (SUB_PARM_SIZE): Cast DEC to ssizetype.
14792 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14793 types from the normal argument frame.
14795 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14796 variable sized objects by reference.
14797 (sparc_va_arg): Receive them by reference too.
14799 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
14801 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
14802 code to not restoring global registers.
14804 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
14806 * Makefile.in (ggc-common.o): Update.
14807 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14808 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14809 * c-tree.h (c_mark_tree): New.
14810 * ggc-common.c: Include langhooks.h.
14811 (gcc_mark_trees): Use new langhook.
14812 * ggc-callbacks.c: Delete file.
14813 * ggc.h (lang_mark_tree): Remove.
14814 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14815 (LANG_HOOKS_INITIALIZER): Update.
14816 * langhooks.h (struct lang_hooks): New hook.
14818 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14820 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14822 * doc/cpp.texi: Exclude entire Top node from printed manual.
14823 Move option index after directive index. Insert page breaks
14824 before GFDL and concept index. Index environment variables
14825 with command line options.
14826 * doc/cppenv.texi: Use @vtable for environment variable list.
14827 Add paragraph explaining semantics of empty elements in path
14828 variables. Exclude a cross-reference to Fishkill from the
14829 manpage. Remove an unnecessary cross-reference of the entry
14830 right above the referer. Don't use @anchor in text that goes
14832 * doc/cppopts.texi: Cross-reference the environment variables
14833 section, not the specific environment variable, for consistency.
14835 2002-03-25 Richard Henderson <rth@redhat.com>
14837 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14838 anywhere in the block. Don't refer to insns that have been
14839 removed from the chain. Iterate backward through the new insns.
14840 Don't refer to edges that have been removed.
14842 2002-03-26 Alan Modra <amodra@bigpond.net.au>
14844 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14845 test for overflow of constant.
14847 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
14850 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14851 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14852 these patterns on arm_archv4.
14854 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
14856 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14859 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14861 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
14862 float_handled, float_handler, float_signal, set_float_handler,
14863 and do_float_handler. Set handler for SIGFPE to crash_signal.
14864 * toplev.h: Don't prototype do_float_handler.
14866 * c-lex.c: Fold parse_float into lex_number. Make warning
14867 about portability of hex float constants more informative, and
14868 don't issue it on top of a syntax error.
14869 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14871 * real.h: Define REAL_VALUE_ABS here...
14872 * simplify-rtx.c: ... not here. Fold check_fold_consts,
14873 simplify_unary_real, simplify_binary_real, and
14874 simplify_binary_is2orm1 into their callers.
14875 * tree.c: Fold build_real_from_int_cst_1 into caller.
14877 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14879 * tsystem.h: Include float.h here...
14880 * libgcc2.c: ... not here.
14882 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
14884 Fixes for: PR bootstrap/3591, target/5676
14885 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14886 defined. Do not disable exceptions or rtti.
14887 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14888 mcore.h. Disable exceptions and rtti, since they are not
14891 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
14893 * c-decl.c (maybe_build_cleanup): Remove.
14894 * expr.c (expand_expr): Use langhook.
14895 * langhooks-def.h (lhd_return_null_tree,
14896 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14897 (LANGHOOKS_INITIALIZER): Update.
14898 * langhooks.c (lhd_return_null_tree): New.
14899 * langhooks.h (struct lang_hooks): New hook.
14900 * tree-inline.c (initialize_inlined_parameters): Use langhook.
14901 * tree.h (maybe_build_cleanup): Remove.
14903 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14905 * regrename.c (build_def_use): Move recog_memoized
14906 before extract_insn.
14908 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14911 * expr.c (emit_group_store): Handle storing into CONCAT.
14913 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14915 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14916 corresponding MATCH_DUP.
14918 2002-03-24 Richard Henderson <rth@redhat.com>
14920 * unroll.c (unroll_loop): Zero label_map.
14922 * gcse.c: Include except.h.
14923 * Makefile.in (gcse.o): Update.
14925 2002-03-24 Richard Henderson <rth@redhat.com>
14927 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14928 Do resolve_unique_section before shared data clause.
14930 2002-03-24 Richard Henderson <rth@redhat.com>
14932 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14934 2002-03-24 Richard Henderson <rth@redhat.com>
14936 * recog.c (peephole2_optimize): Split blocks when EH insns are
14937 generated in the middle of a block. Do global life update if
14940 2002-03-24 Richard Henderson <rth@redhat.com>
14942 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14944 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14947 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
14948 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14949 (init_dependency_output): Don't make no_output decision here.
14951 2002-03-24 Andrew Cagney <ac131313@redhat.com>
14953 * stmt.c (check_for_full_enumeration_handling): Remove tests of
14954 warn_switch. Update description.
14955 (expand_end_case_type): Call check_for_full_enumeration_handling
14958 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14960 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14961 (m68hc11_split_move): Call it to see if the source and destination
14962 operands use the same direction auto inc/dec mode, otherwise make the
14963 source an offsetable memory operand and generate an add.
14965 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14967 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14968 register for operand 2.
14969 ("*subsi3_zero_extendqi"): Likewise.
14970 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14971 bits so that it is compatible with a pop.
14972 ("*andhi3_gen"): Likewise.
14973 ("xorhi3"): Likewise.
14975 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14977 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14979 (cpp_post_options): ... not here.
14981 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14982 Aldy Hernandez <aldyh@redhat.com>
14984 Removal of separate preprocessor cpp0.
14986 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14987 cpp0, install-common): Update.
14988 * c-common.c (flag_preprocess_only): New.
14989 (c_common_init): Preprocess for -E.
14990 * c-common.h (flag_preprocess_only): New.
14991 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14992 * c-objc-common.c (c_init_decl_processing): Exit quickly
14993 for NULL return from c_common_init.
14994 * cpplib.h (cpp_preprocess_file): New.
14995 * cppmain.c (main, general_init, pfile, progname): Remove.
14996 (do_preprocessing): Rename cpp_preprocess_file, don't call
14997 cpp_finish. Don't close stdout here.
14998 (setup_callbacks): Update prototype.
14999 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
15001 * tradcpp.c (main): Ignore -quiet.
15003 * lang-specs.h (default_compilers): Preprocess with cc1obj.
15005 2002-03-24 Richard Henderson <rth@redhat.com>
15007 PR optimization/5742
15008 * machmode.def: Add inner mode field to complex modes.
15009 * config/mips/mips.c (mips_function_value): Always define. Add
15010 new argument to handle libcalls.
15011 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
15012 (FUNCTION_VALUE): Likewise.
15013 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
15014 * config/mips/mips-protos.h: Update.
15016 2002-03-23 Richard Henderson <rth@redhat.com>
15018 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
15019 * config/sparc/sparc-protos.h: Update.
15020 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
15022 2002-03-23 Richard Henderson <rth@redhat.com>
15024 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
15025 _start or _init begins the text segment.
15027 2002-03-23 David Edelsohn <edelsohn@gnu.org>
15029 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
15030 not HOST_WIDEST_INT.
15031 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
15033 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
15036 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
15037 operand argument to output_return_instruction.
15038 * arm.c (arm_print_operand, case 'd'): If the operand is
15039 const_true_rtx then just return.
15040 (arm_print_operand, case 'D'): If the operand is const_true_rtx
15043 2002-03-23 Andrew Cagney <ac131313@redhat.com>
15045 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
15046 (Warning Options): Document -Wswitch-default.
15047 * toplev.c (W_options): Add -Wswitch-default. Update comment on
15049 (warn_switch_default): Define variable.
15050 (warn_switch): Update comment.
15051 * flags.h (warn_switch_default): Declare variable.
15052 (warn_switch): Update comment.
15053 * stmt.c (expand_end_case): Check for and, when
15054 warn_switch_no_default, warn of a missing default case.
15056 2002-03-23 Alan Modra <amodra@bigpond.net.au>
15058 * real.h (N): Special case 128 bit doubles.
15060 * combine.c (simplify_comparison): When widening modes, ignore
15061 sign extension on CONST_INTs.
15063 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15065 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
15066 passed to adjust_address. Fix comment formatting.
15069 2002-03-22 Zack Weinberg <zack@codesourcery.com>
15071 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
15072 Always make REAL_VALUE_TYPE a struct containing an array of
15073 HOST_WIDE_INT, not a double. Tidy up the code deciding how
15074 big it is. Don't declare or use union real_extract.
15076 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
15077 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
15078 (print_operand), config/arm/arm.c (output_move_double),
15079 config/arm/arm.md (consttable_4, consttable_8),
15080 config/romp/romp.c (output_fpops), config/s390/s390.h
15081 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
15082 (xtensa_output_literal): Don't use union real_extract.
15084 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
15085 (sfmode_constant_to_ulong), config/ns32k/merlin.h
15086 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
15087 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
15088 (PRINT_OPERAND): Don't use local version of union
15091 * config/convex/convex.c (check_float_value), config/vax/vax.c
15092 (vax_float_literal), config/m88k/m88k.md (divdf3),
15093 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
15094 config/pdp11/pdp11.c (output_move_quad): Don't do host
15095 arithmetic on target floating point quantities.
15097 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
15098 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
15100 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
15101 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
15103 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
15104 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
15106 * print-rtl.c (print_rtx): Disable code which needs
15107 floating-point emulator.
15108 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
15109 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
15110 depending on HOST_FLOAT_FORMAT to be defined properly.
15112 * config/1750a/1750a.c (get_double, float_label): Delete.
15113 (print_operand): Delete huge commented-out chunk. Use
15114 REAL_VALUE_TO_DECIMAL.
15115 * config/1750a/1750a-protos.h: Delete prototypes of deleted
15117 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
15119 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
15120 Use REAL_VALUE_TO_DECIMAL as ELF version does.
15121 * config/m88k/m88k.c (real_power_of_2_operand,
15122 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
15123 real_extract out of the union; run the input through
15124 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
15125 from that into the union.
15126 * config/pdp11/pdp11.c (output_move_double): Rearrange
15127 parentheses to make automatic indenter happy.
15129 * doc/tm.texi (Cross-compilation): Rename node to "Floating
15130 Point" and rewrite to describe current situation. Also adjust
15131 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
15133 * doc/rtl.texi: Adjust cross reference.
15135 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15137 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
15138 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
15139 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
15140 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
15141 prevent use of sp as a reload register.
15142 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
15143 non_acc_reg_operand.
15144 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
15145 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
15146 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
15147 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
15149 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15151 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
15152 * cpplex.c (unterminated): Delete.
15153 (parse_string): No string literal may extend over multiple
15154 lines. Suppress the error when preprocessing assembly.
15155 * cppmain.c (scan_translation_unit): Strings are single-line.
15157 * doc/cpp.texi: Update to match.
15159 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15161 PR optimization/5854
15162 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
15164 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
15165 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
15166 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
15167 const0 if scratch register was not allocated.
15168 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
15169 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
15170 with GEN_INT (...).
15171 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
15172 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
15173 with GEN_INT (...) everywhere. Remove constraints in define_split
15175 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
15176 require scratch register for setting 0 into regs/non-pushable memory.
15178 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15180 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
15181 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
15183 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
15185 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
15186 * cppinit.c (cpp_create_reader): On by default.
15187 (cpp_handle_option): Handle -W[no-]endif-labels.
15188 (cpp_post_options): Also enable if -pedantic.
15189 * cpplib.c (do_else): Use it.
15190 (do_endif): Likewise.
15191 * doc/cppopts.texi: Document new option.
15192 * doc/invoke.texi: Document new option.
15194 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
15196 * config/i386/i386.c, config/i386/i386.md: Change all occurences
15197 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
15199 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15201 * flow.c (calculate_global_regs_live): Clear aux fields of
15204 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15206 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
15207 REG or MEM subregs, pass rtx * instead of rtx to it.
15208 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
15209 rtx * instead of rtx to alter_subreg.
15210 * config/m32r/m32r.c (gen_split_move_double): Likewise.
15211 * config/pj/pj.c (pj_output_rval): Likewise.
15213 2002-03-22 Richard Henderson <rth@redhat.com>
15216 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
15217 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
15218 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
15219 (ia64_expand_prologue): Look at int_regs, not words, for number
15220 of incomming int regs.
15222 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
15224 * expr.c (expand_expr): A RESULT_DECL is part of a call.
15226 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
15228 * toplev.c (flag_loop_optimize, flag_crossjumping):
15229 New static variables.
15230 (rest_of_compilation): Conditionalize crossjumping and
15232 (parse_options_and_default_flags): Default loop_optimize and
15234 (lang_independent_options): Add -fcrossjumping and -floop-optimize
15235 * invoke.texi (crossjumping, loop-optimize): Document.
15237 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15239 * real.c (eiisneg): Move outside #ifdef NANS.
15241 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
15243 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
15244 frequencies match; avoid match on different loop depths.
15245 (try_crossjump_to_bb): Kill tests that no longer brings time
15247 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
15249 (split_edge): Likewise.
15251 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
15254 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
15255 * cfgrtl.c: Include insn-config.h
15256 (split_block) Dirtify block in presence of conditional execution
15258 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15260 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
15261 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
15262 (function_arg): Constify CUMULATIVE_ARGS.
15263 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
15264 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
15265 (UNITS_PER_DOUBLE): New macro.
15266 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
15267 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
15268 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
15269 fp_regs and stack_words.
15270 (EABI_FLOAT_VARARGS_P): New macro.
15271 * config/mips/mips.c (struct mips_arg_info): New.
15272 (mips_arg_info): New function.
15273 (function_arg_advance): Use it. Add adjustment instructions here
15274 rather than in function_arg.
15275 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
15276 for VOIDmode at the beginning of the function.
15277 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
15278 (function_arg_pass_by_reference): Likewise.
15279 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
15280 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
15281 (mips_va_start): Likewise. Use the new stack_words field of
15282 CUMULATIVE_ARGS to set up overflow area. Reformat.
15283 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
15284 doubles and other types, aligning the overflow pointer for non-doubles
15285 too. Remove some code duplication. Replace hard-coded constants.
15287 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15289 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
15290 (CLASS_UNITS): Undefine.
15291 (CLASS_MAX_NREGS): Use FP_INC.
15292 * config/mips/mips.c (compute_frame_size): Likewise.
15293 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
15295 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15297 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
15298 prototype, and handle lexing numbers and identifiers.
15299 (parse_identifier): Update to new form of parse_slow.
15300 (parse_number): Fast path only, use parse_slow otherwise.
15301 (_cpp_lex_direct): Update calls to parse_number.
15303 2002-03-21 DJ Delorie <dj@redhat.com>
15305 * bb-reorder.c (make_reorder_chain_1): Protect against
15306 when redundant edges are omitted.
15307 * predict.c (dump_prediction): Likewise.
15309 2002-03-21 Richard Henderson <rth@redhat.com>
15312 * fixinc/inclhack.def (solaris_stdio_tag): New.
15313 * fixinc/fixincl.x: Regenerate.
15315 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15318 * c-typeck.c (process_init_element): Flag non-static
15319 initialization of a flexible array member as illegal.
15321 2002-03-22 Alan Modra <amodra@bigpond.net.au>
15323 * config/rs6000/t-linux64: New.
15324 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
15325 t-ppccomm. Use t-rs6000 and t-linux64.
15326 (powerpc64-*-gnu* <tmake_file>): Likewise.
15327 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
15328 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
15329 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
15331 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
15333 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
15334 flag_really_no_inline instead of optimize == 0.
15336 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
15338 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
15340 * flags.h (flag_really_no_inline): New.
15342 * c-common.c (c_common_post_options): Initialize
15343 flag_really_no_inline.
15345 * toplev.c (flag_really_no_inline): New.
15347 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15349 * config/avr/avr.md (length): Fix length computation for
15350 conditional branches.
15352 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
15354 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
15355 sdbout.o, profile.o): Update.
15356 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
15358 * c-common.h (gettags): Move here from tree.h.
15359 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
15360 insert_block, getdecls, kept_level_p, global_bindings_p): New.
15361 * dbxout.c (dbxout_init): Use getdecls langhook.
15362 * expr.c (expand_expr): Use insert_block langhook.
15363 * fold-const.c: Include langhooks.h.
15364 (fold_range_test, fold_binary_op_with_conditional_arg,
15365 fold): Use global_bindings_p langhook.
15366 * integrate.c (expand_inline_function): Use insert_block langhook.
15367 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
15368 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
15369 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
15370 LANG_HOOKS_GETDECLS): New.
15371 (LANG_HOOKS_INITIALIZER): Update.
15372 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
15374 * langhooks.h (struct lang_hooks_for_decls): New.
15375 (struct lang_hooks): Update.
15376 * profile.c: Include langhooks.h.
15377 (output_func_start_profiler): Use new langhooks.
15378 * sdbout.c: Include langhooks.h.
15379 (sdbout_init, sdbout_finish): Use getdecls langhook.
15380 * stmt.c: Include langhooks.h.
15381 (expand_fixup, fixup_gotos): Use new langhooks.
15382 * stor-layout.c: Include langhooks.h.
15383 (variable_size): Use global_bindings_p langhook.
15384 * toplev.c (compile_file): Use getdecls langhook.
15385 * tree-inline.c (remap_block): Use insert_block langhook.
15386 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
15387 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
15389 2002-03-21 Richard Henderson <rth@redhat.com>
15391 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
15392 constants in .data when -fpic.
15394 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15396 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
15399 2002-03-21 Tom Tromey <tromey@redhat.com>
15401 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
15403 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15405 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
15407 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
15409 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15410 Richard Henderson <rth@redhat.com>
15413 * c-common.c (c_expand_expr): Preserve result of a statement
15414 expression if needed.
15416 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15419 * genrecog.c (maybe_both_true_mode): Remove.
15420 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
15421 * machmode.def (Pmode): Likewise.
15423 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
15425 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
15426 (nonlocal_mentioned_p_1): New function.
15427 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
15428 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
15429 (mark_constant_function): Recognize pure functions.
15430 * rtl.h (global_reg_mentioned_p): New prototype.
15431 * rtlanal.c (global_reg_mentioned_p,
15432 global_reg_mentioned_p_1): New function.
15434 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15436 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
15438 * fixinc/fixincl.x: Regenerate.
15440 2002-03-20 Jason Merrill <jason@redhat.com>
15442 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
15444 2002-03-20 Michael Meissner <meissner@redhat.com>
15446 * doc/invoke.texi (Optimize Options): Document that -O2 sets
15449 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15451 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
15452 ".literal_position" directive before the constant pool.
15454 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15456 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
15457 Add Craig Rodrigues.
15458 Add Brad Lucier to testers.
15460 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15463 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
15465 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
15466 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
15467 instead of insn_extract.
15469 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15472 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
15474 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
15475 stmt if some case has been output.
15477 2002-03-20 Jakub Jelinek <jakub@redhat.com>
15480 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
15481 movsfcc_1, movdfcc_1): Add %O2.
15482 * config/i386/i386.c (print_operand): Handle %ON.
15483 Print . before float condition codes in Sun as cmov syntax.
15484 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
15485 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
15488 2002-03-20 Philip Blundell <pb@nexus.co.uk>
15490 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
15491 return instruction if PC was popped.
15493 2002-03-20 Bob Wilson <bob.wilson@acm.org>
15495 * config/xtensa/xtensa.md: Remove unused type attributes.
15496 (adddi_carry, subddi_carry): Change type attribute to "multi".
15498 2002-03-19 Dale Johannesen <dalej@apple.com>
15500 PR optimization/5999, middle-end/5731
15501 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
15502 multiplications by reciprocals.
15504 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
15506 * Makefile.in: Update.
15507 * c-common.c: Include langhooks.h.
15508 (inline_forbidden_p): Use new hook.
15509 * diagnostic.c: Include langhooks.h.
15510 (format_with_decl, announce_function,
15511 default_print_error_function): Use new hook.
15512 * dwarf2out.c (dwarf2_name): Use new hook.
15513 * function.c: Include langhooks.h.
15514 (init_function_start): Use new hook.
15515 * langhooks-def.h (lhd_decl_printable_name): New.
15516 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
15517 (LANGHOOKS_INITIALIZER): Update.
15518 * langhooks.c (lhd_decl_printable_name): New.
15519 * langhooks.h (struct lang_hooks): New hook.
15520 * toplev.c (decl_name, decl_printable_name): Remove.
15521 (open_dump_file): Use new hook.
15522 (process_options): Remove old hook.
15523 * tree.h (decl_printable_name): Remove.
15525 * objc-act.c (objc_init): Remove old hook.
15526 (objc_printable_name): Export.
15527 * objc-act.h (objc_printable_name): New.
15528 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
15530 2002-03-19 Jim Blandy <jimb@redhat.com>
15532 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
15533 the start_source_file debug hook, not the current line number.
15535 2002-03-19 Richard Henderson <rth@redhat.com>
15537 * flow.c (EH_USES): Provide default.
15538 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
15539 * doc/tm.texi (EH_USES): New.
15541 * config/ia64/ia64.c (ia64_eh_uses): New.
15542 * config/ia64/ia64-protos.h: Update.
15543 * config/ia64/ia64.h (EH_USES): New.
15545 2002-03-19 Richard Henderson <rth@redhat.com>
15547 * varasm.c (output_constant_def): Fix stupid typo.
15549 2002-03-19 Richard Henderson <rth@redhat.com>
15552 * except.c (current_function_has_exception_handlers): New.
15553 * except.h: Declare it.
15554 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
15555 Combine tests that disable all sibcalls for the function.
15557 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
15559 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
15562 2002-03-19 Richard Henderson <rth@redhat.com>
15565 * config/ia64/ia64.c: Revert 2002-03-01 patch.
15566 * config/ia64/ia64.h (INIT_EXPANDERS): New.
15568 2002-03-19 Jim Blandy <jimb@redhat.com>
15570 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
15571 name, even if the replacement list contains no tokens, as required
15574 2002-03-19 Jason Merrill <jason@redhat.com>
15576 * varasm.c (globalize_decl): Get the name from the RTL, not
15577 DECL_ASSEMBLER_NAME.
15579 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
15581 2002-03-19 Bob Wilson <bob.wilson@acm.org>
15583 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
15584 subdi_carry): Define.
15586 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15588 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15589 about -fpic/-fPIC if extra_warnings set.
15591 2002-03-19 David Edelsohn <edelsohn@gnu.org>
15593 * expr.c (expand_expr): Sign-extend CONST_INT generated from
15594 TREE_STRING_POINTER.
15595 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
15597 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15599 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15600 in favor of SP if FRAME_POINTER_REQUIRED is false.
15602 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
15604 * emit-rtl.c (gen_int_mode): New function.
15605 * rtl.h: Prototype for it.
15606 * combine.c (make_extraction, simplify_comparison), expmed.c
15607 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15608 (convert_modes, store_field), optabs.c (expand_fix),
15609 simplify-rtx.c (neg_const_int, simplify_unary_real),
15611 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15612 Use it instead of GEN_INT (trunc_int_for_mode (...)).
15614 2002-03-19 Jakub Jelinek <jakub@redhat.com>
15617 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15618 convert_parm_for_inlining.
15619 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15621 * langhooks-def.h: Likewise.
15622 * objc/objc-lang.c: Likewise.
15623 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15625 * tree-inline.c (initialize_inlined_parameters):
15626 Call convert_parm_for_inlining lang hook if needed.
15627 * c-typeck.c (c_convert_parm_for_inlining): New function.
15628 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15630 2002-03-18 Mark Mitchell <mark@codesourcery.com>
15632 * calls.c (precompute_arguments): Do not assume that temporaries
15633 can be destroyed after expanding the argument.
15634 (expand_call): Likewise.
15636 2002-03-15 Eric Christopher <echristo@redhat.com>
15638 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15639 Fix register preference on last change.
15640 * config/mips/mips.c (mips_return_in_memory): New function.
15641 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15642 * config/mips/mips-protos.h: Declare.
15643 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15644 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15646 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
15648 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15650 (anddi3, iorsi3): Likewise.
15652 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15653 use %gprel for symbols that are going to be placed in linkonce
15656 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15657 RETURN_ADDRESS_POINTER_REGNUM to $ra.
15658 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15659 not needed. Disregard leaf_function_p().
15660 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15661 mips16 frame pointer.
15662 * config/mips/mips.md (store ra): Only to small SP offsets.
15663 2001-08-22 Graham Stott <grahams@redhat.com>
15664 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15665 return a REG rtx for the return address register.
15667 2002-03-18 Bob Wilson <bob.wilson@acm.org>
15669 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15670 constant-pool addresses as "mode-dependent".
15671 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15673 2002-03-18 Jakub Jelinek <jakub@redhat.com>
15676 * expr.c (emit_group_load): Use extract_bit_field if
15677 needed for CONCAT arguments.
15679 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
15682 * arm.md (tablejump): Make this a define_expand. For PIC add the
15683 offset to the base of the table.
15684 (thumb_tablejump): Matcher for Thumb tablejump insn.
15685 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15686 as the difference of two labels.
15687 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15688 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15689 tables in the code.
15690 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15691 * arm.c (get_jump_table_size): If the table is not in the text
15692 section, return zero.
15694 2002-03-18 Bernd Schmidt <bernds@redhat.com>
15696 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15698 (arm_reload_out_hi): Use gen_lowpart instead of
15699 gen_rtx_SUBREG to access QImode components.
15700 * config/arm/arm.md: Disable zero_extend split for QImode
15701 subregs in BIG_ENDIAN mode.
15702 (storehi_bigend): Match use of least significant byte.
15703 (storeinthi): Remove extraneous SUBREG.
15704 Add missing construction of operands[2].
15705 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15706 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15707 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15709 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
15711 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15714 2002-03-17 Richard Henderson <rth@redhat.com>
15716 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15719 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15721 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15722 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15724 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15726 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15728 * predict.c (estimate_bb_frequencies): Delete unused variables.
15730 2002-03-17 Richard Henderson <rth@redhat.com>
15732 * config/ia64/ia64.c (ia64_attribute_table): Move before
15733 targetm definition. Make static.
15735 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
15737 * c-common.h (yyparse, c_common_parse_file): New.
15738 * c-lang.c: Include c-common.h.
15739 (LANG_HOOKS_PARSE_FILE): Redefine.
15740 * c-lex.c: Include c-common.h.
15741 (yyparse): Rename c_common_parse_file. Call yyparse.
15742 * c-parse.in (yyparse): Remove macro.
15743 * c-tree.h (yyparse_1): Remove.
15744 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15745 (LANG_HOOKS_INITIALIZER): Update.
15746 * langhooks.h (struct lang_hoooks): New hook parse_file.
15747 * toplev.c (compile_file): Use parse_file hook.
15748 * tree.h (yyparse): Remove.
15749 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
15751 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15753 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15754 float_truncate, not fix.
15755 ("*truncdfsf2_real"): Ditto.
15756 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15758 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15760 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
15762 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15763 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
15764 where appropriate. Make the second reference to
15765 leaf_function_p a function call, as intended. Reindented.
15767 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15768 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15770 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15771 add register to non-constant into sp.
15773 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15774 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15775 (mips16_gp_pseudo_rtx): Lose.
15776 (INIT_EXPANDERS): Deleted.
15777 * config/mips/mips.c (mips_init_machine_status): New.
15778 (mips_free_machine_status): New.
15779 (mips_mark_machine_status): New.
15780 (override_options): Set them.
15781 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15782 (struct machine_function): ... new. Replaced all references.
15783 (mips_add_gc_roots): Don't mark them.
15784 (embedded_pic_fnaddr_reg): New, extracted from...
15785 (embedded_pic_offset): ... here.
15786 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15789 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15791 * cppinit.c: Revert -MD removal.
15793 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15795 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15796 soft registers by default for 68HC12.
15797 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15798 when compiling with -fomit-frame-pointer.
15799 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15800 (expand_epilogue): Likewise.
15801 (m68hc11_gen_rotate): Use exg when rotating by 8.
15803 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15805 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15806 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15807 (splits): Remove unused add splits.
15808 ("*addhi3_68hc12"): Tune constraints.
15809 ("addhi_sp"): Try to use X instead of Y in all cases and if the
15810 constant fits in 8-bits and D is dead use abx/aby instructions.
15811 ("*addhi3"): Remove extern declaration of ix_reg.
15812 ("*subsi3"): Optimize and provide new split.
15813 ("subhi3"): Cleanup.
15814 ("*subhi3_sp"): Avoid saving X if we know it is dead.
15815 (arith splits): For 68hc12 save the address register on the stack
15816 and do the arithmetic operation with a pop.
15818 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15820 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15821 allocating QImode in address registers.
15822 ("*movqi_m68hc11"): Likewise.
15824 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
15826 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15828 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15830 * cppinit.c (print_help): Display -MD and -MMD.
15831 Don't display usage string. Update assertion syntax and
15833 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15834 (cpp_handle_option): Update.
15836 2002-03-15 Chris Demetriou <cgd@broadcom.com>
15838 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15839 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15840 and define it so that regardless of target CPU size,
15841 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15842 of "int" rather than "long."
15844 2002-03-15 Richard Henderson <rth@redhat.com>
15846 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15849 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15851 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15852 ("tstqi" split): Avoid using memory for tstqi on address register.
15853 (splits): Remove constraints.
15854 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15855 ("cmpdf", "cmpsf"): Remove since not used.
15856 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15857 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15859 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15861 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15862 ("neghi2"): Tighten constraints.
15863 ("one_cmplsi2"): Optimize and simplify split.
15864 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15866 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15868 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15869 and split of AND operation to clear the upper bits.
15870 ("*logicalsi3_zextqi"): Likewise.
15871 ("*logicallhi3_zexthi_ashift8"): Likewise.
15872 ("*logicalsi3_silshr16"): Likewise.
15873 ("logicalsi3_silshl16"): Likewise.
15874 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15876 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15878 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15879 (m68hc11_indirect_p): New function.
15880 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15881 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15883 (asm_print_register): Likewise.
15884 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15885 (m68hc11_indirect_p): Declare.
15886 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15887 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15888 (TARGET_SWITCHES): New option -mrelax.
15889 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15891 ("iorsi3", "xorsi3"): Likewise.
15892 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15893 ("*andhi3_mem"): New to handle destination in memory with bclr
15894 and a scratch register.
15895 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15896 ("*andhi3_const"): New when operand2 is constant.
15897 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15898 ("*andhi3_gen"): Cleanup of the old "andhi3".
15899 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15900 ("xorqi3"): Update constraints.
15902 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15904 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15905 for reg_equiv_memory_loc when the operand is a register that does
15906 not get a hard register (stack location).
15907 (tst_operand): After reload, accept all memory operand.
15908 (symbolic_memory_operand): Fix detection of symbolic references.
15909 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15910 accept symbols and any constant.
15912 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15914 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15915 note on the insn that sets the soft frame register.
15916 (must_parenthesize): ix and iy are also reserved names.
15917 (print_operand_address): One more place where parenthesis are required
15918 to avoid confusion with register names.
15919 (m68hc11_gen_movhi): Allow push of stack pointer.
15920 (m68hc11_check_z_replacement): Fix handling of parallel with a
15922 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15923 the replacement register is.
15924 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15925 and D8_REGS classes.
15926 (MODES_TIEABLE_P): All modes are tieable except QImode.
15928 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15930 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15931 (___subdi3): Likewise.
15932 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15933 (__map_data_section): Optimize 68hc11 case.
15935 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15937 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15938 than a shift to avoid adding a register with itself.
15939 (m68hc11_memory_move_cost): Take into account NO_REGS.
15940 (m68hc11_register_move_cost): Update and use memory move cost
15941 for soft registers.
15942 (m68hc11_address_cost): Make cost of valid offset not 0 so that
15943 it gives more opportunities to cse to optimize.
15944 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15945 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15947 2002-03-15 Mark Mitchell <mark@codesourcery.com>
15949 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15950 * c-common.def (CLEANUP_STMT): New tree node.
15951 * c-common.h (CLEANUP_DECL): New macro.
15952 (CLEANUP_EXPR): Likewise.
15953 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15954 * expr.c (expand_expr): Tidy.
15955 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15956 * tree-inline.c (initialize_inlined_parameters): Clean up
15957 new local variables.
15959 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15962 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15963 before movrXX only, use reg_overlap_mentioned_p.
15964 Only special case NE if just one insn can be generated.
15966 2002-03-15 Jason Merrill <jason@redhat.com>
15968 * varasm.c (assemble_variable): Call resolve_unique_section before
15969 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
15970 of error_mark_node.
15972 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15975 * arm.md (split pattern for thumb shiftable immediates): Add comment
15976 explaining non-obvious test.
15978 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15981 * arm.md (movaddr, movaddr_insn): Delete.
15983 2002-03-15 Jason Merrill <jason@redhat.com>
15985 * toplev.c (wrapup_global_declarations): Clarify variable handling.
15986 -fkeep-static-consts doesn't apply to comdats.
15988 2002-03-14 Richard Henderson <rth@redhat.com>
15990 * c-decl.c: Include c-pragma.h.
15991 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15992 (finish_function): Tidy.
15993 * c-pragma.c: Include c-common.h.
15994 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15995 (handle_pragma_weak): Use them.
15996 (init_pragma): Register pending_weaks.
15997 * c-pragma.h (maybe_apply_pragma_weak): Declare.
15998 * print-tree.c (print_node): Print DECL_WEAK.
15999 * varasm.c (mark_weak_decls): Remove.
16000 (remove_from_pending_weak_list): Remove.
16001 (add_weak): Remove.
16002 (asm_emit_uninitialised): Call globalize_decl for weak commons.
16003 (weak_decls): Make a tree_list.
16004 (declare_weak): Cons weak_decls directly.
16005 (globalize_decl): Remove weak_decls elements directly.
16006 (weak_finish): Simplify weak_decls walk. Don't weaken unused
16007 symbols. Don't pretend to handle aliases.
16008 (init_varasm_once): Update weak_decls registry.
16009 * Makefile.in: Update dependencies.
16011 2002-03-14 Richard Henderson <rth@redhat.com>
16014 * config/ia64/ia64.c: Include tm_p.h last.
16015 (gen_nop_type): Remove duplicate definition.
16016 (cycle_end_fill_slots): Set sched_data for second L slot.
16017 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
16018 (nop_cycles_until): Fix typos.
16020 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16022 PR optimization/5891
16023 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
16025 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
16027 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
16028 descriptors correctly.
16030 2002-03-14 Michael Meissner <meissner@redhat.com>
16032 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
16033 100, allowing MAX_UNROLLED_INSNS to be overridden.
16035 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
16038 * unroll.c (params.h): Include.
16039 (MAX_UNROLLED_INSNS): Delete, now in params.h.
16041 * doc/invoke.texi (--param max-unroll-insns): Document.
16043 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
16045 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16047 * arm.md: Fix warnings about constraints in peepholes and splits.
16049 2002-03-14 Zack Weinberg <zack@codesourcery.com>
16051 * cpphash.h (struct lexer_state): Remove line_extension member.
16052 * cpplib.c (dequote_string, do_linemarker): New functions.
16053 (linemarker_dir): New data object.
16054 (DIRECTIVE_TABLE): No longer need to interpret #line in
16055 preprocessed source. Delete obsolete comment about return
16056 values of handlers.
16057 (end_directive, directive_diagnostics, _cpp_handle_directive):
16058 Don't muck with line_extension.
16059 (directive_diagnostics): No need to issue warnings for
16061 (_cpp_handle_directive): Issue warnings for linemarkers here,
16062 when appropriate. Dispatch linemarkers to do_linemarker, not
16064 (do_line): Code to handle linemarkers split out to do_linemarker.
16065 Convert escape sequences in filename argument, both places.
16067 * cppmacro.c (quote_string): Rename cpp_quote_string and
16068 export. All callers changed.
16069 * cpplib.h (cpp_quote_string): Prototype.
16070 * cppmain.c (print_line): Call cpp_quote_string on to_file
16071 before printing it.
16073 * doc/cpp.texi: Document that escapes are now interpreted in
16074 #line and in linemarkers, and that non-printing characters are
16075 converted to octal escapes when linemarkers are generated.
16077 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
16079 * emit-rtl.c (try_split): Use delete_insns.
16080 * recog.c (split_all_insns): Fix terminating condition.
16082 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16083 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
16086 * arm.c (arm_output_epilogue): Fix floating-point register save
16087 adjustment when using a frame pointer.
16089 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
16091 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
16092 * config/mips/mips.c (compute_frame_size): Retrofit them here.
16093 (save_restore_insns, mips_expand_epilogue): And here.
16094 (build_mips16_call_stub): And here.
16095 (mips_function_value): Use the new macros to decide whether a single
16096 or complex float can be returned in floating-point registers. Return
16097 a parallel rtx in the complex case.
16099 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
16101 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
16102 call after liveness analysis.
16104 * recog.c (split_insn): Use delete_insn_and_edges.
16106 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
16107 instructions to have branch prediction notes.
16108 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
16110 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
16112 * configure.in: Don't pass -Wno-long-long to a ADA compiler
16113 that doesn't support it.
16114 * configure: Regenerate.
16116 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16119 * config/sparc/sparc.md (normal_branch, inverted_branch,
16120 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
16121 inverted_fp_branch): Adjust calls to output_cbranch.
16122 Set length attribute.
16123 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
16124 output_v9branch. Set length attribute.
16125 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
16127 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
16128 (output_cbranch): Likewise. Handle far branches.
16129 (output_v9branch): Handle far branches.
16130 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
16132 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
16133 noov_compare64_op predicates.
16135 2002-03-13 Jason Merrill <jason@redhat.com>
16137 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
16138 into the function and constify it.
16139 * gthr-dce.h, gthr-solaris.h: Likewise.
16141 2002-03-13 David Edelsohn <edelsohn@gnu.org>
16143 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
16144 * config/rs6000/rs6000.c (rs6000_va_arg): Use
16145 std_expand_builtin_va_arg if not ABI_V4.
16147 2002-03-13 Jason Merrill <jason@redhat.com>
16149 * varasm.c (globalize_decl): New fn.
16150 (assemble_start_function): Use it.
16151 (asm_emit_uninitialized): Use it.
16152 (assemble_alias): Use it.
16153 (assemble_variable): Use it.
16155 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
16157 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
16158 2002-03-12 internal visibility change.
16159 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
16160 visibility into SYMBOL_REF_FLAG.
16162 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
16164 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
16165 VOIDmode operand. Add compile-time optimization for constant results.
16167 2002-03-12 Jason Merrill <jason@redhat.com>
16169 * c-typeck.c (convert_for_assignment): Don't allow conversions
16170 between pointers and references. Only allow lvalues to convert to
16173 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
16175 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
16176 before prologue, to avoid scheduling problems.
16178 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16180 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
16181 (ELIMINABLE_REGS): Add sfp->sp.
16182 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
16184 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16186 PR optimization/5892
16187 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
16189 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16191 * loop.c (basic_induction_var): Don't call convert_modes if mode
16192 classes are different.
16194 2002-03-12 Richard Henderson <rth@redhat.com>
16196 PR optimization/5901
16197 * function.c (reposition_prologue_and_epilogue_notes): Position
16198 the markers after/before the last/first insn not deleted.
16200 2002-03-12 Richard Henderson <rth@redhat.com>
16202 PR optimization/5878
16203 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
16204 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
16205 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
16207 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
16208 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
16209 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
16211 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
16212 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
16213 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
16214 also. Don't set it if not flag_pic.
16215 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
16216 to be INVALID_REGNUM when not used.
16218 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
16220 * expmed.c (store_bit_field): Reset alias set for memory.
16221 (extract_bit_field): Same.
16223 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16225 * c-common.c (c_tree_code_type, c_tree_code_length,
16226 c_tree_code_name, add_c_tree_codes): Delete.
16227 * c-common.h (add_c_tree_codes): Delete.
16228 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
16230 * c-objc-common.c (c_objc_common_init): Don't call
16231 add_c_tree_codes, instead set lang_unsafe_for_reeval.
16232 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
16233 objc_tree_code_name, add_objc_tree_codes): Delete.
16234 (objc_init): Don't call add_objc_tree_codes.
16235 * objc/objc-lang.c (tree_code_type, tree_code_length,
16236 tree_code_name): Define.
16237 * toplev.c (lang_independent_init): Don't set
16238 tree_code_length[IDENTIFIER_NODE].
16239 * tree.c (tree_code_type, tree_code_length, tree_code_name):
16240 Delete definitions, moved to language front-ends.
16241 * tree.def (IDENTIFIER_NODE): Hardwire the length.
16242 * tree.h (tree_code_type, tree_code_length, tree_code_name):
16244 (tree_code_length): Change type to unsigned char.
16246 2002-03-12 Richard Henderson <rth@redhat.com>
16248 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
16249 internal visibility change.
16251 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16253 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
16254 validize_mem() instead of change_address to avoid clobbering
16257 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
16259 * c-lex.h (position_after_whitespace): Remove.
16261 2002-03-12 Jakub Jelinek <jakub@redhat.com>
16263 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
16264 (lex_string): Use unsigned char pointers.
16266 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16268 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
16269 is not a valid memory_operand.
16271 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16273 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
16274 * config/xtensa/lib1funcs.asm: Fix copyright to include
16275 special case for libgcc files.
16276 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
16277 (__divsi3): Likewise.
16278 (__umodsi3): Likewise.
16279 (__modsi3): Likewise.
16280 * config/xtensa/lib2funcs.S: Fix copyright to include
16281 special case for libgcc files.
16283 2002-03-12 Tom Rix <trix@redhat.com>
16285 * collect2.c (resolve_lib_name): Move outside of
16286 OBJECT_FORMAT_COFF ifdef.
16287 (ignore_library): Same.
16289 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16291 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
16293 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16295 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
16296 to function_section before writing out the constant pool.
16298 2002-03-12 David Edelsohn <edelsohn@gnu.org>
16300 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
16302 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
16304 2002-03-12 Alan Modra <amodra@bigpond.net.au>
16306 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
16307 (adddi3): Likewise.
16310 (cmpsi splitter): Likewise.
16311 (modsi3): Fail if <= 0.
16312 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
16313 redundant test when HOST_BITS_PER_WIDE_INT != 32.
16314 (reg_or_sub_cint64_operand): Likewise.
16315 (num_insns_constant_wide): Optimize sign extension.
16316 (rs6000_legitimize_address): Likewise.
16318 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16320 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16321 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16323 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16325 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
16326 address calculation.
16328 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16330 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
16331 scratch register to DImode / TImode.
16332 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
16333 register used does not overlap the target.
16335 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16337 * Makefile.in (debug.o): Depend on debug.h.
16338 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
16339 * debug.c (do_nothing_debug_hooks): Likewise.
16340 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
16341 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
16342 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
16343 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
16344 * dwarfout.c (dwarf_debug_hooks): Likewise.
16345 * integrate.c (output_inline_function): Likewise.
16346 * objc/objc-act.c (synth_module_prologue): Likewise.
16347 * sdbout.c (sdb_debug_hooks): Likewise.
16348 * toplev.c (debug_hooks): Likewise.
16349 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16351 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16353 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
16354 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
16355 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
16356 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
16357 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
16358 * defaults.h (POINTER_SIZE): Define.
16359 * doc/tm.texi (POINTER_SIZE): Document default.
16361 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16363 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
16365 2002-03-11 Richard Henderson <rth@redhat.com>
16367 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
16368 if rebuild_label_notes_after_reload.
16370 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
16372 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
16373 emit pic register load if "internal" visibility.
16374 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
16375 (cris_expand_builtin_va_arg): Do all computations on trees.
16377 2002-03-11 Richard Henderson <rth@redhat.com>
16379 * rtlanal.c: Include recog.h.
16380 (keep_with_call_p): Fix thinko.
16381 * Makefile.in (rtlanal.o): Update dependencies.
16383 2002-03-11 Chris Meyer <cmeyer@gatan.com>
16385 * genflags.c (gen_insn): Use IS_VSPACE.
16386 * genoutput.c (output_insn_data): Likewise.
16387 (process_template): Likewise.
16389 2002-03-11 Richard Henderson <rth@redhat.com>
16391 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
16393 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
16395 * Makefile.in: Update.
16396 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
16397 Update documentation.
16398 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
16399 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
16401 2002-03-11 Zack Weinberg <zack@codesourcery.com>
16403 * Makefile.in: Give texi2pod its input file as a command line
16404 argument, not on stdin.
16406 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
16407 Daniel Berlin <dan@dberlin.org>
16409 C++ alias analysis improvement.
16410 * alias.c (record_component_aliases): Record aliases for base
16413 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
16415 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
16417 2002-03-11 Douglas B Rupp <rupp@gnat.com>
16419 * toplev.c (vms_fopen): Remove, not needed.
16421 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
16423 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
16425 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
16426 for FP, already done later.
16428 * toplev.c (debug_args): Add entry for VMS_DEBUG.
16429 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
16431 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
16433 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
16434 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
16435 LARGEST_EXPONENT_IS_NORMAL for the given mode.
16436 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
16437 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
16438 (ediv, emul, eldexp, esqrt): Likewise.
16439 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
16440 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
16441 (saturate): New function.
16442 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
16443 (make_nan): Use a saturation value instead of a NaN if
16444 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
16445 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
16446 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
16447 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
16448 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
16449 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
16450 !ROUND_TOWARDS_ZERO.
16451 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
16452 (ROUND_TOWARDS_ZERO): Document.
16454 2002-03-11 Andreas Jaeger <aj@suse.de>
16456 * cfg.c (dump_flow_info): Remove unused variable.
16458 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
16460 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
16461 computations on trees.
16463 2002-03-10 Richard Henderson <rth@redhat.com>
16466 * reload.c (copy_replacements_1): New.
16467 (copy_replacements): Use it to recurse through the rtx.
16469 2002-03-10 Richard Henderson <rth@redhat.com>
16471 * loop.c (strength_reduce): Compute number of iterations as
16472 unsigned HOST_WIDE_INT.
16474 2002-03-10 Richard Henderson <rth@redhat.com>
16476 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
16477 to move away from the end of the block.
16479 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
16481 PR preprocessor/5899
16482 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
16484 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16486 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
16488 * attribs.c (decl_attributes): Fix signed/unsigned warning.
16490 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
16492 * config/mmix/mmix.c: Improve comments.
16493 (mmix_target_asm_function_prologue): Drop variable
16494 empty_stack_frame. Don't allocate unused slot above fp.
16495 (mmix_target_asm_function_epilogue): Mirror prologue changes.
16496 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
16497 brace in first column.
16498 (enum reg_class): Ditto.
16499 (FIRST_PARM_OFFSET): Now 0.
16500 (USER_LABEL_PREFIX): Remove #if 0:d definition.
16502 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16504 * combine.c (make_extraction): Fix error in last change.
16506 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16508 * c4x.c (c4x_fp_reglist): Const-ify.
16509 * cris.c (cris_print_operand): Likewise.
16510 * i386.c (ix86_va_arg): Likewise.
16511 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
16512 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
16513 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
16514 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
16515 * mcore.h (regno_reg_class): Likewise.
16516 * mips.c (gen_int_relational): Likewise.
16517 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
16518 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
16519 * pdp11.c (move_costs): Likewise.
16520 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
16521 * s390.c (s390_branch_condition_mnemonic, regclass_map):
16523 * s390.h (regclass_map): Likewise.
16524 * sh.c (shift_amounts): Likewise.
16525 * sh.md (rotlsi3): Likewise.
16527 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16529 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
16530 (ne0+5): Use new clobber to generate proper shift pattern.
16531 Patch by Michael Matz <matz@kde.org>.
16533 2002-03-09 Andreas Schwab <schwab@suse.de>
16535 * gcc.c (validate_all_switches): Also handle `%W{...}'.
16537 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
16539 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
16541 2002-03-09 Jakub Jelinek <jakub@redhat.com>
16544 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
16545 even for non-representable constants.
16547 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16549 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
16550 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
16551 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
16552 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
16553 (pop_function_context): Compute MAY_SHARE parameter for
16555 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
16556 (gen_mem_addressof): Call fixup_var_refs with new parm.
16558 * combine.c (make_extraction): Don't make extension of CONST_INT.
16560 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16562 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
16563 in o32 and o64 ABIs.
16564 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
16565 but getting fixed-size structs passed in registers regardless of
16566 padding in o32 and o64 ABIs.
16568 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
16569 offset before loading address of argument passed by transparent
16572 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
16574 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
16576 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
16578 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
16579 marker such that registers after it are saved.
16581 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16583 * sparc.c (arith_4096_operand): Fix error in last change.
16585 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16587 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16588 defaults for MEABI.
16590 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16592 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16595 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
16597 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
16599 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
16601 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16602 removed; fix return value.
16603 * combine.c (combine_instructions): Dirtify blocks where we failed to
16604 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16605 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16607 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16609 * gcse.c (insert_insn_end_bb): Fix typo in last change.
16611 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
16613 * recog.c (peephole2_optimize): Re-distribute EH edges.
16615 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
16617 * expr.c (expand_expr): Use unsave lang hook.
16618 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16619 (LANG_HOOKS_INITIALIZER): Update.
16620 * langhooks.h (struct lang_hooks): New hook unsave.
16621 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16622 (unsave_expr_1): Remove unused lang_unsave_expr_now.
16623 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
16624 (unsave_expr_now): Remove.
16625 * tree.h (unsave_expr_now, lang_unsave,
16626 lang_unsave_expr_now): Remove.
16629 2002-03-08 Andreas Jaeger <aj@suse.de>
16631 * flow.c (propagate_block_delete_insn): Remove unused variable.
16633 2002-03-08 Kazu Hirata <kazu@hxi.com>
16635 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16636 insn length for memory load/store.
16638 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
16640 * doc/install.texi (--with-libiconv-prefix): Document.
16642 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
16644 * doc/sourcebuild.texi: Fix typo.
16646 2002-03-08 Jakub Jelinek <jakub@redhat.com>
16649 * builtins.c (std_expand_builtin_va_arg): Do all computations on
16652 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16654 * rtl.c (copy_most_rtx): Move from here ...
16655 * emit-rtl.c (copy_most_rtx): ... to here.
16657 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16659 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16660 SUBTARGET_CPP_SIZE_SPEC.
16661 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16663 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16665 2002-03-07 Matt Hiller <hiller@redhat.com>
16667 * gensupport.c (first_dir_md_include): Renamed from include;
16668 change all references.
16669 (last_dir_md_include): Renamed from last_include; change all
16671 (init_md_reader): Unconditionally initialize base_dir whether or
16672 not filename is a relative path.
16674 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
16676 * config/fp-bit.c (_unord_f2): Compile it in even if
16677 US_SOFTWARE_GOFAST is enabled.
16679 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16680 NULL_RTX. Set all HFmode operations as NULL_RTX.
16681 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16682 NULL_RTX, try reversing the comparison and the operands.
16684 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16686 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16687 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16690 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
16692 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16694 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16696 * basic-block.h (fixup_abnormal_edges): Declare.
16697 * reload1.c (fixup_abnormal_edges): New function.
16698 * reg-stack.c (convert_regs): Use it.
16700 * gcse.c (insert_insn_end_bb): Handle trapping insns.
16702 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16704 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
16706 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16707 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16708 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16709 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16710 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16711 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16712 unless x and y could be infinite.
16713 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16714 Check that the common type of both arguments is a real, even for
16715 targets without unordered comparisons. Allow an integer argument
16716 to be compared against a real.
16717 (expand_tree_builtin): Use expand_unordered_cmp.
16718 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16719 * cse.c (fold_rtx): Likewise. Fix indentation.
16720 * fold-const.c (fold_real_zero_addition_p): New.
16721 (fold): Use it, and the new HONOR_... macros.
16722 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16723 * jump.c (reversed_comparison_code_parts): After searching for
16724 the true comparison mode, use HONOR_NANS to decide whether it
16725 can be safely reversed.
16726 (reverse_condition_maybe_unordered): Remove IEEE check.
16727 * simplify-rtx.c (simplify_binary_operation): Use the new macros
16728 to decide which simplifications are valid. Allow the following
16729 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16730 and (a - -b) to (a + b).
16731 (simplify_relational_operation): Use HONOR_NANS.
16732 * doc/tm.texi: Document the MODE_HAS_... macros.
16734 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
16736 * combine.c (simplify_comparison): If simplifying a logical shift
16737 right and compare with constant, force the comparison to unsigned.
16739 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
16741 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
16743 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16745 (alt_reg_names): Remove % for vrsave.
16747 2002-03-06 Richard Henderson <rth@redhat.com>
16749 PR optimization/5844
16750 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
16751 if used indicates we've already emitted one copy of an operand.
16752 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16753 (gen_split): Supply a non-null used.
16755 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16757 * reload1.c (reload): Unshare all rtl after reload is done.
16759 * simplify-rtx.c (simplify_plus_minus): Do not abort,
16760 but simply fail if the expression is too complex to simplify.
16761 (simplify_gen_binary): Handle simplify_plus_minus failures.
16763 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
16765 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16766 consistently call delete_trivially_dead_insns after CSE and GCSE;
16767 fix DFI_life dumping; do jump threading after liveness; do crossjumping
16768 after liveness2; update comment in last crossjumping.
16769 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16771 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
16773 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16774 after completing fast dead code elimination.
16776 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16779 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
16781 * version.c: Fix misplaced leading blanks on first line.
16783 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
16785 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16787 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
16789 * cfgcleanup.c (mentions_nonequal_regs): New function.
16790 (thread_jump): Use it.
16791 * toplev.c (rest_of_compilation): Run jump threading after
16794 2002-03-06 Jakub Jelinek <jakub@redhat.com>
16796 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16799 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
16801 * predict.c (estimate_bb_frequencies): Do not reload the
16802 frequencies from notes.
16804 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
16806 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16807 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16809 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16810 delete_noop_moves): Return indeger.
16811 * flow.c (ndead): New variable.
16812 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16813 BB argument; update callers.
16814 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16815 (life_analysis): Do not call purge_all_dead_edges.
16816 (update_life_info): Return number of deleted insns; print statistics.
16817 (update_life_info_in_dirty_blocks): likewise.
16818 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16819 return number of insns deleted.
16821 * cse.c: Include timevar.h
16822 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16823 iterate until stabilizes; print statistics; return number of killed
16825 * Makefile.in: (cse.o): Add timevar.h dependency
16826 * rtl.h (delete_trivially_dead_insns): New.
16827 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16828 * toplev.c (rest_of_compilation): Update callers.
16830 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16831 (try_optimize_cfg): Do not update liveness.
16832 (cleanup-cfg): Loop until try_optimize_cfg and dead code
16833 removal stabilizes; use delete_trivially_dead_insns.
16835 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16837 2002-03-05 Zack Weinberg <zack@codesourcery.com>
16839 * cppmain.c (setup_callbacks): Disable #pragma and #ident
16840 callbacks when processing assembly language.
16842 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16844 * pa.h (ASM_FILE_END): Define.
16845 * som.h (ASM_FILE_END): Delete.
16847 * pa.c (function_arg): Don't pass floats in general registers in
16848 indirect calls if TARGET_ELF32.
16850 2002-03-05 Richard Henderson <rth@redhat.com>
16852 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16854 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
16856 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16858 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16860 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16861 -r command line. Don't hide any symbols if not building
16864 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
16866 * cfg.c (dump_flow_info): Warn about profile mismatches.
16867 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16868 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16870 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16872 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16873 wide volatile memory by parts.
16875 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16877 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16880 2002-03-05 Richard Henderson <rth@redhat.com>
16882 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
16884 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16886 * toplev.c (documented_lang_options): Document more
16887 language-specific options.
16888 * doc/invoke.texi (Warning Options): Correct documentation for
16889 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16890 * c-decl.c (c_decode_option): Use a table to handle warning options.
16892 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
16894 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16895 parameter to mmix_encode_section_info.
16896 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16897 relocatably. Always produce ELF, not mmo if linking relocatably.
16898 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16899 first is non-zero, don't add symbol prefix.
16900 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16901 prototype accordingly.
16903 2002-03-04 Krister Walfridsson <cato@df.lth.se>
16905 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16907 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
16909 * configure.in: Increase required makeinfo version to 4.1.
16910 * configure: Regenerate.
16912 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16914 * .cvsignore: Remove *.info* and genrtl*; these files are generated
16917 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
16919 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16920 * doc/invoke.texi: Fix @math uses.
16922 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16924 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16927 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
16929 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16930 (powerpc-*-eabisimaltivec*): Same.
16932 * config/rs6000/t-ppcendian: New.
16934 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16936 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16937 nonimmediate_src_operand and nonimmediate_lsrc_operand to
16938 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16940 2002-03-03 Richard Henderson <rth@redhat.com>
16942 * toplev.c (rest_of_decl_compilation): Revert last two changes.
16944 2002-03-03 Zack Weinberg <zack@codesourcery.com>
16946 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16947 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16948 tree.c, config/m68k/m68k.c:
16949 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16950 REAL_ARITHMETIC blocks unconditional. Delete some further
16951 #ifdef blocks predicated on REAL_ARITHMETIC.
16952 * flags.h, toplev.c: Delete remaining references to
16953 flag_pretend_float.
16955 * doc/invoke.texi: Remove documentation of -fpretend-float.
16956 * doc/tm.texi: Describe the various REAL_* macros as provided by
16957 real.h, not by the target configuration files.
16959 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16960 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16961 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16962 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16963 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16964 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16965 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16966 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16967 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16968 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16969 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16970 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16971 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16972 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16973 config/xtensa/xtensa.h:
16974 Do not define, undefine, or mention in comments any of
16975 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16976 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16977 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16978 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16979 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16980 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16981 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16982 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16983 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16985 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16987 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16988 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16989 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16990 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16991 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16992 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16994 * defaults.h (BITS_PER_WORD): Define.
16995 * doc/tm.texi (BITS_PER_WORD): Document default value.
16997 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16998 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16999 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
17001 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17003 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
17004 lieu of explicit sizeof/sizeof.
17005 * i386.c (override_options, ix86_init_mmx_sse_builtins,
17006 ix86_expand_builtin): Likewise.
17007 * mips.c (mips_add_gc_roots): Likewise.
17008 * mmix.c (mmix_output_condition): Likewise.
17009 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
17010 altivec_init_builtins): Likewise.
17011 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
17012 * cppexp.c (Nsuff, parse_number): Likewise.
17013 * cppinit.c (builtin_array_end): Likewise.
17014 * gcc.c (n_default_compilers, process_command): Likewise.
17015 * genpreds.c (output_predicate_decls): Likewise.
17016 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
17017 * lcm.c (N_ENTITIES): Likewise.
17018 * stor-layout.c (set_sizetype): Likewise.
17020 2002-03-03 Richard Henderson <rth@redhat.com>
17022 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
17023 for types or labels.
17025 2002-03-03 Richard Henderson <rth@redhat.com>
17027 * c-decl.c (start_decl): Initialized variables are not common.
17029 2002-03-02 Per Bothner <per@bothner.com>
17031 * gcc.c (option_map): Suport new --bootclasspath option.
17032 --CLASSPATH is now just an alias for --classpath.
17034 2002-03-02 Richard Henderson <rth@redhat.com>
17036 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
17037 load if "internal" visibility.
17038 * doc/extend.texi: Document visibility meanings.
17040 2002-03-02 Richard Henderson <rth@redhat.com>
17042 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
17043 to functions as well.
17045 2002-03-02 Richard Henderson <rth@redhat.com>
17047 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
17048 (handle_visibility_attribute): Don't call assemble_visibility.
17049 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
17050 without asmspec. Invoke assemble_alias when needed.
17051 * varasm.c (maybe_assemble_visibility): New.
17052 (assemble_start_function, assemble_variable, assemble_alias): Use it.
17054 2002-03-02 Richard Henderson <rth@redhat.com>
17056 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
17057 invoke ENCODE_SECTION_INFO with first call flag.
17059 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
17060 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
17061 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
17062 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
17063 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
17064 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
17065 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
17066 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
17067 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
17068 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
17069 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
17070 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
17071 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
17072 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
17073 config/mcore/mcore-protos.h, config/mcore/mcore.c,
17074 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
17075 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
17076 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
17077 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
17078 config/sh/sh.h, config/sparc/sparc.h,
17079 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
17080 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
17081 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
17082 FIRST argument. As needed, examine it and do nothing.
17084 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
17085 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17086 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
17088 * config/arm/t-pe (pe.o): Add dependencies.
17090 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17092 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
17093 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
17094 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
17095 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
17096 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
17097 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
17098 * defaults.h (BITS_PER_UNIT): Define.
17099 * doc/tm.texi (BITS_PER_UNIT): Document default value.
17101 2002-03-02 Kazu Hirata <kazu@hxi.com>
17103 * config/h8300/h8300-protos.h: Add a prototype for
17104 compute_a_shift_length.
17105 * config/h8300/h8300.c (h8300_asm_insn_count): New.
17106 (compute_a_shift_length): Likewise.
17107 (h8300_adjust_insn_length): Do not adjust insn length of shift
17109 * config/h8300/h8300.md (anonymous shift patterns): Use
17110 compute_a_shift_length.
17112 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17114 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
17115 trunc_int_for_mode.
17117 * emit-rtl.c (offset_address): Call update_temp_slot_address.
17119 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17121 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
17122 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
17123 * flags.h (flag_zero_initialized_in_bss): Declare.
17124 * toplev.c (flag_zero_initialized_in_bss): New flag.
17125 (lang_independent_options): Add flag_zero_initialized_in_bss.
17126 * tree.c (initializer_zerop): New function.
17127 * tree.h (initializer_zerop): Declare.
17128 * varasm.c (assemble_variable): If we can emit bss, put zero
17129 initializers in the bss section.
17131 2002-03-02 Alan Modra <amodra@bigpond.net.au>
17133 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
17134 like more than one symbol per .weak directive.
17136 2002-03-01 Richard Henderson <rth@redhat.com>
17138 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
17139 adjust argument_pointer by pretend_args_size.
17140 (ia64_va_start): Adjust va_start address by -pretend_args_size.
17142 2002-03-01 Kazu Hirata <kazu@hxi.com>
17144 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
17146 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
17148 * toplev.c (rest_of_compilation): Delete dead jumptables before
17150 * flow.c (delete_dead_jumptables): Make global.
17151 * rtl.h (delete_dead_jumptables): Declare.
17153 2002-03-01 David Edelsohn <edelsohn@gnu.org>
17155 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
17156 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
17157 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
17159 2002-03-01 Kazu Hirata <kazu@hxi.com>
17161 * config/h8300/h8300-protos.h: Fix formatting.
17162 * config/h8300/h8300.c: Likewise.
17163 * config/h8300/h8300.h: Likewise.
17165 2002-03-01 Kazu Hirata <kazu@hxi.com>
17167 * config/h8300/h8300.c (print_operand): Support 16-bit
17168 constant addresses.
17169 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
17171 2002-02-28 Richard Henderson <rth@redhat.com>
17173 * expmed.c (store_bit_field): Prevent generation of CONCATs;
17174 pun complex values as integers; use gen_lowpart instead of
17176 (extract_bit_field): Likewise.
17178 2002-03-01 Alan Modra <amodra@bigpond.net.au>
17179 David Edelsohn <edelsohn@gnu.org>
17181 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
17182 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
17183 (SUPPORTS_WEAK): Likewise.
17184 * output.h (add_weak): Add tree param.
17185 * varasm.c (add_weak): Likewise. Save decl.
17186 (struct weak_syms): Add decl field.
17187 (mark_weak_decls): New function.
17188 (init_varasm_once): ggc_add_root mark_weak_decls.
17189 (assemble_start_function): Use ASM_WEAKEN_DECL.
17190 (assemble_variable): Likewise.
17191 (assemble_alias): Likewise.
17192 (declare_weak): Pass decl to add_weak.
17193 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
17194 (remove_from_pending_weak_list): Declare and define for
17196 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
17197 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
17198 * defaults.h (SUPPORTS_WEAK): Likewise.
17199 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
17200 .weak for code sym. Do emit .size for descriptor sym.
17201 (ASM_DECLARE_FUNCTION_SIZE): Define.
17202 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
17203 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
17204 .lglobl unless TARGET_XCOFF. Formatting fixes.
17205 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
17206 .weak for code sym.
17207 (HANDLE_PRAGMA_WEAK): Remove.
17208 (ASM_WEAKEN_LABEL): Remove.
17209 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
17211 2002-03-01 Jason Merrill <jason@redhat.com>
17213 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
17214 (TARGET_EXPR_CLEANUP): New macro.
17216 2002-02-28 Steve Ellcey <sje@cup.hp.com>
17218 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
17219 to take ptr_extend into account as third type of extension.
17220 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
17221 fields used by SUBREG_PROMOTED_UNSIGNED_P.
17222 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
17223 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
17224 * calls.c (precompute_arguments): Use new macro.
17225 (expand_call): Ditto.
17226 * combine.c (nonzero_bits): Ditto.
17227 (record_promoted_value): Ditto.
17228 * expr.c (store_expr): Ditto.
17229 (expand_expr): Ditto.
17230 * function.c (assign_parms): Ditto.
17232 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
17234 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
17235 override -shared and -shared-libgcc.
17237 2002-02-28 David O'Brien <obrien@FreeBSD.org>
17239 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
17241 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
17244 2002-02-28 Richard Henderson <rth@redhat.com>
17246 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
17247 4 cycle latency from MM producers.
17248 (ia64_internal_sched_reorder): Likewise with pipeline flush.
17250 2002-02-28 Jakub Jelinek <jakub@redhat.com>
17252 * mklibgcc.in: Don't use GNU make extension.
17254 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17256 * c-parse.in (STATIC): New terminal.
17257 (scspec): New non-terminal. Update productions accordingly.
17258 (program): Remove bogus ifc / end ifc.
17259 (array_declarator): Simplify production using STATIC.
17261 2002-02-28 Jim Meyering <meyering@lucent.com>
17263 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
17264 \a still means TARGET_BELL.
17266 2002-02-28 Richard Henderson <rth@redhat.com>
17268 * haifa-sched.c (sched_emit_insn): New.
17269 (schedule_block): Use last_scheduled_insn to track last insn.
17270 * sched-int.h (sched_emit_insn): Prototype.
17271 * config/ia64/ia64.c (last_issued): Remove.
17272 (ia64_variable_issue): Don't set it.
17273 (nop_cycles_until): Use sched_emit_insn.
17275 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
17277 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
17278 extended constants.
17280 2002-02-28 Kazu Hirata <kazu@hxi.com>
17282 * config/h8300/h8300.c: Fix formatting.
17283 * config/h8300/h8300.h: Likewise.
17285 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
17287 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
17288 which may overwrite the high byte of the frame pointer.
17290 2002-02-28 Bo Thorsen <bo@suse.de>
17292 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
17293 (STARTFILE_SPEC): Add 64 bit files.
17294 (ENDFILE_SPEC): Likewise.
17296 2002-02-28 Jason Merrill <jason@redhat.com>
17298 * c-decl.c (finish_function): Only warn about missing return
17299 statement with -Wreturn-type.
17301 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
17303 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
17305 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
17306 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
17308 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
17310 * basic-block.h (BB_REACHABLE): Renumber.
17311 (BB_DIRTY, BB_NEW): New flags.
17312 (clear_bb_flags): Declare.
17313 (update_life_info_in_dirty_blocks): Declare.
17314 * cfg.c (clear_bb_flags): New function.
17315 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
17316 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
17317 reorder_insns, emit_insn_after): Mark block as dirty.
17318 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
17319 (update_life_info_in_dirty_blocks): New function.
17320 * recog.c (apply_change_group): Dirtify block.
17322 * cse.c (cse_insn): Reorder emitting of jump insn to keep
17324 * gcse.c (delete_null_pointer_checks): Likewise.
17326 * toplev.c (dump_file_index): Move cse2 after bp,
17328 (dump_file_info): Similary.
17329 (rest_of_compilation): Avoid most of CFG rebuilds;
17330 do first if converision after null pointer checks, do cse2
17331 after branch prediction; avoid full liveness rebuild after
17332 initializing subregs.
17333 * invoke.texi (-d options): Document -du, renumber.
17335 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
17336 (notice_new_block): Do not set BB_UPDATE_LIFE.
17337 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
17338 merge_blocks_move_successor_nojumps, merge_blocks,
17339 try_crossjump_to_edge): Likewise.
17340 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
17341 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
17342 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
17343 (merge_of_block): Do not use life_data_ok.
17344 (find_if_case_1): Do not use SET_UPDATE_LIFE.
17345 (if_convert): Use BB_DIRTY mechanizm to update life.
17346 * lcm.c (optimize_mode_switching): Update
17347 update_life_info_in_dirty_blocks
17349 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17351 * Makefile.in (integrate.o): Update.
17352 * c-decl.c (copy_lang_decl): Rename.
17353 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17354 * integrate.c: Include langhooks.h.
17355 (copy_decl_for_inlining): Update to use langhook.
17356 * langhooks-def.h (lhd_do_nothing_t,
17357 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
17358 (LANG_HOOKS_INITIALIZER): Update.
17359 * langhooks.c (lhd_do_nothing_t): New.
17360 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
17361 * tree.h (copy_lang_decl): Remove.
17363 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17365 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
17367 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
17368 POST_DEC, and POST_MODIFY.
17370 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17372 * c-typeck.c (digest_init): Remove unused parameter; all
17375 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
17377 * expmed.c (expand_shift): Correctly test for low part of a
17380 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17382 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
17383 insn UIDs with insn addresses.
17385 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17387 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
17388 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
17389 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
17390 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
17391 gcc.c, toplev.c: Delete code implementing -traditional mode.
17393 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
17394 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
17395 Document removal of -traditional mode for compilation, and
17396 remove documentation only relevant to that mode.
17398 * config/nextstep.h, config/ptx4.h, config/svr4.h,
17399 config/convex/convex.h, config/d30v/d30v.h,
17400 config/i386/dgux.h, config/i386/osf1elf.h,
17401 config/i386/osfelf.h, config/i386/osfrose.h,
17402 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
17403 config/m68k/hp310.h, config/m88k/dgux.h,
17404 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
17405 config/m88k/m88k.h, config/m88k/openbsd.h,
17406 config/mips/abi64.h, config/mips/osfrose.h,
17407 config/mips/svr4-5.h, config/mips/svr4-t.h,
17408 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17409 config/stormy16/stormy16.h: Remove all references to
17410 -traditional from target specs. Delete all mention of the
17411 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
17412 delete a couple of commented-out definitions of
17413 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
17416 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
17417 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
17419 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17421 * mklibgcc.in: Don't use \n in a line subject to
17422 interpretation by echo.
17424 2002-02-27 Graham Stott <grahams@redhat.com>
17426 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
17429 * loop.c (prescan_loop): Handle PARALLEL.
17431 * unroll.c (loop_iterations): Return 0 if the add_val for
17434 * final.c (output_operand_lossage): Constify PFX_STR.
17436 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
17438 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
17440 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
17441 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
17443 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
17445 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17447 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
17449 * cpplex.c (_cpp_lex_token): Handle directives in macro
17451 * cpplib.c (_cpp_handle_directive): Save and restore state
17452 if parsing macro args when entering a directive.
17453 * cppmacro.c (collect_args): No need to handle directives
17454 in macro arguments.
17455 (enter_macro_context, replace_args): Use the original macro
17456 definition in case it was redefined whilst collecting arguments.
17458 * cpp.texi: Update.
17460 2002-02-26 David Edelsohn <edelsohn@gnu.org>
17462 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
17463 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
17464 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
17466 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
17467 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
17468 (load_toc_v4_PIC_2): Same.
17470 2002-02-26 Alan Modra <amodra@bigpond.net.au>
17472 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
17474 2002-02-26 Richard Henderson <rth@redhat.com>
17476 * config/alpha/alpha.md (ashldi_se): Re-enable.
17478 2002-02-26 Richard Henderson <rth@redhat.com>
17480 * config/alpha/alpha.c (alpha_encode_section_info): Examine
17481 MODULE_LOCAL_P; improve commentary.
17483 2002-02-26 Zack Weinberg <zack@codesourcery.com>
17485 * doc/cpp.texi: Clarify documentation of relationship between
17486 #line and #include.
17488 2002-02-26 Kazu Hirata <kazu@hxi.com>
17490 * config/h8300/h8300-protos.h: Update the prototype for
17491 compute_logical_op_length. Add the prototype for
17492 compute_logical_op_cc.
17493 * config/h8300/h8300.c (compute_logical_op_length): Figure out
17494 code from operands.
17495 (compute_logical_op_cc): New.
17496 * config/h8300/h8300.md: Combine all the logical op patterns
17497 in HImode and SImode. Use compute_logical_op_cc.
17499 2002-02-26 Kelley Cook <kelleycook@comcast.net>
17501 * config/i386/i386.c (print_operand): Don't append ATT-style
17502 length suffixs to x87 opcodes when in Intel mode.
17504 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
17506 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
17507 (init_emit_once): Update calls.
17508 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
17509 (init_syntax_once): Prototype.
17511 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
17513 * pa-linux.h (LIB_SPEC): Update definition.
17514 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17516 2002-02-26 Richard Henderson <rth@redhat.com>
17518 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
17519 if we emitted a stop bit.
17521 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17523 * configure.in (libgcc_visibility): Substitute.
17524 * configure: Rebuilt.
17525 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
17526 defined symbols .hidden.
17528 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17530 * attribs.c (c_common_attribute_table): Add visibility.
17531 (handle_visibility_attribute): New function.
17532 * varasm.c (assemble_visibility): New function.
17533 * output.h (assemble_visibility): Add prototype.
17534 * tree.h (MODULE_LOCAL_P): Define.
17535 * crtstuff.c (__dso_handle): Use visibility attribute.
17536 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
17537 for MODULE_LOCAL_P symbols too.
17538 * config/ia64/ia64.c (ia64_encode_section_info): Handle
17539 MODULE_LOCAL_P symbols the same way as local symbols.
17540 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
17541 into .sdata/.sbss by the user.
17542 * doc/extend.texi (Function Attributes): Document visibility
17545 2002-02-26 Jakub Jelinek <jakub@redhat.com>
17548 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
17549 STRING_CST initializer spanning the whole variable without
17551 If expand_expr returned MEM, don't use it.
17553 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
17555 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
17556 generate a die for the lexical block.
17558 2002-02-26 Kazu Hirata <kazu@hxi.com>
17560 * config/h8300/h8300-protos.h: Add a prototype for
17561 compute_logical_op_length.
17562 * config/h8300/h8300.c (compute_logical_op_length): New.
17563 * config/h8300/h8300.md (anonymous logical patterns): Use
17564 compute_logical_op_length for length.
17566 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17568 * dwarf2out.c (modified_type_die): Do not call type_main_variant
17570 (gen_type_die): Same.
17572 * attribs.c (handle_vector_size_attribute): Set debug information.
17574 2002-02-26 Daniel Egger <degger@fhm.edu>
17576 * config/rs6000/rs6000.md: Swap define_insn attributes to
17577 fix incorrect generation of merge high instructions instead
17580 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17582 * c-typeck.c (really_start_incremental_init): Use
17583 bitsize_zero_node for vectors.
17585 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
17587 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17588 ("*set_vrsave_internal"): Same.
17590 2002-02-25 Richard Henderson <rth@redhat.com>
17592 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17593 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
17595 2002-02-25 Jakub Jelinek <jakub@redhat.com>
17598 * config/i386/i386.c (ix86_return_pops_args): Only pop
17599 fake structure return argument if it was passed on the stack.
17601 2002-02-25 Jason Merrill <jason@redhat.com>
17603 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17606 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17608 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17609 link with shared_name only.
17610 * doc/invoke.texi (Link Options): Document new behavior.
17612 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17614 * c-typeck.c (push_init_level): Handle vectors.
17616 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
17618 * config/sparc/sparc.c (const64_high_operand): Zero-extend
17619 operands of SPARC_SETHI_P.
17620 (input_operand): Likewise.
17621 (sparc_emit_set_const32): Likewise.
17622 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17623 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17624 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
17625 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17626 (movdi_insn_sp64_vis): Likewise.
17627 (movdi split, movdf split): Use SETHI32.
17628 * doc/md.texi: Document SPARC constraints L, M and N.
17630 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17632 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17633 ("*set_vrsave_internal"): use mfspr for Darwin.
17635 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17636 gen_get_vrsave_internal.
17638 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17640 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17642 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
17644 * cpplex.c (cpp_interpret_charconst): Get signedness or
17645 otherwise of wide character constants correct.
17646 * cppexp.c (lex): Get signedness of wide charconsts correct.
17648 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17650 * optabs.c (widen_operand): Only call convert_modes for
17651 promoted SUBREG if signedness matches.
17652 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17654 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17656 * cpplib.c (glue_header_name): Use local buffer to build up
17659 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17661 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17663 2002-02-23 Kazu Hirata <kazu@hxi.com>
17665 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17666 H8/300[HS] separately.
17667 * config/h8300/h8300.md: Remove the early clobber constraint
17668 from bit field patterns.
17670 2002-02-23 Kazu Hirata <kazu@hxi.com>
17672 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17674 (mulhisi3): Likewise.
17675 (umulqisi3): Likewise.
17676 (umulhisi3): Likewise.
17678 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17680 * cppinit.c (output_deps): Correct test for stdout output.
17681 (init_dependency_output): Cure warning.
17683 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17685 * expr.c (store_expr): When converting expression to promoted
17686 equivalent type, allow using SUBREG_REG of TARGET as the target
17687 of the expansion of EXP.
17688 * loop.c (basic_induction_var, case SUBREG): Always look inside.
17689 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17690 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17691 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17692 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17694 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
17696 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17697 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17698 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17700 2002-02-23 Jakub Jelinek <jakub@redhat.com>
17702 PR optimization/5747
17703 * loop.c (scan_loop): Update reg info if move_movables created new
17706 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17708 * gcc.c (init_gcc_spec): Revert last change.
17710 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17712 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17713 gpc_reg_operand constraint.
17715 2002-02-23 Alan Modra <amodra@bigpond.net.au>
17717 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17718 Simplify comparison of `low'.
17719 (add_operand): Fix formatting.
17720 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
17721 (mask_operand): Disallow mask to wrap in 64-bit mode.
17722 (rs6000_stack_info): Remove redundant test setting push_p.
17723 (output_toc): Fix formatting.
17724 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17725 cc_reg_not_cr0_operand constraint.
17726 (booldi3, boolcdi3 splitters): Same.
17728 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
17730 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
17732 2002-02-22 David Edelsohn <edelsohn@gnu.org>
17734 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17735 gcc invoked with -shared-libgcc.
17737 2002-02-22 Jakub Jelinek <jakub@redhat.com>
17740 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17741 decl if any of elements was TREE_USED.
17743 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
17745 * config/sparc/sol2.h: Don't include sys/mman.h.
17746 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17747 (arith_4096_operand): Don't throw high bits away.
17748 (const64_operand): Take sign extension of CONST_INTs into account.
17749 (const64_high_operand, sparc_emit_set_const32): Likewise.
17750 (GEN_HIGHINT64): Likewise.
17751 (sparc_emit_set_const64_quick1): Likewise.
17752 (const64_is_2insns): Likewise.
17753 (print_operand): Use trunc_int_for_mode for sign extension.
17754 * config/sparc/sparc.h (SMALL_INT32): Likewise.
17755 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17756 chars. Assume CONST_INT is already properly sign-extended.
17757 (movdi split): Sign-extend each SImode part.
17758 (andsi3 split): Don't mask high bits off, so that result
17759 remains properly sign-extend.
17760 (iorsi3 split): Likewise.
17761 (xorsi3 split): Likewise.
17763 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
17765 * fold-const.c (fold): Fix typo in comments.
17767 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17769 * Makefile.in (langhooks.o): Update dependencies.
17771 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17773 * langhooks.c: Include flags.h.
17775 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
17777 * testsuite/gcc.dg/attr-alwaysinline.c: New.
17779 * c-common.c (c_common_post_options): Set inline trees by
17782 * doc/extend.texi (Function Attributes): Document always_inline
17784 Update documentation about inlining when not optimizing.
17786 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17788 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17789 unless DECL_ALWAYS_INLINE.
17791 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17792 unless DECL_ALWAYS_INLINE.
17793 (c_disregard_inline_limits): Disregard if always_inline set.
17795 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17796 Disregard if always_inline set.
17797 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17798 unless DECL_ALWAYS_INLINE.
17800 * attribs.c (handle_always_inline_attribute): New.
17801 (c_common_attribute_table): Add always_inline.
17803 * config/rs6000/altivec.h: Add prototypes for builtins
17804 requiring the always_inline attribute.
17806 2002-02-21 Eric Christopher <echristo@redhat.com>
17808 * expmed.c (store_bit_field): Try to simplify the subreg
17809 before generating a new one when when the mode size of
17810 value is less than maxmode.
17812 2002-02-21 Richard Henderson <rth@redhat.com>
17814 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17815 than gen_rtx_PLUS to form the sum.
17816 * explow.c (force_reg): Rearrange to not allocate new pseudo
17817 when force_operand returns a register.
17818 * expr.c (expand_assignment): Allow offset_rtx expansion to
17819 return a sum. Do not force addresses into registers.
17820 (expand_expr): Likewise.
17821 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17822 to canonicalize arithmetic that didn't simpify.
17823 (simplify_plus_minus): New argument force; update
17824 all callers. Don't split CONST unless we can do something with it,
17825 and wouldn't lose the constness of the operands.
17827 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17828 that we generated earlier.
17830 2002-02-21 Tom Tromey <tromey@redhat.com>
17832 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17833 (output_line_info): Use constant `1', with a long explanatory
17835 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17837 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
17839 * jump.c (redirect_jump): If old label has no UID, don't try to
17842 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
17844 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17845 If input is constant, do shifts at compile time.
17847 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
17849 * doc/extend.texi: Fix some more overfull hboxes.
17851 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17853 PR optimization/4994
17854 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17857 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17860 * expr.h (expand_and): Add mode argument.
17861 * expmed.c (expand_and): Add mode argument.
17862 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17863 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17864 * except.c (expand_builtin_extract_return_addr): Likewise.
17865 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17866 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17867 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17868 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17869 * config/c4x/c4x.md: Use GEN_INT (x) instead of
17870 gen_rtx (CONST_INT, VOIDmode, x).
17872 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17875 * stmt.c (warn_if_unused_value): Move side effects test once more.
17877 2002-02-20 Torbjorn Granlund <tege@swox.com>
17879 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
17880 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
17882 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
17884 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17885 SUBREG or ZERO_EXTEND.
17887 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
17889 * sh.h (current_function_anonymous_args): Remove.
17890 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17891 of current_function_varargs and current_function_stdarg is set.
17892 * sh.c (sh_expand_prologue): Check current_function_varargs /
17893 current_function_stdarg / TARGET_SH5 instead of
17894 current_function_anonymous_args.
17896 * sh64.h (TARGET_VERSION): Define.
17898 2002-02-20 David Edelsohn <edelsohn@gnu.org>
17900 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17901 VRSAVE_REGNO on TARGET_ALTIVEC.
17903 2002-02-20 Alan Modra <amodra@bigpond.net.au>
17905 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17906 bits of SImode const_int.
17907 (includes_rshift_p): Likewise.
17908 (print_operand): Call mask_operand and mask64_operand with correct
17910 (rs6000_output_function_epilogue): Pad traceback table to word.
17911 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17912 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17913 mask64_operand with correct mode.
17914 (FUNCTION_ARG_REGNO_P): Correct parentheses.
17916 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17919 * varasm.c (get_pool_constant_mark): New.
17920 * rtl.h (get_pool_constant_mark): Add prototype.
17921 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17922 be represented if it has not been output.
17924 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17926 * combine.c (do_SUBST): Sanity check substitutions of
17927 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17928 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17929 CONST_INT into its operand.
17930 (known_cond): Likewise, for ZERO_EXTEND.
17931 * simplify-rtx.c (simplify_unary_operation): Fix condition to
17932 allow for simplification of wide modes. Reject CONST_INTs in
17933 ZERO_EXTEND when their actual mode is not given.
17935 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17937 * c-decl.c (pushdecl): If no global declaration is found for an
17938 extern declaration in block scope, try a limbo one.
17940 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17943 * c-common.c (pointer_int_sum): Moved from...
17944 * c-typeck.c (pointer_int_sum): ...here.
17945 * c-common.h (pointer_int_sum): Add prototype.
17947 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17950 * c-decl.c (duplicate_decls): Return 0 if issued error about
17953 2002-02-20 Roger Sayle <roger@eyesopen.com>
17954 Jakub Jelinek <jakub@redhat.com>
17957 * tree.c (host_integerp): Ensure that the constant integer is
17958 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17959 when pos is zero or non-zero respectively. Clarify comment.
17960 * c-format.c (check_format_info_recurse): Fix host_integerp
17961 usage; the pos argument should be zero when assigning to a
17962 signed HOST_WIDE_INT.
17964 2002-02-20 Richard Henderson <rth@redhat.com>
17966 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17967 of the operand, rather than assuming TImode.
17968 (ix86_expand_binop_builtin): Cope with commutative patterns
17969 using nonimmediate_operand for both operands.
17970 (ix86_expand_timode_binop_builtin): Likewise.
17971 (ix86_expand_store_builtin): Validate operand 1.
17972 (ix86_expand_unop1_builtin): Likewise.
17974 2002-02-20 Philip Blundell <philb@gnu.org>
17977 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17979 2002-02-20 Richard Henderson <rth@redhat.com>
17982 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17984 2002-02-20 Tom Tromey <tromey@redhat.com>
17986 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17987 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17988 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17989 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17990 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17993 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17995 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17996 for (const_int 0) in X not just INTVAL.
17998 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
18000 * doc/extend.texi: Avoid or reduce overfull hboxes.
18002 2002-02-20 Diego Novillo <dnovillo@redhat.com>
18004 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
18005 operations if the field does not start at a mode boundary.
18007 2001-02-20 Joel Sherrill <joel@OARcorp.com>
18009 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
18010 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
18011 Also done for -Acpu and -Amachine.
18013 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
18015 * cppinit.c (init_dependency_output): Take deps output file
18016 from -o if none given with -MF. Suppress normal output.
18017 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
18018 * doc/cpp.texi, doc/invoke.texi: Update.
18020 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18022 * toplev.c (output_quoted_string): Write unprintable
18023 characters with octal escapes.
18025 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18027 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
18028 really_call_used[VRSAVE_REGNO] if not Altivec.
18030 2002-02-19 Alan Modra <amodra@bigpond.net.au>
18032 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
18034 (constant_pool_expr_1): Fix formatting.
18035 (rs6000_legitimize_reload_address): Likewise.
18037 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18039 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
18040 now that we have one.
18042 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18044 * tree.h (struct tree_common): Remove aux. Add unused_0 at
18045 end of first block of bitfields (which was only seven bits);
18046 rename dummy to unused_1; remove comment which is no longer true.
18048 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18050 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
18052 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18055 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
18059 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
18060 arm_is_longcall_p rather than inspecting call-type cookie
18062 (call_value_insn) [TARGET_THUMB]: Likewise.
18064 2002-02-19 Graham Stott <grahams@redhat.com>
18066 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
18068 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18070 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
18071 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
18072 (FP_SAVE_INLINE): Delete.
18074 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
18075 * config/rs6000/eabi.asm: Remove ABI save restore routines.
18076 * config/rs6000/t-ppccomm: Build crtsavres.o.
18077 * config/rs6000/crtsavres.asm: New file.
18079 2002-02-19 Philip Blundell <philb@gnu.org>
18081 * config/arm/arm.c (use_return_insn): Don't reject interrupt
18083 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
18084 (output_return_instruction): Allow interrupt functions to return with
18085 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
18086 (arm_expand_prologue): Subtract 4 before stacking LR in an
18087 interrupt function.
18089 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18091 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
18092 decl, not just FUNCTION_DECL.
18093 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
18094 (arm_assemble_integer): Likewise.
18095 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
18098 2002-02-19 matthew green <mrg@eterna.com.au>
18100 * config.gcc (sparc-*-netbsdelf*): Enable target.
18101 (sparc64-*-netbsd*): New target.
18102 * config/sparc/netbsd-elf.h: New file.
18103 * config/sparc/t-netbsd64: New file.
18105 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18107 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
18109 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
18111 * doc/invoke.texi: explicitly list the style guidelines that
18112 -Weffc++ checks for.
18114 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
18116 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
18118 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
18121 * gcc.c (cpp_unique_options): Treat -o as indicating object file
18122 only if not -E. If -E, pass -o through to the preprocessor.
18124 2002-02-19 Kazu Hirata <kazu@hxi.com>
18126 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
18127 register number with an appropriate macro.
18129 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18131 * doc/rtl.texi (Constants): Close @code tag.
18133 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
18135 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
18136 ("mmx_uavgv4hi3"): Same.
18137 ("pmulhrwv4hi3"): Same.
18139 * tree-inline.c (walk_tree): Handle vectors.
18141 * c-common.c (constant_expression_warning): Handle vectors.
18142 (overflow_warning): Same.
18144 * sched-deps.c (sched_analyze_2): Handle vectors.
18146 * rtlanal.c (rtx_unstable_p): Handle vectors.
18147 (rtx_varies_p): Same.
18148 (count_occurrences): Same.
18149 (regs_set_between_p): Same.
18150 (modified_between_p): Same.
18151 (modified_in_p): Same.
18152 (volatile_insn_p): Same.
18153 (volatile_refs_p): Same.
18154 (side_effects_p): Same.
18155 (may_trap_p): Same.
18156 (inequality_comparisons_p): Same.
18157 (replace_regs): Same.
18158 (computed_jump_p_1): Same.
18160 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
18162 (inner_mode_array): New.
18163 (copy_rtx): Handle vectors.
18164 (copy_most_rtx): Same.
18165 (rtx_equal_p): Same.
18166 (get_mode_alignment): Adjust for vectors.
18168 * resource.c (mark_referenced_resources): Handle vectors.
18169 (mark_set_resources): Same.
18171 * reload1.c (eliminate_regs): Handle vectors.
18172 (elimination_effects): Same.
18173 (scan_paradoxical_subregs): Same.
18175 * reload.c (subst_reg_equivs): Handle vectors.
18177 * regrename.c (scan_rtx): Handle vectors.
18179 * regclass.c (reg_scan_mark_refs): Handle vectors.
18181 * recog.c (find_single_use_1): Handle vectors.
18183 * local-alloc.c (equiv_init_varies_p): Handle vectors.
18184 (contains_replace_regs): Same.
18185 (memref_referenced_p): Same.
18187 * integrate.c (copy_rtx_and_substitute): Handle vectors.
18188 (subst_constants): Same.
18190 * genattrtab.c (attr_copy_rtx): Handle vectors.
18191 (encode_units_mask): Same.
18192 (clear_struct_flag): Same.
18193 (count_sub_rtxs): Same.
18195 * gcse.c (want_to_gcse_p): Handle vectors.
18196 (oprs_unchanged_p): Same.
18197 (hash_expr_1): Same.
18198 (oprs_not_set_p): Same.
18199 (expr_killed_p): Same.
18200 (compute_transp): Same.
18201 (store_ops_ok): Same.
18203 * function.c (purge_addressof_1): Do not allow paradoxical subregs
18205 (fixup_var_refs_1): Same.
18206 (instantiate_virtual_regs_1): Same.
18208 * fold-const.c (operand_equal_p): Handle vectors.
18210 (rtl_expr_nonnegative_p): Same.
18212 * flow.c (mark_used_regs): Handle vectors.
18214 * df.c (df_uses_record): Handle vectors.
18216 * cselib.c (cselib_subst_to_values): Handle vectors.
18217 (cselib_mem_conflict_p): Same.
18220 * cse.c (canon_reg): Handle vectors.
18222 (cse_process_notes): Same.
18223 (count_reg_usage): Same.
18224 (canon_hash): Same.
18226 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
18228 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
18230 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
18231 (gen_rtx): Handle CONST_VECTOR.
18232 (gen_const_vector_0): New.
18233 (copy_rtx_if_shared): CONST_VECTORs can be shared.
18234 (reset_used_flags): Same.
18235 (copy_insn_1): Same.
18236 (initializer_constant_valid_p): Handle VECTOR_CST.
18238 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
18240 * doc/rtl.texi (Constants): Document const_vector.
18241 (CONST0_RTX): Update for vectors.
18242 (RTL sharing): Same.
18244 * print-tree.c (print_node): Add case for VECTOR_CST.
18246 * tree.h (TREE_VECTOR_CST_ELTS): New.
18247 (struct tree_vector): New.
18248 (union tree_node): Add vector node.
18249 (build_vector): Add prototype.
18251 * tree.def (VECTOR_CST): New.
18253 * tree.c (build_vector): New.
18255 * expmed.c (make_tree): Handle CONST_VECTOR.
18257 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
18258 (CONST_VECTOR_ELT): New.
18259 (CONST_VECTOR_NUNITS): New.
18261 * machmode.h (GET_MODE_INNER): New.
18262 (DEF_MACHMODE): Accept 8th arg.
18264 * machmode.def: Add 8th argument for vector inner mode.
18265 Add inner vector modes for vectors.
18267 * rtl.def (VEC_CONST): Remove.
18268 (CONST_VECTOR): New.
18270 * expr.c (clear_storage): Allow vectors.
18271 (is_zeros_p): Handle VECTOR_CST.
18273 * varasm.c (output_constant_pool): Handle vectors.
18274 (rtx_const): Add veclo and vechi fields.
18275 (kind): Add RTX_VECTOR.
18276 (decode_rtx_const): Add case for vector.
18278 * config/rs6000/rs6000-protos.h: Add zero_constant.
18280 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
18281 constants. Force easy vector constants into memory.
18282 (easy_vector_constant): New.
18283 (emit_easy_vector_constant): New.
18284 (rs6000_legitimize_reload_address): Do not generate bad reloads on
18287 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
18289 ("altivec_lvxl"): Same.
18290 (altivec_lvebx): Same.
18291 (altivec_lvehx): Same.
18292 (altivec_lvewx): Same.
18293 ("*movv4si_const0"): New.
18294 ("*movv4sf_const0"): New.
18295 ("*movv8hi_const0"): New.
18296 ("*movv16qi_const0"): New.
18298 2002-02-18 Kazu Hirata <kazu@hxi.com>
18300 * config/h8300/h8300.c (notice_update_cc): Use
18303 2002-02-18 Kazu Hirata <kazu@hxi.com>
18305 * config/h8300/h8300.md (divmod patterns): Change the
18306 constraints for operands[1] to register_operand.
18308 2002-02-18 Kazu Hirata <kazu@hxi.com>
18310 * config/h8300/h8300-protos.h: Remove the prototype for
18312 * config/h8300/h8300.c (p_operand): Remove.
18313 * config/h8300/h8300.md: Replace p_operand with
18316 2002-02-18 Philip Blundell <pb@nexus.co.uk>
18318 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
18320 (output_return_instruction): Allow use of LDR to unstack
18321 return addresss even for interrupt handlers or when
18322 interworking. If compiling for ARMv5, use interworking-safe
18323 return instructions by default. Remove duplicated code and
18324 lengthy "strcat" sequences.
18326 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18328 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
18329 (LINK_EH_SPEC): Define.
18330 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
18332 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
18334 * config/s390/s390.c (s390_emit_prologue): Do not set the
18335 frame_related flag for call-clobbered registers.
18337 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
18339 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
18340 (construct_container): Fix handling of SSE operands.
18341 (ix86_expand_builtin): Fix handling of 64bit pointers.
18342 (mmx_maskmovq_rex): New pattern.
18344 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
18346 * regrename.c (kill_set_value): Handle subregs properly.
18348 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
18350 * objc/objc-act.c (handle_impent): Remove leading '*'
18351 from objc_class_name.
18353 2002-02-17 Richard Henderson <rth@redhat.com>
18355 * config/alpha/alpha.c (some_small_symbolic_operand,
18356 some_small_symbolic_operand_1, split_small_symbolic_operand,
18357 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
18358 Handle small SYMBOL_REFs anywhere, not just inside memories.
18359 * config/alpha/alpha-protos.h: Update.
18360 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18361 * config/alpha/alpha.md (small symbolic operand splitter): Update.
18363 2002-02-17 Roland McGrath <roland@frob.com>
18365 * config.gcc (powerpc-*-gnu-gnualtivec*,
18366 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
18367 * config/rs6000/gnu.h: New file.
18368 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
18369 Grok "gnu" in rs6000_abi_name.
18370 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
18371 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
18372 Grok -mcall-gnu analogous to -mcall-linux et al.
18373 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18374 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
18375 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
18377 2002-02-17 Jakub Jelinek <jakub@redhat.com>
18380 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
18383 2002-02-17 Philipp Thomas <pthomas@suse.de>
18385 * config/cris/cris.h: Undefine STARTFILE_SPEC and
18386 ENDFILE_SPEC before (re)defining them.
18388 2002-02-17 Kazu Hirata <kazu@hxi.com>
18390 * config/h8300/h8300.c: Fix formatting.
18391 * config/h8300/h8300.h: Likewise.
18393 2002-02-17 Philipp Thomas <pthomas@suse.de>
18395 * doc/tm.texi: Explain why empty strings should not be
18396 marked for translation.
18398 2002-02-17 Philipp Thomas <pthomas@suse.de>
18400 * final.c (output_operand_lossage): Changed to accept
18401 printf style arguments. Change calls where necessary.
18402 * output.h (output_operand_lossage): Change declaration
18403 accordingly. Update copyright.
18404 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
18405 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
18406 Update copyright date where necessary.
18408 * config/i386/i386.c (print_operand): Likewise. Remove use of
18411 * config/cris/cris.c (cris_operand_lossage): Likewise.
18412 Rename parameter so that exgettext recognizes it as
18413 translatable message.
18414 (LOSE_AND_RETURN): Rename parameter to msgid.
18416 2002-02-17 Kazu Hirata <kazu@hxi.com>
18418 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
18419 hard coded register number with an appropriate macro.
18420 (HARD_REGNO_MODE_OK): Likewise.
18421 (ARG_POINTER_REGNUM): Likewise.
18422 (STATIC_CHAIN_REGNUM): Likewise.
18423 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
18424 * config/h8300/h8300.md (define_constants): Define more
18427 2002-02-17 Philipp Thomas <pthomas@suse.de>
18429 * config/i386/i386.h: Don't mark empty strings for translation.
18431 2002-02-16 H.J. Lu <hjl@gnu.org>
18433 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
18435 2002-02-16 Zack Weinberg <zack@codesourcery.com>
18437 * cppinit.c (merge_include_chains): Check for brack being
18438 NULL before attempting to merge it with qtail.
18440 2002-02-16 Andrew Cagney <ac131313@redhat.com>
18442 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
18445 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18447 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
18449 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
18451 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
18452 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
18453 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
18455 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18457 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
18458 now only if !TARGET_FIX.
18459 (*movsi_nt_vms_fix): New pattern.
18461 2002-02-16 Douglas B Rupp <rupp@gnat.com>
18463 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
18464 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
18465 (alpha_sa_mask, alpha_sa_size): Reflect above change.
18466 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
18467 (alpha_start_function, alpha_expand_epilogue): Likewise.
18468 (unicosmk_gen_dsib): Likewise.
18470 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18472 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
18474 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
18476 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
18477 check_and_change_labels, s390_final_chunkify): Delete.
18478 (s390_split_branches, s390_chunkify_pool): New functions.
18479 (s390_function_prologue): Call them.
18481 * config/s390/s390.h (S390_REL_MAX): Delete.
18482 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
18484 * config/s390/s390.md (cjump, icjump, jump): Fix length
18485 attribute calculation.
18488 2002-02-15 David Edelsohn <edelsohn@gnu.org>
18490 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
18491 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
18493 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18495 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
18496 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
18497 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
18499 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18501 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
18503 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
18505 * reload.c (find_dummy_reload): Check that an output register
18506 is valid for its mode.
18508 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
18510 * combine.c (known_cond): After replacing the REG of a SUBREG, try
18513 * function.c (assign_parms): Demote promoted argument passed by
18514 transparent reference.
18516 2001-02-14 Joel Sherrill <joel@OARcorp.com>
18518 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
18519 -Acpu() and -Amachine() to eliminate warnings.
18521 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
18523 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
18525 2002-02-14 Kazu Hirata <kazu@hxi.com>
18527 * config/h8300/h8300-protos.h: Update the prototype for
18529 * config/h8300/h8300.c (const_costs): Treat SET as a little
18530 more expensive operation.
18531 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
18532 reference to const_costs.
18534 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
18536 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
18538 2002-02-14 Jakub Jelinek <jakub@redhat.com>
18541 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
18542 use arguments from newtype.
18544 2002-02-13 Eric Christopher <echristo@redhat.com>
18546 * config/mips/mips.c (override_options): Add check for march/mipsX
18547 on the same command line. Fix error message in cpu processing.
18548 Remove architecture and ISA checks.
18550 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18552 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
18554 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
18556 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
18558 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
18560 ("*movv8hi_internal1"): Same.
18561 ("*movv16qi_internal1"): Same.
18562 ("*movv4sf_internal1"): Same.
18564 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
18565 not push_reload for altivec modes.
18567 2002-02-13 Joel Sherrill <joel@OARcorp.com>
18569 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
18570 all RTEMS targets including removal of #includes from config/*/rtems*.h
18571 file and adding them to tm_file setting. Added xm_defines=POSIX to
18573 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
18574 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
18575 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
18576 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
18577 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
18578 config/m68k/rtemself.h: Ditto.
18579 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
18580 config/mips/rtems64.h: Ditto.
18581 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
18582 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
18584 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
18585 config/sparc/rtemself.h: Ditto.
18586 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
18587 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18588 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18590 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18591 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18592 target made more similar to i386-elf.
18593 * config/i386/t-rtems-i386: Added soft float support and multilibs.
18594 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18595 be similar to config/m68k/t-m68kelf.
18596 * gthr-rtems.h: Encapsulate with extern "C" for C++.
18598 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
18600 * regmove.c (kill_value): Handle subregs.
18602 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
18604 * i386.md (mul patterns): Allow memory operand to be first;
18605 add expanders where needed; fix constraints.
18606 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18607 Allow memory operand to be the first.
18609 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18612 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18615 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18618 2002-02-13 Jakub Jelinek <jakub@redhat.com>
18620 PR optimization/5547:
18621 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18622 all valid IA-32 address modes involving non-scaled %ebx and
18623 GOT/GOTOFF as displacement.
18625 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
18627 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18628 after emitting ltorg insns.
18630 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18631 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18632 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18633 *abssf2): Fix "op_type" attribute.
18635 2002-02-13 Douglas B Rupp <rupp@gnat.com>
18637 * mkconfig.sh: Avoid using a subshell redirect.
18638 ($output.T): Change to $(output)T.
18639 (ENABLE_NLS): Remove unneeded undef.
18641 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18642 * config/alpha/x-vms (libsubdir): Define.
18644 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18645 register frame procedures. Optimize retrieving context.
18647 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18648 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18649 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18651 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18653 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18654 Make same change as for find_base_value.
18656 2002-02-13 Kazu Hirata <kazu@hxi.com>
18658 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18659 of QImode and SImode.
18661 2002-02-13 Kazu Hirata <kazu@hxi.com>
18663 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18664 length computation of movsi.
18665 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18667 2002-02-13 Kazu Hirata <kazu@hxi.com>
18669 * config/h8300/h8300.md (subqi3): Tighten the predicate for
18670 operands[2] to register_operand.
18672 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
18674 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18676 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
18678 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18679 for altivec_lvx* and altivec_stvx*.
18680 ("*movv4si_internal"): Add constraint for loading from GPRs.
18681 ("*movv8hi_internal1"): Same.
18682 ("*movv16qi_internal1"): Same.
18683 ("*movv4sf_internal1"): Same.
18685 * config/rs6000/rs6000.c (altivec_register_operand): New.
18687 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18688 altivec_register_operand.
18690 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
18692 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18695 2002-02-13 Stan Shebs <shebs@apple.com>
18697 * c-typeck.c (digest_init): Handle vectors.
18698 (really_start_incremental_init): Same.
18699 (pop_init_level): Same.
18700 (process_init_element): Same.
18702 * varasm.c (output_constant): Same.
18704 * expr.c (clear_storage): Same.
18705 (store_constructor): Same.
18707 2002-02-12 Eric Christopher <echristo@redhat.com>
18709 * explow.c (hard_function_value): Add comment explaining
18710 signed/unsigned comparison.
18712 2002-02-12 Jakub Jelinek <jakub@redhat.com>
18714 * jump.c (never_reached_warning): Add finish argument.
18715 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18716 real insn after end.
18717 * rtl.h (never_reached_warning): Adjust prototype.
18718 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18719 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18720 never_reached_warning.
18722 2002-02-12 Graham Stott <grahams@redhat.com>
18724 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18726 2002-02-12 Kazu Hirata <kazu@hxi.com>
18728 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18729 logical shifts on H8/300.
18730 (shift_alg_si): Improve several shifts on H8/300.
18731 (get_shift_alg): Likewise.
18733 2002-02-12 Graham Stott <grahams@redhat.com>
18735 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18737 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18739 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18740 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18742 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
18744 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18745 non-CONST_INT through default_assemble_integer.
18746 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18747 <case 8>: Abort for CONST_DOUBLE.
18749 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
18751 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18753 * config/pa/pa-linux.h (LIB_SPEC): Delete.
18754 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18756 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
18758 * config/stormy16/stormy16.md (zero_extendqihi2): New.
18760 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
18762 * regrename.c (regrename_optimize): Don't accept a
18763 part-clobbered register if the replaced register is not part
18766 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18767 take padding into account when computing the argument value.
18769 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18771 * combine.c (try_combine): Apply substitutions in
18772 CALL_INSN_FUNCTION_USAGE too.
18774 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
18776 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18777 __builtin_altivec_abs*.
18780 * config/rs6000/rs6000.h (rs6000_builtins): Add
18781 ALTIVEC_BUILTIN_ABS*.
18783 * config/rs6000/altivec.h: Use const char for builtins expecting
18785 (vec_abs): New versions for C and C++.
18788 2002-02-10 Kazu Hirata <kazu@hxi.com>
18790 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18793 2002-02-10 Kazu Hirata <kazu@hxi.com>
18795 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18796 constant definition from h8300.md.
18797 (FRAME_POINTER_REGNUM): Likewise.
18798 * config/h8300/h8300.md (define_constants): Add FP_REG.
18800 2002-02-10 Kazu Hirata <kazu@hxi.com>
18802 * config/h8300/h8300.c (print_operand): Remove redundant code.
18804 2002-02-10 Kazu Hirata <kazu@hxi.com>
18806 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18807 * config/h8300/h8300.c (byte_reg): Make it static.
18809 2002-02-10 Richard Henderson <rth@redhat.com>
18812 * c-typeck.c (incomplete_type_error): Handle flexible array members.
18814 2002-02-10 Richard Henderson <rth@redhat.com>
18817 * tree.c (append_random_chars): Don't abort if main_input_filename
18820 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
18822 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18824 2002-02-10 Kazu Hirata <kazu@hxi.com>
18826 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
18827 (pushhi1): Likewise.
18829 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
18831 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18832 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18834 2002-02-09 David O'Brien <obrien@FreeBSD.org>
18836 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18838 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
18840 2002-02-09 Kazu Hirata <kazu@hxi.com>
18842 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18843 a half of an SImode register on H8/300.
18845 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
18847 * i386.md (movdi_2): Add missing '!'.
18849 2002-02-09 Kazu Hirata <kazu@hxi.com>
18851 * config/h8300/h8300.h: Fix formatting. Remove commented-out
18854 2002-02-09 Kazu Hirata <kazu@hxi.com>
18856 * config/h8300/h8300.md (length): Correct the distance valid
18857 for the short branch.
18859 2002-02-09 Kazu Hirata <kazu@hxi.com>
18861 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18863 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18865 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18866 registers in SImode.
18867 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18870 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18873 Contribute sh64-elf.
18874 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18875 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18876 (sh_cannot_modify_jumps_p): New function.
18877 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
18878 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18879 (sh_ms_bitfield_layout_p): New function.
18880 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
18881 Zack Weinberg <zack@codesourcery.com>
18882 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18883 expand_simple_binop instead of expand_binop.
18884 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
18885 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18886 use of .quad and .uaquad.
18887 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18888 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18889 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18890 * config/sh/sh.md (movdi_const, movdi_const_32bit,
18891 movdi_const_16bit): Make sure all CONSTs have modes.
18892 (sym2PIC): Ditto, but by adjusting all callers.
18893 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18894 if the prologue calls the SHmedia argument decoder or register
18896 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18897 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18898 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18899 (sh_expand_epilogue): Don't emit USE of return target register.
18900 (prepare_move_operands): Legitimize DImode PIC addresses.
18901 (sh_media_register_for_return): Skip tr0, used to initialize the
18903 (sh_expand_prologue): Remove explicit USE of return register.
18904 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
18905 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
18906 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18907 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18908 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18909 EXTRA_CONSTRAINT_T.
18910 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18911 (MOVI_SHORI_BASE_OPERAND_P): New.
18912 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18913 (EXTRA_CONSTRAINT_T): Define in terms of them.
18914 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18915 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18916 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18917 alternatives supporting TARGET_REGS.
18918 (UNSPEC_GOTPLT): New constant.
18919 (movdi split): Move incrementing of LABEL_NUSES...
18920 (movdi_const, movdi_const_32bit): Here. Use
18921 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18922 (movdi_const_16bit): New.
18923 (call, call_value) [flag_pic]: Use GOTPLT.
18924 (call_pop, call_value_pop): New expands.
18925 (call_pop_compact, call_pop_rettramp): New insns.
18926 (call_value_pop_compact, call_value_pop_rettramp): New insns.
18927 (sibcall) [flag_pic]: Use GOT.
18928 (builtint_setjmp_receiver): Remove bogus, unused expand.
18929 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18930 (*pt, *ptb, ptrel): New insns.
18931 (sym2GOT): Handle DImode GOT.
18932 (sym2GOTPLT, symGOTPLT2reg): New expands.
18933 (sym2PIC): New expand.
18934 (shcompact_return_tramp): Use GOTPLT to return trampoline.
18935 (shcompact_return_tramp_i): Use return register explicitly.
18936 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18937 disable flag_reorder_blocks.
18938 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
18939 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18940 clobbers, for clarity.
18941 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18942 restoring of r0 in macl as MAYBE_DEAD.
18943 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
18944 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18945 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18946 alter_subreg all over.
18947 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18948 reload, instead of emitting instructions that would require
18950 (casesi_load_media): Add missing modes.
18951 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
18952 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18953 as used if the argument decoder is called.
18954 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18955 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18956 Pmode, then extend it to DImode if necessary.
18957 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18958 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18959 constants in FPU-enabled SHmedia, let them be loaded from memory.
18960 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18961 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18962 Adjust whitespace in assembly output templates.
18963 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18964 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18965 mode of if_then_else.
18966 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
18967 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18969 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
18970 Joern Rennecke <amylaar@redhat.com>
18971 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18972 (SUBTARGET_CPP_PTR_SPEC): New.
18973 (SUBTARGET_CPP_SPEC): Remove.
18974 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18975 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18976 Fix typo in previous checkin.
18977 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
18978 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18979 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
18980 Alexandre Oliva <aoliva@redhat.com>
18981 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18982 what single FP register can hold for SHmedia target.
18983 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18984 Alexandre Oliva <aoliva@redhat.com>
18985 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18986 Do not split into SUBREG.
18987 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
18988 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18989 and added new functions as specified in SH5 ABI r9.
18990 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
18991 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18993 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
18994 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18995 gen_consttable_4 and gen_consttable_8. Emit multiple labels
18996 and consttable_window_ends.
18997 2001-06-03 Graham Stott <grahams@redhat,com>
18998 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18999 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
19000 * config/sh/sh.c (print_operand): Handle floating-point pair,
19001 vector and matrix registers.
19002 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
19003 vector modes into account.
19004 * config/sh/sh.md (movv2sf): Split move between registers into
19006 (movv4sf, movv16sf): Introduce insns that get split only after
19008 * config/sh/shmedia.h: Fix Copyright dates.
19009 * config/sh/ushmedia.h: Likewise. Move loop counter
19010 declarations into conditionals that uses them.
19011 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
19013 * config/sh/sshmedia.h: Fix Copyright dates.
19014 (sh_media_PUTCFG): Fix constraints.
19015 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
19016 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
19017 ptrmemfunc_vbit_in_delta for SH5.
19018 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
19019 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
19020 * invoke.texi: Likewise.
19021 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
19022 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
19023 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
19024 GCC_pop_shmedia_regs_nofpu): New global symbols.
19025 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
19026 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
19027 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
19028 compact function with nonlocal labels.
19029 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
19030 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
19031 (initial_elimination_offset): Account for their stack space.
19032 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
19033 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
19034 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
19035 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
19036 least one of the operands to be a register.
19037 (movv2sf): Likewise. Renamed to movv2sf_i.
19038 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
19039 prepare_move_operands() before emitting SHmedia insns.
19040 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
19041 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
19042 Don't save nor initialize r12. Don't mis-align the stack.
19043 Pad the code with a nop.
19044 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
19046 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
19047 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
19048 [__SHMEDIA__]: Implement.
19049 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
19050 * config/sh/sh.md: Set latency of `pt' closer to reality.
19051 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
19052 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
19053 Set move, load and store type attributes.
19054 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
19055 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
19057 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
19058 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
19059 * config/sh/sh.c (sh_media_register_for_return): New function.
19060 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
19061 branch-target register.
19062 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
19063 * config/sh/sh.md (return_media_i): Use any call-clobbered
19064 branch-target register.
19065 (return_media): If r18 wasn't copied in the prologue, copy it
19067 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
19068 Clear class FP0_REGS.
19069 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
19071 2001-03-08 DJ Delorie <dj@redhat.com>
19072 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
19073 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
19074 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
19075 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
19076 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
19077 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
19078 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
19079 return value correctly for call_cookie.
19080 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
19081 * config/sh/crt1.asm (start): Modified so as to call
19082 ___setup_argv_and_call_main.
19083 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
19084 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
19086 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
19087 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
19088 (STRIP_NAME_ENCODING): Use it.
19089 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
19090 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
19091 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
19092 prepare_scc_operands().
19093 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
19094 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
19095 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
19096 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
19097 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
19098 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
19099 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
19100 used in shcompact_incoming_args.
19101 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
19103 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
19105 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
19106 Adjust accordingly.
19107 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19108 Simplify. Adjust. Add sanity check.
19109 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
19111 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
19113 (udivsi3, divsi3): Use them.
19114 (force_mode_for_call): New insn.
19115 (call, call_value, sibcall_value): Emit it before SHcompact
19117 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
19118 * config/sh/sh.md (call, call_value, sibcall): Make sure the
19119 call cookie is non-NULL before taking its value.
19120 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
19121 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
19122 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
19123 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
19125 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
19126 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
19127 temporary for stack adjusts. Use MACL and MACH to pass
19128 arguments to shcompact_incoming_args.
19129 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
19131 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
19132 (nested_trampoline): Load static chain address into r1.
19133 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
19134 2001-01-07 Alexandre Oliva <aoliva@redhat.com
19135 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
19136 fp_arith_reg_operand().
19137 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
19138 * config/sh/sh.md (casesi): Sign-extend the first two operands,
19139 and use signed compares for them.
19140 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
19141 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
19142 ones properly aligned.
19143 (find_barrier): Account for extra alignment needed for 8-byte wide
19145 (machine_dependent_reorg): Require a label for the second 4-byte
19146 constant after an 8-byte one.
19147 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
19149 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19150 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
19151 last_float when switching float modes.
19152 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
19153 auto-increment for general-purpose registers.
19154 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
19156 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
19158 * config/sh/sh.c (sh_builtin_saveregs): Support using all
19159 registers for varargs.
19160 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
19161 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
19162 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
19163 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
19164 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
19165 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
19166 call_cookie accordingly.
19167 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
19168 (SHCOMPACT_BYREF): Likewise.
19169 (SHCOMPACT_FORCE_ON_STACK): New macro.
19170 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
19171 (sh_builtin_saveregs): Likewise.
19172 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19173 shcompact_incoming_args): Use new shift values. Support
19174 sequences of consecutive and non-consecutive pushes/pops.
19175 * config/sh/sh.md (return): Don't explicitly use PR_REG.
19176 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
19177 * config/sh/sh.h (TEXT_SECTION): Define.
19178 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
19179 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19180 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
19181 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
19182 return values on FPU-enabled SHmedia.
19183 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
19184 FPU-enabled SHmedia.
19185 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
19186 value is returned in a non-FP reg and is not returned by
19188 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
19190 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
19191 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
19192 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
19193 quad-aligned to be passed by callee-copy reference.
19194 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
19195 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
19196 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
19197 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
19198 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
19199 copying low-numbered FP regs to r7 and r8.
19200 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
19201 FP regs to general-purpose regs only if the copy was passed on the
19203 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
19204 copying FP reg to r9.
19205 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
19206 copy FP regs to general-purpose regs only in outgoing calls.
19207 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
19208 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
19210 * config/sh/sh.h (struct sh_args): Document all fields.
19211 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
19212 passed partially on the stack should not consider making
19214 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
19215 stack_regs only for incoming calls. When passing FP args,
19216 make sure there are FP regs available before modifying
19218 (SHCOMPACT_BYREF): Pass double args in general-purpose
19219 registers by reference.
19220 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
19221 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
19222 attempt to generate sibcalls if the caller got any arguments
19224 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
19225 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
19226 to 8-byte boundaries.
19227 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
19228 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
19229 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
19230 stored in the stack.
19231 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
19232 for the offsets to have the ISA bit set.
19233 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
19234 invocation. Use beq instead of bgt to mark end of sequence of
19236 (shcompact_incoming_args): Fix store of r2. Use beq instead of
19237 bgt to mark end of sequence of stores.
19238 * config/sh/sh.c (arith_operand): Don't check whether
19239 CONST_OK_FOR_J for now.
19240 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
19241 instead of long for conversion.
19242 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
19243 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
19244 before passing it to fprintf.
19245 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
19246 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
19247 Call set_fpscr before reading/writing SR.
19248 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
19250 * config/sh/lib1funcs.asm: Add `.align 2' directives before
19252 (FMOVD_WORKS): Define on SH5 with FPU.
19253 (set_fpscr): Define on SH5. Remove separate _fpscr_values
19255 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
19257 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
19258 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
19260 (ia_main_table): Ditto.
19261 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
19262 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19263 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
19264 the definitions from sh.h.
19265 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
19267 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
19268 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
19269 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19270 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
19271 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
19272 Increment LABEL_NUSES.
19274 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
19276 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
19278 * config/sh/elf.h (SIZE_TYPE): Likewise.
19279 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19280 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19281 shcompact_incoming_args): Load switch table addresses using
19283 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19284 (NO_BUILTIN_SIZE_TYPE): Define.
19285 (SIZE_TYPE): Don't define.
19286 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19287 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
19288 definition of __SH5__=32 for -m5-compact-nofpu.
19289 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
19291 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
19292 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
19293 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
19294 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
19295 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
19296 (INSN_LENGTH_ALIGNMENT): Likewise.
19297 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19298 * config/sh/sh.md (call, call_value, sibcall): Simplify
19299 copying of non-branch-target register.
19300 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19301 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
19302 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
19303 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19304 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
19305 floating-point values as structs.
19306 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
19307 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
19308 general-purpose register.
19309 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
19310 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19311 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
19312 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
19313 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
19314 (ENCODE_SECTION_INFO): Enclose variables and constants in
19316 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
19317 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
19318 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
19319 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
19320 only for LABEL_REFs. For SYMBOL_REFs, prepend
19321 SH_DATALABEL_ENCODING to the symbol name.
19322 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
19324 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19325 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
19327 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
19328 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
19329 (DATALABEL_REF_P): Don't require CONST.
19330 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
19332 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
19333 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
19335 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19336 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
19337 Use shallow_copy_rtx and PUT_MODE to change the mode of
19338 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
19339 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
19340 on SHmedia using GENERAL_REGs.
19341 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19342 bltu_media_i): Fix reversion of conditions.
19343 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19344 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
19345 * config/sh/sh.c (output_far_jump): Save r13 in macl.
19346 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
19347 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
19348 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
19349 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
19350 (GCC_nested_trampoline): Likewise.
19351 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
19352 * config/sh/sh.c (gen_datalabel_ref): Define.
19353 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
19354 (INITIALIZE_TRAMPOLINE): Likewise.
19355 (TRAMPOLINE_ADJUST_ADDRESS): Define.
19356 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
19357 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
19358 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
19359 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
19360 (ic_invalidate): Adjust for SH5.
19361 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
19362 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
19363 _nested_trampoline.
19364 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
19365 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
19366 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
19367 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19368 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
19369 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
19370 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19371 * config/sh/sh.c (target_reg_operand): Match only target-branch
19372 registers and pseudos that aren't virtual registers.
19373 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19374 Copy operands that don't match target_reg_operand to pseudos.
19375 (call_media, call_value_media, sibcall_media): Use
19376 target_reg_operand instead of target_operand.
19377 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
19378 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
19379 * config/sh/sh.c (target_reg_operand): Match hardware registers
19380 other than branch-target registers.
19381 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
19382 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
19383 (fpscr_values) [SH5 == 32]: Define.
19384 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
19385 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19386 Handle function addresses coming in SUBREGs.
19387 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
19388 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19389 shcompact_return_trampoline): Use datalabel where appropriate.
19390 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
19391 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
19392 general-purpose register to copy one branch-target register to
19394 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19395 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
19396 SYMBOL_REFs with VOIDmode.
19397 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19398 bltu_media_i): New insns.
19399 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19400 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
19401 (INIT_CUMULATIVE_ARGS): Likewise.
19402 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
19403 * machmode.def (V16SFmode): New mode.
19404 * c-common.c (type_for_mode): Support V2SF and V16SF.
19405 * tree.c (build_common_tree_nodes_2): Likewise.
19406 * tree.h (tree_index): Likewise.
19407 * calls.c (emit_call_1): Take args_so_far. Adjust all
19408 callers. Introduce CALL_POPS_ARGS.
19409 * tm.texi (CALL_POPS_ARGS): Document.
19410 * config/sh/crt1.asm: Implement in SHmedia mode.
19411 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
19412 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
19413 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
19414 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
19415 Implement divsi and udivsi in SHmedia mode. Introduce
19416 SHcompact trampolines.
19417 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
19419 (regno_reg_class): Rewrite.
19420 (fp_reg_names): Remove.
19421 (sh_register_names, sh_additional_register_names): New.
19422 (print_operand): Added `u'. Support SUBREGs in addresses.
19423 Add parentheses around shifted CONSTs.
19424 (output_file_start): Output .mode and .abi directives.
19425 (shiftcosts, addsubcosts, multcosts): Adjust.
19426 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
19427 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
19428 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
19429 bytes, not registers. Take into account the need for the
19430 SHcompact incoming args trampoline. Adjust all callers.
19431 (sh_expand_prologue): Take stack_regs into account. Call
19432 incoming args trampoline. Keep stack aligned as per SH5 ABI.
19433 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
19434 stack aligned as per SH5 ABI.
19435 (sh_builtin_saveregs): Support SH5 ABI.
19436 (sh_build_va_list, sh_va_start): Likewise.
19437 (initial_elimination_offset): Take alignment into account.
19438 Compute location of PR according to the SH5 stack frame.
19439 (arith_reg_operand): Reject branch-target registers.
19440 (shmedia_6bit_operand): New.
19441 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
19442 (target_reg_operand): Match DImode only. Accept SUBREGs.
19443 (target_operand): New.
19444 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
19445 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
19446 SIBCALL_REGS for SHmedia.
19447 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
19448 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
19449 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
19450 (TARGET_SWITCHES): New SH5 flags.
19451 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
19452 VALID_REGISTER_P to disable unsupported registers.
19453 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
19454 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
19455 (FUNCTION_ARG_PADDING): Define.
19456 (FASTEST_ALIGNMENT): Adjust.
19457 (SH_REGISTER_NAMES_INITIALIZER): New.
19458 (sh_register_names): Declare.
19459 (DEBUG_REGISTER_NAMES): Define.
19460 (REGISTER_NAMES): Define based on sh_register_names.
19461 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
19462 (sh_additional_register_names): Declare.
19463 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
19464 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
19465 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
19466 (REGISTER_NATURAL_MODE): Define.
19467 (FIRST_PSEUDO_REGISTER): Adjust.
19468 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
19469 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
19470 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
19471 (VECTOR_MODE_SUPPORTED_P): Define.
19472 (REG_CLASS_CONTENTS): Adjust.
19473 (SMALL_REGISTER_CLASSES): Adjust.
19474 (REG_ALLOC_ORDER): Adjust.
19475 (INDEX_REG_CLASS): Adjust.
19476 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
19477 (CONST_OK_FOR_LETTER_P): Adjust.
19478 (PREFERRED_RELOAD_CLASS): Adjust.
19479 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
19480 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
19481 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
19482 (FIRST_FP_PARM_REG): Adjust.
19483 (CALL_POPS_ARGS): Define.
19484 (FUNCTION_ARG_REGNO_P): Adjust.
19485 (struct sh_args): New fields.
19486 (GET_SH_ARG_CLASS): Adjust.
19487 (INIT_CUMULATIVE_ARGS): Adjust.
19488 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
19489 (FUNCTION_ARG_ADVANCE): Adjust.
19490 (FUNCTION_ARG): Adjust.
19491 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
19492 (FUNCTION_ARG_CALLEE_COPIES): Define.
19493 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
19494 (STRICT_ARGUMENT_NAMING): Define.
19495 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
19496 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
19497 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
19498 (SETUP_INCOMING_VARARGS): Adjust.
19499 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
19500 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
19501 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
19502 (SUBREG_OK_FOR_INDEX_P): Adjust.
19503 (EXTRA_CONSTRAINT_S): Update.
19504 (EXTRA_CONSTRAINT_T): New.
19505 (EXTRA_CONSTRAINT): Adjust.
19506 (GO_IF_LEGITIMATE_INDEX): Adjust.
19507 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
19508 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
19509 (MOVE_MAX): Adjust.
19510 (MAX_MOVE_MAX): Define.
19512 (CONST_COSTS): Adjust.
19513 (REGISTER_MOVE_COST): Adjust.
19514 (BRANCH_COST): Adjust.
19515 (TEXT_SECTION_ASM_OP): Adjust.
19516 (DBX_REGISTER_NUMBER): Adjust.
19517 (ASM_OUTPUT_DOUBLE_INT): New.
19518 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
19519 (PREDICATE_CODES): Adjust.
19520 (PROMOTE_MODE): Adjust.
19521 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
19522 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
19523 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
19524 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
19525 (DR0_REG, DR2_REG, DR4_REG): Renumber.
19526 (TR0_REG, TR1_REG, TR2_REG): New.
19527 (XD0_REG): Renumber.
19528 (UNSPEC_COMPACT_ARGS): New.
19529 (type): Added pt and ptabs.
19530 (length): Default to 4 on SHmedia. Default pt length to 12
19531 and 20 on SHmedia32 and SHmedia64, respectively.
19532 (pt): New function unit.
19533 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
19534 Add whitespace between operands of SHmedia instructions.
19536 (adddi3_media, addsi3_media): Adjust constraints.
19537 (subsi3) [SHmedia]: Force operand 1 into a register.
19538 (udivsi3_i1_media, udivsi3_i4_media): New.
19539 (udivsi3): Support SHmedia.
19540 (divsi3_i1_media, divsi3_i4_media): New.
19541 (divsi3): Support SHmedia.
19542 (anddi3, iordi3, xordi3): Adjust constraints.
19543 (zero_extendhidi2, zero_extendqidi2): New.
19544 (extendsidi2, extendhidi2, extendqidi2): New.
19545 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
19546 (pop_e, pop_fpul, pop_4): Likewise.
19547 (movsi_media): Support FP and BT registers.
19548 (movsi_media_nofpu): New. Adjust splits to DImode.
19549 (lduw, ldub): Renamed to zero_extend* above.
19550 (movqi_media): Fix typo.
19551 (movdi_media): Support FP and BT registers.
19552 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
19553 (movdi_const_32bit): New.
19554 (shori_media): Require immediate operand. Use `u' for output.
19555 (movdf_media, movsf_media): Simplified.
19556 (movdf_media_nofpu, movsf_media_nofpu): New.
19557 (movdf, movsf): Adjust
19558 (movv2sf, movv2sf, movv16sf): New.
19559 (beq_media, beq_media_i): Adjust constraints. Don't use
19560 scratch BT register.
19561 (bne_media, bne_media_i): Likewise.
19562 (bgt_media, bgt_media_i): Likewise.
19563 (bge_media, bge_media_i): Likewise.
19564 (bgtu_media, bgtu_media_i): Likewise.
19565 (bgeu_media, bgeu_media_i): Likewise.
19566 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
19567 bunordered): Emit jump insn. Force operands to registers when
19569 (jump_media, jump): Simplify.
19570 (call_compact, call_compact_rettramp): New.
19571 (call_value_compact, call_value_compact_rettramp): New.
19572 (call_media, call_value_media): Simplify.
19573 (sibcall_compact, sibcall_media): New.
19574 (call, call_value): Adjust for SHmedia and SHcompact.
19575 (sibcall, sibcall_value, untyped_call): Likewise.
19576 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
19577 (indirect_jump): Adjust for SHmedia.
19578 (casesi_jump_media): New.
19579 (nop): Re-enable for SHmedia.
19580 (call_site): Restrict to SH1.
19581 (casesi): Adjust for SHmedia.
19582 (casesi_shift_media, casesi_load_media): New.
19583 (return): Explicitly use PR register. Call return trampoline
19585 (return_i): Explicitly use PR register.
19586 (shcompact_return_tramp, shcompact_return_tramp_i): New.
19587 (return_media): Adjust.
19588 (shcompact_incoming_args): New.
19589 (epilogue): Adjust.
19590 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19591 (movstrsi): Disable on SH5.
19592 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19593 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19594 (subsf3, subsf3_media): Likewise.
19595 (mulsf3, mulsf3_media, mac_media): Likewise.
19596 (divsf3, divsf3_media): Likewise.
19597 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
19598 (floatsisf2, fux_truncsfsi2): Likewise.
19599 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
19601 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19602 (cmpunsf_media, cmpsf): Likewise.
19603 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19604 (abssf2, abssf2_media): Likewise.
19605 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19606 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19607 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
19608 (floatsidf2, fix_truncdfsi2): Likewise.
19609 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
19611 (cmpeqdf_media, cmpgtdf_media): Likewise.
19612 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19613 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19614 (absdf2, absdf2_media): Likewise.
19615 (extendsfdf2, extendsfdf2_media): Likewise.
19616 (truncsfdf2, truncsfdf2_media): Likewise.
19617 * config/sh/sh64.h: New file.
19618 * config/sh/t-sh64: New file.
19619 * config/sh/shmedia.h: New file.
19620 * config/sh/ushmedia.h: New file.
19621 * config/sh/sshmedia.h: New file.
19622 * configure.in: Added sh64-*-elf.
19623 * configure: Rebuilt.
19624 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
19625 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19626 (reg_class_from_letter): Use `b' for TARGET_REGS.
19627 (print_operand): Support `%M', `%m', `AND' and
19628 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
19629 (andcosts): Adjust for SHmedia.
19630 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19632 (target_reg_operand): New function.
19633 * config/sh/sh-protos.h (target_reg_operand): Declare.
19634 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19635 FP registers on SH5.
19636 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19638 (TARGET_REGISTER_P): New macro.
19639 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19640 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19641 (EXTRA_CONSTRAINT_S): New macro.
19642 (EXTRA_CONSTRAINT): Adjust.
19643 (FLOAT_TYPE_SIZE): Define to 32.
19644 (Pmode): DImode on SHmedia.
19645 (CONST_COSTS): Adjust for SHmedia literals.
19646 (PREDICATE_CODES): Added target_reg_operand.
19647 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19648 * config/sh/sh.md: Remove all attrs from SHmedia insns.
19649 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19650 (cmpdi): Accept SHmedia.
19651 (movdicc_false, movdicc_true): New insns.
19652 (movdicc): New expand.
19653 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19655 (addsi3_media): Match `S' constraint.
19656 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19657 (negdi2): Expand for SHmedia.
19658 (one_cmpldi2): New expand.
19659 (zero_extendsidi2): Change from expand to insn.
19660 (extendsidi2): Add constraints.
19661 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
19662 LD/ST address. Fix SI immediate loading split.
19663 (movhi_media, movqi_media, lduw, ldub): New insns.
19664 (movhi, movqi): Accept SHmedia.
19665 (shori_media, movdi_media): Relax input constraints. Split
19666 symbolic constants.
19667 (movdf_media, movsf_media): New insn. New split to movdi.
19668 (movdf, movsf): Match on SHmedia.
19669 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19670 bgeu_media): New insns and splits. New insns with `_i' suffix.
19671 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19672 (bunordered): New expand.
19673 (jump_compact): Renamed from `jump'.
19674 (jump_media): New insn.
19675 (jump): New expand.
19676 (call_media, call_value_media): New insns.
19677 (call, call_value): Adjust.
19678 (indirect_jump_compact): Renamed from `indirect_jump'.
19679 (indirect_jump_media): New insn.
19680 (indirect_jump): New expand.
19681 (untyped_call, return): Accept SHmedia.
19682 (return_media): New insn.
19683 (prologue, epilogue, blockage): Accept SHmedia.
19684 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19685 (sunordered): New expand.
19686 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19687 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19688 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19689 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19690 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19691 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19692 abssf2_media): New insns.
19693 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19694 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19695 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19696 floatdidf2, floatsidf2_media, fix_truncdfdi2,
19697 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19698 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19699 absdf2_media): New insns.
19700 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19701 (extendsfdf2_media, truncdfsf2_media): New insns.
19702 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
19703 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19704 * config/sh/sh.h (CONST_OK_FOR_J): Document.
19705 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19706 * config/sh/sh.md (adddi3): New expand.
19707 (adddi3_media, adddi3z_media): New insns.
19708 (adddi3_compact): Renamed from adddi3.
19709 (addsi3_media): Use add.l r63 to add constant zero.
19710 (subdi3): New expand.
19711 (subdi3_media): New insn.
19712 (subdi3_compact): Renamed from subdi3.
19713 (mulsidi3): New expand.
19714 (mulsidi3_media): New insn.
19715 (mulsidi3_compact): Renamed from mulsidi3.
19716 (umulsidi3): New expand.
19717 (umulsidi3_media): New insn.
19718 (umulsidi3_compact): Renamed from umulsidi3.
19719 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19720 (ashlsi3, ashrsi3, lshrsi3): Use them.
19721 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19722 (ashldi3, ashrdi3, lshrdi3): Use them.
19723 (zero_extendsidi2): New expand.
19724 (extendsidi2): New insn.
19725 (movsi_media): New insn. Split to movdi to load constants.
19726 (movsi): Enable for shmedia.
19727 (movdi_media): New insn. Use shori_media to load wide constants.
19728 (short_media): New insn.
19729 (movdi): Enable for shmedia.
19730 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
19731 * config/sh/sh.h (CPP_SPEC): Added `m5'.
19732 (SUBTARGET_CPP_SPEC): Added `!m5'.
19733 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19734 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
19735 to all other SH variants.
19736 (TARGET_DEFAULT): Set to SH1_BIT.
19737 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19738 (BITS_PER_WORD): Raise to 64 on shmedia.
19739 (MAX_BITS_PER_WORD): Change to 64.
19740 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19741 (INT_TYPE_SIZE): Keep as 32.
19742 (UNITS_PER_WORD): Raise to 8 on shmedia.
19743 (MIN_UNITS_PER_WORD): Keep as 4.
19744 (POINTER_SIZE): Raise to 64 on shmedia.
19745 (CONST_OK_FOR_J): New macro.
19746 (CONST_OK_FOR_LETTER_P): Use it.
19747 (processor_type): Add PROCESSOR_SH5.
19748 * config/sh/sh.md: Conditionalize all expands, insns and
19749 splits to TARGET_SH1.
19751 (addsi3_compact): Renamed from...
19752 (addsi3): Now an expand.
19753 (addsi3_media, subsi3_media): New insns.
19754 (subsi3): Don't negate constants with SHmedia.
19756 * hooks.c: New file.
19757 * hooks.h: New file.
19758 * Makefile.in (HOOKS_H): New.
19759 (TARGET_DEF_H): Added $(HOOKS_H).
19760 (OBJS): Added hooks.o.
19761 (cfgcleanup.o, bb-reorder.o): Added target.h.
19762 (hooks.o): Added dependencies.
19763 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19764 (TARGET_INITIALIZER): this.
19765 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19766 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19767 * bb-reorder.c: Include target.h.
19768 (reorder_basic_blocks): Skip if cannot modify jumps.
19769 * cfgcleanup.c: Include target.h.
19770 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19772 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19774 * config/mips/mips.md (casesi_internal, casesi_internal_di):
19775 Protect jump delay slot instructions with .set noreorder and
19778 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19780 * config/mips/mips.md (casesi_internal_di): Calculate
19781 the index into the target offset table correctly.
19783 2002-02-08 Richard Henderson <rth@redhat.com>
19785 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19786 * final.c (output_addr_const): Accept and discard SUBREG.
19787 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19788 mark them unknown instead.
19789 (simplify_subtraction): Handle RTX_UNKNOWN.
19790 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19792 2002-02-08 David Edelsohn <edelsohn@gnu.org>
19794 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19796 2002-02-08 Richard Henderson <rth@redhat.com>
19798 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19800 2002-02-08 Andreas Jaeger <aj@suse.de>
19802 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19803 * config/i386/t-linux64: New file.
19805 2002-02-08 Jakub Jelinek <jakub@redhat.com>
19807 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19808 * c-parse.in (compstmt): Clear last_expr_type.
19810 2002-02-07 Richard Henderson <rth@redhat.com>
19812 * loop.c (strength_reduce): Sink final_value when not
19815 2002-02-07 David O'Brien <obrien@FreeBSD.org>
19817 * config/sparc/freebsd.h: Fix mismatched spec {.
19819 2002-02-07 Richard Henderson <rth@redhat.com>
19821 * cfgrtl.c: Include recog.h and insn-config.h.
19822 (keep_with_call_p): Fix general_operand invocation.
19823 * Makefile.in (cfgrtl.o): Update dependencies.
19825 2002-02-07 Kazu Hirata <kazu@hxi.com>
19827 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19828 comment. Accept HImode only if TARGET_H8300.
19830 2002-02-07 Eric Christopher <echristo@redhat.com>
19832 * config/mips/crtn.asm: Cleanup #ifdefs.
19834 2002-02-07 Eric Christopher <echristo@redhat.com>
19836 * config/mips/crti.asm: Add changes for mips16. mips16 uses
19837 register 7 as RA instead of $31.
19838 * config/mips/crtn.asm: Ditto.
19839 * config/mips/mips.c (mips_move_2words): Add case for
19840 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19841 (compute_frame_size): Fix typo.
19842 (save_restore_insns): Ditto. Make documentation about using
19843 register $7 as return register more precise.
19844 (mips_expand_epilogue): Fix comment. Add code to work around not
19845 being able to add to the stack pointer directly.
19846 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19847 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19850 2002-02-07 Tom Rix <trix@redhat.com>
19852 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
19853 immediates in ldu and stdu DS opcode field.
19854 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19855 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19856 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19858 2002-02-07 Jeff Sturm <jsturm@one-point.com>
19860 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19861 offset for stack bias.
19863 2002-02-07 H.J. Lu <hjl@gnu.org>
19865 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19867 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
19869 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19871 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
19873 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19874 * i386.c (x86_order_regs_for_local_alloc): New global function.
19875 * i386.h (REG_ALLOC_ORDER): CLeanup.
19876 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19878 2002-02-07 Richard Henderson <rth@redhat.com>
19880 PR optimization/2463
19881 * alias.c (find_base_value): Recall base values for fixed hard regs.
19882 * loop.c (loop_regs_update): Don't use single_set on non-insns.
19884 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
19886 * config/mips/mips.md (define_delay) [mips16]: Adjust required
19889 2002-02-06 Richard Henderson <rth@redhat.com>
19892 * stmt.c (resolve_operand_name_1): Take more care with mixed
19893 named and unnamed operands.
19895 2002-02-06 Janis Johnson <janis187@us.ibm.com>
19896 Jan Hubicka <jh@suse.cz>
19898 * loop.c (remove_constant_addition): Avoid clobbering a shared
19901 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19903 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19904 * config/s390/t-linux64: New file.
19905 * config/s390/libgcc-glibc.ver: New file.
19907 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19909 * config/s390/linux64.h: Delete file.
19910 * config/s390/s390x.h: New file.
19911 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19912 as target header file.
19913 * config/s390/linux.h (TARGET_VERSION): Define depending on
19914 DEFAULT_TARGET_64BIT.
19915 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19916 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19917 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19918 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19919 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19920 (EXTRA_SPEC): New define.
19921 * config/s390/s390.h (TARGET_VERSION): Define depending on
19922 DEFAULT_TARGET_64BIT.
19923 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19925 2002-02-06 Jason Merrill <jason@redhat.com>
19927 * c-decl.c (finish_function): Warn about a non-void function with
19928 no return statement and no abnormal exit.
19929 (current_function_returns_abnormally): New variable.
19930 (start_function): Clear it.
19931 (struct c_language_function): Add returns_abnormally.
19932 (push_c_function_context): Save it.
19933 (pop_c_function_context): Restore it.
19934 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19935 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19936 an explicit return type.
19937 * c-tree.h: Declare current_function_returns_abnormally.
19938 (C_FUNCTION_IMPLICIT_INT): New macro.
19939 * c-typeck.c (build_function_call): Set it.
19940 (c_expand_return): Set current_function_returns_value even if the
19941 value is erroneous.
19943 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19946 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19947 unsafe for reevaluation.
19949 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19952 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19953 EXPR_STMT, but COMPOUND_STMT, recurse into it.
19955 2002-02-06 Richard Henderson <rth@redhat.com>
19957 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19958 be a general_operand. Dest for function value must be a pseudo.
19960 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
19962 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19963 as SYMBOL_REFs from the constant pool.
19965 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
19967 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19968 passed by invisible reference.
19970 2002-02-05 Richard Henderson <rth@redhat.com>
19972 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19974 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
19976 Implement using "base addresses" in insn operands as default.
19977 * config/mmix/mmix.c (mmix_conditional_register_usage): if
19978 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19979 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19980 used to read the rtx value.
19981 (mmix_target_asm_function_epilogue): Fix spacing.
19982 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19983 (mmix_legitimate_address): Ditto.
19984 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19985 should be loaded with a GETA insn. Don't allocate needless extra
19986 char for nul termination and fix misleading comment.
19987 (mmix_print_operand_address): Handle constants if
19988 TARGET_BASE_ADDRESSES.
19989 (mmix_output_register_setting): Use base addressing if
19990 TARGET_BASE_ADDRESSES and the number of insns is 3.
19991 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19992 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19993 to use R as constraint, add LDA to match s.
19994 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19995 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19996 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19997 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19998 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19999 order with other fixed registers.
20000 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
20001 other parameter/call-clobbered registers.
20002 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
20003 -mbase-addresses, -mno-base-addresses.
20004 (MMIX Options): Ditto.
20006 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20008 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
20010 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
20012 * config/rs6000/altivec.h: Change elem to _S_elem.
20014 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20016 * config/netbsd.h (WCHAR_TYPE): Define.
20017 (WCHAR_TYPE_SIZE): Ditto.
20018 (WINT_TYPE): Ditto.
20019 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
20020 (WCHAR_UNSIGNED): Ditto.
20021 (WCHAR_TYPE_SIZE): Ditto.
20022 (WINT_TYPE): Ditto.
20023 * config/arm/netbsd.h: Likewise.
20024 * config/i386/netbsd-elf.h: Likewise.
20025 * config/i386/netbsd.h: Likewise.
20026 * config/m68k/netbsd-elf.h: Likewise.
20027 * config/m68k/netbsd.h: Likewise.
20028 * config/ns32k/netbsd.h: Likewise.
20029 * config/sparc/netbsd.h: Likewise.
20030 * config/vax/netbsd.: Likewise.
20032 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
20034 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
20035 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
20036 (TARGET_INITIALIZER): this.
20037 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
20038 (BITFIELD_NBYTES_LIMITED): Markup fix.
20039 * tree.h (default_ms_bitfield_layout_p): Declare.
20040 (record_layout_info): Added prev_field.
20041 * tree.c (default_ms_bitfield_layout_p): New fn.
20042 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
20043 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
20044 * stor-layout.c: Include target.h.
20045 (start_record_layout): Initialize prev_field.
20046 (place_field): Handle MS bit-field layout, and disregard
20047 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
20048 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
20049 * Makefile.in (stor-layout.o): Adjust dependencies.
20051 2002-02-05 Jason Merrill <jason@redhat.com>
20053 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
20055 2002-02-05 Andreas Jaeger <aj@suse.de>
20057 * crtstuff.c: Fix comments.
20059 2002-02-05 Richard Henderson <rth@redhat.com>
20062 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
20063 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
20066 * config/mips/mips.c (function_arg): Handle TImode.
20067 (function_arg_advance): Likewise.
20069 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20071 * config/rs6000/altivec.h (vec_step_help): Rename to
20074 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20076 * config/rs6000/altivec.h: Fix typos.
20078 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20080 * config/arm/netbsd.h: Correct a comment.
20082 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20084 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
20085 building void typed builtins.
20087 * config/rs6000/altivec.h (vec_ld*): Fix typos.
20088 (vec_step): Implement for C++.
20090 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20092 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
20094 2002-02-04 Richard Henderson <rth@redhat.com>
20096 * combine.c (nonzero_bits): Re-introduce special case for
20097 sp/fp/ap wrt REGNO_POINTER_ALIGN.
20099 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20101 * doc/extend.texi: Warn about unsupported usage of altivec
20104 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
20105 (altivec_predicate_*): New.
20107 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
20108 Add C++ version of vec_*() functions.
20110 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
20111 (bdesc_2arg): Remove altivec predicates.
20112 (altivec_expand_builtin): Handle predicates.
20113 (altivec_init_builtins): Handle predicates.
20114 (altivec_expand_predicate_builtin): New.
20116 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20118 * pa.c (DO_FRAME_NOTES): Move forward.
20119 (store_reg): Revise handling of frame notes.
20120 (load_reg): Likewise.
20121 (set_reg_plus_d): Likewise.
20122 (hppa_expand_prologue): Likewise.
20123 (hppa_expand_epilogue): Likewise.
20125 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20127 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
20129 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20131 PR c/4475, c++/3780:
20132 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
20133 * c-common.h (SWITCH_TYPE): Define.
20134 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
20135 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
20136 Rename spareness variable to sparseness.
20137 (expand_end_case_type): Renamed from expand_end_case, use orig_type
20138 if non-NULL instead of TREE_TYPE (orig_index).
20139 * tree.h (expand_end_case_type): Renamed from expand_end_case.
20140 (expand_end_case): Define using expand_end_case_type.
20141 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
20142 to expand_end_case_type.
20143 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
20145 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20147 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
20148 (BIGGEST_ALIGNMENT): Change to 128.
20150 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20152 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
20154 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20156 * pa.md (call_internal_reg_64bit): Remove unused variable.
20158 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
20160 * config/arm/arm.h (machine_function): Add uses_anonymous_args
20162 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
20163 * config/arm/arm.c (current_function_anonymous_args): Delete,
20164 replace uses with cfun->machine->uses_anonymous_args.
20165 (arm_reorg): Do not reset uses_anonymous_args.
20167 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
20168 any geenral register.
20170 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
20172 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
20175 2002-02-04 Richard Henderson <rth@redhat.com>
20177 * combine.c (force_to_mode): Remove STACK_BIAS code.
20178 (nonzero_bits): Likewise. Replace sp/fp special case with
20179 REGNO_POINTER_ALIGN.
20181 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
20182 (HARD_FRAME_POINTER_REGNUM): New.
20183 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
20184 (FIXED_REGS, CALL_USED_REGS): Update.
20185 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
20186 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
20187 (HARD_REGNO_NREGS): Update for SFP.
20188 (STACK_POINTER_OFFSET): Include bias here ...
20189 (FIRST_PARM_OFFSET): ... not here.
20190 (STACK_BIAS): Remove.
20191 (INIT_EXPANDERS): New.
20192 (STARTING_FRAME_OFFSET): Do not include bias.
20193 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
20194 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
20195 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
20196 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
20197 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
20198 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
20199 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
20200 (MUST_SAVE_REGISTER): Likewise.
20201 (sparc_flat_function_prologue): Likewise.
20202 (sparc_flat_function_epilogue): Likewise.
20203 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
20204 (sparc_init_modes): SFP is GENERAL_REGS.
20205 (sparc_builtin_saveregs): SFP does not have bias applied.
20207 2002-02-04 Richard Henderson <rth@redhat.com>
20209 * config/alpha/alpha.c (current_function_is_thunk): Don't check
20210 current_function_is_thunk.
20211 (alpha_sa_mask): Distinguish between current_function_is_thunk
20212 called from ASM_OUTPUT_MI_THUNK and not.
20213 (alpha_does_function_need_gp): Thunks always need gp.
20214 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20215 (alpha_output_mi_thunk_osf): New.
20216 * config/alpha/alpha-protos.h: Update.
20217 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
20219 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
20221 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
20222 function types, not when they're taken away.
20224 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
20226 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
20227 CODE_LABEL and jump table when replacing a table jump with a
20230 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20232 * config/s390/s390-protos.h (legitimize_la_operand,
20233 s390_secondary_input_reload_class, s390_plus_operand,
20234 s390_expand_plus_operand): Add prototypes.
20236 config/s390/s390.c (s390_secondary_input_reload_class,
20237 s390_plus_operand, s390_expand_plus_operand): New functions.
20239 (struct s390_address): New member 'pointer'.
20240 (s390_decompose_address): Compute it.
20241 (legitimate_la_operand_p): Use it.
20242 (legitimize_la_operand): New function.
20243 (movti, movdi, movdf splitters): Call it.
20245 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
20246 (PREDICATE_CODES): Add s390_plus_operand.
20248 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
20249 (la_ccclobber): Allow GENERAL_REGS as output operand.
20251 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
20252 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
20253 (*la_64, *la_31, reload_indi, reload_insi): ... these.
20255 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20257 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
20258 register names for regular asm () construct.
20260 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20262 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
20265 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20267 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
20270 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
20272 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
20273 constant pool to be identical by string address and index.
20275 2002-02-04 Anthony Green <green@redhat.com>
20277 * output.h (SECTION_OVERRIDE): Define.
20278 * varasm.c (named_section): Obey SECTION_OVERRIDE.
20280 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20282 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
20283 by existing arm*-*-netbsd* (a.out) target.
20284 (ns32k-*-netbsdelf*): Likewise.
20285 (sparc-*-netbsdelf*): Likewise.
20286 (vax-*-netbsdelf*): Likewise.
20288 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
20290 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
20291 headers and libobjc headers.
20293 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
20295 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
20296 (_mingw.h): Remove duplicate include.
20298 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20300 * config.gcc: Set cpu_type to m68k for 68010, as well.
20301 (m68010-*-netbsdelf*): New...
20302 (m68k*-*-netbsdelf*): ...targets.
20303 * config/m68k/netbsd-elf.h: New file.
20305 2002-02-02 Kazu Hirata <kazu@hxi.com>
20307 * config/h8300/h8300.c (hand_list): Move inside function_arg.
20309 2002-02-02 Kazu Hirata <kazu@hxi.com>
20311 * config/h8300/h8300.c (h8_push_ops): Move inside
20313 (h8_pop_ops): Likewise.
20314 (h8_move_ops): Likewise.
20316 2002-02-02 Kazu Hirata <kazu@hxi.com>
20318 * config/h8300/h8300.c (os_task): Make it static.
20319 (monitor): Likewise.
20320 (pragma_saveall): Likewise.
20322 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
20324 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
20325 constant is a valid sign-extension for Pmode.
20327 2002-02-02 Kazu Hirata <kazu@hxi.com>
20329 * config/h8300/h8300.c: Fix formatting.
20331 2002-02-02 Kazu Hirata <kazu@hxi.com>
20333 * config/h8300/h8300.md: Fix formatting.
20335 2002-02-02 Kazu Hirata <kazu@hxi.com>
20337 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
20338 predicates of operands[1]. Split the patterns for each
20341 2002-02-02 Kazu Hirata <kazu@hxi.com>
20343 * config/h8300/h8300.md (xor patterns): Tighten the predicates
20344 of operands[1] to register_operand.
20346 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20348 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
20349 * cpphash.c (_cpp_init_hashtable): Similarly.
20350 * cppinit.c (cpp_create_reader): Default the signed_char flag.
20351 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
20352 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
20353 (cpp_handle_option): Handle the new options.
20354 * cpplex.c (cpp_interpret_charconst): Use new flag.
20355 * cpplib.h (struct cpp_options): New member signed_char.
20356 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
20357 (cpp_options): Handle -fsigned-char and -funsigned-char.
20358 (static_specs): Remove signed_char_spec.
20359 (do_spec1): Don't handle %c.
20360 * system.h: Poison SIGNED_CHAR_SPEC.
20361 * tradcif.y (yylex): Use flag_signed_char.
20362 * tradcpp.h (flag_signed_char): New.
20363 * tradcpp.c (flag_signed_char): New.
20364 (main): Handle new command-line options.
20365 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
20367 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
20368 * avr/avr.h: Remove old comments.
20369 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
20370 (CC1_SPEC): Pass -fsigned-char if -mic*.
20371 (SIGNED_CHAR_SPEC): Remove.
20373 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
20375 2002-02-01 Eric Christopher <echristo@redhat.com>
20377 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
20378 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
20379 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
20380 (ASM_OUTPUT_REG_POP): Ditto.
20382 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20384 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
20387 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20389 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
20391 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20394 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
20397 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20399 * cfganal.c: Include tm_p.h.
20400 (keep_with_call_p): Fix the test that determines if a register holds
20401 the return value of a call.
20403 2002-02-01 DJ Delorie <dj@redhat.com>
20405 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
20406 we are given conflicting registers, switch to the other one we
20407 had allocated for us.
20408 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
20409 as TImode so we know when the "other" register is available.
20411 2002-02-01 David O'Brien <obrien@FreeBSD.org>
20413 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
20416 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20418 * cfganal.c (keep_with_call_p): New function.
20419 (flow_call_edges_add): Prevent splitting a block between a call and
20420 a single-set instruction that should be kept in the same block.
20422 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
20424 * doc/install.texi (avr): Update outdated URL.
20426 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
20428 * config/stormy16/stormy16.md (pushqi): New.
20432 (movhi): Remove stack operands.
20434 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
20435 nonimmediate_nonstack_operand.
20436 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
20438 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
20441 2002-01-31 Jason Merrill <jason@redhat.com>
20443 * Makefile.in (c-parse.c): Handle .output file.
20444 * objc/Make-lang.in (objc-parse.c): Likewise.
20446 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
20448 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
20449 the -me[lb] option is given. Don't output the default flag
20452 2002-01-31 Zack Weinberg <zack@codesourcery.com>
20454 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
20455 the primary source file; this has not been done yet.
20456 * c-decl.c (c_expand_body): Reset input_filename from
20457 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
20459 2002-01-31 Kazu Hirata <kazu@hxi.com>
20461 * rtlanal.c (subreg_regno_offset): Do not use
20462 SUBREG_REGNO_OFFSET.
20463 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
20464 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
20466 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20468 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
20469 version rather than GNATS version in --version output.
20471 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
20473 * ifcvt.c (noce_process_if_block): Make a copy of the destination
20474 when copying back from a temporary.
20476 2002-01-30 Richard Henderson <rth@redhat.com>
20478 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
20479 and new_dest are the same.
20481 2002-01-30 Richard Henderson <rth@redhat.com>
20484 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
20485 * rtl.c (note_insn_name): Update.
20486 * emit-rtl.c (remove_unnecessary_notes): Kill it.
20487 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
20488 to perform loop rotation.
20489 (expand_exit_loop_top_cond): New.
20490 * tree.h (expand_exit_loop_top_cond): Declare it.
20491 * c-semantics.c (genrtl_while_stmt): Use it.
20492 (genrtl_for_stmt): Likewise.
20494 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
20496 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
20497 arguments to 64-bit boundaries on 64-bit ABIs.
20499 2002-01-30 Steve Ellcey <sje@cup.hp.com>
20501 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
20503 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
20505 * c-decl.c (grokdeclarator): Handle type being a typedef for an
20508 2002-01-30 David O'Brien <obrien@FreeBSD.org>
20510 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
20511 * config/sparc/sparc_bi.h: Remove file.
20512 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
20514 2002-01-30 Richard Henderson <rth@redhat.com>
20516 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
20518 2002-01-30 Zack Weinberg <zack@codesourcery.com>
20520 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
20522 2002-01-30 Jason Merrill <jason@redhat.com>
20524 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
20525 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
20526 (reg_save): Use DW_CFA_offset_extended_sf instead.
20528 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
20530 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20532 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
20535 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
20537 * rs6000.md ("*call_value_local32"): Remove constraints.
20538 ("*call_value_local64"): Same.
20539 ("*call_value_indirect_nonlocal_aix32"): Same.
20540 ("*call_value_nonlocal_aix32"): Same.
20541 ("*call_value_indirect_nonlocal_aix64"): Same.
20542 ("*call_value_nonlocal_aix64"): Same.
20543 ("*call_value_nonlocal_sysv"): Same.
20545 2002-01-29 Richard Henderson <rth@redhat.com>
20547 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
20549 2002-01-29 Richard Henderson <rth@redhat.com>
20551 * expr.c (force_operand): Ignore flag_pic for detecting pic
20553 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
20554 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
20555 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
20556 instead of open-coded loop.
20557 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
20558 be fixed when in use.
20560 2002-01-29 Richard Henderson <rth@redhat.com>
20562 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
20563 * sched-rgn.c (propagate_deps): Update them.
20564 * sched-deps.c (sched_analyze_insn): Update them. Flush the
20565 clobbers list when either gets too long.
20567 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20569 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
20570 and INDEX_REGS the same as GENERAL_REGS.
20571 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
20573 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20575 * tree.c (build_nonstandard_integer_type): Correct prototype.
20577 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
20579 * config/s390/s390.md (movstrsico, movstrdix_64,
20580 movstrsix_31): Remove, replace by ...
20581 (movstrdi_short, movstrsi_short, movstrdi_long,
20582 movstrsi_long): ... these. New.
20583 (movstrdi, movstrsi): Adapt.
20585 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
20586 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
20587 Remove unnecessary CC clobber.
20588 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20589 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20591 (divmoddi4): Don't partially initialize TImode register.
20593 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
20595 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20597 2002-01-29 Richard Henderson <rth@redhat.com>
20599 * flow.c (print_rtl_and_abort): Remove.
20600 (print_rtl_and_abort_fcn): Remove.
20601 (verify_local_live_at_start): Use dump_bb instead.
20602 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20603 (verify_wide_reg_1): Return 2 on mode test failure.
20605 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20607 PR c/3325, c/3326, c/2511, c/3347
20608 * c-decl.c (enum_decl_context): Remove BITFIELD.
20609 (grokdeclarator): Take bitfield width as an input.
20610 Ensure bitfields are given the correct type. Perform
20611 bitfield width validation with build_bitfield_integer_type
20612 rather than waiting for finish_struct.
20613 (grok_typename, grok_typename_in_parm_context, start_decl,
20614 push_parmdecl, grokfield, start_function): Update calls to
20616 (build_bitfield_integer_type): New function.
20617 (finish_struct): Move bitfield validation to grokdeclarator
20618 and build_bitfield_integer_type.
20619 * tree.c (build_nonstandard_integer_type): New function.
20620 * tree.h (build_nonstandard_integer_type): New prototype.
20622 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20624 2002-01-29 Jakub Jelinek <jakub@redhat.com>
20627 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20628 don't ignore unrecognized -W* options.
20629 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20630 * cpplib.h (cpp_handle_option): Adjust prototype.
20631 * c-decl.c (c_decode_options): Pass 0 as last argument to
20635 * gcc.c (cpp_unique_options): Split from cpp_options.
20636 (cpp_options): Source cpp_unique_options.
20637 (default_compilers): Use cpp_unique_options instead of cpp_options
20638 when used together with cc1_options.
20639 (static_specs): Add cpp_unique_options.
20640 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20641 when used together with cc1_options.
20643 2002-01-29 Kazu Hirata <kazu@hxi.com>
20645 * config/h8300/h8300-protos.h: Update the prototype of
20647 * config/h8300/h8300.c (output_a_shift): Remove an unused
20648 argument 'insn'. Remove redundant code.
20649 * config/h8300/h8300.md: Adust to the new prototype of
20652 2002-01-29 Kazu Hirata <kazu@hxi.com>
20654 * config/h8300/h8300-protos.h: Update the prototypes of
20655 emit_a_rotate and expand_a_rotate.
20656 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20657 first argument to 'enum rtx_code'.
20658 (expand_a_rotate): Likewise.
20660 2002-01-28 Kazu Hirata <kazu@hxi.com>
20662 * config/h8300/h8300-protos.h: Update the prototype of
20664 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20666 * config/h8300/h8300.md: Adjust to the new prototype.
20668 2002-01-28 Kazu Hirata <kazu@hxi.com>
20670 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20673 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
20675 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20676 is a fixed register before returning pic_offset_table_rtx.
20677 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20678 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20680 2002-01-28 Jason Merrill <jason@redhat.com>
20682 * dwarf2.h: Sync with src version.
20684 2002-01-28 Paul Koning <pkoning@equallogic.com>
20686 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20687 BT_FN_VOID_PTR_VAR.
20688 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20689 * doc/extend.texi (__builtin_prefetch): Update documentation:
20690 first argument is now const void ptr.
20692 2002-01-28 Kazu Hirata <kazu@hxi.com>
20694 * config/h8300/h8300-protos.h: Remove an unused prototype.
20696 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
20698 * toplev.c (lang_independent_init): Round up identifier size.
20700 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20702 * config.gcc: Revert previous change.
20704 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
20706 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20708 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20710 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20711 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
20712 other non-elf netbsd config frags.
20713 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20714 collect2 will does that.
20715 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20716 shared-lib frobbing will work.
20718 2002-01-28 Kazu Hirata <kazu@hxi.com>
20720 * config/h8300/h8300.h: Fix formatting.
20721 * config/h8300/h8300.md: Likewise.
20723 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
20725 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20726 the old, removed AAA_standards fix.
20727 * fixinc/fixincl.x: Rebuilt.
20729 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
20731 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20732 atexit call in crtbegin, hooked in after call to frame_dummy;
20733 register EH before registering __fini__start.
20735 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
20737 * config/rs6000/altivec.h: Remove spurious semicolons.
20739 2002-01-27 Kazu Hirata <kazu@hxi.com>
20741 * config/h8300/h8300.md: Replace dead bit extraction patterns
20742 with ones that work.
20744 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20746 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20747 if not STRICT_ALIGNMENT.
20748 * rtl.h (MEM_ALIGN): Likewise.
20750 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
20752 * doc/invoke.texi (-fdump-translation-unit): Revert this
20753 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
20755 2002-01-27 Kazu Hirata <kazu@hxi.com>
20757 * config/h8300/h8300.md (define_constants): New.
20758 (anonymous patterns) Use defined constants appropriately.
20760 2002-01-27 Kazu Hirata <kazu@hxi.com>
20762 * config/h8300/h8300.c (function_arg): Remove redundant code.
20764 2002-01-26 Richard Henderson <rth@redhat.com>
20766 * sched-deps.c (reg_pending_uses_head): New.
20767 (reg_pending_barrier): Rename from reg_pending_sets_all.
20768 (find_insn_list): Don't mark inline.
20769 (find_insn_mem_list): Remove.
20770 (add_dependence_list, add_dependence_list_and_free): New.
20771 (flush_pending_lists): Replace only_write param with separate
20772 for_read and for_write parameters. Update all callers. Use
20773 add_dependence_list_and_free.
20774 (sched_analyze_1): Do not add reg dependencies here; just set
20775 the pending bits. Use add_dependence_list.
20776 (sched_analyze_2): Likewise.
20777 (sched_analyze_insn): Replace schedule_barrier_found with
20778 reg_pending_barrier. Add all dependencies for pending reg
20779 uses, sets, and clobbers.
20780 (sched_analyze): Don't add reg dependencies for calls, just
20781 set pending bits. Use regs_invalidated_by_call. Treat
20782 sched_before_next_call as a normal list, not a fake insn.
20783 (init_deps): No funny init for sched_before_next_call.
20784 (free_deps): Free pending mems lists. Don't zero reg_last.
20785 (init_deps_global): Init reg_pending_uses.
20786 (finish_deps_global): Free it.
20787 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
20788 (find_insn_mem_list): Remove.
20789 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20790 (propagate_deps): Use them. Zero temp mem lists.
20792 2002-01-26 Richard Henderson <rth@redhat.com>
20794 * Makefile.in (CRTSTUFF_CFLAGS): New.
20795 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20796 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20797 crtstuff.c instead of alpha assembly version.
20798 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20799 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
20800 not FORCE_{INIT,FINI}_SECTION_ALIGN.
20801 (__do_global_dtors_aux): Mark used.
20802 (frame_dummy, __do_global_ctors_aux): Mark used.
20803 (fini_dummy, init_dummy): Remove.
20805 * config/alpha/crtbegin.asm: Remove file.
20806 * config/alpha/crtend.asm: Remove file.
20807 * config/alpha/t-crtbe: Remove file.
20808 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20809 (LINK_EH_SPEC): New.
20811 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20812 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
20813 calling constructors.
20814 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20816 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20817 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20818 CRT_END_INIT_DUMMY hack.
20819 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20820 FORCE_{INIT,FINI}_SECTION_ALIGN.
20822 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20823 FORCE_{INIT,FINI}_SECTION_ALIGN.
20825 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20826 invocation sequence.
20827 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20829 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20830 (FORCE_CODE_SECTION_ALIGN): New.
20832 2002-01-26 Richard Henderson <rth@redhat.com>
20834 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20836 2002-01-26 Richard Henderson <rth@redhat.com>
20838 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20839 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20841 2002-01-26 Kazu Hirata <kazu@hxi.com>
20843 * config/h8300/h8300.md: Remove bit extraction patterns that
20844 cannot be triggered.
20845 Restrict each bit extraction pattern to a variant on which the
20848 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
20850 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20852 2002-01-26 Kazu Hirata <kazu@hxi.com>
20854 * config/h8300/h8300.md: Remove bit test patterns that cannot
20856 Restrict each bit test pattern to a variant on which the
20859 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20861 * builtins.c (expand_builtin_strncat): Remove redundant check for
20864 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20866 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20868 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20871 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20873 * dbxout.c (dbxout_init): Use assemble_name rather than just
20874 stripping off the first character.
20875 (dbxout_source_file): Likewise.
20877 2002-01-25 DJ Delorie <dj@redhat.com>
20879 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20880 using rtx_equal_p, not by comparing pointers.
20882 2002-01-25 Steve Ellcey <sje@cup.hp.com>
20884 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20885 for PIC_OFFSET_TABLE_REGNUM.
20886 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20888 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20890 * config.gcc (x86_64-*-freebsd*): New target.
20891 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20893 (i[34567]86-*-freebsd*): Don't include svr4.h.
20894 * config/i386/freebsd64.h: New file.
20896 2002-01-25 Douglas B Rupp <rupp@gnat.com>
20898 * config/alpha/x-vms (version): Make static.
20900 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20901 in previous checkin.
20903 * Makefile.in (install-headers-cp): New target.
20904 * config.gcc (alpha-dec-*vms*): Install headers with
20907 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
20909 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20912 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20914 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20915 of compare_tree_int.
20916 (expand_builtin_strncat): Likewise.
20917 * c-decl.c (finish_struct): Use tree_low_cst.
20918 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20919 * tree.c (compare_tree_int): Likewise.
20921 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
20923 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20924 adjustments even if they are implemented by more than two insns.
20926 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
20928 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
20929 * df.h (struct ref): Kill B.
20930 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20932 * basic-block.h (PROP_EQUAL_NOTES): New flag.
20933 * flow.c (propagate_one_insn): Use it.
20934 (mark_used_regs): Handle NIL.
20936 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20938 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20941 2002-01-25 David Edelsohn <edelsohn@gnu.org>
20943 * rs6000.md (prefetch): Make address V4SI mode so that the address
20944 is restricted to legitimate form for instruction.
20946 2002-01-25 Bob Wilson <bob.wilson@acm.org>
20948 * doc/install.texi (xtensa-*-elf): New target.
20949 (xtensa-*-linux*): New target.
20950 * doc/contrib.texi: Add myself.
20952 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
20954 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20955 purpose register to hold an SImode (or smaller) value.
20957 2002-01-25 Jakub Jelinek <jakub@redhat.com>
20959 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20961 * crtstuff.c: Likewise.
20963 2002-01-25 Kazu Hirata <kazu@hxi.com>
20965 * config/h8300/h8300.md (negation patterns): Tighten
20966 predicates to register_operand.
20968 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
20970 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20973 * builtins.c (expand_builtin_prefetch): Same.
20975 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20977 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20980 2002-01-24 Kazu Hirata <kazu@hxi.com>
20982 * config/h8300/h8300.c (print_operand): Remove support for
20983 operand character 'A'.
20984 * config/h8300/h8300.md (three anonymous patterns): Replace
20985 operand character 'A' with either 'T' or 'S'.
20987 2002-01-24 Kazu Hirata <kazu@hxi.com>
20989 * config/h8300/h8300.c (print_operand): Remove support for
20990 operand character 'U'.
20992 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
20994 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
20996 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
20998 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20999 values to be assigned to the stack pointer.
21001 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21003 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
21004 to const_double needs to be done right for big-endian systems.
21006 2002-01-24 Jason Merrill <jason@redhat.com>
21009 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
21010 to can_throw_internal.
21012 2002-01-23 Richard Henderson <rth@redhat.com>
21014 * fold-const.c (fold): Change UINT_MAX test to check vs precision
21015 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
21017 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21019 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
21020 (symGOT2reg): Use them, then set as GOT value as unchanging.
21021 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
21022 as a temporary, if possible.
21023 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
21024 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
21026 2002-01-23 Kazu Hirata <kazu@hxi.com>
21028 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
21029 accept to accept 0x80 as operands[2].
21031 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21033 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
21035 2002-01-23 Richard Henderson <rth@redhat.com>
21037 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
21039 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
21041 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
21042 (parmlist_or_identifiers_1): Verify that only a parmlist follows
21045 2002-01-23 Richard Henderson <rth@redhat.com>
21047 * expr.c (move_by_pieces_1): Extend size before negation.
21049 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
21050 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
21051 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
21052 * config/m68k/t-m68kelf: Likewise.
21054 2002-01-23 Bob Wilson <bob.wilson@acm.org>
21056 * config/xtensa/elf.h: New file.
21057 * config/xtensa/lib1funcs.asm: New file.
21058 * config/xtensa/lib2funcs.S: New file.
21059 * config/xtensa/linux.h: New file.
21060 * config/xtensa/t-xtensa: New file.
21061 * config/xtensa/xtensa-config.h: New file.
21062 * config/xtensa/xtensa-protos.h: New file.
21063 * config/xtensa/xtensa.c: New file.
21064 * config/xtensa/xtensa.h: New file.
21065 * config/xtensa/xtensa.md: New file.
21066 * config.gcc (xtensa-*-elf*): New target.
21067 (xtensa-*-linux*): New target.
21068 * cse.c (canon_hash): Compare rtx pointers instead of register
21069 numbers. This is required for the Xtensa port.
21070 * integrate.c (copy_insn_list): Handle case where the static
21071 chain is in memory and the memory address has to be copied to
21073 * doc/invoke.texi (Option Summary): Add Xtensa options.
21074 (Xtensa Options): New node.
21075 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
21077 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21079 * diagnostic.c (internal_error): Do ICE suppression only
21080 when ENABLE_CHECKING is not defined.
21082 * c-typeck.c (require_complete_type): Return error_mark_node
21083 if type is error_mark_node.
21085 2002-01-23 Janis Johnson <janis187@us.ibm.com>
21087 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
21088 -Os and issue a warning.
21090 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21092 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
21093 current (lack of) need for host configuration by hand.
21095 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
21096 references. Documentation of some target macros moved from
21097 hostconfig.texi to tm.texi.
21099 2002-01-23 Will Cohen <wcohen@redhat.com>
21101 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
21104 2002-01-23 Kazu Hirata <kazu@hxi.com>
21106 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
21109 2002-01-23 Jason Merrill <jason@redhat.com>
21111 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
21113 * function.c (assign_parms): Don't put args of inline functions
21114 into registers when not optimizing.
21116 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
21118 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
21119 (prologue_use): New pattern.
21120 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
21121 preference to gen_rtx_USE.
21122 (thumb_expand_prologue): Use gen_prologue_use in preference to
21124 (thumb_expand_epilogue): Use gen_prologue_use in preference to
21127 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
21129 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
21131 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
21134 * doc/extend.texi: Correct documentation of __alignof__.
21136 2002-01-22 Zack Weinberg <zack@codesourcery.com>
21138 * params.h: Rename arguments of DEFPARAM so that it will be
21139 recognized as a translation keyword.
21141 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21143 * extend.texi: Document altivec functions.
21144 Fix N-bit adjectives in X86 builtin documentation.
21146 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21148 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
21149 auto_inc_dec values.
21151 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
21153 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
21155 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
21157 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21159 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
21161 2002-01-22 Richard Henderson <rth@redhat.com>
21163 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
21164 copy_insn not copy_rtx.
21166 2002-01-23 Alan Modra <amodra@bigpond.net.au>
21168 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
21169 "nonzero" as that might add "1" bits. Ensure "constop" is
21170 properly sign extened.
21171 (force_to_mode): Tweak for sign extended constop.
21173 2002-01-22 Richard Henderson <rth@redhat.com>
21175 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
21176 for_each_rtx instead of assuming we're already looking at the MEM.
21177 (split_small_symbolic_mem_operand): Likewise.
21178 * config/alpha/alpha.h (PREDICATE_CODES): Update.
21179 * config/alpha/alpha.md (small symbolic memory splitters): Update.
21181 2002-01-22 Richard Henderson <rth@redhat.com>
21183 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
21184 sequence number for the literal.
21185 (divmoddi_internal_er): Likewise.
21187 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21190 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
21191 in LIBICONV variable.
21192 * configure: Regenerated.
21194 2002-01-22 Krister Walfridsson <cato@df.lth.se>
21196 * dependence.c (build_def_use): Remove array_idx.
21198 * dwarfout.c (last_filename): Remove.
21199 (output_compile_unit_die): Remove last_filename.
21201 2002-01-22 Roger Sayle <roger@eyesopen.com>
21202 Richard Henderson <rth@redhat.com>
21205 * fold-const.c (fold): Optimize unsigned comparisons against
21206 UINT_MAX (and similar unsigned constants).
21208 2002-01-22 Janis Johnson <janis187@us.ibm.com>
21210 * Makefile.in (loop.o): Depend on OPTABS_H.
21211 * loop.c (emit_prefetch_instructions): Check the prefetch operand
21212 against the predicate.
21215 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
21216 for the address operand.
21218 2002-01-22 Richard Henderson <rth@redhat.com>
21220 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
21222 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21225 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
21226 preprocessor flags.
21228 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
21230 * config.gcc (x86_64-*-netbsd*): New target.
21231 * config/i386/netbsd64.h: New file.
21233 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21235 * regrename.c (kill_value): Fix typo.
21237 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21239 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
21241 * config/rs6000/rs6000.h: Same.
21243 * function.c (instantiate_virtual_regs): Remove
21244 STARTING_FRAME_PHASE.
21245 (assign_stack_local_1): Same.
21246 Calculate frame phase.
21248 2002-01-22 Nick Clifton <nickc@redhat.com>
21250 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
21251 variable declaration to outer scope in order to simplify
21253 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
21254 arm_hard_regno_mode_ok.
21255 * config/arm/arm-protos.h: Add a prototype for
21256 arm_hard_regno_mode_ok.
21257 * config/arm/arm.c (soft_df_operand): Remove now redundant
21258 check for DImode values using IP_REGNUM.
21259 (nonimmediate_soft_df_operand): Remove now redundant check for
21260 DImode values using IP_REGNUM.
21261 (arm_hard_regno_mode_ok): New function. New check: make sure
21262 that DImode values are not stored in IP_REGNUM.
21264 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
21266 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
21268 2002-01-22 Jason Merrill <jason@redhat.com>
21270 * c-semantics.c (genrtl_compound_stmt): Only check nesting
21271 consistency if this COMPOUND_STMT is scoped.
21273 2002-01-22 Kazu Hirata <kazu@hxi.com>
21275 * predict.c: Fix formatting.
21276 * print-tree.c: Likewise.
21277 * protoize.c: Likewise.
21278 * real.h: Likewise.
21280 * sbitmap.h: Likewise.
21281 * scan.c: Likewise.
21282 * sched-deps.c: Likewise.
21283 * sched-vis.c: Likewise.
21284 * sdbout.c: Likewise.
21285 * sibcall.c: Likewise.
21287 * ssa-ccp.c: Likewise.
21288 * ssa-dce.c: Likewise.
21289 * stmt.c: Likewise.
21290 * stor-layout.c: Likewise.
21291 * system.h: Likewise.
21293 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21295 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
21296 if fits in bounds of base type.
21298 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
21299 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
21300 (add_bound_info, default): If can't find a context, make a
21302 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
21304 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
21306 * c-typeck.c (parser_build_binary_op): If result from
21307 build_binary_op is ERROR_MARK just return error_mark_node without
21308 further processing.
21310 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
21312 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
21313 Split a.out-specific bits into...
21314 * config/netbsd-aout.h: ...this.
21315 * config/netbsd-elf.h: New file.
21316 * config/alpha/netbsd-elf.h: Remove.
21317 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
21318 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
21319 (STARTFILE_SPEC): Remove redundant definition.
21320 (ENDFILE_SPEC): Likewise.
21321 (LINK_SPEC): Likewise.
21322 (CPP_SPEC): Likewise.
21323 (ASM_SPEC): Likewise.
21324 (LIB_SPEC): Likewise.
21325 (SWITCH_TAKES_ARG): Likewise.
21326 (TARGET_MEM_FUNCTIONS): Likewise.
21327 (CPP_PREDEFINES): Redefine.
21328 (ASM_FINAL_SPEC): Remove redefinition.
21329 (ASM_COMMENT_START): Redefine.
21330 (FUNCTION_PROFILER): Define.
21331 (TARGET_VERSION): Redefine.
21332 Comment and formatting cleanup.
21333 * config/i386/netbsd.h: Include <netbsd-aout.h>.
21334 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
21335 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
21336 big- or little-endian.
21337 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
21338 * config.gcc (*-*-netbsd*): Add definitions common to all
21340 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
21341 gnu_ld definitions. Add netbsd-elf.h to and remove
21342 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
21343 tmake_file, and don't lose previous tmake_file contents.
21344 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
21345 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
21346 gnu_ld definitions. Add netbsd-elf.h to tm_file.
21347 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
21348 (mipsel-*-netbsd*): Rename this to...
21349 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
21350 mips/little.h to tm_file for mips*el-*.
21351 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
21352 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
21353 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
21355 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21357 * pa-protos.h (reg_before_reload_operand): New function prototype.
21358 * pa.c (reg_before_reload_operand): New function implementation.
21359 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
21360 contraints to "*m".
21362 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21364 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
21366 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21368 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
21369 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
21370 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
21371 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
21372 (ENDFILE_SPEC): Undefine.
21373 (STARTFILE_SPEC): Redefine for PA.
21375 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21377 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
21379 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
21381 * config.gcc: Add entries to supported PowerPC --with-cpu
21384 2002-01-21 Jakub Jelinek <jakub@redhat.com>
21386 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
21387 true for 64-bit mode only SSE registers in 32-bit mode.
21389 2002-01-21 Kazu Hirata <kazu@hxi.com>
21391 * unwind-dw2.c: Fix formatting.
21392 * unwind-dw2-fde.c: Likewise.
21393 * unwind-dw2-fde.h: Likewise.
21394 * unwind-pe.h: Likewise.
21395 * varasm.c: Likewise.
21396 * varray.h: Likewise.
21398 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
21400 Remove workaround for register stack overwrite bug in mmix.
21401 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
21402 support for TARGET_REG_STACK_FILL_BUG.
21403 * config/mmix/mmix.h: Remove member has_call_without_parameters.
21404 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
21406 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
21407 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
21408 -mno-reg-stack-fill-bug-workaround.
21409 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
21410 machine member has_call_without_parameters.
21411 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
21412 -mreg-stack-fill-bug-workaround and
21413 -mno-reg-stack-fill-bug-workaround.
21414 (MMIX Options): Ditto.
21416 2002-01-21 Kazu Hirata <kazu@hxi.com>
21418 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
21420 Remove redundant code.
21422 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
21424 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
21425 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21426 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21427 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
21428 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
21429 out target macro definitions and non-target-specific comments
21430 mostly taken from old versions of the manual.
21432 2002-01-20 Kazu Hirata <kazu@hxi.com>
21434 * config/h8300/h8300.h: Fix comment formatting.
21435 * config/ia64/aix.h: Likewise.
21436 * config/ia64/ia64-protos.h: Likewise.
21437 * config/ia64/ia64.c: Likewise.
21438 * config/ia64/ia64.h: Likewise.
21439 * config/ia64/ia64intrin.h: Likewise.
21440 * config/ia64/linux.h: Likewise.
21441 * config/ia64/unwind-aix.c: Likewise.
21442 * config/ia64/unwind-ia64.c: Likewise.
21444 2002-01-20 Kazu Hirata <kazu@hxi.com>
21446 * config/h8300/h8300.c: Revise comments about shift code.
21448 2002-01-20 Kazu Hirata <kazu@hxi.com>
21450 * config/h8300/h8300.c (function_arg): Update a comment.
21452 2002-01-20 Kazu Hirata <kazu@hxi.com>
21454 * config/h8300/h8300.md: Update the comments at the beginning
21457 2002-01-20 Kazu Hirata <kazu@hxi.com>
21459 * config/i370/i370.c: Fix comment formatting.
21460 * config/i370/i370.h: Likewise.
21461 * config/i370/i370.md: Likewise.
21462 * config/i370/linux.h: Likewise.
21464 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21466 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
21468 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
21469 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
21470 in incomplete case.
21472 2002-01-20 Graham Stott <grahams@redhat.com>
21474 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
21476 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
21478 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
21480 2002-01-19 Tom Rix <trix@redhat.com>
21482 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
21484 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
21486 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
21488 * function.c (assign_stack_local_1): Adjust x_frame_offset with
21489 STARTING_FRAME_PHASE.
21490 (STARTING_FRAME_PHASE): New.
21491 (instantiate_virtual_regs): Check saneness of
21492 STARTING_FRAME_PHASE.
21494 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
21496 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
21498 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
21500 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
21502 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
21503 be used for bootstrapping GCC 3.0.
21505 2002-01-18 Kazu Hirata <kazu@hxi.com>
21507 * config/h8300/h8300.md: Fix an insn length.
21509 2002-01-18 Kazu Hirata <kazu@hxi.com>
21511 * bitmap.h: Fix comment formatting.
21512 * combine.c: Likewise.
21513 * cppfiles.c: Likewise.
21514 * c-pragma.h: Likewise.
21515 * c-typeck.c: Likewise.
21517 * dwarf2out.c: Likewise.
21518 * function.c: Likewise.
21520 * genattrtab.c: Likewise.
21521 * gthr-win32.h: Likewise.
21522 * haifa-sched.c: Likewise.
21523 * predict.c: Likewise.
21524 * rtlanal.c: Likewise.
21526 * unwind-dw2-fde.h: Likewise.
21527 * unwind-pe.h: Likewise.
21528 * vmsdbgout.c: Likewise.
21530 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21532 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
21533 if type_required and passed decl.
21535 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
21537 * config.gcc (cpu_type): Include altivec.h in powerpc
21541 * config/rs6000/altivec.h: New.
21543 2002-01-17 David Edelsohn <edelsohn@gnu.org>
21545 * doc/install.texi (*-ibm-aix*): Update assembler and exception
21546 handling information.
21547 * doc/trouble.texi (Interoperation): Add libstdc++ information
21549 (Misunderstandings): Add template instantiation and static template
21550 member information for AIX.
21552 2002-01-17 Jason Merrill <jason@redhat.com>
21554 * dbxout.c (dbxout_type): Support const and volatile.
21556 * except.c (add_partial_entry): Remove backwards compatibility code.
21557 (end_protect_partials): Likewise.
21559 2002-01-17 Jakub Jelinek <jakub@redhat.com>
21561 * config/ia64/ia64.md (prologue_use): New.
21562 * config/ia64/ia64.c (ia64_expand_prologue): Use
21563 gen_prologue_use instead of gen_rtx_USE.
21564 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
21565 as CODE_FOR_pred_rel_mutex.
21566 (ia64_sched_reorder2): Likewise.
21568 2002-01-16 Eric Christopher <echristo@redhat.com>
21570 * config/mips/r3900.h: Reformat.
21571 (SUBTARGET_CPP_SIZE_SPEC): Remove.
21572 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
21573 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
21574 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
21575 * config/mips/t-elf: Remove mips3 multilib.
21577 2002-01-16 H.J. Lu <hjl@gnu.org>
21579 * config/mips/linux.h: Include "mips/abi64.h".
21581 2002-01-16 H.J. Lu <hjl@gnu.org>
21583 * config/mips/t-linux: New.
21585 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
21587 * config/mips/linux.h: Don't include "gofast.h".
21588 (INIT_SUBTARGET_OPTABS): Removed.
21590 2002-01-16 Kazu Hirata <kazu@hxi.com>
21592 * config/h8300/h8300-protos.h: Replace emit_a_shift with
21594 * config/h8300/h8300.c: Likewise.
21595 * config/h8300/h8300.md: Likewise.
21597 2002-01-16 Kazu Hirata <kazu@hxi.com>
21599 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21600 spaces after an opcode name.
21601 (pushqi1_h8300hs): Likewise.
21602 (pushhi1_h8300hs): Likewise.
21604 2002-01-16 Kazu Hirata <kazu@hxi.com>
21606 * doc/extend.texi: Replace "option" with "attribute"
21609 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21611 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21612 (and:DI () (const_int -8)).
21613 (split_small_symbolic_mem_operand): Split
21614 (mem (and:DI () (const_int -8)).
21616 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21619 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
21620 same way as TYPE_IMUL.
21621 (ultrasparc_sched_reorder): Likewise.
21622 * config/sparc/sparc.md (type): Add comment to update
21623 ultrasparc_sched_reorder when making changes.
21625 2002-01-16 Kazu Hirata <kazu@hxi.com>
21627 * doc/invoke.texi: Change the dump file name of block
21628 reordering pass from 28.bbro to 29.bbro.
21629 Mention -dk option.
21631 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
21633 * i386.md (minsf splitter): Fix pasto.
21635 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21637 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21638 to frame pointer initialisation instruction.
21639 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21640 initialisation instruction.
21641 (soft_df_operand): Do not accept the IP register.
21642 (nonimmediate_soft_df_operand): Do not accept the IP register.
21644 2002-01-16 Jakub Jelinek <jakub@redhat.com>
21647 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21648 MASK_V8 being both set.
21650 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
21652 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21653 insn for GOT register; add REG_MAYBE_DEAD notes instead.
21654 config/s390/s390.md (call, call_value): Add GOT register to
21655 CALL_INSN_FUNCTION_USAGE where needed.
21656 (call_exp, call_value_exp): New.
21658 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21660 * config/arm/arm.c: General formatting tidy up.
21662 2002-01-16 Graham Stott <grahams@redhat.com>
21664 * calls.c (try_to_integrate): Use "(size_t)" intermediate
21665 cast and when casting an integer literal to "rtx" pointer.
21666 (expand_call): Likewise.
21667 * flow.c (try_pre_increment): Likewise.
21668 (find_use_as_address): Likewise.
21669 * integrate.c (expand_iline_function): Likewise.
21670 * regmove.c (try_auto_increment): Likewise.
21672 2002-01-16 Graham Stott <grahams@redhat.com>
21674 * sched-rgn.c (passed): Use sbitmap_free.
21675 (header): Likewise.
21677 (in_queue): Likewise.
21678 (in_stack): Likewise.
21680 2002-01-15 Eric Christopher <echristo@redhat.com>
21682 * flow.c (propagate_one_insn): Change to use fatal_insn.
21684 2002-01-15 Kazu Hirata <kazu@hxi.com>
21686 * expmed.c (extract_fixed_bit_field): Remove unused code.
21687 * system.h: Poison SLOW_ZERO_EXTEND.
21688 * doc/tm.texi: Remove.
21689 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21690 * config/arm/arm.h: Likewise.
21691 * config/avr/avr.h: Likewise.
21692 * config/clipper/clipper.h: Likewise.
21693 * config/convex/convex.h: Likewise.
21694 * config/d30v/d30v.h: Likewise.
21695 * config/dsp16xx/dsp16xx.h: Likewise.
21696 * config/elxsi/elxsi.h: Likewise.
21697 * config/fr30/fr30.h: Likewise.
21698 * config/h8300/h8300.h: Likewise.
21699 * config/i370/i370.h: Likewise.
21700 * config/i386/i386.h: Likewise.
21701 * config/m68k/m68k.h: Likewise.
21702 * config/mips/mips.h: Likewise.
21703 * config/ns32k/ns32k.h: Likewise.
21704 * config/pdp11/pdp11.h: Likewise.
21705 * config/pj/pj.h: Likewise.
21706 * config/s390/s390.h: Likewise.
21707 * config/sh/sh.h: Likewise.
21708 * config/stormy16/stormy16.h: Likewise.
21709 * config/v850/v850.h: Likewise.
21710 * config/vax/vax.h: Likewise.
21711 * config/we32k/we32k.h: Likewise.
21713 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21715 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21716 (altivec_lvsl): Change constraint to b.
21717 (altivec_lvsr): Same.
21718 (altivec_lvebx): Same.
21719 (altivec_lvehx): Same.
21720 (altivec_lvewx): Same.
21721 (altivec_lvxl): Same.
21722 (altivec_lvx): Same.
21723 (altivec_stvx): Add parallel.
21724 (altivec_stvxl): Same.
21725 (altivec_stvehx): Same.
21726 (altivec_stvebx): Same.
21727 (altivec_stvebx): Same.
21729 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21731 * config.gcc: Change altivec.h to altivec-defs.h.
21733 * config/rs6000/altivec.h: Delete.
21735 * config/rs6000/altivec-defs.h: Add.
21737 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
21739 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21742 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21743 less than or equal to eight bytes.
21745 * vax.md (andsi3): Remove constraints and change SET destination
21746 operand type to nonimmediate_operand.
21747 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
21748 when it is a CONST_INT.
21750 2002-01-15 Jason Merrill <jason@redhat.com>
21752 * c-common.def (FILE_STMT): New code.
21753 * c-common.c (statement_code_p): It's a statement.
21754 * c-common.h (stmt_tree_s): Add x_last_filename.
21755 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21756 (last_expr_filename): New macro.
21757 * c-semantics.c (begin_stmt_tree): Initialize it.
21758 (add_stmt): If the filename changed, also insert a
21760 (expand_stmt): Handle seeing one.
21762 2002-01-15 Eric Christopher <echristo@redhat.com>
21764 * flow.c (propagate_one_insn): Add error message and print out
21765 insn for debugging.
21767 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21769 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21770 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21771 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21772 TRAMPOLINE_ALIGNMENT.
21773 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
21775 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21776 PCC_BITFIELD_TYPE_MATTERS.
21777 * config/interix.h (STDC_VALUE): Remove. Use
21778 STDC_0_IN_SYSTEM_HEADERS.
21779 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21780 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21781 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21783 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
21785 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21786 not work on this platform currently.
21788 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21790 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21791 readonly_warning in _().
21793 2002-01-15 Douglas B Rupp <rupp@gnat.com>
21795 * gcc.c (delete_if_ordinary): Backout previous change.
21797 2002-01-15 Kazu Hirata <kazu@hxi.com>
21799 * config/h8300/h8300.c (print_operand): Remove support for
21800 unused operand characters.
21802 * read-rtl.c: Fix formatting.
21803 * real.c: Likewise.
21804 * recog.c: Likewise.
21805 * regclass.c: Likewise.
21806 * regmove.c: Likewise.
21807 * reg-stack.c: Likewise.
21808 * reload1.c: Likewise.
21809 * rtlanal.c: Likewise.
21811 2002-01-15 Kazu Hirata <kazu@hxi.com>
21813 * config/i386/i386.c: Fix formatting.
21815 2002-01-15 Jakub Jelinek <jakub@redhat.com>
21817 * c-typeck.c (process_init_element): Don't save_expr
21818 COMPOUND_LITERAL_EXPR if just its initializer will be used.
21820 2002-01-15 David Edelsohn <edelsohn@gnu.org>
21822 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21823 emit optional traceback table if optimize_size or TARGET_ELF.
21824 * config/rs6000/rs6000.md (prefetch): New.
21826 2002-01-15 Andreas Jaeger <aj@suse.de>
21828 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21830 2002-01-15 Kazu Hirata <kazu@hxi.com>
21832 * mips-tfile.c: Fix formatting.
21834 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
21836 * unroll.c (final_reg_note_copy): Fix previous commit.
21838 2002-01-14 Kazu Hirata <kazu@hxi.com>
21840 * config/h8300/h8300-protos.h: Remove the prototype for
21842 * config/h8300/h8300.c (eq_operator): Remove.
21844 2002-01-14 Richard Henderson <rth@redhat.com>
21846 * config/i386/i386.md (prefetch): Tidy.
21847 (prefetch_3dnow): Fix locality operand.
21849 2002-01-14 Richard Henderson <rth@redhat.com>
21851 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21852 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21854 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
21856 * reload1.c (reload_combine): Pass reg_sum replacement through
21857 copy_rtx in loop performing multiple changes.
21859 2002-01-14 Jakub Jelinek <jakub@redhat.com>
21861 * except.c (remove_unreachable_regions): New.
21862 (free_eh_status): Clear exception_handler_labels.
21863 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21864 (find_exception_handler_labels): Don't add the same label more than
21866 (remove_exception_handler_label): Don't die if
21867 find_exception_handler_labels hasn't been called for the current
21870 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
21872 * toplev.c (rest_of_compilation): Rebuild jump labels after
21875 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
21877 * doc/extend.texi: Move documentation of X86 built-in functions
21879 * doc/invoke.texi: From here.
21880 * doc/sourcebuild.texi: Document location of documentation for
21881 machine built-in functions.
21883 2002-01-13 Christopher Faylor <cgf@redhat.com>
21885 * cppfiles.c (TEST_THRESHOLD): New macro.
21886 (SHOULD_MMAP): Ditto.
21887 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21890 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
21892 * unroll.c (final_reg_note_copy): Properly handle
21894 (unroll_loops): Fix LOOP_CONDITION heuristics.
21896 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
21898 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21899 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21901 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
21903 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21906 2002-01-14 Tom Rix <trix@redhat.com>
21908 * config/rs6000/rs6000.md: Fix typo with sradi.
21910 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
21912 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21913 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21914 (clrstrdi, clrstrsi): Adapt callers.
21916 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21918 (movti splitter): Never use register 0 as base register.
21920 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21922 * combine.c (simplify_shift_const): Always generate new rtx
21923 for shift expression instead of reusing given expression.
21925 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21927 * config/alpha/alpha.c (alpha_expand_mov): Don't call
21928 alpha_legitimize_address unless mode is Pmode.
21930 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
21932 * doc/md.texi (Modifiers): Document the '*' constraint for the
21935 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21936 * doc/extend.texi (Function Attributes): 'interrupt' is valid
21939 2002-01-13 Richard Henderson <rth@redhat.com>
21941 * reload.c (find_reloads): Use a hard reg destination as reload reg
21942 for an input reload of the source.
21944 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21946 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21949 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
21951 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21952 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21954 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21956 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21958 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21960 2002-01-12 Tom Rix <trix@redhat.com>
21962 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
21965 2002-01-12 Richard Henderson <rth@redhat.com>
21967 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21969 * doc/invoke.texi: Update Alpha options.
21971 * doc/invoke.texi: Update i386 built-in function lists.
21973 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
21975 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21976 referencing outside.
21978 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21980 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21981 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21982 offsets, and change line folding.
21983 * optabs.c (expand_binop): Remove warnings.
21984 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
21986 2002-01-12 Graham Stott <grahams@redhat.com>
21988 * attribs.c (handle_deprecated_attribute): constify WHAT.
21989 * diagnostic.c (warn_deprecated_use): Add braces, fixes
21990 dangling else warning and constify WHAT.
21991 * except.h (struct function, struct inline_remap): Move
21992 struct tag forward defs before all prototypes.
21993 (duplicate_eh_regions): Whitespace.
21995 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
21997 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21998 MODE_BASE_REG_CLASS.
21999 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
22001 2002-01-12 Richard Henderson <rth@redhat.com>
22003 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
22004 (ix86_expand_vector_move): New.
22005 (bdesc_2arg): Remove andps, andnps, orps, xorps.
22006 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
22007 Remove old prefetch builtins. Special case the logicals removed above.
22008 (ix86_expand_builtin): Likewise.
22009 (safe_vector_operand): Use V4SFmode, not TImode.
22010 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
22011 (ix86_expand_timode_binop_builtin): New.
22012 * config/i386/i386-protos.h: Update.
22013 * config/i386/i386.h (enum ix86_builtins): Update.
22014 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
22015 Use ix86_expand_vector_move in vector move expanders.
22016 (movti_internal, movti_rex64): Add xorps alternative.
22017 (sse_clrv4sf): Rename and adjust from sse_clrti.
22018 (prefetch): Don't work so hard.
22019 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
22020 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
22021 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
22023 2002-01-11 Richard Henderson <rth@redhat.com>
22025 * config/i386/mmintrin.h: New file.
22026 * config/i386/xmmintrin.h: New file.
22027 * config.gcc (i?86-*-*): Add extra_headers.
22028 * simplify-rtx.c (simplify_unary_operation): Handle saturating
22030 (simplify_binary_operation): Handle saturating arithmetic codes.
22031 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
22032 not the lowpart subreg.
22033 (ix86_expand_builtin): Return a TImode dummy register instead of 0
22035 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
22037 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22039 * conflict.c (conflict_graph_compute): Free regsets when finished.
22040 * ssa.c (compute_coalesced_reg_partition): Likewise.
22042 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22044 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
22045 every where we allocate a register.
22047 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22049 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
22050 * lcm.c (compute_earliest, compute_farthest): Likewise.
22052 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22054 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
22056 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22058 * doc/rtl.texi (Insns): Fix 2 typos.
22060 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
22062 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
22063 options. Use @table @gcctabopt for MMIX options. Add index
22064 entries for MMIX options. Start new paragraph with first
22065 heading of the machine-dependent options.
22067 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
22070 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
22071 * combine.c (force_to_mode): Same.
22072 * reload1.c (clear_reload_reg_in_use): Same.
22074 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
22076 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
22079 2002-01-11 Andreas Jaeger <aj@suse.de>,
22080 Brad Lucier <lucier@math.purdue.edu>
22082 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
22085 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
22087 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
22088 Protect with IN_LIBGCC.
22089 (LINK_EH_SPEC): Add required trailing space.
22091 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
22093 * c-tree.h: Move function declarations so that they are listed
22094 under the filename which contains them.
22095 (check_identifier, finish_decl_top_level,
22096 lookup_name_current_level_global, shadow_record_fields): Remove.
22098 2002-01-11 Andreas Jaeger <aj@suse.de>
22100 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
22103 2002-01-10 Richard Henderson <rth@redhat.com>
22105 * config/alpha/alpha.c (print_operand): Add 'J'.
22106 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
22107 new operand with the sequence number for the lituse. When splitting
22108 the insns, use gen_movdi_er_high_g and generate a sequence number.
22109 (gen_movdi_er_high_g): Print the sequence number if non-zero.
22111 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
22113 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
22114 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
22116 (altivec_expand_builtin): Same.
22117 (altivec_expand_stv_builtin): New.
22119 * config/rs6000/rs6000.h (rs6000_builtins): Same.
22121 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
22122 ("altivec_lvehx"): New.
22123 ("altivec_lvewx"): New.
22124 ("altivec_lvxl"): New.
22125 ("altivec_lvx"): New.
22126 ("altivec_stvx"): New.
22127 ("altivec_stvebx"): New.
22128 ("altivec_stvehx"): New.
22129 ("altivec_stvewx"): New.
22130 ("altivec_stvxl"): New.
22132 2002-01-10 Richard Henderson <rth@redhat.com>
22134 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
22135 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
22136 care not to delete instructions twice.
22138 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22140 * toplev.c: Don't declare environ (it's not used anywhere).
22141 * configure.in: Don't check for declaration of environ.
22142 * config/i386/xm-mingw32.h: Don't #define environ.
22143 * config.in, configure: Regenerate.
22145 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22147 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
22148 * configure: Regenerate.
22150 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
22151 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
22152 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
22154 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
22155 LIMITS_H_TEST here, not in m68k/x-next.
22156 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
22157 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
22159 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
22160 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
22161 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
22163 * config/i386/x-djgpp: Renamed i386/t-djgpp.
22164 * config/m88k/x-dolph: Renamed m88k/t-dolph.
22165 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
22166 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
22167 replacement of quadlib.asm with quadlib.c.
22169 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
22170 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
22171 config/rs6000/xm-beos.h: Delete file.
22173 * config.gcc: Update to match above changes.
22175 2002-01-10 Kazu Hirata <kazu@hxi.com>
22177 * config/h8300/h8300.h: Fix comment typos.
22178 * config/h8300/h8300.md: Likewise.
22179 * config/h8300/lib1funcs.asm: Likewise.
22181 2002-01-10 Dale Johannesen <dalej@apple.com>
22183 PR optimization/5269
22184 * unroll.c (precondition_loop_p): Make *increment be the correct
22185 sign when n_iterations known, to avoid confusing caller.
22187 2002-01-10 Kazu Hirata <kazu@hxi.com>
22189 * doc/extend.texi (deprecated): Fix a typo.
22191 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
22193 * basic-block.h (update_br_prob_note): Declare.
22194 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
22195 (try_forward_edges): Care negative frequencies and update note.
22196 (outgoing_edges_match): Tweek conditional merging heuristics.
22197 (try_crossjump_to_edge): use update_br_prob_note.
22198 * cfglayout.c (fixup_reorder_chain): Likewise.
22199 * cfrtl.c (update_br_prob_note): New.
22200 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
22202 * i386.c (ix86_decompose_address): Return -1 if address contains
22204 (legitimate_address_p): Require ix86_decompose_address to return 1.
22206 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
22207 (cprop_insn): Likewise.
22209 2002-01-10 Kazu Hirata <kazu@hxi.com>
22211 * toplev.c: Fix formatting.
22212 * tree.c: Likewise.
22213 * tree-dump.c: Likewise.
22214 * unroll.c: Likewise.
22215 * unwind-dw2.c: Likewise.
22216 * unwind-dw2-fde.c: Likewise.
22217 * unwind-dw2-fde-glibc.c: Likewise.
22218 * unwind-sjlj.c: Likewise.
22220 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22222 * doc/invoke.texi: Document PDP-11 options.
22224 2002-01-10 Kazu Hirata <kazu@hxi.com>
22226 * config/h8300/h8300.h: Fix formatting.
22228 2002-01-10 Ira Ruben <ira@apple.com>
22230 Add __attribute__ ((deprecated)).
22231 * extend.texi: Document __attribute__ ((deprecated)).
22232 * invoke.texi: Document -Wno-deprecated-declarations.
22233 * testsuite/g++.dg/other/deprecated.C: New C++ test.
22234 * testsuite/gcc.dg/deprecated.c: New C test.
22235 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
22236 (c_common_attribute_table): Add "deprecated" entry.
22237 (handle_deprecated_attribute): New function.
22238 * c-decl.c (deprecated_states): New enum.
22239 deprecated_state: State of "deprecated" handling.
22240 (start_decl): Set deprecated_state based on attributes.
22241 (grokdeclarator): Test for deprecated uses, propagate attribute.
22242 * c-typeck.c (build_component_ref): Test for deprecated fields.
22243 (build_external_ref): Test for deprecated primaries.
22244 * diagnostic.c (warn_deprecated_use) New function to issue
22245 warnings about __attribute__ ((depricated)) references.
22246 * flags.h (warn_deprecated_decl): Extern declared for
22247 -W[no-]deprecated-declarations option.
22248 * print-tree.c (print_node): Show deprecated flag status.
22249 * toplev.c (warn_deprecated_decl): Defined.
22250 (W_options): Added "deprecated-declaration".
22251 * toplev.h (warn_deprecated_use): Extern declared.
22252 * tree.h (struct tree_common): Define deprecated_flag.
22253 (TREE_DEPRECATED): New macro to access flag.
22254 * cp/call.c (build_call): Test for deprecated calls.
22255 * cp/class.c (add_implicitly_declared_members): Set global
22256 flag to tell grokdeclarator to not issue deprecated warnings.
22257 * cp/cp-tree.h: Add extern for adding_implicit_members.
22258 * cp/decl.c (deprecated_states): New enum.
22259 (start_decl): Set deprecated_state based on attributes.
22260 (grokdeclarator): Test for deprecated uses, propagate attribute.
22261 * cp/lex.c (do_identifier): Test for deprecated primaries.
22262 * cp/typeck.c (build_component_ref): Test for deprecated fields.
22264 2002-01-10 Ira Ruben <ira@apple.com>
22266 Fix to assign attributes to inline member functions.
22267 * cp/decl.c (start_method): Handle attrlist.
22269 2002-01-10 Kazu Hirata <kazu@hxi.com>
22271 * combine.c (expand_field_assignment): Use subreg_lsb().
22273 2002-01-10 David Edelsohn <edelsohn@gnu.org>
22275 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
22276 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
22277 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
22278 Recurse for any operand of AND as long as constant is non-zero.
22280 2002-01-10 Kazu Hirata <kazu@hxi.com>
22282 * config/h8300/h8300.md: Remove constraints from expanders.
22284 2002-01-10 Kazu Hirata <kazu@hxi.com>
22286 * varasm.c: Fix formatting.
22287 * varray.c: Likewise.
22288 * vmsdbgout.c: Likewise.
22289 * xcoffout.c: Likewise.
22291 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
22293 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
22294 update edge probabilities to match.
22296 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22298 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
22300 * doc/languages.texi, doc/sourcebuild.texi: New files.
22301 * doc/configfiles.texi: Make a subsubsection. Update.
22302 * doc/configterms.texi: Add @node. Remove warning that this isn't
22303 instructions for building GCC.
22304 * doc/makefile.texi: Make a subsection.
22305 * doc/gccint.texi: Update.
22307 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
22309 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
22311 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
22313 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
22315 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
22317 * optabs.c (expand_fix): Look for wider integer modes first.
22319 * i386.md (mov?f): Avoid the fake const double trick for medium
22321 (min?f*/max?f*): Prohibit memory operands for i387 variant.
22322 (fop_df_4): Disable for SSE compilation.
22324 2002-01-10 Graham Stott <grahams@redhat.com>
22326 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
22327 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
22329 2002-01-10 Richard Henderson <rth@redhat.com>
22331 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
22333 2002-01-10 Richard Henderson <rth@redhat.com>
22335 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
22336 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
22338 2002-01-10 Kazu Hirata <kazu@hxi.com>
22340 * combine.c (can_combine_p): Fix a comment typo.
22342 2002-01-09 Zack Weinberg <zack@codesourcery.com>
22344 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
22345 empty list correctly. Change loop index $t to $f for
22346 consistency with rest of Makefile.
22348 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
22350 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
22351 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22353 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
22354 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
22355 (altivec_init_builtins): Same.
22356 (altivec_expand_unop_builtin): Return NULL_RTX on error.
22357 (altivec_expand_binop_builtin): Same.
22358 (altivec_expand_ternop_builtin): Same.
22361 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
22362 ("altivec_vctuxs"): Fix typo.
22363 ("altivec_vnmsubfp"): Same.
22364 ("altivec_dssall"): New.
22365 ("altivec_mfvscr"): New.
22366 ("altivec_dss"): New.
22367 ("altivec_lvsl"): New.
22368 ("altivec_lvsr"): New.
22369 ("altivec_dstt"): New.
22370 ("altivec_dstst"): New.
22371 ("altivec_dststt"): New.
22372 ("altivec_dst"): New.
22374 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
22375 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22377 2002-01-09 Richard Henderson <rth@redhat.com>
22379 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
22381 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
22383 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
22385 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
22387 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
22389 2002-01-09 Kazu Hirata <kazu@hxi.com>
22391 * read-rtl.c: Fix formatting.
22392 * real.c: Likewise.
22393 * regclass.c: Likewise.
22394 * regrename.c: Likewise.
22395 * reg-stack.c: Likewise.
22396 * reload1.c: Likewise.
22397 * reload.c: Likewise.
22400 2002-01-09 Kazu Hirata <kazu@hxi.com>
22402 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
22403 to extract items in the expr_list chain.
22405 2002-01-09 Richard Henderson <rth@redhat.com>
22407 * config/vax/vax.c (vax_rtx_cost): Never abort.
22409 * config/vax/vax.h (REAL_ARITHMETIC): Define.
22411 2002-01-09 Jan Hubicka <jh@suse.cz>
22413 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
22415 2002-01-09 Richard Henderson <rth@redhat.com>
22417 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
22418 Unify code from various alternatives.
22420 2002-01-09 Richard Henderson <rth@redhat.com>
22422 * regrename.c (copy_value): Ignore the copy if the source register
22423 is present in the value chain with a narrower mode.
22425 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22427 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
22428 for the c4x target. Also improve layout.
22430 2002-01-09 Richard Henderson <rth@redhat.com>
22432 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
22433 * config/m32r/m32r.md (and ior xor splitters): Swap operands
22434 to match insn patterns.
22436 2002-01-09 Richard Henderson <rth@redhat.com>
22438 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
22439 (copyprop_hardreg_forward_1): Likewise.
22441 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
22443 * pa.md (decrement_and_branch_until_zero): Change predicate for
22444 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
22446 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
22448 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
22449 gets undefined. For Darwin.
22451 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22453 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
22455 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22457 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
22459 2002-01-08 Richard Henderson <rth@redhat.com>
22461 * regrename.c (copy_value): Ignore overlapping copies.
22463 2002-01-08 Richard Henderson <rth@redhat.com>
22465 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
22466 as needed to avoid shared structure.
22468 2002-01-08 Kazu Hirata <kazu@hxi.com>
22470 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
22473 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22475 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
22476 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
22477 documentation of obsolete macros.
22478 * system.h: Poison these macros.
22479 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
22480 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
22481 config/c4x/c4x.h, config/clipper/clipper.h,
22482 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
22483 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
22484 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
22485 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
22486 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
22487 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
22488 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22489 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
22490 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
22491 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22492 config/sparc/sparc.h, config/stormy16/stormy16.h,
22493 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
22494 definitions and commented out definitions of obsolete macros.
22495 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
22496 of MAX_INT_TYPE_SIZE.
22498 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22500 * config/s390/s390.c (s390_preferred_reload_class): Never
22501 return ADDR_REGS if it isn't a subset of the given class.
22502 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
22503 FP_REGS, but all superclasses as well.
22505 * config/s390/s390.c (s390_function_profiler): Fix thinko.
22507 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
22508 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
22509 must not be a const_int.
22511 2002-01-08 Richard Henderson <rth@redhat.com>
22513 * Makefile.in (toplev.o): Depend on options.h.
22514 (gcc.o): Depend on specs.h.
22516 2002-01-08 Jakub Jelinek <jakub@redhat.com>
22518 * expr.c (store_expr): Convert VOIDmode constants back to target's
22521 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22523 * doc/invoke.texi: Markup gcc as @command. Refer to
22524 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
22525 of http://gcc.gnu.org/thanks.html.
22527 2002-01-08 Dale Johannesen <dalej@apple.com>
22529 * config/rs6000/rs6000.md: Add missing int register
22530 target case to movdf_low.
22532 2002-01-08 Zack Weinberg <zack@codesourcery.com>
22534 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
22535 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
22536 (cppinit.o): Depend on except.h.
22537 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
22538 s-specs): New rules.
22540 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
22541 Don't create specs.h/options.h/gencheck.h here. Remove
22542 unnecessary variable settings from last argument of AC_OUTPUT.
22543 * config.in, configure: Regenerate.
22544 * intl.c: Hardcode package name as "gcc".
22546 * cppinit.c: Include except.h.
22547 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
22549 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
22550 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
22551 (!)USING_SJLJ_EXCEPTIONS.
22552 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
22554 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22556 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
22557 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
22558 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
22559 documentation of obsolete macros.
22560 * system.h: Poison these macros.
22561 * config/d30v/d30v.h, config/ns32k/encore.h,
22562 config/stormy16/stormy16.h: Remove definitions and commented out
22563 definitions of obsolete macros.
22565 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
22567 * objc/objc-act.c (handle_class_ref): Mark the declaration of
22568 %sobjc_class_ref_%s as used - to prevent unwanted compiler
22571 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
22573 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
22574 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
22575 to insn adjusting stack/frame pointer.
22576 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
22577 accept operands that cause the insn to be non-splittable.
22579 2002-01-08 Graham Stott <grahams@redhat.com>
22581 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
22582 (C_TYPE_FIELDS_VOLATILE): Likewise.
22583 (C_TYPE_BEING_DEFINED): Likewise.
22584 (C_IS_RESERVED_WORD): Likewise.
22585 (C_TYPE_VARIABLE_SIZE): Likewise.
22586 (C_DECL_VARIABLE_SIZE): Likewise.
22587 (C_MISSING_PROTOTYPE_WARNED): Likewise.
22588 (C_SET_EXP_ORIGINAL_CODE): Likewise.
22589 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22591 (C_DECL_ANTICIPATED): Likewise.
22592 (c_build_type_variant): Add parenthesis.
22594 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22596 * gcc.c (option_map): Remove --version.
22597 (process_command): Handle -fversion following the GNU Coding
22598 Standards. Partially addresses PR other/704.
22600 2002-01-08 Graham Stott <grahams@redhat.com>
22602 * combine.c (combine_instructions): Fix typo.
22604 2002-01-08 Graham Stott <grahams@redhat.com>
22606 * debug.h: Use "tree" and "rtx" throughout.
22608 * debug.c: Likewise.
22610 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
22612 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22613 constant pool, use the pool's version of the symbol instead.
22615 2002-01-07 Richard Henderson <rth@redhat.com>
22617 * regrename.c (find_oldest_value_reg): Ignore the value chain if
22618 the original register was copied in a mode with a fewer number of
22619 hard registers than the desired mode.
22620 (copyprop_hardreg_forward_1): Likewise.
22621 (debug_value_data): Fix loop test.
22622 * toplev.c (parse_options_and_default_flags): Reenable
22623 -fcprop-registers at -O1.
22625 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22627 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22628 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
22630 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22633 * config/rs6000/rs6000.md: Add altivec predicate patterns.
22635 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
22637 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22638 (pa_output_function_prologue): Output local label at the beginning of
22639 the prologue when profiling.
22640 (hppa_profile_hook): Use the local label rather than the function label.
22641 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22643 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22645 * config/rs6000/rs6000.c (print_operand): Remove extra space.
22646 (altivec_expand_unop_builtin): Fix thinko.
22647 (altivec_expand_binop_builtin): Same.
22648 (altivec_expand_ternop_builtin): Same.
22649 (altivec_expand_builtin): Same.
22651 2002-01-07 Richard Henderson <rth@redhat.com>
22653 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22655 2002-01-07 Jason Merrill <jason@redhat.com>
22657 * unwind-dw2.c (execute_cfa_program): Use < again.
22659 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22661 * predict.c (combine_predictions_for_insn): Avoid division by zero.
22663 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22665 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22666 Don't allow -1 - x -> ~x simplifications in the first pass.
22668 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22670 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22672 (altivec_expand_binop_builtin): Same.
22673 (altivec_expand_unop_builtin): Same.
22674 (print_operand): Fix typo.
22675 (bdesc_1arg): Add vupk* variants.
22677 * rs6000.h (rs6000_builtins): Add vupk* enums.
22679 * rs6000.md: Add altivec_vupk* variants.
22681 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
22683 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22684 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22685 and last update dates.
22687 2002-01-07 Janis Johnson <janis187@us.ibm.com>
22689 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22691 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
22693 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22694 * config/avr/avr.h (CPP_SPEC): Likewise.
22695 (LINK_SPEC): Likewise.
22696 (CRT_BINUTILS_SPECS): Likewise.
22697 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22698 * doc/invoke.texi (AVR Options): Document them.
22700 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
22702 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22705 2002-01-07 Graham Stott <grahams@redhat.com>
22707 * config/i386/i386.h: Update copyright date.
22708 (HALF_PIC_PTR): Add parenthesis.
22709 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22710 (CONSTANT_ALIGNMENT): Add parenthesis.
22711 (DATA_ALIGNMENT): Likewise.
22712 (LOCAL_ALIGNMENT): Likewise.
22713 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22714 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22715 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22716 (HARD_REGNO_NREGS): Add paranethesis.
22717 (VALID_SSE_REG_MODE): Whitespace.
22718 (VALID_MMX_REG_MODE): Whitespace.
22719 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22720 (ix86_hard_regno_mode_ok): Add parenthesis.
22721 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22722 (RETURN_IN_MEMORY): Whitespace.
22723 (N_REG_CLASSES): Add parenthesis.
22724 (INTEGER_CLASS_P): Add parenthesis and wrap.
22725 (FLOAT_CLASS_P): Likewise.
22726 (SSE_CLASS_P): Likewise.
22727 (MMX_CLASS_P): Likewise.
22728 (MAYBE_INTEGER_CLASS_P): Likewise.
22729 (MAYBE_FLOAT_CLASS_P): Likewise.
22730 (MAYBE_SSE_CLASS_P): Likewise.
22731 (MAYBE_MMX_CLASS_P): Likewise.
22732 (Q_CLASS_P): Likewise.
22733 (GENERAL_REGNO_P): Uppercase macro parameter.
22734 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22735 (FP_REGNO_P): Likewise.
22736 (ANY_FP_REGNO_P): Uppercase macro parameter.
22737 (SSE_REGNO_P): Likewise.
22738 (SSE_REGNO): Likewise.
22739 (SSE_REG_P): Likewise.
22740 (SSE_FLOAT_MODE_P): Likewise.
22741 (MMX_REGNO_P): Likewise.
22742 (MMX_REG_P):Likewise.
22743 (STACK_REG_P): Likewise.
22744 (NON_STACK_REG_P): Likewise.
22745 (STACK_TOP_P): Likewise.
22746 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22747 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22748 (SECONDARY_MEMORY_NEEDED): Likewise.
22749 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22750 (MD_ASM_CLOBBERS): Whitespace and wrap.
22751 (MUST_PASS_IN_STACK): Whitespace and wrap.
22752 (RETURN_POPS_ARGS): Add parenthesis.
22753 (INIT_CUMULATIVE_ARGS): Likewise.
22754 (FUNCTION_ARG): Likewise.
22755 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22756 (SETUP_INCOMING_VARARGS): Likewise.
22757 (BUILD_VA_LIST_TYPE): Add parenthesis.
22758 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22760 (EXPAND_BUILTIN_VA_ARG): Likewise.
22761 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22762 (INITIALIZE_TRAMPOLINE): Add parenthesis.
22763 (INITIAL_ELIMINATION_OFFSET): Likewise.
22764 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22765 (REGNO_OK_FOR_BASE_P): Likewise.
22766 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22767 (REGNO_OK_FOR_DIREG_P): Likewise.
22768 (REG_OK_FOR_INDEX_P): Whitespace.
22769 (REG_OK_FOR_BASE_P): Whitespace.
22770 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22772 (FIND_BASE_TERM): Fix typo.
22773 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
22774 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22775 (SYMBOLIC_CONST; Whitespace.
22776 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
22777 (ENCODE_SECTION_INFO): Whitespace.
22778 (FINALIZE_PIC): Remove do { ... } while (0).
22779 (PROMOTE_MODE): Wrap in do { ... } while (0).
22780 (CONST_COSTS): Whitespace.
22781 (RTX_COSTS): Add paramethesis, whitespace and wrap.
22782 (REGISTER_MOVE_COST): Add parenthesis.
22783 (MEMORY_MOVE_COST): Likewise.
22784 (EXTRA_CC_MODES): Whitespace.
22785 (SELECT_CC_MODE): Add parenthesis and whitespace.
22786 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22787 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22788 (ASM_OUTPUT_LABEL): Add paramethesis.
22789 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22790 (ASM_OUTPUT_REG_POP): Likewise.
22791 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22792 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22794 * config/i386/i386.c: Update copyright.
22795 (CHECK_STACK_LIMIT): Add parenthesis.
22796 (AT_BP): Uppercase macro parameter.
22797 (x86_64_int_parameter_registers): Constify.
22798 (x86_64_int_return_registers): Likewise.
22799 (ix86_compare_op0): Use rtx.
22800 (construct_container): Constify INTREG parameter.
22801 (function_arg): Use rtx.
22803 * diagnostic.h: Update copyright date.
22804 (output_buffer_state): Add parenthesis.
22805 (output_buffer_format_args): Likewise.
22807 * combine.c (combine_instructions): Replace XEXP (links, 0)
22810 2002-01-06 H.J. Lu <hjl@gnu.org>
22812 * cfgcleanup.c (thread_jump): Fix 2 typos.
22814 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
22816 * config.gcc: Add support for --enable-altivec.
22818 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22820 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22822 2002-01-06 Jakub Jelinek <jakub@redhat.com>
22824 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22825 __objc_class_name_*.
22827 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22829 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22831 2002-01-06 Richard Henderson <rth@redhat.com>
22833 * reorg.c (emit_delay_sequence): Remove death notes, not merely
22834 nop them out. Increment label reference count for REG_LABEL.
22835 (fill_slots_from_thread): Frob label reference count around
22836 delete_related_insns.
22838 2002-01-05 Richard Henderson <rth@redhat.com>
22840 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22843 2002-01-05 Richard Henderson <rth@redhat.com>
22845 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22846 * integrate.c (output_inline_function): Likewise.
22847 * toplev.c (rest_of_compilation): Do it here instead. Move call
22848 to remove_unnecessary_notes after emitting abstract instance.
22849 Force an emitted nested function to have its parent emited as well.
22850 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22852 (rtl_for_decl_location): Do not look at reload data structures
22853 before reload has run.
22855 2002-01-05 Kazu Hirata <kazu@hxi.com>
22857 * cse.c: Fix formatting.
22858 * dwarf2asm.c: Likewise.
22859 * dwarf2out.c: Likewise.
22860 * explow.c: Likewise.
22861 * expmed.c: Likewise.
22862 * function.c: Likewise.
22863 * gcov.c: Likewise.
22864 * gencheck.c: Likewise.
22865 * genrecog.c: Likewise.
22866 * ggc-common.c: Likewise.
22867 * ggc-page.c: Likewise.
22868 * global.c: Likewise.
22870 2002-01-05 Kazu Hirata <kazu@hxi.com>
22872 * combine.c: Fix formatting.
22874 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
22877 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22879 2002-01-05 David Edelsohn <edelsohn@gnu.org>
22881 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22882 as 1 for __powerpc64__ as well.
22884 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22886 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22889 2002-01-05 Daniel Berlin <dan@dberlin.org>
22891 * lcm.c: Revert change, due to performance regression it causes on
22892 SPEC because it's slightly more conservative (sigh, I hate
22895 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
22897 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22899 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
22901 * doc/cppinternals.texi: Update.
22903 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
22905 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22906 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22908 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
22909 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22910 kludge for pre-october-14th mmix versions to handle new-found bug
22911 with PUSHJ/PUSHGO and the register stack.
22912 * config/mmix/mmix.h (struct machine_function): Rename member
22913 has_call_value_without_parameters to has_call_without_parameters.
22914 All referers changed.
22915 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22916 TARGET_MASK_BRANCH_PREDICT): New macros.
22917 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22918 -mno-reg-stack-fill-bug-workaround.
22919 * config/mmix/mmix.md ("call"): Set struct machine member
22920 has_call_without_parameters.
22922 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
22924 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22926 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
22928 * cfgcleanup.c: Include tm_p.h
22929 (mark_effect): Fix handling of hard register; fix handling of SET
22931 2002-01-04 Kazu Hirata <kazu@hxi.com>
22933 * config/h8300/h8300.md (anonymous patterns): Check that
22934 operands are registers before using REGNO on them.
22936 2002-01-03 Roland McGrath <roland@frob.com>
22938 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22940 2002-01-04 Jakub Jelinek <jakub@redhat.com>
22942 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22943 * c-common.h (genrtl_expr_stmt_value): Likewise.
22944 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22945 (expand_expr_stmt_value): Add maybe_last argument.
22946 Don't warn about statement with no effect if it is the last statement
22947 in expression statement.
22948 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22949 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22950 expand_expr_stmt_value.
22951 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22952 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22953 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22954 as maybe_last to expand_expr_stmt_value.
22956 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
22958 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22959 be passed in, do not build it.
22960 (c_begin_if_stmt): New function.
22961 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22962 * c-common.h (c_expand_start_cond): Update prototype.
22963 (c_begin_if_stmt): Prototype new function.
22964 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22965 * c-parse.in (if_prefix): Use c_begin_if_stmt,
22966 c_begin_while_stmt and c_finish_while_stmt_cond.
22968 2002-01-04 William Cohen <wcohen@redhat.com>
22970 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22971 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22972 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22973 * config/pa/som.h (ASM_FILE_START): Likewise.
22975 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
22977 * lcm.c: Include df.h.
22978 Add available_transfer_function prototype.
22979 (compute_available): Rework to use iterative dataflow framework.
22980 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22981 with bb_info in df.h
22982 (available_transfer_function): New function.
22984 * Makefile.in (lcm.o): add df.h to dependencies.
22986 2002-01-04 Richard Henderson <rth@redhat.com>
22988 * config/alpha/alpha.c (some_operand): Accept HIGH.
22989 (input_operand): Likewise; accept simple references to globals.
22990 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22991 (alpha_const_double_ok_for_letter_p): Likewise.
22992 (alpha_extra_constraint): Likewise.
22993 (alpha_preferred_reload_class): Likewise. Do not force
22994 symbolic constants to memory.
22995 (alpha_legitimate_address_p): Accept simple references
22996 to small_symbolic_operand.
22997 (alpha_legitimize_address): New arg scratch. Be prepared to be
22998 called when no_new_pseudos. Emit simple symbolic references.
22999 Split integers into low, high, and rest.
23000 (alpha_expand_mov): Use alpha_legitimize_address.
23001 (some_small_symbolic_mem_operand): New.
23002 (split_small_symbolic_mem_operand): New.
23003 * config/alpha/alpha-protos.h: Update.
23004 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
23005 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
23006 (EXTRA_CONSTRAINT): Likewise.
23007 (PREFERRED_RELOAD_CLASS): Likewise.
23008 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
23009 (PREDICATE_CODES): Update.
23010 * config/alpha/alpha.md: New post-reload splitters to convert
23011 simplfied symbolic operands to the form that references $29.
23012 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
23013 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
23015 2002-01-03 Richard Henderson <rth@redhat.com>
23017 * local-alloc.c (function_invariant_p): Update commentary.
23019 2002-01-04 H.J. Lu <hjl@gnu.org>
23021 * toplev.c (rest_of_compilation): Fix a typo when calling
23024 2002-01-03 Kazu Hirata <kazu@hxi.com>
23026 * c-common.c: Fix formatting.
23027 * diagnostic.c: Likewise.
23028 * doloop.c: Likewise.
23029 * dwarf2out.c: Likewise.
23031 2002-01-03 Kazu Hirata <kazu@hxi.com>
23033 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
23034 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
23036 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23038 * cpperror.c: Update comments and copyright.
23039 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
23040 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
23042 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
23044 * collect2.c (main): Use strcmp when testing for "-shared".
23046 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23048 * cppmacro.c: Don't include intl.h. Update comments.
23049 (new_number_token): Allocate enough buffer for 64-bit unsigned
23050 integers; update prototype.
23051 * cppmain.c: Update comments.
23053 2002-01-03 William Cohen <wcohen@redhat.com>
23055 * function.h (struct function): Add profile.
23056 (current_function_profile): New.
23057 doc/extend.texi: Update documentation.
23058 * final.c (final_start_function): Use current_function_profile
23059 instead of profile_flag.
23060 (profile_after_prologue): Likewise.
23061 * function.c (expand_function_start): Likewise.
23062 (expand_function_start): Likewise.
23063 * config/alpha/alpha.c (direct_call_operand):
23064 (alpha_does_function_need_gp): Likewise.
23065 (alpha_expand_prologue): Likewise.
23066 * config/arm/arm.c (arm_expand_prologue): Likewise.
23067 thumb_expand_prologue: Likewise.
23068 * config/d30v/d30v.c (d30v_stack_info): Likewise.
23069 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
23070 (fr30_expand_prologue): Likewise.
23071 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
23072 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
23073 * config/i386/i386.h (FINALIZE_PIC): Likewise.
23074 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
23075 * config/i960/i960.c (i960_output_function_prologue): Likewise.
23076 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
23077 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
23078 (m32r_expand_prologue): Likewise.
23079 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
23080 (m88k_expand_prologue): Likewise.
23081 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
23082 * config/mips/mips.c (compute_frame_size): Likewise.
23083 (mips_expand_prologue): Likewise.
23084 (mips_can_use_return_insn): Likewise.
23085 * config/pa/elf.h (ASM_FILE_START): Likewise.
23086 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23087 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23088 * config/pa/som.h (ASM_FILE_START): Likewise.
23089 * config/romp/romp.c (romp_using_r14): Likewise.
23090 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
23091 (rs6000_stack_info): Likewise.
23092 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
23093 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
23094 * config/v850/v850.c (compute_register_save_size): Likewise.
23096 2002-01-03 Jakub Jelinek <jakub@redhat.com>
23098 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
23099 gen_lowpart_common fails, use gen_lowpart_SUBREG.
23101 2002-01-03 Turly O'Connor <turly@apple.com>
23103 * darwin.c (machopic_output_possible_stub_label): Don't generate
23104 stub routines for pseudo-stubs which we've just defined.
23106 2002-01-03 Kazu Hirata <kazu@hxi.com>
23108 * builtins.c: Fix formatting.
23109 * c-typeck.c: Likewise.
23110 * combine.c: Likewise.
23111 * expr.c: Likewise.
23112 * loop.c: Likewise.
23114 2002-01-03 Andreas Schwab <schwab@suse.de>
23116 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
23117 and return true if _cpp_push_next_buffer pushed a new include
23119 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
23120 _cpp_pop_file_buffer did not push a new file.
23121 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
23123 2002-01-02 Eric Christopher <echristo@redhat.com>
23125 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
23126 FIND_REG_INC_NOTE call. Update copyright.
23127 * loop.c (canonicalize_condition): Ditto.
23128 * reorg.c (delete_scheduled_jump): Ditto.
23130 2002-01-03 Kazu Hirata <kazu@hxi.com>
23132 * gcse.c: Fix formatting.
23134 2002-01-03 Graham Stott <grahams@redhat.com>
23136 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
23137 forward defs for struct tags rtx_def, union_tree, rtvec_def
23138 also output corresponding typedefs for rtx, tree, and rtvec.
23140 * system.h: Move forward defs for struct tags rtx_def, union_tree,
23141 rtvec_def along with corresponding typedefs for rtx, tree, and
23142 rtvec to config.h, hconfig.h, tconfig.h.
23144 2002-01-03 Graham Stott <grahams@redhat.com>
23146 * tree.h: Update copyright date.
23147 (IS_EXPR_CODE_CLASS): Add parenthesis.
23148 (TREE_SET_CODE): Add whitespace.
23149 (TREE_CHECK): Add parenthesis.
23150 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
23151 (CST_OR_CONSTRUCTOR_CHECK):
23152 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
23153 (TREE_SYMBOL_REFERENCED): Whitespace.
23154 (INT_CST_LT): Likewise.
23155 (INT_CST_LT_UNSIGNED): Likewise.
23156 (tree_real_cst): Unwrap comment.
23157 (tree_string): Likewise.
23158 (tree_complex): Likewise.
23159 (IDENTIFIER_POINTER): correct cast.
23160 (SAVE_EXPR_CONTEXT): Whitespace.
23161 (EXPR_WFL_FILENAME_NODE): Likewise.
23162 (EXPR_WFL_FILENAME): Remove parenthesis.
23163 (DECL_ORIGIN): Add parenthesis.
23164 (DECL_FROM_INLINE): Use NULL_TREE.
23165 (build_int_2): Whitespace.
23166 (build_type_variant): Add parenthesis.
23168 * gcc/jcf-parse.c: Update copyright date.
23169 (yyparse): Constify resource_filename.
23171 2002-01-03 Graham Stott <grahams@redhat.com>
23173 * rtl.h: Update copyright date.
23174 (RTL_CHECK1): Wrap long line.
23175 (RTL_CHECK2): Likewise.
23176 (RTL_CHECKC1): Wrap long line and whitespace.
23177 (RTL_CHECKC2): Likewise.
23178 (XWINT): Whitespace.
23184 (XBITMAP): Likewise.
23186 (XBBDEF): Likewise.
23188 (X0WINT): Likewise.
23190 (X0UINT): Likewise.
23194 (X0MODE): Likewise.
23195 (X0BITMAP): Likewise.
23196 (X0TREE): Likewise.
23197 (X0BBDEF): Likewise.
23198 (X0ADVFLAGS): Likewise.
23199 (X0CSELIB): Likewise.
23200 (X0MEMATTR): Likewise.
23201 (XCWINT): Likewise.
23203 (XCUINT): Likewise.
23207 (XCMODE): Likewise.
23208 (XCBITMAP): Likewise.
23209 (XCTREE): Likewise.
23210 (XCBBDEF): Likewise.
23211 (XCADVFLAGS): Likewise.
23212 (XCCSELIB): Likewise.
23213 (XC2EXP): Likewise.
23214 (INSN_UID): Likewise.
23215 (PREV_INSN): Likewise.
23216 (PATTERN): Likewise.
23217 (INSN_CODE): Likewise.
23218 (PUT_REG_NOTE_KIND): Likewise.
23219 (CODE_LABEL_NUMBER): Likewise.
23220 (NOTE_SOURCE_FILE): Likewise.
23221 (NOTE_BLOCK): Likewise.
23222 (NOTE_EH_HANDLER): Likewise.
23223 (NOTE_RANGE_INFO): Likewise.
23224 (NOTE_LIVE_INFO): Likewise.
23225 (NOTE_BASIC_BLOCK): Likewise.
23226 (NOTE_EXPECTED_VALUE): Likewise.
23227 (NOTE_LINE_NUMBER): Likewise.
23228 (LABEL_NAME): Likewise.
23229 (LABEL_NUSES): Likewise.
23230 (LABEL_ALTERNATE_NAME): Likewise.
23231 (ADDRESSOF_DECL): Likewise.
23232 (JUMP_LABEL): Likewise.
23233 (LABEL_NEXTREF): Likewise.
23235 (ORIGINAL_REGNO: Likewise.
23236 (HARD_REGISTER_NUM_P): Add parenthesis.
23237 (SUBREG_REG): Whitespace.
23238 (SUBREG_BYTE): Likewise.
23239 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
23240 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
23241 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
23242 (ASM_OPERANDS_INPUT_VEC): Likewise.
23243 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
23244 (ASM_OPERANDS_INPUT): Likewise.
23245 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
23246 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
23247 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
23248 (ASM_OPERANDS_INPUT_MODE): Likewise.
23249 (ASM_OPERANDS_SOURCE_FILE): Likewise.
23250 (ASM_OPERANDS_SOURCE_LINE): Likewise.
23251 (MEM_SET_IN_STRUCT_P): Minor reformat.
23252 (TRAP_CONDITION): Whitespace.
23253 (TRAP_CODE): Likewise.
23254 (COND_EXEC_TEST): Likewise.
23255 (COND_EXEC_CODE): Likewise.
23256 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
23257 (PHI_NODE_P): Add parenthesis.
23258 (plus_constant): Whitespace and add parenthesis.
23260 2002-01-03 Kazu Hirata <kazu@hxi.com>
23262 * config/avr/avr.c: Fix comment typos.
23263 * config/c4x/c4x.md: Likewise.
23264 * config/dsp16xx/dsp16xx.h: Likewise.
23265 * config/dsp16xx/dsp16xx.md: Likewise.
23266 * config/i386/i386.md: Likewise.
23267 * config/ia64/ia64.c: Likewise.
23268 * config/m32r/m32r.h: Likewise.
23269 * config/m68hc11/m68hc11.md: Likewise.
23270 * config/mmix/mmix.c: Likewise.
23271 * config/mn10200/mn10200.c: Likewise.
23272 * config/romp/romp.c: Likewise.
23273 * config/sh/sh.c: Likewise.
23274 * config/stormy16/stormy16.c: Likewise.
23275 * config/stormy16/stormy16.h: Likewise.
23276 * config/stormy16/stormy16.md: Likewise.
23278 2002-01-03 Graham Stott <grahams@redhat.com>
23280 * loop.h: Update copyright date.
23281 (LOOP_MOVABLES): Fix typo.
23282 (LOOP_REGS): Likewise.
23283 (LOOP_IVS): Likewise.
23285 2002-01-03 Graham Stott <grahams@redhat.com>
23287 * cppinit.c: Update copyright date.
23288 Don't include output.h
23289 * Makefile.in: Update copyright date.
23292 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
23295 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
23296 (-pthread) Add to RS/6000 options.
23298 2002-01-02 Kazu Hirata <kazu@hxi.com>
23300 * except.c: Fix comment typos.
23301 * loop.c: Likewise.
23302 * varasm.c: Likewise.
23303 * doc/tm.texi: Fix a typo.
23305 2002-01-02 Jakub Jelinek <jakub@redhat.com>
23307 * c-typeck.c (output_init_element): Allow initializing static storage
23308 duration objects with compound literals.
23310 2002-01-02 Richard Henderson <rth@redhat.com>
23312 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
23315 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23317 * gcc.c (default_compilers): Const-ify.
23318 * mips-tdump.c (stab_names): Likewise.
23319 * mips-tfile.c (map_coff_types, map_coff_storage,
23320 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
23321 pseudo_ops_t, pseudo_ops): Likewise.
23322 * protoize.c (default_include): Likewise
23324 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
23325 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
23326 Add array size in declaration.
23327 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
23328 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
23329 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
23330 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
23331 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
23332 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
23333 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
23334 emtens, make_nan): Const-ify.
23335 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
23336 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
23338 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
23340 * config.gcc (ia64-*-*): Set extra_headers.
23341 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
23342 * config/alpha/t-osf: Remove.
23343 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
23345 2002-01-02 David Edelsohn <edelsohn@gnu.org>
23347 * config/rs6000/t-aix43: Revert previous change.
23349 2002-01-02 Jason Merrill <jason@redhat.com>
23351 * c-decl.c (c_expand_body): Call outlining_inline_function when
23352 emitting an inline function out of line.
23354 2002-01-02 Richard Henderson <rth@redhat.com>
23356 * dwarf2out.c (limbo_die_node): Add created_for member.
23357 (new_die): New argument created_for. Update all callers.
23358 (mark_limbo_die_list): New.
23359 (dwarf2out_init): Register limbo_die_list as a root.
23360 (dwarf2out_finish): Force insert limbo dies into their function
23363 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
23366 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
23368 2002-01-02 Kazu Hirata <kazu@hxi.com>
23370 * config/h8300/fixunssfsi.c: Update copyright.
23373 * config/h8300/h8300.c: Update copyright.
23374 Eliminate warnings.
23376 2002-01-02 Kazu Hirata <kazu@hxi.com>
23378 * config/romp/romp.c: Fix comment formatting.
23379 * config/romp/romp.h: Likewise.
23380 * config/romp/romp.md: Likewise.
23381 * config/s390/s390.c: Likewise.
23382 * config/stormy16/stormy16.c: Likewise.
23383 * config/stormy16/stormy16.h: Likewise.
23385 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
23387 * c-common.h (genrtl_expr_stmt_value): Declare.
23388 * c-semantics.c (genrtl_goto_stmt): Redirect to...
23389 (genrtl_goto_stmt_value): ... this new function. Pass new
23390 argument down to expand_expr_stmt_value, taking
23391 TREE_ADDRESSABLE into account.
23392 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
23393 STMT_EXPR as addressable, i.e., one whose result we want.
23394 * expr.c (expand_expr): Don't save expression statement value
23395 of labeled_blocks or loop_exprs.
23396 * stmt.c (expand_expr_stmt): Redirect to...
23397 (expand_expr_stmt_value): ... this new function. Use new
23398 argument to tell whether to save expression value.
23399 (expand_end_stmt_expr): Reset last_expr_type and
23400 last_expr_value if we don't have either.
23401 * tree-inline.c (declare_return_variable): Mark its use
23402 statement as addressable.
23403 * tree.h: Document new use of TREE_ADDRESSABLE.
23404 (expand_expr_stmt_value): Declare.
23406 2002-01-01 Tom Rix <trix@redhat.com>
23408 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
23409 rs6000_emit_allocate_stack.
23411 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
23413 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
23414 ${srcdir}/ginclude/ to every entry in extra_headers.
23415 * configure: Regenerate.
23416 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
23417 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
23418 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
23419 * ginclude/proto.h: Rename to config/convex/proto.h.
23421 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23423 * attribs.c (handle_vector_size_attribute): Use host_integerp
23424 and tree_int_cst; remove warnings.
23425 * caller-save.c (insert_restore): Add cast to get rid of warning.
23426 (insert_save): Likewise.
23427 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
23428 * regmove.c (find_matches): Add temporary var to kill a warning.
23430 2002-01-01 Douglas B Rupp <rupp@gnat.com>
23432 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
23433 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
23434 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
23435 (vms-dwarf2eh.o): Add Makefile rule.
23436 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
23437 * config/alpha/vms-dwarf2eh.asm: New file.
23439 * gcc.c (delete_if_ordinary): Delete all versions.
23441 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
23443 * config/mmix/mmix.md: Update FIXME to not mention
23445 (MMIX_rJ_REGNUM): New define_constants constant.
23446 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
23447 "*movdicc_real"): Adjust contraints formatting.
23448 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
23449 for branch prediction.
23450 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
23452 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
23453 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
23454 number. Delete related FIXMEs.
23455 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
23456 from number to MMIX_rJ_REGNUM.
23457 (TARGET_MASK_BRANCH_PREDICT): New.
23458 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
23459 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
23460 value. Add -mbranch-predict and -mno-branch-predict.
23461 (TARGET_VERSION): Drop date.
23462 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
23463 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
23464 for finding out global symbols.
23465 (mmix_asm_output_labelref): Revert condition for global symbol.
23466 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
23467 (mmix_print_operand_punct_valid_p): A '+' is valid.
23469 See ChangeLog.6 for earlier changes.