1 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
3 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
4 * optabs.c (have_add2_insn): Check whether the add insn chosen
5 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
6 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
8 *************** extern rtx gen_add2_insn PARAMS ((rtx, r
9 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
11 * Makefile.in (OBJS): Add ssa-ccp.o
12 (ssa-ccp.o): Add dependencies.
13 * toplev.c (DFI_ssa_ccp): New dump file enum.
14 (dump_file): Add entry for dumping after SSA CCP.
15 (flag_ssa_ccp): New flag variable.
16 (f_options): Add -fssa-ccp.
17 (rest_of_compilation): Run SSA CCP if requested.
18 * timevar.def (TV_SSA_CCP): New timevar.
19 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
20 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
21 Fix minor typo in SSA DCE documentation.
22 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
23 Add documentation for new dump option. Renumber dump files
26 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
28 * emit-rtl.c (gen_highpart_mode): New.
29 * rtl.h (gen_highpart_mode): Declare.
30 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
31 operand can be VOIDmode constant.
33 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
35 * flow.c (redirect_edge_and_branch_force): New.
36 (can_fallthru): Ensure that basic blocks are succeeding.
37 (try_optimize_cfg): Do not delete basic block if it is the last one.
39 * flow.c (try_redirect_by_replacing_jump): Do not remove
40 jumps with side effects, unlink chain on fallthru edge;
41 set block for new jump instruction; avoid basic block to
42 over by line number note.
44 * flow.c (try_simplify_condjump): Verify that the condjump
45 is not always falling trought.
48 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
50 * flow.c (forwarder_block_p): Fix for fallthru blocks.
51 (try_redirect_by_replacing_jump): Update properly the count
52 and frequency information.
54 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
57 address that is a LO_SUM specially.
58 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
60 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
62 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
63 (operand_subword): Use them.
64 (change_address_1): Renamed from change_address; new arg VALIDATE.
65 * expr.h: Reflect above changes; change_address now macro.
66 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
68 * cselib.c (add_mem_for_addr): Likewise.
69 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
70 * regmove.c (try_apply_stack_adjustment): Likewise.
71 * reload.c (push_reload, make_memloc): Likewise.
72 * reload1.c (eliminate_regs): Likewise.
73 * simplify-rtx.c (simplify_replace_rtx): Likewise.
74 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
76 * combine.c (make_extraction, simplify_shift_const): Likewise.
77 (gen_lowpart_for_combine): Likewise.
78 * cse.c (gen_lowpart_if_possible): Likewise.
79 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
80 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
81 * optabs.c (gen_move_insn): Likewise.
82 * reload1.c (alter_reg): Likewise.
83 * simplify-rtx.c (simplify_subreg): Likewise.
84 * stmt.c (expand_anon_union_decl): Likewise.
85 * recog.c (validate_replace_rtx_1): Likewise.
87 * Makefile.in (recog.o): Add $(EXPR_H).
88 * explow.c (stabilize): Call replace_equiv_address.
89 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
90 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
92 2001-07-03 Andrew Haley <aph@redhat.com>
94 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
95 the mode of the memory location.
97 2001-07-09 Bo Thorsen <bo@suse.co.uk>
99 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
101 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
103 * final.c (output_addr_const): Use target opening and
105 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
106 defaults, add to TARGET_ASM_OUT.
107 * target.h (struct gcc_target): Add open_paren and close_paren.
108 * doc/md.texi: Update.
109 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
110 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
111 TARGET_ASM_CLOSE_PAREN.
112 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
114 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
116 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
117 * config/a29k/a29k.h: Similarly.
118 * config/alpha/alpha.h: Similarly.
119 * config/arc/arc.h: Similarly.
120 * config/arm/aof.h: Similarly.
121 * config/arm/aout.h: Similarly.
122 * config/avr/avr.h: Similarly.
123 * config/c4x/c4x.h: Similarly.
124 * config/clipper/clipper.h: Similarly.
125 * config/convex/convex.h: Similarly.
126 * config/d30v/d30v.h: Similarly.
127 * config/dsp16xx/dsp16xx.h: Similarly.
128 * config/elxsi/elxsi.h: Similarly.
129 * config/fr30/fr30.h: Similarly.
130 * config/h8300/h8300.h: Similarly.
131 * config/i370/i370.h: Similarly.
132 * config/i386/i386.h: Similarly.
133 * config/i860/i860.h: Similarly.
134 * config/i960/i960.h: Similarly.
135 * config/ia64/ia64.h: Similarly.
136 * config/m32r/m32r.h: Similarly.
137 * config/m68hc11/m68hc11.h: Similarly.
138 * config/m68k/m68k.h: Similarly.
139 * config/m88k/m88k.h: Similarly.
140 * config/mcore/mcore.h: Similarly.
141 * config/mips/mips.h: Similarly.
142 * config/mn10200/mn10200.h: Similarly.
143 * config/mn10300/mn10300.h: Similarly.
144 * config/ns32k/ns32k.h: Similarly.
145 * config/pa/pa.h: Similarly.
146 * config/pdp11/pdp11.h: Similarly.
147 * config/pj/pj.h: Similarly.
148 * config/romp/romp.h: Similarly.
149 * config/rs6000/rs6000.h: Similarly.
150 * config/sh/sh.h: Similarly.
151 * config/sparc/sparc.h: Similarly.
152 * config/v850/v850.h: Similarly.
153 * config/vax/vax.h: Similarly.
154 * config/we32k/we32k.h: Similarly.
156 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
158 * doc/c-tree.texi: Document representation of attributes.
160 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
162 * doc/tm.texi: Update some places for the rename of target to
165 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
167 * target.h (struct gcc_target): Add insert_attributes.
168 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
169 (TARGET_INITIALIZER): Update.
170 * tree.c, tree.h (default_insert_attributes): New function.
171 Update comments on other default functions to refer to targetm,
173 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
174 TARGET_INSERT_ATTRIBUTES.
175 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
176 * c-common.c (decl_attributes): Use targetm.insert_attributes.
177 Don't use PRAGMA_INSERT_ATTRIBUTES.
178 * Makefile.in (c-common.o): Depend on $(TARGET_H).
179 * c-decl.c (start_decl, start_function): Don't call
180 SET_DEFAULT_DECL_ATTRIBUTES.
181 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
182 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
184 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
185 (c4x_check_attribute): Avoid modifying attribute list itself.
186 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
188 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
189 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
191 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
192 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
194 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
195 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
197 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
198 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
199 Adjust parameters. Make static.
201 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
203 * c-common.c (decl_attributes): Only take a single attributes
205 * c-common.h (decl_attributes): Update prototype.
206 * c-decl.c (start_decl, start_function): Only take a single
207 attributes parameter. Update calls to decl_attributes.
208 (finish_struct, finish_enum): Update calls to decl_attributes.
209 (push_parm_decl): Expect unified list of attributes. Update call
211 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
212 notype_nested_function, component_declarator,
213 component_notype_declarator, label): Update calls to
215 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
216 lists that are passed to push_parm_decl.
217 * c-tree.h (start_function, start_decl): Update prototypes.
218 * config/sh/sh-protos.h, config/sh/sh.c
219 (sh_pragma_insert_attributes): Only take a single attributes
221 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
222 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
223 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
224 build_module_descriptor, generate_static_references,
225 generate_strings, build_selector_translation_table,
226 generate_descriptor_table, generate_protocols,
227 generate_ivars_list, generate_dispatch_table,
228 generate_protocol_list, generate_category,
229 generate_shared_structures, really_start_method, add_objc_decls,
230 generate_classref_translation_entry): Update calls to start_decl
232 (build_tmp_function_decl, start_method_def): Unify attribute lists
233 that are passed to push_parm_decl.
235 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
237 * final.c (no_asm_to_stream): New.
238 (final_scan_insn): Use target structures for prologue ends
240 * output.h (no_asm_to_stream): New.
241 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
242 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
243 (TARGET_ASM_OUT): Update.
244 * target.h (struct gcc_target): New members function_end_prologue
245 and function_begin_epilogue.
246 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
247 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
248 * config/alpha/alpha.c (output_end_prologue): Rename to
249 alpha_output_function_end_prologue. Use in target struct
251 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
252 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
253 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
254 ia64_output_function_end_prologue. Use in target struct
256 (ia64_function_prologue, ia64_funciton_epilogue): Rename
258 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
259 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
261 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
262 an use in target struct, make static.
264 * ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE): Delete.
266 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
271 2001-07-08 Richard Henderson <rth@redhat.com>
273 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
275 2001-07-08 Richard Henderson <rth@redhat.com>
277 * config/i386/i386.md: Remove constraints strings from define_split
278 and define_peephole2 patterns.
279 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
280 (eh_return): Use them.
282 2001-07-08 Richard Henderson <rth@redhat.com>
284 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
285 Document MD_FALLBACK_FRAME_STATE_FOR.
287 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
289 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
290 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
292 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
294 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
296 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
297 of the label inside NAME as opposed to just the end of NAME.
299 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
301 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
302 * config/alpha/alpha.c (alpha_init_machine_status,
303 alpha_mark_machine_status, alpha_free_machine_status): Delete.
304 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
305 (vms_valid_decl_attribute_p): Make static, conditionally compile.
306 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
308 2001-07-06 Stan Shebs <shebs@apple.com>
310 * target.h (targetm): Rename global from "target", so as not to
311 conflict with local variables.
318 * cp/typeck.c: Ditto.
319 * 1750a/1750a.c: Ditto.
320 * a29k/a29k.c: Ditto.
324 * clipper/clipper.c: Ditto.
325 * convex/convex.c: Ditto.
326 * d30v/d30v.c: Ditto.
327 * dsp16xx/dsp16xx.c: Ditto.
328 * elxsi/elxsi.c: Ditto.
329 * fr30/fr30.c: Ditto.
330 * h8300/h8300.c: Ditto.
331 * i370/i370.c: Ditto.
332 * i386/i386.c: Ditto.
333 * i860/i860.c: Ditto.
334 * i960/i960.c: Ditto.
335 * ia64/ia64.c: Ditto.
336 * m32r/m32r.c: Ditto.
337 * m68hc11/m68hc11.c: Ditto.
338 * m68k/m68k.c: Ditto.
339 * m88k/m88k.c: Ditto.
340 * mips/mips.c: Ditto.
341 * ns32k/ns32k.c: Ditto.
343 * pdp11/pdp11.c: Ditto.
344 * romp/romp.c: Ditto.
345 * rs6000/rs6000.c: Ditto.
347 * sparc/sparc.c: Ditto.
349 * we32k/we32k.c: Ditto.
350 * doc/tm.texi: Update the manual to match.
352 2001-07-06 Richard Henderson <rth@redhat.com>
354 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
355 DWARF2_UNWIND_INFO not just whether it is defined.
357 2001-07-06 Diego Novillo <dnovillo@redhat.com>
359 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
360 call to simplify_binary_operation returns a new pattern.
362 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
364 * glimits.h (__SHRT_MAX__): New.
365 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
366 (SHRT_MAX): Define in terms of __SHRT_MAX__.
368 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
370 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
373 2001-07-06 Richard Henderson <rth@redhat.com>
375 * bitmap.c (bitmap_release_memory): Move adjacent to the
376 allocation functions.
377 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
378 the implementation. Binary search for the set bit.
379 (bitmap_union_of_diff): Allocate the temporary on the stack
380 instead of using xmalloc.
382 2001-07-06 Richard Henderson <rth@redhat.com>
384 * genrecog.c (validate_pattern): Warn for constraints in
385 define_{expand,split,peephole2}. Remove strict_low_part
386 before looking up match_dup.
388 2001-07-06 DJ Delorie <dj@redhat.com>
390 * doc/gcc.texi (Makefile): Rename to be a more general purpose
391 chapter about various build hints and history. Add section
392 talking about the various types of native and cross builds.
394 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
396 * Makefile.in (final.o): Depend on target.h.
397 * final.c: Include target.h.
398 (default_function_pro_epilogue): New.
399 (final_start_function): Use target structure for function prologues.
400 (final_end_function): Use target structure for function epilogues.
401 * fold-const.c (real_hex_to_f): Constify s and p.
402 * output.h (default_function_pro_epilogue): New.
403 * real.h (real_hex_to_f): Update prototype.
404 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
405 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
406 (TARGET_INITIALIZER): Update.
407 * target.h (gcc_target): Add struct asm_out.
408 * doc/tm.texi: Update.
411 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
412 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
413 in cpu/cpu.c, or rename old functions consistently. Take
414 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
415 redundant macros and prototypes. Make new functions static.
417 * 1750a/1750a.c: Similarly.
418 * 1750a/1750a.h: Similarly.
419 * a29k/a29k-protos.h: Similarly.
420 * a29k/a29k.c: Similarly.
421 * a29k/a29k.h: Similarly.
422 * arc/arc-protos.h: Similarly.
423 * arc/arc.c: Similarly.
424 * arc/arc.h: Similarly.
425 * arm/arm-protos.h: Similarly.
426 * arm/arm.c: Similarly.
427 * arm/arm.h: Similarly.
428 * avr/avr-protos.h: Similarly.
429 * avr/avr.c: Similarly.
430 * avr/avr.h: Similarly.
431 * clipper/clipper-protos.h: Similarly.
432 * clipper/clipper.c: Similarly.
433 * clipper/clipper.h: Similarly.
434 * convex/convex.c: Similarly.
435 * convex/convex.h: Similarly.
436 * d30v/d30v-protos.h: Similarly.
437 * d30v/d30v.c: Similarly.
438 * d30v/d30v.h: Similarly.
439 * d30v/d30v.md: Similarly.
440 * dsp16xx/dsp16xx-protos.h: Similarly.
441 * dsp16xx/dsp16xx.c: Similarly.
442 * dsp16xx/dsp16xx.h: Similarly.
443 * elxsi/elxsi.c: Similarly.
444 * elxsi/elxsi.h: Similarly.
445 * fr30/fr30.c: Similarly.
446 * fr30/fr30.md: Similarly.
447 * h8300/h8300-protos.h: Similarly.
448 * h8300/h8300.c: Similarly.
449 * h8300/h8300.h: Similarly.
450 * i370/i370-protos.h: Similarly.
451 * i370/i370.c: Similarly.
452 * i370/i370.h: Similarly.
453 * i386/i386.c: Similarly.
454 * i386/osf1elf.h: Similarly.
455 * i386/osfrose.h: Similarly.
456 * i860/i860-protos.h: Similarly.
457 * i860/i860.c: Similarly.
458 * i860/i860.h: Similarly.
459 * i960/i960-protos.h: Similarly.
460 * i960/i960.c: Similarly.
461 * i960/i960.h: Similarly.
462 * ia64/ia64-protos.h: Similarly.
463 * ia64/ia64.c: Similarly.
464 * ia64/ia64.h: Similarly.
465 * m32r/m32r-protos.h: Similarly.
466 * m32r/m32r.c: Similarly.
467 * m32r/m32r.h: Similarly.
468 * m68hc11/m68hc11-protos.h: Similarly.
469 * m68hc11/m68hc11.c: Similarly.
470 * m68hc11/m68hc11.h: Similarly.
471 * m68k/crds.h: Similarly.
472 * m68k/dpx2.h: Similarly.
473 * m68k/m68k-protos.h: Similarly.
474 * m68k/m68k.c: Similarly.
475 * m68k/m68k.h: Similarly.
476 * m68k/news.h: Similarly.
477 * m88k/m88k-protos.h: Similarly.
478 * m88k/m88k.c: Similarly.
479 * m88k/m88k.h: Similarly.
480 * mips/mips-protos.h: Similarly.
481 * mips/mips.c: Similarly.
482 * mips/mips.h: Similarly.
483 * ns32k/merlin.h: Similarly.
484 * ns32k/ns32k.c: Similarly.
485 * ns32k/ns32k.h: Similarly.
486 * ns32k/tek6000.h: Similarly.
487 * pa/pa-protos.h: Similarly.
488 * pa/pa.c: Similarly.
489 * pa/pa.h: Similarly.
490 * pdp11/2bsd.h: Similarly.
491 * pdp11/pdp11-protos.h: Similarly.
492 * pdp11/pdp11.c: Similarly.
493 * pdp11/pdp11.h: Similarly.
494 * romp/romp-protos.h: Similarly.
495 * romp/romp.c: Similarly.
496 * romp/romp.h: Similarly.
497 * rs6000/rs6000-protos.h: Similarly.
498 * rs6000/rs6000.c: Similarly.
499 * rs6000/rs6000.h: Similarly.
500 * rs6000/sysv4.h: Similarly.
501 * sh/sh-protos.h: Similarly.
502 * sh/sh.c: Similarly.
503 * sh/sh.h: Similarly.
504 * sparc/sparc-protos.h: Similarly.
505 * sparc/sparc.c: Similarly.
506 * sparc/sparc.h: Similarly.
507 * vax/vax.c: Similarly.
508 * vax/vax.h: Similarly.
509 * vax/vms.h: Similarly.
510 * we32k/we32k.c: Similarly.
511 * we32k/we32k.h: Similarly.
513 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
515 * basic-block.h (first_insn_after_basic_block_note): Declare.
516 * flow.c (first_insn_after_basic_block_note): Define. Moved
518 * ssa.c (first_insn_after_basic_block_note): Remove.
519 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
521 (ssa_eliminate_dead_code): Properly update the CFG and PHI
522 nodes when we find a dead conditional branch. Insert BARRIERs
523 after any blocks with no successors, but which do not have
526 2001-07-06 Zack Weinberg <zackw@stanford.edu>
528 * varray.c (varray_check_failed): Use internal_error.
530 2001-07-05 Andrew Haley <aph@redhat.com>
532 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
533 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
534 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
536 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
538 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
539 reference if the target constant is also a SYMBOL_REF.
541 2001-07-05 Eric Christopher <echristo@redhat.com>
543 * config/mips/mips.h (MASK_MIPS3900): Remove.
544 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
545 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
546 (TARGET_MIPS3900): Change to use mips_arch.
547 (TARGET_MIPS4000): New.
548 (TARGET_MIPS4100): New.
549 (TARGET_MIPS4300): New.
550 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
551 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
553 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
554 (ISA_HAS_BRANCHLIKELY): To here.
556 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
557 (mips_arch_string): Declare.
558 (mips_arch): Declare.
559 (TARGET_OPTIONS): Add -march and -mtune.
561 * config/mips/mips.c (mips_arch_string): New.
563 (override_options): Handle -march for codegen and -mtune
564 for scheduling. Use mips_arch. Move tx39 target default here.
565 (mips_parse_cpu): Move error message to override_options.
567 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
569 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
571 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
572 (MIPS Options): Ditto. Change mcpu entry to historical text.
574 2001-07-05 H.J. Lu (hjl@gnu.org)
576 * config/mips/mips.c (mips_parse_cpu): New function to parse
579 2001-07-05 Jim Wilson <wilson@redhat.com>
581 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
582 * config/ia64/t-ia64: Likewise.
583 (LIB1ASMFUNCS): Update comment.
585 2001-07-05 David Edelsohn <edelsohn@gnu.org>
587 * doc/install.texi (Install GCC: Binaries): Fix typo.
589 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
591 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
592 reference using the stack pointer, adjust it since we push Y
594 ("*ashrsi3"): Likewise.
595 ("*lshrsi3"): Likewise.
597 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
599 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
600 when -fomit-frame-pointer is used.
602 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
604 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
605 (try_redirect_by_replacing_jump): Reverse updating properly the
606 count and frequency information. Reverse removing cc0 setter.
607 (forwarder_block_p): Reverse fixing for fallthru blocks.
609 2001-07-05 DJ Delorie <dj@redhat.com>
611 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
612 (translate_options): If the above is defined, use it to map
613 given options to new options.
614 * doc/tm.texi: Document it.
616 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
617 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
619 * doc/invoke.texi (Optimize Options): Document that -fgcse may
620 cause programs using computed gotos to run more slowly.
622 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
624 * doc/install.texi (Specific): Markup, spelling and typo fixes.
626 Consistently require binutils 2.11.2, not prereleases.
627 (Specific, decstation-*): Canonicalize as mips-dec-*.
628 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
630 (Specific, m68k-altos): Removed reference to README.altos, deleted.
631 (Specific, mips-*): Reword MIPS C compiler requirements.
632 (Specific, powerpc*-*-*): New, mention --with-cpu once.
633 (Specific, sunv5): Removed, obsolete.
635 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
637 * dwarf2out.c (output_loc_list): Use an all ones mask for
638 .text asm output and don't rely on long long
639 literals. Reformat some long lines.
641 2001-07-05 Andreas Jaeger <aj@suse.de>
643 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
646 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
648 * dwarf2out.c (dwarf2out_define): Update comment.
649 (dwarf2out_undef): Ditto.
650 (dwarf2out_start_source_file): Ditto.
651 (dwarf2out_end_source_file): Ditto.
652 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
653 since we never call the start/end debug hook for the primary file.
655 2001-07-04 Kazu Hirata <kazu@hxi.com>
657 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
660 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
662 * cppinit.c (remove_dup_dirs): Inform if a system include
663 directory is being reordered.
664 * doc/invoke.texi (Directory Options): GCC warns if you hide a
666 * doc/cpp.texi (Search Paths): Likewise.
667 * doc/gcc.texi (Interoperation): Remove information about
670 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
672 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
673 (VARRAY_TOP_CHAR_PTR): Likewise.
675 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
677 * gcc.c (process_command): Don't assign elements of a const char*.
679 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
681 * emit-rtl.c (change_address): Don't abort if invalid address while
682 reload is in progress.
684 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
686 * c-lex.c (cb_file_change): Pass line number to
687 debug_start_source_file.
688 (cb_undefine): Pass correct line number to debug_undef.
690 * toplev.c (debug_start_source_file): Add line number to
691 parameters. Pass it along to dwarf2out_start_source_file.
692 (decode_g_option): Stop resetting debug level back to normal when
693 we change debug formats, unless the current level is
694 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
697 * toplev.h (debug_start_source_file): Add line number to
700 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
703 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
705 Output debug_macinfo data for starting file if requested.
706 (dwarf2out_end_source_file): Output debug_macinfo data for ending
708 (dwarf2out_define): Output debug_macinfo data for defining a macro
710 (dwarf2out_undef): Output debug_macinfo data for undefining a
712 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
713 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
714 (macinfo_section_label): New. DWARF2 macro info section label.
715 (dwarf2out_init): If we want macro info, output the start label
717 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
718 attribute to the compilation unit die pointing to the macro info.
720 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
722 * dwarf2out.c (new_loc_list): Move to inside #ifdef
723 DWARF2_DEBUGGING_INFO.
724 (add_loc_descr_to_loc_list): Ditto.
725 (output_loc_list): Ditto.
726 Also, fix thinko in curr not being initialized.
727 (gen_internal_sym): Ditto.
729 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
731 * emit-rtl.c (replace_equiv_address): New function.
732 * expr.h (replace_equiv_address): New declaration.
733 * explow.c (validize_mem): Call it instead of change_address and
734 also call if -fforce-addr and address is constant.
735 * expr.c: Replace more calls to change_address with adjust_address
736 and/or replace_equiv_address or to validize_mem.
737 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
738 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
739 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
740 * config/i370/i370.md, config/i860/i860.md: Likewise.
741 * config/i960/i960.md, config/mips/mips.c: Likewise.
742 * config/mips/mips.md, config/pa/pa.md: Likewise.
743 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
744 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
746 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
748 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
750 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
753 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
755 * doc/include: New directory.
756 * doc/fdl.texi: Move to doc/include/fdl.texi.
757 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
758 * doc/include/funding.texi, doc/include/gpl.texi: New files.
759 * doc/gcc.texi: Use funding.texi and gpl.texi.
760 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
761 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
762 Update dependencies and use -I $(docdir)/include.
764 2001-07-04 Anthony Green <green@redhat.com>
766 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
768 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
770 * doc/install.texi (sparc64-*-*): Remove garbage.
772 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
774 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
775 Fix typo in last change to use adjust_address.
777 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
779 * doc/install.texi (Specific): Update information for *-*-solaris*.
781 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
783 * explow.c (plus_constant_wide): Reinitialize Y for restart.
785 2001-07-03 Stan Shebs <shebs@apple.com>
787 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
788 case for flag_no_mach_text_sections.
789 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
790 * config/darwin.c (flag_no_mach_text_sections): Remove.
791 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
793 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
795 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
796 and avoid checking for constant as first operand.
797 * recog.c (find_constant_term_loc): No longer static.
798 (adj_offettable_operand): Delete.
799 * rtl.h (adj_offsettable_operand): Delete declaration.
800 (find_constant_term): Add declaration.
801 * caller-save.c: Replace calls to adj_offsettable_operand with calls
803 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
804 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
805 * config/i386/i386.c, config/i386/i386.md: Likewise.
806 * config/i860/i860.c, config/i960/i960.c: Likewise.
807 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
808 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
809 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
810 * config/mips/mips.c, config/mips/mips.md: Likewise.
811 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
812 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
813 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
814 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
815 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
816 * config/ns32k/ns32k.md: Likewise.
818 2001-07-03 Zack Weinberg <zackw@stanford.edu>
820 * rtl.c (copy_rtx): Handle 'T' format letter.
821 * gensupport.c (collect_insn_data): Likewise.
822 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
824 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
826 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
827 -B option. Use 'dir' not 'foo' as example directory name.
829 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
831 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
832 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
834 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
836 * doc/cppinternals.texi: Improve formatting and logical markup.
838 2001-07-03 Andreas Jaeger <aj@suse.de>
840 * Makefile.in (insn-recog.o): Add dependency on reload.h.
842 * genrecog.c (write_header): Include reload.h for prototypes in
845 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
848 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
849 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
850 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
851 i386_pe_valid_type_attribute_p): Add.
852 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
853 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
855 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
857 * explow.c (plus_constant_wide, case LO_SUM): New case.
858 (plus_constant_for_output_wide): Delete.
859 * rtl.h (plus_constant_for_output): Delete.
860 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
861 instead of plus_constant_for_output.
862 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
863 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
864 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
865 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
866 * config/sparc/sparc.md: Likewise.
867 Convert some change_address calls to adjust_address.
869 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
871 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
872 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
873 documentation of -std and -Wwrite-strings.
875 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
877 * cse.c (canon_hash): Don't register registers in very small
878 register classes, as extending their lifetime might cause
881 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
883 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
885 * flow.c (forwarder_block_p): Fix for fallthru blocks.
886 (try_redirect_by_replacing_jump): Update properly the count
887 and frequency information.
889 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
891 * toplev.c (dump_file_index): Move SSA dumps just after first
893 (dump_file): Corresponding changes.
894 (rest_of_compilation): Move SSA path to just after the first
896 * doc/gcc.texi (Passes): Update due to movement of SSA path.
897 * doc/invoke.texi: Update dump file #s as they were completely
898 out of date with reality.
900 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
902 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
904 * expr.c (emit_move_insn_1): Deal with non-default
907 * expr.c (emit_single_push_insn): Fix warning.
909 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
911 * expr.c (emit_move_insn_1): Avoid modifying
912 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
914 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
916 * emit-rtl.c (adjust_address): New function.
917 * expr.h (adjust_address): Add declaration.
918 * builtins.c: Replace some calls to change_address with calls to it
920 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
921 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
922 * config/arm/arm.c, config/convex/convex.c: Likewise.
923 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
924 * config/i386/i386.c, config/i386/i386.md: Likewise.
925 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
926 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
927 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
928 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
929 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
931 2001-07-02 Jim Wilson <wilson@redhat.com>
933 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
935 2001-07-02 Steve Ellcey <sje@cup.hp.com>
937 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
938 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
940 2001-07-02 Zack Weinberg <zackw@stanford.edu>
942 * cppinit.c (lang_defaults): New table.
943 (set_lang): Just read from lang_defaults into the live options
946 2001-07-02 Zack Weinberg <zackw@stanford.edu>
948 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
949 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
950 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
952 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
954 * doc/install.texi: Various spelling and markup fixes.
955 (Installing GCC): Component specific installation instructions are
958 Warn about removing old install dir in the presence of shared libs.
959 (Configuration): Invoke with options target to match configure
961 Consistently refer to gas, gld pathnames.
962 Invert --enable-multilib documentation.
963 Remove references to old compiler versions.
965 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
967 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
969 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
971 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
973 (Specific, mips*-sgi-irix5): Note IDO download.
974 Reworded MIPS C hints.
975 Use GNU as instead of GAS.
977 Removed SGI Freeware reference, IRIX 6 only.
978 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
979 Note N64 library requirement/workaround.
981 Complete list of structure passing bug victims.
983 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
985 * doc/install.texi: Remove CVS Id.
987 2001-07-02 Andreas Jaeger <aj@suse.de>
989 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
990 (find_inherently_necessary): Remove unused variable.
992 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
994 * c-common.h (TDI_inlined): New ast dump phase.
995 (dump_flag_name): New function.
996 * c-dump.c (dump_files): Add inlined phase.
997 (dump_flag_name): Define.
998 * doc/invoke.texi (-fdump-ast-inlined): Document.
1000 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1002 * stor-layout.c (layout_decl): Revert change to handling of alignment
1005 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1007 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
1010 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
1012 * doc/tm.texi (FUNCTION_ARG): Document that the last call
1015 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
1017 * tlink.c (recompile_files): Remove COMPILER_PATH and
1018 LIBRARY_PATH from the environment.
1020 2001-07-01 Zack Weinberg <zackw@stanford.edu>
1022 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
1023 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
1025 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
1027 * c-parse.in (OBJC_STRING): Kill.
1028 (objc_string): Decompose to [objc_string] '@' STRING.
1029 (reswords): Take the leading '@' off all the Objective C keywords.
1030 (objc_rid_sans_at): Kill.
1031 (init_reswords): Don't initialize it.
1032 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
1033 (_yylex): Kill reconsider label. Look ahead one token after
1034 an '@'; if we get an identifier, check whether it's an
1035 Objective C @-keyword. If so, return the keyword. Otherwise,
1036 put back the token and return the '@' as a terminal.
1038 * cpplib.c (lex_macro_node): Remove unnecessary check for
1039 leading '@' on identifier. Clarify control flow and commentary.
1041 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1043 * cse.c (new_label_ref): Variable deleted.
1044 (insert): Remove set of new_label_ref.
1045 (check_for_label_ref): New function.
1046 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
1048 See ChangeLog.5 for earlier changes.