1 2001-09-09 Richard Henderson <rth@redhat.com>
3 * config/alpha/alpha.c (alpha_next_sequence_number): New.
4 (alpha_this_literal_sequence_number): New.
5 (alpha_this_gpdisp_sequence_number): New.
6 (some_operand, input_operand): Add HIGH.
7 (local_symbolic_operand): New.
8 (alpha_encode_section_info): New.
9 (alpha_legitimate_address_p): Allow LO_SUM.
10 (alpha_legitimize_address): Generate HIGH+LO_SUM.
11 (alpha_expand_mov): Likewise.
12 (secondary_reload_class): Check memory_operand not general_operand
14 (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
15 (alpha_expand_unaligned_store): Likewise.
16 (alpha_expand_unaligned_load_words): Likewise.
17 (alpha_expand_unaligned_store_words): Likewise.
18 (alpha_expand_block_clear): Likewise.
19 (print_operand): Handle %#, %*, %H.
20 (print_operand_address): Handle LO_SUM.
22 (alpha_does_function_need_gp): Use it.
23 (alpha_expand_block_move): Fix signed compare warnings.
24 (alpha_sa_mask, alpha_align_insns): Likewise.
25 * config/alpha/alpha-protos.h: Update.
26 * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
27 (MASK_EXPLICIT_RELOCS): New.
28 (TARGET_SWITCHES): Add -mexplicit-relocs.
29 (EXTRA_CONSTRAINT): Add 'T'.
30 (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
31 (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
32 (ENCODE_SECTION_INFO): Out line.
33 (REDO_SECTION_INFO_P): New.
34 (STRIP_NAME_ENCODING): New.
35 (ASM_OUTPUT_LABELREF): New.
36 (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
37 (PREDICATE_CODES): Update.
38 * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
39 call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
40 movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
41 builtin_setjmp_receiver_er, exception_receiver_1_er,
42 call_value_osf_1_er): New patterns.
43 (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
44 (movqi, movhi, movsi): Add explicit $31 base register to lda.
45 * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
46 (FINAL_PRESCAN_INSN): New.
48 Sat Sep 8 22:00:55 CEST 2001 Jan Hubicka <jh@suse.cz>
50 * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
52 2001-09-08 Andreas Jaeger <aj@suse.de>
54 * i386.h (TARGET_SWITCHES): Fix description.
56 2001-09-07 David Edelsohn <edelsohn@gnu.org>
58 * rs6000.c (num_insns_constant): Compute number of instructions
61 * doc/install.texi: Explain AIX exception handling work-around.
62 Update URL for AIX fixes.
64 2001-09-07 Jim Wilson <wilson@redhat.com>
66 * alias.c (clear_reg_alias_info): New.
67 * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
68 * rtl.h (clear_reg_alias_info): Declare.
70 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
72 * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
74 (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
75 (m16m,edivm,emulm): Change declaration to match definition.
77 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
79 * reload.c (push_reload): Check for subreg_lowpart_p instead of
80 SUBREG_BYTE being 0 when determining if the inner part of a subreg
83 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
85 * c-common.c (signed_or_unsigned_type): Handle machine mode types
86 which have no corresponding C type.
87 * fold_const.c (target_isinf,target_isnan,target_negative): Update
88 the representation of 64-bit doubles to work with 64-bit ints.
90 2001-09-07 Aldy Hernandez <aldyh@redhat.com>
92 * config/mips/mips.c (override_options): Do not override ISA when ABI
93 specified if MIPS_CPU_STRING_DEFAULT was specified.
95 2001-09-07 Richard Henderson <rth@redhat.com>
97 * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
98 (express_from_1): Wrap lines.
99 * rtlanal.c (commutative_operand_precedence): Rename from
100 operand_preference; export.
102 * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
103 (simplify_binary_operation): Invoke simplify_plus_minus on
104 (CONST (PLUS ...)) as well.
105 (struct simplify_plus_minus_op_data): New.
106 (simplify_plus_minus_op_data_cmp): New.
107 (simplify_plus_minus): Use them. Avoid infinite recursion with
108 simplify_binary_operation wrt CONST.
110 Fri Sep 7 11:52:30 2001 Kazu Hirata <kazu@hxi.com>
112 * h8300-protos.h (general_operand_dst_push): Remove.
113 * h8300.c (general_operand_dst_push): Likewise.
114 * h8300.h (OK_FOR_T): Likewise.
115 (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
116 * h8300.md (pushqi_h8300): New.
117 (pushqi_h8300hs): Likewise.
119 (pushhi_h8300): Likewise.
120 (pushhi_h8300hs): Likewise.
123 Fri Sep 7 12:56:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
125 * genattrtab.c (attr_printf): First arg is unsigned.
126 Clean up formatting of callers.
128 2001-09-06 Aldy Hernandez <aldyh@redhat.com>
130 * config/mips/mips.c (override_options): Allow abi32 with 64 bit
133 2001-09-07 Andreas Jaeger <aj@suse.de>
135 * i386.h (TARGET_SWITCHES): Fix descriptions.
137 2001-09-07 Matt Kraai <kraai@alumni.carnegiemellon.edu>
139 * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
141 2001-09-06 Ira Ruben <ira@apple.com>
143 Remove OP_IDENTIFIER.
144 * tree.def (OP_IDENTIFIER): Remove.
145 * tree.c (tree_node_kind enum): Remove op_id_kind.
146 (tree_node_kind_names): Remove "op_identifiers".
147 (make_node): Remove OP_IDENTIFIER test.
148 (build_op_identifier): Removed because it isn't being used.
149 * print-tree.c (print_node): Remove OP_IDENTIFIER case.
150 * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
152 2001-09-06 Richard Henderson <rth@redhat.com>
154 * simplify-rtx.c (simplify_binary_operation): Revert last change.
156 2001-09-06 Richard Henderson <rth@redhat.com>
158 * simplify-rtx.c (simplify_binary_operation): Simplify contents
161 2001-09-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
163 * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
164 number used for CR register.
166 Thu Sep 6 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
167 Joern Rennecke (amylaar@cygnus.com)
169 * h8300-protos.h (h8300_return_addr_rtx): New prototype.
170 * h8300.c (initial_offset): Handle offset between RP and FP.
171 (h8300_return_addr_rtx): New function.
172 * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
174 (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
175 (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
176 (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
177 (CAN_ELIMINATE, REGISTER_NAMES):
178 (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
180 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
182 Remove TYPE_NONCOPIED_PARTS.
183 * tree.h (TYPE_NONCOPIED_PARTS): Remove.
184 (struct tree_type): Remove noncopied_parts.
185 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
186 * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
187 (fixed_type_p): Remove.
188 (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
189 (expand_expr, MODIFY_EXPR): Likewise.
190 * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
191 * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
193 2001-09-06 Alan Modra <amodra@bigpond.net.au>
195 * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
197 (mask64_operand): Likewise.
198 (includes_rldic_lshift_p): Likewise.
199 (includes_rldicr_lshift_p): Likewise.
201 2001-09-05 Ziemowit Laski <zlaski@apple.com>
203 * objc/objc-act.c (build_message_expr): If a class method cannot
204 be found, do not issue a warning if a corresponding instance
205 method exists in the root class.
207 2001-09-05 Richard Henderson <rth@redhat.com>
209 * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
211 2001-09-05 Zack Weinberg <zack@codesourcery.com>
213 * function.c (ggc_mark_struct_function): Mark f->outer.
214 * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
215 * integrate.c (output_inline_function): ... not here.
217 Wed Sep 5 17:28:49 CEST 2001 Jan Hubicka <jh@suse.cz>
219 * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
221 * i386.c (size_cost): New static variable.
222 (override_function): Use size_cost when -Os is specified.
224 * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
225 properly; Use current_function_calls_eh_return.
226 (ix86_expand_epilogue): Avoid dummy optimize_size tests;
227 use leave to avoid depdendancy chain.
229 * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
230 get BB loop_depth instead of computing it from LOOP notes.
232 * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
234 2001-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
236 * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
237 * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
238 UNALIGNED_DOUBLE_INT_ASM_OP): Define
240 2001-09-05 Jeffrey A Law (law@cygnus.com)
241 Jason Merrill (jason@redhat.com)
243 * stor-layout.c (layout_type): Complain if an array's size can
244 not be represented in a size_t.
246 * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
248 2001-09-05 David Billinghurst <David.Billinghurst@riotinto.com>
250 * gcc.c: (process_command) Add parentheses around assignment
253 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
255 * config/mips/mips.c (save_restore_insns): Don't mark any register
256 save slots as unchanging if current_function_calls_eh_return.
258 2001-09-05 Richard Henderson <rth@redhat.com>
260 * config/alpha/alpha.c (alpha_legitimate_address_p): New.
261 * config/alpha/alpha-protos.h: Declare it.
262 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
263 (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
264 (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
265 (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
266 (REG_OK_FOR_BASE_P): Select one of the above.
268 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
270 * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
271 (crti.o): Prefix name of object file with $(T).
274 2001-09-05 David S. Miller <davem@redhat.com>
276 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
277 * config/sparc/linux64.h: Likewise.
279 2001-09-05 Andreas Jaeger <aj@suse.de>
281 * doc/invoke.texi (i386 Options): -mwide-multiply is not
282 available anymore, remove the documentation.
283 (i386 Options): Fix typo, cleanup index entries.
285 * prefix.c (concat): Remove, we can use the version from liberty.
287 2001-09-05 Richard Henderson <rth@redhat.com>
289 * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
290 New functions split out of md file expanders.
291 * config/alpha/alpha-protos.h: Declare them.
292 * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
294 2001-09-05 Neil Booth <neil@daikokuya.demon.co.uk>
296 * cppmacro.c (funlike_invocation_p): No need to restore context.
298 2001-09-04 Richard Henderson <rth@redhat.com>
300 * reload.c (push_reload): Export.
301 * reload.h (push_reload): Declare it.
303 * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
304 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
305 * config/alpha/alpha.c (alpha_legitimize_address): New.
306 (alpha_legitimize_reload_address): Likewise.
307 * config/alpha/alpha-protos.h: Declare them.
309 2001-09-04 Stan Shebs <shebs@apple.com>
311 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
312 * config/darwin.c (machopic_stub_name): Account for internally
313 generated lib calls such as memcpy.
315 2001-09-04 Richard Henderson <rth@redhat.com>
317 * unwind.h (_UA_END_OF_STACK): New flag.
318 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
320 Tue Sep 4 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
322 * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
324 2001-09-04 Richard Sandiford <rsandifo@redhat.com>
326 * config/mips/mips.c (save_restore_insns): Change base_offset to
327 fp_offset in second call to mips_emit_frame_related_store.
329 2001-09-04 Hans-Peter Nilsson <hp@axis.com>
331 * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
332 sometimes be represented as a NOTE of type
333 NOTE_INSN_DELETED_LABEL.
334 (Insns): Document NOTE_INSN_DELETED_LABEL.
336 2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
338 * c-common.h (tree_dump_index): Add more comments.
339 * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
340 (dump_option_value_info): New struct.
341 (dump_options): New array.
342 (dump_switch_p): Parse switch options symbolically.
343 * doc/invoke.texi (-fdump-ast): Rename to ...
344 (-fdump-tree): ... here. Document that options are symbolic, and
345 not all are applicable.
347 2001-09-04 David S. Miller <davem@redhat.com>
349 * config/sparc/sparc.md (define_splits): Kill constraints.
351 Cleanup redundant and unused insn attributes.
352 * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
353 binary, and move. Mark ialu as default.
354 (commented out define_function_unit "alu"): Kill.
355 (define_attr "use_clobbered"): Kill.
356 (whole file): Kill address insn type references. Replace
357 all unary/binary/move references with ialu.
358 * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
359 references. Replace TYPE_{UNARY,BINARY,MOVE} references with
362 Simplify length insn attribute and make more judicious use
363 of insn attribute defaulting.
364 * config/sparc/sparc.md (all insns with length > one): Mark as
365 insn type multi if real instructions, else use default if
366 it is a forced splitter.
367 (all insns with length == one): Use default insn length.
368 (all insns of type ialu): Use default insn type.
370 Fix erroneous insn attribute settings.
371 (addx): Set insn type to misc.
372 (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
373 const_umulsidi3_sp64): Set insn type to imul.
375 Track SFmode vs DFmode insns according to UltraSPARC
377 * config/sparc/sparc.md ("fptype"): New attribute, default
379 (all DFmode single insns): Mark as fptype "double".
381 2001-09-03 Jakub Jelinek <jakub@redhat.com>
383 * loop.c (express_from_1): Fix CONSTANT_P(a) case.
385 2001-09-03 Richard Henderson <rth@redhat.com>
387 * function.h (struct function): Add arg_pointer_save_area_init.
388 * function.c (expand_function_end): Init arg_pointer_save_area.
389 (get_arg_pointer_save_area): Do not init arg_pointer_save_area
390 when called from a nested function.
392 2001-09-02 Angela Marie Thomas <angela@cygnus.com>
394 * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
397 Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
399 * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
401 2001-09-01 Geoffrey Keating <geoffk@redhat.com>
403 * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
404 (emit_push_insn): Use specified padding direction when
405 STACK_PUSH_CODE is POST_INC.
407 * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
409 2001-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
411 * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
413 2001-09-01 Neil Booth <neil@daikokuya.demon.co.uk>
415 * cppinit.c (cpp_start_read): Free the imacros list as we
416 traverse it. Don't free the chains before returning.
417 (_cpp_push_next_buffer): Only try pushing buffers if we've
418 completed -imacros handling.
420 2001-08-31 Eric Christopher <echristo@redhat.com>
422 * gcc.c (handle_braces): Add explaination for abort.
424 2001-08-30 Roman Zippel <zippel@linux-m68k.org>
426 * expmed.c (store_bit_field): Update to patch from 2001-08-27:
427 move adjustment of bitpos instead.
429 2001-08-31 Zack Weinberg <zack@codesourcery.com>
431 * function.c: Remove all_functions. Make outer_function_chain
433 (init_function_start): Don't add new function structure to
435 (find_function_data, push_function_context_to,
436 pop_function_context_from, put_var_into_stack,
437 trampoline_address): Update for changed structure element names.
438 (push_function_context_to): Disentangle.
439 (free_after_compilation): Also free F.
440 (expand_dummy_function_end): Don't free cfun here.
441 (put_var_into_stack): Comment why we can't use find_function_data here.
442 (fix_lexical_addr, trampoline_address, ): Use find_function_data.
443 (mark_function_chain): Split into maybe_mark_struct_function and
444 ggc_mark_struct_function. Export the latter.
445 (init_function_once): Mark from cfun and outer_function_chain;
448 * function.h (struct function): Kill next_global. Rename next
449 to outer. All users updated to match.
450 (all_functions, outer_function_chain): Don't declare.
452 * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
453 * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
454 don't touch f->inlinable, after calling rest_of_compilation.
456 * tree.h: Forward-declare struct function. Prototype
457 ggc_mark_struct_function.
459 2001-08-31 Kazu Hirata <kazu@hxi.com>
461 * config/h8300/h8300.md (*andorhi3): Fix typos.
463 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
465 * calls.c (emit_library_call_value): Don't use a fixed
466 argument after VA_CLOSE, i.e. out of scope in traditional C.
468 * emit-rtl.c (gen_rtvec): Likewise.
470 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
472 * Makefile.in (c-pragma.o): Depend on output.h.
473 (reorg.o): Depend on except.h.
475 * c-pragma.c: Include output.h.
477 * reorg.c: Include except.h.
479 * unwind-dw2.c: Call __builtin_alloca, not alloca.
481 2001-08-31 Richard Henderson <rth@redhat.com>
483 * sched-deps.c (add_dependence): Don't elide dependancy if the
484 conditional used by insn is modified in elem.
486 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
488 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
490 2001-08-31 Diego Novillo <dnovillo@redhat.com>
492 * c-decl.c (c_decode_option): Skip '-f' prefix before calling
495 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
497 * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
499 (stormy16_asm_out_constructor): New function.
500 (TARGET_ASM_CONSTRUCTOR): Define.
501 (TARGET_ASM_DESTRUCTOR): Define.
503 2001-08-31 Andreas Jaeger <aj@suse.de>
505 * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
506 * loop.c (add_label_notes): Likewise.
507 * reload.c (find_reloads): Likewise.
508 * config/sh/sh.c (machine_dependent_reorg): Likewise.
510 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
512 * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
513 code here. Take _Unwind_{W,Sw}ord*.
514 (read_encoded_value_with_base): Use them.
515 * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
517 (extract_cie_info): Simplify read_?leb128 handling.
518 (execute_stack_op, execute_cfa_program): Likewise.
519 * unwind-dw2-fde.c (get_cie_encoding): Likewise.
521 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
523 * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
524 the frame pointer to pop the stack if convenient.
526 * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
527 Don't use post-increment before combine.
528 * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
529 a call-saved register.
531 2001-08-31 Andreas Jaeger <aj@suse.de>
533 * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
536 2001-08-30 Geoffrey Keating <geoffk@redhat.com>
538 * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
539 not DIV/MOD, of course.
541 2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
543 * rtl.def: Undo my patch commited 2001-08-27.
545 * genattrtab.c: Ditto.
549 * sched-int.h: Ditto.
551 * target-def.h: Ditto.
555 * haifa-sched.c: Ditto.
557 * sched-rgn.c: Ditto.
559 * sched-vis.c: Ditto.
561 * Makefile.in: Ditto.
563 * doc/md.texi: Ditto.
565 * doc/tm.texi: Ditto.
567 * doc/contrib.texi: Ditto.
569 * doc/gcc.texi: Ditto.
571 * genattrtab.h: Remove it.
573 * genautomata.c: Remove it.
575 * genattr.c: Undo my patch and Richard Henderson's patch commited
578 Thu Aug 30 19:22:15 2001 J"orn Rennecke <amylaar@redhat.com>
580 * config.gcc (h8300-*-elf*): New case.
581 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
582 (SUBTARGET_CPP_SPEC): Define.
583 (EXTRA_SPECS): Define.
584 (SUBTARGET_EXTRA_SPECS): Define.
585 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
586 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
588 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
590 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
591 (LIB2FUNCS_EXTRA): Define.
592 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
593 config/h8300/fixunssfsi.c: New file.
595 2001-08-30 Kazu Hirata <kazu@hxi.com>
597 * config/h8300/h8300.md (zero_extendqihi2): Changes to
598 define_expand to accomodate target-specific attributes.
599 (anonymous zero_extendqihi2 patterns): New.
601 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
603 * h8300.md (*andorhi3): New pattern.
605 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
607 * h8300.c (dosize): Fix test for "sub".
609 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
611 * c-typeck.c (pointer_diff): Try to eliminate common term before
614 2001-08-30 Nick Clifton <nickc@cambridge.redhat.com>
616 * config/arm/arm.c (arm_compute_initial_elimination_offset):
617 Account for the saves of the FP registers.
619 * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
620 (TEXT_SECTION_ASM_OP): Define.
621 (INIT_SECTION_ASM_OP): Define.
622 (FINI_SECTION_ASM_OP): Define.
623 (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
624 (RDATA_SECTION_FUNCITON): Provide prototype.
626 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
628 * reload1.c (move2add_note_store): Correct typo checking for
631 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
633 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
634 note should not be considered outside the libcall block.
636 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
638 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
640 2001-08-29 Kazu Hirata <kazu@hxi.com>
642 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
644 2001-08-29 Kazu Hirata <kazu@hxi.com>
646 * config/h8300/h8300-protos.h: Add a prototype for
648 * config/h8300/h8300.c (emit_logical_op): New.
649 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
656 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
658 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
659 comparison with rtx INTVAL.
660 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
662 * pa.h (FUNCTION_ARG_SIZE): Likewise.
664 2001-08-29 Kazu Hirata <kazu@hxi.com>
666 * config/h8300/lib1funcs.asm: Update the copyright. Fix
669 2001-08-29 Kazu Hirata <kazu@hxi.com>
671 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
672 (reg n) to (mem (pre_dec (reg n))
673 (anonymous movsi pattern): Likewise.
675 2001-08-29 Kazu Hirata <kazu@hxi.com>
677 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
679 2001-08-29 Kazu Hirata <kazu@hxi.com>
681 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
682 several special constants.
684 2001-08-29 Kazu Hirata <kazu@hxi.com>
686 * config/h8300/lib1funcs.asm: Fix comment typos.
688 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
690 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
691 Fix format specifier warnings.
693 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
694 inet_makeaddr, semctl): Prototype.
696 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
697 (save_restore_insns): Use base_offset, not gp_offset.
699 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
700 (ASM_OUTPUT_BYTE): Fix format specifier warning.
702 2001-08-29 Richard Henderson <rth@redhat.com>
704 * bb-reorder.c (function_tail_eff_head): New.
705 (record_effective_endpoints): Set it.
706 (fixup_reorder_chain): Use it.
708 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
710 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
712 2001-08-28 Dale Johannesen <dalej@apple.com>
714 * config/darwin.c (machopic_function_base_name): Add const
715 qualifier to a string.
716 (darwin_encode_section_info): Ditto.
718 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
720 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
723 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
725 * df.h (struct df): Add rts_order variable.
727 * df.c (df_visit_next_rts): New function.
728 (df_visit_next): Renamed to df_visit_next_rc
729 (df_analyse_1): Allocate/compute/free rts_order as well.
730 (df_rd_global_compute): Use df_visit_next_rc instead of
732 (df_ru_global_compute): Use df_visit_next_rts instead of
735 * flow.c (flow_reverse_top_sort_order_compute): New function.
737 * basic-block.h: Add prototype.
739 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
741 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
742 blocks, the BB_REACHABLE is now set, rather than aux being
743 non-NULL. Update the test to reflect this.
745 2001-08-28 Eric Christopher <echristo@redhat.com>
747 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
748 config/mips/crti.asm: Ditto.
750 2001-08-28 Eric Christopher <echristo@redhat.com>
751 Richard Henderson <rth@redhat.com>
753 * c-pragma.h (add_weak): Move prototype from here...
754 * output.h (add_weak): ... to here.
755 * varasm.c (add_weak): Fix typo.
756 * config/mips/crti.asm: New file.
757 * config/mips/crtn.asm: Ditto.
758 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
759 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
760 (INVOKE__main): Ditto.
761 (INIT_SECTION_ASM_OP): New.
762 (FINI_SECTION_ASM_OP): Ditto.
763 (STARTFILE_SPEC): Add crti.
764 (ENDFILE_SPEC): Add crtn.
765 * config/mips/elf64.h: Same.
766 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
768 * config/mips/vxworks.h: Ditto.
769 * config/mips/t-elf: Support crti and crtn.
771 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
773 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
776 2001-08-28 Richard Henderson <rth@redhat.com>
778 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
779 (one_cmplbi2 splitter): Remove redundant test.
781 2001-08-28 Dale Johannesen <dalej@apple.com>
783 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
785 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
787 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
789 2001-08-28 Stan Shebs <shebs@apple.com>
791 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
792 (UNALIGNED_SHORT_ASM_OP): Define.
793 (UNALIGNED_INT_ASM_OP): Define.
795 2001-08-28 Will Cohen <wcohen@redhat.com>
797 * config/rs6000/rs6000.md (store_multiple): Correct RTL
798 generation for first set.
800 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
802 * flow.c (redirect_edge_succ_nodup): Return new edge.
803 (try_simplify_condjump): Use new edge.
804 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
806 * cse.c (cse_basic_block): Skip note instructions.
808 2001-08-27 Richard Henderson <rth@redhat.com>
810 * combine.c (combine_simplify_rtx): Don't reverse condition
811 if there is no reverse for the condition.
812 (simplify_comparison): Don't simplify subregs from INT to FP.
814 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
815 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
816 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
817 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
818 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
819 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
821 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
823 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
824 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
826 (adddi_dilshr32, adddi_dishl32): Only data register can be
827 source for mem destination.
829 * expmed.c (store_bit_field): Ignore adjustment to bitpos
830 and use bitnum to decide about register move.
832 2001-08-27 Richard Henderson <rth@redhat.com>
834 * genattr.c (main): Emit state_t even when not doing scheduling.
836 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
837 Richard Henderson <rth@redhat.com>
839 * gcse.c (reg_first_set, reg_last_set): Replace with ...
840 (reg_avail_info, current_bb): ... these.
841 (oprs_unchanged_p, record_last_reg_set_info): Use them.
842 (compute_hash_table): Likewise.
844 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
846 * flow.c (verify_flow_info): Use checksums to verify edges.
848 2001-08-27 Richard Henderson <rth@redhat.com>
850 * genautomata.c (expand_automata): Always create a description.
852 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
854 * optabs.c (expand_binop): Correctly handle the carry in multiword
855 add/subtract operations.
857 2001-08-27 Fred Fish <fnf@be.com>
859 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
862 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
864 * reload.c (find_reloads_toplev): Back out this change:
866 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
868 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
869 mem if the address is a mode_dependent_address_p.
871 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
873 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
874 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
875 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
878 * genattr.c (main): New variable num_insn_reservations. Increase
879 it if there is DEFINE_INSN_RESERVATION. Output automaton based
880 pipeline hazard recognizer interface.
882 * genattrtab.h: New file.
884 * genattrtab.c: Include genattrtab.h.
885 (attr_printf, check_attr_test, make_internal_attr,
886 make_numeric_value): Move protypes into genattrtab.h. Define them
888 (num_dfa_decls): New global variable.
889 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
890 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
891 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
892 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
894 * genautomata.c: New file.
896 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
898 * sched-int.h: (curr_state): Add the external definition for
899 automaton pipeline interface.
900 (haifa_insn_data): Add comments for members blockage and units.
902 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
903 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
904 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
905 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
906 TARGET_SCHED_DFA_POST_CYCLE_INSN,
907 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
908 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
910 (TARGET_SCHED): Use the new macros.
912 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
913 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
914 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
915 dfa_bubble): New members in gcc_target.sched.
917 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
918 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
919 (insn_queue): Redefine it as pointer to array.
920 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
922 (max_insn_queue_index_macro_value): New variable.
923 (curr_state, dfa_state_size, ready_try): New varaibles for
925 (ready_element, ready_remove, max_issue): New function prototypes
926 for automaton interface.
927 (choose_ready): New function prototype.
928 (insn_unit, blockage_range): Add comments.
929 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
930 FUNCTION_UNITS_SIZE == 0.
931 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
932 actual_hazard, potential_hazard): Add comments.
933 (insn_cost): Use cost -1 as undefined value. Remove
934 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
936 (ready_element, ready_remove): New functions for automaton
938 (schedule_insn): Add new code for automaton pipeline interface.
939 (queue_to_ready): Add new code for automaton pipeline interface.
940 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
941 (debug_ready_list): Print newline when the queue is empty.
942 (max_issue): New function for automaton pipeline interface.
943 (choose_ready): New function.
944 (schedule_block): Add new code for automaton pipeline interface.
945 Print ready list before scheduling each insn.
946 (sched_init): Add new code for automaton pipeline interface.
947 Initiate insn cost by -1.
948 (sched_finish): Free the current automaton state and finalize
949 automaton pipeline interface.
951 * sched-rgn.c: Include target.h.
952 (init_ready_list, new_ready, debug_dependencies): Add new code for
953 automaton pipeline interface.
955 * sched-vis.c: Include target.h.
956 (get_visual_tbl_length): Add code for automaton interface.
957 (target_units, print_block_visualization): Add comments.
959 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
960 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
961 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
962 (getruntime.o, genautomata.o): New entries.
963 (genattrtab.o): Add new dependency file genattrtab.h.
964 (genattrtab): Add new dependencies. Link it with `libm.a'.
965 (getruntime.o, hashtab.o): New entries for canadian cross.
967 * doc/md.texi: Description of automaton based model.
969 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
971 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
972 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
973 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
974 TARGET_SCHED_DFA_POST_CYCLE_INSN,
975 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
976 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
977 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
979 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
980 MAX_DFA_ISSUE_RATE): New macro descriptions.
982 * doc/contrib.texi: Add dfa based scheduler contribution.
984 * doc/gcc.texi: Add more information about genattrtab.
986 2001-08-27 Diego Novillo <dnovillo@redhat.com>
988 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
991 2001-08-27 Richard Henderson <rth@redhat.com>
993 * function.c (expand_function_end): Don't init arg_pointer_save_area.
994 (get_arg_pointer_save_area): New. Create an init it here.
995 (fix_lexical_addr): Use it.
996 * function.h: Declare it.
997 * builtins.c (expand_builtin_setjmp_receiver): Use it.
998 * stmt.c (expand_nl_goto_receiver): Use it.
1000 2001-08-27 Richard Henderson <rth@redhat.com>
1002 * final.c (final_scan_insn): Don't enter APP_ON mode for
1005 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
1006 alignment for assemble_integer for DW_EH_PE_aligned.
1007 * except.c (output_function_exception_table): Likewise.
1009 2001-08-26 Andreas Jaeger <aj@suse.de>
1011 * c-tree.h: Add prototyp for c_sizeof_nowarn.
1013 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
1015 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
1017 2001-08-27 Alan Modra <amodra@bigpond.net.au>
1019 * config/rs6000/rs6000.c (mask_operand): Rewrite without
1021 (mask64_operand): Likewise.
1022 (rldic_operand): Delete.
1023 (includes_lshift64_p): Delete.
1024 (includes_rldic_lshift_p): New function.
1025 (includes_rldicr_lshift_p): New function.
1026 (print_operand): Don't call rldic_operand in case 'W'.
1027 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
1028 (includes_lshift64_p): Remove.
1029 (includes_rldic_lshift_p): Declare.
1030 (includes_rldicr_lshift_p): Declare.
1031 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
1032 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
1033 Replace match_operand rldic_operand predicate with
1034 const_int_operand. Replace includes_lshift64_p condition with
1035 includes_rldic_lshift_p.
1036 <ashldi3_internal 64 bit rldicr patterns>: New.
1038 2001-08-27 Andreas Jaeger <aj@suse.de>
1040 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
1041 * errors.c: Likewise.
1042 * final.c: Likewise.
1043 * dwarf2asm.c: Likewise.
1044 * doprint.c (checkit): Likewise.
1045 * diagnostic.c: Likewise.
1046 * collect2.c: Likewise.
1047 * calls.c: Likewise.
1048 * c-semantics.c (build_stmt): Likewise.
1049 * c-format.c (status_warning): Likewise.
1050 * c-errors.c (pedwarn_c99): Likewise.
1051 * builtins.c (validate_arglist): Likewise.
1052 * config/pj/pj.c (pj_printf): Likewise.
1053 * fix-header.c: Likewise.
1055 * gcov.c (fnotice): Likewise.
1056 * gensupport.c (message_with_line): Likewise.
1057 * mips-tfile.c: Likewise.
1058 * protoize.c (notice): Likewise.
1059 * read-rtl.c (fatal_with_file_and_line): Likewise.
1060 * rtl-error.c: Likewise.
1061 * tradcpp.c: Likewise.
1063 * cp/tree.c (build_min_nt): Likewise.
1064 (build_min): Likewise.
1065 * cp/lex.c: Likewise.
1066 * cp/errfn.c: Likewise.
1067 * cp/rtti.c (create_pseudo_type_info): Likewise.
1069 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
1071 * df.c (df_uses_record): Return after recording all uses
1074 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
1076 * df.c (df_insn_modify): Realloc the INSN table here, if
1077 necessary, here, too.
1079 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
1081 * config/mips/mips.c (mips_function_value): Handle complex return
1084 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
1086 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
1088 * reload.c (make_memloc): Copy result if it is still
1089 reg_equiv_memory_loc[regno] on return.
1090 (subst_reloads) [ENABLE_CHECKING]: Check that none of
1091 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
1092 reg_equiv_mem are modified by the substitutions.
1094 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
1096 * predict.c (expensive_function_p): New.
1097 * rtl.h (expensive_function_p): Declare.
1098 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
1099 (use_fast_prologue_epilogue): New static variable.
1100 (expand_prologue): Set it; emit short prologues if unset.
1101 (expand_epilogue): Likewise.
1103 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
1105 * config.gcc: Add stormy16-*-elf case.
1106 * config/stormy16/stormy-abi: New file.
1107 * config/stormy16/stormy16-lib2.c: New file.
1108 * config/stormy16/stormy16-protos.h: New file.
1109 * config/stormy16/stormy16.c: New file.
1110 * config/stormy16/stormy16.h: New file.
1111 * config/stormy16/stormy16.md: New file.
1112 * config/stormy16/t-stormy16: New file.
1114 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
1116 * i386.h (no-accumulate-outgoing-args): Use proper mask.
1118 2001-08-24 David Edelsohn <edelsohn@gnu.org>
1120 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
1121 descriptor members are pointer size, not constant 4.
1122 * config/rs6000/rs6000.md (define_splits): Remove more unused
1125 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1127 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1129 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
1131 * cp/rtti.c (VPARAMS): Fix parameter.
1133 2001-08-24 Zack Weinberg <zackw@panix.com>
1135 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
1137 (mode_for_extraction): No need for #ifdefs. Add default-case abort
1139 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
1140 in if controlling use of insv.
1141 (extract_bit_field): Likewise, for extv and extzv.
1143 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
1145 * i386.md (movcc peep2): Fix load of 0.
1147 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1149 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
1150 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
1152 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
1154 * c-pragma.h: Move weak_syms and weak_decls...
1155 * varasm.c: ...here. Now static.
1156 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
1157 depend on HANDLE_PRAGMA_WEAK.
1159 * c-common.c (c_alignof, c_alignof_expr): Move here...
1160 * c-typeck.c: ...from here.
1161 * c-tree.h, c-common.h: Adjust.
1163 2001-08-23 Bernd Schmidt <bernds@redhat.com>
1165 * config/ia64/ia64.c (rws_update): If !pred, set write_count
1166 instead of incrementing it.
1168 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
1169 asm ready, don't try to move them all into the same array element.
1171 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
1173 * function.c (thread_prologue_and_epilogue_insns): Avoid
1174 fallthru flag on edge to exit.
1176 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
1178 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
1181 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
1183 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
1184 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
1185 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
1188 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
1190 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
1191 replace "GNU CC" with "GCC".
1193 2001-08-23 Richard Henderson <rth@redhat.com>
1195 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
1196 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
1197 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
1198 Need GR between FR and not GR_AND_FR.
1199 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
1200 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
1201 AR regs before GR regs.
1202 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
1203 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
1204 (REGISTER_MOVE_COST): Update.
1205 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
1207 2001-08-23 Richard Henderson <rth@redhat.com>
1209 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
1212 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
1214 * reload1.c (emit_reload_insns): Don't look for notes
1215 on a NULL store_insn.
1217 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1219 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
1220 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
1221 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
1222 format specifier warnings.
1223 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
1225 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
1227 * config/i386/i386-protos.h: Correct declaration of
1228 i386_pe_asm_named_section.
1230 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1232 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
1234 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
1236 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
1238 * cpperror.c (print_location): Don't show _Pragma.
1239 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
1240 and file change callback generation here.
1241 (stack_include_file): Update use of cpp_push_buffer.
1242 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
1243 (struct cpp_buffer): Remove type, pfile members.
1244 * cppinit.c (cpp_handle_option): Use free_chain.
1245 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
1246 (skip_escaped_newlines, get_effective_char, lex_percent): Take
1247 a cpp_reader rather than a cpp_buffer.
1248 (skip_escaped_newlines, get_effective_char, skip_block_comment,
1249 skip_line_comment, parse_string, lex_percent, lex_dot,
1250 _cpp_lex_token): Update accordingly.
1251 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
1253 (cpp_push_buffer): Update prototype.
1254 (run_directive): Update use of cpp_push_buffer.
1255 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
1256 handle_assertion): Update use of run_directive.
1257 * cpplib.h (enum cpp_buffer_type): Remove.
1258 (cpp_push_buffer): Update prototype.
1259 * fix-header.c (read_scan_file): Update.
1261 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1263 * gcc.c (struct prefix_list): Change prefix to const char *.
1265 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1267 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
1269 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
1271 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
1274 * jump.c (squeeze_notes): Take parms by reference. Handle END being
1277 * ifcvt.c (dead_or_predicable): Adjust.
1278 * loop.c (find_and_verify_loops): Adjust.
1279 * stmt.c (expand_end_case): Adjust.
1280 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
1281 head and end insn pointers in the basic block, not just local copies.
1282 (merge_blocks_move_predecessor_nojumps): Likewise.
1284 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
1286 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
1287 bitmap.h, builtin-types.def, builtins.c, builtins.def,
1288 c-aux-info.c, c-common.c, c-common.def, c-common.h,
1289 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
1290 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
1291 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
1292 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
1293 conditions.h, config.gcc, configure.frag, configure.in,
1294 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
1295 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
1296 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
1297 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
1298 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
1299 emit-rtl.c, errors.c, errors.h, except.c, except.h,
1300 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
1301 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
1302 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
1303 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
1304 gencheck.c, gencodes.c, genconfig.c, genemit.c,
1305 genextract.c, genflags.c, gengenrtl.c, genmultilib,
1306 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
1307 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
1308 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
1309 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
1310 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
1311 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
1312 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
1313 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
1314 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
1315 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
1316 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
1317 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
1318 params.h, predict.c, predict.def, predict.h, prefix.c,
1319 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
1320 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
1321 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
1322 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
1323 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
1324 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
1325 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
1326 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
1327 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
1328 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
1329 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
1330 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
1331 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
1332 xcoffout.h: replace "GNU CC" with "GCC".
1334 2001-08-21 Richard Henderson <rth@redhat.com>
1336 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
1337 (final_scan_insn): Consider jump tables data even if we have no
1338 independant text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
1340 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
1341 (ASM_OUTPUT_CASE_END): Remove.
1342 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
1343 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
1344 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
1346 2001-08-21 Richard Henderson <rth@redhat.com>
1348 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
1349 at barrier insns. Emit stop bits before barriers.
1351 * flow.c (flow_find_cross_jump): Don't consider unconditional
1352 return insns for commoning.
1354 * final.c (compute_alignments): Fix typo.
1356 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
1357 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
1358 (store_bit_field): Use mode_for_extraction more places.
1359 (extract_bit_field): Likewise.
1361 2001-08-21 Zack Weinberg <zackw@panix.com>
1363 * caller-save.c: Don't include insn-codes.h.
1364 (reg_save_code, reg_restore_code): Make arrays of int.
1365 All uses updated to match.
1366 (insert_save, insert_restore): No need to initialize "code"
1367 variable upon declaration.
1368 * Makefile.in: update dependencies; fix typo in clean rule.
1370 2001-08-21 Richard Henderson <rth@redhat.com>
1372 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
1373 (merge_if_block): Handle fallout from same.
1375 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1377 * builtins.c (type_to_class): Fix typo in last change.
1379 2001-08-21 Richard Henderson <rth@redhat.com>
1381 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
1382 ia64_asm_output_label.
1384 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
1385 copy of gp while the real gp register contains garbage.
1387 2001-08-21 Zack Weinberg <zackw@panix.com>
1389 * expmed.c (mode_for_extraction): New function.
1390 (store_bit_field, extract_bit_field): Use it.
1391 * expr.h: Prototype it and provide an enum for its first argument.
1393 * combine.c, function.c, recog.c: Don't include insn-codes.h.
1394 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
1395 and digging through the insn_data tables.
1396 * Makefile.in: Update dependencies.
1398 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
1400 * cppfiles.c (stack_include_file): line-map.c now handles include
1402 (handle_missing_handler): Similarly.
1403 (_cpp_execute_include): Similarly.
1404 (_cpp_pop_file_buffer): Similarly.
1405 * cpphash.h (struct cpp_reader): Remove system_include_depth,
1406 buffer_stack_depth and include_depth.
1407 * cpplib.c (do_include_common): line-map.c now handles include depth.
1408 (cpp_push_buffer): Similarly.
1409 (_cpp_pop_buffer): Similarly.
1410 * cppmacro.c (builtin_macro): Update.
1411 * line-map.c (init_line_maps): Set depth.
1412 (add_line_map): Increment "used" earlier. Update and use the
1414 (trace_include): Use the include depth.
1415 * line-map.h (struct line_maps): New member depth.
1417 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1419 * cppfiles.c (stack_include_file): Don't handle -H here.
1420 * cppinit.c (cpp_start_read): Set include tracing after
1421 cpp_post_options and after stacking the main file.
1422 * line-map.c (trace_include): New.
1423 (init_line_maps, add_line_map): Update.
1424 * line-map.h (struct line_maps): New member trace_includes.
1426 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1428 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
1429 * cppfiles.c (stack_include_file): Only stack a file if there
1430 is something to do. Return a boolean indicating whether a
1431 buffer was stacked or not.
1432 (_cpp_execute_include): Similarly.
1433 (_cpp_read_file): Similarly.
1434 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
1436 2001-08-21 Sam Steingold <sds@gnu.org>
1438 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
1439 (RECACHE): keep obufp_before_macroname up to date
1441 2001-08-21 Zack Weinberg <zackw@panix.com>
1443 * stmt.c: Don't include insn-codes.h.
1444 (expand_end_case): Machine specific logic moved to expr.c.
1445 No need to worry about __builtin_classify_type.
1446 (check_for_full_enumeration_handling, emit_case_nodes):
1449 * builtins.o (expand_builtin_classify_type): Split up so code
1450 can be shared with fold_builtin_classify_type.
1451 (type_to_class, fold_builtin_classify_type): New functions.
1452 (fold_builtins): Handle __builtin_classify_type.
1454 * expr.c (do_tablejump): Now static.
1455 (case_values_threshold, try_casesi, try_tablejump): New;
1456 code mostly from stmt.c (expand_end_case).
1457 (expr.h): Update prototypes.
1459 * Makefile.in (stmt.o): Update dependencies.
1461 2001-08-21 Will Cohen <wcohen@redhat.com>
1463 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
1464 declaration of variable i.
1465 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
1466 declaration of variable i.
1468 2001-08-21 Richard Henderson <rth@redhat.com>
1470 * crtstuff.c: Fix thinko last change. Move list tails to start
1471 of CRT_END section. Tidy ifdefs.
1472 (__EH_FRAME_BEGIN__): Always static for ELF.
1473 (__do_global_ctors_1): Rename from __frame_dummy.
1474 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
1475 name change; don't hide __EH_FRAME_BEGIN__.
1477 2001-08-21 Richard Henderson <rth@redhat.com>
1479 * gdbinit.in: Move break on exit after break on fancy_abort.
1481 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
1484 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1486 * cpphash.h (_cpp_push_next_buffer): New.
1487 * cppinit.c (do_includes): Remove.
1488 (push_include, free_chain, _cpp_push_next_buffer): New.
1489 (cpp_start_read): Use them to rework command line option handling.
1490 (cpp_handle_option): Combine handling of -include and -imacros.
1491 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
1492 appropriate. Always insert missing \n at EOF.
1493 * cpplib.c (start_directive): Get the directive position right.
1494 * cppmain.c (cb_file_change): Always print the first line, unless
1497 2001-08-20 Andreas Jaeger <aj@suse.de>
1499 * profile.c (compute_branch_probabilities): Remove extra new-line
1501 * flow.c (verify_flow_info): Likewise.
1503 2001-08-20 Diego Novillo <dnovillo@redhat.com>
1505 * basic-block.h (basic_block): Add new field 'flags'.
1506 (BB_REACHABLE): Define.
1507 (expunge_block): Declare.
1508 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
1509 (EXIT_BLOCK_PTR): Ditto.
1510 (expunge_block): Remove static declaration.
1511 (cleanup_cfg): Clear bb->aux on every basic block.
1512 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
1513 computing reachability.
1514 (delete_unreachable_blocks): Delete block b if b->flags has
1517 2001-08-20 Diego Novillo <dnovillo@redhat.com>
1519 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
1521 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1523 * sparc.c (sparc_variable_issue): Fix typo in last change.
1525 2001-08-20 Richard Henderson <rth@redhat.com>
1527 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
1529 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
1531 * pa.h (RETURN_IN_MEMORY): Improve comment.
1533 2001-08-20 Janis Johnson <janis187@us.ibm.com>
1535 * doc/invoke.texi (Profiling options): Clarify the interactions
1536 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
1538 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
1540 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
1543 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1545 * gcc.c (make_relative_prefix): Allocate a sufficiently large
1548 2001-08-20 Richard Henderson <rth@redhat.com>
1550 * final.c (end_final): Fix typo last change.
1552 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
1554 * cppinit.c (init_standard_includes): The returned buffer
1555 is already malloc-ed.
1556 * gcc.c (add_prefix): Similarly.
1557 * prefix.c (translate_name): Update to support clear buffer
1559 (update_path): Similarly. Be sure to free any newly allocated
1560 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
1562 * prefix.h (update_path): Update prototype and document.
1563 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
1564 up and update to new buffer ownership rules.
1565 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
1567 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
1569 * final.c (compute_alignments): New function.
1570 (init_insn_lengths): Do not care label_align.
1571 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
1572 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
1573 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
1574 (shorted_branches): Realloc label_align array; do
1575 not call init_insn_lengths; Do not care about loop alignments.
1576 * output.h (compute_alignments): Declare.
1577 * toplev.c (rest_of_compilation): Call compute_alignments.
1578 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
1580 * predict.c (block_info_def): Add npredecesors, remove nvisited;
1581 change visited to tovisit.
1582 (propagate_freq): Use faster traversing algorithm.
1583 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
1584 to tovisit; reverse meaning.
1586 * predict.c (struct block_info_def): Remove nvisited.
1587 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
1588 (estimate_bb_frequencies): Call mark_dfs_back_edges.
1590 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
1592 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
1593 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
1594 (TARGET_FUSED_MADD): New.
1595 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
1596 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
1597 the multiply-add instructions.
1599 2001-08-19 Richard Henderson <rth@redhat.com>
1601 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
1602 is aligned to pointer size.
1604 2001-08-19 Richard Henderson <rth@redhat.com>
1606 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
1607 display markers during final schedule.
1609 2001-08-19 Richard Henderson <rth@redhat.com>
1611 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
1613 2001-08-19 Richard Henderson <rth@redhat.com>
1615 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
1617 (ASM_NAME_TO_STRING): Remove.
1618 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
1619 in the same string. Remove support for expressions.
1621 2001-08-19 Richard Henderson <rth@redhat.com>
1623 * config/i386/i386.md (tablejump): Make an expander; handle
1624 pic relative addressing here.
1625 (tablejump_1): Rename from tablejump_pic.
1628 2001-08-19 Richard Henderson <rth@redhat.com>
1630 * regclass.c (fix_register): Fix typo.
1632 2001-08-18 Richard Henderson <rth@redhat.com>
1634 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
1635 (struct _Unwind_Context): Expand br_loc to hold it.
1636 (uw_frame_state_for): Handle leaf functions better.
1637 (uw_update_reg_address): Update for br_loc change.
1639 2001-08-18 Richard Henderson <rth@redhat.com>
1641 * crtstuff.c: Move list heads before code that uses them.
1642 (__JCR_LIST__): Remove initial null.
1643 (frame_dummy, __frame_dummy): Do java registration here ...
1644 (__do_global_ctors_aux): ... not here.
1646 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
1647 (__do_global_dtors_aux): Update to match.
1648 (__JCR_LIST__, __do_jv_register_classes): New.
1650 * config/ia64/crtend.asm (__JCR_END__): New.
1651 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
1652 instead of an indirect LTOFF22 reloc.
1654 2001-08-18 Richard Henderson <rth@redhat.com>
1656 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
1657 * regclass.c (init_reg_sets_1): Fix typo.
1658 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
1659 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
1660 (ia64_compute_frame_size): Make ar.unat live when in use.
1661 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
1662 for ar.pfs; remove ar.unat handling.
1663 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
1665 (PREDICATE_CODES): Add ar_pfs_reg_operand.
1666 * config/ia64/ia64-protos.h: Update decls.
1667 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
1668 (sibcall_pic): Likewise.
1670 2001-08-18 Richard Henderson <rth@redhat.com>
1672 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
1673 pred_rel_mutex when searching for insn_group_barrier.
1674 * config/ia64/ia64.md (cycle_display): Combine the expander
1677 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
1678 bit before asm as needed.
1680 2001-08-18 Richard Henderson <rth@redhat.com>
1682 * timevar.def (TV_MACH_DEP): New.
1683 * toplev.c (rest_of_compilation): Use it.
1684 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
1686 2001-08-18 Zack Weinberg <zackw@panix.com>
1688 * unwind-dw2.c (execute_stack_op): Add default aborts to
1689 the inner switches to prevent warnings.
1691 2001-08-18 Richard Henderson <rth@redhat.com>
1693 * timevar.h (struct timevar_time_def): Change element type to float.
1694 (ticks_to_msec, clocks_to_msec): Likewise.
1695 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
1696 (get_time): Likewise.
1697 (timevar_print): Adjust zero check and printing to match.
1699 2001-08-18 Zack Weinberg <zackw@panix.com>
1701 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
1702 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
1703 Eliminate overfull or underfull hboxes.
1705 2001-08-18 Zack Weinberg <zackw@panix.com>
1707 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
1709 2001-08-18 Zack Weinberg <zackw@panix.com>
1711 * haifa-sched.c: Convert to target hooks. Macros replaced
1712 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
1713 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
1714 MD_SCHED_FINISH, and HAVE_cycle_display.
1715 * target-def.h (TARGET_SCHED_ADJUST_COST,
1716 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
1717 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
1718 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
1719 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
1720 New hook #defines to be overridden.
1721 (TARGET_SCHED): Bring them all together.
1722 (TARGET_INITIALIZER): Update.
1723 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
1724 instead of 'struct rtx_def *' throughout.
1725 (struct sched): New set of hooks for the scheduler.
1726 * Makefile.in (haifa-sched.o): Depend on target.h.
1727 * doc/tm.texi: Document the new scheduler hooks, together in
1728 their own section, instead of scattered around.
1729 Fix a bunch of underfull/overfull hboxes.
1731 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
1732 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
1733 sparc.h: Don't define any of the old scheduler macros.
1735 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
1736 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
1737 sparc.c: Create hook functions from code extracted from
1738 corresponding target header, or make existing hooks static, as
1739 appropriate. Set the appropriate entries in targetm.
1741 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
1742 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
1743 rs6000-protos.h, s390-protos.h, sparc-protos.h:
1744 Remove prototypes for functions which are now static.
1746 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
1747 related gunk; the Haifa scheduler is now the only choice.
1749 2001-08-18 Zack Weinberg <zackw@panix.com>
1751 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
1752 * genopinit.c: Put floating point divide insns in sdiv_optab.
1753 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
1754 * config/gofast.h, config/c4x/c4x.h,
1755 config/ia64/hpux_longdouble.h, config/mips/mips.h,
1756 config/pa/long_double.h, config/rs6000/sysv4.h,
1757 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
1758 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
1759 (init_optabs): Use init_optabv for overflow-trapping optabs.
1760 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
1761 cmp_optab RTX codes so have_insn_for can find them.
1763 * optabs.c (expand_simple_binop, expand_simple_unop,
1764 have_insn_for, gen_sub3_insn): New interfaces.
1765 * expr.h: Prototype new functions.
1766 (enum optab_methods): Move here from optabs.h.
1768 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
1769 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
1770 Use new functions instead of working directly with optabs.
1771 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
1772 unroll.c: Don't include optabs.h.
1773 * caller-save.c, combine.c, function.c, stmt.c: Just include
1774 insn-codes.h, not optabs.h.
1775 * Makefile.in: Update dependencies.
1777 * combine.c (make_compound_operation, simplify_comparison):
1778 Fix typos testing for this or that instruction.
1780 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1782 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
1783 generating libgcc.a.
1785 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1787 * except.c (TYPE_HASH): Delete.
1789 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
1792 * tree.c (TYPE_HASH): Delete.
1794 * tree.h (TYPE_HASH): Define.
1796 2001-08-18 Graham Stott <grahams@redhat.com>
1798 * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
1800 (adddi3_internal_2+2): Likewise.
1801 (eh_set_lr_di+1): Likewise.
1803 2001-08-17 Richard Henderson <rth@redhat.com>
1805 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1806 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
1807 * dwarf2asm.c: ... here.
1808 * dwarfout.c: Remove them.
1810 * varasm.c (assemble_integer): Add align parameter.
1811 (assemble_real, output_constant, output_constructor): Likewise.
1812 * output.h: Update decls.
1813 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
1814 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
1815 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
1816 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
1817 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
1820 * final.c (end_final): Abort profile block generation if we
1821 havn't layed it out properly.
1822 * output.h (assemble_eh_integer): Remove stale decl.
1823 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
1825 (assemble_integer): Handle unaligned data.
1826 (assemble_real): Abort on unaligned data.
1827 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
1829 (default_dtor_section_asm_out_destructor): Use assemble_align.
1830 (default_named_section_asm_out_constructor): Likewise.
1831 (default_ctor_section_asm_out_constructor): Likewise.
1832 * config/darwin.c (machopic_asm_out_constructor): Likewise.
1833 (machopic_asm_out_destructor): Likewise.
1834 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
1835 (nextstep_asm_out_destructor): Likewise.
1836 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
1837 (vms_asm_out_destructor): Likewise.
1839 2001-08-17 Richard Henderson <rth@redhat.com>
1841 * config/mips/iris6.h (TARGET_IRIX6): New.
1842 (current_section_name, current_section_flags): New.
1843 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
1844 (MAX_OFILE_ALIGNMENT): New.
1845 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
1846 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
1847 (copy_file_data): Split out from
1848 (mips_asm_file_end): ... here.
1849 (mips_asm_file_start): Remove extra .section directive. Use
1850 tmpfile instead of mips_make_temp_file.
1851 (mips_unique_section): Use const char * as needed for warnings.
1852 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
1853 re-add align parameter.
1854 (iris6_asm_named_section): New.
1855 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
1856 (iris6_asm_output_align, iris6_section_align_1): New.
1857 (iris6_asm_file_start, iris6_asm_file_end): New.
1858 * config/mips/mips-protos.h: Update decls.
1860 2001-08-17 Janis Johnson <janis187@us.ibm.com>
1862 * doc/install.texi (Install GCC): Add links to build status pages.
1864 (Final install): Ditto; request updates for specific info
1866 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
1868 * cpperror.c (print_location): Don't take a file name; use the
1870 (_cpp_begin_message): Similarly.
1871 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
1872 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
1873 (cpp_pedwarn_with_file_and_line): Remove.
1874 * cppfiles.c (stack_include_file): Update; set filename to stdin
1875 here when appropriate.
1876 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
1877 (_cpp_begin_message): Don't take a file name.
1878 * cppinit.c: Add comment.
1879 * cpplex.c: Fix end-of-directive indicator.
1880 * cpplib.c: Don't include intl.h.
1881 (run_directive, do_diagnostic): Update.
1882 (do_line): Update to not use nominal_fname.
1883 (cpp_push_buffer): Don't take a filename.
1884 * cpplib.h (struct ht): Remove.
1885 (cpp_push_buffer): Don't take a filename.
1886 (cpp_pedwarn_with_file_and_line): Remove.
1887 * cppmacro.c (struct cpp_macro): Remove file.
1888 (builtin_macro): Update.
1889 (_cpp_create_definition): Update.
1890 * cppmain.c: Correct comment.
1891 * fix-header.c (read_scan_file): Update.
1893 2001-08-17 Kazu Hirata <kazu@hxi.com>
1895 * sbitmap.c: Fix comment formatting.
1896 * sched-deps.c: Likewise.
1897 * sibcall.c: Likewise.
1898 * simplify-rtx.c: Likewise.
1900 * ssa-ccp.c: Likewise.
1901 * stor-layout.c: Likewise.
1902 * timevar.c: Likewise.
1903 * toplev.c: Likewise.
1904 * unwind-dw2.c: Likewise.
1905 * unwind-dw2-fde.c: Likewise.
1906 * varasm.c: Likewise.
1908 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
1910 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
1911 or larger than an integer in memory.
1913 2001-08-17 Zack Weinberg <zackw@panix.com>
1915 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
1916 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
1917 * rtl.h: Don't forward-declare union tree_node here. Don't
1918 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
1919 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1920 and tree respectively.
1921 * tree.h: Don't forward-declare struct rtx_def here. Don't
1922 typedef tree here. Change all uses of struct rtx_def *,
1923 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1924 and tree respectively.
1926 2001-08-17 Richard Henderson <rth@redhat.com>
1928 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
1929 config/mips/openbsd.h: Fix typos last change.
1931 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1933 * doc/invoke.texi (Optimize Options): The default for
1934 -finline-limit is 600.
1936 2001-08-17 Richard Henderson <rth@redhat.com>
1938 * varasm.c (text_section): Allow TEXT_SECTION to override the
1939 printing of TEXT_SECTION_ASM_OP.
1940 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
1941 (DATA_SECTION, BSS_SECTION): Remove.
1942 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
1943 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
1944 Rename from s/_NAME//.
1945 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
1946 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
1947 (TEXT_SECTION): ... here. New.
1948 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
1949 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
1950 * config/mips/openbsd.h: Likewise.
1951 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
1952 (mips_asm_file_end): Likewise test.
1953 (mips_output_function_epilogue): Likewise. Switch back to data
1954 section after emitting the function.
1956 * doc/tm.texi (Sections): Document TEXT_SECTION.
1958 2001-08-17 Richard Henderson <rth@redhat.com>
1960 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
1961 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
1963 2001-08-17 Richard Henderson <rth@redhat.com>
1965 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
1966 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
1967 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
1968 Add aligned attribute.
1970 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
1972 * config/sh/sh.md: Add modes to unspecs in first insn to match
1973 those in the second.
1975 * Makefile.in: Fix collect2 copy for Cygwin.
1977 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
1979 Install the proper patch.
1980 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
1981 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
1982 (expand_function_start): Likewise.
1983 * stmt.c (expand_decl): Likewise.
1984 * varasm.c (make_decl_rtx): Likewise.
1986 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
1988 * final.c: Undo my previous accidental checkin.
1989 * output.h: Likewise.
1990 * tm.texi: Likewise.
1992 2001-08-16 Richard Henderson <rth@redhat.com>
1994 * varasm.c (named_section_flags): Remove align parameter.
1995 * varasm.c, dwarf2out.c: Update all callers.
1996 * output.h: Update prototypes.
1998 * target.h (target.asm_out.named_section): Remove align parameter.
1999 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
2000 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
2001 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
2002 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
2003 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
2005 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
2006 (get_named_section_flags, set_named_section_flags): New.
2007 (named_section_flags): Use them.
2008 (named_section): Do decl vs section flags check here...
2009 (default_section_type_flags): ... not here.
2010 (init_varasm_once): Create in_named_htab.
2011 (resolve_unique_section): Mark reloc unused.
2013 2001-08-16 Richard Henderson <rth@redhat.com>
2015 * varasm.c (force_const_mem): Keep pool alignment in bits.
2016 (output_constant_pool): Use assemble_align.
2018 2001-08-16 Zack Weinberg <zackw@panix.com>
2020 * doc/tm.texi: Remove extra @table command.
2022 2001-08-16 Zack Weinberg <zackw@panix.com>
2024 * final.c (shorten_branches): Clear the end of the label_align
2025 array only if we made it larger. Break up messy expressions
2028 * diagnostic.c (internal_error): Check for error recursion
2029 before doing ICE suppression.
2031 * timevar.c: Timing variables now count in milliseconds.
2032 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
2033 (get_time): Not here.
2034 (timevar_print): Don't print any timer whose user, cpu, and
2035 wall times are all zero as displayed.
2036 * timevar.h: Update comment aboout units. Make timevar
2039 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
2041 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
2042 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
2043 (expand_function_start): Likewise.
2044 * stmt.c (expand_decl): Likewise.
2045 * varasm.c (make_decl_rtx): Likewise.
2047 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
2049 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
2050 (finalize_record_size): Don't set TYPE_USER_ALIGN.
2052 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2054 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
2057 2001-08-16 Andreas Jaeger <aj@suse.de>
2059 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
2062 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
2064 * rtl.h (only_sets_cc0_p): New prototype.
2065 * jump.c (sets_cc0_p): Handle INSN.
2066 (only_sets_cc0_p): New function.
2067 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
2068 (tidy_fallthru_edge): Likewise.
2069 * integrate.c (copy_insn_list): Likewise.
2070 * unroll.c (unroll_loop): Likewise.
2071 (copy_loop_body): Likewise.
2073 2001-08-15 Jason Eckhardt <jle@redhat.com>
2075 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
2077 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
2079 * predict.c (struct block_info_def): Remove nvisited.
2080 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
2081 (estimate_bb_frequencies): Call mark_dfs_back_edges.
2083 * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
2084 (ix86_adjust_cost): Teach scheduler that latency to load operand can
2087 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
2089 * predict.def: Update hitrates.
2091 2001-08-15 Richard Henderson <rth@redhat.com>
2093 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
2095 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
2097 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
2098 note from its associated jump.
2100 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2102 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
2103 also on 64-bit s390x targets.
2105 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2107 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
2109 (arm_expand_prologue): Handled nested functions which take a
2110 variable argument list.
2111 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
2112 macro with an invocation of
2113 arm_compute_initial_elimination_offset.
2114 * config/arm/arm-protos.h: Prototype
2115 arm_compute_initial_elimination_offset.
2117 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2119 * doc/install.texi (Specific, avr): Fix markup.
2120 (Specific, c4x): Ditto.
2122 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2124 * predict.c (dump_prediction): Change `bool' parameter to `int'.
2126 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
2128 * Makefile.in (OBJS): Add rtl-error.o
2129 (rtl-error.o): New rule.
2130 (diagnostic.o): Adjust dependency.
2131 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
2132 error_for_asm, _fatal_insn, _fatal_insn_not_found,
2133 warning_for_asm): Move to...
2134 rtl-error.c: ...here. New file.
2136 2001-08-14 Richard Henderson <rth@redhat.com>
2138 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
2139 if USING_SJLJ_EXCEPTIONS.
2141 2001-08-14 Steve Ellcey <sje@cup.hp.com>
2143 * tlink.c (scan_linker_output): Check string for unsatisfied in
2144 addition to undefined and unresolved.
2146 2001-08-14 Graham Stott <grahams@redhat.com>
2148 * libgcc2.c (*): Replace EH_FRAME_SECTION with
2149 EH_FRAME_SECTION_NAME.
2151 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
2153 * genattrtab.c (simplify_test_exp_in_temp): New function.
2154 (simplify_test_exp): Avoid explicit use of temporary obstack.
2155 (simplify_cond, insert_right_side, evaluate_eq_attr,
2156 simplify_and_tree, simplify_or_tree, eliminate_known_true):
2157 Use simplify_test_exp_in_temp.
2158 (optimize_attrs): Iterate until expression stabilizes.
2160 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
2162 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
2163 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
2165 2001-08-13 Richard Henderson <rth@redhat.com>
2167 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
2168 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
2169 * config/arm/conix-elf.h: Likewise.
2171 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
2173 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
2175 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
2177 * gcse.c (hash_scan_set): Expressions that are set as part of
2178 jump instructions are not available.
2180 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2182 * config/s390/s390.c (print_operand, s390_function_prologue,
2183 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
2185 2001-08-13 Richard Henderson <rth@redhat.com>
2187 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
2188 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
2189 * doc/tm.texi (Exception Region Output): Document it.
2191 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
2193 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
2194 DWARF2 instead of stabs by default.
2196 2001-08-13 David Edelsohn <edelsohn@gnu.org>
2198 * config/rs6000/rs6000.c: Include optabs.h.
2200 2001-08-13 David Edelsohn <edelsohn@gnu.org>
2202 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
2203 save/restore routines.
2204 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
2206 2001-08-13 Andreas Jaeger <aj@suse.de>
2208 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
2209 the english is correct.
2211 2001-08-13 Zack Weinberg <zackw@panix.com>
2213 * expr.h: Split out optab- and libfunc-related code to...
2214 * optabs.h, libfuncs.h: ... these new headers.
2216 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
2218 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
2220 * mkconfig.sh: Don't include insn-codes.h from config.h.
2222 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
2223 enum insn_code is available. Move reload_in_optab and
2224 reload_out_optab array declarations to optabs.h.
2225 * regmove.c (gen_add3_insn): Move to optabs.c, export from
2226 there, prototype in expr.h.
2227 * gencodes.c: Cleanup: zap global variables, don't use
2228 printf where puts will do, don't bother defining MAX_INSN_CODE
2229 which nothing uses, let CODE_FOR_nothing get its value implicitly.
2231 * genemit.c, genopinit.c: Include optabs.h in generated file.
2232 * genoutput.c: Include insn-codes.h in generated file.
2233 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
2234 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
2235 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
2236 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
2237 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
2238 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
2240 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
2241 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
2242 config/m88k/m88k.c, config/sparc/sparc.c:
2244 * reload.c: Include expr.h and optabs.h before reload.h.
2245 * config/alpha/alpha.c: Include tree.h before reload.h.
2246 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
2247 and reload.h in that order.
2248 * config/sparc/sparc.c: Include debug.h.
2249 * recog.c: Include insn-codes.h.
2251 2001-08-13 Andreas Jaeger <aj@suse.de>
2253 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
2256 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2258 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
2259 * gcc.c (init_spec): Fix typo in comment.
2260 * varasm.c (data_section): Fix typo in comment.
2262 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
2264 * predict.c (dump_prediction): New argument "USED".
2265 (combine_predictions_for_insn): Determine the used heuristics,
2266 output the case no heuristic applied.
2267 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
2269 2001-08-13 Andreas Jaeger <aj@suse.de>
2271 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
2274 2001-08-13 Kazu Hirata <kazu@hxi.com>
2276 * jump.c: Fix formatting.
2278 2001-08-13 Kazu Hirata <kazu@hxi.com>
2280 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
2283 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
2285 * loop.c (check_dbra_loop): Use condjump_label to compute
2288 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
2289 to better document the files they're in.
2291 2001-08-12 Zack Weinberg <zackw@panix.com>
2293 * recog.h (struct insn_operand_data): Shrink 'mode' field
2296 2001-08-12 Kazu Hirata <kazu@hxi.com>
2298 * gcc.c: Fix comment formatting.
2299 * gccspec.c: Likewise.
2302 * genemit.c: Likewise.
2303 * gengenrtl.c: Likewise.
2304 * genrecog.c: Likewise.
2305 * gensupport.c: Likewise.
2306 * ggc-page.c: Likewise.
2307 * global.c: Likewise.
2308 * graph.c: Likewise.
2309 * ifcvt.c: Likewise.
2310 * integrate.c: Likewise.
2312 * libgcc2.c: Likewise.
2314 * mbchar.c: Likewise.
2315 * optabs.c: Likewise.
2316 * predict.c: Likewise.
2317 * prefix.c: Likewise.
2318 * profile.c: Likewise.
2319 * protoize.c: Likewise.
2321 * recog.c: Likewise.
2322 * regclass.c: Likewise.
2323 * regmove.c: Likewise.
2324 * reg-stack.c: Likewise.
2325 * reload1.c: Likewise.
2326 * resource.c: Likewise.
2327 * rtlanal.c: Likewise.
2330 2001-08-12 Kazu Hirata <kazu@hxi.com>
2332 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
2333 a tree representing a constant is passed to the macro.
2335 2001-08-12 Richard Henderson <rth@redhat.com>
2337 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
2338 (rs6000_elf_asm_out_destructor): New.
2339 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
2340 (DTORS_SECTION_ASM_OP): Remove.
2341 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2342 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
2344 2001-08-12 David Edelsohn <edelsohn@gnu.org>
2347 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2348 * gcc.c (set_collect_gcc_options): New function, split out from
2350 Ignore elided switches.
2351 (do_spec_1): Invoke before executing command.
2352 (set_input): Export.
2353 Move declaration ...
2354 * gcc.h (set_input): ... here.
2355 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
2358 2001-08-12 Richard Henderson <rth@redhat.com>
2360 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
2361 thinko wrt TARGET_RELOCATABLE.
2363 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
2365 * fix-header.c (cb_file_change): Update prototype.
2367 2001-08-11 Zack Weinberg <zackw@panix.com>
2369 * toplev.c (set_float_handler): Make static.
2370 * toplev.h: Don't prototype set_float_handler.
2372 * simplify-rtx.c: Don't include setjmp.h.
2373 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
2375 (simplify_unary_operation, simplify_binary_operation): Use them,
2376 via do_float_handler.
2378 * fold-const.c: Don't include setjmp.h.
2379 (exact_real_inverse_1): New function.
2380 (exact_real_inverse): Use it, via do_float_handler.
2382 * varasm.c: Don't include setjmp.h.
2383 (assemble_real_1): New function.
2384 (assemble_real): Use it, via do_float_handler.
2385 Call internal_error if we get a trap here.
2387 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
2388 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
2390 2001-08-11 Zack Weinberg <zackw@panix.com>
2392 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
2393 STACK_BOUNDARY if not already defined.
2395 * calls.c, function.c, reload1.c, explow.c: Don't default
2396 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
2397 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
2399 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
2402 * doc/tm.texi: Document that STACK_BOUNDARY is required;
2403 clarify difference between it and PREFERRED_STACK_BOUNDARY.
2405 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2407 * cppmacro.c (enter_macro_context): Push macro expansions even
2410 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2412 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
2413 (rs6000_elf_section_type_flags): Actually return a value.
2415 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
2417 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
2418 Clean up code: add missing comments and prototypes, fix warnings,
2419 remove obsolete code, fix spacing to conform to coding style.
2421 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
2423 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
2424 and TARGET_ASM_CLOSE_PAREN.
2425 (regclass_map): CC register belongs to class NO_REGS.
2426 (legitimize_pic_address): Don't generate unnecessary moves
2427 (to avoid confusing loop optimization).
2428 (check_and_change_labels): Replace jump_long by indirect_jump.
2429 (s390_final_chunkify): Don't start a new literal pool on section
2430 switch in 64-bit code.
2431 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
2433 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
2434 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
2435 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
2437 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
2438 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
2439 (CONST_COSTS): Fixed incorrect costs.
2441 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
2442 Use emit_jump instead of emit_jump_insn (gen_jump).
2443 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
2444 (to avoid confusing flow analysis).
2445 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
2446 (casesi, casesi_jump): New.
2447 (jump_long): Removed. Functionality merged into indirect_jump.
2448 (indirect_jump): Accept address_operand, not just register_operand.
2449 (cjump_long, icjump_long): Use same logic as indirect_jump.
2450 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
2451 Fixed broken setjmp/longjmp handling.
2452 (do_builtin_setjmp_setup): Removed.
2454 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
2455 broken GNU as versions that don't accept .quad with large
2456 negative values. Use hexadecimal output instead.
2457 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
2458 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
2459 FUNCTION_EPILOGUE): Removed. Now in targetm.
2461 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
2463 * config/s390/fixdfdi.h: Add missing copyright statement.
2464 Fix type conflicts on 64-bit. Add missing SFmode routines.
2466 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
2469 2001-08-11 Richard Henderson <rth@redhat.com>
2471 * rtl.h (REG_EH_RETHROW): Remove.
2472 * rtl.c (reg_note_name): Update.
2473 * combine.c (distribute_notes): Don't check for it.
2475 2001-08-11 Richard Henderson <rth@redhat.com>
2477 * combine.c (distribute_notes): Place REG_SETJMP.
2479 2001-08-11 Richard Henderson <rth@redhat.com>
2481 * doc/extend.texi (Arrays and pointers implementation): Discourage
2482 relying on sign-extension of pointers.
2484 2001-08-11 H.J. Lu <hjl@gnu.org>
2486 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
2488 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
2489 RDATA_SECTION_ASM_OP.
2491 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2493 * doc/install.texi (Specific, c4x): Fix cross-reference to the
2494 main manual to work both for info and HTML versions.
2496 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2497 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2499 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
2500 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
2501 (struct cpp_pool): New member first.
2502 * cppinit.c (append_include_chain): Plug memory leaks.
2503 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
2504 Allocate pragma structures from the (aligned) macro pool to
2505 avoid leaking memory.
2506 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
2507 so we don't leak memory.
2508 * hashtable.c (ht_destroy): New.
2509 * hashtable.h (ht_destroy): New.
2511 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2512 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2514 * c-lex.c (map): Make const.
2515 (cb_file_change): Update for callback passing a line map.
2516 Don't assume we have a previous map. Remove sanity check
2517 about popping too many files.
2518 * cpperror.c (print_location): Make map const.
2519 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
2520 (cpp_make_system_header): Similarly.
2521 (search_from): Similarly.
2522 (_cpp_execute_include): Don't remember where we came from.
2523 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
2524 (struct cpp_reader): Make map const.
2525 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
2526 * cpplib.c (do_line): Update; line maps now hold sysp.
2527 (cpp_push_buffer): Similarly.
2528 (_cpp_do_file_change): Similarly; callback with map instead.
2529 (cpp_get_line_maps): Constify return value.
2530 (_cpp_pop_buffer): Update.
2531 * cpplib.h (struct cpp_file_change): Remove.
2532 (struct cpp_callbacks): Update.
2533 (cpp_get_line_maps): Constify return value.
2534 * cppmacro.c (_cpp_create_definition): Update.
2535 * cppmain.c (struct printer): Constify map.
2536 (maybe_print_line): Similarly.
2537 (print_line): Similarly. Deduce flags 1 and 2 here.
2538 (cb_file_change): Update.
2539 * line-map.c (free_line_maps): Warn regardless.
2540 (add_line_map): Return pointer to const. When passed NULL to_file
2541 with LC_LEAVE, use the obvious values for the return point so the
2542 caller doesn't have to figure them out.
2543 (lookup_line): Return pointer to const.
2544 (print_containing_files): Take pointer to const.
2545 * line-map.h (struct line_map): New members reason, sysp.
2546 (add_line_map): Return pointer to const.
2547 (lookup_line): Similarly.
2548 (print_containing_files): Take pointer to const.
2550 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
2551 Richard Henderson <rth@redhat.com>
2553 * regmove.c (regmove_optimize): Avoid setting a register twice in
2556 2001-08-10 Richard Henderson <rth@redhat.com>
2558 * doc/extend.texi (Arrays and pointers implementation): Document
2559 behavior of pointer/integer conversion.
2561 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
2563 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
2565 2001-08-10 Richard Henderson <rth@redhat.com>
2567 * doc/extend.texi (C Implementation): New chapter.
2568 * doc/gcc.texi (Top): Link it in.
2570 2001-08-10 Andrew Cagney <ac131313@redhat.com>
2572 * doc/install.texi (Specific): Fix CVS merge botch.
2574 2001-08-10 Richard Henderson <rth@redhat.com>
2576 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
2577 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
2579 2001-08-10 Zack Weinberg <zackw@stanford.edu>
2581 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
2582 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
2583 this macro is now required.
2585 * cselib.c (cselib_process_insn), flow.c (propagate_block),
2586 loop.c (find_and_verify_loops), reload.c (reload): Check
2587 for rtx code of CALL_INSN, not CALL, when deciding if we
2588 need to check for REG_SETJMP note.
2590 * gcse.c (compute_hash_table, compute_store_table): Update
2591 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
2594 * config/avr/avr.c: Fix typo.
2595 * config/convex/convex.c (expand_movstr): Use adjust_address.
2596 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
2598 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
2599 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
2601 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
2602 Do define STACK_BOUNDARY.
2603 * config/i370/i370.c: Include expr.h.
2604 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
2605 config/pa/som.h, config/v850/v850.h: Take in_ctors and
2606 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
2607 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
2608 * config/m88k/m88k.c: Include c-tree.h after expr.h.
2609 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
2610 * config/romp/romp.c: Include expr.h after tree.h.
2612 (output_fpop): Use xmalloc, not oballoc.
2613 * config/we32k/we32k.c: Include expr.h.
2615 2001-08-10 Kazu Hirata <kazu@hxi.com>
2617 * config/h8300/h8300.h: Fix formatting.
2619 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2621 * c-common.h (RETURN_NULLIFIED_P): Lose.
2622 * c-semantics.c (genrtl_return_stmt): Don't check it.
2624 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2626 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
2627 (mips_annotate_frame_insn): New function.
2628 (mips_emit_frame_related_store): New function.
2629 (save_restore_insns): Don't mark instructions that set up the base
2630 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
2631 the store instructions instead.
2632 (mips_expand_prologue): If the stack size is moved into a temporary
2633 register, do not mark that move as frame-related. Add a
2634 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
2636 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2638 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
2639 stack slot as unchanging if current_function_calls_eh_return.
2641 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2643 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
2644 access the second half of the TFmode scratch operand.
2646 2001-08-10 Anthony Green <green@redhat.com>
2648 * java/class.c (emit_register_classes): Conditionalize code on
2651 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2653 * doc/install.texi (Specific, avr): Fix cross-reference to the
2654 main manual to work both for info and HTML versions.
2656 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2658 * stmt.c (expand_null_return_1): Remove code to generate simple returns
2659 and "use_goto" argument.
2660 (expand_null_return, expand_value_return): Update all callers.
2661 * function.c (expand_function_end): Remove code to generate simple
2663 * config/vax/vax.md (epilogue): New expander for function return.
2664 * doc/md.texi (epilogue): Remove "if defined".
2666 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2668 * Makefile.in: Partially revert my previous change:
2669 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
2670 of the hashtab.o and safe-ctype.o rules.
2672 2001-08-09 Richard Henderson <rth@redhat.com>
2674 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
2675 (USE_COLLECT2): Remove duplicate definition.
2676 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
2677 (use_collect2): Remove dead code.
2678 * configure.in (use_collect2): Remove will_use_collect2 and
2679 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
2680 * configure: Rebuild.
2682 * target.h (targetm.asm_out.constructor): New.
2683 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
2684 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
2685 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
2686 * varasm.c (in_ctors, in_dtors): New.
2687 (assemble_constructor, assemble_destructor): Remove.
2688 (default_stabs_asm_out_destructor): New.
2689 (default_named_section_asm_out_destructor): New.
2690 (dtors_section, default_dtor_section_asm_out_destructor): New.
2691 (default_stabs_asm_out_constructor): New.
2692 (default_named_section_asm_out_constructor): New.
2693 (ctors_section, default_ctor_section_asm_out_constructor): New.
2694 * output.h: Update declarations.
2695 * c-decl.c (c_expand_body): Use target hooks instead of
2696 assemble_constructor and assemble_destructor.
2697 * profile.c (output_func_start_profiler): Likewise.
2698 * objc/objc-act.c (finish_objc): Likewise.
2699 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
2700 for the constructor.
2701 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
2703 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
2704 (DTORS_SECTION_ASM_OP): Likewise.
2705 (__CTOR_LIST__): Use attribute section when possible.
2706 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
2708 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
2709 ASM_OUTPUT_CONSTRUCTOR.
2711 * config/darwin.c (machopic_asm_out_constructor): New.
2712 (machopic_asm_out_destructor): New.
2713 * config/darwin-protos.h: Update declarations.
2714 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2715 (ASM_OUTPUT_DESTRUCTOR): Remove.
2716 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2717 * config/nextstep.c (nextstep_asm_out_constructor): New.
2718 (nextstep_asm_out_destructor): New.
2719 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2720 (ASM_OUTPUT_DESTRUCTOR): Remove.
2721 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2722 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
2723 ASM_OUTPUT_*STRUCTOR.
2724 * config/i386/aix386ng.h: Likewise.
2726 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
2727 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
2728 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2729 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2730 * config/lynx.h: Likewise.
2731 * config/netware.h: Likewise.
2732 * config/psos.h: Likewise.
2733 * config/alpha/alpha-interix.h: Likewise.
2734 * config/alpha/elf.h: Likewise.
2735 * config/arc/arc.h: Likewise.
2736 * config/arm/aof.h: Likewise.
2737 * config/arm/coff.h: Likewise.
2738 * config/arm/elf.h: Likewise.
2739 * config/c4x/c4x.h: Likewise.
2740 * config/h8300/h8300.h: Likewise.
2741 * config/i386/cygwin.h: Likewise.
2742 * config/i386/djgpp.h: Likewise.
2743 * config/i386/i386-coff.h: Likewise.
2744 * config/i386/i386-interix.h: Likewise.
2745 * config/i386/sco5.h: Likewise.
2746 * config/i386/vsta.h: Likewise.
2747 * config/i386/win32.h: Likewise.
2748 * config/i960/i960-coff.h: Likewise.
2749 * config/ia64/sysv4.h: Likewise.
2750 * config/m68hc11/m68hc11.h: Likewise.
2751 * config/m68k/coff.h: Likewise.
2752 * config/m68k/mot3300.h: Likewise.
2753 * config/m88k/m88k.h: Likewise.
2754 * config/mcore/mcore-pe.h: Likewise.
2755 * config/mcore/mcore.h: Likewise.
2756 * config/mips/elf.h: Likewise.
2757 * config/mips/elf64.h: Likewise.
2758 * config/mips/iris6.h: Likewise.
2759 * config/pa/pa64-hpux.h: Likewise.
2760 * config/rs6000/sysv4.h: Likewise.
2761 * config/sh/sh.h: Likewise.
2762 * config/sparc/litecoff.h: Likewise.
2764 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
2765 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2766 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2767 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2768 (ASM_OUTPUT_DESTRUCTOR): Remove.
2769 * config/a29k/a29k.c: Move include of tree.h.
2770 * config/a29k/udi.h: Delete file.
2771 * config/alpha/alpha.c (vms_asm_out_constructor): New.
2772 (vms_asm_out_destructor): New.
2773 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
2774 (EXTRA_SECTION_FUNCTIONS): Likewise.
2775 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2776 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2777 * config/c4x/c4x.c: Move include of tree.h.
2778 * config/clipper/clipper.c (clix_asm_out_constructor): New.
2779 (clix_asm_out_destructor): New.
2780 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2781 (ASM_OUTPUT_DESTRUCTOR): Remove.
2782 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2783 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2784 (TARGET_ASM_CONSTRUCTOR): New.
2785 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
2786 (sco_asm_out_constructor): New.
2787 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
2788 * config/i386/svr3gas.h: Remove stack grows up code.
2789 Remove code duplicated from i386/sysv3.h.
2790 (TARGET_ASM_CONSTRUCTOR): New.
2791 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2792 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
2793 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2794 (TARGET_ASM_CONSTRUCTOR): New.
2795 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
2796 (m68hc11_asm_out_destructor): New.
2797 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
2798 (TARGET_ASM_DESTRUCTOR): New.
2799 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
2800 * config/m68k/dpx2.h: Properly undef all the bits inherited from
2801 config/svr3.h pertaining to section manipulation.
2802 * config/m68k/dpx2g.h: Remove #if 0 code.
2803 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
2804 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
2805 (ASM_OUTPUT_CONSTRUCTOR): Remove.
2806 (TARGET_ASM_CONSTRUCTOR): New.
2807 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
2808 (m88k_svr3_asm_out_constructor): New.
2809 (m88k_svr3_asm_out_destructor): New.
2810 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2811 (ASM_OUTPUT_DESTRUCTOR): Remove.
2812 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2813 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
2814 * config/rs6000/aix.h: Likewise.
2815 * config/mips/rtems64.h: Don't undef removed constructor related bits.
2816 * config/mips/vxworks.h: Likewise.
2817 * config/rs6000/lynx.h: Likewise.
2818 * config/sh/elf.h: Likewise.
2819 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
2820 (DTORS_SECTION_ASM_OP): New.
2821 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2822 (ASM_OUTPUT_DESTRUCTOR): Remove.
2823 * config/sparc/sol2-sld-64.h: Likewise.
2824 * config/vax/vax.c (vms_asm_out_constructor): New.
2825 (vms_asm_out_destructor): New.
2826 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2827 (ASM_OUTPUT_DESTRUCTOR): Remove.
2828 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2830 * doc/tm.texi (@node Initialization): Update.
2832 2001-08-09 Richard Henderson <rth@redhat.com>
2834 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
2835 (__do_global_dtors_aux): Use gp-relative static data to avoid
2836 one dynamic relocation.
2837 (__do_frame_setup): Register Java classes.
2838 * config/alpha/crtend.asm (__JCR_END__): New.
2840 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2842 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
2843 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
2844 (GEN, STAGESTUFF): Add new files.
2845 (insn-constants.h, s-constants, tm-preds.h, s-preds,
2846 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
2847 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
2848 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
2849 as well as insn-codes.h and insn-flags.h in config.h; and no
2850 extra headers in tconfig.h and hconfig.h.
2852 * gencodes.c: Eliminate code to generate predicate declarations
2853 or #defines for md-file constants.
2854 * genconstants.c, genpreds.c: New files.
2856 * i386.md: Re-order guard expressions such that TARGET_64BIT
2857 comes first, when this permits better optimization. Add
2858 TARGET_64BIT to more x86-64 patterns. Add comment explaining
2859 why this is desirable.
2861 2001-08-09 Jakub Jelinek <jakub@redhat.com>
2863 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
2864 (find_fde_for_dso): Remove.
2865 (_Unwind_IteratePhdrCallback): New.
2866 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
2867 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
2869 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2871 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
2872 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
2874 2001-08-09 Graham Stott <grahams@redhat.com>
2876 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
2877 (vis_no_unit): Use it.
2878 (visualize_no_unit): Add the insn only if room exists.
2880 2001-08-09 Graham Stott <grahams@redhat.com>
2882 * predict.c (estimate_probability): Replace magic numbers with
2883 appropriate enumeration.
2885 2001-08-09 Graham Stott <grahams@redhat.com>
2887 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
2889 (EXTRACT_FLAGS): Likewise.
2891 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
2893 * config/mips/mips.c (mips_legitimate_address_p): Check for
2894 CONST_INT in last patch.
2896 2001-08-08 Anthony Green <green@redhat.com>
2898 * java/class.c (emit_register_classes): Use assemble_jcr if
2899 possible. Keep the original mechanism as a fallback.
2900 * defaults.h (JCR_SECTION_NAME): Define if we have named section
2901 and weak symbol support.
2902 * crtstuff.c (__JCR_LIST__): Define.
2903 (__JCR_END__): Define.
2904 (_Jv_RegiserClasses): Define weak symbol if possible.
2905 (__do_global_ctors_aux): Register classes for ELF targets with
2906 weak symbol support.
2908 2001-08-08 Kazu Hirata <kazu@hxi.com>
2910 * dbxout.c: Fix comment formatting.
2911 * dependence.c: Likewise.
2913 * diagnostic.c: Likewise.
2914 * dominance.c: Likewise.
2915 * doprint.c: Likewise.
2916 * dwarf2out.c: Likewise.
2917 * dwarfout.c: Likewise.
2918 * emit-rtl.c: Likewise.
2919 * except.c: Likewise.
2920 * explow.c: Likewise.
2921 * expmed.c: Likewise.
2924 * fold-const.c: Likewise.
2925 * function.c: Likewise.
2927 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2929 * global.c (retry_global_alloc): Avoid shadowing allocno.
2931 2001-08-08 Mark Mitchell <mark@codesourcery.com>
2933 * except.c (remove_fixup_regions): Fix typo.
2935 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
2937 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
2938 unsigned HOST_WIDE_INT to avoid warning.
2939 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
2940 * flow.c (set_block_for_new_insns): Likewise.
2942 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
2944 * sibcall.c (return_value_pseudo): New static variable.
2945 (skip_copy_to_return_value): Handle return_value_pseudo.
2946 (call_ends_block_p): Ensure that return_value_pseudo is set.
2947 (optimize_sibling_and_tail_recursive_call): Discover the
2948 load of pseudo return value in alternate exit block.
2950 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
2952 * calls.c (ECF_ALWAYS_RETURN): New constant.
2953 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
2954 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
2955 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
2956 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
2957 * rtl.c (reg_note_name): New name.
2958 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
2960 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
2962 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
2964 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2966 * alias.c (get_alias_set): Return a previously calculated
2967 alias set for a VAR_DECL.
2968 * function.c (gen_mem_addressof): Calculate the alias set before
2971 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
2973 * predict.def: Set hitrates according our experimental run.
2975 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
2977 * i386.h (HARD_REGNO_RENAME_OK): New macro.
2979 2001-08-08 H.J. Lu <hjl@gnu.org>
2981 * config/mips/mips.c (mips_unique_section): New. Copied from
2984 * config/mips/mips-protos.h (mips_unique_section): New
2987 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
2989 * config/mips/little.h: New. Generic little endian mips
2990 targets. Only mips*-*-linux* is converted to use it so far.
2992 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
2993 (WCHAR_TYPE): Defined
2994 (WCHAR_TYPE_SIZE): Likewise.
2995 (INIT_SUBTARGET_OPTABS): Likewise.
2996 (BSS_SECTION_ASM_OP): Likewise.
2997 (SBSS_SECTION_ASM_OP): Likewise.
2998 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2999 (ASM_DECLARE_OBJECT_NAME): Likewise.
3000 (UNIQUE_SECTION): Likewise.
3001 (EXTRA_SECTIONS): Likewise.
3002 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
3003 (ASM_OUTPUT_DESTRUCTOR): Likewise.
3004 (ASM_OUTPUT_DEF): Likewise.
3005 (HANDLE_SYSV_PRAGMA): Removed.
3006 (NO_IMPLICIT_EXTERN_C): Likewise.
3007 (TARGET_MEM_FUNCTIONS): Likewise.
3008 (STARTFILE_SPEC): Likewise.
3009 (ENDFILE_SPEC): Likewise.
3010 (LIB_SPEC): Likewise.
3011 (INVOKE__main): Likewise.
3012 (CTOR_LIST_BEGIN): Likewise.
3013 (CTOR_LIST_END): Likewise.
3014 (DTOR_LIST_BEGIN): Likewise.
3015 (DTOR_LIST_END): Likewise.
3016 (SET_ASM_OP): Likewise.
3017 (ASM_OUTPUT_SOURCE_LINE): Likewise.
3018 (ASM_OUTPUT_DEF): Likewise.
3019 (ASM_OUTPUT_IDENT): Likewise.
3021 * config/mips/mips.h (ASM_SPEC): Undefine before define.
3022 (CPLUSPLUS_CPP_SPEC): Likewise.
3023 (ASM_APP_ON) Redefine only if not defined.
3024 (ASM_APP_OFF): Likewise.
3025 (ASM_OUTPUT_SOURCE_LINE): Likewise.
3026 (ASM_OUTPUT_IDENT): Likewise.
3028 * config.gcc: Update tm_file for Linux/mips.
3030 2001-08-08 Bernd Schmidt <bernds@redhat.com>
3032 * cselib.c (cselib_record_sets): If insn is predicated, turn
3033 sources into IF_THEN_ELSEs.
3035 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
3036 Turn into define_insn_and_split.
3038 * sched-deps.c: Include "cselib.h".
3039 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
3040 Use cselib to turn memory addresses into VALUEs.
3041 (sched_analyze): Call cselib_init/cselib_finish if necessary.
3042 * sched-int.h (struct sched_info): New member USE_CSELIB.
3043 * sched-ebb.c (ebb_sched_info): Initialize it.
3044 * sched-rgn.c (rgn_sched_info): Likewise.
3045 * Makefile.in (sched-deps.o): Update dependencies.
3047 * cselib.h (cselib_subst_to_values): Declare.
3048 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
3049 that have no value and autoincs to be handled by generating a new
3052 2001-08-08 Graham Stott <grahams@redhat.com>
3054 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
3055 within fixed length SEQUENCE.
3057 2001-08-08 Graham Stott <grahams@redhat.com>
3059 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
3060 (diagnostic_prefixing_rule): Likewise.
3061 (diagnostic_line_cutoff): Likewise.
3062 (diagnostic_kind_count): Likewise.
3064 2001-08-08 Graham Stott <grahams@redhat.com>
3066 * alias.c (find_base_decl): Delete redundent assignment.
3068 2001-08-08 Graham Stott <grahams@redhat.com>
3070 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
3071 (abs): Uppercase and paranthesize macro parameter.
3072 (MEM_DEPENDENCY): Add whitespace.
3074 2001-08-08 Graham Stott <grahams@redhat.com>
3076 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
3077 failure check for CONST_INT
3079 2001-08-08 Graham Stott <grahams@redhat.com>
3081 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
3082 (libcall_dead_p): Likewise.
3084 (mark_used_regs): Constify fmt.
3085 (find_use_as_address): Likewise.
3087 2001-08-08 Graham Stott <grahams@redhat.com>
3089 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
3092 2001-08-08 Graham Stott <grahams@redhat.com>
3094 * combine.c (combine_simplify_rtx): Update comment and
3095 remove erroneous test.
3097 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
3099 * cppinit.c (cpp_finish): Pop the final buffer without comment.
3100 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
3101 take care to avoid multiple no-newline at EOF warnings in that
3104 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
3106 * calls.c (expand_call): Do not emit INSN_SETJMP note.
3107 (emit_library_call_value_1): Likewise.
3108 (emit_call_1): Emit REG_SETJMP note.
3109 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
3111 * cselib.c (cselib_process_insn): Likewise.
3112 * flow.c (propagate_block): Likewise.
3113 * loop.c (find_and_verify_loops): Likewise.
3114 * reload.c (find_equiv_regs): Likewise.
3115 * reload1.c (reload): Likewise.
3116 * resource.c (mark_referenced_resources,
3117 mark_set_resources): Likewise.
3118 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
3119 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
3120 * haifa-sched.c (unlink_other_notes): Likewise.
3121 (reemit_notes): Likewise.
3122 * sched-ebb.c (sched_ebb): Likewise.
3123 * sched-rgc.c (sched_region): Likewise.
3124 * rtl.c (note_insn_name): Likewise.
3125 (reg_note_name): Add REG_SETJMP
3126 * rtl.h (reg_note): Add REG_SETJMP.
3127 (insn_note): Remove NOTE_INSN_SETJMP.
3129 * profile.c (branch_prob): Add fake edges for setjmp.
3131 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
3133 * config.gcc: Quote target_cpu_default2 correctly for
3134 powerpc*-*-* targets.
3136 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
3138 * cpplib.h, line-map.h: Update comments.
3139 * cppmain.c (printer_init): Move inline.
3140 (maybe_print_line, print_line): Take a map pointer.
3141 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
3142 (cb_file_change): Don't use prior value of print.map.
3144 2001-08-07 David Edelsohn <edelsohn@gnu.org>
3146 * doc/install.texi: Document fine-grained multilib configuration.
3148 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
3150 * rtlanal.c (find_first_parameter_load): Call note_stores
3151 only on the instructions.
3153 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
3155 * alias.c (nonlocal_mentioned_p):
3156 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
3157 * calls.c (emit_call_1): Likewise.
3158 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
3159 * cselib.c (cselib_process_insn): Likewise.
3160 * df.c (df_insns_modify): Likewise.
3161 * flow.c (need_fake_edge_p): Likewise.
3162 (propagate_one_insn): Likewise.
3163 * haifa-sched.c (reemit_notes): Likewise.
3164 * integrate.c (copy_insn_list): Likewise.
3165 * jump.c (delete_prior_computation): Likewise.
3166 * local-alloc.c (validate_equiv_mem): Likewise.
3167 * loop.c (scan_loop): Likewise.
3168 * predict.c (estimate_probability): Likewise.
3169 * reload.c (reload): Likewise.
3170 * sched-deps (sched_analyze): Likewise.
3171 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
3172 * gcse.c (compute_hash_table): Likewise.
3173 (mark_call): Likewise.
3174 (store_killed_in_insn): Likewise.
3176 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
3178 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
3180 2001-08-06 Richard Henderson <rth@redhat.com>
3182 * varasm.c (assemble_gc_entry): Remove.
3183 * output.h: Likewise.
3185 2001-08-06 Richard Henderson <rth@redhat.com>
3187 * varasm.c (assemble_constructor): Take a symbol_ref and a
3188 priority instead of a bare string. Move priority handling
3189 here from cp/decl2.c.
3190 * output.h: Update decls.
3192 * c-decl.c (c_expand_body): Update calls to assemble_constructor
3193 and assemble_destructor.
3194 * profile.c (output_func_start_profiler): Likewise.
3195 * objc/objc-act.c (finish_objc): Likewise.
3196 (build_module_descriptor): Return the symbol not the symbol name.
3198 2001-08-06 David Edelsohn <edelsohn@gnu.org>
3200 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
3201 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
3202 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
3203 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
3204 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
3205 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
3207 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
3209 * cpperror.c (print_containing_files): Moved to line-map.c.
3210 (print_location): line-map.c handles re-listing or otherwise.
3211 * cpphash.h (struct lexer_state): Remove next_bol.
3212 (struct cpp_buffer): Remove include_stack_listed.
3213 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
3214 Remove faked buffer handling.
3215 (_cpp_do_file_change): Tweak.
3216 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
3217 * cppmain.c (struct printer): Remove filename.
3218 (print_line, cb_file_change): Update accordingly.
3219 * line-map.c: Include intl.h.
3220 (init_line_maps): Initialize last_listed.
3221 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
3222 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
3223 (print_containing_files): New.
3224 * line-map.h (struct line_maps): New member last_listed.
3225 (print_containing_files, INCLUDED_FROM): New.
3226 * Makefile.in: Update.
3227 * po/POTFILES.in: Add line-map.c.
3229 2001-08-06 Richard Henderson <rth@redhat.com>
3231 * except.c (convert_from_eh_region_ranges_1): Never mark
3232 USE or CLOBBER insns as throwing.
3234 * expr.c (store_constructor): Don't clobber memory targets.
3236 2001-08-06 Andreas Jaeger <aj@suse.de>
3238 * profile.c (branch_prob): Remove unused variable insn.
3240 * Makefile.in (local-alloc.o): Add dependency on except.h.
3242 * local-alloc.c: Include except.h for can_throw_internal prototype.
3244 2001-08-06 Richard Henderson <rth@redhat.com>
3246 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
3247 * function.c (expand_main_function): Implement it.
3248 * doc/tm.texi: Document it.
3250 2001-08-06 Stan Shebs <shebs@apple.com>
3252 * doc/install.texi: Document powerpc-*-darwin* details.
3254 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
3256 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
3257 (ASM_CPU_SPEC): Move back to rs6000.h
3258 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
3260 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
3262 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
3265 * config/rs6000/linux64.h: Ditto.
3267 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
3268 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
3271 Remove accidently readded definitions of FUNCTION_PROLOGUE,
3272 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
3274 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
3277 2001-08-05 Richard Henderson <rth@redhat.com>
3279 * local-alloc.c (update_equiv_regs): Do not move insns that
3282 2001-08-05 Jan Hubicka <jh@suse.cz>
3284 * Makefile.in (reload1.o): Add dedendancy on except.h
3285 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
3287 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
3288 indicating wehther edges has been cleaned up.
3289 * reload1.c: Inlucde except.h
3290 (fixup_abnormal_edges): Accept deleted insns.
3291 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
3294 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
3296 * cpplib.c (do_line): Correct line number after pop_buffer.
3298 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
3300 PR preprocessor/3824
3301 * line-map.c: Update comments.
3302 * line-map.h: Update comments.
3303 * tradcif.y: Don't consider large numbers unsigned.
3305 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
3307 PR preprocessor/3081
3308 * c-lex.c (map): New.
3309 (cb_file_change): Update map and use it.
3310 (cb_def_pragma, cb_define, cb_undef): Use map and line.
3311 (c_lex): Update to use map.
3312 * cpperror.c (print_location): Move to using logical line numbers.
3313 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
3314 (cpp_make_system_header): Similarly.
3315 (_cpp_execute_include): Stop line numbering hacks. Store the
3316 line we will return to.
3317 * cpphash.h (CPP_BUF_LINE): Remove.
3318 (struct cpp_buffer): Remove lineno and pseudo_newlines.
3319 Add map and return_to_line.
3320 (_cpp_do_file_change): Update.
3321 * cppinit.c (cpp_start_read): Update line kludge.
3322 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
3323 (trigraph_ok): Use logical line numbers for diagnostics.
3324 (skip_block_comment): Likewise.
3325 (skip_whitespace): Likewise.
3326 (skip_line_comment): Use pfile->line instead.
3327 (_cpp_lex_token): Update to use logical line numbering exclusively.
3328 Handle BOL locally. Accept new lines in directives, but keep
3329 pfile->line decremented. Diagnostics use logical lines. Update
3331 * cpplib.c (SEEN_EOL): New.
3332 (skip_rest_of_line, check_eol): Use it.
3333 (end_directive): Increase line number when accepting the newline
3334 at the end of a directive.
3335 (run_directive): Simplify.
3336 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
3337 (_cpp_do_file_change): Update to take buffer line number as an
3338 argument, and store the current map in the cpp_reader. Remove
3339 line number kludges.
3340 (_cpp_do__Pragma): Restore output position after a _Pragma.
3341 (cpp_push_buffer): Don't set output line or lineno.
3342 (_cpp_pop_buffer): Transfer more info from a faked buffer.
3343 Remove line kludge. Set output_line.
3344 * cppmacro.c (builtin_macro): Update handling of __LINE__.
3345 (parse_arg): Use logical lines.
3346 (save_lookahead_token): Save EOFs too now.
3347 * cppmain.c (struct printer): Fix comments.
3348 (printer_init): Simplify, let caller do errors.
3349 (scan_translation_unit, check_multiline_token, dump_macro): Update.
3350 (maybe_print_line): Simplify.
3351 (print_line): Don't print a linemarker if -P.
3352 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
3353 (cb_file_change): Simplify.
3354 * line-map.h (LAST_SOURCE_LINE): Fix.
3355 (CURRENT_LINE_MAP): New.
3357 2001-08-05 Bernd Schmidt <bernds@redhat.com>
3359 * doloop.c (doloop_modify_runtime): Properly compute number of
3360 iterations if loop was unrolled.
3362 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
3363 if their CSELIB_VAL_PTRs are.
3365 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
3366 (setup_spill_pointers): Initialize it.
3367 (spill_restore_mem): Set it.
3368 (do_spill, do_restore): Use it to add REG_INC note.
3369 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
3371 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
3372 asms if other insns are available.
3374 * config/ia64/ia64.c (condop_operator): New predicate.
3375 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
3376 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
3379 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
3380 temporary register than directly using a MEM.
3382 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3384 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
3385 parameter in last change.
3387 2001-08-04 Zack Weinberg <zackw@panix.com>
3389 * sparc.md: Don't use #if inside C test expression.
3391 2001-08-04 Richard Henderson <rth@redhat.com>
3393 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
3395 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
3397 * cpphash.h (struct cpp_reader): New member directive_line.
3398 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
3399 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
3400 do_pragma): Pass line to callbacks.
3401 (start_directive): Record line of directive.
3402 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
3403 cb_include): Similarly.
3404 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
3407 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3409 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
3412 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
3414 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
3416 * reload1.c (fixup_abnormal_edges): New static function.
3419 * flow.c (need_fake_edge_p): New function.
3420 (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
3421 avoid call insn to be very last insn in the insn stream.
3423 * profile.c (branch_prob): Call flow_call_edges_add instead of
3424 doing that by hand; cleanup cfg to re-merge basic blocks once
3427 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3429 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
3430 are also on line-map.h.
3431 * cppfiles.c (stack_include_file): Update.
3432 * cpphash.h (struct cpp_buffer): New member return_at_eof.
3433 (_cpp_pop_buffer): New.
3434 * cppinit.c (cpp_destroy, cpp_finish): Update.
3435 (do_includes): Mark each buffer to return at EOF.
3436 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
3437 return as requested.
3438 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
3439 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
3440 * cpplib.h (cpp_pop_buffer): Remove.
3441 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
3442 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
3444 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
3446 (do_preprocessing): Update.
3447 * fix-header.c (read_scan_file): Update. No need to pop buffers.
3448 * c-parse.in (_yylex): Similarly.
3449 * scan-decls.c (scan_decls): Similarly.
3450 * line-map.h: Update comments.
3452 * objc/Make-lang.in (objc-act.o): Update dependencies.
3454 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3456 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
3457 and soft register for operand 0.
3458 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
3460 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3462 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
3463 register for operand 0.
3464 ("bitcmpqi_z_used"): Allow memory for operand 0.
3465 (split "bitcmpqi"): New split to handle address reg as operand 1.
3467 2001-08-04 Andreas Jaeger <aj@suse.de>
3469 * gcse.c: Revert Daniel's last patch.
3471 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3473 * sparc-protos.h: Add prototypes for fp_zero_operand and
3475 * sh-protos.h: Add prototype for fpul_operand.
3477 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3479 * doc/extend.texi (Other Builtins): Fix typo in last change.
3481 2001-08-03 Richard Henderson <rth@redhat.com>
3483 * target.h (gcc_target): Add asm_out.named_section,
3484 section_type_flags, have_named_sections.
3485 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
3486 (TARGET_HAVE_NAMED_SECTIONS): New.
3487 (TARGET_SECTION_TYPE_FLAGS): New.
3489 * Makefile.in (toplev.o): Depend on TARGET_H.
3490 (varasm.o, dbxout.o): Likewise.
3491 * c-common.c (decl_attributes): Check targetm.have_named_sections
3492 instead of ifdef ASM_OUTPUT_SECTION_NAME.
3493 * dbxout.c (dbxout_function_decl): Likewise.
3494 (dbxout_function_end): Likewise.
3495 * toplev.c (compile_file): Likewise.
3496 * varasm.c (exception_section): Likewise.
3497 * cp/decl2.c (finish_objects): Likewise.
3499 * defaults.h (EH_FRAME_SECTION): Remove.
3500 (EH_FRAME_SECTION_ASM_OP): Remove.
3501 (EH_FRAME_SECTION_NAME): New.
3502 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
3503 (UNIQUE_SECTION_P): Remove.
3504 * dwarf2out.c (SECTION_FORMAT): Remove.
3505 (ASM_OUTPUT_SECTION): Remove.
3506 (output_call_frame_info): Use named_section_flags.
3507 (output_comp_unit, dwarf2out_start_source_file): Likewise.
3508 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
3509 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
3510 * varasm.c (in_eh_frame, eh_frame_section): Remove.
3511 (named_section_flags): New.
3512 (named_section): Use it and targetm.section_type_flags.
3513 (resolve_unique_section): New.
3514 (assemble_start_function): Use it.
3515 (asm_emit_uninitialised, assemble_variable): Likewise.
3516 (default_section_type_flags): New.
3517 (default_no_named_section, default_elf_asm_named_section): New.
3518 (default_coff_asm_named_section, default_pe_asm_named_section): New.
3519 * output.h: Update varasm.c decls.
3520 (SECTION_*): New flags.
3522 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
3523 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
3525 * config/elfos.h (UNIQUE_SECTION_P): Remove.
3526 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
3527 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
3528 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3529 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
3530 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
3531 * config/mips/elf.h, config/mips/elf64.h: Likewise.
3532 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
3533 * config/pa/pa64-hpux.h,
3535 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
3536 (TARGET_ASM_NAMED_SECTION): New.
3537 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
3538 * config/alpha/vms.h, config/arm/coff.h: Likewise.
3539 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
3540 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
3541 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
3542 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
3543 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3544 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
3545 * config/i386/sco5.h, config/i386/win32.h: Likewise.
3546 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
3547 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
3548 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
3549 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
3550 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
3551 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
3552 * config/sparc/sysv4.h: Likewise.
3554 * config/nextstep.h: Error until named sections implemented.
3556 * config/a29k/a29k.c (a29k_asm_named_section): New.
3557 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
3558 (vms_section_type_flags, vms_asm_named_section): New.
3559 * config/arm/arm.c (arm_elf_asm_named_section): New.
3560 * config/avr/avr.c (asm_output_section_name): Remove.
3561 * config/avr/avr-protos.h: Update.
3562 * config/c4x/c4x.c (c4x_asm_named_section): New.
3563 * config/h8300/h8300.c (h8300_asm_named_section): New.
3564 * config/i386/i386.c (sco_asm_named_section): New.
3565 * config/i386/winnt.c (SECTION_PE_SHARED): New.
3566 (i386_pe_section_type_flags): New.
3567 (i386_pe_asm_named_section): New.
3568 * config/i386/i386-protos.h: Update.
3569 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
3570 * config/mcore/mcore.c (mcore_asm_named_section): New.
3571 * config/mips/mips.c (iris6_asm_named_section): New.
3572 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
3573 instead of UNIQUE_SECTION_P.
3574 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
3575 (xcoff_asm_named_section): New.
3576 * config/sh/sh.c (sh_asm_named_section): New.
3577 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
3579 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
3580 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
3581 (EH_FRAME_SECTION_NAME): New.
3582 (EXCEPTION_SECTION): New.
3583 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
3584 (DEBUG_*_SECTION): Remove.
3585 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
3586 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
3587 (EH_FRAME_SECTION_ASM_OP): Remove.
3589 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
3590 (ASM_OUTPUT_SECTION_NAME): Remove.
3591 (TARGET_ASM_NAMED_SECTION): New.
3592 (TARGET_HAVE_NAMED_SECTIONS): New.
3593 (TARGET_SECTION_TYPE_FLAGS): New.
3594 (EH_FRAME_SECTION_ASM_OP): Remove.
3595 (EH_FRAME_SECTION_NAME): New.
3597 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3599 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
3600 for complex expressions when cfun == 0.
3601 * doc/extend.texi: Document that __builtin_constant_p can be
3602 used in data initializers as well as functions.
3604 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
3606 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
3607 variable I locally, instead of expecting a declaration in the
3610 2001-08-03 Richard Henderson <rth@redhat.com>
3612 * except.c (collect_one_action_chain): Add an explicit cleanup
3613 action if regions surrounding a catch were encoded entirely
3614 within the call-site entry.
3616 2001-08-03 Richard Henderson <rth@redhat.com>
3618 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
3619 don't take REGNO of a non-register.
3621 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3623 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
3624 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
3625 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
3626 (__gthread_mutex_init_function): New function for mutex initialization.
3628 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3630 * Makefile.in: Revert screwed up commit.
3632 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3634 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
3635 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
3636 merged by linker script to get a final _exit().
3637 (__do_global_dtors): New for destructor handling in specific exit
3639 (__do_global_ctors): New for constructors in specific install section.
3640 (__map_data_section): Map data sections before running constructors.
3641 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
3642 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
3643 (DTORS_SECTION_ASM_OP): Likewise.
3644 (CTORS_SECTION_FUNCTION): Define to force a reference to
3646 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
3648 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3650 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
3652 * Makefile.in: Add df.h to gcse.c dependencies.
3654 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3656 * varasm.c (output_constant_def_contents): Use for the length of a
3657 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
3658 depending on which is larger.
3660 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3662 * gcse.c: Include df.h for use as a dataflow analyzer.
3664 Declaration of reg_set_info: gone.
3665 New df_analyzer variable used by store motion.
3666 (reg_set_info): Deleted.
3667 (mark_mem_regs): New function, analyze regs used by a mem.
3668 (store_ops_ok): Use dataflow analyzer results to determine if
3669 necessary regs are changed in the block.
3670 (find_moveable_store): Remove check for symbol ref, we can handle
3671 much more complex expressions now.
3672 (compute_store_table): Remove most of the code, it's unnecessary
3673 now that the dataflow analyzer records the info for us.
3674 (store_killed_after): Add parameter to say whether to do the
3675 store_ops_okay test, used to speed up testing when we already know
3676 the answer, and just want to know if the store itself was killed.
3677 (build_store_vector): Largely rewritten to calculate the various
3678 vectors properly, and somewhat optimized.
3679 (store_motion): Init the df_analyzer, get REG_DEF chains.
3680 Also handle trapping expressions (since mems almost always trap)
3681 (simple_mem): Redefine what a simple mem is.
3683 2001-08-03 DJ Delorie <dj@redhat.com>
3685 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
3686 set from a constant part of the condition.
3688 2001-08-01 Andrew Cagney <ac131313@redhat.com>
3690 * mkdeps.c (deps_add_default_target): Make local variable
3691 ``start'' a const char pointer.
3692 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
3694 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3696 * doc/install.texi (Configuration): Fix markup.
3697 (Specific, i?86-*-udk): Likewise.
3698 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
3700 Document --enable-threads and --enable-libgcj status.
3701 (Specific, mips-sgi-irix*): Canonicalize triples.
3702 (Specific, mips-sgi-irix5): Warn about problems with this config.
3703 Mention required GNU as patch.
3704 Native assembler problems are fixed.
3705 (Specific, mips-sgi-irix6): Update O32 ABI support status.
3706 Document --enable-threads and --enable-libgcj status.
3708 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3710 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
3713 2001-08-03 Richard Henderson <rth@redhat.com>
3715 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
3718 2001-08-03 Richard Henderson <rth@redhat.com>
3720 * rtlanal.c (find_first_parameter_load): Stop if we
3721 reach a CODE_LABEL at BOUNDARY.
3723 2001-08-03 Richard Henderson <rth@redhat.com>
3725 * config/alpha/alpha.md (force_movdi): New insn.
3726 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
3727 Tweek FRP marking of VMS prologue insns.
3728 * config/alpha/vms.h (EPILOGUE_USES): New.
3730 2001-08-02 Richard Henderson <rth@redhat.com>
3732 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
3734 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
3736 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
3737 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
3738 config/convex/convex.h, config/d30v/d30v.c,
3739 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3740 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
3741 config/mips/mips.h, config/mn10200/mn10200.h,
3742 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
3743 config/v850/v850.h, config/vax/openbsd.h,
3744 config/vax/openbsd1.h, config/vax/ultrix.h,
3745 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
3746 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
3747 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
3748 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
3749 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
3750 in comments and documentation.
3752 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3756 * Makefile.in (line-map.o): New.
3757 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
3758 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
3759 * cpperror.c (print_containing_files): Similarly.
3760 (print_location): Update. Don't output a space before _Pragma.
3761 * cppfiles.c (stack_include_file): Set to line 1 immediately.
3762 (stack_include_filee, cpp_make_system_header): Update.
3763 (_cpp_execute_include): Get logical line number right for calling
3764 as-yet-unterminated #include.
3765 * cpphash.h (struct cpp_reader): Add line_maps.
3766 (_cpp_do_file_change): Update.
3767 * cppinit.c (cpp_create_reader): Initialize line maps.
3768 (cpp_destroy): Destroy line maps.
3769 (cpp_start_read): Get logical line number right.
3770 * cpplex.c (parse_string): Only warn once for multi-line strings.
3771 Use boolean variable for null warning.
3772 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
3774 (do_include_common): End the directive early.
3775 (do_line): Don't warn about out-of-range lines in preprocessed
3776 source. Update. Remove unused variables.
3777 (_cpp_do_file_change): Update for new line mapping.
3778 (pragma_cb): New typedef.
3779 (cpp_register_pragma): Stop looking ahead before calling the
3781 (do_pragma_system_header): End directive early.
3782 (cpp_get_line_maps): New.
3783 (cpp_pop_buffer): Fudge logical line. Update.
3784 * cpplib.h: Include line-map.h
3785 (enum cpp_fc_reason): Remove.
3786 (struct cpp_file_change): Update.
3787 (cpp_get_line_maps): New.
3788 * cppmain.c (struct_printer): New member map.
3789 (cb_file_change): Update for new mappings.
3790 * fix-header.c (cb_file_change): Similarly.
3792 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3794 * Makefile.in (libgcc.mk): Define mkinstalldirs.
3795 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
3797 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
3799 * config/vax/vax.c: include expr.h.
3801 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3803 * Makefile.in ($(srcdir)/configure): Only rebuild in
3805 ($(srcdir)/config.in): Only define in maintainer mode.
3806 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
3808 2001-08-02 David Edelsohn <edelsohn@gnu.org>
3810 * doc/install.texi (Install GCC: Binaries): Update Bull info.
3812 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3814 * gcc.c (set_collect_gcc_options): New function, split out from
3816 Ignore elided switches.
3817 (do_spec_1): Invoke before executing command.
3818 (set_input): Export.
3819 Move declaration ...
3820 * gcc.h (set_input): ... here.
3821 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
3824 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
3827 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
3829 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
3831 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
3833 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
3834 for the unnamed instructions it expands to.
3836 2001-08-02 Richard Henderson <rth@redhat.com>
3838 * regclass.c (call_really_used_regs): Conditionally define.
3839 (init_reg_sets_1): Don't use it if not defined.
3840 (fix_register): Similarly, don't set it.
3842 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3844 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
3845 Correct comment that had been missed in the previous change.
3847 2001-08-01 Stan Shebs <shebs@apple.com>
3849 * config/darwin.c (machopic_stub_name): Try matching by name.
3850 (update_stubs): New function.
3851 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
3854 2001-08-01 Richard Henderson <rth@redhat.com>
3856 * except.c (output_function_exception_table): Use assemble_align.
3857 * varasm.c (assemble_eh_label): Remove.
3858 (assemble_eh_align, assemble_eh_integer): Remove.
3860 2001-08-01 Robert Lipe <robertl@caldera.com>
3862 * dwarfout.c: Remove reference to README.DWARF.
3864 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
3866 * regclass.c (call_really_used_regs): New array for registers which
3867 are actually used by a call.
3868 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
3870 (fix_register): Set call_really_used too.
3871 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
3872 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
3874 2001-08-01 Richard Henderson <rth@redhat.com>
3876 * read-rtl.c (read_name): Consider \r whitespace.
3878 2001-07-11 Andrew Cagney <ac131313@redhat.com>
3880 * config.gcc: Recognize powerpc-*-netbsd*.
3882 * doc/install.texi (Host/target specific installation notes for
3883 GCC): Mention powerpc-*-netbsd*.
3885 * config/rs6000/netbsd.h: New file.
3886 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
3887 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
3888 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
3889 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
3890 (TARGET_VERSION): Redefine.
3892 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
3893 mcall-netbsd as a match for mcall-sysv.
3894 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
3895 (ncrti.S, ncrtn.S): New targets.
3896 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
3898 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
3899 "netbsd' as a V4 ABI.
3900 (ASM_SPEC): Check for -mcall-netbsd.
3901 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
3902 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
3903 (LIB_SPEC, ENDFILE_SPEC): Ditto.
3904 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
3905 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
3906 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
3907 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
3909 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
3910 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
3912 2001-08-01 Mark Kettenis <kettenis@gnu.org>
3914 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
3915 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
3916 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
3917 including "unwind-pe.h".
3919 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
3921 * rs6000.md (define_splits): Kill unused constraints.
3923 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
3924 Jan Hubicka <jh@suse.cz>
3926 * function.c (thread_prologue_and_epilogue_insns): Kill code
3927 dealing with non-existent CFG.
3929 2001-08-01 Kazu Hirata <kazu@hxi.com>
3931 * alias.c: Fix comment formatting.
3932 * bitmap.c: Likewise.
3933 * builtins.c: Likewise.
3934 * calls.c: Likewise.
3935 * c-common.c: Likewise.
3936 * c-decl.c: Likewise.
3937 * c-dump.c: Likewise.
3938 * c-lex.c: Likewise.
3939 * collect2.c: Likewise.
3940 * combine.c: Likewise.
3941 * conflict.c: Likewise.
3942 * cppfiles.c: Likewise.
3943 * cppinit.c: Likewise.
3944 * cpplex.c: Likewise.
3945 * cpplib.c: Likewise.
3946 * cppmacro.c: Likewise.
3947 * cppspec.c: Likewise.
3948 * c-pragma.c: Likewise.
3949 * crtstuff.c: Likewise.
3951 * cselib.c: Likewise.
3952 * c-semantics.c: Likewise.
3953 * c-typeck.c: Likewise.
3955 2001-08-01 H.J. Lu <hjl@gnu.org>
3957 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
3959 2001-08-01 H.J. Lu <hjl@gnu.org>
3961 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
3963 2001-08-01 Ziemowit Laski <zlaski@apple.com>
3965 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
3966 contextualizing Objective-C class name lookup by the lexer.
3967 (typespec_reserved_nonattr): Disable ObjC class name lookup after
3969 (protocoldef): Add support for forward @protocol declarations.
3970 (yylexname): Suppress ObjC class name lookup in certain contexts;
3971 re-enable after lookup is complete.
3972 (_yylex): Re-enable ObjC class name lookup when certain
3973 punctuation marks are seen.
3975 * objc/objc-act.c (check_protocol_recursively): New function used
3976 for finding circular dependencies in protocols.
3977 (objc_declare_protocols): New function for handling forward
3978 @protocol declarations.
3979 (receiver_is_class_object): Detect the case when 'self' is used
3980 inside of a class method.
3981 (build_message_expr): Issue a warning if class method is desired
3982 but instance method is found instead.
3983 (conforms_to_protocol): Streamline.
3984 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
3985 protocol Foo, even if 'Bar foo' does not.
3986 (check_protocols): Streamline.
3987 (start_protocol): Add checks for circular and duplicate protocol
3989 (encode_aggregate_within): For typedefs of structs, encode the
3991 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
3992 (objc_declare_protocols): New prototype.
3994 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3996 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
3997 * cpplex.c (handle_newline): Update prototype. Maintain logical
3999 (skip_escaped_newlines, skip_block_comment, parse_string):
4001 (_cpp_lex_token): Update, and store token position within the token.
4002 * cpplib.h (struct cpp_token): Add line and column entries.
4003 * cppmacro.c (replace_args): Position stringified tokens correctly.
4005 2001-08-01 Andreas Jaeger <aj@suse.de>
4007 * basic-block.h: Add prototype for last_loop_beg_note.
4009 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
4011 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
4012 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
4014 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
4015 while handling WITH_CLEANUP_EXPR node. Use second operand calling
4016 expand_decl_cleanup.
4017 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
4019 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
4020 operand while calling simple_cst_equal.
4021 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
4022 operand is the cleanup expression, the third is the RTL_EXPR.
4023 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
4025 2001-07-31 Jeff Sturm <jsturm@one-point.com>
4027 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
4029 2001-07-31 matthew green <mrg@eterna.com.au>
4031 * config.gcc (i386-*-netbsdelf): New description.
4032 * config/i386/netbsd-elf.h: New file.
4034 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
4036 * loop.c (check_dbra_loop): Use single_set to compute
4039 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
4041 PowerPC reorg and support for powerpc64-*-linux*.
4043 Also fixes emitting of constants on 32 bit and 64 bit
4046 * config.gcc: powerpc64-*-linux* is a new target.
4047 Things that needed aix.h now also include xcoff.h
4049 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
4051 Move AIX specific stuff into aix.h.
4052 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
4053 with more than just XCOFF now.
4054 (SET_ASM_OP): Remove, now defined where needed.
4055 (FUNCTION_PROLOGUE): New macro definition.
4056 (FUNCTION_EPILOGUE): New macro definition.
4057 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
4059 * config/rs6000/xcoff.h: New file.
4061 * config/rs6000/linux64.h: New file.
4063 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
4065 2001-07-31 Alan Modra <amodra@bigpond.net.au>
4067 * rs6000.c (print_operand_address): Handle ELF syntax.
4068 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
4069 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
4070 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
4072 2001-07-31 David Edelsohn <edelsohn@gnu.org>
4074 * rs6000.c (rs6000_override_options): Only disable
4075 flag_function_sections for XCOFF.
4076 (exact_log2_cint_operand): New predicate.
4077 (reg_or_{add,sub}_cint64_operand): New predicates.
4078 (add_operand): Compare CONST_INT with fewer function calls.
4079 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
4080 (print_operand, case 'p'): Ensure positive operand.
4081 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
4082 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
4083 (PREDICATE_CODES): Add new predicates.
4084 * rs6000.md (addsi3): Split 32-bit constants more correctly.
4085 (divsi3, modsi3): Ensure positive power-of-2.
4086 (adddi3): Use new predicate. Split 32-bit constants more
4087 correctly. Re-arrange splitter to handle any constant.
4088 (subdi3): Use new predicate.
4089 (divdi3, moddi3): Ensure positive power-of-2.
4090 (movdi): Use rs6000_emit_set_const.
4091 (load_toc_v4_pic_di): Delete.
4093 2001-07-31 Graham Stott <grahams@redhat.com>
4095 * function.c (pad_below): Revert 2001-07-26 patch.
4097 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
4099 * reg-stack (convert_regs_1): Fix best edge condition.
4101 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
4103 * jump.c (duplicate_loop_exit_test): Better test for jumps
4104 entering the loop; create loop pre_header.
4106 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
4108 * doc/install.texi: Add s390 and s390x as new targets.
4109 * doc/invoke.texi: Add documantation of S/390 and zSeries
4111 * doc/md.texi: Add documantation of S/390 and zSeries constraints.
4113 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
4115 * config/m68k/m68k.md: Replace all general_operand with
4116 nonimmediate_operand for all destinations.
4117 * config/m68k/m68k.c (not_sp_operand): Likewise.
4119 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
4121 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
4123 2001-07-30 Richard Henderson <rth@redhat.com>
4125 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
4126 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
4128 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
4130 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
4131 Add missing doc strings
4132 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
4133 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
4135 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
4137 * i386.c (ix86_output_main_function_alignment_hack): New function.
4138 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
4140 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
4141 edges by EDGE_DFS_BACK flag.
4142 (dump_edge_info): Add dfs_back flag.
4143 * basic-block.h (EDGE_DFS_BACK): New constant.
4144 (mark_dfs_back_edges): Declare.
4145 * alias.c (loop_p): Remove.
4146 (mark_constant_function): Use mark_dfs_back_edges.
4148 * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
4149 (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
4150 (compensate_edge): Break out from ...
4151 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
4152 (convert_regs_2): Set block_done once block is really done;
4153 Do updating of the predecesors counts.
4155 * toplev.c (rest_of_compilation): Recompute block_for_insn
4156 before post-reload cfg_cleanup.
4157 * function.c (thread_prologue_epilogue_insns):
4158 Call set_block_for_new_insns when emitting prologue directly.
4160 2001-07-30 Andreas Jaeger <aj@suse.de>
4162 * jump.c: Add prototype for mark_modified_reg.
4164 * cse.c (set_live_p): Add unused attribute.
4166 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
4168 (scan_for_source_files): Use long for count to avoid overflow.
4169 (output_data): Likewise.
4170 (output_data): Don't use string concatatenation to silence gcc
4173 * predict.c: Fix typos and grammar.
4175 * gcse.c (insert_insn_end_bb): Remove unused variables.
4177 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
4179 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
4180 (attempt_auto_inc): LIkewise.
4181 (mark_used_reg): Likewise.
4182 (try_pre_increment_1): Likewise.
4183 * regclass.c (regclass): Likewise.
4184 * global.c (allocno_compare): Update comment; change scaling factor.
4185 * local-alloc.c (QTY_CMP_PRI): Likewise.
4186 * regs.h (REG_FREQ_FROM_BB): New.
4187 (REG_FREQ_MAX): Likewise.
4189 2001-07-30 H.J. Lu <hjl@gnu.org>
4191 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
4194 2001-07-30 H.J. Lu (hjl@gnu.org)
4196 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
4197 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
4198 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
4200 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4202 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
4203 as -mthumb-interwork when -mcpu=arm7 is specified.
4205 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
4207 * predict.def (noreturn, loop branch, loop exit): Mark as first
4210 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
4212 * combine.c (try_combine): Avoid barrier after noop jumps.
4214 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4216 * cpphash.h (struct cpp_reader): Remove import_warning.
4217 * cpplib.c (skip_rest_of_line): Don't bother turning off
4219 (parse_include): Move include handling to...
4220 (do_include_common): ... here. Move import warning from...
4221 (do_import): ... here.
4222 (do_pragma_poison): Don't do a callback for poison identifiers.
4223 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
4224 * cppmain.c (setup_callbacks): Similarly.
4226 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
4228 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
4229 handle multiple sets.
4230 * except.c (sjlj_mark_call_sites): .... here.
4231 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
4233 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
4235 Suggested by Richard Henderson and Richard Kenner:
4236 * combine.c (recog_for_combine): Use the fake recog
4237 only if instruction does not match.
4238 * rtl.h (NOOP_MOVE_INSN_CODE): New.
4239 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
4241 * combine.c (try_combine): Discover noop jump as direct jump.
4243 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
4245 * df.c (df_rd_global_compute): Add successors to worklist, not
4247 (df_ru_global_compute): Ditto.
4249 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
4251 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
4252 increment REG_N_SETS.
4254 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
4256 * sbitmap.h: New prototype for sbitmap_a_xor_b.
4258 * sbitmap.c (sbitmap_a_xor_b): New function.
4259 ifdef the basic block stuff on IN_GCC.
4261 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4263 * cppexp.c (parse_defined): Always record the macro name.
4264 (lex): Don't worry about identifiers, or special-case
4266 (_cpp_parse_expr): Figure out at the end of the routine
4267 whether we saw a valid !defined() expression.
4268 * cppfiles.c (stack_include_file): Update for mi_valid.
4269 (_cpp_pop_file_buffer): Similarly.
4270 * cpplex.c (_cpp_lex_token): Similarly.
4271 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
4272 mi_if_not_defined, mi_lexed): Remove.
4274 * cpplib.c (do_if): Simplify.
4275 (do_endif, push_conditional, _cpp_handle_directive): Update
4276 for renaming of mi_state to mi_valid.
4278 * cpp.texi: Add index entries for digraphs, and add comment
4279 that C++ refers to them as alternative tokens.
4281 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
4283 * basic-block.h (CLEANUP_PRE_LOOP): New.
4284 * except.c (finish_eh_generation): Update call of cleanup_cfg.
4285 * sibcall.c (optimize_sibling_calls): Likewise.
4286 * toplev.c (rest_of_compilation): Likewise.
4287 * flow.c (try_forward_edges): Take argument MODE;
4288 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
4289 (try_optimize_cfg): Update call of try_forward_edges.
4291 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
4292 Jan Hubicka <jh@suse.cz>
4294 * (validate_replace_rtx_1): Fix simplification of MINUS.
4296 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
4298 PR preprocessor/3669
4299 * cppinit.c (init_dependency_output): Turn off dump requests
4300 if sending dependencies to stdout.
4302 2001-07-28 Richard Henderson <rth@redhat.com>
4304 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
4307 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
4309 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
4311 2001-07-28 Kazu Hirata <kazu@hxi.com>
4313 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
4314 is VAR_DECL first to prevent an ICE.
4316 2001-07-28 Richard Henderson <rth@redhat.com>
4318 * varasm.c (immed_real_const_1): Don't elide special cases for
4320 (clear_const_double_mem): Clear const_tiny_rtx too.
4322 2001-07-28 Richard Henderson <rth@redhat.com>
4324 * dwarf2out.c (dw_val_class_offset): New.
4325 (struct dw_ranges_struct, dw_ranges_ref): New.
4326 (ranges_table, ranges_table_allocated): New.
4327 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
4328 (add_AT_offset, add_ranges, output_ranges): New.
4329 (print_die, output_die): Handle dw_val_class_offset.
4330 (attr_checksum, size_of_die, value_format): Likewise.
4331 (gen_lexical_block_die): Handle non-contiguous blocks.
4332 (gen_block_die): Likewise.
4333 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
4334 if needed. Dump the ranges table.
4335 * final.c (final_start_function): Remove unnecessary notes and
4336 rebuild the block tree before numbering the blocks.
4337 * function.c (reorder_blocks_0): Walk the existing block tree
4338 to unmark all blocks.
4339 (reorder_blocks_1): Create block fragments when duplicate block
4341 (reorder_fix_fragments): New.
4342 (reorder_blocks): Call it.
4343 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
4345 2001-07-28 Richard Henderson <rth@redhat.com>
4347 * emit-rtl.c (adjust_address): Make a copy of the memory address.
4349 2001-07-28 Richard Henderson <rth@redhat.com>
4351 * flow.c (add_to_mem_set_list): New function.
4352 (init_propagate_block_info): Use it.
4353 (mark_set_1): Likewise.
4354 (insn_dead_p): Canonicalize memory address for dead store
4355 comparison. Allow wider mode stores to kill narrower mode stores.
4356 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
4357 (invalidate_mems_from_set): Don't handle MEMs.
4359 2001-07-28 Kazu Hirata <kazu@hxi.com>
4361 * config/h8300/h8300.h: Fix formatting.
4363 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
4365 * basic-block.h (EDGE_FREQUENCY): New macro.
4366 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
4368 * flow.c (find_sub_basic_blocks): Likewise.
4369 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
4370 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
4372 * predict.c (DEF_PREDICTOR): New argument FLAGS.
4373 (HITRATE): New macro.
4374 (PRED_FLAG_FIRST_MATCH): New constant.
4375 (predictor_info): New field flgags.
4376 (combine_predictions_for_insn): Use DS theory to combine
4377 probabilities; set the edge probabilities when finished.
4378 (estimate_probability): Avoid duplicated matches
4379 of LOOP_BRANCH heuristics for nested loops; update comment.
4380 * predict.def: Add flags for each prediction, set probabilities
4381 according to B&L paper.
4382 * predict.h (DEF_PREDICTOR): New argument FLAGS.
4384 * profile.c (compute_branch_probabilities): Cleanup way the edge
4385 probabilities are computed and REG_BR_PROB notes are dropped; if
4386 values does not match, emit error.
4387 (init_branch_prob): Do error instead of warning when profile driven
4388 feedback is missing or corrupt.
4390 2001-07-27 DJ Delorie <dj@redhat.com>
4392 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
4393 against a constant, try to adjust the compare to have the desired
4394 constant in it so that min/max optimizations happen more often.
4396 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
4398 * flow.c (last_loop_beg_note): New function.
4399 (redirect_edge_and_branch): Use it.
4400 (split_edge): Likewise.
4402 * alias.c (loop_p): Avoid uninitialized memory access.
4404 * flow.c (try_forward_edges): Avoid accessing freed memory.
4406 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
4409 2001-07-26 Andrew Haley <aph@redhat.com>
4410 Joern Rennecke <amylaar@redhat.com>
4412 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
4413 (SUBTARGET_CPP_ENDIAN_SPEC): New.
4414 (SUBTARGET_CPP_SPEC): New.
4416 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
4417 (SUBTARGET_CPP_PTR_SPEC): New.
4418 (CPP_DEFAULT_CPU_SPEC): New.
4419 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
4420 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4421 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
4422 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4423 (SUBTARGET_CPP_SPEC): Define as an empty string.
4425 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4427 * doc/install.texi (Configuration): Properly link the host
4428 specific instructions also when generating HTML.
4430 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
4432 * flow.c (redirect_edge_and_branch_force): Test
4433 target->global_live_at_start.
4435 2001-07-26 Richard Henderson <rth@redhat.com>
4437 * simplify-rtx.c (avoid_constant_pool_reference): Export.
4438 * rtl.h (avoid_constant_pool_reference): Declare it.
4439 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
4440 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
4442 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
4444 * rtl.h (cleanup_barriers): Declare.
4445 * jump.c (cleanup_barriers): New function.
4446 * toplev.c (rest_of_compilation): Call cleanup_barriers
4447 before loop optimizer and after bb_reorder.
4449 * flow.c (back_edge_of_syntactic_loop_p): New.
4450 (split_edge): Use it.
4452 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4454 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
4456 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
4458 * cse.c (cse_process_notes): Replace any registers if the address
4461 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
4463 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
4464 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
4465 (propagate_block): Update prototype.
4466 * flow.c (update_life_info): Simplify the CFG and
4467 recalculate the global regs which are alive when
4468 removing dead code during a global update.
4469 (propagate_block): Return non-zero if an INSN is
4472 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4474 * Makefile.in (LIBICONV): Define.
4476 2001-07-26 Catherine Moore <clm@redhat.com>
4478 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
4479 of conditional to avoid tree checking errors.
4481 2001-07-26 Kazu Hirata <kazu@hxi.com>
4483 * regmove.c (regmove_optimize): Don't replace a reg with
4484 another reg of a different mode.
4486 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
4488 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
4489 limit length of dependancy flush list.
4490 * params.h (MAX_PENDING_LIST_LENGTH): Define.
4491 * sched-int.h (struct deps): Add pending_flush_length field.
4492 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
4493 has 1 element in it.
4494 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
4495 (sched_analyze): After a jump, if the pending memory flush list is too
4496 large, flush the pending lists.
4497 (init_deps): Initialize pending_flush_length to 0.
4498 * doc/invoke.texi (max_pending_list_length): Document parameter.
4500 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
4502 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
4503 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
4504 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
4506 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4508 * cpphash.h (struct_lexer_state): Delete was_skipping.
4509 Move skipping here from struct cpp_reader.
4510 * cpplex.c (parse_identifier): Update.
4511 (_cpp_lex_token): Don't skip tokens in a directive.
4512 * cpplib.c (struct if_stack): Update.
4513 (start_directive, end_directive): Don't change skipping state.
4514 (_cpp_handle_directive): Update.
4515 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
4516 (do_else, do_endif): Update; only check for excess tokens if not
4517 in a skipped conditional block.
4518 (push_conditional): Update for new struct if_stack.
4520 2001-07-26 Graham Stott <grahams@redhat.com>
4522 * function.c (locate_and_pad_parm): Also pad initial offset
4523 so that the total argument size also includes the padding.
4525 2001-07-26 Graham Stott <grahams@redhat.com>
4527 * gensupport.c (alter_output_for_insn): Correct enable checking failure
4528 change XSTR to XTMPL.
4530 (process_one_cond_exec): Likewise
4532 2001-07-25 Richard Henderson <rth@redhat.com>
4534 * varasm.c (assemble_variable): Create DECL_RTL before setting
4537 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
4539 * predict.c (estimate_probability): Avoid duplicated predictions.
4541 * loop.c (find_and_verify_loops): Grok multiple barriers.
4543 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4545 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
4547 * dbxout.c: Consistently use putc instead of fputc.
4548 (print_wide_int): New function; call instead of direct fprintf.
4549 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
4550 (dbxout_type_fields, dbxout_type_method_1): Likewise.
4551 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
4552 (print_int_cst_octal): Likewise.
4553 (print_octal): Show we wrote characters.
4554 (dbxout_type): Set have_used_extensions in more places.
4556 2001-07-25 Catherine Moore <clm@redhat.com>
4558 * config/v850/v850.c (v850_va_arg): Use addr
4559 instead of valist to build incr.
4561 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
4563 * flow.c (delete_dead_jumptables): New function.
4564 (life_analyzis): Call it.
4565 * bb-reorder.c (skip_insns_after_block): Handle contradictory
4568 2001-07-25 Richard Henderson <rth@redhat.com>
4570 * except.c (reachable_handlers): Handle a region being removed
4571 out from under a RESX.
4573 2001-07-25 Richard Henderson <rth@redhat.com>
4575 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
4576 swap GE/GT if it is an fp comparison.
4578 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
4580 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
4583 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
4585 * ssa.c (rename_insn_1): Do not wrap an assignment to a
4586 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
4589 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
4591 (visit_expression): When attempting to simplify an expression,
4592 retrieve any modes for arguments before they are simplified
4595 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4596 Janis Johnson <janis@us.ibm.com>
4598 * stmt.c (expand_goto): A nonlocal goto can be a call too.
4599 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
4600 pointer parameters to match documented usage of nonlocal_goto.
4601 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
4602 parameters to their correct order.
4603 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
4604 parameters to their correct order.
4606 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4608 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
4610 2001-07-25 Jan Hubicka <jh@suse.cz>
4611 Richard Henderson <rth@redhat.com>
4613 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
4615 (make_edges): New argument update_p; populate the edge cache if set.
4616 (find_basic_blocks): Update make_edges invocation.
4618 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4620 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
4622 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4624 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
4625 -Acpu and -Amachine.h.
4626 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
4627 Corrected header to say ELF not a.out.
4628 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
4629 when given -msoft-float.
4631 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4633 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
4634 extra multilib parts like arm-elf.
4635 (i960-*-coff*, i960-*-rtems): Should not use collect2.
4636 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
4637 crtfini.o as extra multilib parts.
4639 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4641 * configure.in: Add rtems as a supported thread model.
4642 * gthr-rtems.h: Add missing entry point __gthread_active_p.
4643 * configure: Rebuilt.
4645 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
4647 * stor-layout.c (get_mode_alignment): make it work when
4648 BITS_PER_UNIT is not a power of two.
4649 * builtins.c (get_pointer_alignment): Likewise.
4651 2001-07-24 Richard Henderson <rth@redhat.com>
4653 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
4654 the retrieved constant into the expected mode.
4656 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
4658 * flow.c (try_simplify_condjump): Avoid duplicated edges.
4659 (verify_flow_info): Check for duplicated edges; clarify
4662 * flow.c (block_label): Update basic_block_for_insn.
4663 (commit_edge_insertions): Call compute_bb_for_insn.
4665 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
4668 * flow.c (redirect_edge_and_branch,
4669 try_optimize_cfg): Use redirect_edge_succ_nodup
4670 (redirect_edge_succ_nodup): New.
4671 * basic_block.h (redirect_edge_succ_nodup): Declare.
4673 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
4676 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
4678 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
4679 (try_crossjump_to_edge): Update commetns.
4680 (try_crossjump_bb): Likewise.
4682 2001-07-24 Richard Henderson <rth@redhat.com>
4684 * combine.c (distribute_notes): Move set of need_refresh
4685 for noop_move_p down to catch all cases.
4687 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
4689 * recog.c (split_all_insns_noflow): New.
4690 * rtl.h (split_all_insns_noflow): Declare.
4691 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
4692 * m68hc11.c (m68hc11_reorg): Likewise.
4693 * sh.c (machine_dependent_reorg): Likewise.
4694 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
4697 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
4699 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
4700 (ashlsi3_n splitter): Likewise.
4701 (lshrsi3_n splitter): Likewise.
4703 (GOTaddr2picreg): Make const SImode.
4704 (sym_label2reg): Likewise.
4705 (symGOT2reg): Likewise.
4706 (symGOTOFF2reg) Likewise.
4708 (casesi_worker_0): Make unspec SImode.
4710 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
4712 * config/sh/sh.c (barrier_align): Check that an operand really is
4713 an insn before extracting its INSN_CODE.
4715 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
4717 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
4720 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
4721 for SImode to prevent overflow.
4723 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4725 * config/mips/irix6-libc-compat.c: New file.
4726 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
4727 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
4730 2001-07-24 lars brinkhoff <lars@nocrew.org>
4732 * rtl.texi (REG_POINTER): Document.
4733 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
4734 QFmode, HFmode, TQFmode, QCmode, and HCmode.
4736 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
4738 * flow.c (delete_noop_moves): Do not confuse libcall regions.
4740 2001-07-23 Richard Henderson <rth@redhat.com>
4742 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
4744 2001-07-23 Kazu Hirata <kazu@hxi.com>
4746 * config/h8300/h8300-protos.h: Add a prototype for
4747 general_operand_dst_push.
4748 * config/h8300/h8300.c (general_operand_dst_push): New.
4749 * config/h8300/h8300.h (OK_FOR_T): New.
4750 (EXTRA_CONSTRAINT): Use it.
4751 * config/h8300/h8300.md (movqi_push): Remove and integrate into
4752 the existing movqi pattern.
4753 (movhi_push): Likewise.
4755 * reload.c: Fix comment typos.
4757 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
4759 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
4761 2001-07-23 H.J. Lu (hjl@gnu.org)
4763 * doc/extend.texi: Update __builtin_return_address and
4764 __builtin_frame_address.
4766 2001-07-23 Richard Henderson <rth@redhat.com>
4768 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
4770 * config/i386/i386.md: New setcc+movzbl peephole2.
4772 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4774 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
4775 * objc/objc-act.c: Include debug.h.
4776 (synth_module_prologue): Save and restore debug hooks too.
4778 2001-07-23 lars brinkhoff <lars@nocrew.org>
4780 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
4781 and C4X_FLOAT_FORMAT.
4782 (BOOL_TYPE_SIZE): Document.
4784 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
4786 * unroll.c (loop_iterations): Fix miscalculation of initial
4789 2001-07-13 Andrew Haley <aph@redhat.com>
4791 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
4792 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
4793 * config/sh/sh.c (sh_can_redirect_branch): New function.
4794 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
4795 * reorg.c (steal_delay_list_from_target): Use
4796 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
4798 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
4800 * flow.c (try_simplify_condjump): Unlink insn chain on
4801 fallthru edge; use can_fallthru.
4803 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
4805 * basic-block.h (find_sub_basic_block): Declare.
4806 * flow.c (make_edges): New arguments MIN and MAX;
4807 (find_sub_basic_blocks): Revamp to use make_edges
4808 and purge_dead_edges.
4809 (find_basic_blocks): Update call of find_sub_basic_block.
4811 * recog.c (split_all_insns): Always expect CFG to be consistent;
4812 call find_sub_basic_blocks in case something has changed.
4813 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
4816 * basic-block.h (delete_noop_moves): Declare.
4817 * combine.c (combine_instructions): Call it.
4818 (recog_for_combine): Tolerate noop moves
4819 (distribute_notes): Force refresh when register dies at noop move.
4820 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
4822 (life_analysis): Update delete_noop_moves call.
4823 (set_noop_p): Move too ...
4824 * rtlanal.c (noop_move_p): ... here.
4825 * rtl.h (noop_move_p): Declare.
4827 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
4828 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
4830 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
4831 (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
4833 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
4835 * reload.c (push_reload): Fix typo in comment.
4836 (find_reloads_address): Ditto.
4837 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
4839 2001-07-22 Richard Henderson <rth@redhat.com>
4841 * flow.c: Grammar check and clarify a lot of comments.
4842 (try_simplify_condjump): Rename variables to be clearer.
4843 (try_forward_edges): Skip complex and fallthru edges.
4844 Rearrange tests to avoid duplicate checks.
4845 (flow_find_cross_jump): Likewise.
4846 (outgoing_edges_match): Allow match if neither branch has
4847 probability data. Loosen probability match to 5%.
4848 (try_crossjump_to_edge): Hoist repeated indirection into
4850 (try_crossjump_bb): Don't check complex edges. Eliminate
4851 redundant crossjump tests.
4852 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
4853 checks before more expensive checks.
4855 2001-07-22 Richard Henderson <rth@redhat.com>
4857 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
4858 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
4861 2001-07-22 Richard Henderson <rth@redhat.com>
4863 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
4864 (const_sint32_operand): Likewise.
4865 * m68k.md (anon mulsi pattern): Use const_int_operand not
4866 const_sint32_operand.
4867 (umulsi3_highpart): Zero extend a constant input.
4868 (smulsi3_highpart): Don't bother checking SImode constant.
4869 (const_umulsi3_highpart): Give op3 DImode.
4870 (const_smulsi3_highpart): Likewise.
4872 2001-07-22 Richard Henderson <rth@redhat.com>
4874 * flow.c (split_block): Make sure bb_note is included in the
4875 new block when splitting before a label.
4877 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
4879 * basic-block.h (redirect_edge_and_branch_force,
4880 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
4881 * flow.c (redirect_edge_and_branch_force,
4882 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
4883 (redirect_edge_and_branch_force): Fix copying of lifeness information.
4884 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
4885 * ifcvt.c (dead_or_predictable): Take BB as an new destionation
4886 instead of label; update CFG after transformation.
4887 (find_if_case_1): Update call, use redirect_edge_and_branch_force
4888 for finishing the transformation; handle even case where ELSE
4889 does not follow THEN.
4890 (find_if_case_2): Update call of dead_or_predictable; simplify
4893 * emit-rtl.c (split_branch_probability): New global variable.
4894 (try_split): Take care to set split_branch_probability and
4895 create REG_BR_PROB note for new jump insns.
4896 * md.texi (define_split): Document new feature.
4898 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
4900 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
4902 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
4903 (asm_out_file): Remove redundant declaration.
4904 (assemble_asm): Remove old #if 0 block.
4905 (assemble_variable): Remove end of function; debug output is
4906 now handled with global_decl. Remove old #if 0 block. Update.
4907 Remove saved_in_section and associated no-op code.
4908 * Makefile.in (varasm.o): Correct dependencies.
4910 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
4912 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4913 the definition in defaults.h.
4915 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
4917 * jump.c: Update comments.
4918 (delete_barrier_successors, delete_unreferenced_labels,
4919 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
4920 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
4921 jump_optimize, jump_optimize_minimal): Kill.
4922 (rebuild_jump_labels): Move code from jump_optimize_1.
4923 (purge_line_number_notes): Likewise.
4924 (copy_loop_headers): Likewise.
4925 * reg-stack.c: Update comment.
4927 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
4928 JUMP_AFTER_REGSCAN): Kill.
4929 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
4930 purge_line_number_notes and copy_loop_headers.
4932 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
4933 Richard Henderson <rth@redhat.com>
4935 * dbxout.c (dbxout_global_decl): New.
4936 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4937 * sdbout.c (sdbout_finish): New.
4938 (sdbout_debug_hooks): Use it, add comments.
4939 (sdbout_global_decl): Defer initialised public vars to
4941 * varasm.c (assemble_variable): Don't output debug information
4942 for file-scope variables.
4944 2001-07-22 Richard Henderson <rth@redhat.com>
4946 * config/alpha/alpha.c (get_trap_mode_suffix): New.
4947 (get_round_mode_suffix): New.
4948 (print_operand): Use them for [/]. Remove support for [&'`()+].
4949 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
4950 * config/alpha/alpha.md (attr round_suffix): New.
4951 (attr trap_suffix): New.
4952 (all insns): Set them appropriately. Use %/ instead of the
4955 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4957 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
4959 2001-07-22 Richard Henderson <rth@redhat.com>
4961 * regrename.c (regrename_optimize): Compute nregs for each
4962 potential target register.
4964 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
4965 Richard Henderson <rth@redhat.com>
4967 * dbxout.c (dbxout_global_decl): New.
4968 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4969 * sdbout.c (sdbout_finish): New.
4970 (sdbout_debug_hooks): Use it, add comments.
4971 (sdbout_global_decl): Defer initialised public vars to
4973 * varasm.c (assemble_variable): Don't output debug information
4974 for file-scope variables.
4976 2001-07-21 H.J. Lu (hjl@gnu.org)
4978 * config/mips/mips.c (mips_cpu): Moved into ...
4979 (override_options): Here.
4981 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
4983 (mips_cpu): Removed.
4985 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4987 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
4988 ("iorqi3"): Likewise.
4989 ("xorqi3"): Likewise.
4990 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
4991 ("*subhi3_sp): Likewise.
4992 ("*subhi3"): Likewise.
4993 ("extendhisi2"): Accept D, X and Y as source operand to avoid
4996 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
4998 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
4999 * config/freebsd.h: Likewise.
5000 * config/linux.h: Likewise.
5001 * config/openbsd.h: Likewise.
5002 * config/alpha/linux-elf.h: Likewise.
5003 * config/arm/linux-elf.h: Likewise.
5004 * config/d30v/d30v.h: Likewise.
5005 * config/fr30/fr30.h: Likewise.
5006 * config/ia64/aix.h: Likewise.
5007 * config/ia64/ia64.h: Likewise.
5008 * config/mips/linux.h: Likewise.
5009 * config/pj/pj.h: Likewise.
5010 * config/rs6000/linux.h: Likewise.
5011 * config/sparc/linux.h: Likewise.
5012 * config/sparc/linux64.h: Likewise.
5014 2001-07-20 Bruce Korb <bkorb@gnu.org>
5016 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
5017 because getc() and char* may disagree on signedness.
5019 2001-07-20 Richard Henderson <rth@redhat.com>
5021 * doc/rtl.texi (REG_DEAD): Update for current semantics.
5023 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
5024 insns to delete in the presence of cc0 in a jump insn.
5026 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
5027 Jan Hubicka <jh@suse.cz>
5029 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
5030 of doing the change by hand.
5032 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
5034 * rtlanal.c (set_noop_p): Return true for noop jumps.
5036 * expr.c (emit_single_push_insn): Add call to push expander.
5037 * expr.h (optab_index): Add OTI_push
5038 (push_optab): New constant.
5039 * genopinit.c (optabs): Add push_optab.
5040 * optabs.c (init_optab): Init push optab.
5041 * md.texi (push??1): Document
5043 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5045 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
5046 expand to emit the pattern; put a REG_INC note for push/pop
5048 ("movdf", "movdf_internal"): Likewise.
5049 ("movsi", "movsi_internal"): Likewise.
5050 ("movsf", "movsf_internal"): Likewise.
5051 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
5053 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5055 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
5058 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
5060 * params.def: Change default max inline insns to 100.
5062 2001-07-20 Diego Novillo <dnovillo@redhat.com>
5064 * combine.c (combine_simplify_rtx): Generate a new shift operation
5065 when simplifying the first operand of a (neg (ashift)) expression.
5067 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
5069 * regclass.c (N_REG_INTS): Use only 32 bits per element.
5071 2001-07-20 Kelley Cook <kelley.cook@home.com>
5073 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
5074 information. Move rest into ...
5075 (*-*-solaris): ... here. Eliminate redundant information and
5076 reword necessary packages section. Delete 4.x assembler bug info.
5077 (sparc-sun-*): Merge into ...
5078 (sparc-sun-sunos*): here.
5080 2001-07-20 Catherine Moore <clm@redhat.com>
5082 * config/v850/v850.md (casesi): Generate LABEL_REF
5085 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
5087 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
5088 * i386.c (ix86_zero_extend_to_Pmode): Make global.
5089 * i386.md (strclrsi expander): Use it.
5091 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5093 * integrate.c (copy_insn_list): handle
5094 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
5095 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
5096 identically as to CODE_LABEL.
5098 * fold-const (fold): Convert A/B/C to A/(B*C) and
5101 * except.c (connect_post_landing_pads): Delete the RESX insns.
5103 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
5105 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
5107 * config/mips/mips.md (nmadd/nmsub): Use macro.
5109 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
5111 * cppinit.c (remove_dup_dir): Make static.
5112 (remove_dup_dirs): Make static. Only warn about preempting a
5113 system directory with a non-system directory.
5115 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
5117 * ifcvt.c (noce_try_store_flag_constants): Correct order
5118 of parameters to trunc_int_for_mode.
5120 2001-07-19 Mark Mitchell <mark@codesourcery.com>
5122 * reorg.c (fill_simple_delay_slots): If an instruction might throw
5123 an exception that will be caught within this function, do not fill
5124 its delay slot with any subsequent instruction.
5126 2001-07-19 Steve Ellcey <sje@cup.hp.com>
5128 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
5129 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
5130 pointer extension instruction.
5131 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
5132 * simplify-rtx.c (simplify_unary_operation) Likewise.
5133 * explow.c (convert_memory_address) Check value of
5134 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
5136 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
5137 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
5138 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
5139 Add Multilib Support.
5140 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
5141 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
5142 Add Multilib Support.
5143 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
5145 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
5146 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
5147 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
5149 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
5151 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
5152 old and new operands in `<', `3' and `b'.
5154 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
5156 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
5157 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
5158 (toplev.o): Don't depend on xcoffout.h.
5159 * c-decl.c: Include debug.h
5160 (duplicate_decls): Use debug hook.
5161 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
5162 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5163 (dbxout_types): Remove.
5164 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
5165 * debug.c (do_nothing_debug_hooks): Update.
5166 (debug_true_tree, debug_nothing_rtx): New.
5167 * debug.h (struct rtx_def): New.
5168 (struct gcc_debug_hooks): New hooks ignore_block,
5169 outlining_inline_function and label.
5170 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
5171 dwarf2out_frame_finish): New.
5172 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
5173 Make static, update prototype.
5174 (dwarf2_debug_hooks): Update.
5175 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
5176 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
5177 * dwarfout.c (dwarf_debug_hooks): Update.
5178 * emit-rtl.c: Include debug.h.
5179 (remove_unnecessary_notes): Use debug hook.
5180 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
5181 (final_scan_insn): Use debug hook.
5182 * integrate.c (output_inline_function): Use debug hook.
5183 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
5184 (sdb_debug_hooks): Update.
5185 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
5186 * toplev.c: Don't include xcoffout.h.
5187 (note_outlining_of_inline_function, debug_ignore_block): Remove.
5188 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
5190 * tree.h (dwarf2out_do_frame): Remove.
5192 2001-07-19 Catherine Moore <clm@cygnus.com>
5194 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
5196 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
5198 * reload1.c (eliminate_regs_in_insn): When updating a set
5199 to the frame pointer to the hardware frame pointer, perform
5200 the update always not just when REPLACE is set.
5202 * reload1.c (choose_reload_regs): Don't inherit a reload
5203 that crosses multiple registers if registers past the first
5204 don't fit in the desired class.
5206 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
5207 when negating constants.
5209 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
5211 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
5212 * doc/tree.texi: Ditto.
5214 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
5215 Jakub Jelinek <jakub@redhat.com>
5217 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
5218 (extract_cie_info): Handle "eh" augmentation properly,
5220 (struct frame_state, __frame_state_for): New.
5222 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5224 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
5225 HANDLE_SYSV_PRAGMA): Define.
5226 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
5228 (copy_object): Caller changed.
5230 2001-07-19 Andreas Schwab <schwab@suse.de>
5232 * configure.in (assembler dwarf2 debug_line support): Define nop
5234 * configure: Regenerated.
5236 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
5238 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
5240 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
5241 to conditionally compiled block.
5242 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5243 * dbxout.h (dbxout_function): Remove.
5244 * debug.c (do_nothing_debug_hooks): Update.
5245 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
5246 global_decl, deferred_inline_function.
5247 * dwarf2out.c (dwarf2_debug_hooks): Update.
5248 (dwarf2out_global_decl): New.
5249 * dwarfout.c: Don't include dwarfout.h.
5250 (dwarfout_global_decl, dwarfout_function_decl,
5251 dwarfout_deferred_inline_function): New.
5252 (dwarf_debug_hooks): Update.
5253 * dwarfout.h: Remove.
5254 * final.c: Don't include dwarfout.h.
5255 * sdbout.c (sdbout_global_decl): New.
5256 (sdbout_debug_hooks): Update.
5257 * toplev.c: Don't include dwarfout.h.
5258 (check_global_declarations, rest_of_compilation): Use new debug hooks.
5259 (note_deferral_of_defined_inline_function): Remove.
5260 * toplev.h (note_deferral_of_defined_inline_function): Remove.
5261 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
5262 * ch/lex.c: Don't include dwarfout.h.
5263 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
5264 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
5265 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
5266 * cp/optimize.c: Include debug.h.
5267 (maybe_clone_body): Use debug hook.
5268 * cp/semantics.c: Include debug.h.
5269 (expand_body): Use debug hook.
5270 * po/POTFILES.in: Remove dwarfout.h.
5272 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
5274 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
5275 * c-parse.in (yyerror, _yylex): Similarly.
5276 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
5277 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
5279 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
5280 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
5282 2001-07-18 Jeff Sturm <jsturm@one-point.com>
5284 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
5285 in-class declaration at -g1. Fixes c++/2814.
5287 2001-07-18 Richard Henderson <rth@redhat.com>
5289 * doc/md.texi (reload_in/out): Document restrictions in predicates
5290 and constraints for these patterns. Document empty string matching
5293 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5295 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
5297 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
5299 * cse.c: Undo my previous patch.
5301 2001-07-18 Tom Tromey <tromey@redhat.com>
5304 * configure: Rebuilt.
5305 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
5307 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
5309 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
5310 Jan Hubicka <jh@suse.cz>
5312 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
5313 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
5314 * jump.c (mark_jump_label): Do not forward branches.
5316 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
5318 * cse.c (delete_trivially_dead_insns): Delete the libcall block
5319 when return value is unused.
5321 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5323 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
5325 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
5327 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
5328 on error. We can't blindly return the result of
5329 pthread_mutex_trylock because it returns a positive number on
5330 error, while we must return -1 on error.
5331 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
5333 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
5335 2001-07-18 Andreas Jaeger <aj@suse.de>
5337 * integrate.c (output_inline_function): Correct type of debug_hooks.
5339 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
5341 * combine.c (combine_simplify_rtx): DIV can be treated
5342 associatively for floats if unsafe math optimisations are enabled.
5344 2001-07-17 Richard Henderson <rth@redhat.com>
5346 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
5348 2001-07-17 Richard Henderson <rth@redhat.com>
5350 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
5351 don't force the function address into a register.
5352 (expand_call, emit_library_call_value_1): Update callers.
5353 * builtins.c (expand_builtin_apply): Likewise.
5354 * expr.h (prepare_call_address): Update decl.
5356 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
5358 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
5360 * config/i386/chorus.h: Move up.
5361 * config/sparc/chorus.h: Likewise.
5362 * config/rs6000/chorus.h: Likewise.
5363 * config/chorus.h: Moved here.
5365 2001-07-17 Andreas Schwab <schwab@suse.de>
5367 * configure.in (assembler eh_frame optimization): Handle big
5369 * configure: Regenerated.
5371 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
5373 * expr.c (epxand_expr): Convert divisions into multiplications by
5374 reciprocals if -ffast-math.
5376 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
5378 * dbxout.c (dbxout_really_begin_function): Rename to
5379 dbxout_begin_function.
5380 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5381 (dbxout_begin_function): Remove.
5382 (dbxout_function): Update.
5383 (dbxout_source_line): Update prototype.
5384 * dbxout.h (dbxout_begin_function): Remove.
5385 * debug.c (do_nothing_debug_hooks): Update.
5386 (debug_nothing_tree): Update.
5387 (debug_nothing_charstar_rtx): Remove.
5388 * debug.h (union tree_node): Declare.
5389 (struct rtx_def): Remove.
5390 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
5391 begin_function. Change source_line prototype.
5392 (debug_nothing_tree): New.
5393 (debug_nothing_charstar_rtx): Delete.
5394 (dwarf2out_begin_prologue): Moved from ...
5396 * dwarf2out.c (dwarf2_debug_hooks): Update.
5397 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
5398 debug info, call dwarf2out_source_line.
5399 (dwarf2out_souce_line): Update prototype.
5400 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
5401 Change prototype, make static.
5402 (dwarfout_source_line): Update prototype.
5403 (dwarf_debug_hooks): Update.
5404 * dwarfout.h (dwarfout_begin_function): Remove.
5405 * final.c (final_start_function, final_scan_insn): Use appropriate
5406 debug hooks, update to use notice_source_line.
5407 (output_source_line): Rename notice_source_line. Don't call the
5408 source_line debug hook.
5409 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
5410 make static, update prototype.
5411 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
5413 (sdbout_end_prologue): New.
5414 (sdbout_source_line): Update prototype.
5415 (sdbout_debug_hooks): Update.
5416 (sdbout_symbol): Remove unused var.
5417 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
5419 * varasm.c: Include debug.h.
5420 (assemble_start_function): Use begin_function debug_hook.
5421 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5422 update with prototype.
5423 (xcoffout_source_line): Update prototype.
5424 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5426 (xcoffout_source_line): Update prototype.
5428 2001-07-17 Richard Henderson <rth@redhat.com>
5430 * c-typeck.c (build_binary_op): Do not shorten unsigned
5431 right shift after sign extension.
5433 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
5435 * combine.c (combine_simplify_rtx): Attempt to simplify
5436 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
5438 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
5439 (simplify_binary_operation, simplify_unary_operation,
5440 simplify_relational_operation): Use it.
5442 * combine.c (combine_simplify_rtx): Don't do associative law
5443 on divisions; allow associative law on floats.
5445 2001-07-17 H.J. Lu <hjl@gnu.org>
5446 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5448 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
5449 ASM_OUTPUT_WEAK_ALIAS are defined.
5450 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
5451 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
5453 * config/mips/iris5.h: ... here.
5454 (HANDLE_SYSV_PRAGMA): Defined as 1.
5455 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
5456 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
5459 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
5461 * c-parse.in (all_prefix_attributes): New variable.
5462 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
5463 (maybe_resetattrs): New production.
5464 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
5465 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
5466 notype_initdcl, nested_function, notype_nested_function,
5467 component_decl, components, components_notype,
5468 component_declarator, component_notype_declarator,
5469 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
5470 ivars, mydecl, myparm): Update. Avoid prefix attributes just
5471 after a comma being applied to more than one declarator.
5472 * doc/extend.texi (Attribute Syntax): Update. Remove
5473 documentation of bugs that are no longer present.
5475 2001-07-13 Eric Christopher <echristo@redhat.com>
5477 * config/mips/mips.h: Change TUNE_MIPS* options to use
5479 (EXTRA_SPECS): Add cc1_cpu_spec.
5480 * config/mips/mips.md (muldf3): Fix typo.
5482 2001-07-16 Richard Henderson <rth@redhat.com>
5484 * config/m68k/m68k.c: Include expr.h and reload.h.
5485 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
5486 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
5488 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
5489 Richard Henderson <rth@redhat.com>
5491 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
5492 (insn_live_p): Fix fall off end of function.
5493 (dead_libcall_p): Remove COUNTS argument; update callers.
5494 (delete_trivially_dead_insns): Remove unused variables.
5496 2001-07-17 Andreas Jaeger <aj@suse.de>
5498 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
5501 * lcm.c (optimize_mode_switching): Avoid warning for unused
5502 variable if !NORMAL_MODE.
5504 * flow.c (try_crossjump_to_edge): Remove unused variable.
5506 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5508 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
5509 atexit declaration in stdlib.h.
5511 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
5513 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
5515 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
5517 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
5518 * except.c (finish_eh_generation): Update call of cleanup_cfg;
5519 do rebuild_jump_labels instead of jump_optimize
5520 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
5521 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
5522 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
5524 * flow.c: Include timevar.h
5525 (find_basic_block): Push/pop timevar;
5526 (cleanup_cfg): Likewise.
5527 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
5528 * Makefile: Add dependencies on timevar.h
5530 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
5531 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
5533 * rtl.h (delete_trivially_dead_insns): Add new parameter.
5534 * toplev.c (rest_of_compilation): Update calls.
5535 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
5536 (delete_trivially_dead_insns): ... here; accept new argument
5537 preserve_basic_blocks; preserve basic blocks if set.
5539 * reg-stack.c (stack_regs_mentioned): Return 0 if
5540 stack_regs_mentioned_data is not initialized.
5541 (reg_to_stack): Make stack_regs_mentioned survive after the
5542 reg-stack is completted; do not call cleanup_cfg.
5543 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
5544 make cleanup_cfg after bb-reorder to output to debug file.
5546 2001-07-16 Richard Henderson <rth@redhat.com>
5548 * regclass.c (init_reg_sets): Use only 32 bits per initializer
5549 from int_reg_class_contents.
5551 2001-07-16 Richard Henderson <rth@redhat.com>
5553 * hard-reg-set.h (regs_invalidated_by_call): Declare.
5554 * regclass.c (regs_invalidated_by_call): Move from cse.c.
5555 (init_reg_sets_1): Move initialization from cse_main.
5556 * cse.c (regs_invalidated_by_call): Move to regclass.c.
5557 (cse_main): Move its initialization also.
5558 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
5559 * flow.c (propagate_one_insn): Likewise.
5560 * gcse.c (compute_hash_table): Likewise.
5561 (compute_kill_rd, compute_store_table): Likewise.
5562 * sched-deps.c (sched_analyze_1): Likewise.
5564 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
5566 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
5569 2001-07-16 Steve Ellcey <sje@cup.hp.com>
5571 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
5572 in if statement so we don't access undefined memory.
5574 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
5576 * gcse.c: Update comment at top.
5577 Update comment on mem handling.
5578 mem_last_set, mem_first_set, mem_set_in_block: gone.
5579 Declaration of reg_set_info: gone.
5580 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
5581 pointless with load_killed_in_block_p (they are *more*
5582 conservative then it, not less, and less accurate).
5583 (oprs_not_set_p): Ditto.
5584 (alloc_gcse_mem): Don't allocate mem_set_in_block
5585 (free_gcse_mem): Don't free it, either.
5586 (record_last_mem_set_info): Update comment in front, remove
5587 mem_*set_* stuff. Note the reason we don't handle stores directly
5589 (compute_hash_table): Update comments to reflect reality. Remove
5590 mem_*set_* references.
5591 (reset_opr_set_tables): Remove mem_*set_* references.
5593 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
5594 (mark_clobber): Ditto (on both parts, we double set here too).
5595 (expr_killed_p): Remove mem_set_in_block test.
5596 (compute_transp): Remove mem_set_in_block test.
5598 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
5599 of edge, and removal of phi alternative to dump file.
5600 (ssa_ccp_substitute_constants): Add note about register now being
5601 constant, and which uses were replaced in what insns to dump file.
5603 2001-07-16 Andreas Jaeger <aj@suse.de>
5605 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
5606 variables of type HOST_WIDEST_INT.
5608 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
5609 (__bb_exit_func): Correct type of count_max to avoid overflow.
5610 (num_digits): Handle long long argument.
5612 * combine.c (gen_lowpart_for_combine): Remove unused variable.
5614 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
5616 * output.h (sdb_begin_function_line): Restore as an extern
5618 * sdbout.c (sdb_begin_function_line): Make extern.
5620 2001-07-15 Richard Henderson <rth@redhat.com>
5622 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
5623 * genrecog.c (maybe_both_true_mode): New.
5624 (maybe_both_true_2): Use it.
5625 (write_switch): Don't put Pmode in a switch.
5626 * rtl.c (mode arrays): Don't explicitly size them.
5628 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
5630 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
5631 handling; move unconditional splitting before mode switching.
5633 * i386.md (type): Add fistp type.
5634 (i387, length_attr, scheduling definitions): Handle this type.
5635 (fix_trunc?f?i2): Revamp to use mode switching.
5636 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
5637 * i386.h (fp_cw_mode): New enum
5638 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
5639 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
5641 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5643 * Makefile.in (integrate.o): Add debug.h.
5644 * integrate.c (debug.h): Add.
5645 (output_inline_function): Save, reset, and restore debug_hooks.
5647 2001-07-15 Richard Henderson <rth@redhat.com>
5649 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
5650 instead of COMPARE for the EQUIV expression.
5652 2001-07-15 Richard Henderson <rth@redhat.com>
5654 * flow.c (redirect_edge_and_branch_force): Initialize
5655 global_live_at_start and global_live_at_end.
5656 (allocate_bb_life_data): Export.
5657 * basic-block.h (allocate_bb_life_data): Declare.
5658 * toplev.c (rest_of_compilation): Call it.
5660 2001-07-15 Richard Henderson <rth@redhat.com>
5662 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
5663 (alpha_tablejump_best_label): New.
5664 * config/alpha/alpha-protos.h: Declare them.
5665 * config/alpha/alpha.md: Use braced strings for code blocks.
5666 (tablejump_osf): Break out add with r29.
5667 (tablejump_osf_internal): Remove.
5668 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
5669 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
5671 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
5673 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
5676 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
5678 * i386-protos.h (ix86_split_fp_branch): Update prototype.
5679 (ix86_fp_jump_nontrivial_p): New.
5680 * i386.md (fp_jcc_?): Update call of split_fp_branch;
5681 use ix86_fp_jump_nontrivial_p.
5682 * i386.c (ix86_fp_jump_nontrivial_p): New.
5683 (ix86_split_fp_branch): Accept code instead of rtx.
5684 (ix86_expand_compare): Expand comparison early in case
5685 doing so is resonably cheap.
5687 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
5689 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
5691 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
5692 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
5694 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
5696 * dbxout.c (dbxout_source_line): Make static, update prototype.
5697 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
5698 (dbxout_init, dbxout_finish, dbxout_source_line,
5699 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
5700 * dbxout.h (dbxout_source_line): Delete.
5701 * debug.c (debug_nothing_file, debug_nothing_file_int,
5702 debug_nothing_file_charstar_rtx): New.
5703 (do_nothing_debug_hooks): Update.
5704 (debug_nothing_void, debug_nothing_charstar_rtx,
5705 dwarf2out_end_epilogue): New.
5706 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5707 * debug.h (struct rtx_def): Declare.
5708 (gcc_debug_hooks): New hooks source_line, end_epilogue
5710 (debug_nothing_void, debug_nothing_charstar_rtx,
5711 dwarf2out_end_epilogue): New.
5712 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5713 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
5714 (dwarf2_debug_hooks): Update.
5715 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
5716 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
5717 * dwarf2out.h (dwarf2out_source_line): Remove.
5718 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
5719 Make static, update prototype.
5720 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
5721 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
5722 (dwarf_debug_hooks): Update.
5723 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
5724 dwarfout_end_function): Remove.
5725 * final.c (profile_function): Use debug hooks for ending functions
5727 (output_source_line, final_end_function): Update prototype,
5729 (final_start_function, final_scan_insn): Update.
5730 * output.h (sdb_begin_function_line): Remove.
5731 (final_end_function): Update prototype.
5732 * sdbout.c (sdb_begin_function_line): Make static.
5733 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
5734 (sdbout_source_line): New.
5735 (sdbout_end_epilogue, sdbout_end_function): Make static, update
5737 (sdb_debug_hooks): Update.
5738 (sdbout_init, sdbout_source_line,
5739 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
5740 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
5741 * toplev.c (compile_file, rest_of_compilation): Update.
5742 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
5743 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
5744 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
5745 Update for prototype changes.
5746 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
5747 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
5749 2001-07-15 Richard Henderson <rth@redhat.com>
5751 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
5752 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
5753 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
5754 * config/alpha/alpha.c: Likewise.
5755 * config/alpha/alpha.md: Likewise.
5756 * config/alpha/alpha32.h: Likewise.
5757 * config/alpha/vms.h: Likewise.
5760 2001-07-14 Richard Henderson <rth@redhat.com>
5762 * config/alpha/alpha.md: Use define_constants for unspec values.
5763 Substitute throughout.
5765 2001-07-14 Tim Josling <tej@melbpc.org.au>
5767 * tree.def (EXPON_EXPR) remove. Never supported anyway.
5769 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5771 * pa.md: Remove unused constraints from define_split's.
5773 2001-04-14 Richard Henderson <rth@redhat.com>
5775 * ifcvt.c (find_cond_trap): Test for exit block.
5777 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
5779 Re-install recently reverted patch.
5780 * emit-rtl.c (try_split): Update mark_jump_label call.
5781 * flow.c (find_sub_basic_blocks): Likewise.
5782 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5784 (mark_all_labels): Kill second parameter.
5785 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5786 (rebuild_jump_labels, jump_optimize_minimal): Update call
5788 (jump_optimize_1): Kill crossjumping code.
5789 (mark_jump_label): Kill cross_jump parameter.
5790 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5791 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5792 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5794 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5796 (dump_file_info): Likewise.
5797 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5798 reorganize passes to do reg-stack first, bb-reorder second.
5799 * invoke.texi (-d letters doc): Remove the jump2 pass.
5801 2001-07-14 Richard Henderson <rth@redhat.com>
5803 * ifcvt.c (find_cond_trap): New.
5804 (find_if_header): Call it.
5805 (merge_if_block): Relax existing jump sanity check.
5806 * jump.c (jump_optimize_1): Remove conditional trap handling.
5808 2001-07-14 Alan Modra <amodra@bigpond.net.au>
5810 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
5812 (insn_refs_are_delayed): Correct comment.
5813 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
5814 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
5815 instead of r31. Make associated insn !TARGET_64BIT, and
5816 provide an additional 64-bit insn that clobbers r2.
5818 (udivsi3): Likewise.
5820 (umodsi3): Likewise.
5822 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
5824 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
5826 * flow.c (redirect_edge_and_branch_force, split_edge,
5827 try_crossjump_to_edge): Use set_block_for_new_insns.
5828 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
5830 2001-07-13 H.J. Lu (hjl@gnu.org)
5832 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
5835 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
5837 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
5839 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
5841 * c-common.c (decl_attributes): Take a pointer to the node to
5842 which attributes are to be attached, and a flags argument.
5843 * c-common.h (enum attribute_flags): New.
5844 (decl_attributes): Update prototype.
5845 * c-decl.c (start_decl, push_parm_decl, finish_struct,
5846 finish_enum, start_function): Update calls to decl_attributes.
5847 * c-parse.in (component_declarator, component_notype_declarator,
5848 label): Update calls to decl_attributes.
5850 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
5852 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
5853 * config/avr/avr.c (legitimate_address_p): Return value changed
5854 from letter to register classes. For better debugging.
5856 2001-07-13 Kazu Hirata <kazu@hxi.com>
5858 * jump.c (reversed_comparison_code_parts): Fix comment typos.
5860 2001-07-13 H.J. Lu (hjl@gnu.org)
5862 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
5864 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
5866 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
5867 correctly for shared configurations.
5868 * config/t-libgcc-pic: New.
5869 * config/{i386,m68k,sparc}/t-openbsd: New.
5870 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
5871 Support -shared. Support debugging libraries with -g.
5872 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
5873 frame information does not emit pointer diffs.
5874 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
5877 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
5879 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
5881 2001-07-13 David Edelsohn <edelsohn@gnu.org>
5883 * combine.c (try_combine): Ensure const_int pow2 is positive.
5885 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
5887 * config.gcc: Add configuration for s/390.
5888 * config/s390/s390.c: New. Subroutines for code generation.
5889 * config/s390/s390.h: New. Definitions for s/390.
5890 * config/s390/s390-protos.h: New. Prototypes.
5891 * config/s390/linux.h: New. Definitions for linux for s/390.
5892 * config/s390/linux64.h: New. Definitions for linux for zSeries.
5893 * config/s390/t-linux: New. Makefile fragment.
5894 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
5895 * config/s390/fixdfdi.h: New. Fix L_fix*di.
5897 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
5899 * emit-rtl.c (try_split): Update mark_jump_label call.
5900 * flow.c (find_sub_basic_blocks): Likewise.
5901 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5903 (mark_all_labels): Kill second parameter.
5904 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5905 (rebuild_jump_labels, jump_optimize_minimal): Update call
5907 (jump_optimize_1): Kill crossjumping code.
5908 (mark_jump_label): Kill cross_jump parameter.
5909 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5910 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5911 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5913 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5915 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5916 reorganize passes to do reg-stack first, bb-reorder second.
5917 * invoke.texi (-d letters doc): Remove the jump2 pass.
5919 2001-07-12 Steve Ellcey <sje@cup.hp.com>
5921 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
5923 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5925 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
5927 (verify_flow_info): Make diagnostics prettier.
5929 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
5931 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
5933 * flow.c (outgoing_edges_match): Return early if condition reversal
5936 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
5938 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
5939 (mips_move_2words): When splitting a move into two instructions,
5940 prefix the second address operand with '%D'.
5942 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
5944 * Makefile.in (final.o): Depend on debug.h.
5945 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
5946 (dbx_debug_hooks): Add new hooks.
5947 (xcoff_debug_hooks): New.
5948 * debug.c (debug_nothing_file_int_int): New.
5949 (do_nothing_debug_hooks): Update.
5950 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
5951 (debug_nothing_file_int_int): New.
5952 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
5953 static, update prototype.
5954 (dwarf2_debug_hooks): Update.
5955 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
5956 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
5957 static, update prototype.
5958 (dwarf_debug_hooks): Update.
5959 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
5960 * final.c: Include debug.h.
5961 (final_scan_insn): Use debug hooks when beginning and ending blocks.
5962 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
5963 static, update prototype.
5964 (sdb_debug_hooks): Update.
5965 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
5966 * toplev.c: Distinguish between xcoff and dbx.
5968 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
5969 Call all debug hooks, not just dwarf ones.
5971 2001-07-11 Timothy Wall <twall@redhat.com>
5973 * config.gcc: Add configuration for AIX5/IA64.
5974 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
5975 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
5976 support prefix/suffix code.
5977 * config/ia64/t-aix: New. Makefile fragment.
5978 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
5980 2001-07-11 Kazu Hirata <kazu@hxi.com>
5982 * recog.c (validate_change): Fix a comment typo.
5984 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
5986 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
5987 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
5989 * dbxout.c (dbx_debug_hooks): Add new hooks.
5990 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
5992 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
5994 * dbxout.h (dbxout_start_new_source_file,
5995 dbxout_resume_previous_source_file): Delete.
5996 * debug.c (do_nothing_debug_hooks): Add new hooks.
5997 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
5998 (debug_nothing_int_charstar, debug_nothing_int): New.
5999 * debug.h (gcc_debug_hooks): New hooks define, undef,
6000 start_source_file and end_source_file.
6001 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
6002 (debug_nothing_int_charstar, debug_nothing_int): New.
6003 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
6004 the conditionally compiled section.
6005 (dwarf2out_start_source_file, dwarf2out_end_source_file,
6006 dwarf2out_define, dwarf2out_undef): Make static.
6007 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
6008 dwarf2out_define, dwarf2out_undef): Remove.
6009 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
6010 (dwarfout_start_source_file, dwarfout_end_source_file,
6011 dwarfout_define, dwarfout_undef): Make static.
6012 (dwarfout_start_source_file_check,
6013 dwarfout_end_source_file_check): New.
6014 (dwarfout_define, dwarfout_finish): Update.
6015 * dwarfout.h (dwarfout_start_new_source_file,
6016 dwarfout_resume_previous_source_file, dwarfout_define,
6017 dwarfout_undef): Remove.
6018 * sdbout.c (sdb_debug_hooks): Add new hooks.
6019 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
6021 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
6022 make static, take an arg.
6023 * sdbout.h (sdbout_start_new_source_file,
6024 sdbout_resume_previous_source_file): Delete.
6025 * toplev.c (debug_start_source_file, debug_end_source_file,
6026 debug_define, debug_undef): Delete.
6027 * toplev.h (debug_start_source_file, debug_end_source_file,
6028 debug_define, debug_undef): Delete.
6030 * java/jcf-parse.c: Include debug.h.
6031 (parse_class_file): Update to use debug hooks directly.
6032 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
6034 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6036 * alias.c (set_mem_alias_set): New function.
6037 * rtl.h (set_mem_alias_set): Declare it.
6038 * builtins.c (expand_builtin_return_addr): Call it instead of
6039 using MEM_ALIAS_SET accessor.
6040 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
6041 (get_memory_rtx, expand_builtin_va_arg): Likewise.
6042 (expand_builtin_va_copy):Likewise.
6043 * caller-save.c (setup_save_areas): Likewise.
6044 * calls.c (compute_argument_addresses): Likewise.
6045 * explow.c (set_mem_attributes): Likewise.
6046 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
6047 (expand_assignment, store_constructor_field, store_field): Likewise.
6048 (expand_expr_unaligned): Likewise.
6049 * function.c (assign_stack_temp_for_type): Likewise.
6050 (put_reg_into_stack, gen_mem_addressof): Likewise.
6051 * ifcvt.c (noce_try_cmove_arith): Likewise.
6052 * reload1.c (reload, alter_reg): Likewise.
6053 * config/alpha/alpha.c (get_aligned_mem): Likewise.
6054 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
6055 (alpha_expand_unaligned_store): Likewise
6056 (alpha_expand_unaligned_load_words): Likewise.
6057 (alpha_expand_unaligned_store_words): Likewise.
6058 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
6059 (alpha_expand_epilogue): Likewise.
6060 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6061 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
6062 * config/i386/i386.c (legitimize_pic_address): Likewise.
6063 * config/i960/i960.c (setup_incoming_varargs): Likewise.
6064 * config/ia64/ia64.c (spill_restore_mem): Likewise.
6065 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6066 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
6067 * config/mips/mips.c (mips_va_arg): Likewise.
6068 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6069 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6070 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6071 (setup_incoming_varargs, rs6000_va_arg): Likewise.
6072 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
6073 (rs6000_emit_epilogue): Likewise.
6074 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
6075 * config/sparc/sparc.c (sparc_va_arg): Likewise.
6076 * config/v850/v850.c (v850_va_arg): Likewise.
6078 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
6080 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
6081 when fallthru edge is present.
6082 (mege_blocks): Handle case where creation of jump insn
6085 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
6086 CLEANUP_POST_REGSTACK): New constants.
6087 * except.c (finish_eh_generation): Update call of cleanup_cfg,
6088 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
6089 * output.h (cleanup_cfg): Update prototype.
6090 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
6091 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
6092 cleanup_cfg call; kill missleading comment.
6093 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
6094 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
6095 parameter; control optimizations performed using it.
6096 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
6097 try_crossjump_bb): New functions.
6099 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6101 * pa.c (pa_output_function_prologue): Delete prototype. Make function
6103 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
6104 pa_output_function_prologue.
6105 * pa-protos.h (pa_output_function_prologue): New prototype.
6107 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6109 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
6110 and low to get correct sign extension in low+high test.
6112 2001-07-11 Janis Johnson <janis@us.ibm.com>
6114 * gcov.c (arcdata): Use gcov_type to fix branch percentage
6115 for large hit count.
6117 * profile.c (branch_prob): Fix .bbg info for computed gotos
6120 2001-07-11 Mark Mitchell <mark@codesourcery.com>
6122 * stmt.c (parse_output_constraint): New function, split out
6124 (expand_asm_operands): ... here. Use parse_output_constraint.
6125 * tree.h (parse_output_constraint): Declare it.
6127 2001-07-11 Richard Henderson <rth@redhat.com>
6129 * bitmap.c: Comment some functions; fiddle whitespace.
6130 (bitmap_free): Don't export.
6131 (bitmap_element_allocate): Use memset.
6132 * bitmap.h (bitmap_free): Don't declare.
6134 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
6136 * gcse.c, lcm.c, sched-deps.c:
6137 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
6139 * flow.c (flow_loops_find): Free dom if we found no loops, since
6140 we aren't going to save it.
6142 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
6145 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
6147 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
6149 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6151 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
6152 #ifndef DWARF2_DEBUGGING_INFO.
6154 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
6156 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
6158 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
6160 * config/mips/mips.c (gen_int_relational): Tell the caller not to
6161 reverse a branch if a NE comparison is implemented with GTU.
6163 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
6164 H.J. Lu <hjl@gnu.org>
6166 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
6168 (call_internal2): Likewise.
6169 (call_value_internal1): Likewise.
6170 (call_value_internal2): Likewise.
6171 (call_value_multiple_internal1): Likewise.
6172 (call_value_multiple_internal2): Likewise.
6174 2001-07-10 Kazu Hirata <kazu@hxi.com>
6176 * calls.c (emit_library_call_value_1): Fix a comment typo.
6177 * dwarf2out.c (mem_loc_descriptor): Likewise.
6178 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
6180 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
6182 * simplify-rtx.c (simplify_subreg): Fix typo in comment
6184 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6186 * recog.c (offsettable_address_p): Handle LO_SUM case.
6187 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
6188 instead of plus_constant.
6190 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6192 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
6193 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
6195 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6197 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
6198 adjust_address_nv instead of plus_constant.
6200 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
6202 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
6203 dwarf2out.o): Depend on debug.h, wrap long lines.
6204 * dbxout.c: Include debug.h.
6205 (dbx_debug_hooks): New.
6206 (dbxout_init): Make static, take just 2 args.
6207 (dbxout_finish): Make static.
6208 * dbxout.h (dbxout_init, dbxout_finish): Delete.
6209 * debug.c: New file.
6210 * debug.h: New file.
6211 * dwarf2out.c: Include debug.h.
6212 (dwarf2_debug_hooks): New.
6213 (dwarf2out_init): Make static.
6214 (dwarf2out_finish): Make static, take 2 args.
6215 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
6216 * dwarfout.c: Include debug.h.
6217 (dwarf_debug_hooks): New.
6218 (dwarfout_init): Make static.
6219 (dwarfout_finish): Make static, take 2 args.
6220 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
6221 * sdbout.c: Include debug.h.
6222 (sdb_debug_hooks): New.
6223 (sdbout_init): Make static, take 2 args.
6224 * sdbout.h (sdbout_init): Delete.
6225 * toplev.c: Include debug.h.
6227 (compile_file): Set deubg_hooks based on command line options.
6228 Use the hooks unconditionally rather than conditional compilation.
6230 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
6232 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
6233 first_insn_after_basic_block_note instead.
6235 * df.c (df_bb_refs_unlink): #if 0 out for now.
6237 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
6239 * ssa.h: Add prototype for ssa_const_prop
6240 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
6241 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
6242 (ssa_fast_dce): Remove unused variable
6244 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6246 * diagnostic.c (finish_diagnostic): Rename to
6247 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
6250 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
6252 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
6255 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
6256 (dump_file): Only pad the demangled name with spaces if the
6257 mangled name was padded with spaces.
6259 2001-07-10 Bernd Schmidt <bernds@redhat.com>
6261 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
6264 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6266 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
6267 extraction if no direct load if either EXPAND_CONST_ADDRESS or
6270 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
6271 whether can put offset inside LO_SUM to check mode alignment, not size.
6273 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6275 * doc/tm.texi (Misc): Fix thinko.
6277 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
6279 * regmove.c (replace_in_call_usage): Fix warnings.
6280 * sched-deps.c (add_dependence): Fix warnings.
6281 * simplify-rtx.c (simplify_subreg): Likewise.
6282 Return NULL_RTX instead of NULL.
6284 * reg-stack.c (emit_swap_insn): Eliminate warnings.
6285 (subst_asm_stack_regs): Likewise.
6287 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
6290 * dwarf2out.c (output_call_frame_info): Declare i as int.
6291 (build_abbrev_table): Declare n_alloc as int.
6292 (dwarf2out_finish): Initialize die.
6293 * except.c: Declare sjlj_funcdef_number as unsigned.
6294 (connect_post_landing_pads): Declare j as unsigned.
6295 (convert_to_eh_region_ranges): Initialize call_site.
6296 (output_function_exception_table): Initialize tt_format_size.
6297 * expr.c (move_by_pieces_1): Initialize to1.
6298 (store_constructor): Initialize minelt and maxelt.
6299 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
6300 * function.c (instantiate_decls): Avoid signed/unsigned warning.
6302 * c-decl.c (combine_parm_decls): Unused, remove.
6303 * c-tree.h: Remove prototype for combine_parm_decls.
6305 * reload.c (push_reload): Fix warning.
6306 (regno_clobbered_p): Likewise.
6307 * reload1.c (replace_pseudos_in_call_usage): Likewise.
6308 (reload_combine): Likewise.
6310 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
6311 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
6313 * bitmap.c (bitmap_operation): Change user.
6314 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
6316 2001-07-10 Eric Christopher <echristo@redhat.com>
6318 * config/mips/mips.c (override_options): Fix typo.
6320 2001-07-09 Stan Shebs <shebs@apple.com>
6322 * target.h (struct gcc_target): New fields init_builtins and
6324 * target-def.h (TARGET_INIT_BUILTINS): New macro.
6325 (TARGET_EXPAND_BUILTIN): New macro.
6326 (TARGET_INITIALIZER): Add them.
6327 * builtins.c: Include target.h.
6328 (expand_builtin): Use targetm.expand_builtin.
6329 (default_init_builtins): New function.
6330 (default_expand_builtin): New function.
6331 * expr.h (default_init_builtins): Declare.
6332 (default_expand_builtin): Declare.
6333 * c-common.c (c_common_nodes_and_builtins): Use
6334 targetm.init_builtins.
6335 * defaults.h (MD_INIT_BUILTINS): Remove.
6336 * Makefile.in (builtins.o): Depend on target.h.
6338 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
6339 (TARGET_EXPAND_BUILTIN): Define.
6340 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
6341 (MD_EXPAND_BUILTIN): Remove.
6343 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
6344 (TARGET_EXPAND_BUILTIN): Define.
6345 (c4x_init_builtins): Make endlink arg a local.
6346 (c4x_print_operand): Fix typos in adjust_address usages.
6347 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
6348 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
6349 (MD_EXPAND_BUILTIN): Remove.
6351 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
6352 (TARGET_EXPAND_BUILTIN): Define.
6353 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
6354 (ix86_init_builtins): Call new function only if TARGET_MMX.
6355 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
6356 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
6357 (MD_EXPAND_BUILTIN): Remove.
6359 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
6360 (TARGET_EXPAND_BUILTIN): Define.
6361 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
6362 (MD_EXPAND_BUILTIN): Remove.
6364 * doc/tm.texi: Document these changes.
6366 2001-07-09 Diego Novillo <dnovillo@redhat.com>
6368 * basic-block.h (tree_node): Forward declare if needed.
6369 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
6370 (BLOCK_HEAD_TREE): Define.
6371 (BLOCK_END_TREE): Define.
6372 (struct loops): Rename field 'tree' to 'tree_root'.
6373 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
6375 (flow_loops_tree_build): Rename reference to field 'tree' to
6377 (flow_loops_level_compute): Ditto.
6378 * predict.c (estimate_bb_frequencies): Ditto.
6379 * tree.h (struct tree_common): Add field 'aux'.
6381 2001-07-09 Stan Shebs <shebs@apple.com>
6383 * config/darwin.c (darwin_encode_section_info): Don't mark any
6384 DECL_EXTERNAL node as defined.
6386 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
6388 * pa.c (pa_init_machine_status, pa_mark_machine_status,
6389 pa_free_machine_status, hppa_init_pic_save): Delete.
6390 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
6391 (hppa_profile_hook): Use hppa_pic_save_rtx.
6392 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
6393 hppa_init_pic_save): Delete.
6394 (hppa_pic_save_rtx): Declare.
6395 * pa.md (call, call_value, sibcall, sibcall_value,
6396 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
6398 2001-07-09 Kazu Hirata <kazu@hxi.com>
6400 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
6401 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
6403 2001-07-09 Andreas Jaeger <aj@suse.de>
6405 * output.h: Add declaration of final_forward_branch_p.
6407 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
6409 * varray.c: Include errors.h for internal_error and trim_filename
6412 * Makefile.in (varray.o): Add errors.h.
6414 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
6416 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
6417 * optabs.c (have_add2_insn): Check whether the add insn chosen
6418 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
6419 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
6421 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
6423 * Makefile.in (OBJS): Add ssa-ccp.o
6424 (ssa-ccp.o): Add dependencies.
6425 * toplev.c (DFI_ssa_ccp): New dump file enum.
6426 (dump_file): Add entry for dumping after SSA CCP.
6427 (flag_ssa_ccp): New flag variable.
6428 (f_options): Add -fssa-ccp.
6429 (rest_of_compilation): Run SSA CCP if requested.
6430 * timevar.def (TV_SSA_CCP): New timevar.
6431 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
6432 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
6433 Fix minor typo in SSA DCE documentation.
6434 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
6435 Add documentation for new dump option. Renumber dump files
6438 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
6440 * emit-rtl.c (gen_highpart_mode): New.
6441 * rtl.h (gen_highpart_mode): Declare.
6442 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
6443 operand can be VOIDmode constant.
6445 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
6447 * flow.c (redirect_edge_and_branch_force): New.
6448 (can_fallthru): Ensure that basic blocks are succeeding.
6449 (try_optimize_cfg): Do not delete basic block if it is the last one.
6451 * flow.c (try_redirect_by_replacing_jump): Do not remove
6452 jumps with side effects, unlink chain on fallthru edge;
6453 set block for new jump instruction; avoid basic block to
6454 over by line number note.
6456 * flow.c (try_simplify_condjump): Verify that the condjump
6457 is not always falling trought.
6460 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
6462 * flow.c (forwarder_block_p): Fix for fallthru blocks.
6463 (try_redirect_by_replacing_jump): Update properly the count
6464 and frequency information.
6466 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6468 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
6469 address that is a LO_SUM specially.
6470 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
6472 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
6474 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
6475 (operand_subword): Use them.
6476 (change_address_1): Renamed from change_address; new arg VALIDATE.
6477 * expr.h: Reflect above changes; change_address now macro.
6478 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
6480 * cselib.c (add_mem_for_addr): Likewise.
6481 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
6482 * regmove.c (try_apply_stack_adjustment): Likewise.
6483 * reload.c (push_reload, make_memloc): Likewise.
6484 * reload1.c (eliminate_regs): Likewise.
6485 * simplify-rtx.c (simplify_replace_rtx): Likewise.
6486 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
6488 * combine.c (make_extraction, simplify_shift_const): Likewise.
6489 (gen_lowpart_for_combine): Likewise.
6490 * cse.c (gen_lowpart_if_possible): Likewise.
6491 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
6492 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
6493 * optabs.c (gen_move_insn): Likewise.
6494 * reload1.c (alter_reg): Likewise.
6495 * simplify-rtx.c (simplify_subreg): Likewise.
6496 * stmt.c (expand_anon_union_decl): Likewise.
6497 * recog.c (validate_replace_rtx_1): Likewise.
6499 * Makefile.in (recog.o): Add $(EXPR_H).
6500 * explow.c (stabilize): Call replace_equiv_address.
6501 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
6502 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
6504 2001-07-03 Andrew Haley <aph@redhat.com>
6506 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
6507 the mode of the memory location.
6509 2001-07-09 Bo Thorsen <bo@suse.co.uk>
6511 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
6513 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
6515 * final.c (output_addr_const): Use target opening and
6516 closing parentheses.
6517 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
6518 defaults, add to TARGET_ASM_OUT.
6519 * target.h (struct gcc_target): Add open_paren and close_paren.
6520 * doc/md.texi: Update.
6521 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
6522 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
6523 TARGET_ASM_CLOSE_PAREN.
6524 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6526 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6528 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6529 * config/a29k/a29k.h: Similarly.
6530 * config/alpha/alpha.h: Similarly.
6531 * config/arc/arc.h: Similarly.
6532 * config/arm/aof.h: Similarly.
6533 * config/arm/aout.h: Similarly.
6534 * config/avr/avr.h: Similarly.
6535 * config/c4x/c4x.h: Similarly.
6536 * config/clipper/clipper.h: Similarly.
6537 * config/convex/convex.h: Similarly.
6538 * config/d30v/d30v.h: Similarly.
6539 * config/dsp16xx/dsp16xx.h: Similarly.
6540 * config/elxsi/elxsi.h: Similarly.
6541 * config/fr30/fr30.h: Similarly.
6542 * config/h8300/h8300.h: Similarly.
6543 * config/i370/i370.h: Similarly.
6544 * config/i386/i386.h: Similarly.
6545 * config/i860/i860.h: Similarly.
6546 * config/i960/i960.h: Similarly.
6547 * config/ia64/ia64.h: Similarly.
6548 * config/m32r/m32r.h: Similarly.
6549 * config/m68hc11/m68hc11.h: Similarly.
6550 * config/m68k/m68k.h: Similarly.
6551 * config/m88k/m88k.h: Similarly.
6552 * config/mcore/mcore.h: Similarly.
6553 * config/mips/mips.h: Similarly.
6554 * config/mn10200/mn10200.h: Similarly.
6555 * config/mn10300/mn10300.h: Similarly.
6556 * config/ns32k/ns32k.h: Similarly.
6557 * config/pa/pa.h: Similarly.
6558 * config/pdp11/pdp11.h: Similarly.
6559 * config/pj/pj.h: Similarly.
6560 * config/romp/romp.h: Similarly.
6561 * config/rs6000/rs6000.h: Similarly.
6562 * config/sh/sh.h: Similarly.
6563 * config/sparc/sparc.h: Similarly.
6564 * config/v850/v850.h: Similarly.
6565 * config/vax/vax.h: Similarly.
6566 * config/we32k/we32k.h: Similarly.
6568 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
6570 * doc/c-tree.texi: Document representation of attributes.
6572 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6574 * doc/tm.texi: Update some places for the rename of target to
6577 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6579 * target.h (struct gcc_target): Add insert_attributes.
6580 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
6581 (TARGET_INITIALIZER): Update.
6582 * tree.c, tree.h (default_insert_attributes): New function.
6583 Update comments on other default functions to refer to targetm,
6585 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
6586 TARGET_INSERT_ATTRIBUTES.
6587 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
6588 * c-common.c (decl_attributes): Use targetm.insert_attributes.
6589 Don't use PRAGMA_INSERT_ATTRIBUTES.
6590 * Makefile.in (c-common.o): Depend on $(TARGET_H).
6591 * c-decl.c (start_decl, start_function): Don't call
6592 SET_DEFAULT_DECL_ATTRIBUTES.
6593 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6594 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
6596 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
6597 (c4x_check_attribute): Avoid modifying attribute list itself.
6598 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
6600 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
6601 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
6603 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
6604 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
6606 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6607 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
6609 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
6610 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
6611 Adjust parameters. Make static.
6613 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6615 * c-common.c (decl_attributes): Only take a single attributes
6617 * c-common.h (decl_attributes): Update prototype.
6618 * c-decl.c (start_decl, start_function): Only take a single
6619 attributes parameter. Update calls to decl_attributes.
6620 (finish_struct, finish_enum): Update calls to decl_attributes.
6621 (push_parm_decl): Expect unified list of attributes. Update call
6623 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
6624 notype_nested_function, component_declarator,
6625 component_notype_declarator, label): Update calls to
6627 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
6628 lists that are passed to push_parm_decl.
6629 * c-tree.h (start_function, start_decl): Update prototypes.
6630 * config/sh/sh-protos.h, config/sh/sh.c
6631 (sh_pragma_insert_attributes): Only take a single attributes
6633 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
6634 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
6635 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
6636 build_module_descriptor, generate_static_references,
6637 generate_strings, build_selector_translation_table,
6638 generate_descriptor_table, generate_protocols,
6639 generate_ivars_list, generate_dispatch_table,
6640 generate_protocol_list, generate_category,
6641 generate_shared_structures, really_start_method, add_objc_decls,
6642 generate_classref_translation_entry): Update calls to start_decl
6644 (build_tmp_function_decl, start_method_def): Unify attribute lists
6645 that are passed to push_parm_decl.
6647 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
6649 * final.c (no_asm_to_stream): New.
6650 (final_scan_insn): Use target structures for prologue ends
6651 and epilogue starts.
6652 * output.h (no_asm_to_stream): New.
6653 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
6654 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
6655 (TARGET_ASM_OUT): Update.
6656 * target.h (struct gcc_target): New members function_end_prologue
6657 and function_begin_epilogue.
6658 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
6659 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
6660 * config/alpha/alpha.c (output_end_prologue): Rename to
6661 alpha_output_function_end_prologue. Use in target struct
6663 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
6664 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
6665 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
6666 ia64_output_function_end_prologue. Use in target struct
6668 (ia64_function_prologue, ia64_funciton_epilogue): Rename
6669 mistyped prototypes.
6670 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
6671 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
6673 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
6674 an use in target struct, make static.
6675 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
6678 2001-07-08 Richard Henderson <rth@redhat.com>
6680 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
6682 2001-07-08 Richard Henderson <rth@redhat.com>
6684 * config/i386/i386.md: Remove constraints strings from define_split
6685 and define_peephole2 patterns.
6686 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
6687 (eh_return): Use them.
6689 2001-07-08 Richard Henderson <rth@redhat.com>
6691 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
6692 Document MD_FALLBACK_FRAME_STATE_FOR.
6694 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6696 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
6697 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
6699 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
6701 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
6703 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
6704 of the label inside NAME as opposed to just the end of NAME.
6706 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
6708 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
6709 * config/alpha/alpha.c (alpha_init_machine_status,
6710 alpha_mark_machine_status, alpha_free_machine_status): Delete.
6711 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
6712 (vms_valid_decl_attribute_p): Make static, conditionally compile.
6713 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
6715 2001-07-06 Stan Shebs <shebs@apple.com>
6717 * target.h (targetm): Rename global from "target", so as not to
6718 conflict with local variables.
6720 * c-typeck.c: Ditto.
6724 * cp/decl2.c: Ditto.
6725 * cp/typeck.c: Ditto.
6726 * 1750a/1750a.c: Ditto.
6727 * a29k/a29k.c: Ditto.
6731 * clipper/clipper.c: Ditto.
6732 * convex/convex.c: Ditto.
6733 * d30v/d30v.c: Ditto.
6734 * dsp16xx/dsp16xx.c: Ditto.
6735 * elxsi/elxsi.c: Ditto.
6736 * fr30/fr30.c: Ditto.
6737 * h8300/h8300.c: Ditto.
6738 * i370/i370.c: Ditto.
6739 * i386/i386.c: Ditto.
6740 * i860/i860.c: Ditto.
6741 * i960/i960.c: Ditto.
6742 * ia64/ia64.c: Ditto.
6743 * m32r/m32r.c: Ditto.
6744 * m68hc11/m68hc11.c: Ditto.
6745 * m68k/m68k.c: Ditto.
6746 * m88k/m88k.c: Ditto.
6747 * mips/mips.c: Ditto.
6748 * ns32k/ns32k.c: Ditto.
6750 * pdp11/pdp11.c: Ditto.
6751 * romp/romp.c: Ditto.
6752 * rs6000/rs6000.c: Ditto.
6754 * sparc/sparc.c: Ditto.
6756 * we32k/we32k.c: Ditto.
6757 * doc/tm.texi: Update the manual to match.
6759 2001-07-06 Richard Henderson <rth@redhat.com>
6761 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
6762 DWARF2_UNWIND_INFO not just whether it is defined.
6764 2001-07-06 Diego Novillo <dnovillo@redhat.com>
6766 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
6767 call to simplify_binary_operation returns a new pattern.
6769 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6771 * glimits.h (__SHRT_MAX__): New.
6772 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
6773 (SHRT_MAX): Define in terms of __SHRT_MAX__.
6775 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
6777 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
6780 2001-07-06 Richard Henderson <rth@redhat.com>
6782 * bitmap.c (bitmap_release_memory): Move adjacent to the
6783 allocation functions.
6784 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
6785 the implementation. Binary search for the set bit.
6786 (bitmap_union_of_diff): Allocate the temporary on the stack
6787 instead of using xmalloc.
6789 2001-07-06 Richard Henderson <rth@redhat.com>
6791 * genrecog.c (validate_pattern): Warn for constraints in
6792 define_{expand,split,peephole2}. Remove strict_low_part
6793 before looking up match_dup.
6795 2001-07-06 DJ Delorie <dj@redhat.com>
6797 * doc/gcc.texi (Makefile): Rename to be a more general purpose
6798 chapter about various build hints and history. Add section
6799 talking about the various types of native and cross builds.
6801 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
6803 * Makefile.in (final.o): Depend on target.h.
6804 * final.c: Include target.h.
6805 (default_function_pro_epilogue): New.
6806 (final_start_function): Use target structure for function prologues.
6807 (final_end_function): Use target structure for function epilogues.
6808 * fold-const.c (real_hex_to_f): Constify s and p.
6809 * output.h (default_function_pro_epilogue): New.
6810 * real.h (real_hex_to_f): Update prototype.
6811 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
6812 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
6813 (TARGET_INITIALIZER): Update.
6814 * target.h (gcc_target): Add struct asm_out.
6815 * doc/tm.texi: Update.
6818 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
6819 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
6820 in cpu/cpu.c, or rename old functions consistently. Take
6821 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
6822 redundant macros and prototypes. Make new functions static.
6824 * 1750a/1750a.c: Similarly.
6825 * 1750a/1750a.h: Similarly.
6826 * a29k/a29k-protos.h: Similarly.
6827 * a29k/a29k.c: Similarly.
6828 * a29k/a29k.h: Similarly.
6829 * arc/arc-protos.h: Similarly.
6830 * arc/arc.c: Similarly.
6831 * arc/arc.h: Similarly.
6832 * arm/arm-protos.h: Similarly.
6833 * arm/arm.c: Similarly.
6834 * arm/arm.h: Similarly.
6835 * avr/avr-protos.h: Similarly.
6836 * avr/avr.c: Similarly.
6837 * avr/avr.h: Similarly.
6838 * clipper/clipper-protos.h: Similarly.
6839 * clipper/clipper.c: Similarly.
6840 * clipper/clipper.h: Similarly.
6841 * convex/convex.c: Similarly.
6842 * convex/convex.h: Similarly.
6843 * d30v/d30v-protos.h: Similarly.
6844 * d30v/d30v.c: Similarly.
6845 * d30v/d30v.h: Similarly.
6846 * d30v/d30v.md: Similarly.
6847 * dsp16xx/dsp16xx-protos.h: Similarly.
6848 * dsp16xx/dsp16xx.c: Similarly.
6849 * dsp16xx/dsp16xx.h: Similarly.
6850 * elxsi/elxsi.c: Similarly.
6851 * elxsi/elxsi.h: Similarly.
6852 * fr30/fr30.c: Similarly.
6853 * fr30/fr30.md: Similarly.
6854 * h8300/h8300-protos.h: Similarly.
6855 * h8300/h8300.c: Similarly.
6856 * h8300/h8300.h: Similarly.
6857 * i370/i370-protos.h: Similarly.
6858 * i370/i370.c: Similarly.
6859 * i370/i370.h: Similarly.
6860 * i386/i386.c: Similarly.
6861 * i386/osf1elf.h: Similarly.
6862 * i386/osfrose.h: Similarly.
6863 * i860/i860-protos.h: Similarly.
6864 * i860/i860.c: Similarly.
6865 * i860/i860.h: Similarly.
6866 * i960/i960-protos.h: Similarly.
6867 * i960/i960.c: Similarly.
6868 * i960/i960.h: Similarly.
6869 * ia64/ia64-protos.h: Similarly.
6870 * ia64/ia64.c: Similarly.
6871 * ia64/ia64.h: Similarly.
6872 * m32r/m32r-protos.h: Similarly.
6873 * m32r/m32r.c: Similarly.
6874 * m32r/m32r.h: Similarly.
6875 * m68hc11/m68hc11-protos.h: Similarly.
6876 * m68hc11/m68hc11.c: Similarly.
6877 * m68hc11/m68hc11.h: Similarly.
6878 * m68k/crds.h: Similarly.
6879 * m68k/dpx2.h: Similarly.
6880 * m68k/m68k-protos.h: Similarly.
6881 * m68k/m68k.c: Similarly.
6882 * m68k/m68k.h: Similarly.
6883 * m68k/news.h: Similarly.
6884 * m88k/m88k-protos.h: Similarly.
6885 * m88k/m88k.c: Similarly.
6886 * m88k/m88k.h: Similarly.
6887 * mips/mips-protos.h: Similarly.
6888 * mips/mips.c: Similarly.
6889 * mips/mips.h: Similarly.
6890 * ns32k/merlin.h: Similarly.
6891 * ns32k/ns32k.c: Similarly.
6892 * ns32k/ns32k.h: Similarly.
6893 * ns32k/tek6000.h: Similarly.
6894 * pa/pa-protos.h: Similarly.
6895 * pa/pa.c: Similarly.
6896 * pa/pa.h: Similarly.
6897 * pdp11/2bsd.h: Similarly.
6898 * pdp11/pdp11-protos.h: Similarly.
6899 * pdp11/pdp11.c: Similarly.
6900 * pdp11/pdp11.h: Similarly.
6901 * romp/romp-protos.h: Similarly.
6902 * romp/romp.c: Similarly.
6903 * romp/romp.h: Similarly.
6904 * rs6000/rs6000-protos.h: Similarly.
6905 * rs6000/rs6000.c: Similarly.
6906 * rs6000/rs6000.h: Similarly.
6907 * rs6000/sysv4.h: Similarly.
6908 * sh/sh-protos.h: Similarly.
6909 * sh/sh.c: Similarly.
6910 * sh/sh.h: Similarly.
6911 * sparc/sparc-protos.h: Similarly.
6912 * sparc/sparc.c: Similarly.
6913 * sparc/sparc.h: Similarly.
6914 * vax/vax.c: Similarly.
6915 * vax/vax.h: Similarly.
6916 * vax/vms.h: Similarly.
6917 * we32k/we32k.c: Similarly.
6918 * we32k/we32k.h: Similarly.
6920 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
6922 * basic-block.h (first_insn_after_basic_block_note): Declare.
6923 * flow.c (first_insn_after_basic_block_note): Define. Moved
6925 * ssa.c (first_insn_after_basic_block_note): Remove.
6926 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
6928 (ssa_eliminate_dead_code): Properly update the CFG and PHI
6929 nodes when we find a dead conditional branch. Insert BARRIERs
6930 after any blocks with no successors, but which do not have
6933 2001-07-06 Zack Weinberg <zackw@stanford.edu>
6935 * varray.c (varray_check_failed): Use internal_error.
6937 2001-07-05 Andrew Haley <aph@redhat.com>
6939 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
6940 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
6941 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
6943 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
6945 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
6946 reference if the target constant is also a SYMBOL_REF.
6948 2001-07-05 Eric Christopher <echristo@redhat.com>
6950 * config/mips/mips.h (MASK_MIPS3900): Remove.
6951 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
6952 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
6953 (TARGET_MIPS3900): Change to use mips_arch.
6954 (TARGET_MIPS4000): New.
6955 (TARGET_MIPS4100): New.
6956 (TARGET_MIPS4300): New.
6957 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
6958 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
6960 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
6961 (ISA_HAS_BRANCHLIKELY): To here.
6962 (CC1_CPU_SPEC): New.
6963 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
6964 (mips_arch_string): Declare.
6965 (mips_arch): Declare.
6966 (TARGET_OPTIONS): Add -march and -mtune.
6968 * config/mips/mips.c (mips_arch_string): New.
6970 (override_options): Handle -march for codegen and -mtune
6971 for scheduling. Use mips_arch. Move tx39 target default here.
6972 (mips_parse_cpu): Move error message to override_options.
6974 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
6976 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
6978 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
6979 (MIPS Options): Ditto. Change mcpu entry to historical text.
6981 2001-07-05 H.J. Lu (hjl@gnu.org)
6983 * config/mips/mips.c (mips_parse_cpu): New function to parse
6986 2001-07-05 Jim Wilson <wilson@redhat.com>
6988 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
6989 * config/ia64/t-ia64: Likewise.
6990 (LIB1ASMFUNCS): Update comment.
6992 2001-07-05 David Edelsohn <edelsohn@gnu.org>
6994 * doc/install.texi (Install GCC: Binaries): Fix typo.
6996 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6998 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
6999 reference using the stack pointer, adjust it since we push Y
7001 ("*ashrsi3"): Likewise.
7002 ("*lshrsi3"): Likewise.
7004 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7006 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
7007 when -fomit-frame-pointer is used.
7009 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
7011 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
7012 (try_redirect_by_replacing_jump): Reverse updating properly the
7013 count and frequency information. Reverse removing cc0 setter.
7014 (forwarder_block_p): Reverse fixing for fallthru blocks.
7016 2001-07-05 DJ Delorie <dj@redhat.com>
7018 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
7019 (translate_options): If the above is defined, use it to map
7020 given options to new options.
7021 * doc/tm.texi: Document it.
7023 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
7024 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7026 * doc/invoke.texi (Optimize Options): Document that -fgcse may
7027 cause programs using computed gotos to run more slowly.
7029 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7031 * doc/install.texi (Specific): Markup, spelling and typo fixes.
7033 Consistently require binutils 2.11.2, not prereleases.
7034 (Specific, decstation-*): Canonicalize as mips-dec-*.
7035 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
7037 (Specific, m68k-altos): Removed reference to README.altos, deleted.
7038 (Specific, mips-*): Reword MIPS C compiler requirements.
7039 (Specific, powerpc*-*-*): New, mention --with-cpu once.
7040 (Specific, sunv5): Removed, obsolete.
7042 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
7044 * dwarf2out.c (output_loc_list): Use an all ones mask for
7045 .text asm output and don't rely on long long
7046 literals. Reformat some long lines.
7048 2001-07-05 Andreas Jaeger <aj@suse.de>
7050 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
7053 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
7055 * dwarf2out.c (dwarf2out_define): Update comment.
7056 (dwarf2out_undef): Ditto.
7057 (dwarf2out_start_source_file): Ditto.
7058 (dwarf2out_end_source_file): Ditto.
7059 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
7060 since we never call the start/end debug hook for the primary file.
7062 2001-07-04 Kazu Hirata <kazu@hxi.com>
7064 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
7067 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
7069 * cppinit.c (remove_dup_dirs): Inform if a system include
7070 directory is being reordered.
7071 * doc/invoke.texi (Directory Options): GCC warns if you hide a
7073 * doc/cpp.texi (Search Paths): Likewise.
7074 * doc/gcc.texi (Interoperation): Remove information about
7077 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
7079 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
7080 (VARRAY_TOP_CHAR_PTR): Likewise.
7082 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7084 * gcc.c (process_command): Don't assign elements of a const char*.
7086 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7088 * emit-rtl.c (change_address): Don't abort if invalid address while
7089 reload is in progress.
7091 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
7093 * c-lex.c (cb_file_change): Pass line number to
7094 debug_start_source_file.
7095 (cb_undefine): Pass correct line number to debug_undef.
7097 * toplev.c (debug_start_source_file): Add line number to
7098 parameters. Pass it along to dwarf2out_start_source_file.
7099 (decode_g_option): Stop resetting debug level back to normal when
7100 we change debug formats, unless the current level is
7101 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
7104 * toplev.h (debug_start_source_file): Add line number to
7107 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
7110 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
7112 Output debug_macinfo data for starting file if requested.
7113 (dwarf2out_end_source_file): Output debug_macinfo data for ending
7115 (dwarf2out_define): Output debug_macinfo data for defining a macro
7117 (dwarf2out_undef): Output debug_macinfo data for undefining a
7119 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
7120 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
7121 (macinfo_section_label): New. DWARF2 macro info section label.
7122 (dwarf2out_init): If we want macro info, output the start label
7124 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
7125 attribute to the compilation unit die pointing to the macro info.
7127 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
7129 * dwarf2out.c (new_loc_list): Move to inside #ifdef
7130 DWARF2_DEBUGGING_INFO.
7131 (add_loc_descr_to_loc_list): Ditto.
7132 (output_loc_list): Ditto.
7133 Also, fix thinko in curr not being initialized.
7134 (gen_internal_sym): Ditto.
7136 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7138 * emit-rtl.c (replace_equiv_address): New function.
7139 * expr.h (replace_equiv_address): New declaration.
7140 * explow.c (validize_mem): Call it instead of change_address and
7141 also call if -fforce-addr and address is constant.
7142 * expr.c: Replace more calls to change_address with adjust_address
7143 and/or replace_equiv_address or to validize_mem.
7144 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
7145 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
7146 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
7147 * config/i370/i370.md, config/i860/i860.md: Likewise.
7148 * config/i960/i960.md, config/mips/mips.c: Likewise.
7149 * config/mips/mips.md, config/pa/pa.md: Likewise.
7150 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
7151 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
7153 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7155 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
7157 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
7160 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
7162 * doc/include: New directory.
7163 * doc/fdl.texi: Move to doc/include/fdl.texi.
7164 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
7165 * doc/include/funding.texi, doc/include/gpl.texi: New files.
7166 * doc/gcc.texi: Use funding.texi and gpl.texi.
7167 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
7168 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
7169 Update dependencies and use -I $(docdir)/include.
7171 2001-07-04 Anthony Green <green@redhat.com>
7173 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
7175 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7177 * doc/install.texi (sparc64-*-*): Remove garbage.
7179 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
7181 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
7182 Fix typo in last change to use adjust_address.
7184 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7186 * doc/install.texi (Specific): Update information for *-*-solaris*.
7188 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7190 * explow.c (plus_constant_wide): Reinitialize Y for restart.
7192 2001-07-03 Stan Shebs <shebs@apple.com>
7194 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
7195 case for flag_no_mach_text_sections.
7196 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
7197 * config/darwin.c (flag_no_mach_text_sections): Remove.
7198 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
7200 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7202 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
7203 and avoid checking for constant as first operand.
7204 * recog.c (find_constant_term_loc): No longer static.
7205 (adj_offettable_operand): Delete.
7206 * rtl.h (adj_offsettable_operand): Delete declaration.
7207 (find_constant_term): Add declaration.
7208 * caller-save.c: Replace calls to adj_offsettable_operand with calls
7210 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
7211 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
7212 * config/i386/i386.c, config/i386/i386.md: Likewise.
7213 * config/i860/i860.c, config/i960/i960.c: Likewise.
7214 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
7215 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
7216 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
7217 * config/mips/mips.c, config/mips/mips.md: Likewise.
7218 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
7219 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
7220 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
7221 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
7222 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
7223 * config/ns32k/ns32k.md: Likewise.
7225 2001-07-03 Zack Weinberg <zackw@stanford.edu>
7227 * rtl.c (copy_rtx): Handle 'T' format letter.
7228 * gensupport.c (collect_insn_data): Likewise.
7229 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
7231 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
7233 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
7234 -B option. Use 'dir' not 'foo' as example directory name.
7236 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7238 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7239 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
7241 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
7243 * doc/cppinternals.texi: Improve formatting and logical markup.
7245 2001-07-03 Andreas Jaeger <aj@suse.de>
7247 * Makefile.in (insn-recog.o): Add dependency on reload.h.
7249 * genrecog.c (write_header): Include reload.h for prototypes in
7252 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
7255 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
7256 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
7257 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
7258 i386_pe_valid_type_attribute_p): Add.
7259 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
7260 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
7262 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7264 * explow.c (plus_constant_wide, case LO_SUM): New case.
7265 (plus_constant_for_output_wide): Delete.
7266 * rtl.h (plus_constant_for_output): Delete.
7267 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
7268 instead of plus_constant_for_output.
7269 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
7270 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
7271 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
7272 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
7273 * config/sparc/sparc.md: Likewise.
7274 Convert some change_address calls to adjust_address.
7276 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
7278 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
7279 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
7280 documentation of -std and -Wwrite-strings.
7282 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
7284 * cse.c (canon_hash): Don't register registers in very small
7285 register classes, as extending their lifetime might cause
7288 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
7290 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
7292 * flow.c (forwarder_block_p): Fix for fallthru blocks.
7293 (try_redirect_by_replacing_jump): Update properly the count
7294 and frequency information.
7296 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
7298 * toplev.c (dump_file_index): Move SSA dumps just after first
7300 (dump_file): Corresponding changes.
7301 (rest_of_compilation): Move SSA path to just after the first
7303 * doc/gcc.texi (Passes): Update due to movement of SSA path.
7304 * doc/invoke.texi: Update dump file #s as they were completely
7305 out of date with reality.
7307 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
7309 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
7311 * expr.c (emit_move_insn_1): Deal with non-default
7314 * expr.c (emit_single_push_insn): Fix warning.
7316 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7318 * expr.c (emit_move_insn_1): Avoid modifying
7319 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
7321 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7323 * emit-rtl.c (adjust_address): New function.
7324 * expr.h (adjust_address): Add declaration.
7325 * builtins.c: Replace some calls to change_address with calls to it
7327 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
7328 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
7329 * config/arm/arm.c, config/convex/convex.c: Likewise.
7330 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
7331 * config/i386/i386.c, config/i386/i386.md: Likewise.
7332 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
7333 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
7334 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
7335 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
7336 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
7338 2001-07-02 Jim Wilson <wilson@redhat.com>
7340 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
7342 2001-07-02 Steve Ellcey <sje@cup.hp.com>
7344 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
7345 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
7347 2001-07-02 Zack Weinberg <zackw@stanford.edu>
7349 * cppinit.c (lang_defaults): New table.
7350 (set_lang): Just read from lang_defaults into the live options
7353 2001-07-02 Zack Weinberg <zackw@stanford.edu>
7355 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
7356 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
7357 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
7359 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7361 * doc/install.texi: Various spelling and markup fixes.
7362 (Installing GCC): Component specific installation instructions are
7365 Warn about removing old install dir in the presence of shared libs.
7366 (Configuration): Invoke with options target to match configure
7368 Consistently refer to gas, gld pathnames.
7369 Invert --enable-multilib documentation.
7370 Remove references to old compiler versions.
7372 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7374 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
7376 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7378 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
7380 (Specific, mips*-sgi-irix5): Note IDO download.
7381 Reworded MIPS C hints.
7382 Use GNU as instead of GAS.
7384 Removed SGI Freeware reference, IRIX 6 only.
7385 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
7386 Note N64 library requirement/workaround.
7388 Complete list of structure passing bug victims.
7390 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7392 * doc/install.texi: Remove CVS Id.
7394 2001-07-02 Andreas Jaeger <aj@suse.de>
7396 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
7397 (find_inherently_necessary): Remove unused variable.
7399 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
7401 * c-common.h (TDI_inlined): New ast dump phase.
7402 (dump_flag_name): New function.
7403 * c-dump.c (dump_files): Add inlined phase.
7404 (dump_flag_name): Define.
7405 * doc/invoke.texi (-fdump-ast-inlined): Document.
7407 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7409 * stor-layout.c (layout_decl): Revert change to handling of alignment
7412 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7414 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
7417 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
7419 * doc/tm.texi (FUNCTION_ARG): Document that the last call
7422 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
7424 * tlink.c (recompile_files): Remove COMPILER_PATH and
7425 LIBRARY_PATH from the environment.
7427 2001-07-01 Zack Weinberg <zackw@stanford.edu>
7429 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
7430 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
7432 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
7434 * c-parse.in (OBJC_STRING): Kill.
7435 (objc_string): Decompose to [objc_string] '@' STRING.
7436 (reswords): Take the leading '@' off all the Objective C keywords.
7437 (objc_rid_sans_at): Kill.
7438 (init_reswords): Don't initialize it.
7439 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
7440 (_yylex): Kill reconsider label. Look ahead one token after
7441 an '@'; if we get an identifier, check whether it's an
7442 Objective C @-keyword. If so, return the keyword. Otherwise,
7443 put back the token and return the '@' as a terminal.
7445 * cpplib.c (lex_macro_node): Remove unnecessary check for
7446 leading '@' on identifier. Clarify control flow and commentary.
7448 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7450 * cse.c (new_label_ref): Variable deleted.
7451 (insert): Remove set of new_label_ref.
7452 (check_for_label_ref): New function.
7453 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
7455 See ChangeLog.5 for earlier changes.