1 2001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
3 * c-decl.c (grokdeclarator): Use ISO word.
4 * cppinit.c: Remove leading capital from diagnostic messages, as
5 per GNU coding standards.
6 * emit-rtl.c: Similarly.
9 * tradcpp.c: Similarly.
10 * config/arm/arm.c: Similarly.
11 * config/arm/arm.h: Similarly.
12 * config/avr/avr.c: Similarly.
13 * config/avr/avr.h: Similarly.
14 * config/c4x/c4x.c: Similarly.
15 * config/cris/cris.c: Similarly.
16 * config/cris/cris.h: Similarly.
17 * config/d30v/d30v.c: Similarly.
18 * config/dsp16xx/dsp16xx.c: Similarly.
19 * config/dsp16xx/dsp16xx.h: Similarly.
20 * config/h8300/h8300.c: Similarly.
21 * config/i386/i386.c: Similarly.
22 * config/i386/xm-djgpp.h: Similarly.
23 * config/i960/i960.h: Similarly.
24 * config/m32r/m32r.c: Similarly.
25 * config/m68hc11/m68hc11.c: Similarly.
26 * config/m88k/m88k.c: Similarly.
27 * config/m88k/m88k.h: Similarly.
28 * config/mcore/mcore.c: Similarly.
29 * config/mcore/mcore.h: Similarly.
30 * config/mips/mips.c: Similarly.
31 * config/mmix/mmix.c: Similarly.
32 * config/pa/pa.c: Similarly.
33 * config/rs6000/rs6000.c: Similarly.
34 * config/rs6000/sysv4.h: Similarly.
35 * config/s390/s390.c: Similarly.
36 * config/sparc/sparc.c: Similarly.
37 * config/v850/v850-c.c: Similarly.
38 * config/v850/v850.c: Similarly.
40 2001-12-03 Zack Weinberg <zack@codesourcery.com>
42 * rs6000.h (RETURN_IN_MEMORY): Cast result of
43 int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
45 Mon Dec 3 09:18:34 2001 Jeffrey A Law (law@cygnus.com)
47 * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
48 bit twiddling constant.
50 Mon Dec 3 16:16:37 CET 2001 Jan Hubicka <jh@suse.cz>
52 * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
53 call purge_dead_edges after removing.
54 (delete_null_pointer_checks): Do not handle delete_list.
56 * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
57 (count_basic_blocks): ... here.
58 (find_basic_blocks, find_bb_boundaries): Cleanup.
60 * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
61 overflow for types greater then 2 * HOST_WIDE_INT.
63 * reload.c (find_reloads): Update the duplicates after swapingg.
65 Mon Dec 3 13:52:19 CET 2001 Jan Hubicka <jh@suse.cz>
67 * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
69 2001-12-02 Zack Weinberg <zack@codesourcery.com>
71 * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
72 MASK_LONG_DOUBLE_128): Delete.
73 (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
74 TARGET_AIX_STRUCT_RET): New flags.
75 (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
76 -mlong-double-64. Add entries for -m(no-)aix-struct-return
77 and -m(no-)svr4-struct-return.
78 (TARGET_OPTIONS): Add entry for -mlong-double-.
79 (rs6000_long_double_size_string, rs6000_long_double_type_size,
80 rs6000_altivec_abi): Declare.
81 (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
82 LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
83 (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
84 structures of size <= 8 bytes in registers.
85 (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
87 * config/rs6000/rs6000.c (rs6000_long_double_size_string,
88 rs6000_long_double_type_size, rs6000_altivec_abi): New
90 (rs6000_override_options): Set rs6000_long_double_type_size
91 from rs6000_long_double_size_string, if nonzero. Set the
92 MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
94 (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
96 (rs6000_init_builtins): This hook now takes no arguments.
98 * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
99 DRAFT_V4_STRUCT_RET to 1.
101 2001-12-03 Joseph S. Myers <jsm28@cam.ac.uk>
103 * c-typeck.c (really_start_incremental_init, push_init_level):
104 Avoid constructor_max_index being other than an INTEGER_CST.
106 2001-12-02 David Edelsohn <edelsohn@gnu.org>
108 * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
110 (ASM_GENERATE_INTERNAL_LABEL): Same.
111 (UNIQUE_SECTION): Fix typo.
113 2001-12-02 Richard Henderson <rth@redhat.com>
115 * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
117 2001-12-02 Richard Henderson <rth@redhat.com>
119 * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
120 (MEM_EXPR): Rename from MEM_DECL; adjust all users.
121 * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
122 * expr.h, final.c, reload1.c: Adjust users.
124 * alias.c (nonoverlapping_component_refs_p): New.
125 (decl_for_component_ref, adjust_offset_for_component_ref): New.
126 (nonoverlapping_memrefs_p): Use them.
127 * emit-rtl.c (component_ref_for_mem_expr): New.
128 (set_mem_attributes): Use it.
129 (set_mem_offset): New.
130 * expr.c (expand_assignment): Call set_mem_attributes for
131 inner references; adjust the memory offset as needed.
132 * print-rtl.c (print_mem_expr): New.
135 Sun Dec 2 09:22:25 2001 Douglas B. Rupp <rupp@gnat.com>
137 * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
139 * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
140 (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
141 (ASM_SPEC): Don't redefine.
142 (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
143 * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
144 * config/alpha/vms-dwarf2.asm: New file.
146 * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
147 * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
148 * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
149 (vmsdbgout_after_prologue): New declaration.
150 * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
151 * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
152 * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
153 (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
154 (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
155 (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
156 * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
157 Test VMS_DEBUGGING_INFO.
158 (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
159 (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
160 * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
161 * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
162 VMS_AND_DWARF2_DEBUG.
163 (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
164 (decode_g_option): Add "vms" to debug_type_names.
165 (process_options): Set vmsdbg_debug_hooks if -gvms.
166 (lang_independent_init): Emit line number for VMS unless -g0.
167 * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
168 * vmsdbg.h, vmsdbgout.c: New files.
170 Sun Dec 2 09:03:06 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
172 * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
174 2001-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
176 * cfgrtl.c (purge_all_dead_edges): Initialize variable.
177 * dwarf2out.c (is_cxx): Prototype.
178 * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
180 * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
182 Sun Dec 2 07:12:30 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
184 * libgcc2.c (__bb_exit_func): Fix line wrap problems.
186 2001-12-02 Geoff Keating <geoffk@redhat.com>
188 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
189 * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
190 rather than simplify_subreg. Check for volatile-ness. Check that
191 we're not splitting one slow operation into two slow operations.
193 2001-12-02 David Edelsohn <edelsohn@gnu.org>
195 * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
198 2001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
200 * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
201 capital from diagnostics.
202 * c-lex.c (cb_file_change): Similarly.
203 * c-parse.in : Similarly.
204 * cfgrtl.c (verify_flow_info): Similarly.
205 * collect2.c: Similarly.
206 * cppfiles.c (find_include_file): Similarly.
207 * cppinit.c (cpp_handle_option): Similarly.
208 * cpplex.c (cpp_spell_token): Similarly.
209 * cppmain.c (do_preprocessing): Similarly.
210 * gcc.c (translate_options, process_command, do_spec1,
211 main, pfatal_execute): Similarly.
212 * genattr.c (main): Similarly.
213 * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
214 write_test_expr, main): Similarly.
215 * gencodes.c (main): Similarly.
216 * genconfig.c (main): Similarly.
217 * genconstants.c (main): Similarly.
218 * genemit.c (main): Similarly.
219 * genextract.c (main): Similarly.
220 * genflags.c (main): Similarly.
221 * genopinit.c (main): Similarly.
222 * genoutput.c (process_template, main): Similarly.
223 * genpeep.c (main): Similarly.
224 * genrecog.c (main): Similarly.
225 * gensupport.c (is_predicable, identify_predicable_attribute,
226 alter_predicate_for_insn, init_md_reader_args, main): Similarly.
227 * ggc-page.c (alloc_anon): Similarly.
228 * mips-tfile.c (add_string, add_procedure, add_file, read_line,
229 parse_begin, parse_bend, parse_def, parse_end, parse_file,
230 parse_stabs_common, parse_stabs, write_varray, write_object,
231 read_seek, copy_object, main, error): Similarly.
232 * profile.c (compute_branch_probabilities): Similarly.
233 * reg-stack.c (check_asm_stack_operands): Similarly.
234 * reload.c (find_reloads): Similarly.
235 * reload1.c (spill_failure, failed_reload): Similarly.
236 * rtl-error.c (_fatal_insn_not_found): Similarly.
237 * toplev.c (read_integral_parameter, crash_signal,
238 decode_f_option, set_target_switch, parse_options_and_default_flags)
240 * tradcif.y (parse_number, yylex): Similarly.
241 * tradcpp.c (main, fancy_abort): Similarly.
242 * tree.c (tree_check_failed): Similarly.
243 * varray.c (varray_check_failed): Similarly.
244 * xcoffout.c (xcoff_output_standard_types): Similarly.
246 * objc-act.c (get_object_ref, lookup_and_install_protocols,
247 build_objc_string_object, objc_declare_alias, build_ivar_chain,
248 finish_message_expr, build_protocol_expr, is_public,
249 start_class): Similarly.
251 2001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
253 * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
254 trailing period from diagnostics.
255 * c-lex.c (cb_file_change): Similarly.
256 * cppmacro.c (check_trad_stringification): Similarly.
257 * gcc.c (do_spec_1): Similarly.
258 * genattr.c (main): Similarly.
259 * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
260 * gencodes.c (main): Similarly.
261 * genconfig.c (main): Similarly.
262 * genconstants.c (main): Similarly.
263 * genemit.c (main): Similarly.
264 * genextract.c (main): Similarly.
265 * genopinit.c (main): Similarly.
266 * genoutput.c (main): Similarly.
267 * genpeep.c (main): Similarly.
268 * genrecog.c (main): Similarly.
269 * mips-tfile.c (add_file, error): Similarly.
270 * profile.c (init_branch_prob): Similarly.
271 * reload1.c (spill_failure): Similarly.
272 * stmt.c (parse_output_constraint): Similarly.
273 * varasm.c (assemble_variable): Similarly.
275 2001-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
277 * m68k.c (init_FPA_table): Provide static prototype.
278 * mips/abi64.h (mips_function_value): Move prototype to ...
279 * mips-protos.h (mips_function_value): ... here.
280 * mips.c: Include halfpic.h.
281 * output.h (rdata_section): Prototype.
283 * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
284 * m88k.c (m88k_svr3_asm_out_constructor,
285 m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
287 * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
288 * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
289 * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
291 2001-12-01 Geoff Keating <geoffk@redhat.com>
293 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
294 LO_SUM addresses less than word size are not legitimate,
295 because they lead to invalid SUBREGs.
296 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
298 2001-12-01 Olivier Hainque <hainque@act-europe.fr>
300 * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
301 while scanning for multiple back edges.
303 2001-12-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
305 * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
306 * config/rs6000/tramp.asm: Use it.
308 2001-12-01 Zack Weinberg <zack@codesourcery.com>
310 * gencheck.c, gengenrtl.c: Don't define xmalloc.
311 * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
314 2001-11-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
316 * pa.c (output_ascii): Cast `p' to unsigned char.
318 2001-11-30 Daniel Berlin <dan@cgsoftware.com>
320 * config/rs6000/rs6000.c (altivec_expand_builtin): add
321 ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
322 *_16qi,_8hi, rename existing V4SI ones to *_4si.
323 (altivec_init_builtins): Ditto.
324 (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
326 * config/rs6000/rs6000.md: Add attribute types vecsimple,
327 veccomplex, vecfloat, and vecperm, for altivec instructions.
328 Modify altivec patterns to use approriate attribute type.
329 Modify altivec patterns to match RTL operations where approriate
330 (IE no unspec where we can avoid it).
331 Add vector unit scheduling for ppc7450.
332 Rename patterns to what they are where approriate
333 (altivec_vaddfp->addv4sf3, etc)
335 * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
336 Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
338 * config/rs6000/sysv4.h: Add -mcpu=7450.
340 * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
341 _builtin_altivec_ld_interal function.
343 2001-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
345 * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
346 strchr, strrchr, isascii, gettimeofday.
347 * config.in, configure: Regenerate.
349 2001-11-30 Zoltan Hidvegi <hzoli@hzoli.2y.net>
351 * unroll.c (unroll_loop): Correct special exit cases.
353 2001-11-30 Stephane Carrez <Stephane.Carrez@sun.com>
355 * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
356 accept DFmode and DImode only.
358 2001-11-30 Aldy Hernandez <aldyh@redhat.com>
360 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
361 (STACK_DYNAMIC_OFFSET): Same.
363 2001-11-30 Richard Henderson <rth@redhat.com>
365 * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
367 2001-11-30 Aldy Hernandez <aldyh@redhat.com>
369 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
370 (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
371 the values in call_used_registers.
373 Fri Nov 30 12:48:26 2001 Jeffrey A Law (law@cygnus.com)
375 * gthr-dce.h: If _DCE_THREADS is not defined, then just include
378 2001-11-30 Jason Merrill <jason@redhat.com>
380 * dwarf2out.c (is_cxx): New fn.
381 (add_data_member_location_attribute): Check it.
382 * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
384 Fri Nov 30 08:26:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
386 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
388 2001-11-30 Daniel Berlin <dan@cgsoftware.com>
390 * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
391 MODE_VECTOR_FLOAT as allowed.
393 2001-11-29 Zack Weinberg <zack@codesourcery.com>
395 Purge cruft now we have build libiberty.
397 * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
398 HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
399 USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
400 USE_HOST_STRSTR): Delete variables.
401 (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
402 hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
403 $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
404 $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
405 (LIBIBERTY, BUILD_LIBIBERTY): New variables.
406 (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
407 (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
408 (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
410 (HOST_RTL): Remove hashtab.o safe-ctype.o.
411 (OBJS): Remove splay-tree.o.
412 (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
413 (distclean): No need to delete splay-tree.c obstack.c
414 hashtab.c safe-ctype.c.
415 (mostlyclean): Delete build copies of print-rtl.c bitmap.c
416 errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
417 * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
419 * configure.in: Don't use them.
420 Set and substitute @FORBUILD@.
421 * config.in, configure: Regenerate.
422 * doprint.c: Move to libiberty/_doprnt.c.
423 * doc/configterms.texi: Document that libiberty is now built
424 up to three times. Fix typo.
426 2001-11-30 Jason Merrill <jason@redhat.com>
428 * dwarf2out.c (add_data_member_location_attribute): Do the
429 right thing for virtual bases.
430 * dbxout.c (dbxout_type): For a virtual base, print the offset
433 2001-11-29 Zoltan Hidvegi <hzoli@hzoli.2y.net>
435 * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
437 2001-11-29 Aldy Hernandez <aldyh@redhat.com>
439 * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
441 Remove unused attribute for named.
443 2001-11-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
445 * genattrtab.c (attr_rtx_1): New function containing the
446 majority of `attr_rtx'. Move variable declarations into the
447 scope where they are used. Eliminate unnecessary gotos.
448 (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
449 VA_FIXEDARG, and VA_CLOSE.
451 2001-11-30 Hans-Peter Nilsson <hp@axis.com>
453 * config/cris/cris.c (cris_notice_update_cc): Check first
454 destination also against overlap with cc_status.value2 and second
455 destination against overlap with cc_status.value1. For overlaps,
456 clear overlapped value, don't just CC_STATUS_INIT.
458 * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
460 (LINK_SPEC): Remove whitespace at end of line.
462 2001-11-29 Jakub Jelinek <jakub@redhat.com>
464 * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
466 2001-11-29 Jakub Jelinek <jakub@redhat.com>
468 * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
469 macros for the supported debugging types.
471 2001-11-29 Craig Rodrigues <rodrigc@gcc.gnu.org>
474 * config/i386/i386.c (print_operand): Verify that the
475 argument to %c is a constant and not a conditional which
476 needs to be reversed.
478 Thu Nov 29 11:12:59 2001 Geoffrey Keating (geoffk@redhat.com)
480 * emit-rtl.c (gen_lowpart_common): Fix conversion of
481 REAL_VALUE_TYPEs to an array of target integers. Fix extraction
482 of low part of those arrays for 32bit and 64bit hosts.
484 2001-11-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
486 * Makefile.in (insn-output.o): Depend on insn-codes.h.
488 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
490 * configure.in (target_list): Add generated-manpages.
491 * configure: Regenerate.
492 * Makefile.in (generated-manpages): Depend on
493 lang.generated-manpages.
494 * objc/Make-lang.in (objc.generated-manpages): New dummy target.
496 2001-11-29 Nick Clifton <nickc@cambridge.redhat.com>
498 * config/arm/crti.asm (_init): Add .thumb_func if compiled
500 (_fini): Add .thumb_func if compiled with -mthumb.
502 2001-11-28 Eric Christopher <echristo@redhat.com>
504 * config/mips/mips.c (override_options): Fix thinko in mips_tune
505 for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
507 Thu Nov 29 00:24:15 EST 2001 John Wehle (john@feith.com)
509 * alpha.md (tablejump): Use pic_offset_table_rtx
510 instead of gen_rtx_REG.
512 Wed Nov 28 15:36:13 2001 Jeffrey A Law (law@cygnus.com)
514 * expr.c (store_expr): When copying a string constant into an
515 array, reset the known alignment of the MEM for the section to
516 be cleared to BITS_PER_UNIT.
518 2001-11-28 Hans-Peter Nilsson <hp@axis.com>
520 * config/cris/cris.c: Remove whitespace at end of line.
522 Wed Nov 28 14:51:23 2001 Douglas B. Rupp <rupp@gnat.com>
524 * config.gcc (i[34567]86-*-interix3*): New case.
525 * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
528 2001-11-28 Richard Henderson <rth@redhat.com>
530 * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
531 symbolic_operand as the predicate.
533 2001-11-28 Richard Henderson <rth@redhat.com>
535 * doloop.c (doloop_modify_runtime): Properly select induction
536 variable; skip late entry test if biv initializer created by loop.
538 Wed Nov 28 08:21:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
540 * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
541 EXPR_WITH_FILE_LOCATION, so change checks and documentation.
543 * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
545 * tree.h: Add missing checks on some macros; make formatting more
548 * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
549 level; only add to pending_sizes if find it.
551 * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
553 * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
554 Add casts to remove warnings.
556 * Makefile.in (OBJS): Sort alphabetically.
558 * print-rtl.c (print_rtx): If RTX code is bad, just say so.
561 Wed Nov 28 06:52:27 2001 Arnaud Charlet <charlet@ACT-Europe.FR>
563 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
564 (FLAGS_TO_PASS): Add STAGE_PREFIX.
565 (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
568 Wed Nov 28 10:42:19 CET 2001 Jan Hubicka <jh@suse.cz>
570 * cse.c (true_dependence_in_rtx): New function.
571 (invalidate): Use it.
573 * c-common.h (GOTO_FAKE_P): New macro.
574 * tree-inline.c (GOTO_FAKE_P): Set.
575 * c-tree.texi (GOTO_FAKE_P): Document.
577 * varasm.c (assemble_variable): Set reloc to 3 for error_mark
579 (output_addressed_constants): Check for local/external relocations.
580 * elfos.h (SELECT_SECTION): Classify data section.
581 * tm.texi (SELECT_SECTION): Update documentation.
583 * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
584 (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
586 2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
588 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
589 UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
592 2001-11-28 Hans-Peter Nilsson <hp@axis.com>
594 * config/cris/cris.c: Tweak spacing for prototypes.
595 (LOSE_AND_RETURN): New macro.
596 (cris_operand_lossage): New function.
597 (cris_print_index, cris_print_base): Use cris_operand_lossage
598 rather than fatal_insn.
599 (cris_print_operand, cris_print_operand_address): Use
600 LOSE_AND_RETURN rather than fatal_insn and internal_error.
601 (cris_output_addr_const): Use LOSE_AND_RETURN and
602 output_operand_lossage rather than fatal_insn and internal_error
603 for valid but unexpected rtx expressions.
605 * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
606 for a SUBREG in src or dest, abort instead.
608 2001-11-28 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
610 * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
613 2001-11-27 Jakub Jelinek <jakub@redhat.com>
615 * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
616 preprocessor define. If only DBX_DEBUGGING_INFO or only
617 DWARF2_DEBUGGING_INFO is supported for the target, provide
618 appropriate definitions.
620 2001-11-27 Neil Booth <neil@daikokuya.demon.co.uk>
622 * Makefile.in: Update, and add c-objc-common.o dependencies.
623 * c-lang.c: Remove unnecessary includes.
624 (c_init): Move bulk of code to c_objc_common_init, and call it.
625 (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
626 inline_forbidden_p, c_cannot_inline_tree_fn): Move to
628 * c-objc-common.c: New. Mostly pulled from c-lang.c.
629 * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
630 c_objc_common_init, c_missing_noreturn_ok_p): New.
631 * toplev.c: Update comment.
632 * doc/passes.texi: Update.
634 * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
635 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
636 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
637 (objc_init): Update to use c_objc_common_init.
639 2001-11-27 Neil Booth <neil@daikokuya.demon.co.uk>
641 * cpphash.c (_cpp_init_hashtable): Update.
642 * cpphash.h (struct spec_nodes): Remove n_L.
643 * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
645 2001-11-17 Richard Henderson <rth@redhat.com>
647 * unroll.c (loop_iterations): Move last change ...
648 * doloop.c (doloop_modify_runtime): ... here.
650 2001-11-17 Corey Minyard <minyard@acm.org>
651 Richard Henderson <rth@redhat.com>
653 * unroll.c (loop_iterations): Detect one situation in which we
654 overestimate the number of iterations.
656 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
658 * gcc.c (set_input): Export.
660 gcc.h (set_input): ... here.
662 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
664 * gcc.c (set_collect_gcc_options): New function, split out from
666 Ignore elided switches.
667 (do_spec): Invoke before executing command.
668 (do_spec_1): Likewise.
671 2001-11-27 Hans-Peter Nilsson <hp@axis.com>
673 * config/cris/cris.h (INT_ASM_OP): Remove.
675 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
677 * config/i386/sol2.h (WINT_TYPE): Redefine.
678 (WINT_TYPE_SIZE): Likewise.
680 2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
682 * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
683 (dup2): Make static and add prototype.
684 * m68k/plexus.h: Don't define NO_DUP2.
685 * configure.in (AC_CHECK_FUNCS): Add dup2.
686 * config.in, configure: Regenerate.
688 * ia64/aix.h (REG_SIZE): Don't #undef.
689 * sparc.h (REG_SIZE): Delete.
690 * flow.c (mark_used_regs): Don't use REG_SIZE.
691 * regs.h (REG_SIZE): Delete.
693 2001-11-27 Andreas Schwab <schwab@suse.de>
695 * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
696 PREFERRED_DEBUGGING_TYPE.
698 Tue Nov 27 08:21:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
700 * Makefile.in (c-lang.o): Depends on langhooks-def.h.
701 (expr.o, varasm.o): Depends on langhooks.h.
702 * c-common.c (c_safe_from_p): Always declare.
703 (c_expand_expr): Refine when declared.
704 * c-lang.c (c-common.h): Now include.
705 (LANG_HOOKS_SAFE_FROM_P): Define new hook.
706 (c_init): Don't set lang_safe_from_expr.
707 * expr.c (langhooks.h): Now include.
708 (lang_safe_from_p): No longer define.
709 (safe_from_p): Use lang hook.
710 (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
711 (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
712 * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
713 * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
714 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
715 * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
716 * langhooks.h (struct lang_hooks): New fields expand_constant
718 * output.h (output_constant): Size arg is HOST_WIDE_INT.
719 * stmt.c (expand_decl_init): No longer need to expand constant
721 * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
722 * toplev.c (lang_expand_constant): Delete var.
723 * tree.c (save_expr): Don't put another SAVE_EXPR around simple
724 operations on SAVE_EXPR.
725 * varasm.c (langhooks.h): Now include.
726 (compare_constant_1): Use lang_hooks, not lang_expand_constant.
727 (record_constant_1, output_addressed_constants): Likewise.
728 (initializer_constant_valid_p, output_constant): Likewise.
729 (output_constant_def): Process no-defer of string constant.
730 (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
731 (output_constant): Strip more conversions.
732 Track our size and pad for the rest.
733 (array_size_for_constructor): Remove code for non-byte STRING_CST.
734 (output_constructor): SIZE now HOST_WIDE_INT.
736 2001-11-27 Richard Henderson <rth@redhat.com>
738 * ifcvt.c (noce_try_store_flag_constants): Test for overflow
741 2001-11-27 Zack Weinberg <zack@codesourcery.com>
743 * cppfiles.c (read_include_file): Add comment.
745 2001-11-26 Richard Henderson <rth@redhat.com>
747 * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
749 2001-11-26 Richard Henderson <rth@redhat.com>
751 * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
752 * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
753 commented out override.
755 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
757 * cppfiles.c (stack_include_file): Don't optimize zero-length
759 (read_include_file): NUL-terminate read files.
760 * cpplex.c (handle_newline, skip_escaped_newlines,
761 get_effective_char, skip_whitespace, parse_identifier,
762 parse_identifier_slow, parse_number, parse_string,
763 _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
765 * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
766 Be sure buffers are NUL terminated.
767 * cppmacro.c (warn_of_redefinition): Kill compile warning.
769 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
771 * c-common.c: Include tree-inline.h.
772 (c_language): Move separate definitions here.
773 (c_common_init_options, c_common_post_options): New.
774 (c_common_lang_init): Rename c_common_init.
775 * c-common.h (c_common_lang_init): Similarly.
776 (c_common_init_options, c_common_post_options): New.
777 * c-lang.c (c_post_options): Move body to c_common_post_options.
778 (c_init_options): Use c_common_init_options.
780 * langhooks.def: Rearrange.
781 * langhooks.h: Rearrange, and improve comments.
782 * toplev.c (do_compile): New function.
783 (toplev_main): Use it.
784 (lang_independent_f_options, parse_options_and_default_flags,
785 process_options): Remove trailing periods.
786 * Makefile.in: Update.
787 objc: * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
791 2001-11-26 Richard Henderson <rth@redhat.com>
793 * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
795 2001-11-26 DJ Delorie <dj@redhat.com>
797 * expr.c (store_constructor): Actually use the value computed
798 if WORD_REGISTER_OPERATIONS.
800 2001-11-26 Richard Henderson <rth@redhat.com>
802 * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
805 2001-11-26 David Edelsohn <edelsohn@gnu.org>
807 * rs6000.c (output_mi_thunk): Handle minimal-toc and call
808 correct function on AIX.
810 2001-11-26 Alexandre Oliva <aoliva@redhat.com>
812 * toplev.c (process_options): Don't force
813 flag_optimize_sibling_calls to zero just because exceptions are
816 Mon Nov 26 12:37:05 2001 Jeffrey A Law (law@cygnus.com)
818 * df.h (transfer_function_sbitmap): Use PARAMS around argument
819 list in function prototypes.
820 (transfer_function_bitmap): Likewise.
822 2001-11-26 Loren J. Rittle <ljrittle@acm.org>
824 * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
825 * config/i386/netbsd-elf.h: Likewise.
827 2001-11-26 David Edelsohn <edelsohn@gnu.org>
829 * doc/trouble.texi: Remove outdated RS/6000 comments.
831 Mon Nov 26 13:49:41 CET 2001 Jan Hubicka <jh@suse.cz>
833 * final.c (walk_alter_subreg): Fix return value.
835 Mon Nov 26 11:36:20 CET 2001 Jan Hubicka <jh@suse.cz>
837 * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
839 * sparc.md (post-reload splitters): Do not call alter_subreg.
840 * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
842 2001-11-25 Aldy Hernandez <aldyh@redhat.com>
844 * regclass.c (choose_hard_reg_mode): Handle vector arguments.
846 2001-11-26 Alan Modra <amodra@bigpond.net.au>
848 * final.c: (insn_lengths): Make it an int *, so that large jump
849 tables don't overflow.
851 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
853 * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
854 (format_types): Use it for scanf.
855 (dollar_arguments_pointer_p): New.
856 (init_dollar_format_checking): Store details of which arguments
858 (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
859 (finish_dollar_format_checking): Take extra parameter
860 pointer_gap_ok. Treat unused arguments differently if
861 pointer_gap_ok and the unused arguments are pointers.
862 (check_format_info_main): Pass extra argument to
863 finish_dollar_format_checking.
864 * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
865 unused arguments are present between used arguments with operand
868 2001-11-25 Daniel Berlin <dan@cgsoftware.com>
870 * df.c: Add prototypes for hybrid_search_bitmap and
871 hybrid_search_sbitmap.
872 (hybrid_search_bitmap): New function.
873 (hybrid_search_sbitmap): New function.
874 (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
875 (iterative_dataflow_bitmap): Ditto.
877 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
879 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
880 address computations.
882 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
884 * config/m68hc11/m68hc11.c (d_register_operand): Must accept
885 register b (low part of d).
887 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
889 * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
892 Sun Nov 25 06:22:09 2001 Douglas B. Rupp <rupp@gnat.com>
894 * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
895 * config/alpha/x-vms: New file, to compile the above.
896 * config.gcc (alpha*-dec-vms*): Add x-vms.
898 2001-11-24 Hans-Peter Nilsson <hp@axis.com>
900 * genextract.c (main): Set ro_loc for peepholes.
902 Sat Nov 24 17:04:10 2001 Douglas B. Rupp <rupp@gnat.com>
904 * fix-header.c (main): Move inf_buffer termination and inf_limit
905 calculation to after read.
907 * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
908 (__UNIX_FOPEN): Define.
910 Sat Nov 24 16:11:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
912 * function.c (assign_stack_temp_for_type): Clear alias set before
915 2001-11-23 David Edelsohn <edelsohn@gnu.org>
917 * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
919 * rs6000.md (cmptf): Fix typo.
921 2001-11-23 Richard Sandiford <rsandifo@redhat.com>
923 * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
924 * varasm.c (output_constructor): Use assemble_integer rather
925 than ASM_OUTPUT_BYTE.
927 2001-11-23 Andreas Jaeger <aj@suse.de>
929 * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
932 2001-11-23 Nick Clifton <nickc@cambridge.redhat.com>
934 * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
936 (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
937 (MULTILIB_DEFAULTS): Remove previous definition.
939 2001-11-23 Neil Booth <neil@daikokuya.demon.co.uk>
941 * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
942 * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
944 2001-11-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
946 * cris.h: Revert thinko in last patch.
948 2001-11-23 Joseph S. Myers <jsm28@cam.ac.uk>
950 * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
951 FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
952 cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
953 dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
954 explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
955 sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
957 * predict.c, reg-stack.c: Fix spelling errors.
959 2001-10-09 Andrew Haley <aph@redhat.com>
961 * calls.c (check_sibcall_argument_overlap): Use slot_offset for
964 2001-11-22 Graham Stott <grahams@redhat.com>
966 * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
967 replacement jump after original jump.
969 (verify_flow_info): Remove redundent initialisation.
970 Handle reaching end of insn list before finding a BARRIER.
971 Only issue one missing barrier diagnostic.
973 2001-11-22 Graham Stott <grahams@redhat.com>
975 * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
977 Thu Nov 22 06:49:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
979 * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
982 2001-11-22 Nick Clifton <nickc@cambridge.redhat.com>
984 * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
985 Fix typo -mm32rx=> -m32rx.
987 * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
990 * config.gcc (xscale-coff): Add necessary header files to
993 2001-11-20 Zack Weinberg <zack@codesourcery.com>
995 * rs6000.c (output_cbranch): Use $, not %$, in output template.
997 2001-11-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
999 * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
1000 (lang_type_quals): Declare.
1001 (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
1002 retrieve language-specific qualifiers for a type node, instead of
1003 C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
1005 * tree-dump.h: Rename from c-dump.h.
1006 * c-common.h (C_TYPE_QUALS): Removed.
1007 Move declarations for tree-dump.c interface to...
1008 * tree.h: ... here. Remove lang_dump_tree.
1009 * langhooks.h (struct lang_hooks_for_tree_dump): New.
1010 (struct lang_hooks): Add tree_dump hooks.
1011 * langhooks.c (lhd_tree_dump_dump_tree): New function.
1012 (lhd_tree_dump_type_quals): New function.
1013 * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
1015 (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
1016 * Makefile.in: Move tree-dump.o to language-independent back-end.
1018 2001-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1020 * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
1021 * alpha.h (DBX_REGISTER_NUMBER): Likewise.
1022 * arc.h (DBX_REGISTER_NUMBER): Likewise.
1023 * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
1024 * avr.h (DBX_REGISTER_NUMBER): Likewise.
1025 * c4x.h (DBX_REGISTER_NUMBER): Likewise.
1026 * clipper.h (DBX_REGISTER_NUMBER): Likewise.
1027 * convex.h (DBX_REGISTER_NUMBER): Likewise.
1028 * cris.h (DBX_REGISTER_NUMBER): Likewise.
1029 * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
1030 * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
1031 * fr30.h (DBX_REGISTER_NUMBER): Likewise.
1032 * h8300.h (DBX_REGISTER_NUMBER): Likewise.
1033 * i370.h (DBX_REGISTER_NUMBER): Likewise.
1034 * i860.h (DBX_REGISTER_NUMBER): Likewise.
1035 * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
1036 * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
1037 * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
1038 * m32r.h (DBX_REGISTER_NUMBER): Likewise.
1039 * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
1040 * m88k.h (DBX_REGISTER_NUMBER): Likewise.
1041 * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
1042 * mcore.h (DBX_REGISTER_NUMBER): Likewise.
1043 * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
1044 * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
1045 * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
1046 * romp.h (DBX_REGISTER_NUMBER): Likewise.
1047 * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
1048 * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
1049 * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
1050 * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
1051 * v850.h (DBX_REGISTER_NUMBER): Likewise.
1052 * vax.h (DBX_REGISTER_NUMBER): Likewise.
1053 * we32k.h (DBX_REGISTER_NUMBER): Likewise.
1055 * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
1056 * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
1058 2001-11-21 H.J. Lu <hjl@gnu.org>
1060 * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
1062 2001-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1064 * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
1065 emit_cmp_and_jump_insns.
1067 * stormy16.c (xstormy16_expand_builtin_va_arg,
1068 xstormy16_expand_casesi): Likewise.
1070 Wed Nov 21 17:37:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1072 * function.c (keep_stack_depressed): Major rework.
1073 (handle_epilogue_set, emit_equiv_load): New functions.
1074 (thread_prologue_and_epilogue_insns): keep_stack_depressed now
1076 * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
1077 * rtl.h (SET_IS_RETURN_P): New macro.
1079 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
1080 and also support TREE_ADDRESSABLE.
1081 * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
1083 2001-11-21 David Edelsohn <edelsohn@gnu.org>
1085 * rs6000.md (cmptf_internal1): Replace %$ with $.
1087 Wed Nov 21 16:44:01 2001 Douglas B. Rupp <rupp@gnat.com>
1089 * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
1090 (read_include_file): Use STAT_SIZE_TOO_BIG.
1092 * cppinit.c (INO_T_COPY): Define.
1093 (INO_T_EQ): Uppercase parameters.
1094 (append_include_chain): Use INO_T_COPY.
1096 2001-11-21 Richard Sandiford <rsandifo@redhat.com>
1098 * cfg.c: Fix typos and formatting in the introductory comment.
1100 Wed Nov 21 12:38:37 CET 2001 Jan Hubicka
1102 * profile.c (compute_branch_probabilites): Compute probabilities
1103 for entry/exit edges; estimate probabilities for zero counts.
1105 2001-11-21 Jakub Jelinek <jakub@redhat.com>
1107 * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
1108 to emit_library_call.
1109 * function.c (expand_main_function, expand_function_start,
1110 expand_function_end): Likewise.
1111 * profile.c (output_func_start_profiler): Likewise.
1112 * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
1113 second argument to emit_library_call.
1114 * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
1115 as second argument to emit_library_call.
1116 * calls.c (emit_library_call): Update fn_type description.
1118 2001-11-21 Jakub Jelinek <jakub@redhat.com>
1120 * c-decl.c (c_expand_deferred_function): Only call c_expand_body
1121 if fndecl is still DECL_INLINE and has DECL_RESULT.
1123 2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1125 * clipper.c (clipper_movstr): Avoid uninitialized warning.
1126 * i960.c (is_mask, legitimize_address): Likewise.
1127 * m88k.c (m88k_expand_prologue): Likewise.
1128 * m88k.md: Likewise.
1129 * mcore.c (emit_new_cond_insn): Likewise.
1130 * stormy16.c (xstormy16_emit_cbranch): Likewise.
1132 2001-11-20 Zack Weinberg <zack@codesourcery.com>
1134 * config.gcc: Delete powerpcle-*-solaris2* stanza.
1135 * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
1136 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
1137 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1138 config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
1139 config/rs6000/t-ppcos: Expunge all references to Solaris.
1141 * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
1143 * config/rs6000/rs6000.md: Replace '%$' with '$' in all
1145 * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
1146 and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
1148 2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1150 * sh.md: Avoid uninitialized warnings.
1151 * vax.c (vax_rtx_cost): Likewise.
1153 2001-11-15 Aldy Hernandez <aldyh@redhat.com>
1155 * rs6000.c (direct_return): Check if we are saving altivec
1157 (first_altivec_reg_to_save): New.
1158 Updated stack frame layout comments.
1159 (rs6000_stack_info): Calculate altivec register save size.
1160 Save link register if we saved some altivec registers.
1161 (rs6000_stack_info): Align save size to 16 if altivec abi or
1163 (rs6000_stack_info): Calculate altivec register offsets.
1164 (rs6000_stack_info): Add altivec info to save_size.
1165 (debug_stack_info): Add altivec debug info.
1166 (rs6000_emit_prologue): Save altivec registers and vrsave.
1167 (compute_vrsave_mask): New.
1168 (altivec_expand_builtin): Remove unused variables.
1169 (rs6000_parse_abi_options): Add static qualifier.
1170 (rs6000_expand_builtin): Remove unused parameters.
1171 (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
1172 (altivec_init_builtins): Same.
1173 (is_altivec_return_reg): New.
1174 (vrsave_operation): New.
1175 (ALTIVEC_REG_BIT): New.
1176 (generate_set_vrsave): New.
1178 * rs6000.md (get_vrsave): New.
1180 (*set_vrsave_internal): New.
1182 * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
1183 altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
1184 altivec_padding_size, vrsave_mask.
1185 (TOTAL_ALTIVEC_REGS): New.
1186 (EPILOGUE_USES): Add VRSAVE_REGNO.
1188 2001-11-20 Jeff Law <law@redhat.com>
1190 * unroll.c (copy_loop_body): Update LABEL_NUSES for the
1191 exit label as necessary.
1193 2001-11-20 Brad Kaiser <bkaiser@acelink.net>
1195 * reload1.c (elimination_effects): Use function_invariant_p
1196 instead of CONSTANT_P when considering register equivalences.
1198 2001-11-20 David O'Brien <obrien@FreeBSD.org>
1200 * config.gcc: Add FreeBSD/PowerPC target.
1201 (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
1202 powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
1203 powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
1204 powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
1205 powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
1206 powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
1207 freebsd-spec.h to tm_file.
1208 (rs6000-*-lynxos*): Add lynx.h to tm_file.
1209 * config/freebsd.h: Tidy up.
1210 (USING_CONFIG_FREEBSD): Define.
1211 (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
1212 FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
1213 FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
1214 (TARGET_HAS_F_SETLKW): Define.
1215 (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
1216 * config/freebsd-spec.h: New file.
1217 * config/rs6000/freebsd.h: New file.
1218 * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
1219 * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
1220 USING_SVR4_H to know when to turn on ELF support.
1221 * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
1222 define only if not already defined.
1223 Add FreeBSD support.
1224 * config/rs6000/aix.h (TARGET_VERSION): Define.
1225 * config/rs6000/beos.h: Likewise.
1226 * config/rs6000/darwin.h: Likewise.
1227 * config/rs6000/mach.h: Likewise.
1228 * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
1229 Don't include lynx.h directly.
1231 2001-11-20 Graham Stott <grahams@redhat.com>
1233 * unwind-dw2-fde.c (__deregister_frame_info_bases):
1234 Fix lossage in last change return OB.
1236 Tue Nov 20 11:56:12 2001 Douglas B. Rupp <rupp@gnat.com>
1238 * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
1239 Remove unneeded exit related macros.
1241 2001-11-20 David Edelsohn <edelsohn@gnu.org>
1243 * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
1245 * rs6000.c (rs6000_emit_move): Add TFmode case.
1246 * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
1247 LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
1248 LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
1249 * rs6000.h: ... to here.
1250 * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
1251 trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
1252 fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
1254 Tue Nov 20 06:41:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1256 * emit-rtl.c (get_mem_attrs): Fix typo.
1258 2001-11-20 Jakub Jelinek <jakub@redhat.com>
1260 * c-lang.c (finish_file): Backout 2001-11-16
1261 changes, instead set DECL_DEFER_OUTPUT for static inline functions
1262 before calling c_expand_deferred_function.
1264 2001-11-20 Jakub Jelinek <jakub@redhat.com>
1266 * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
1267 Don't register empty .eh_frame sections.
1268 (__deregister_frame_info_bases, __deregister_frame): Don't
1269 unregister them either.
1271 2001-11-19 Geoffrey Keating <geoffk@redhat.com>
1273 * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
1274 (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
1275 * configure: Regenerate.
1276 * config.in: Add dummy definitions of new flags.
1277 * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
1278 * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
1279 * gcc.c (ASM_DEBUG_SPEC): New macro.
1280 (asm_debug): New static variable.
1281 (default_compilers): Add asm_debug when assembling from
1283 (static_specs): Add asm_debug.
1285 2001-11-20 Loren J. Rittle <ljrittle@acm.org>
1287 * config.gcc (*-*-freebsd*): Remove configuration block.
1289 2001-11-19 Loren J. Rittle <ljrittle@acm.org>
1292 * configure.in: Setup ability to run ./stage[1234]/xgcc in
1293 fixinc *as if* it were a proper lang subdirectory.
1294 * configure: Rebuilt.
1296 2001-11-19 Loren J. Rittle <ljrittle@acm.org>
1298 * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
1300 2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1302 * 1750a.md: Don't use hex format for a const_int.
1304 2001-11-19 Geoffrey Keating <geoffk@redhat.com>
1306 * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
1308 2001-11-19 Zack Weinberg <zack@codesourcery.com>
1310 * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
1311 defined (prevents link errors when gettext isn't in the system
1314 2001-11-19 DJ Delorie <dj@redhat.com>
1316 * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
1317 (validate_const_int): New.
1318 (read_rtx): Validate constant integers.
1319 * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
1321 2001-11-19 Jakub Jelinek <jakub@redhat.com>
1323 * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
1325 Mon Nov 19 16:57:44 2001 Douglas B. Rupp <rupp@gnat.com>
1327 * toplev.c (DUMPFILE_FORMAT): Define default.
1328 (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
1329 (close_dump_file, compile_file): Likewise.
1330 * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
1331 * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
1333 2001-11-19 Jeff Law <law@redhat.com>
1335 * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
1338 2000-11-19 Neil Booth <neil@daikokuya.demon.co.uk>
1340 * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
1341 Don't fall off the base token run.
1343 2001-11-19 Jason Wilkins <fenix@io.com>
1345 * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
1347 Mon Nov 19 15:13:43 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1349 * tree.def (VIEW_CONVERT_EXPR): New tree code.
1350 * tree.h (handled_component_p): New declaration.
1351 * alias.c (handled_component_p): Move function from here ...
1352 * expr.c (handled_component_p): ... to here and non longer static.
1353 (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
1354 (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
1355 (get_inner_reference): Handle VIEW_CONVERT_EXPR.
1356 (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
1357 (expand_expr, case VIEW_CONVERT_EXPR): New case.
1358 (expand_expr, cse ADDR_EXPR): No need to copy if already
1360 * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
1361 * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
1362 (output_constant): Handle VIEW_CONVERT_EXPR.
1363 * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
1364 Add new case for VIEW_CONVERT_EXPR.
1366 2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1368 * a29k/unix.h (ASM_FILE_START): Const-ify.
1369 * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
1370 * i386/isc.h (ASM_FILE_START): Const-ify.
1371 * i386/sun386.h (ASM_FILE_START): Likewise.
1372 * m32r.md: Likewise.
1373 * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
1374 * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
1375 * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
1376 * mn10200.md: Initialize variable.
1378 Mon Nov 19 18:06:21 CET 2001 Jan Hubicka <jh@suse.cz>
1380 * gcse.c (try_replace_reg): Copy RTX before creating note.
1382 * df.h (df_ref_flags): New uenum.
1383 (DF_REF_FLAGS): New macro.
1384 (struct ref): Add field "flags".
1385 * df.c (HANDLE_SUBREG): Remove.
1386 (df_ref_create): Likewise; set flags field of ref.
1387 (df_def_record_1): Strip down read_write subreg; remove
1388 commented out code; set READ_WRITE flag.
1389 (read_modify_subreg_p): New static function.
1390 (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
1391 new argument "flags".
1392 (df_insn_refs_record): Update call of df_uses_record.
1393 (df_insn_modify): Avoid #if 0 around comment.
1394 (df_dump): Dump the read/write flag.
1396 * predict.c (propagate_freq): Make cyclic_probability and frequency
1399 * i386.c (ix86_cc_mode): Accept USE.
1401 * cfgrtl.c (purge_dead_edges): Cleanup EDGE_ABNORMAL flag if computed
1402 jump is turned into simplejump.
1404 2001-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
1406 * doc/fragments.texi, doc/trouble.texi: Remove links to old
1407 installation chapter.
1408 * doc/gcc.texi: Don't claim that this manual documents
1409 installation. Mark Installation menu entry as being out of date.
1411 Mon Nov 19 07:21:35 2001 Douglas B. Rupp <rupp@gnat.com>
1413 * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
1414 (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
1415 * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
1417 2001-11-19 Jason Merrill <jason@redhat.com>
1419 * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
1420 cur_token, not after.
1422 * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
1423 Lose ASM_OUTPUT_CONSTRUCTOR.
1424 * system.h: Poison it and INT_ASM_OP.
1425 * c-lang.c (finish_file): Don't check for it.
1426 * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
1428 2001-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1430 * mmix.c (mmix_cc1_ignored_option): Const-ify.
1431 (mmix_init_machine_status): Make static to match declaration.
1432 (mmix_unique_section): Const-ify.
1433 (mmix_output_quoted_string): Avoid automatic aggregate
1435 (mmix_output_register_setting): Likewise.
1436 (mmix_output_shiftvalue_op_from_str): Likewise.
1438 * mmix.h (mmix_cc1_ignored_option): Const-ify.
1439 (ASM_OUTPUT_BYTE): Fix format specifier warning.
1440 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1442 2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
1445 * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
1446 name __objc_thread_exit_status so that it matches the
1447 variable defined in objc/thr.h.
1449 2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
1452 * mklibgcc.in: Add missing semi-colons.
1453 * Makefile.in: Same.
1455 Sun Nov 18 16:47:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1457 * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
1458 after re-laying out decl in incomplete case.
1459 (expand_expr, case ADDR_EXPR): Fix typo in copy case.
1461 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
1463 * doc/install-old.texi: Move some sections out to ...
1464 * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
1465 ... here. New files. Make into chapters rather than sections.
1466 * doc/gcc.texi: Include the new files and add menu entries for
1468 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1470 Sun Nov 18 14:13:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1472 * tree.h (TYPE_ALIGN_OK): New flag.
1473 * emit-rtl.c (set_mem_attributes): Handle it.
1474 * expr.c (emit_single_push_insn): Only set to alias set 0 if
1475 doing sibcall optimization.
1476 (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
1477 when make temporary.
1478 (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
1479 (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
1481 * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
1483 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
1485 * c-decl.c (c_decode_option): Give deprecation warning for
1487 * doc/invoke.texi (-traditional): Note that this option is
1490 Sun Nov 18 07:40:07 2001 Douglas B. Rupp <rupp@gnat.com>
1492 * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
1493 arg to HOST_WIDE_INT, not long.
1495 * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
1496 (HAS_INIT_SECTION): Define.
1497 (REAL_ARITHMETIC): Don't undefine.
1499 2001-11-18 Egor Duda <deo@logos-m.ru>
1501 * config/i386/cygwin.h: Strip leading '*' from name, if any.
1503 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
1505 * Makefile.in (c-parse.o, c-common.o): Update dependencies.
1506 * c-common.c: Include diagnostic.h.
1507 (c_common_finish): New.
1508 * c-common.h (c_common_finish): New.
1509 * c-lang.c (LANG_HOOKS_FINISH): Override.
1510 * c-parse.in: Don't include diagnostic.h.
1511 (finish_parse): Remove.
1512 * langhooks.h: Update comments.
1513 * toplev.c (lang_dependent_init): New prototype.
1515 (compile_file): Split cleanup code out to finalize.
1516 (lang_dependent_init): Stop if lang_hooks.init fails.
1517 (toplev_main): Update.
1518 * tree.h (finish_parse): Remove.
1520 * objc-act.c (LANG_HOOKS_FINISH): Override.
1522 Sat Nov 17 23:30:44 2001 Douglas B. Rupp <rupp@gnat.com>
1524 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
1525 * config/alpha/vms_tramp.asm: New file.
1526 * config/alpha/vms-tramp.asm: Removed.
1528 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
1530 * c-common.c (struct disabled_builtin, disabled_builtins,
1531 disable_builtin_function, builtin_function_disabled_p): New.
1532 (builtin_function_2): Check for disabled built-in functions.
1533 * c-common.h (disable_builtin_function): Declare.
1534 * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
1535 * doc/invoke.texi: Document -fno-builtin-FUNCTION.
1536 * doc/extend.texi: Mention -fno-builtin-FUNCTION.
1538 2001-11-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
1541 * config.gcc: Remove reference to va-clipper.h.
1543 2001-11-17 Stan Shebs <shebs@apple.com>
1545 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
1546 AltiVec-related bitfields.
1548 Sat Nov 17 12:06:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1550 * except.c (enum eh_region_type): Add ERT_UNKNOWN.
1551 (mark_eh_region, case ERT_UKNONW): New case.
1553 2001-11-17 Christopher Faylor <cgf@redhat.com>
1554 Corinna Vinschen <vinschen@redhat.com>
1556 * config/i386/cygwin.h: Search target specific include directory for
1557 w32api stuff, if appropriate.
1559 Sat Nov 17 08:20:44 2001 Douglas Rupp <rupp@gnat.com>
1561 * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
1563 2001-11-16 Aldy Hernandez <aldyh@redhat.com>
1565 * config/rs6000/rs6000.md: Change all ldvx to lvx.
1567 2001-11-16 Alexandre Oliva <aoliva@redhat.com>
1569 * gensupport.c (process_rtx): Don't assume filename is the first
1570 argument of any rtl.
1572 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1574 * vax-protos.h (reg_was_0_p): New prototype.
1575 * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
1576 * vax.c (follows_p, reg_was_0_p): New functions.
1578 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1580 * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
1581 (casesi1): Likewise. Define new pattern which arises by simplification
1582 when operand 1 is a constant int. Correct pattern which arises by
1583 simplification when operand 1 is zero.
1585 2001-11-16 David O'Brien <obrien@FreeBSD.org>
1587 * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
1588 arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
1589 arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
1590 arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
1591 arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
1592 arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
1593 xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
1594 * config/arm/aof.h: Don't include arm.h.
1595 * config/arm/aout.h: Likewise.
1596 * config/arm/coff.h: Don't include semi.h and aout.h.
1597 * config/arm/elf.h: Don't include aout.h.
1598 * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
1599 (TARGET_VERSION): Undef before defining.
1600 (ARM_OS_NAME): Likewise
1601 (TARGET_DEFAULT): Likewise
1602 (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
1603 * config/arm/pe.h: Don't include arm/coff.h.
1604 * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
1605 SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
1606 * config/arm/riscix1-1.h: Likewise.
1607 * config/arm/rix-gas.h: Don't include riscix.h.
1608 (DBX_CONTIN_LENGTH): Undef before defining.
1609 * config/arm/semi.h: Don't include aout.h.
1610 * config/arm/semiaof.h: Don't include aof.h.
1611 * config/arm/strongarm-coff.h: Don't include coff.h.
1612 * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
1613 * config/arm/vxarm.h: Don't include arm/coff.h.
1614 * config/arm/xscale-coff.h: Don't include coff.h.
1616 Fri Nov 16 15:22:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1618 * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
1621 2001-11-16 Andreas Jaeger <aj@suse.de>
1623 * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
1625 (fixup_fallthru_exit_predecessor): ... this.
1626 Change callers and prototype.
1628 2001-11-16 Bernd Schmidt <bernds@redhat.com>
1630 * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
1631 hand; don't use gen_setcc_2.
1632 (ix86_expand_builtin): Fix pshufw.
1633 * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
1634 case UNORDERED to emit the right assembler instruction.
1635 (mmx_pshufw): Lose operand 2.
1636 (cvtsi2ss): Fix representation.
1638 (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
1640 2001-11-16 Joseph S. Myers <jsm28@cam.ac.uk>
1642 * doc/include/linux-and-gnu.texi: Remove.
1643 * doc/gnu.texi: New.
1644 * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
1645 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1647 2001-11-16 Kazu Hirata <kazu@hxi.com>
1649 * config/a29k/a29k.c: Fix comment formatting.
1650 * config/a29k/a29k.h: Likewise.
1651 * config/arc/arc.c: Likewise.
1652 * config/arc/arc.h: Likewise.
1653 * config/vax/vax.c: Likewise.
1654 * config/vax/vax.h: Likewise.
1655 * config/we32k/we32k.c: Likewise.
1656 * config/we32k/we32k.h: Likewise.
1658 2001-11-16 Jeff Law <law@redhat.com>
1660 * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
1661 creating a new jump insn.
1663 Fri Nov 13 09:06:25 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1665 * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
1666 copy misaligned data.
1667 * varasm.c (assemble_variable): Set alignment into MEM when changed.
1669 2001-11-16 Graham Stott <grahams@redhat.com>
1671 * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
1674 2001-11-16 Olivier Hainque <hainque@act-europe.fr>
1676 * except.c: Support for catching a list of types with a single handler
1677 (struct eh_region): Change type and filter to lists for catch regions.
1678 (mark_eh_region): Mark the filter list for GC also.
1679 (expand_start_catch): Always build a list if argument not NULL and
1680 register each type of the list through add_type_for_runtime.
1681 (duplicate_eh_region_1): Change type into type_list for catch regions.
1682 (assign_filter_values): Assign a filter to each type associated with a
1683 catch region. Assign filter for NULL types in a unique entry in the
1685 (build_post_landing_pads): Emit compare and jump for each filter of
1686 the list associated with a catch region.
1687 (reachable_next_level): When the type thrown is known, stop the search
1688 as soon as one type within a catch list matches. Also, a handler is
1689 potentially reachable only if at least one of the types it catches
1690 has not been previously caught.
1691 (collect_one_action_chain): Retrieve the filter for a NULL type list
1692 from the first filter list entry. For non NULL type lists, add an
1693 action record for every filter assigned.
1694 * except.h: Reflect changes in comment before expand_start_catch.
1696 Fri Nov 16 07:12:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1698 * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
1701 Fri Nov 16 06:37:05 2001 Andreas Tobler <a.tobler@schweiz.ch>
1703 * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
1705 2001-11-16 Jakub Jelinek <jakub@redhat.com>
1707 * c-lang.c (finish_file): Don't emit static inline functions if
1708 they weren't referenced.
1710 2001-11-15 Stan Shebs <shebs@apple.com>
1712 * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
1714 2001-11-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1716 * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
1718 * config/i386/i386.md: Likewise.
1720 Thu Nov 15 21:40:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1722 * timevar.c (rtl.h): Include so get fancy abort.
1724 2001-11-15 Dale Johannesen <dalej@apple.com>
1726 * config/darwin.h (SELECT_RTX_SECTION): Force address
1727 initializers into 'const' section
1728 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fix mode of
1729 if_then_else to match result, not operands
1731 Thu Nov 15 17:57:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1733 * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
1734 * emit-rtl.c (change_address): Fix typo in default alignment.
1735 (adjust_address_1): Use mode of NEW, not MODE, when setting size.
1736 * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
1737 * rtl.h (REGNO_PTR_FRAME_P): New macro.
1739 * expr.c (store_field): Pass tree instead of max size; callers changed.
1740 Change handling of alignment.
1741 Only copy to_rtx if is TARGET.
1742 (expand_expr_unaligned): Delete; callers now use expand_expr.
1743 (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
1744 (expand_assignment): Change handling of alignment.
1745 Only copy to_rtx if was original.
1746 (get_inner_reference): No longer return alginment; callers changed.
1747 (expand_expr, case COMPONENT_REF): Change handling of alignment.
1748 (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
1749 (compare_from_rtx): Delete ALIGN parm; all callers changed.
1750 (do_compare_rtx_and_jump): Likewise.
1751 * expr.h: Reflect above changes.
1753 * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
1754 to get_inner_reference.
1755 * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
1756 * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
1757 * optabs.c: Likewise.
1758 (prepare_cmp_insn): Now static; remove ALIGN parm. Callers changed.
1759 (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
1760 * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
1761 compare_rtx_and_jump, and emit_cmp_jump_insns.
1762 * fold-const.c: Remove PALIGN in calls to get_inner_reference.
1763 * function.c (assign_stack_temp_for_type): No longer static.
1764 * optabs.h (emit_cmp_insn): Remove ALIGN parm.
1765 (prepare_cmp_insn): Delete declaration.
1766 * rtl.h (assign_stack_temp_for_type): Add declaration.
1767 * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
1768 * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
1769 * config/i386/i386.c,config/mips/mips.c: Likewise.
1770 * config/i860/i860.c, config/ia64/ia64.c: Likewise.
1771 * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
1773 2001-11-15 Stan Shebs <shebs@apple.com>
1775 * config/rs6000/rs6000.h: Fix a comment typo.
1776 (RTX_COSTS): Sort processor versions better.
1778 2001-11-15 Kazu Hirata <kazu@hxi.com>
1780 * config/h8300/h8300.md: Fix insn length of bit insns.
1782 2001-11-15 Jason Merrill <jason@redhat.com>
1784 * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
1785 DIEs if there were errors in the source.
1787 * config/alpha/alpha-interix.h, config/alpha/elf.h,
1788 config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
1789 config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
1790 config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
1791 config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
1792 config/elfos.h, config/lynx.h, config/netware.h,
1793 config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
1794 config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
1795 uses to use ASM_LONG.
1797 2001-11-15 Alan Matsuoka <alanm@redhat.com>
1799 * gensupport.c process_include : Change call to alloca to
1802 2001-11-15 Aldy Hernandez <aldyh@redhat.com>
1804 * config/rs6000/rs6000.md: Use spaces instead of tabs in output
1807 Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1809 * final.c (alter_subreg): If simplify_subreg can't do anything,
1810 handle REG ourselves and abort for others.
1812 2001-11-15 Richard Hodson <hodsonr@dionecorp.com>
1814 * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
1817 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
1819 * fix-header.c (read_scan_file): Update.
1821 Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1823 * toplev.c (toplev_main): Don't start timing until after
1824 command-line options are parsed.
1826 2001-11-15 Andreas Schwab <schwab@suse.de>
1828 * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
1829 makefile frag, not host makefile frag.
1830 (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
1831 (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
1833 (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
1834 * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
1835 * config/m88k/t-dgux (STMP_FIXPROTO): Define.
1836 * config/i386/t-cygwin (STMP_FIXPROTO): Define.
1837 * config/i386/t-dgux (STMP_FIXPROTO): Define.
1838 * config/x-interix: Don't define STMP_FIXPROTO and
1840 * config/t-interix: New file, define STMP_FIXPROTO.
1841 * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
1842 * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
1843 * config/t-svr4 (FIXPROTO_DEFINES): Define.
1844 * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
1845 * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
1846 * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
1847 * config/m68k/t-hp3200: Renamed from x-hp3200.
1848 * config/i370/t-oe: Renamed from x-oe.
1849 * config/mips/t-iris: Renamed from x-iris.
1850 * config/pa/t-bsd: Renamed from x-pa.
1851 * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
1852 * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
1853 config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
1854 config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
1855 config/rs6000/x-cygwin: Remove files.
1857 * configure.in: Check for target objdump and use that in eh_frame
1859 * configure: Regenerated.
1861 2001-11-15 Jakub Jelinek <jakub@redhat.com>
1863 * jump.c (squeeze_notes): Return true if no real insns were found.
1864 * rtl.h (squeeze_notes): Adjust prototype.
1865 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
1866 squeeze_notes finds no real instructions, abort.
1867 (merge_blocks_move_successor_nojumps): Likewise.
1868 * loop.c (find_and_verify_loops): Likewise.
1869 * stmt.c (expand_end_case): Likewise.
1870 * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
1871 find any real instructions.
1873 * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
1875 * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
1876 conditional jump, request updating life into for the block
1877 containing it. Fix a typo which prevented life info update.
1878 Clear blocks bitmap before using it.
1880 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
1882 * c-common.c: Include c-lex.h.
1883 (c_common_lang_init): Change prototype. Call init_c_lex and
1884 init_pragma from here.
1885 * c-common.h (c_common_lang_init): Change prototype.
1886 * c-decl.c (init_decl_processing): Rename. Call c_parse_init.
1887 * c-lang.c (c_init): Change prototype. Update.
1888 (c_init_options): Update.
1889 * c-lex.c (cpp_filename): Remove.
1890 (init_c_lex): Update. Read the main file, and get the original
1892 (yyparse): Finish the command line options.
1893 * c-parse.in (c_parse_init): Call init_reswords here.
1894 (init_parse): Remove.
1895 * c-tree.h (c_init_decl_processing): New.
1896 * cpphash.c (_cpp_init_hashtable): After initializing the hash
1898 * cppinit.c (read_original_filename, cpp_finish_options): New.
1899 (cpp_create_reader): New prototype. Defer hash table initialization.
1900 (cpp_start_read): Rename cpp_read_main_file. Initialize the
1901 hash table. Get the original filename.
1902 * cpplib.h (cpp_create_reader): Update.
1903 (cpp_start_read): Remove.
1904 (cpp_read_main_file, cpp_finish_options): New.
1905 * cppmain.c (main, do_preprocessing): Update.
1906 * langhooks.h (struct langhooks): Update init prototype.
1907 * toplev.c (general_init, parse_options_and_default_flags,
1908 process_options, lang_indpendent_init, lang_dependent_init,
1909 init_asm_output): New; perform the bulk of initialization.
1910 (compile_file): Move most of initialization to above functions.
1911 (debug_hooks): Initialize statically.
1912 (set_Wunused): Relocate.
1913 (toplev_main): Move most of initialization to other init functions.
1914 Have a clear logic flow.
1915 * tree.h (init_parse, init_decl_processing): Remove.
1917 * objc-act.c (objc_init): Update prototype, combine with old
1919 (objc_init_options): Update.
1922 2001-11-15 Andreas Jaeger <aj@suse.de>
1924 * cfgrtl.c (purge_all_dead_edges): Use int as argument for
1926 * basic-block.h: Adjust prototype.
1928 2001-11-15 Kazu Hirata <kazu@hxi.com>
1930 * config/rs6000/aix31.h: Fix comment formatting.
1931 * config/rs6000/beos.h: Likewise.
1932 * config/rs6000/darwin.h: Likewise.
1933 * config/rs6000/eabi.asm: Likewise.
1934 * config/rs6000/linux.h: Likewise.
1935 * config/rs6000/linux64.h: Likewise.
1936 * config/rs6000/lynx.h: Likewise.
1937 * config/rs6000/netbsd.h: Likewise.
1938 * config/rs6000/rs6000.c: Likewise.
1939 * config/rs6000/rs6000.h: Likewise.
1940 * config/rs6000/rs6000.md: Likewise.
1941 * config/rs6000/sol2.h: Likewise.
1942 * config/rs6000/tramp.asm: Likewise.
1943 * config/rs6000/xcoff.h: Likewise.
1944 * config/rs6000/xm-beos.h: Likewise.
1946 2001-11-14 Alan Matsuoka <alanm@redhat.com>
1948 * rtl.def (INCLUDE) : Define.
1949 * gensupport.c (init_include_reader, process_include,
1950 save_string) : New functions to implement an include facility
1952 * gensupport.h : Add prototype for init_md_reader_args.
1953 * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
1954 genextract.c genflags.c genopinit.c genoutput.c
1955 genpeep.c genrecog.c: Change call to init_md_reader to
1956 init_md_reader_args.
1957 * md.texi: Document (include "path") and -I directives for RTL
1960 2001-11-14 DJ Delorie <dj@redhat.com>
1962 * integrate.c (get_hard_reg_initial_reg): New.
1963 * integrate.h (get_hard_reg_initial_reg): Prototype.
1964 * local-alloc.c (block_alloc): Don't tie pseudos that
1965 represent call-saved hard regs' initial values.
1967 2001-11-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1969 * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
1972 2001-11-14 Roger Sayle <roger@eyesopen.com>
1974 * fold-const.c (fold): Optimize strlen comparisons against zero.
1976 2001-11-14 David O'Brien <obrien@FreeBSD.org>
1978 * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
1979 sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
1980 sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
1981 sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
1982 sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
1983 sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
1984 sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
1985 Include various CPU headers via tm_file. a.out based platforms now
1986 properly include sparc/aout.h. sol2.h usage now implies including
1987 elfos.h, svr4.h, and sparc/sysv4.h.
1988 * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
1990 * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
1991 SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1992 DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
1993 Remove. They are a.out specific and belong in sparc/aout.h.
1994 * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
1995 ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
1996 DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define. Moved here from
1998 * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
1999 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
2000 Moved here from sparc/sparc.h.
2001 * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
2003 * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
2004 * config/sparc/lynx.h: Don't include lynx.h.
2005 (SELECT_SECTION): Do not undef.
2006 * config/sparc/openbsd.h: Don't include sparc/sparc.h.
2007 * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
2009 * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
2010 * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define. Get from
2012 * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
2013 Don't undef, there is no need.
2014 * config/sparc/splet.h (CPP_PREDEFINES): Define.
2015 * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
2016 * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
2017 Don't include sparc/sparc.h.
2018 * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
2019 SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2020 DATA_SECTION_ASM_OP): Don't undef, there is no need now. Don't include
2022 (TARGET_VERSION): Define.
2023 * config/sparc/vxsim.h (TARGET_VERSION): Define.
2025 Wed Nov 14 19:46:08 CET 2001 Jan Hubicka <jh@suse.cz>
2027 * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
2028 (cfg_layout_finalize): Use it.
2029 * bb-reorder.c (HAVE_epilogue): Remove.
2030 (make_reorder_chain): Do not care special placement of
2033 * predict.c (expected_value_to_br_prob): Delete the note
2036 * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
2037 measure integration time separately.
2039 Wed Nov 14 12:30:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2041 * function.c (struct temp_slot): ALIGN now unsigned.
2043 2001-11-14 Kazu Hirata <kazu@hxi.com>
2045 * config/dsp16xx/dsp16xx.c: Fix comment formatting.
2046 * config/dsp16xx/dsp16xx.h: Likewise.
2047 * config/dsp16xx/dsp16xx.md: Likewise.
2049 2001-11-14 Kazu Hirata <kazu@hxi.com>
2051 * config/h8300/h8300.c (get_shift_alg): Reorganize the code
2052 that deals with 7-bit shifts in HImode.
2054 Wed Nov 14 14:17:05 CET 2001 Jan Hubicka <jh@suse.cz>
2056 * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
2057 * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
2058 (final_scan_insn): Update call of alter_subreg.
2059 (cleanup_subreg_operands): Likewise.
2060 (alter_subreg): Rewrite using simplify_subreg.
2061 (output_address, output_operand): Update call of alter_subreg.
2062 * output.h (alter_subreg): Update prototype.
2063 * sdbout.c (sdbout_symbol): Update call of alter_subreg.
2064 * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
2065 * Makefile.in (final.o): Add dependency on expr.h
2067 Wed Nov 14 06:37:54 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2069 * c-lang.c (finish_file): Make I unsigned to eliminate warning.
2071 2001-11-13 Jeff Sturm <jsturm@one-point.com>
2073 * doc/install.texi (sparc-*-linux*): Mention requirements for
2076 2001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
2078 * Makefile.in (POD2MAN): Don't include --section=1.
2079 (manext): Rename to man1ext. All users changed.
2082 (generated-manpages): Also depend on $(docdir)/gfdl.7,
2083 $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
2084 ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
2085 --section=1 in calls to $(POD2MAN).
2086 ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
2087 (maintainer-clean, install, uninstall): Handle the new man pages.
2088 ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
2089 (installdirs): Create man7dir.
2090 * doc/cpp.texi: Include GFDL in this manual. In the man page,
2091 refer to gfdl(7) for the GFDL. Apply Front Cover and Back Cover
2092 texts to man page. Include gpl(7), gfdl(7) and fsf-funding(7) in
2093 the SEE ALSO man page section.
2094 * doc/gcov.texi: Apply GFDL to man page. Include gpl(7), gfdl(7)
2095 and fsf-funding(7) in the SEE ALSO man page section.
2096 * doc/invoke.texi: Apply GFDL to man page. Include gpl(7),
2097 gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
2098 * doc/include/fdl.texi, doc/include/funding.texi,
2099 doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
2100 * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
2102 2001-11-13 Richard Henderson <rth@redhat.com>
2104 * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
2105 as appropriate for the artificial decl.
2107 2001-11-13 Richard Henderson <rth@redhat.com>
2109 * loop.c (combine_movables): Turn off combination until
2110 move_movables validation bugs are fixed.
2112 2001-11-13 DJ Delorie <dj@redhat.com>
2114 * config.gcc (powerpc|rs6000): Set default cpp options based
2115 on --with-cpu settings.
2116 * config/rs6000/softfloat.h: New.
2118 2001-11-13 Kazu Hirata <kazu@hxi.com>
2120 * config/h8300/h8300.c (shift_alg_si): Use special code for
2121 25-bit shifts on H8/S.
2122 (get_shift_alg): Generate special code for 25-bit shifts on
2125 2001-11-13 Jakub Jelinek <jakub@redhat.com>
2127 * emit-rtl.c (adjust_address_1): Add ADJUST argument.
2128 (adjust_automodify_address_1): New.
2129 * expr.h (adjust_address, adjust_address_nv): Adjust.
2130 (adjust_automodify_address, adjust_automodify_address_nv): Define.
2131 (adjust_address_1): Update prototype.
2132 (adjust_automodify_address_1): Add prototype.
2133 * expr.c (move_by_pieces_1): Use adjust_automodify_address.
2134 (store_by_pieces_2): Likewise.
2136 Tue Nov 13 05:45:40 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2138 * Makefile.in (explow.o): Now depends on ggc.h.
2139 * explow.c (ggc.h): Include.
2140 (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
2142 * Makefile.in (expr.o): Depends on insn-attr.h.
2143 * expr.c (insn-attr.h): New include.
2144 (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
2146 (highest_pow2_factor, case INTEGER_CST): Handle negative values.
2147 (expand_expr): Remove unneeded mark_temp_addr_taken calls and
2148 clean up related usage in ADDR_EXPR.
2149 (expand_expr_unaligned): Likewise.
2151 * emit-rtl.c (change_address): Fix typo in alias setting.
2153 2001-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2155 * Makefile.in (cfgcleanup.o): Depend on insn-config.h
2157 2001-11-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2160 * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
2161 GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
2163 2001-11-12 David O'Brien <obrien@FreeBSD.org>
2165 * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
2166 sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
2167 sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
2168 sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
2169 sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
2170 sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
2171 sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
2172 sparc64-*-linux*): Include various CPU headers via tm_file.
2173 * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
2174 (SELECT_SECTION): Likewise.
2175 (SELECT_RTX_SECTION): Likewise.
2176 * config/sparc/sparc_bi.h: New file.
2177 * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
2178 * config/sparc/linux-aout.h: Likewise.
2179 * config/sparc/linux.h: Don't include sparc/sysv4.h.
2180 * config/sparc/linux64.h: Likewise.
2181 (SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
2182 * config/sparc/lite.h: Don't include sparc/sparc.h and gofast.h.
2183 * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
2185 (ASM_OUTPUT_IDENT): Do not #undef.
2186 (SELECT_SECTION): Likewise.
2187 (SELECT_RTX_SECTION): Likewise.
2188 * config/sparc/liteelf.h: Don't include gofast.h.
2189 * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
2190 * config/sparc/lynx.h: Don't include sparc/sparc.h.
2191 * config/sparc/pbd.h: Likewise.
2192 * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
2193 * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
2194 * config/sparc/rtemself.h: Don't include rtems.h.
2195 * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
2196 * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
2198 * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
2199 * config/sparc/sol2.h: Include sparc/sparc.h directly.
2200 * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
2201 * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
2202 * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
2203 * config/sparc/sp86x-elf.h: Don't include gofast.h.
2204 * config/sparc/splet.h: Don't include sparc/aout.h.
2205 * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
2206 * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
2207 * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
2208 * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
2209 * config/sparc/vxsparc64.h: Don't include gofast.h.
2210 (SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
2212 2001-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
2214 * doc/standards.texi: Mention C99 TC1.
2216 2001-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2218 * mips-protos.h (mips_output_conditional_branch): Const-ify.
2219 * mips.c (mips_output_conditional_branch): Likewise.
2221 2001-11-12 Kazu Hirata <kazu@hxi.com>
2223 * config/h8300/h8300.c (shift_alg_si): Use special code for
2224 15-bit logical shifts and 31-bit logical shifts.
2225 (get_shift_alg): Generate special code for 15-bit and 31-bit
2228 2001-11-12 Kazu Hirata <kazu@hxi.com>
2230 * config/h8300/h8300.c (shift_alg_qi): Use rotations when
2231 doing 6-bit logical shifts on H8/S.
2232 (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
2233 (get_shift_alg): Generate special code for 21-bit shifts on
2236 2001-11-12 Kazu Hirata <kazu@hxi.com>
2238 * config/h8300/h8300.c (get_shift_alg): Remove a redundant
2241 Mon Nov 12 11:58:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2243 * alias.c (nonoverlapping_memrefs_p): Only update size from memref
2244 if both size and offset known.
2246 2001-11-12 David O'Brien <obrien@FreeBSD.org>
2248 * config/ia64/freebsd.h: Fix misspelling.
2250 2001-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
2252 * doc/gcc.texi: Move several chapters out to ...
2253 * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
2254 doc/include/linux-and-gnu.texi, doc/interface.texi,
2255 doc/makefile.texi, doc/passes.texi, doc/portability.texi:
2256 ... here. New files.
2257 * doc/gcc.texi, doc/contrib.texi: Move section headings into
2259 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2261 2001-11-12 Kazu Hirata <kazu@hxi.com>
2263 * config/alpha/alpha-interix.h: Fix comment formatting.
2264 * config/alpha/alpha.c: Likewise.
2265 * config/alpha/alpha.h: Likewise.
2266 * config/alpha/alpha32.h: Likewise.
2267 * config/alpha/freebsd.h: Likewise.
2268 * config/alpha/unicosmk.h: Likewise.
2269 * config/alpha/vms.h: Likewise.
2271 2001-11-12 Kazu Hirata <kazu@hxi.com>
2273 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
2275 2001-11-12 Jakub Jelinek <jakub@redhat.com>
2277 * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
2280 Mon Nov 12 05:18:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2282 * emit-rtl.c (set_mem_attributes): If making object, can set alignment
2284 (replace_equiv_address): Call update_temp_slot_address.
2286 * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
2288 * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
2290 2001-11-12 Kazu Hirata <kazu@hxi.com>
2292 * config/h8300/h8300.c (shift_alg_qi): New.
2293 (shift_alg_hi): Likewise.
2294 (shift_alg_si): Likewise.
2295 (get_shift_alg): Change the type of count to unsigned int.
2298 2001-11-11 Alexandre Oliva <aoliva@redhat.com>
2300 * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
2301 * c-decl.c (c_expand_body): Take argument can_defer_p. Use it
2302 to decide whether to defer a function.
2303 (finish_function): Adjust.
2304 (c_expand_deferred_function): New function.
2305 * c-lang.c (deferred_fns): New variable.
2306 (c_init): Initialize it, and mark it as a root.
2307 (defer_fn): New function.
2308 (finish_file): Expand all deferred functions.
2309 * c-tree.h (defer_fn): Declare.
2310 (c_expand_deferred_function): Likewise.
2311 * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
2312 * objc-act.c (deferred_fns): New variable.
2313 (objc_init): Initialize it, and mark it as a root.
2314 (defer_fn): New function.
2315 (finish_file): Expand all deferred functions.
2317 2001-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2319 * alpha.c (unicosmk_special_name): Prototype.
2320 (unicosmk_ssib_name): Delete unused variable.
2321 * alpha/unicosmk.h (common_section, ssib_section): Prototype.
2322 * alpha/vms.h (PREFIX): Undef before defining.
2323 * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
2324 * i370/i370.c (mvs_hash_alias): Prototype. Wrap with macro
2325 controlling usage. Const-ify.
2326 (alias_number): Delete unused variable.
2327 * m32r/m32r.c (m32r_sched_init): Add missing argument.
2328 (m32r_expand_block_move): Fix uninitialized warnings.
2329 * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
2330 always true' warnings.
2331 * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
2332 * sh/sh.c: Include "integrate.h".
2333 (output_far_jump): Fix uninitialized warning.
2334 * final.c (shorten_branches): Avoid automatic aggregate
2336 * integrate.c (subst_constants): Likewise.
2338 2001-11-11 Kazu Hirata <kazu@hxi.com>
2340 * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
2341 (get_shift_alg): Remove redundant code.
2343 2001-11-11 Kazu Hirata <kazu@hxi.com>
2345 * config/pa/milli64.S: Fix comment formatting.
2346 * config/pa/pa-64.h: Likewise.
2347 * config/pa/pa-linux.h: Likewise.
2348 * config/pa/pa-protos.h: Likewise.
2349 * config/pa/pa.c: Likewise.
2350 * config/pa/pa.h: Likewise.
2351 * config/pa/pa32-linux.h: Likewise.
2352 * config/pa/pa32-regs.h: Likewise.
2353 * config/pa/pa64-hpux.h: Likewise.
2354 * config/pa/pa64-regs.h: Likewise.
2355 * config/pa/som.h: Likewise.
2357 2001-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
2359 * doc/gcc.texi: Move several chapters out to ...
2360 * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
2361 doc/service.texi, doc/standards.texi, doc/trouble.texi,
2362 doc/vms.texi: ... here. New files.
2363 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2365 2001-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
2367 * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
2368 cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
2369 collect2.c, combine.c, config.in, configure, configure.in,
2370 conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
2371 genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
2372 reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
2375 Sun Nov 11 05:56:01 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2377 * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
2378 Adjust operand number in CONST_DOUBLE.
2380 * expmed.c (extract_bit_field): No longer pass in alignment.
2381 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
2382 (store_bit_field, store_fixed_bit_field, store_split_bit_field):
2384 * expr.c (store_constructor, store_constructor_field): Likewise.
2385 (store_field, emit_group_load, emit_group_store): Likewise.
2386 * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
2387 (store_bit_field, extract_bit_field): Likewise.
2388 * calls.c, expr.c, function.c: Change calls to above functions.
2389 * ifcvt.c, stmt.c: Likewise.
2391 * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
2392 constant and one is on frame.
2393 If know memref offset, adjust size from decl.
2395 2001-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2397 * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
2398 format specifier warning.
2399 * convex.h (ASM_OUTPUT_BYTE): Likewise.
2400 * elfos.h (ALIGN_ASM_OP): Undef before defining.
2401 * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
2403 * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2404 * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2405 * i386-interix.h (gen_stdcall_suffix): Prototype.
2406 * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2407 * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2408 ASM_OUTPUT_LONG_DOUBLE): Likewise.
2409 * i386/interix.c (gen_stdcall_suffix): Const-ify.
2410 * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2411 ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
2413 * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2414 * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2415 ASM_OUTPUT_LONG_DOUBLE): Likewise.
2416 * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2417 * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2418 * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2419 * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2420 * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
2421 ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
2422 * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2423 * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
2425 * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
2427 * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
2428 * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2429 ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
2431 * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
2433 * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
2435 * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
2436 * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2437 * m68k/news.h (PRINT_OPERAND): Likewise.
2438 * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
2439 ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2440 * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2441 * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
2443 * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2444 ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
2445 ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
2446 * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2447 * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
2448 ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
2449 PRINT_OPERAND): Likewise.
2450 * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
2452 * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
2453 * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
2454 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
2455 * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2456 * mips.c (mips_output_external_libcall): Mark parameter with
2458 (mips_asm_file_start): Move variable into the scope where it's
2460 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
2461 * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2462 * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
2463 * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2464 * ns32k.c (print_operand): Likewise.
2465 * pa.c (print_operand, output_div_insn): Likewise.
2466 * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
2467 ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
2468 * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
2469 * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
2471 * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2472 * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2473 (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
2474 * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
2476 * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2478 * sdbout.c (sdbout_end_epilogue): Mark parameter with
2480 * varasm.c (assemble_global): Likewise.
2482 2001-11-11 H.J. Lu <hjl@gnu.org>
2484 * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
2486 Sun Nov 11 01:26:00 CET 2001 Jan Hubicka <jh@suse.cz>
2488 * final.c (*_MAX_SKIP): Use *_max_skip variables.
2489 * flags.h (align_loops_max_skip, align_jumps_max_skip,
2490 align_labels_max_skip): New global variables.
2491 * toplev.c (align_loops_max_skip, align_jumps_max_skip,
2492 align_labels_max_skip): New global variables.
2493 (toplev_main): Set new variables.
2494 * i386.c (override_options): Set max_skip values.
2496 2001-11-10 Geoffrey Keating <geoffk@redhat.com>
2498 * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
2499 * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
2500 * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
2501 don't print an @fptr for labels either.
2502 (xstormy16_output_addr_vec): Don't print @fptr here.
2503 * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
2505 Sat Nov 10 08:50:50 2001 Jeffrey A Law (law@cygnus.com)
2507 * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
2508 an ANSI/ISO definitino.
2509 (ssa_const_prop): Likewise.
2511 2001-11-10 Aldy Hernandez <aldyh@redhat.com>
2513 * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
2516 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2518 * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
2519 * cpplex.c (hex_digit_value): Use hex_p/hex_value.
2520 * cppmain.c (general_init): Call hex_init.
2521 * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
2523 * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
2525 * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
2526 of dgux.c:output_file_start().
2528 * i386/dgux.c: Delete file.
2530 2001-11-09 Richard Henderson <rth@redhat.com>
2532 * config/alpha/alpha.c (decl_in_text_section): New.
2533 (current_file_function_operand): Use it.
2534 (alpha_encode_section_info, alpha_end_function): Likewise.
2536 2001-11-07 David O'Brien <obrien@FreeBSD.org>
2538 * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
2539 * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
2540 they are OS specific. Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
2541 so OS specific files and use CPP_PREDEFINES for their needs.
2542 * config/i64/elf.h (TARGET_VERSION): Add. Also, move inclusion of
2543 target headers to tm_file.
2544 * config/ia64/aix.h (TARGET_VERSION): Likewise.
2545 * config/ia64/hpux.h (TARGET_VERSION): Likewise.
2546 * config/ia64/linux.h (TARGET_VERSION): Likewise.
2547 (FUNCTION_PROFILER): Remove.
2548 * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
2549 version in config/ia64/linux.h.
2550 * config/ia64/freebsd.h: New file.
2551 * config/freebsd.h: Tidy up.
2552 (_USING_CONFIG_FREEBSD): Define.
2553 (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
2554 (FBSD_CPP_SPEC): Define generic FreeBSD spec.
2555 (FBSD_STARTFILE_SPEC): Likewise.
2556 (FBSD_ENDFILE_SPEC): Likewise.
2557 (FBSD_LIB_SPEC): Likewise.
2558 (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
2559 (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
2560 set an ELF-improper one.
2562 2001-11-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2564 * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
2565 constant can be loaded in a single instruction to a register. When
2566 loading immediate constants, use PLUS instead of HIGH/LO_SUM. Use
2567 depdi for insertion of most significant 32-bits on 64-bit hosts.
2568 * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
2569 with ldil/ldo/depdi instruction sequence on 64-bit hosts.
2570 * pa.md: New addmove pattern for adding constant_int to HImode
2571 register and moving result to HImode register. Remove HImode HIGH
2572 and LO_SUM patterns.
2574 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2576 * Makefile.in: Update.
2577 * c-decl.c (print_lang_decl, print_lang_type): Remove.
2578 (print_lang_identifier): Rename c_print_identifier.
2579 * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2580 (print_lang_statistics, lang_print_xnode): Remove.
2581 * c-parse.in (set_yydebug): Rename c_set_yydebug.
2582 * c-tree.h (c_set_yydebug, c_print_identifier): New.
2583 * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
2584 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2585 LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2586 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2587 (LANG_HOOKS_INITIALIZER): Update.
2588 * langhooks.h (struct lang_hooks): New members.
2589 (lang_print_tree_hook): New.
2590 * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
2591 * print-tree.c: Include langhooks.h.
2592 (print_node): Update.
2593 * toplev.c (decode_d_option): Update.
2594 * tree.c: Include langhooks.h.
2595 (dump_tree_statistics): Update.
2596 * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
2597 print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
2599 * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
2600 LANG_HOOKS_SET_YYDEBUG): Override.
2601 (lang_print_xnode, print_lang_statistics): Remove.
2603 2001-11-09 Richard Henderson <rth@redhat.com>
2605 * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
2606 on the symbol string.
2608 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2610 * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
2611 ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
2612 * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
2614 * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
2616 * tlink.c (recompile_files): Copy strings passed to `putenv'.
2618 2001-11-09 Geoffrey Keating <geoffk@redhat.com>
2620 * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
2621 (TYPE_READONLY): Likewise.
2623 * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
2625 * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
2626 don't pass --gdwarf2 to the assembler if the compiler will also
2629 * config/stormy16/stormy16.c (xstormy16_expand_casesi):
2632 Fri Nov 9 17:51:09 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2634 * alias.c (nonoverlapping_memrefs_p): New function.
2635 (true_dependence, canon_true_depenence, write_dependence_p): Call it.
2637 * emit-rtl.c (set_mem_attributes): Get alignments for constants.
2639 2001-11-09 Aldy Hernandez <aldyh@redhat.com>
2641 * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
2642 (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
2643 generating altivec code.
2644 (FIXED_REGISTERS): VRSAVE is fixed.
2645 (CALL_USED_REGISTERS): VRSAVE is call used.
2647 2001-11-09 Jason Eckhardt <jle@rice.edu>
2649 * config/mips/mips.c (mips_output_conditional_branch): Do not hard
2650 code the branch target as ".+16/.+12", but rather use labels.
2652 Fri Nov 9 11:27:42 2001 Jeffrey A Law (law@cygnus.com)
2654 * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
2655 to work around limitations of certain versions of GAS.
2657 * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
2658 (muldi3): Update due to SUBREG_BYTE changes.
2659 (casesi): Similarly.
2661 2001-11-09 Zack Weinberg <zack@codesourcery.com>
2663 * doc/invoke.texi: Remove comment referring to -xf77-version.
2665 2001-11-09 Kazu Hirata <kazu@hxi.com>
2667 * config/convex/convex.c: Fix comment formatting.
2668 * config/convex/convex.h: Likewise.
2670 2001-11-08 Zack Weinberg <zack@codesourcery.com>
2672 * Makefile.in (.po.pox): Look both in srcdir and builddir
2674 (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
2675 to the source directory.
2677 2001-11-09 Ben Elliston <bje@redhat.com>
2678 Michael Meissner <meissner@redhat.com>
2679 Andrew MacLeod <amacleod@redhat.com>
2680 Richard Henderson <rth@redhat.com>
2681 Nick Clifton <nickc@redhat.com>
2682 Catherine Moore <clm@redhat.com>
2684 * m32r.c: Add support for m32rx processor.
2688 * m32r-protos.h: Add prototypes for m32rx functions.
2689 * doc/invoke.texi: Document -m32rx option.
2691 2001-11-09 Jakub Jelinek <jakub@redhat.com>
2693 * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
2696 2001-11-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2698 * doc/install.texi2html: Use $MAKEINFO --no-split.
2700 2001-11-09 Andreas Schwab <schwab@suse.de>
2702 * Makefile.in ($(HOST_PREFIX_1)rtl.o,
2703 $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
2704 $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
2705 $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
2706 $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
2708 2001-11-09 H.J. Lu <hjl@gnu.org>
2710 * config/mips/mips.c (mips_output_function_prologues): Cast
2711 `tsize' to long for output.
2713 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2715 * c-lang.c (LANG_HOOKS_NAME): New.
2716 (lang_hooks): Constify.
2717 (c_init_options): Update.
2718 (lang_identify): Remove.
2719 * c-parse.in (language_string): Remove.
2720 * dbxout.c: Include langhooks.h.
2721 (dbxout_symbol_location): Update.
2722 * dwarf2out.c: Include langhooks.h.
2723 (gen_compile_unit_die): Update.
2724 * dwarfout.c: Include langhooks.h.
2725 (prototyped_attribute, output_compile_unit_die): Update.
2726 * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
2727 (LANG_HOOKS_INITIALIZER): Update.
2728 * langhooks.h (struct lang_hooks): New members. Constify.
2729 * stringpool.c: Don't include toplev.h.
2730 (set_identifier_size): Remove.
2731 * toplev.c (toplev_main): Initialize identifier size.
2732 (print_version): Update.
2733 * tree.h (language_string, init_lex, lang_identify,
2734 set_identifier_size): Remove.
2735 * Makefile.in: Update dependencies.
2736 * config/darwin.c: Include langhooks.h.
2737 (func_name_maybe_scoped): Update.
2738 * config/darwin.h (ASM_END_FILE): Update.
2739 * config/nextstep.h (ASM_END_FILE): Update.
2740 * config/nextstep21.h (ASM_END_FILE): Update.
2741 * config/i386/sun386.h (ASM_END_FILE): Update.
2742 * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
2743 (rs6000_output_function_epilogue): Update.
2745 * objc-act.c (LANG_HOOKS_NAME): Override.
2746 (struct lang_hooks): Constify.
2747 (objc_init_options): Update.
2748 (lang_identify): Remove.
2750 Fri Nov 9 00:25:18 EST 2001 John Wehle (john@feith.com)
2752 * fold-const.c (lshift_double): Honor PREC.
2753 (rshift_double): Likewise.
2755 2001-11-08 Kazu Hirata <kazu@hxi.com>
2757 * config/1750a/1750a.c: Fix comment formatting.
2758 * config/1750a/1750a.h: Likewise.
2760 2001-11-08 Phil Edwards <pedwards@disaster.jaj.com>
2762 * configure.in (--enable-languages): Be more permissive about
2763 syntax. Check for empty lists better. Warn about $LANGUAGES.
2764 * configure: Regenerated.
2766 2001-11-08 Richard Henderson <rth@redhat.com>
2768 * dwarf2asm.c (dw2_force_const_mem): Fix typo.
2770 2001-11-08 Geoffrey Keating <geoffk@redhat.com>
2772 * config.gcc: Rename stormy16 to xstormy16.
2773 * config/stormy16/stormy-abi: Likewise.
2774 * config/stormy16/stormy16-protos.h: Likewise.
2775 * config/stormy16/stormy16.c: Likewise.
2776 * config/stormy16/stormy16.h: Likewise.
2777 * config/stormy16/stormy16.md: Likewise.
2779 2001-11-06 Geoffrey Keating <geoffk@redhat.com>
2781 * tree.h (TYPE_VOLATILE): Add enable-checking code.
2782 (TYPE_READONLY): Likewise.
2784 Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2786 * reload1.c (reload): Don't delete equiv insn if can throw.
2788 * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
2789 (clear_storage): Likewise, for OBJECT.
2791 Thu Nov 8 16:23:51 2001 Jeffrey A Law (law@cygnus.com)
2793 * pa.c (emit_move_sequence): Fix SUBREG expression to
2794 use proper byte offset when extending a constant from
2797 2001-11-09 Jakub Jelinek <jakub@redhat.com>
2799 * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
2802 Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2804 * explow.c (convert_memory_address, case SUBREG): Only return
2805 inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
2807 2001-11-08 Richard Henderson <rth@redhat.com>
2809 * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
2810 (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
2811 (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
2813 2001-11-08 Aldy Hernandez <aldyh@redhat.com>
2815 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
2817 2001-11-08 Jakub Jelinek <jakub@redhat.com>
2819 * dwarf2out.c (debug_str_hash): New.
2820 (struct indirect_string_node): New.
2821 (struct dw_val_struct): Change type of val_str to it.
2822 (DEBUG_STR_SECTION_FLAGS): Define.
2823 (add_AT_string): Push string into hashtable, increment reference
2825 (AT_string): Return string from ht_identifier.
2826 (AT_string_form): New.
2827 (free_AT): For dw_val_class_str, just decrement reference counter.
2828 (size_of_string): Remove.
2829 (size_of_die): Use AT_string_form to decide what size the string
2831 (size_of_pubnames): Use strlen instead of size_of_string.
2832 (value_format): Use AT_string_form for dw_val_class_str.
2833 (output_die): Output DW_FORM_strp strings using
2834 dw2_asm_output_offset.
2835 (indirect_string_alloc, output_indirect_string): New.
2836 (dwarf2out_finish): Emit .debug_str strings if there are any.
2838 2001-11-08 Andreas Franck <afranck@gmx.de>
2840 * configure.in: Add AC_ARG_PROGRAM to support program name
2841 transformation with --program-prefix, --program-suffix and
2842 --program-transform-name.
2843 * configure: Regenerated.
2844 * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
2845 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
2846 GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
2847 PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
2848 program_transform_name the way suggested by autoconf.
2849 (GCC_TARGET_INSTALL_NAME): Define.
2850 (install-driver): Use the transformed target alias name.
2852 2001-11-08 Richard Henderson <rth@redhat.com>
2854 * config/mips/mips.c (save_restore_insns): Remove GP from the
2855 restore registers mask early instead of special casing it inside
2858 2001-11-08 Neil Booth <neil@daikokuya.demon.co.uk>
2860 * cp/decl.c (shadow_warning): New function.
2861 (pushdecl): Improve -Wshadow warnings. Don't give both a warning
2862 and an error when a block scope decl shadows a parameter.
2864 2001-11-08 Richard Henderson <rth@redhat.com>
2866 * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
2869 2001-11-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2871 * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
2872 to implement floating negation on processors prior to PA 2.0.
2874 2001-11-08 Jakub Jelinek <jakub@redhat.com>
2876 * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
2877 (USE_LINKONCE_INDIRECT): Define.
2878 (dw2_output_indirect_constant_1): Try to output indirect constants
2879 into linkonce sections if possible.
2880 (dw2_force_const_mem): Likewise. Register indirect_pool with GGC.
2881 (dw2_output_indirect_constants): Likewise.
2883 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2885 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
2887 2001-11-07 Neil Booth <neil@daikokuya.demon.co.uk>
2889 * c-decl.c (pushdecl): Remove file and line.
2890 * c-typeck.c (pop_init_level): Remove size.
2892 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2894 * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
2897 * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
2898 (TARGET_ALTIVEC): New.
2899 (TARGET_SWITCHES): Add altivec.
2900 (FIRST_PSEUDO_REGISTER): Change to 109.
2901 (CALL_USED_REGISTERS): Same.
2902 (FIRST_ALTIVEC_REGNO): New.
2903 (LAST_ALTIVEC_REGNO): New.
2904 (ALTIVEC_REGNO_P): New.
2905 (UNITS_PER_ALTIVEC_WORD): New.
2906 (ALTIVEC_VECTOR_MODE): New.
2907 (FIXED_REGISTERS): Add altivec registers.
2908 (REG_ALLOC_ORDER): Same.
2909 (HARD_REGNO_NREGS): Adjust for altivec registers.
2910 (HARD_REGNO_MODE_OK): Same.
2911 (MODES_TIEABLE_P): Same.
2912 (REGISTER_MOVE_COST): Same.
2913 (REGNO_REG_CLASS): Same.
2914 (reg_class): Add ALTIVEC_REGS.
2915 (REG_CLASS_NAMES): Same.
2916 (REG_CLASS_CONTENTS): Same.
2917 (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
2918 (ALTIVEC_ARG_RETURN): New.
2919 (FUNCTION_VALUE): Handle VECTOR_TYPE.
2920 (LIBCALL_VALUE): Handle altivec vector modes.
2921 (VECTOR_MODE_SUPPORTED_P): New.
2922 (ALTIVEC_ARG_MIN_REG): New.
2923 (ALTIVEC_ARG_MAX_REG): New.
2924 (ALTIVEC_ARG_NUM_REG): New.
2925 (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
2926 (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
2927 (REGISTER_NAMES): Add altivec regs.
2928 (DEBUG_REGISTER_NAMES): Same.
2929 (ADDITIONAL_REGISTER_NAMES): Same.
2930 (rs6000_builtins): New.
2931 (MD_EXPAND_BUILTIN): New.
2932 (MD_INIT_BUILTINS): New.
2933 (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
2934 for AltiVec instructions.
2935 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
2936 (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
2938 (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
2939 (TARGET_SWITCHES): Add no-altivec.
2940 (DATA_ALIGNMENT): Align vectors to 128 bits.
2941 (TARGET_OPTIONS): Add abi= option.
2942 Add rs6000_abi_string extern.
2943 (LOCAL_ALIGNMENT): New.
2944 (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
2945 (MASK_ALTIVEC_ABI): New.
2946 (TARGET_ALTIVEC_ABI): New.
2947 (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
2949 (STACK_BOUNDARY): Adjust for altivec.
2950 (BIGGEST_ALIGNMENT): Same.
2951 (rs6000_args): Add vregno.
2952 (USE_ALTIVEC_FOR_ARG_P): New.
2953 (FIXED_REGISTERS): Add vrsave register.
2954 (CALL_USED_REGISTERS): Same.
2955 (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
2956 (VRSAVE_REGNO): New.
2957 (reg_class): Add VRSAVE_REGS.
2958 (REG_CLASS_NAMES): Same.
2959 (REG_CLASS_CONTENTS): Same.
2960 (REGNO_REG_CLASS): Same.
2962 * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
2963 (ABI_STACK_BOUNDARY): Same.
2964 (BIGGEST_ALIGNMENT): Same.
2965 (ADJUST_FIELD_ALIGN): Remove undef. Define anew.
2966 (ROUND_TYPE_ALIGN): Same.
2968 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2971 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2974 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2977 * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
2978 (altivec_expand_builtin): New.
2979 (altivec_init_builtins): New.
2980 (TARGET_EXPAND_BUILTIN): New.
2981 (TARGET_INIT_BUILTINS): New.
2982 (rs6000_init_builtins): New.
2983 (struct builtin_description): New.
2985 (rs6000_reg_names): Add altivec registers.
2986 (alt_reg_names): Same.
2987 (secondary_reload_class): Altivec regs can hold altivec regs and
2989 (rs6000_emit_move): Force constants into memory for AltiVec moves.
2990 (print_operand): Add 'y' case for printing altivec memory
2992 (rs6000_legitimize_address): Legitimize vector addresses into
2994 (altivec_expand_binop_builtin): New.
2995 New string rs6000_current_abi.
2996 (rs6000_override_options): Call rs6000_parse_abi_options.
2997 (rs6000_parse_abi_options): New.
2998 (function_arg_boundary): Vector arguments must be 16
3000 (function_arg_advance): Handle vector arguments.
3001 (function_arg_partial_nregs): Same.
3002 (init_cumulative_args): Same.
3003 (function_arg): Same.
3005 * config/rs6000/rs6000.md (altivec_lvx): New.
3006 (type): Add altivec attribute.
3008 (*movv4si_internal): New.
3010 (*movv16qi_internal): New.
3012 (*movv8hi_internal1): New.
3014 (*movv4sf_internal1): New.
3015 (altivec_stvx): New.
3131 2001-11-07 Daniel Berlin <dan@cgsoftware.com>
3133 * Makefile.in (df.o): Add fibheap.h to dependencies.
3135 * df.h: Add prototypes for transfer functions, iterative_dataflow
3137 (enum df_flow_dir): New enum.
3138 (enum df_confluence_op): New enum.
3139 (struct df): Add inverse_rts_map.
3141 * df.c: Add sbitmap.h to the list of includes.
3142 (df_rd_global_compute): Removed.
3143 (df_ru_global_compute): Removed.
3144 (df_lr_global_compute): Removed.
3145 (df_rd_transfer_function): New function.
3146 (df_ru_transfer_function): New function.
3147 (df_lr_transfer_function): New function.
3148 (df_analyse_1): allocate/compute/free df->inverse_rts_map.
3149 Use iterative_dataflow_bitmap instead of df_*_global_compute.
3150 (iterative_dataflow_sbitmap): New function.
3151 (iterative_dataflow_bitmap): New function.
3153 2001-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
3155 * doc/gcc.texi: Move terminology and spelling conventions to
3156 htdocs/codingconventions.html.
3158 2001-11-07 Graham Stott <grahams@redhat.com>
3160 * cse.c (cse_insn): Emit BARRIER after unconditional jump.
3162 Wed Nov 7 13:33:34 CET 2001 Jan Hubicka <jh@suse.cz>
3164 * expmed.c (expand_mult): Force operand to register before computing
3166 * i386.c (x86_decompose_lea): New global vairable.
3167 * i386.h (x86_decompose_lea): Declare.
3168 (TARGET_DECOMPOSE_LEA): New macro.
3169 (RTX_COST): Handle leas properly.
3171 2001-11-06 Richard Henderson <rth@redhat.com>
3173 * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
3174 defined for a CONSTRUCTOR; don't check it.
3176 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
3178 * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
3179 test for absolute pathnames.
3181 2001-11-06 Olivier Hainque <hainque@act-europe.fr>
3183 * unwind-dw2.c (execute_cfa_program): Evaluate call frame
3184 instructions up to the target pc inclusive.
3186 2001-11-06 Steve Christiansen <smc@us.ibm.com>
3188 * loop.c (loop_regs_scan): Don't invalidate PIC register.
3190 2001-11-06 Eric Christopher <echristo@redhat.com>
3192 * config/mips/mips.md(movdf_internal2): Add constraints for float
3193 to general register move.
3194 * config/mips/elf64.h: Add default ABI.
3196 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3198 * alias.c:: Include langhooks.h.
3199 * emit-rtl.c: Similarly.
3200 * toplev.c: Similarly.
3201 * tree-inline.c: Similarly.
3202 * langhooks-def.h: New, the old langhooks.h. Give the default
3203 hooks a common prefix.
3204 * langhooks.h: Contents extracted from toplev.h.
3205 * toplev.h: Move langhook stuff to langhooks.h.
3206 * langhooks.c: Give default hooks a common prefix.
3208 * c-lang.c: Include langhooks-def.h.
3209 * objc/objc-act.c: Similarly.
3210 * Makefile.in: Update.
3211 * objc/Make-lang.in: Update.
3213 2001-11-06 Joseph S. Myers <jsm28@cam.ac.uk>
3215 * doc/install.texi: Document that configure options not listed in
3216 this file are unsupported. Document --with-system-zlib.
3218 Tue Nov 6 09:21:34 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3220 * rtl.h (mem_for_const_double): New declaration.
3221 * varasm.c (mem_for_const_double): New function.
3222 * config/convex/convex.md (movdf): Use it.
3223 * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
3224 * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
3225 * config/m68k/m68kv4.h: Likewise.
3227 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
3228 of new GP reg classes.
3230 * expr.c (store_field): When making temp object for unaligned
3231 component, set it to alias set 0.
3233 2001-11-06 Joseph S. Myers <jsm28@cam.ac.uk>
3235 * c-common.c (c_expand_expr_stmt): Apply default conversions to
3236 non-lvalue arrays if C99.
3237 * c-typeck.c (default_conversion): Split out code handling
3238 array-to-pointer and function-to-pointer conversions into a
3239 separate default_function_array_conversion function.
3240 (default_function_array_conversion): New function. Keep track of
3241 whether any NON_LVALUE_EXPRs were stripped. Return non-lvalue
3242 arrays unchanged outside C99 mode instead of giving an error for
3244 (build_component_ref): Use pedantic_non_lvalue when handling
3245 COMPOUND_EXPR. Don't handle COND_EXPR specially.
3246 (convert_arguments): Use default_function_array_conversion.
3247 (build_unary_op): For ADDR_EXPR, take a flag indicating whether
3249 (unary_complex_lvalue): Likewise.
3250 (internal_build_compound_expr): Use
3251 default_function_array_conversion. Apply default conversions to
3252 function in compound expression.
3253 (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
3254 Use default_function_array_conversion.
3255 * doc/extend.texi: Update documentation of subscripting non-lvalue
3259 2001-11-05 Zack Weinberg <zack@codesourcery.com>
3261 * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
3262 (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
3263 corresponding to the complete set of .po and .gmo files in
3264 the source directory's po subdir, modified by LINGUAS. Don't
3265 look at ALL_LINGUAS.
3266 * configure.in: Don't set ALL_LINGUAS.
3267 * configure: Regenerate.
3269 * Makefile.in (.po.gmo): Don't move into source directory.
3270 (.po.pox): Clarify comments.
3271 (install-po): Look for .gmo files in both srcdir and objdir;
3272 don't fail if a file is totally missing.
3273 (distclean): rmdir ada subdirectory too.
3275 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
3277 * config/rs6000/rs6000.c (rs6000_select_section): Handle
3278 CONSTRUCTORs _correctly_.
3280 2001-11-05 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3282 * c-decl.c (delete_block): Remove.
3283 * c-tree.h (delete_block): Remove.
3285 2001-11-05 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3287 * cppexp.c (lex, parse_defined): Update warning about defined.
3289 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
3291 * config/rs6000/rs6000.c (rs6000_select_section): Handle
3294 2001-11-05 Nick Clifton <nickc@cambridge.redhat.com>
3296 * config/arm/arm.c (arm_return_in_memory): Cope with
3297 int_size_in_bytes returning -1.
3299 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
3302 Mon Nov 5 16:15:25 CET 2001 Jan Hubicka <jh@suse.cz>
3304 * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
3305 remove unneeded dependencies;
3307 * cfglayout.c, cfglayout.h: New files; break out from ...
3308 * bb-reorder.c: ... here; Remove unneeded includes;
3310 2001-11-04 Alan Modra <amodra@bigpond.net.au>
3312 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
3314 2001-11-04 David Edelsohn <edelsohn@gnu.org>
3316 * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
3317 mode as well. Do not explicitly create intermediate regs.
3319 2001-11-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3321 * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
3322 (common_section): Delete unused variable.
3323 (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
3324 (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3325 * arm-protos.h (arm_poke_function_name, aof_add_import,
3326 aof_delete_import): Const-ify.
3327 * arm.c (legitimize_pic_address): Wrap variables in the macro
3328 controlling their usage.
3329 (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
3330 (arm_poke_function_name, pic_chain, import, aof_add_import,
3331 aof_delete_import): Const-ify.
3332 * i386.c (ix86_osf_output_function_prologue): Const-ify.
3333 * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3334 ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
3335 * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
3336 * i860/sysv3.h: Add missing comment closure.
3337 * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
3338 * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
3339 to symbolic_operand.
3341 * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
3342 (i960-*-*): Set tmake_file.
3343 (sparc86x-*-elf*): Fix typo in header name.
3345 * sched-rgn.c (schedule_insns): Delete unused variable.
3347 2001-11-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3350 * c-typeck.c (lookup_field): Rework to return a chain down to
3351 the looked-up field.
3352 (build_component_ref): Use the new lookup_field to handle
3353 nested anonymous entities correctly.
3355 Sun Nov 4 11:53:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3357 * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
3358 Change parameters to gen_rtx_CONST_DOUBLE.
3359 (GEN_INT64, sparc_emit_set_const64): Likewise.
3360 * config/sparc/sparc.md (movdf split): Likewise.
3362 2001-11-03 Geoffrey Keating <geoffk@redhat.com>
3364 * unroll.c (calculate_giv_inc): Use find_last_value rather
3365 than just hoping the last instruction is the right SET.
3366 [Fixes 990604-1.c on stormy16.]
3368 * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
3369 library at all if -T is used.
3371 * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
3372 some uses of uninitialized variables in error cases.
3374 * config/stormy16/stormy16.c (stormy16_output_shift): Don't
3375 look at 'temp' if we won't be using it.
3377 * config/stormy16/stormy16.h (CONST_COSTS): Define.
3378 (RTX_COSTS): Define.
3379 (ADDRESS_COST): Define.
3380 (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
3382 * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
3384 * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
3385 stormy16_asm_output_mi_thunk.
3386 * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
3388 * config/stormy16/stormy16-protos.h
3389 (stormy16_asm_output_mi_thunk): New prototype.
3391 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
3393 * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
3394 FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
3395 caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
3396 cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
3397 sched-int.h, toplev.c, config/alpha/alpha.c,
3398 config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
3399 config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
3400 config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
3401 config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
3402 config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
3403 config/ns32k/ns32k.md, config/rs6000/rs6000.c,
3404 config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
3406 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3408 * Makefile.in (dbxout.o): Depend on function.h.
3409 * collect2.c (is_in_list): Hide unused function.
3410 * dbxout.c: Include function.h.
3411 (source_label_number, dbxout_source_line, dbxout_source_file,
3412 dbxout_function_end, dbxout_begin_function): Wrap/move inside
3413 macros controlling usage.
3414 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
3415 * output.h (exports_section): Prototype.
3417 * convex.c (convex_output_function_prologue): Fix format specifier
3419 (asm_declare_function_name): Fix signed/unsigned warning.
3420 (print_operand): Fix format specifier warning.
3421 * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
3422 * dsp16xx-protos.h (uns_comparison_operator,
3423 num_1600_core_shifts): Prototype.
3424 * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
3425 (frame_size, frame_pointer_offset): Delete.
3426 (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
3427 Make static. Fix format specifier warnings.
3428 * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
3429 (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
3430 * dsp16xx.md: Add default case in switches.
3431 * fr30.h (IN_RANGE): Delete.
3432 * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3433 * mcore-protos.h (mcore_output_cmov): Const-ify.
3434 * mcore.c (mcore_output_cmov): Likewise.
3435 * mcore.h (switch_to_section): Make static and prototype.
3436 * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
3437 unsigned>=0 warnings.
3438 * mn10300.h (REGNO_IN_RANGE_P): Likewise.
3439 * rs6000-protos.h (read_only_data_section,
3440 read_only_private_data_section): Prototype.
3441 * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3442 * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
3443 * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
3445 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3447 * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
3449 * final.c (final_scan_insn): Add brackets around body of if-stmt.
3450 * gcc.c (convert_filename): Add static prototype. Const-ify.
3451 Wrap variable in macros controlling its use.
3452 * output.h (sdata_section): Add prototype.
3454 * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3455 (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
3456 * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
3457 (ASM_FILE_START): Const-ify.
3458 (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
3460 * c4x.md: Don't use the 'U' integer suffix.
3461 * clipper.md (clipper_movstr): Delete declaration.
3462 * d30v-protos.h (d30v_move_2words): Const-ify.
3463 (debug_stack_info): Add prototype.
3464 * d30v.c: Include "integrate.h".
3465 (d30v_function_arg_boundary, d30v_function_arg,
3466 d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
3467 signed/unsigned warnings.
3468 (d30v_print_operand_memory_reference, d30v_move_2words):
3470 * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
3471 * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
3472 * fr30.md: Const-ify.
3473 * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3474 * i370.c (i370_label_scan, mvs_get_label): Make definition static.
3475 (mvs_get_label_page): Hide unused static function.
3476 * i860.c (current_function_original_name): Const-ify.
3477 * i860/sysv3.h (current_function_original_name): Likewise.
3478 * i860/sysv4.h (current_function_original_name): Likewise.
3479 * i960.md: Add default case in switches. Remove unused variable.
3480 * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
3481 * m32r.md: Const-ify.
3482 * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
3483 * m68hc11.c: Include "reload.h".
3484 (static_chain_reg, print_options, m68hc11_asm_file_start):
3486 * m68hc11.md: Delete unused variable. Const-ify. Add parens
3487 around & in comparison.
3488 * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
3489 * mn10200.c (shift_mode): Remove trailing comma.
3490 * mn10300-protos.h (output_tst): Const-ify.
3491 * mn10300.c (output_tst): Likewise.
3492 * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
3494 * pa-protos.h (output_ascii): Use regular char *, not unsigned.
3495 * pa.c (output_ascii): Likewise.
3496 * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3497 * pdp11.md (expand_unop): Delete declarations.
3498 * pj-protos.h (pj_output_addsi3): Const-ify.
3499 * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
3500 pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
3501 unique_src_operand): Add prototypes.
3502 (pj_output_store_into_lval): Make definition static.
3503 (pj_function_incoming_arg): Don't use unary plus.
3504 (pj_output_addsi3): Const-ify.
3505 * romp.md (get_symref): Delete declarations.
3506 * v850-c.c (mark_current_function_as_interrupt): Don't return
3507 value from void function.
3508 * v850.c: Include "integrate.h".
3509 * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
3510 * vax-protos.h (const_section): Add prototype.
3512 2001-11-03 Aldy Hernandez <aldyh@redhat.com>
3514 * machmode.def: Add documentation for the seventh argument in
3517 2001-11-04 Hans-Peter Nilsson <hp@bitrange.com>
3519 * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
3521 <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
3522 <-melf>: Don't have markup for ELF acronym.
3524 2001-11-03 Hans-Peter Nilsson <hp@bitrange.com>
3526 * config.gcc (mmix-*-*): New target.
3527 * doc/invoke.texi: Document MMIX options.
3528 * doc/contrib.texi: Add note about MMIX port to my entry.
3529 * config/mmix/t-mmix: New file.
3530 * config/mmix/mmix.h: New file.
3531 * config/mmix/mmix-protos.h: New file.
3532 * config/mmix/mmix.c: New file.
3533 * config/mmix/mmix.md: New file.
3534 * config/mmix/crti.asm: New file.
3535 * config/mmix/crtn.asm: New file.
3537 2001-11-03 Kazu Hirata <kazu@hxi.com>
3539 * config/sparc/linux-aout.h: Fix comment formatting.
3540 * config/sparc/linux.h: Likewise.
3541 * config/sparc/linux64.h: Likewise.
3542 * config/sparc/lynx.h: Likewise.
3543 * config/sparc/pbd.h: Likewise.
3544 * config/sparc/sol2-sld-64.h: Likewise.
3545 * config/sparc/sol2.h: Likewise.
3546 * config/sparc/sparc.c: Likewise.
3547 * config/sparc/sparc.h: Likewise.
3548 * config/sparc/sparc.md: Likewise.
3549 * config/sparc/sunos4.h: Likewise.
3550 * config/sparc/vxsim.h: Likewise.
3551 * config/sparc/vxsparc.h: Likewise.
3552 * config/sparc/vxsparc64.h: Likewise.
3554 Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3556 * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
3557 reference to CONST_DOUBLE_MEM in comment.
3558 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
3559 (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
3560 (init_emit_once): Don't clear CONST_DOUBLE_MEM.
3561 * function.c (pop_function_context_from): Don't call
3562 restore_varasm_status.
3563 * function.h (restore_varasm_status): Delete declaration.
3564 * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
3566 * rtl.def (CONST_DOUBLE): Update comment.
3567 * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
3568 (CONST_DOUBLE_CHAIN): Likewise.
3569 (CONST_DOUBLE_MEM): Delete.
3570 (gen_rtx_CONST_DOUBLE): Update parameters.
3571 * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
3572 Remove reference to CONST_DOUBLE_MEM.
3573 (const_alias_set): New variable.
3574 (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
3575 (immed_real_const_1): Adjust tests for 0, 1, and 2.
3576 Don't set CONST_DOUBLE_MEM.
3577 (clear_const_double_mem): Don't do anything with const_tiny_rtx.
3578 (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
3579 Put constant in const_alias_set.
3580 (struct pool_constant): ALIGN now unsigned.
3581 OFFSET now HOST_WIDE_INT.
3583 (restore_varasm_status): Deleted.
3584 (mark_pool_constant): Mark desc->rtl.
3585 (force_const_mem): Rework to store rtl in hash table,
3586 not CONST_DOUBLE_MEM.
3587 Put constant in const_alias_set.
3588 (find_pool_constant): Check desc->rtl.
3589 (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
3590 (init_varasm_once): Initialize const_alias_set.
3592 * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
3595 * reload.c (combine_reloads): Don't combine an output reload if there
3596 are other reloads around for part of the output.
3598 * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
3599 constant expression.
3600 (set_mem_decl): New function.
3601 * expr.h (set_mem_decl): New declaration.
3602 * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
3603 (output_asm_operand_names): Add tab.
3604 * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
3606 * builtins.c (get_memory_rtx): Properly set MEM alias set and
3609 2001-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
3611 * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
3612 Use "invalid" instead of "illegal". Use @r in comments in
3615 2001-11-02 Neil Booth <neil@daikokuya.demon.co.uk>
3617 * c-decl.c (pushdecl): Move block inside if conditional to remove
3618 possibility of a segfault. Lookup block-level extern
3619 variables in enclosing scopes correctly.
3621 * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
3623 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
3625 * expmed.c (store_bit_field): Use simplify_gen_subreg to make
3626 SUBREG so we avoid SUBREGing memory.
3628 * expmed.c (store_bit_field): Same.
3630 2001-11-02 DJ Delorie <dj@redhat.com>
3632 * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
3633 using FP registers for DImode mem-mem moves is acceptable.
3635 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
3637 * builtins.c (apply_args_size): Handle vector arguments.
3638 (apply_result_size): Same.
3640 * machmode.def: Set WIDER mode field for all vector entries.
3642 2001-11-02 Graham Stott <grahams@redhat.com>
3644 * recog.c (decode_asm_operands): Check that the SRC is ASM_OPERANDS.
3646 2001-11-01 Eric Christopher <echristo@redhat.com>
3648 * config.gcc: Revert part of earlier patch.
3649 * config/mips/linux.h: Ditto.
3650 * df.c: Include tm_p.h to avoid warnings.
3651 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults. Adjust
3653 * config/mips/mips.c: Define mips_abi regardless.
3654 (mips_output_function_prologues): Add long casts for .frame
3656 (override_options): Allow use of ABI_32.
3658 2001-11-01 Kazu Hirata <kazu@hxi.com>
3660 * config/m68hc11/m68hc11.c: Fix comment formatting.
3661 * config/m68hc11/m68hc11.h: Likewise.
3662 * config/m68hc11/m68hc11.md: Likewise.
3664 2001-11-01 Neil Booth <neil@daikokuya.demon.co.uk>
3666 * c-typeck.c (default_conversion): Retain the original expression
3668 * gcc.dg/Wparentheses.c: New tests.
3670 2001-11-01 David S. Miller <davem@redhat.com>
3672 * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
3673 64-bit Sparc description more in line with reality.
3675 2001-11-01 Joseph S. Myers <jsm28@cam.ac.uk>
3677 * Makefile.in (GCOV_OBJS): Add version.o.
3678 * gcov.c: Include "version.h" and <getopt.h>.
3679 (gcov_version_string): Remove.
3680 (print_usage): Take a parameter to determine whether this is a
3681 call from --help or an error message. Give fuller output that
3682 follows the GNU Coding Standards for --help.
3683 (print_version): New function.
3685 (process_args): Use getopt_long. Support long options. Follow
3686 GNU Coding Standards for --help and --version.
3687 * doc/gcov.texi: Document long options.
3688 Addresses part of PR other/704.
3690 2001-11-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
3692 * pa.c (output_move_double): Fix typo in double load.
3694 2001-11-01 Kazu Hirata <kazu@hxi.com>
3696 * config/h8300/h8300.c (h8300_encode_label): Compute a string
3697 before passing it to ggc_alloc_string.
3699 2001-11-01 Kazu Hirata <kazu@hxi.com>
3701 * config/m68k/3b1.h: Fix comment formatting.
3702 * config/m68k/3b1g.h: Likewise.
3703 * config/m68k/a-ux.h: Likewise.
3704 * config/m68k/amix.h: Likewise.
3705 * config/m68k/apollo68.h: Likewise.
3706 * config/m68k/atari.h: Likewise.
3707 * config/m68k/aux-exit.c: Likewise.
3708 * config/m68k/ccur-GAS.h: Likewise.
3709 * config/m68k/crds.h: Likewise.
3710 * config/m68k/dpx2.h: Likewise.
3711 * config/m68k/dpx2g.h: Likewise.
3712 * config/m68k/hp310.h: Likewise.
3713 * config/m68k/hp320.h: Likewise.
3714 * config/m68k/isi.h: Likewise.
3715 * config/m68k/linux.h: Likewise.
3716 * config/m68k/lynx.h: Likewise.
3717 * config/m68k/m68k-psos.h: Likewise.
3718 * config/m68k/m68k.c: Likewise.
3719 * config/m68k/m68k.h: Likewise.
3720 * config/m68k/m68k.md: Likewise.
3721 * config/m68k/m68kelf.h: Likewise.
3722 * config/m68k/m68kv4.h: Likewise.
3723 * config/m68k/mot3300.h: Likewise.
3724 * config/m68k/news.h: Likewise.
3725 * config/m68k/next.h: Likewise.
3726 * config/m68k/pbb.h: Likewise.
3727 * config/m68k/plexus.h: Likewise.
3728 * config/m68k/sgs.h: Likewise.
3729 * config/m68k/sun3.h: Likewise.
3730 * config/m68k/tower.h: Likewise.
3731 * config/m68k/vxm68k.h: Likewise.
3733 2001-10-31 DJ Delorie <dj@redhat.com>
3735 * config/mips/mips.h (mips_cache_flush_func): Prototype.
3736 (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
3737 (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
3738 * config/mips/mips.c (mips_cache_flush_func): New.
3739 * doc/invoke.texi: Document the new options.
3741 2001-10-31 Hans-Peter Nilsson <hp@axis.com>
3743 * config.gcc (cris-*-linux*, tm_file): Rearrange order.
3744 * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
3746 * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
3748 * config/cris/cris.c: Include output.h after tree.h but before
3751 2001-10-31 Zack Weinberg <zack@codesourcery.com>
3753 * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
3754 (INTL_SUBDIRS): Just intl.
3755 (.SUFFIXES): Add .gmo .po .pox.
3756 (native): Also depend on build-@POSUB@.
3757 (intl.all, intl.install): Depend on config.h and things it includes.
3758 (po-generated): New target; depend on c-parse.c and tradcif.c.
3759 (install-normal): Also depend on install-@POSUB@.
3760 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
3761 (build-, install-, build-po, update-po, install-po,
3762 .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
3764 * aclocal.m4: Prefix each entry in CATALOGS with "po/"
3765 * configure.in: Don't munge XGETTEXT. Don't generate
3767 * configure: Regenerate.
3769 * exgettext: Delete.
3770 * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
3771 * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
3773 2001-10-31 Kazu Hirata <kazu@hxi.com>
3775 * config/h8300/h8300.md (two anonymous patterns): New.
3777 2001-10-31 Aldy Hernandez <aldyh@redhat.com>
3779 * tree.h (tree_index): Add support for V16QI and V8HI.
3780 (V8HI_type_node): New.
3781 (V16QI_type_node): New.
3783 * tree.c (build_common_tree_nodes_2): Same.
3785 * c-common.c (type_for_mode): Same.
3787 2001-10-31 Kazu Hirata <kazu@hxi.com>
3789 * config/i386/att.h: Fix comment formatting.
3790 * config/i386/beos-elf.h: Likewise.
3791 * config/i386/bsd.h: Likewise.
3792 * config/i386/bsd386.h: Likewise.
3793 * config/i386/crtdll.h: Likewise.
3794 * config/i386/cygwin.asm: Likewise.
3795 * config/i386/cygwin.h: Likewise.
3796 * config/i386/djgpp.h: Likewise.
3797 * config/i386/freebsd-aout.h: Likewise.
3798 * config/i386/freebsd.h: Likewise.
3799 * config/i386/gas.h: Likewise.
3800 * config/i386/i386-interix.h: Likewise.
3801 * config/i386/i386-protos.h: Likewise.
3802 * config/i386/i386.c: Likewise.
3803 * config/i386/i386.h: Likewise.
3804 * config/i386/i386.md: Likewise.
3805 * config/i386/i386elf.h: Likewise.
3806 * config/i386/interix.c: Likewise.
3807 * config/i386/isc.h: Likewise.
3808 * config/i386/isccoff.h: Likewise.
3809 * config/i386/iscdbx.h: Likewise.
3810 * config/i386/linux.h: Likewise.
3811 * config/i386/lynx.h: Likewise.
3812 * config/i386/mingw32.h: Likewise.
3813 * config/i386/netbsd-elf.h: Likewise.
3814 * config/i386/next.h: Likewise.
3815 * config/i386/osf1elf.h: Likewise.
3816 * config/i386/osfrose.h: Likewise.
3817 * config/i386/sco5.h: Likewise.
3818 * config/i386/seq-gas.h: Likewise.
3819 * config/i386/seq-sysv3.h: Likewise.
3820 * config/i386/sequent.h: Likewise.
3821 * config/i386/sol2.h: Likewise.
3822 * config/i386/sun386.h: Likewise.
3823 * config/i386/uwin.asm: Likewise.
3824 * config/i386/uwin.h: Likewise.
3825 * config/i386/vxi386.h: Likewise.
3826 * config/i386/win32.h: Likewise.
3827 * config/i386/winnt.c: Likewise.
3828 * config/i386/xm-cygwin.h: Likewise.
3829 * config/i386/xm-mingw32.h: Likewise.
3831 2001-10-31 Kazu Hirata <kazu@hxi.com>
3833 * builtins.def: Fix comment typos.
3834 * config/alpha.c: Likewise.
3835 * config/arm/arm.c: Likewise.
3836 * config/avr/avr.h: Likewise.
3837 * config/d30v/d30v.c: Likewise.
3838 * config/d30v/d30v.h: Likewise.
3839 * config/d30v/d30v.md: Likewise.
3840 * config/dsp16xx/dsp16xx.c: Likewise.
3841 * config/fr30/fr30.c: Likewise.
3842 * config/fr30/fr30.md: Likewise.
3843 * config/i386/i386.c: Likewise.
3844 * config/i860/i860.c: Likewise.
3845 * config/i960/i960.c: Likewise.
3846 * config/ia64/ia64.c: Likewise.
3847 * config/mips/mips.c: Likewise.
3848 * config/pa/pa.c: Likewise.
3849 * config/rs6000/rs6000.c: Likewise.
3850 * config/s390/s390.c: Likewise.
3851 * config/sparc/sparc.c: Likewise.
3853 2001-10-30 Kazu Hirata <kazu@hxi.com>
3855 * config/mips/elf.h: Fix comment formatting.
3856 * config/mips/elf64.h: Likewise.
3857 * config/mips/iris5.h: Likewise.
3858 * config/mips/iris5gas.h: Likewise.
3859 * config/mips/iris6.h: Likewise.
3860 * config/mips/isa3264.h: Likewise.
3861 * config/mips/linux.h: Likewise.
3862 * config/mips/mips.c: Likewise.
3863 * config/mips/mips.h: Likewise.
3864 * config/mips/mips.md: Likewise.
3865 * config/mips/mips16.S: Likewise.
3866 * config/mips/netbsd.h: Likewise.
3867 * config/mips/osfrose.h: Likewise.
3868 * config/mips/r3900.h: Likewise.
3869 * config/mips/sni-svr4.h: Likewise.
3870 * config/mips/svr4-t.h: Likewise.
3871 * config/mips/ultrix.h: Likewise.
3873 2001-10-30 Daniel Berlin <dan@cgsoftware.com>
3875 * bitmap.c (bitmap_element_free): Don't forget to update head->indx
3876 when we update head->current.
3878 2001-10-30 Neil Booth <neil@daikokuya.demon.co.uk>
3880 * tree.c (id_string_size): Remove.
3881 (dump_tree_statistics): Update.
3882 * toplev.c (compile_file): If dumping stats, dump tree stats too.
3884 Tue Oct 30 19:00:43 CET 2001 Jan Hubicka <jh@suse.cz>
3886 * sched-rgn.c (schedule_insns): Fix comment.
3888 2001-10-30 Zack Weinberg <zack@codesourcery.com>
3890 * configure.in: Correct previous change: don't assume that
3891 gas's version number _isn't_ the last thing on the line, or
3892 isn't the only number on the line, either.
3893 * configure: Regenerate.
3895 2001-10-30 Kazu Hirata <kazu@hxi.com>
3897 * cfgcleanup.c: Fix a comment typo.
3899 2001-10-30 Kazu Hirata <kazu@hxi.com>
3901 * alias.c: Fix comment formatting.
3902 * recog.c: Likewise.
3903 * config/cris/cris.c: Likewise.
3904 * config/cris/cris.h: Likewise.
3905 * config/i960/i960.c: Likewise.
3906 * config/i960/i960.h: Likewise.
3908 2001-10-30 Kazu Hirata <kazu@hxi.com>
3910 * config/arm/arm.c: Fix a comment typo.
3911 * config/arm/arm.h: Likewise.
3912 * config/ia64/ia64.c: Likewise.
3914 2001-10-30 Jakub Jelinek <jakub@redhat.com>
3916 * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
3917 REG_EQUIV notes for ASM_OPERANDS. Return the new note (if any).
3918 * rtl.h (set_unique_reg_note): Change return value.
3919 * gcse.c (try_replace_reg): Use set_unique_reg_note.
3920 * cse.c (cse_insn): Likewise.
3921 * expr.c (emit_move_insn): Likewise.
3922 * explow.c (force_reg): Likewise.
3923 * local-alloc (update_equiv_regs): Likewise.
3924 * loop.c (move_moveables, load_mems): Likewise.
3925 * reload (find_reloads): Likewise.
3927 2001-10-30 Paolo Bonzini <bonzini@gnu.org>
3930 * c-decl.c (parmlist_tags_warning, start_struct,
3931 check_for_loop_decls): Separate messages for struct, union and
3932 enum cases to allow for languages in which they have different
3934 * c-format.c (scanf_flag_specs): Separate short and long name of
3935 the assignment suppression feature.
3936 (check_format_types): Localize "pointer" and "different types"
3938 * c-lex.c (lex_number): Localize "an unsigned long int" and
3940 (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
3942 * c-typeck.c (build_unary_up): Separate messages for increment and
3943 decrement cases to allow for languages in which they use different
3944 articles. Localize the strings "increment" and "decrement" in one
3947 Tue Oct 30 11:08:11 CET 2001 Jan Hubicka <jh@suse.cz>
3949 * lcm.c (optimize_mode_switching): Do not rebuild liveness information
3950 when no changes has been made.
3952 * gcse.c (reg_set_bitmap): Turn into reg_set.
3953 (modify_mem_list_set, canon_modify_mem_list_set)
3954 (clear_modify_mem_tables, free_modify_mem_tables): New.
3955 (gcse_main); Use free_modify_mem_tables.
3956 (free_gcse_mem): Likewise; free the bitmaps.
3957 (alloc_gcse_main): Initialize the bitmaps.
3958 (canon_list_insert): Set canon_modify_mem_list_set.
3959 (record_last_mem_set_info): Likewise; set modify_mem_list_set.
3960 (compute_hash_table): Use clear_modify_mem_tables.
3961 (reset_opr_set_tables): Likewise.
3962 (oprs_not_set_p): reg_set_bitmap is regset.
3963 (mark_set, mark_clobber): Likewise.
3965 * df.h (DF_EQUIV_NOTES): New constant.
3966 (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
3969 * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
3970 (init_regions, schedule_insns): Conditionalize the checking
3971 code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
3973 Tue Oct 30 11:02:31 CET 2001 Jan Hubicka <jh@suse.cz>
3975 * i386.md (movti_rex64 splitter): Fix condition.
3977 2001-10-29 Zack Weinberg <zack@codesourcery.com>
3979 * configure.in: Do not assume that gas's version number is the
3980 last thing on the first line of as --version output.
3981 * configure: Regenerate.
3983 * tradcpp.c: Include intl.h. Rename WARNING, ERROR, FATAL to
3984 MT_WARNING, MT_ERROR, MT_FATAL.
3985 (main): Call gcc_init_libintl.
3986 (v_message): Call gettext on msgid and "warning: "
3987 * tradcif.y: Include intl.h.
3988 (yyerror): Make parameter definition consistent with
3989 prototype. Call gettext on msgid argument.
3991 2001-10-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3993 * combine.c (num_sign_bit_copies): Avoid signed/unsigned
3996 * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
3998 Mon Oct 29 19:22:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4000 * reload1.c (eliminate_regs): Test for reg_renumber being allocated
4001 before referencing it.
4003 2001-10-26 DJ Delorie <dj@redhat.com>
4005 * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
4006 override -G, and force -G0.
4008 2001-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
4010 * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
4011 FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
4012 c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
4013 timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
4015 * loop.h (struct induction): Rename ext_dependant to
4017 * loop.c: Change all uses.
4018 (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
4019 All callers changed.
4020 * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
4022 2001-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
4024 * c-parse.in (expr_no_commas, primary), c-typeck.c
4025 (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
4027 2001-10-29 David Edelsohn <edelsohn@gnu.org>
4029 Undo assemble_name change in earlier patch.
4031 Mon Oct 29 21:11:40 2001 Nicola Pero <n.pero@mi.flashnet.it>
4033 * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
4034 determining the type of the receiver, do not check that TREE_CODE
4035 of receiver is CALL_EXPR before calling receiver_is_class_object().
4036 (receiver_is_class_object): For the GNU runtime: recognize
4037 the case that the receiver is self in a class method context.
4038 Check that TREE_CODE of receiver is CALL_EXPR when checking that
4039 the receiver is a call to objc_get_class.
4041 2001-10-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
4043 * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
4045 Mon Oct 29 07:23:33 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4047 * Makefile.in (OBJS): Put all files in alphabetical order.
4049 * dwarf2out.c (add_const_value_attribute): Fix error in last
4052 Mon Oct 29 12:43:06 CET 2001 Jan Hubicka <jh@suse.cz>
4054 * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
4055 * cfgcleanup.c (merge_blocks): Update the life flag after merging;
4057 * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
4058 (life_analysis): call purge_all_dead_edges after deleting noops.
4059 (delete_noop_move): Do not purge CFG.
4060 * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
4062 2001-10-28 David Edelsohn <edelsohn@gnu.org>
4064 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
4065 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
4066 (ASM_GLOBALIZE_LABEL): Use assemble_name.
4067 (ASM_OUTPUT_COMMON): Likewise.
4068 * config/rs6000/rs6000.c (print_operand): Use assemble_name.
4069 (rs6000_output_function_epilogue): Likewise.
4070 (output_mi_thunk): Fix typo.
4071 (rs6000_output_symbol_ref): Use assemble_name.
4072 (output_toc): Likewise.
4073 * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
4074 * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
4075 assemble_name calls STRIP_NAME_ENCODING.
4076 (ASM_OUTPUT_LABEL): Use assemble_name.
4077 (ASM_GLOBALIZE_LABEL): Likewise.
4078 (ASM_DECLARE_FUNCTION_NAME): Likewise.
4079 (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op. Use assemble_name.
4080 (ASM_OUTPUT_LOCAL): Likewise.
4082 Sun Oct 28 15:45:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4084 * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
4085 (expand_builtin_apply, expand_builtin_return): Likewise.
4086 (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
4088 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
4090 * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
4091 ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
4092 c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
4093 configure, configure.in, except.c, except.h, flow.c, function.c,
4094 gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
4095 predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
4096 sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
4097 unroll.c: Fix spelling errors.
4099 * doc/extend.texi, doc/invoke.texi: Fix spelling.
4101 * doc/gcc.texi: Document use of "dependent" and American spelling.
4103 Sun Oct 28 17:05:36 CET 2001 Jan Hubicka <jh@suse.cz>
4105 * expr.c (emit_group_load): Support CONCATs by storing them to memory
4108 Sun Oct 28 09:59:54 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4110 * expr.c (store_constructor_field): Only call adjust_address on MEM.
4112 Sun Oct 28 16:48:09 CET 2001 Jan Hubicka <jh@suse.cz>
4114 * genrecog.c (write_switch): Output if before switch for
4115 DT_elt_zero_wide_safe.
4117 2001-10-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4119 * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
4120 * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
4121 (FUNCTION_PROFILER): Const-ify.
4122 * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
4123 (eliminate_constant_term, assemble_name, output_addr_const):
4124 Remove declarations.
4125 (ptr_half_pic_address_p, half_pic_hash): Prototype.
4126 (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
4127 half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
4128 * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
4129 (half_pic_declare, half_pic_external): Const-ify.
4130 * toplev.c: Include "halfpic.h".
4132 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
4134 * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
4135 config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
4136 config/i386/i386.c, config/i386/i386-interix.h,
4137 config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
4138 config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
4139 config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
4140 config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
4141 config/sparc/sparc.c, config/m68hc11/m68hc11.c,
4142 config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
4143 config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
4146 * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
4147 ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
4148 c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
4149 collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
4150 haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
4151 regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
4152 system.h, toplev.c: Fix spelling errors.
4154 Sat Oct 27 17:32:04 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4156 * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
4158 * dwarf2out.c (reg_number): Abort if pseudo.
4159 (reg_loc_descriptor): Return 0 if pseudo.
4160 (is_based_loc): Return 0 if pseudo.
4161 (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
4163 (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
4164 (loc_descriptor): Return 0 if can't find location and handle 0
4165 return from recursive calls.
4166 (loc_descriptor_from_tree): Likewise.
4167 Fix handling of indirect.
4168 Also return 0 for PLACEHOLDER_EXPR.
4169 Clean up COMPONENT_REF cases.
4170 (add_AT_location_descriptor): Simplify, but handle 0 return from
4172 (add_const_value_attribute): Avoid shift count warning.
4173 (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
4174 Set comp_unit_die as context if not in function.
4176 * config/mips/mips-protos.h: Break up long lines.
4177 Remove needless #ifdef/#endif blocks.
4178 Don't declare functions declared in file made by genpreds or recog.h.
4179 * config/mips/mips.c (mips_output_function_prologue): TSIZE
4180 is now HOST_WIDE_INT; delete unneeded casts.
4181 * config/mips/mips.h: Don't use #elif.
4183 * expr.c (stor_constructor_field): Always call adjust_address.
4184 Copy TARGET before changing its alias set.
4185 (store_field): Likewise, for TO_RTX.
4186 (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
4188 (safe_from_p, case ADDR_EXPR): Properly check for conflict.
4189 (find_placeholder): Return 0 if can't find object.
4190 (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
4193 Sat Oct 27 16:31:23 CEST 2001 Jan Hubicka <jh@suse.cz>
4195 * ifcvt.c (if_convert): Call clear_aux_for_blocks.
4197 Sat Oct 27 12:12:09 CEST 2001 Jan Hubicka <jh@suse.cz>
4199 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
4200 merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
4201 (merge_blocks): Properly udpate life after making edge nonfallthru.
4202 * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
4204 2001-10-26 Kazu Hirata <kazu@hxi.com>
4206 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
4208 2001-10-26 Neil Booth <neil@daikokuya.demon.co.uk>
4210 * c-typeck.c (convert_arguments): When comparing for enumeral
4211 type equality, use TYPE_MAIN_VARIANT.
4212 * gcc.dg/Wconversion.c: New tests.
4214 2001-10-26 Kazu Hirata <kazu@hxi.com>
4216 * s390/s390.c: Fix comment typos.
4217 * s390/s390.h: Likewise.
4218 * s390/s390.md: Likewise.
4220 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
4222 * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
4223 (walk_tree): Use it for tail calls where appropriate.
4225 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
4227 * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
4228 non-local label_refs.
4230 2001-10-26 Kazu Hirata <kazu@hxi.com>
4232 * config/h8300/h8300.md (4 anonymous patterns): New.
4234 2001-10-26 Kazu Hirata <kazu@hxi.com>
4236 * config/h8300/h8300.c (get_shift_alg): Clean up. Return the
4237 algorithm through the shift_info structure.
4238 (emit_a_shift): Update the use of get_shift_alg.
4240 2001-10-27 Daniel Berlin <dan@cgsoftware.com>
4242 * sched-rgn.c: Remove bitset typedef.
4243 Change bitset to sbitmap in prototypes / variable types.
4245 Remove edgeset_bits.
4246 Remove edgeset_size.
4247 s/BITSET_ADD/SET_BIT/g
4248 s/BITSET_INVERT/sbitmap_ones/g
4249 s/BITSET_INTER/sbitmap_a_and_b/g
4250 s/BITSET_UNION/sbitmap_a_or_b/g
4251 s/BITSET_DIFFER/sbitmap_difference/g
4252 s/bitset_member/TEST_BIT/g
4253 (BITSET_*): Removed.
4254 (bitset_member): Removed.
4255 (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
4256 EXECUTE_IF_SET_IN_SBITMAP.
4257 (split_edges): Rewrite, use sbitmap functions instead of bitset
4259 (schedule_region): Allocate/free sbitmaps, rather than bitsets.
4261 2001-10-26 Andreas Schwab <schwab@suse.de>
4263 * reload1.c (emit_input_reload_insns): Fix parens in last
4264 (undocumented) change that was supposed to change only whitespace.
4266 Fri Oct 26 07:18:08 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4268 * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
4270 * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
4273 2001-10-26 Andreas Jaeger <aj@suse.de>
4275 * flow.c (clear_log_links): Remove unused variable.
4276 * cfgcleanup.c (cleanup_cfg): Likewise.
4278 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
4280 * tree-inline.c (remap_decl): Don't copy size and size_unit here.
4281 (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
4283 2001-10-26 Richard Henderson <rth@redhat.com>
4285 * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
4286 rename PV_REG to R27_REG.
4287 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
4288 (REG_CLASS_FROM_LETTER): Update.
4289 (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
4290 * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
4291 (udivsi3, modsi3, umodsi3): Likewise.
4292 (divdi3, udivdi3, moddi3, umoddi3): Likewise.
4294 2001-10-26 Richard Henderson <rth@redhat.com>
4296 * cfg.c (clear_aux_for_blocks): Split out of ...
4297 (free_aux_for_blocks): here.
4298 (clear_aux_for_edges): Split from ...
4299 (free_aux_for_edges): here.
4300 * basic-block.h: Declare them.
4301 * lcm.c (compute_antinout_edge): Use them.
4302 (compute_laterin, compute_available, compute_nearerout): Likewise.
4303 (optimize_mode_switching): Likewise.
4305 2001-10-26 Richard Henderson <rth@redhat.com>
4307 * Makefile.in (unstage*): Remove as, ld, collect-ld before
4308 moving everything back to the main build directory.
4310 2001-10-26 Christopher Faylor <cgf@redhat.com>
4312 * config/i386/cygwin.h: Search target specific include directory, if
4315 2001-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4317 * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
4318 of macro guards. Fix #endif comment.
4320 * output.h (default_exception_section, default_eh_frame_section):
4321 Move prototypes outside of macro guard.
4323 * crtstuff.c: Fix #endif comment.
4325 Thu Oct 25 12:21:58 2001 Jeffrey A Law (law@cygnus.com)
4327 * doc/md.texi (movMM): Clarify semantics of storing into a
4328 non-paradoxical SUBREG.
4330 2001-10-25 Zack Weinberg <zack@codesourcery.com>
4332 * langhooks.c (lang_hook_default_clear_binding_stack): New.
4333 (lang_hook_default_get_alias_set): Move next to other alias
4335 * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
4336 (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
4337 (LANG_HOOKS_INITIALIZER): Add it.
4338 * toplev.h (struct lang_hooks): Add clear_binding_stack.
4339 * toplev.c (compile_file): Call lang_hooks.clear_binding_stack
4340 instead of a loop calling poplevel.
4342 2001-10-25 Nick Clifton <nickc@cambridge.redhat.com>
4344 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
4345 occurrences of #elif with #if...#endif.
4347 2001-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4349 * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
4351 Thu Oct 25 08:46:06 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4353 * alias.c (can_address_p): No longer static.
4354 * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
4355 Return 0 if all parameters are default values.
4356 (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
4357 (adjust_address_1): Try harder to compute a size.
4358 * expr.c (expand_assignment, store_constructor): If can't address,
4359 set MEM_KEEP_ALIAS_SET_P.
4360 (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
4361 (store_field): Likewise.
4362 (store_constructor): Simplify call to store_constructor_field.
4363 * expr.h (can_address_p): New declaration.
4364 * gensupport.c (gen_rtx_CONST_INT): New function.
4365 * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
4366 (MEM_SIZE): Get size from mode, if not set and not BLKmode.
4367 (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
4369 * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
4371 2001-10-24 Christopher Faylor <cgf@redhat.com>
4373 * config/i386/cygwin.h: Use proper path for mingw crt files when
4376 Wed Oct 24 18:43:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4378 * dwarf2out.c (file_info_cmp): Always return consistent results.
4380 2001-10-24 Roger Sayle <roger@eyesopen.com>
4382 * stmt.c (expand_end_case): Index jumptables from zero for
4383 suitably small values of minval.
4385 2001-10-24 Jakub Jelinek <jakub@redhat.com>
4387 * stor-layout.c (place_union_field): If any field was aligned with
4388 attribute aligned, set record type's TYPE_USER_ALIGN.
4389 (place_field): Likewise.
4390 (finalize_record_size): Don't clear TYPE_USER_ALIGN.
4391 (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
4393 2001-10-24 Zack Weinberg <zack@codesourcery.com>
4395 * c-common.h (struct c_common_identifier): Remove rid_code field.
4396 (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
4398 * c-typeck.c (constructor_designated): New local flag.
4399 (struct constructor_stack): Add "designated" field to match.
4400 (start_init): Clear it.
4401 (really_start_incremental_init, push_init_level): Push and
4403 (pop_init_level): Pop it.
4404 (set_designator): Set it.
4406 (pop_init_level): Suppress "missing initializer" warnings if
4407 constructor_designated is true.
4408 (process_init_element): Suppress warning about union
4409 initialization under traditional C, if constructor_designated
4412 Wed Oct 24 15:35:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4414 * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
4417 Wed Oct 24 13:26:12 2001 Jeffrey A Law (law@cygnus.com)
4419 * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
4421 2001-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4423 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
4424 the node was already a set to a constant.
4426 Wed Oct 24 12:41:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4428 * emit-rtl.c (set_mem_attributes): Fix typo in last change.
4429 * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
4431 2001-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4433 * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
4434 (ASM_OUTPUT_ASCII): Const-ify. Fix signed/unsigned warning.
4435 (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
4436 * s390.c (s390_final_chunkify): Don't use string concatenation.
4437 (s390_function_prologue, s390_function_epilogue): Const-ify.
4438 * s390.h (FUNCTION_PROFILER): Remove unused variable.
4440 2001-10-24 Jakub Jelinek <jakub@redhat.com>
4442 * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
4445 2001-10-23 Stan Shebs <shebs@apple.com>
4447 * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
4448 -traditional-cpp in first-stage compilation.
4450 Tue Oct 23 21:45:40 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4452 * gensupport.c (target_flags): Add.
4454 Tue Oct 23 13:05:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
4456 * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
4458 (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
4459 * except.c (expand_builtin_frob_return_addr): Likewise.
4460 (expand_builtin_eh_return): Likewise.
4461 * stmt.c (expand_computed_goto): Likewise.
4462 * explow.c (memory_address): Likewise.
4463 (allocate_dynamic_stack_space): Clean up predicate testing.
4464 (probe_stack_range): Convert SIZE to Pmode.
4465 * calls.c (rtx_for_function_call): Only call convert_memory_address
4467 Pass function call operand as ptr_mode, not Pmode.
4468 * expr.c (expand_assignment): Clean up calls to convert_memory
4469 address by only doing so when needed and making offsets Pmode.
4470 (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
4471 * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
4472 is in Pmode, not ptr_mode.
4474 2001-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4476 * darwin-protos.h (constructor_section, destructor_section,
4477 mod_init_section, mod_term_section): Prototype.
4478 * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
4480 * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
4482 (SECTION_FUNCTION): Prototype `FUNCTION'. Delete
4483 objc_section_init declaration.
4484 (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
4485 (objc_section_init, try_section_alias): Make static.
4486 (alias_section): Make static and hide unused function.
4487 (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
4489 Tue Oct 23 13:05:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4491 * alias.c (can_address_p): Compnonents are not addressable if
4492 the containing type has alias set 0.
4493 (get_alias_set): Rework to use STRIP_NOPS.
4494 Only call front-end routine on object, type, or object with
4495 NOPs stripped, not inner values.
4496 Use language hook to call front-end routine.
4497 * builtins.c (get_memory_rtx): Always call set_mem_attributes.
4498 (expand_builtin_apply): Call set_mem_align on MEMs we make.
4499 Don't pass alignment to emit_block_move.
4500 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
4501 (expand_builtin_memset): Likewise, but for clear_storage.
4502 * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
4503 and remove C++ specific parts.
4504 * c-common.h (c_common_get_alias_set): Add declaration.
4505 * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
4506 * calls.c (emit_call_1): Fix typo in sibcall_pop case.
4507 (save_fixed_argument_area): Call set_mem_align.
4508 Remove alignment in call to emit_block_move.
4509 (emit_library_call_value_1, store_one_arg): Likewise.
4510 (target_for_arg): Remove; disabled long ago.
4511 * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
4512 once and similar cleanups.
4513 (offset_address): Use proper introductory comment.
4514 * expr.c (emit_block_move): Use alignment from that of MEM args, not
4515 from explicit operand; all callers changed.
4516 (clear_storage): Likewise.
4517 (expand_assignment): Don't call set_mem_alias_set on to_rtx.
4518 (store_field): Remove kludge on alias set used for to_rtx.
4519 (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
4520 (expand_expr_unaligned): Call set_mem_attributes instead of
4522 * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
4523 * function.c (assign_stack_temp_for_type): Set MEM alignment.
4524 (expand_function_end): Track MEM attributes of trampolines.
4525 * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
4526 * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
4527 attributes from original.
4528 * langhooks.c (lang_hook_default_get_alias_set): New function.
4529 (hook_get_alias_set_0): New function.
4530 * langhooks.h (hook_get_alias_set_0): New declaration.
4531 (lang_hook_default_get_alias_set): Likewise.
4532 (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
4533 * reload1.c (alter_reg): Use adjust_address_nv.
4534 * rtl.c (get_mode_alignment): Moved to here.
4535 * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
4536 change default if unknown from 1 to BITS_PER_UNIT.
4537 * stor-layout.c (get_mode_alignment): Remove from here.
4538 * toplev.h (struct lang_hoks): Add get_alias_set field.
4539 * tree.h (lang_get_alias_set): Delete declaration.
4540 * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
4541 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
4542 (ix86_va_arg): Likewise.
4543 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
4544 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4545 * config/sparc/sparc.c (sparc_va_arg): Likewise.
4546 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4547 (expand_block_move_mem): Remove dead code.
4549 2001-10-22 Neil Booth <neil@daikokuya.demon.co.uk>
4551 * c-common.c (warn_div_by_zero): New.
4552 * c-common.h (warn_div_by_zero): New.
4553 * c-decl.c (c_decode_option): Take it on the command line.
4554 * c-typeck.c (build_binary_op): Warn about division by zero.
4555 * doc/invoke.texi: Document the new command line option, fix
4556 documentation of -Wmultichar.
4557 * testsuite/gcc.dg/divbyzero.c: New tests.
4558 * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
4560 Tue Oct 23 15:30:23 CEST 2001 Jan Hubicka <jh@suse.cz>
4562 * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
4564 * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
4565 to avoid update_life_info call.
4566 * basic-block.h (CLEANUP_UPATE_LIFE): Define.
4567 * cfgcleanup.c (bb_flags): New enum.
4568 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
4569 (notice_new_block, update_forwarder_flag): New functions.
4570 (try_simplify_condjump): Use FORWARDER_BLOCK_P.
4571 (try_forward_edges): Likewise; update flags.
4572 (merge_blocks): Likewise.
4573 (outgoing_edges_match): Likewise.
4574 (try_crossjump_to_edge): Likewise.
4575 (try_optimize_cfg): Likewise; initialize and clear the flags;
4576 recompute life info if needed.
4577 (cleanup_cfg): No need to clear aux pointers.
4579 2001-10-23 Alexandre Oliva <aoliva@redhat.com>
4581 * config/i386/i386.c (override_options): Default to minimum
4582 stack alignment when optimizing for code size.
4583 * doc/invoke.texi (-mpreferred-stack-boundary): Document the
4586 * config/i386/i386.c (override_options): Set upper limit of
4587 -mpreferred-stack-boundary to 12.
4589 2001-10-22 Zack Weinberg <zack@codesourcery.com>
4591 * recog.c (peephole2_optimize): Add default case to switch.
4593 2001-10-23 Joseph S. Myers <jsm28@cam.ac.uk>
4595 * doc/gcc.texi (Sending Patches): Remove.
4597 2001-10-22 Hans-Peter Nilsson <hp@bitrange.com>
4599 * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
4600 fields when comparing.
4602 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4604 * arm.h (HOST_INT, HOST_UINT): Delete. Remove all uses.
4605 * arm.c (HOST_INT, HOST_UINT): Likewise.
4607 2001-10-22 Stan Shebs <shebs@apple.com>
4609 * config/darwin-protos.h (darwin_exception_section): Declare.
4610 (darwin_eh_frame_section): Declare.
4612 Mon Oct 22 18:21:25 CEST 2001 Jan Hubicka <jh@suse.cz>
4614 * i386.md (movti_rex64): Fix mode.
4616 2001-10-22 Stan Shebs <shebs@apple.com>
4618 * target.h (struct gcc_target): Add asm_out.exception_section,
4619 asm_out.eh_frame_section.
4620 * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
4621 (TARGET_ASM_EH_FRAME_SECTION): New.
4622 (TARGET_INITIALIZER): Update.
4623 * output.h (default_exception_section): Declare.
4624 (default_eh_frame_section): Declare.
4625 * dwarf2out.c: Include target.h.
4626 (output_call_frame_info): Call target hook for eh frames.
4627 (default_eh_frame_section): New function.
4628 * except.c: Include target.h.
4629 (output_function_exception_table): Call target hook for exception
4631 * varasm.c (default_exception_section): Rename from
4632 exception_section, remove EXCEPTION_SECTION macro.
4634 * config/darwin.h (darwin_eh_frame_section): New function.
4635 (EXCEPTION_SECTION): Remove.
4636 (TARGET_ASM_EXCEPTION_SECTION): Define.
4637 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
4638 (nextstep_exception_section): New function.
4639 (nextstep_eh_frame_section): New function.
4640 (TARGET_ASM_EXCEPTION_SECTION): Define.
4641 (TARGET_ASM_EH_FRAME_SECTION): Define.
4643 * config/pa/som.h (EXCEPTION_SECTION): Remove.
4644 (TARGET_ASM_EXCEPTION_SECTION): Define.
4645 * config/rs6000/sysv4.h, config/rs6000/xcoff.h
4646 (EXCEPTION_SECTION): Remove.
4647 (TARGET_ASM_EXCEPTION_SECTION): Define.
4648 * config/stormy16/stormy16.h: Remove comments referencing
4649 EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
4651 * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
4652 TARGET_ASM_EH_FRAME_SECTION.
4654 2001-10-22 Nick Clifton <nickc@cambridge.redhat.com>
4656 * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
4659 * c-format.c: Fix spelling typo in comment.
4661 * sched-int.h: Fix typo in GCC preamble.
4663 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
4666 * doc/invoke.texi: Remove references to -fdump-translation-unit.
4668 2001-10-22 Richard Henderson <rth@redhat.com>
4670 * config/i386/i386.c (ix86_expand_clear): New.
4671 * config/i386/i386-protos.h: Declare it.
4672 * config/i386/i386.md (setcc peep2s): Use it.
4673 (movsi_xor): Unexport.
4675 2001-10-22 Richard Henderson <rth@redhat.com>
4677 * flow.c (clear_log_links): Use free_INSN_LIST_list, not
4678 free_EXPR_LIST_list for LOG_LINKS.
4680 2001-10-21 Robert Lipe <robertlipe@usa.net>
4682 * config/i386/i386.c (sco_asm_named_section): Delete.
4683 (sco_asm_out_constructor): Delete.
4684 * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
4685 (ASM_OUTPUT_DOUBLE_INT): Likewise.
4686 (TARGET_ASM_CONSTRUCTOR): Delete. Use default.
4687 (TARGET_ASM_NAMED_SECTION): Use default for ELF.
4688 (EXCEPTION_SECTION): Delete EH scn renaming hack.
4690 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4692 * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
4693 and/or fold extra calls into fewer ones.
4694 * collect2.c (dump_file): Likewise.
4695 * cppexp.c (parse_number): Likewise.
4696 * cpplex.c (_cpp_lex_direct): Likewise.
4697 * final.c (output_asm_insn, asm_fprintf): Likewise.
4698 * fix-header.c (inf_scan_ident, main): Likewise.
4699 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4701 * fold-const.c (real_hex_to_f): Likewise.
4702 * gen-protos.c (parse_fn_proto): Likewise.
4703 * genattrtab.c (check_attr_test, check_attr_value): Likewise.
4704 * genrecog.c (change_state, write_action): Likewise.
4705 * gensupport.c (shift_output_template): Likewise.
4706 * local-alloc.c (requires_inout): Likewise.
4707 * mips-tfile.c (IS_ASM_IDENT): Likewise.
4708 * protoize.c (is_id_char, main): Likewise.
4709 * real.c (asctoeg): Likewise.
4710 * recog.c (asm_operand_ok): Likewise.
4711 * reload.c (find_reloads): Likewise.
4712 * scan.c (scan_identget_token): Likewise.
4713 * sched-vis.c (print_value): Likewise.
4714 * stringpool.c (ggc_alloc_string): Likewise.
4715 * toplev.c (read_integral_parameter, decode_g_option): Likewise.
4716 * tradcif.y (parse_number, yylex, parse_escape): Likewise.
4717 * tradcpp.c (rescan): Likewise.
4718 * tree.c (clean_symbol_name): Likewise.
4719 * varasm.c (decode_reg_name): Likewise.
4721 * alpha.h (ASM_OUTPUT_ASCII): Likewise.
4722 * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
4723 * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
4724 * m88k.c (output_ascii): Likewise.
4725 * m88k.h (OVERRIDE_OPTIONS): Likewise.
4726 * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
4727 * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
4728 * sh.h (REG_CLASS_FROM_LETTER): Likewise.
4730 2001-10-21 Neil Booth <neil@daikokuya.demon.co.uk>
4732 * langhooks.c (lang_hook_default_do_nothing,
4733 lang_hook_default_decode_option): New defaults.
4734 * langhooks.h: Make hooks unconditional and non-NULL.
4735 * toplev.c (compile_file, toplev_main): Update.
4736 * toplev.h: Update comments.
4737 * objc/objc-act.c (lang_hooks): Update to new paradigm.
4739 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4741 * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
4743 * system.h (IN_RANGE): New macro.
4745 2001-10-21 Zack Weinberg <zack@codesourcery.com>
4747 * aclocal.m4 (AM_WITH_NLS): Also create and substitute
4748 INTLDEPS variable, which does not include $LIBICONV.
4749 * Makefile.in: Use INTLDEPS in LIBDEPS.
4750 * configure: Regenerate.
4752 2001-10-21 Neil Booth <neil@daikokuya.demon.co.uk>
4754 * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
4755 * cpplex.c (lex_percent, lex_dot): Remove.
4756 (get_effective_char, skip_block_comment, skip_line_comment,
4757 parse_identifier_slow, parse_number, parse_string, save_comment,
4758 _cpp_lex_direct): Update to do lookback freely.
4759 (IF_NEXT_IS, BACKUP): New macros.
4760 * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
4761 * cppmacro.c (paste_tokens): Update.
4763 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
4765 * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
4767 2001-10-20 Hans-Peter Nilsson <hp@axis.com>
4769 * reload1.c (reload): Check CONSTANT_P before calling
4770 LEGITIMATE_PIC_OPERAND_P.
4771 * config/cris/cris.c (cris_legitimate_pic_operand): Revert
4772 workaround of 2001-10-13.
4774 Sat Oct 20 15:16:10 CEST 2001 Jan Hubicka <jh@suse.cz>
4776 * i386.c (split_di): Handle splitting of DFmode.
4778 Sat Oct 20 07:27:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4780 * emit-rtl.c (set_mem_attributes): Alignment is in bits.
4781 (adjust_address_1, offset_address): Likewise.
4783 * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
4784 (output_asm_insn): Call it for each line output.
4785 Don't record an operand more than once.
4787 * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
4788 * main.c: Include config.h and system.h, but not ansidecl.h.
4789 * Makefile.in (main.o): Update accordingly.
4791 Sat Oct 20 12:05:31 CEST 2001 Jan Hubicka <jh@suse.cz>
4793 * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
4795 Sat Oct 20 12:01:07 CEST 2001 Jan Hubicka <jh@suse.cz>
4797 * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
4798 * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
4800 (find_sub_basic_blocks): ... here;
4801 (find_many_sub_basic_blocks): New.
4802 * recog.c (split_all_insns): Update find_sub_basic_blocks call.
4804 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
4806 * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
4808 * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
4810 * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
4811 * flow.c (update_life_info): Measure time.
4812 * c-decl.c: Include timevar.h
4813 (c_expand_body): Measure time.
4814 * toplev.c (rest_of_compilation): Measure time of mode switching
4816 * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
4818 * toplev.c (flag_asynchronous_unwind_tables): New global variable.
4819 (lang_independent_options): Add asynchronous-unwind-tables
4820 (toplev_main): flag_asynchronous_unwind_tables implies
4822 * flags.h (flag_asynchronous_unwind_tables): Declare.
4823 * dwarf2out.c (dwarf2out_stack_adjust): Take into account
4824 flag_asynchronous_unwind_tables.
4825 (output_call_frame_info): Likewise.
4826 * invoke.texi (-fasynchronous-unwind-tables): Document.
4827 * i386.c (optimization_options): Enable
4828 flag_asynchronous_unwind_tables.
4830 * i386.c (ix86_expand_setcc): Always expect target to be QImode.
4831 * i386.md (s* expanders): Destination is QImode.
4833 * toplev.c (rest_of_compilation): Do not call clear_log_links.
4834 * rtl.h (clear_log_links): Kill.
4835 * flow.c (clear_log_links): Make static; accept blocks parameter;
4836 do no clear life info.
4837 (update_life_info): Call clear_log_links.
4839 * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
4841 2001-10-20 Neil Booth <neil@daikokuya.demon.co.uk>
4843 * cpplex.c (handle_newline, skip_escaped_newlines,
4844 get_effective_char, skip_block_comment, skip_line_comment,
4845 parse_identifier_slow, parse_number, parse_string,
4846 _cpp_lex_direct): Update to do more stepping back.
4847 (trigraph_ok): Similarly. Rename trigraph_p.
4848 (SAVE_STATE, RESTORE_STATE): Remove.
4849 (BUFF_SIZE_UPPER_BOUND): Tweak. Add sanity check.
4851 * cpplib.c (destringize): Rename destringize_and_run, and
4852 call run_directive directly.
4853 (_cpp_do__Pragma): Simplify.
4855 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4857 * pe.c (arm_pe_unique_section): Const-ify.
4858 * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4859 (switch_to_section): Add static prototype.
4861 * output.h (drectve_section): Prototype.
4863 2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4865 * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
4866 fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
4867 parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
4868 i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
4869 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4870 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
4871 i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
4872 i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
4873 i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
4874 i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
4875 i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
4876 i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
4877 ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
4878 mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
4879 powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4880 powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4881 powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4882 powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4883 powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4884 powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
4885 rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
4886 sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
4887 v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
4888 cris-*-none, cris-*-linux*: Update ${tmfile} list.
4889 (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
4890 i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
4891 mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
4892 powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
4893 v850-*-*): Delete superflous ${cpu_type} setting.
4894 * config/linux.h: Delete svr4.h include.
4895 (SET_ASM_OP): Delete.
4896 * config/netware.h (INT_ASM_OP): Undef before define.
4897 * config/ptx4.h: Delete elfos.h include.
4898 (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
4899 * config/svr4.h: Delete elfos.h include. Update commentary.
4900 * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
4901 config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
4902 config/mn10200/mn10300.h, config/stormy16/stormy16.h,
4903 config/v850/v850.h: Delete svr4.h include.
4904 * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
4905 config/m68k/m68kv4.h, config/m88k/sysv4.h,
4906 config/sparc/sysv4.h: Update includes.
4907 * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
4908 config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
4909 config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
4910 config/m88k/dguxbcs.h: Delete includes.
4911 * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
4912 (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
4913 * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
4915 * config/m88k/dgux.h: Delete include.
4916 (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Undef before
4918 * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
4919 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
4920 * config/sh/elf.h: Update include.
4921 (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4922 DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
4924 2001-10-19 Catherine Moore <clm@redhat.com>
4926 * config/stormy16/stormy-abi: Updates to varargs descriptions.
4927 * config/stormy16/stormy16.c (stormy16_build_va_list): Reverse
4928 base and count fields.
4929 (stormy16_expand_builtin_va_start): last_reg_count changed to
4930 size_of_reg_args. Use count + size in first comparison.
4932 Fri Oct 19 15:24:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4934 * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
4935 * toplev.h (struct lang_hooks): New field HONOR_READONLY.
4936 * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
4937 TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
4938 Set alignment from type if INDIRECT_REF.
4939 (adjust_address_1, offset_address): Simplify alignment compuitation.
4940 * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
4941 here; done by set_mem_attributes.
4943 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4945 * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
4946 * arm-protos.h (rdata_section, zero_init_section, common_section):
4948 * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
4949 * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
4950 traditional mode stringification.
4951 * function.c (thread_prologue_and_epilogue_insns): Wrap variable
4952 in macros controling its use.
4953 * rtlanal.c: Include tm_p.h.
4954 * varasm.c (asm_output_aligned_bss): Mark parameter with
4956 (assemble_constant_align, assemble_start_function, assemble_align,
4957 assemble_variable, assemble_trampoline_template,
4958 output_constant_def_contents): Wrap potentially empty if-stmt body
4961 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4963 * a29k-protos.h (literal_section): Prototype.
4964 * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
4965 * a29k.md: Ensure function pointers are prototyped.
4966 * genattrtab.c (write_eligible_delay): Mark parameter with
4969 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4971 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
4972 * 1750a.c (print_operand): Fix format specifier warning.
4973 * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
4974 * 1750a.md: Likewise.
4975 * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
4976 * genemit.c (output_add_clobbers): Mark parameter with
4978 * genrecog.c (write_subroutine): Likewise.
4979 * integrate.c (expand_inline_function): Delete unused variable.
4980 * varasm.c (remove_from_pending_weak_list): Wrap with
4983 2001-10-19 Jakub Jelinek <jakub@redhat.com>
4985 * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
4986 field is different to previous argument's neg field.
4988 * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
4990 Fri Oct 19 15:24:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4992 * final.c (get_decl_from_op): New function.
4993 (output_asm_insn): Call it; write "*" when item with decl is address.
4995 2001-10-19 Janis Johnson <janis187@us.ibm.com>
4997 * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
4998 about 64-bit support from the 3.0_branch version.
5000 2001-10-19 Zack Weinberg <zack@codesourcery.com>
5002 * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
5003 USE_INCLUDED_LIBINTL when appropriate.
5004 * configure, config.in: Regenerate.
5005 * Makefile.in (datadir): Set to @datadir@.
5006 (intl.o): Also depend on $(CONFIG_H) and system.h.
5008 * intl.c: Factor out common gettext initialization sequence.
5009 (gcc_init_libintl): New function.
5010 * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
5011 otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
5012 off NLS. Add multiple include guard. No need to #ifdef-guard
5013 an #undef. Prototype gcc_init_libintl here.
5015 * collect2.c (main), cppmain.c (general_init), gcc.c (main),
5016 gcov.c (main), protoize.c (main), toplev.c (toplev_main):
5017 Use gcc_init_libintl.
5019 2001-10-19 Catherine Moore <clm@redhat.com>
5021 * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
5023 * config/stormy16/stormy16.c (stormy16_split_move): Make
5024 sure that REG_INC notes are present for auto_inc operands.
5026 2001-10-19 Andreas Jaeger <aj@suse.de>
5028 * configure: Regenerated.
5029 * configure.in: Add x86_64 to switch statements.
5031 2001-10-18 Richard Henderson <rth@redhat.com>
5033 * config/alpha/alpha.md (sibcall_osf_1): Load destination
5034 address into $27 explicitly.
5035 (sibcall_value_osf_1): Likewise.
5037 Thu Oct 18 16:07:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5039 * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
5040 (offset_address): New function.
5041 (free_emit_status): Free regno_decl.
5042 (init_emit): Pass proper number of elements to xcalloc.
5043 Allocate regno_decl.
5044 (mark_emit_status): Mark regno_decl values.
5045 * expr.c (highest_pow2_factor): New function.
5046 (expand_assigment): Use it and offset_address.
5047 Properly handle ptr_mode vs. Pmode in offset calculation.
5048 (store_constructor, expand_expr_unaligned): Likewise.
5049 (expand_expr, case COMPONENT_EXPR): Likewise.
5050 * expr.h (offset_address): New decl.
5051 * function.h (struct emit_status): Add regno_decl.
5052 (REGNO_DECL): New macro.
5053 * final.c (output_asm_name): Move in file and don't conditionalize
5054 on flag_print_asm_name.
5055 (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
5056 Output names of operands, if known.
5057 * function.c (assign_parms): Set REGNO_DECL.
5058 * integrate.c (integrate_decl_tree): Likewise.
5059 * stmt.c (expand_decl): Likewise.
5060 * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
5062 2001-10-18 Alexandre Oliva <aoliva@redhat.com>
5064 * attribs.c (handle_noinline_attribute): New function.
5065 (handle_used_attribute): Likewise.
5066 (c_common_attribute_table): Added noinline and used.
5067 * doc/extend.texi (Function Attributes): Document them.
5068 * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
5069 Warn when merging inline with attribute noinline.
5070 (start_decl, start_function): Warn if inline and attribute
5071 noinline appear in the same declaration.
5073 2001-10-17 Neil Booth <neil@daikokuya.demon.co.uk>
5075 * config.gcc: Update c4x and i370 for C front end-specific
5077 * config/c4x/c4x-c.c: New.
5078 * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
5079 (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
5081 * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
5082 (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
5084 (c4x_init_pragma): Remove.
5085 (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
5086 c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
5087 c4x_pr_ignored): Move to c4x-c.c.
5088 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
5089 * config/c4x/t-c4x: Update.
5090 * config/i370/i370-c.c: New.
5091 * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
5092 (i370_pr_map): Move to i370-c.c.
5093 * config/i370/t-i370: New.
5095 * doc/tm.texi: Update.
5097 2001-10-17 Stan Shebs <shebs@apple.com>
5099 * config/rs6000/rs6000.c: Make assorted mechanical formatting and
5100 typo fixes throughout.
5101 (machopic_output_stub): Remove some dead code.
5103 2001-10-17 Richard Earnshaw <rearnsha@arm.com>
5105 * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
5108 Wed Oct 17 05:26:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5110 * Makefile.in (print-rtl.o): Depend on TREE_H.
5111 * alias.c (get_alias_set): Make two passes over objects to first
5112 see if inner object is access via restricted pointer.
5113 Defer allocating alias set for restricted pointer until here.
5114 Call find_placeholder with second arg nonzero.
5116 * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
5117 set for restricted pointer types.
5118 * emit-rtl.c (set_mem_attributes): Set more attributes.
5119 (set_mem_align, change_address, adjust_address_1): New functions.
5120 (change_address_1): Now static.
5121 (adjust_address, adjust_address_nv): Deleted.
5122 (replace_equiv_address): Call change_address_1.
5123 * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
5124 (find_placeholder): Get starting point from PLIST arg.
5125 (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
5126 * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
5127 (adjust_address, adjust_address_nv): New macros.
5128 * print-rtl.c (tree.h): New include.
5129 (print_rtx, case MEM): Print all memory attributes.
5131 2001-10-17 Richard Henderson <rth@redhat.com>
5133 * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
5135 2001-10-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
5137 * c-tree.texi: Eliminate duplicated word.
5138 * cpp.texi: Likewise.
5139 * install.texi: Likewise.
5140 * invoke.texi: Likewise.
5141 * tm.texi: Likewise.
5143 2001-10-17 Michael Collison <collison@isisinc.net>
5145 * dsp16xx.c: Fix comment formatting to match GNU standards.
5146 (dsp16xx_output_function_prologue): Change type of 'size'
5147 parameter from 'int' to HOST_WIDE_INT.
5148 (dsp16xx_output_function_epilogue): Change type of 'size'
5149 parameter from 'int' to HOST_WIDE_INT.
5151 2001-10-16 Richard Henderson <rth@redhat.com>
5153 * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
5154 * configure, config.in: Rebuild.
5156 * config/i386/i386.c (ix86_output_addr_vec_elt): New.
5157 (ix86_output_addr_diff_elt): New.
5158 * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
5159 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5160 (JUMP_TABLES_IN_TEXT_SECTION): New.
5161 * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
5162 * config/i386/i386-protos.h: Update.
5164 * config/i386/386bsd.h, config/i386/beos-elf.h,
5165 config/i386/freebsd-aout.h, config/i386/freebsd.h,
5166 config/i386/i386-interix.h, config/i386/i386elf.h,
5167 config/i386/linux.h, config/i386/netbsd-elf.h,
5168 config/i386/netbsd.h, config/i386/openbsd.h,
5169 config/i386/ptx4-i.h, config/i386/rtemself.h,
5170 config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
5171 (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
5173 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
5175 * stmt.c (expand_asm_operands): Update commentary.
5177 2001-10-16 Stan Shebs <shebs@apple.com>
5179 * config/darwin.h (GCC_NAME): Remove, no longer used.
5180 (NO_MATH_LIBRARY): Ditto.
5181 (MATH_LIBRARY): Define to emptiness.
5182 (DWARF2_DEBUGGING_INFO): Define.
5183 (PREFERRED_DEBUGGING_TYPE): Define.
5184 (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
5185 (EXCEPTION_SECTION): Define.
5186 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5187 * config/darwin.c (darwin_encode_section_info): Handle case of
5188 DECL_INITIAL being error_mark_node.
5190 2001-10-16 Richard Henderson <rth@redhat.com>
5192 * alpha.c (current_file_function_operand): Don't fail for profiling.
5193 (direct_call_operand): New.
5194 * alpha-protos.h: Declare it.
5195 * alpha.h (EXTRA_CONSTRAINT): Use it.
5196 (PREDICATE_CODES): Add it.
5197 (ASM_OUTPUT_MI_THUNK): Remove.
5198 * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
5199 * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
5201 2001-10-16 Krister Walfridsson <cato@df.lth.se>
5203 * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
5204 (JUMP_TABLES_IN_TEXT_SECTION): Define.
5206 Wed Oct 17 00:21:31 CEST 2001 Jan Hubicka <jh@suse.cz>
5208 * cfg.c (free_edge): Break out from ....
5209 (remove_edge): ... here.
5210 (clear_edges): Use free_edge.
5212 * att.h (ASM_QUAD): Add comment.
5213 * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
5215 Wed Oct 17 00:01:02 CEST 2001 Jan Hubicka <jh@suse.cz>
5217 * i386.c (split_ti): New function.
5218 (ix86_split_to_parts): Support TImodes.
5219 * i386.h (VALID_INT_MODE_P): Add TImode.
5220 * i386.md (movdi splitter): Fix.
5221 (movti): Support 64bit integer registers.
5222 (movti_rex64): New function and splitter.
5224 * i386.c (*_cost): Add movsx/movzx cost.
5225 * i386.h (struct processor_costs): Add movsx/movzx fields.
5226 (RTX_COSTS): Handle zero/sign extend + avoid believing that
5227 64bit operations require split on 64bit machine.
5228 (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
5230 * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
5231 (ix86_expand_move): Avoid pushes of memory if size does not match;
5232 move long constants to register.
5233 (x86_initialize_trampoline): Fix mode.
5234 * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
5235 Use ASM_QUAD on 64bit.
5236 * i386.md (test pattern): Disallow impossible constants.
5237 (tablejump PIC expander): Fix emitting of sum.
5238 (movdicc_rex64): Rename to movdicc.
5239 * linux64.h (LINK_SPEC): Add missing '%'.
5241 2001-10-16 Alexandre Oliva <aoliva@redhat.com>
5243 * tree-inline.c (inlinable_function_p): Leave it up to the
5244 front-end to turn -finline-functions into DECL_INLINE set for all
5247 2001-10-16 Stan Shebs <shebs@apple.com>
5249 * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
5251 2001-10-16 Alan Modra <amodra@bigpond.net.au>
5253 * recog.c: Formatting and comment typo fixes.
5255 * configure.in (gcc_cv_as_bfd_srcdir): New. Use it to find gas
5256 version in single tree build.
5257 * configure: Regenerate.
5259 2001-10-15 David Edelsohn <edelsohn@gnu.org>
5261 * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
5262 MODE arguments to gen_rtx and compare operand with const0_rtx.
5264 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
5266 * system.h: Poison old unused target macros.
5267 * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
5268 * config/stormy16/stormy16.c: Update references to obsolete macros.
5269 * config/stormy16/stormy16.h: Similarly.
5270 * config/stormy16/stormy16.md: Similarly.
5271 * config/cris/cris.h: Similarly.
5273 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
5275 * cpplib.c (struct pragma_entry): Store the name as a hashnode.
5276 (lookup_pragma_entry, insert_pragma_entry, do_pragma,
5277 cpp_register_pragma): Update accordingly.
5279 2001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
5281 * c-pragma.h (cpp_register_pragma_space): Remove.
5282 * cpplib.h (cpp_register_pragma_space): Remove.
5283 * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
5284 (cpp_register_pragma_space): Remove.
5285 (cpp_register_pragma): Simplify using lookup_pragma_entry,
5287 (do_pragma): Similarly.
5288 (_cpp_init_internal_pragmas): Don't register namespaces.
5290 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
5291 Don't register namespaces.
5292 * cp/lex.c (init_cp_pragma): Similarly.
5293 * doc/tm.texi: Update.
5295 2001-10-10 Craig Rodrigues <rodrigc@gcc.gnu.org>
5298 * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
5300 2001-10-13 Michael Collison <collison@dhcp-12-114.townisp.com>
5302 * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
5303 add scheduling support.
5304 * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
5305 * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
5306 * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
5309 2001-10-13 Hans-Peter Nilsson <hp@axis.com>
5311 * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
5312 missing CONSTANT_P test in core GCC.
5314 2001-10-12 Neil Booth <neil@daikokuya.demon.co.uk>
5316 * cppmain.c (struct printer): New member source.
5317 (scan_translation_unit): Fix spacing at start of lines.
5318 (cb_line_change): Update.
5320 * gcc.dg/cpp/spacing2.c: New test.
5322 2001-10-12 Hans-Peter Nilsson <hp@axis.com>
5324 * config/cris/arit.c: Use __builtin_labs, not abs.
5326 * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
5328 * config/cris/cris.c (cris_target_asm_function_epilogue): Move
5329 misplaced sprintf and fprintf argument.
5331 2001-10-12 Zack Weinberg <zack@codesourcery.com>
5333 * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
5334 * configure.in, Makefile.in: Take out obsolete check-po logic.
5335 * configure, config.in: Regenerate.
5337 2001-10-12 Ziemowit Laski <zlaski@apple.com>
5339 * objc/objc-act.c (finish_objc): Correct precondition for emitting
5340 symtab declarations.
5342 2001-10-12 Stan Shebs <shebs@apple.com>
5344 * config/rs6000/rs6000.c: Remove uses of "register" specifier in
5345 declarations of arguments and local variables.
5347 2001-10-12 Christopher Faylor <cgf@redhat.com>
5349 * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
5350 ENDFILE_SPEC definition.
5352 2001-10-12 Kazu Hirata <kazu@hxi.com>
5354 * gthr-dce.h: Fix comment formatting.
5355 * gthr-posix.h: Likewise.
5356 * gthr-single.h: Likewise.
5357 * gthr-solaris.h: Likewise.
5358 * gthr-vxworks.h: Likewise.
5359 * gthr-win32.h: Likewise.
5361 2001-10-12 Jakub Jelinek <jakub@redhat.com>
5363 * final.c (output_asm_insn): Make sure assembly dialects are
5364 terminated, not nested. Output `|' and `}' characters if they
5365 don't appear inside assembly dialect selection.
5366 * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
5367 rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
5368 rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
5369 strsetsi_rex_1): Add {} braces.
5371 2001-10-11 Zack Weinberg <zack@codesourcery.com>
5373 * toplev.c (compile_file): Ignore return value from yyparse.
5374 Always pop any nested binding levels after yyparse returns.
5376 2001-10-11 Richard Henderson <rth@redhat.com>
5378 * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
5380 2001-10-11 Richard Henderson <rth@redhat.com>
5382 * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
5383 fall back to add_AT_long_long for large CONST_INT.
5385 2001-10-11 Richard Henderson <rth@redhat.com>
5387 * config/i386/i386.md (setcc splitters): Add four splitters to
5388 simplify compound compares that simplify_comparison can't handle.
5390 2001-10-11 Zack Weinberg <zack@codesourcery.com>
5392 * cpplex.c (digraph_spellings, token_spellings): Make static.
5394 2001-10-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5396 * unroll.c (loop_iterations): Fixup last patch.
5398 2001-10-11 Richard Henderson <rth@redhat.com>
5400 * rtl.h (REG_VTABLE_REF): New.
5401 * rtl.c (reg_note_name): Add it.
5402 * combine.c (distribute_notes): Handle it.
5403 * final.c (final_scan_insn): Handle it.
5404 * tree.def (VTABLE_REF): New.
5405 * expr.c (expand_expr): Handle it.
5406 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
5407 * output.h: Declare them.
5409 2001-10-11 Richard Henderson <rth@redhat.com>
5411 * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
5414 2001-10-11 David Edelsohn <edelsohn@gnu.org>
5416 * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
5417 available in 64-bit mode.
5419 2001-10-11 Hans-Peter Nilsson <hp@axis.com>
5421 * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
5422 cris-*-linux* cases.
5423 * config/cris/cris-protos.h: New file.
5424 * config/cris/cris.c: New file.
5425 * config/cris/cris.h: New file.
5426 * config/cris/cris.md: New file.
5427 * config/cris/linux.h: New file.
5428 * config/cris/aout.h: New file.
5429 * config/cris/arit.c: New file.
5430 * config/cris/cris_abi_symbol.c: New file.
5431 * config/cris/mulsi3.asm: New file.
5432 * config/cris/t-aout: New file.
5433 * config/cris/t-cris: New file.
5434 * config/cris/t-elfmulti: New file.
5435 * config/cris/t-linux: New file.
5436 * doc/invoke.texi: Add CRIS options.
5437 * doc/install.texi (Specific): Add blurb for CRIS.
5439 2001-10-10 Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
5441 * config/float-i128.h: Make sure __STDC__VERSION__ is defined
5443 * config/float/i32.h: Likewise.
5444 * config/float-i386.h: Likewise.
5445 * config/float-i64.h: Likewise.
5446 * config/float-m68k.h: Likewise.
5447 * config/float-sh.h: Likewise.
5448 * config/float-sparc.h: Likewise.
5450 2001-10-11 Hans-Peter Nilsson <hp@axis.com>
5452 * doc/contrib.texi: Add note about CRIS port to my entry.
5454 2001-10-11 Kazu Hirata <kazu@hxi.com>
5456 * basic-block.h: Fix formatting.
5457 * bitmap.h: Likewise.
5458 * cpplib.h: Likewise.
5459 * c-tree.h: Likewise.
5460 * diagnostic.h: Likewise.
5461 * flags.h: Likewise.
5463 * longlong.h: Likewise.
5465 * reload.h: Likewise.
5469 2001-10-10 Richard Henderson <rth@redhat.com>
5471 * c-parse.in (asm_operand): Allow named operands.
5472 * genconfig.c (max_recog_operands): Set to 29.
5473 * local-alloc.c (requires_inout): Skip multiple digits.
5474 * recog.c (asm_operand_ok): Likewise.
5475 (preprocess_constraints): Use strtoul for matching constraints.
5476 (constrain_operands): Likewise.
5477 * regmove.c (find_matches): Likewise.
5478 * reload.c (find_reloads): Likewise.
5479 * stmt.c (parse_output_constraint): Don't reject in-out
5480 constraint on operands > 9. Reject '[' in constraint.
5481 (expand_asm_operands): Handle named operands. Use strtoul
5482 for matching constraints.
5483 (check_operand_nalternatives): Split out from expand_asm_operands.
5484 (check_unique_operand_names): New.
5485 (resolve_operand_names, resolve_operand_name_1): New.
5487 * doc/extend.texi (Extended Asm): Document named operands.
5488 * doc/md.texi (Simple Constraints): Document matching constraints
5491 2001-10-10 Richard Henderson <rth@redhat.com>
5493 * combine.c (try_combine): Handle a SEQUENCE of one insn.
5495 * i386.c (test splitter): Narrow tests vs paradoxical subregs.
5496 (jcc splitters): Add two splitters to simplify compound compares
5497 that simplify_comparison can't handle.
5499 2001-10-10 Richard Henderson <rth@redhat.com>
5501 * langhooks.c: Include langhooks.h.
5502 * Makefile.in (langhooks.o): Depend on it.
5504 Wed Oct 10 23:49:06 EDT 2001 John Wehle (john@feith.com)
5506 * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
5507 should not be considered as a no-op.
5508 * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
5510 2001-10-10 Stan Shebs <shebs@apple.com>
5512 * alias.c: Remove uses of "register" specifier in declarations
5513 of arguments and local variables.
5514 * c-common.c: Ditto.
5515 * c-convert.c: Ditto.
5517 * c-format.c: Ditto.
5518 * c-semantics.c: Ditto.
5519 * c-typeck.c: Ditto.
5520 * caller-save.c: Ditto.
5523 * cfgbuild.c: Ditto.
5525 * collect2.c: Ditto.
5529 * cppfiles.c: Ditto.
5532 * defaults.h: Ditto.
5534 * dwarf2out.c: Ditto.
5535 * dwarfout.c: Ditto.
5536 * emit-rtl.c: Ditto.
5541 * fix-header.c: Ditto.
5542 * floatlib.c: Ditto.
5544 * fold-const.c: Ditto.
5545 * function.c: Ditto.
5548 * gen-protos.c: Ditto.
5549 * genattrtab.c: Ditto.
5550 * gencheck.c: Ditto.
5551 * genconfig.c: Ditto.
5553 * genextract.c: Ditto.
5554 * genflags.c: Ditto.
5555 * gengenrtl.c: Ditto.
5556 * genoutput.c: Ditto.
5558 * genrecog.c: Ditto.
5559 * gensupport.c: Ditto.
5563 * haifa-sched.c: Ditto.
5564 * hard-reg-set.h: Ditto.
5566 * integrate.c: Ditto.
5569 * local-alloc.c: Ditto.
5571 * mips-tdump.c: Ditto.
5572 * mips-tfile.c: Ditto.
5575 * print-rtl.c: Ditto.
5576 * read-rtl.c: Ditto.
5579 * reg-stack.c: Ditto.
5580 * regclass.c: Ditto.
5585 * resource.c: Ditto.
5589 * sched-deps.c: Ditto.
5590 * sched-rgn.c: Ditto.
5592 * simplify-rtx.c: Ditto.
5594 * stor-layout.c: Ditto.
5601 * xcoffout.c: Ditto.
5603 2001-10-10 Richard Henderson <rth@redhat.com>
5605 * rtl.h (can_reverse_comparison_p): Remove.
5607 2001-10-10 Christopher Faylor <cgf@redhat.com>
5609 * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
5612 2001-10-10 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5614 * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
5615 (Thanks to Chris Faylor for suggesting macro name).
5616 (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
5618 (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
5619 (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
5620 (MATH_LIBRARY): Undef before definition.
5621 (OUTPUT_QUOTED_STRING): Likewise.
5622 * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
5624 2001-10-10 Richard Henderson <rth@redhat.com>
5626 * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
5627 (fde_unencoded_compare): Likewise. Don't use subtraction to get
5628 a tristate comparison value.
5629 (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
5631 2001-10-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5634 * unroll.c (loop_iterations): Ignore insns generated by loop
5637 * config.gcc (mips*-*-gnu*): Delete support.
5638 * config/mips/gnu.h: Remove.
5640 2001-10-10 Kazu Hirata <kazu@hxi.com>
5642 * calls.c: Fix formatting.
5643 * c-decl.c: Likewise.
5644 * cfgcleanup.c: Likewise.
5645 * combine.c: Likewise.
5646 * cppfiles.c: Likewise.
5647 * cpplib.c: Likewise.
5648 * cppmacro.c: Likewise.
5649 * crtstuff.c: Likewise.
5651 * dwarf2out.c: Likewise.
5652 * expmed.c: Likewise.
5654 * fold-const.c: Likewise.
5655 * function.c: Likewise.
5657 * genattrtab.c: Likewise.
5658 * ggc-page.c: Likewise.
5659 * integrate.c: Likewise.
5660 * libgcc2.c: Likewise.
5662 * optabs.c: Likewise.
5663 * profile.c: Likewise.
5664 * protoize.c: Likewise.
5666 * recog.c: Likewise.
5667 * reload1.c: Likewise.
5668 * reload.c: Likewise.
5669 * reorg.c: Likewise.
5670 * resource.c: Likewise.
5671 * sched-rgn.c: Likewise.
5672 * sdbout.c: Likewise.
5674 * toplev.c: Likewise.
5675 * varasm.c: Likewise.
5677 2001-10-10 Janis Johnson <janis187@us.ibm.com>, Alexandre Oliva <aoliva@redhat.com>
5679 * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
5680 * Makefile.in (langhooks.o): Add dependencies.
5682 Wed Oct 10 00:41:29 EDT 2001 John Wehle (john@feith.com)
5684 * rs6000.c (rs6000_emit_load_toc_table): Don't
5685 strdup the toc label.
5686 (create_TOC_reference): Likewise.
5688 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5690 * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
5693 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5695 * config/i386/i386.c (ix86_attribute_table): Correct
5696 min_len, max_len fields for dllimport, dllexport and shared.
5698 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
5700 * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
5701 doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
5702 Consistently use "nonzero" instead of "non-zero".
5704 2001-10-09 Kazu Hirata <kazu@hxi.com>
5706 * acconfig.h: Fix comment formatting.
5707 * c-dump.h: Likewise.
5708 * c-tree.h: Likewise.
5709 * conditions.h: Likewise.
5711 * function.h: Likewise.
5713 * hwint.h: Likewise.
5714 * integrate.h: Likewise.
5717 * optabs.h: Likewise.
5719 2001-10-09 Kazu Hirata <kazu@hxi.com>
5721 * c-common.h: Fix comment formatting.
5722 * c-dump.c: Likewise.
5724 * diagnostic.h: Likewise.
5725 * except.c: Likewise.
5727 * gcov-io.h: Likewise.
5728 * genattrtab.c: Likewise.
5729 * output.h: Likewise.
5730 * predict.h: Likewise.
5731 * reload1.c: Likewise.
5732 * reload.h: Likewise.
5733 * resource.h: Likewise.
5735 * system.h: Likewise.
5737 * tree-inline.c: Likewise.
5738 * tsystem.h: Likewise.
5739 * varasm.c: Likewise.
5740 * xcoffout.h: Likewise.
5742 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
5744 * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
5746 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
5748 * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
5749 config/i386/i386elf.h, config/i386/netbsd-elf.h,
5750 config/i386/netware.h, config/mcore/gfloat.h,
5751 config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
5752 config/netware.h, gccbug.in: Update FSF address.
5754 2001-10-09 Kazu Hirata <kazu@hxi.com>
5756 * c-common.c: Fix comment typos.
5757 * cfgrtl.c: Likewise.
5758 * collect2.c: Likewise.
5759 * cpplex.c: Likewise.
5760 * doloop.c: Likewise.
5761 * dwarf2out.c: Likewise.
5762 * dwarfout.c: Likewise.
5764 * fold-const.c: Likewise.
5768 * global.c: Likewise.
5769 * ifcvt.c: Likewise.
5771 * optabs.c: Likewise.
5772 * protoize.c: Likewise.
5773 * regclass.c: Likewise.
5774 * reorg.c: Likewise.
5778 * doc/cpp.texi: Likewise.
5779 * doc/c-tree.texi: Likewise.
5780 * doc/extend.texi: Likewise.
5781 * doc/invoke.texi: Likewise.
5782 * doc/objc.texi: Likewise.
5783 * doc/tm.texi: Likewise.
5785 2001-10-08 Richard Henderson <rth@redhat.com>
5787 * varasm.c (set_named_section_flags): Initialize "declared".
5789 2001-10-08 Robert Lipe <robertlipe@usa.net>
5791 * varasm.c (struct in_named_entry): Add declared.
5792 (named_section_first_declaration): New function.
5793 (default_elf_asm_named_section): Use it.
5794 * output.h (named_section_first_declaration): New.
5796 2001-10-08 Richard Henderson <rth@redhat.com>
5798 * i386.md (movsi_xor): Export.
5799 (setcc peep2): Use it when available; add an alternative to
5800 match zero_extendhisi2_and.
5802 2001-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5804 * romp-protos.h (romp_initialize_trampoline): New function.
5805 * romp.c (romp_initialize_trampoline): Likewise.
5806 * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
5807 romp_initialize_trampoline.
5809 2001-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5811 * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
5812 * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5813 * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5814 * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5816 2001-10-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5818 * unroll.c (loop_iterations): Extend check for multiple back edges.
5820 2001-10-08 Alexandre Oliva <aoliva@redhat.com>
5822 * langhooks.h: New file.
5823 * Makefile.in (OBJS): Added langhooks.o.
5824 (c-lang.o): Depend on langhooks.h.
5825 (c-common.o): Don't depend on tree-inline.h.
5826 (tree-inline.o): Depend on toplev.h.
5827 (langhooks.o): New rule.
5828 * c-common.c: Don't include tree-inline.h.
5829 (c_mark_lang_decl): Mark argument c as unused.
5830 (c_common_lang_init): Don't initialize hooks here.
5831 * c-lang.c: Include langhooks.h, then override some macros.
5832 (lang_hooks): Initialize with macros in langhooks.h.
5833 (c_init): Don't initialize hooks here.
5834 * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
5835 (struct lang_hooks): Add tree_inlining. Refer to langhooks.h.
5836 * tree-inline.c: Include toplev.h. Don't define hook variables.
5837 * tree-inline.h: Don't define hook types nor declare hook
5838 variables. Move macros to...
5839 * langhooks.c: ... new file, as functions. Adjust all callers.
5841 2001-10-08 Jeffrey A Law <law@cygnus.com>
5843 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
5844 purge_mem_unchanging_flag on all instructions, not just on those
5845 before NOTE_INSN_FUNCTION_BEG.
5847 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5849 * cppmacro.c (_cpp_create_definition): Leave comments off.
5851 * doc/cpp.texi: Update.
5853 2001-10-08 DJ Delorie <dj@redhat.com>
5855 * c-decl.c (grokfield): Make sure the only unnamed fields
5856 we're allowing are either structs or unions.
5857 * doc/extend.texi: Add documentation for the unnamed field
5860 2001-10-08 Zack Weinberg <zack@codesourcery.com>
5862 * aclocal.m4 (gcc_AC_PROG_GNAT): New.
5863 * configure.in: Use it.
5864 * configure: Regenerated.
5865 * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
5866 config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
5868 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5870 * cppfiles.c (open_file): Don't mark zero-length files
5871 never-reread here. Don't output diagnostics here either.
5872 (stack_include_file): Mark them never-reread here.
5873 (_cpp_read_file): Update.
5875 2001-10-08 Richard Henderson <rth@redhat.com>
5877 * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5879 2001-10-08 Richard Henderson <rth@redhat.com>
5881 * expr.c (store_expr): When converting a CONST_INT for storage
5882 in a SUBREG, convert it to both SUBREG modes before stripping
5885 2001-10-08 Richard Henderson <rth@redhat.com>
5887 * varasm.c (restore_varasm_status): New.
5888 * function.h: Declare it.
5889 * function.c (pop_function_context_from): Call it.
5891 2001-10-08 Richard Henderson <rth@redhat.com>
5893 * c-common.h (struct c_lang_decl): Add declared_inline.
5894 * c-tree.h (DECL_DECLARED_INLINE_P): New.
5895 * c-lang.c (c_disregard_inline_limits): Use it.
5896 * c-decl.c (duplicate_decls): Likewise.
5897 (pushdecl, redeclaration_error_message): Likewise.
5898 (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
5899 (grokdeclarator): Likewise. Set DECL_DECLARED_INLINE_P.
5900 Set DECL_INLINE if -finline-functions.
5901 (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
5903 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5905 * cppmacro.c (funlike_invocation_p): Move some logic to caller
5906 in enter_macro_context. Create a padding token in its own context
5907 if necessary when the search for '(' fails.
5908 (enter_macro_context): Update.
5910 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5912 * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
5913 genmultilib, toplev.c: Fix spelling errors of "separate" as
5914 "seperate", and corresponding spelling errors of related words.
5916 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5918 * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
5919 * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
5921 * c-dump.c (dump_option_value_info): Likewise.
5922 * c-format.c (format_length_info, format_char_info,
5923 format_flag_spec, format_flag_pair, format_kind_info): Likewise.
5924 * collect2.c (names): Likewise.
5925 * cppdefault.h (default_include): Likewise.
5926 * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
5927 * flow.c (life_analysis): Likewise.
5928 * gcc.c (dir_separator_str, modify_target, option_map,
5929 target_option_translations, spec_list_1, extra_specs_1,
5930 init_spec): Likewise.
5931 * gcov.c (gcov_version_string): Likewise.
5932 * genattr.c (write_units): Likewise.
5933 * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
5934 * gengenrtl.c (rtx_definition, defs): Likewise.
5935 * genrecog.c (pred_table): Likewise.
5936 * global.c (global_alloc): Likewise.
5937 * lcm.c (optimize_mode_switching): Likewise.
5938 * local-alloc.c (find_free_reg): Likewise.
5939 * params.h (param_info): Likewise.
5940 * predict.c (predictor_info): Likewise.
5941 * protoize.c (unexpansion_struct): Likewise.
5942 * real.c (bmask): Likewise.
5943 * recog.h (insn_operand_data, insn_data): Likewise.
5944 * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
5945 * stmt.c (expand_nl_goto_receiver): Likewise.
5946 * toplev.c (da, debug_args, lang_opt, documented_lang_options,
5947 target_switches, target_options): Likewise.
5948 * tradcif.y (token, tokentab2, yylex): Likewise.
5949 * tree.h (attribute_spec): Likewise.
5951 * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
5953 * arc.c (arc_output_function_epilogue): Likewise.
5954 * arm.c (processors, all_cores, all_architectures,
5955 arm_override_options, isr_attribute_arg, isr_attribute_args,
5956 arm_isr_value): Likewise.
5957 * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
5959 * c4x.c (c4x_int_reglist): Likewise.
5960 * d30v.c (override_options): Likewise.
5961 * h8300.c (shift_insn): Likewise.
5962 * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
5963 pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
5964 ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
5965 builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
5966 ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
5967 * i386.h (processor_costs, ix86_cost): Likewise.
5968 * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
5969 * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
5970 * m68k.c (codes_68881, codes_FPA): Likewise.
5971 * m88k.c (mode_from_align, max_from_align, all_from_align,
5972 best_from_align, m_options): Likewise.
5973 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
5974 * mcore.c (mode_from_align): Likewise.
5975 * mips/elf64.h (UNIQUE_SECTION): Likewise.
5976 * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
5977 * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
5978 * mips.h (mips_regno_to_class): Likewise.
5979 * ns32k.c (scales): Likewise.
5980 * pa.c (import_string, magic_milli): Likewise.
5981 * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
5982 * sparc.c (leaf_reg_remap, sparc_override_options,
5983 reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
5985 * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
5987 2001-10-07 Dale Johannesen <dalej@apple.com>
5989 * reload1.c (reload_reg_free_p): Teach register interference
5990 checking that multiple output reloads are emitted in
5992 reload1.c (reload_reg_reaches_end_p): Ditto.
5993 reload1.c (reloads_conflict): Ditto.
5995 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5997 * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
5998 NULL_TREE inside @code.
6000 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6002 * doc/gcc.texi: Document consistent style of "32-bit",
6003 "Objective-C", and "@code{NULL}".
6005 2001-10-06 Zack Weinberg <zack@codesourcery.com>
6007 * cpplex.c (enum spell_type): Add SPELL_NUMBER.
6008 (cpp_token_len, cpp_spell_token, cpp_output_token,
6009 _cpp_equiv_tokens): Handle it.
6010 * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
6011 CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
6012 * cppexp.c (_cpp_parse_expr): Use the correct operator code in
6015 Sat Oct 6 07:42:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6017 * gcc.c (default_compilers): Remove .ada.
6019 2001-10-06 Neil Booth <neil@daikokuya.demon.co.uk>
6021 * doc/cppinternals.texi: Update.
6023 2001-10-06 Zack Weinberg <zack@codesourcery.com>
6025 * gcc.c (main): Set this_file_error if the appropriate
6026 compiler for a language has not been installed.
6028 2001-10-06 Ulrich Weigand <uweigand@de.ibm.com>
6030 * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
6032 2001-10-05 Joseph S. Myers <jsm28@cam.ac.uk>
6034 * gccbug.in (CATEGORIES): Add ada.
6036 2001-10-05 Catherine Moore <clm@redhat.com>
6038 * config/stormy16/stormy-abi: Document abi changes.
6039 * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
6040 (ICALL_REGS): New register class.
6041 (NUM_ARGUMENT_REGISTERS): Now 6.
6042 (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
6044 (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
6045 * config/stormy16.md (call_internal, call_value_internal,
6046 indirect_jump): Use new 'z' constraint.
6048 2001-10-05 Neil Booth <neil@daikokuya.demon.co.uk>
6050 * doc/cppinternals.texi: Update.
6052 2001-10-05 Richard Henderson <rth@redhat.com>
6054 * dwarf2out.c (FRAME_BEGIN_LABEL): New.
6055 (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
6056 the gas section-name-as-label feature.
6058 2001-10-05 Neil Booth <neil@daikokuya.demon.co.uk>
6060 * doc/cppinternals.texi: Update.
6062 Fri Oct 5 08:17:46 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6064 * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
6065 to ensure valid SImode constants.
6067 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
6069 * Makefile.in (c-decl.o): Depend on tree-inline.h.
6070 (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
6071 * c-decl.c: Include tree-inline.h.
6072 (c_expand_body): Call optimize_inline_calls. Determine whether
6073 a function is inlinable upfront, and only clear
6074 DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
6075 * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
6076 (c_disregard_inline_limits): New function.
6077 (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
6078 (c_post_options): Enable tree inlining if inlining is enabled.
6079 Don't inline trees when instrumenting functions.
6080 (c_init): Initialize lang_disregard_inline_limits and
6081 lang_cannot_inline_tree_fn.
6082 * tree-inline.c (initialize_inlined_parameters): Handle calls
6083 with fewer arguments than declared parameters, and fewer
6084 parameters than passed arguments. Don't assume value is a
6086 (declare_return_variable): Convert return value back to the
6087 original type, if it was promoted.
6088 (tree_inlinable_function_p): New function.
6089 (inlinable_function_p): Don't look at DECL_INLINE if we're
6090 inlining all functions. Make it work with a NULL id.
6091 Re-check DECL_UNINLINABLE after language-specific checks.
6092 * tree-inline.h (tree_inlinable_function_p): Declare it.
6093 * integrate.c (save_for_inline): Don't bother to prepare argvec
6095 * cse.c (check_for_label_ref): Don't check deleted labels.
6097 * Makefile.in (tree-inline.o): Depend on newly-included headers.
6098 * tree-inline.c: Include headers needed for the functions moved in.
6099 (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
6100 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
6101 (copy_body, initialize_inlined_parameters): Likewise.
6102 (declare_return_variable, inlinable_function_p): Likewise.
6103 (expand_call_inline, expand_calls_inline): Likewise.
6104 (optimize_inline_calls, clone_body): Likewise.
6105 (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
6106 (copy_tree_r, remap_save_expr): Likewise.
6108 2001-10-04 Alexandre Oliva <aoliva@redhat.com>
6110 * Makefile.in (OBJS): Added tree-inline.o.
6111 (c-common.o): Depend on tree-inline.h.
6112 (tree-inline.o): New target.
6113 * c-common.c: Include tree-inline.h.
6114 (c_mark_lang_decl): Don't mark saved_tree.
6115 (c_common_lang_init): Set lang_anon_aggr_type_p.
6116 * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
6117 (struct c_lang_decl): Moved saved_tree to tree_decl.
6118 * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
6119 * integrate.h (function_attribute_inlinable_p): Declare it.
6120 * integrate.c (function_attribute_inlinable_p): Export it.
6121 * tree-inline.c: New file. Define variables declared in...
6122 * tree-inline.h: New file. Declare functions to be moved to
6123 tree-inline.c. Define macros and declare types and hooks for
6124 language-specific tree inlining.
6125 (flag_inline_trees): Moved definition from cp/decl2.c.
6126 * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
6127 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
6128 (struct tree_decl): Moved saved_tree from c_lang_decl and
6129 inlined_fns from C++'s lang_decl.
6131 2001-10-04 Loren J. Rittle <ljrittle@acm.org>
6133 * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
6134 propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
6136 2001-10-04 Neil Booth <neil@daikokuya.demon.co.uk>
6138 * doc/cppinternals.texi: Update.
6140 2001-10-04 Eric Christopher <echristo@redhat.com>
6142 * config/mips/mips.c (init_cumulative_args): Remember to set
6144 * config.gcc: Redo linux configuration. Add target_cpu_default
6145 of soft-float to all mipsisa32 combinations and tx39.
6146 * config/mips/linux.h: Remove include of mips.h.
6148 2001-10-03 Loren J. Rittle <ljrittle@acm.org>
6150 * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
6151 HOST_LDFLAGS and HOST_CPPFLAGS.
6153 2001-10-03 Ziemowit Laski <zlaski@apple.com>
6155 * c-parse.in (objc_inherit_code, objc_pq_context,
6156 objc_public_flag): Make static.
6157 (objc_interface_context, objc_implementation_context,
6158 objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
6159 global tree array in objc/objc-act.[ch].
6160 (methoddef): Remove unnecessary code.
6162 * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
6163 Hoist struct definitions to objc-act.h.
6164 (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
6165 cat_count): Place declaration in objc-act.h.
6166 (objc_tree_index): Move enumeration to objc-act.h.
6167 (objc_global_trees): Place declaration and macro accessors in
6169 (implementation_context): Remove duplicate; use
6170 objc_implementation_context instead:
6171 (method_context): Remove duplicate; use objc_method_context
6173 (objc_ellipsis_node, objc_method_prototype_template,
6174 implemented_classes, function_type): Move global vars to
6176 (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
6177 (build_message_expr): Move actual construction of ObjC message
6178 send nodes to finish_message_expr.
6179 (finish_message_expr): New routine, contains code formerly in
6181 * objc/objc-act.h (finish_message_expr): New prototype.
6182 (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
6183 declarations; these vars are now part of objc_global_trees.
6184 (objc_tree_index, objc_global_trees): Move definitions from
6186 * objc/objc-tree.def: Update copyright info.
6188 Wed Oct 3 12:22:11 EDT 2001 John Wehle (john@feith.com)
6190 * dwarf2asm.c (unaligned_integer_asm_op): Abort if
6192 * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
6193 only if TARGET_ARCH64.
6195 2001-10-02 Bernd Schmidt <bernds@redhat.com>
6197 * doc/extend.texi: Fix some problems with previous checkin.
6198 * doc/invoke.texi: Likewise.
6200 2001-10-02 Neil Booth <neil@daikokuya.demon.co.uk>
6202 * cpphash.h: Update comments.
6203 (cpp_context): Update.
6204 (spec_nodes): Remove n__Pragma.
6205 * cppinit.c (cpp_create_reader): Update.
6206 (builtin_array): Add _Pragma.
6207 * cpplib.h: Update comments.
6208 (NODE_DISABLED, BT_PRAGMA): New.
6209 (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
6210 * cppmacro.c (struct cpp_macro): Remove disabled.
6211 (builtin_macro): Return int, handle _Pragma, push the new token
6212 on the context stack.
6213 (funlike_invocation_p): Unconstify, update.
6214 (enter_macro_context): Handle builtins here.
6215 (replace_args, push_token_context, push_ptoken_context):
6216 Update for prototype changes.
6217 (_cpp_pop_context): Update.
6218 (cpp_get_token): Don't handle buitins, nor _Pragma here.
6219 (cpp_sys_macro_p): Update.
6220 (_cpp_free_definition): Clear disabled flag.
6221 (_cpp_create_definition): Upate.
6222 * cppmain.c: Update comments.
6224 Tue Oct 2 12:46:01 CEST 2001 Bo Thorsen <bo@suse.co.uk>,
6225 Andreas Jaeger <aj@suse.de>,
6226 Jan Hubicka <jh@suse.cz>
6228 * doc/invoke.texi (i386 Options): Document x86-64 options.
6229 (i386 and x86-64 Options): Rename i386 options section.
6231 * config/i386/i386.h (TARGET_UNWIND_INFO): New.
6232 (TARGET_SWITCHES): Add -munwind-info.
6233 (MASK_NO_UNWIND_INFO): New.
6234 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
6236 (ASM_OUTPUT_DOUBLE_INT): New.
6238 * config/i386/linux64.h: New spec file for Linux x86-64 support.
6239 * config.gcc: Fix tm_file settings for x86-64.
6240 * config/i386/x86-64.h: New file with OS independent x86-64
6242 * config/i386/biarch64.h: New file used to configure compiler
6243 to biarch/64bit compilation.
6245 * config/i386/i386.c: (override_options): Set flags default
6246 for 64bit compilation.
6248 Tue Oct 2 12:46:01 CEST 2001 Jan Hubicka <jh@suse.cz>
6250 * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
6251 (ix86_expand_int_movcc): Optimize DImode conditional moves with
6252 constants on x86_64.
6253 (ix86_attr_length_immediate_default): Support MODE_DI.
6254 * i386.md (fixdi splitter): Add missing "&& 1" in splitter
6256 (indirect_jump, tablejump): Turn into expander.
6258 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
6260 * c-common.c (c_format_attribute_table): Make format and
6261 format_arg attributes apply to function types rather than to
6263 (is_valid_printf_arglist): Construct an attribute list and pass
6264 that to check_function_format rather than a name.
6265 * c-common.h (check_function_format): Adjust prototype.
6266 * c-decl.c (duplicate_decls): Preserve attributes from type of
6267 built-in decl when allowing for harmless conflict in types.
6268 * c-format.c (record_function_format,
6269 record_international_format, function_format_list,
6270 international_format_info, international_format_list): Remove.
6271 (function_format_info): Remove next, name and assembler_name.
6272 Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
6273 (decode_format_attr): New.
6274 (handle_format_attribute): Handle receiving a type rather than a
6275 decl. Call decode_format_attr. Store format information in a
6276 function_format_info.
6277 (handle_format_arg_attribute): Correct comment. Handle receiving
6278 a type rather than a decl. Use unsigned HOST_WIDE_INT for
6280 (check_format_info_recurse, check_format_info_main): Take argument
6281 numbers as unsigned HOST_WIDE_INT.
6282 (check_function_format): Take a list of attributes from the
6283 function type rather than a name or assembler name. Check for
6284 format attributes in that list and the attributes on the type of
6285 the current function rather than looking through
6286 function_format_list.
6287 (check_format_info): Use unsigned HOST_WIDE_INT for argument
6289 (check_format_info_recurse): Take format_arg attributes from the
6290 type of the function calls rather than using
6291 international_format_list. Allow for multiple format_arg
6293 * c-typeck.c (build_function_call): Pass type attributes to
6294 check_function_format rather than name or assembler name. Don't
6295 require there to be a name or assembler name to check formats.
6297 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
6299 * attribs.c (decl_attributes): Possibly call
6300 insert_default_attributes to insert default attributes on
6301 functions in a lazy manner.
6302 * builtin-attrs.def: New file; define the default format and
6303 format_arg attributes.
6304 * c-common.c (c_format_attribute_table): Move to earlier in the
6306 (c_common_nodes_and_builtins): Initialize format_attribute_table.
6307 (enum built_in_attribute, built_in_attributes,
6308 c_attrs_initialized, c_init_attributes,
6309 c_common_insert_default_attributes): New.
6310 (c_common_lang_init): Don't initialize format_attribute_table. Do
6311 call c_init_attributes.
6312 * Makefile.in (c-common.o): Depend on builtin-attrs.def.
6313 * c-common.h (init_function_format_info): Don't declare.
6314 (c_common_insert_default_attributes): Declare.
6315 * c-decl.c (implicitly_declare, builtin_function): Call
6317 (init_decl_processing): Don't call init_function_format_info.
6318 (insert_default_attributes): New.
6319 * c-format.c (handle_format_attribute,
6320 handle_format_arg_attribute): Be quiet about inappropriate
6321 declaration when applying default attributes.
6322 (init_function_format_info): Remove.
6323 * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
6324 (insert_default_attributes): Declare.
6326 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
6328 * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
6330 2001-10-01 Jim Wilson <wilson@redhat.com>
6332 * sched-deps.c (add_dependence): When elide conditional dependence,
6333 check that insn doesn't modify cond2.
6335 2001-10-01 Dale Johannesen <dalej@apple.com>
6337 * config/rs6000/rs6000.h (enum processor_type): Add support
6338 for 7400 (G4) and 7450.
6340 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
6341 (rs6000_issue_rate): Ditto.
6342 (rs6000_adjust_cost): Fix cycle counts for compares.
6343 (debug_stack_info): Fix an obvious typo.
6344 * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
6345 * doc/invoke.texi: Document.
6346 * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
6348 (PROCESSOR_DEFAULT): Ditto.
6350 2001-10-01 Loren J. Rittle <ljrittle@acm.org>
6352 * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
6353 (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
6354 later recursive make invocation.
6356 2001-10-01 Hans Boehm <boehm@acm.org>
6358 * optabs.c (emit_libcall_block): When using non-call exceptions,
6359 don't add REG_LIBCALL reg notes to trapping calls.
6361 2001-10-01 David Billinghurst <David.Billinghurst@riotinto.com>
6363 * flow.c (propagate_block_delete_libcall): Remove unused first arg
6364 (propagate_one_insn): Update for above change
6366 2001-10-01 David Billinghurst <David.Billinghurst@riotinto.com>
6368 * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
6369 _Unwind_GetTextRelBase): Argument is unused.
6371 Mon Oct 1 19:20:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6373 * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
6374 Loop through NOPs, placeholders, and components.
6375 Don't go through NOPs if change mode.
6376 (record_alias_subset): Do nothing if SUBSET and SET are the same.
6377 * emit-rtl.c (set_mem_alias_set): Enable check.
6378 * expr.c (find_placeholder): New function.
6379 (expand_expr, case PLACEHOLDER_EXPR): Use it.
6380 (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
6381 to modify it and avoid unneeded copies.
6382 * expr.h (expand_expr): Always define.
6383 (find_placeholder): New declaration.
6385 2001-10-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6387 * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
6388 operand 2 is the stack pointer.
6389 ("addr-peephole"): Fix address computation peephole when operand 2
6390 is the stack pointer.
6392 Mon Oct 1 09:26:41 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6394 * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
6395 (ix86_setup_incoming_varargs): Likewise.
6397 2001-10-01 Jason Merrill <jason_merrill@redhat.com>
6399 * stor-layout.c (layout_type): Don't complain about too-large
6402 Mon Oct 1 06:43:41 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6404 * function.c (keep_stack_depressed): Don't use delete_insn.
6406 * expr.h (set_mem_alias_set): Move decl to here.
6407 * rtl.h (mem_attrs): New typedef and struct.
6408 (union rtunion_def): Add field for mem_attrs.
6409 (X0MEMATTR, MEM_ATTRS): New macros.
6410 (MEM_ALIAS_SET): Use MEM_ATTRS.
6411 (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
6412 (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
6413 (set_mem_alias_set): Delete decl from here.
6415 * alias.c (set_mem_alias_set): Delete from here.
6416 * emit-rtl.c (mem_attrs_htab): New variable.
6417 (rtx_htab_mark, rtx_htab_mark_1): Deleted.
6418 (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
6419 (mem_attrs_mark, get_mem_attrs): Likewise.
6420 (gen_rtx_MEM): Clear MEM_ATTRS.
6421 (set_mem_attributes): Move to here.
6422 (set_mem_alias_set): Likewise, and call get_mem_attrs.
6423 (init_emit_once): const_int_htab now deletable htab.
6424 Initialize mem_attrs_htab.
6425 * explow.c (set_mem_attributes): Delete from here.
6426 * function.c (put_var_into_stack): Clear MEM_ATTRS.
6427 (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
6428 * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
6429 * reload1.c (reload): Rework changing REG to MEM.
6431 2001-09-30 H.J. Lu <hjl@gnu.org>
6433 * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
6434 * config.in: Rebuild.
6436 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6438 * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
6439 ("tsthi_1"): Avoid allocation in register y.
6440 ("*movqi_68hc12"): Reorganize and fix constraints.
6441 ("zero_extendqisi2"): Prefer d over x and y for operand 1.
6442 ("addqi3"): Likewise.
6443 ("addhi3"): Fix constraints.
6444 ("*logicalhi3_zexthi"): Disparage soft registers.
6446 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6448 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
6451 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6453 * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
6454 that we use setjmp/longjmp exceptions.
6456 2001-09-30 Neil Booth <neil@daikokuya.demon.co.uk>
6458 * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
6459 POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
6460 struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
6461 _cpp_pool_alloc, _cpp_next_chunk): Remove.
6462 (_cpp_extend_buff, BUFF_ROOM): Update.
6463 (_cpp_append_extend_buff): New.
6464 (struct cpp_reader): Remove macro_pool, add a_buff.
6465 * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
6467 (cpp_destroy): Free a_buff instead of macro_pool.
6468 * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
6469 new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
6470 _cpp_pool_alloc, ): Remove.
6471 (parse_number, parse_string): Update use of _cpp_extend_buff.
6472 (_cpp_extend_buff): Update.
6473 (_cpp_append_extend_buff, cpp_aligned_alloc): New.
6474 * cpplib.c (glue_header_name, parse_answer):
6475 Update use of _cpp_extend_buff.
6476 (cpp_register_pragma, cpp_register_pragma_space): Use
6478 (do_assert, do_unassert): Check for EOL, update.
6479 * cppmacro.c (stringify_arg, collect_args): Update to use
6480 _cpp_extend_buff and _cpp_append_extend_buff.
6481 (save_parameter, parse_params, alloc_expansion_token,
6482 _cpp_create_definition): Rework memory management.
6484 2001-09-29 Andris Pavenis <pavenis@lanet.lv>
6486 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
6487 update md_exec_prefix.
6488 (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
6491 2001-09-30 Ulrich Weigand <uweigand@de.ibm.com>
6493 * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
6494 (SELECT_CC_MODE): Use s390_select_ccmode.
6495 * config/s390/s390-protos.h (s390_select_ccmode): Add.
6496 * config/s390/s390.c (s390_select_ccmode): New.
6497 (s390_match_ccmode): Add CCLmode.
6498 (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
6499 (output_branch_condition, output_inverse_branch_condition): Removed.
6500 (print_operand): Use s390_branch_condition_mnemonic.
6501 * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
6502 subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
6503 (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
6505 * config/s390/s390.c (check_and_change_labels): Preserve CC mode
6506 when converting conditional branches to far branches.
6507 * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
6508 cmpint_di): Use CCSmode instead of CCUmode.
6510 * config/s390/s390.c (legitimate_la_operand_p): New.
6511 * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
6512 * config/s390/s390.md (movsi): Convert load address patterns to
6513 arithmetic operations when necessary.
6514 (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
6515 (do_la): Renamed to *do_la and use legitimate_la_operand_p.
6516 (*do_la_reg_0): Don't use before reload.
6518 * config/s390/s390.c (legitimize_address): Make more efficient
6519 use of two-register addressing mode.
6521 * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
6522 with -mno-backchain in some corner cases.
6524 * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
6526 2001-09-29 Alexandre Oliva <aoliva@redhat.com>
6528 * reload.c (find_reloads): Mark new USE insns with QImode.
6529 (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
6530 find_reloads_subreg_address): Likewise.
6531 * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
6533 * reload1.c (reload_combine_note_use): Likewise, inside USEs and
6535 (reload): Make sure there are no USEs with mode other than
6536 VOIDmode. At the end, remove those marked with QImode.
6538 2001-09-29 Per Bothner <per@bothner.com>
6540 * cppdefault.c (cpp_include_defaults): Also search PREFIX_INCLUDE_DIR.
6541 * Makefile.in (includedir): Rename to local_includedir.
6542 (includedir): Define as $(prefix)/include.
6543 * config.in (PREFIX_INCLUDE_DIR): New variable.
6544 * configure.in (PREFIX_INCLUDE_DIR): Test for new variable.
6546 2001-09-29 Bernd Schmidt <bernds@redhat.com>
6548 * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
6550 * doc/extend.texi (Vector Extensions): New node.
6551 * doc/invoke.texi (Machine Dependent Options): Add documentation for
6552 i386 -mmmx, -msse, -m3dnow.
6554 Sat Sep 29 15:08:16 CEST 2001 Jan Hubicka <jh@suse.cz>
6556 * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
6558 2001-09-29 Hans-Peter Nilsson <hp@axis.com>
6560 * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
6562 * doc/invoke.texi (Optimize Options): Delete spurious @table.
6564 2001-09-28 Richard Henderson <rth@redhat.com>
6566 * varasm.c (assemble_integer): Bound alignment check by
6569 * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
6571 2001-09-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6573 * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
6575 2001-09-25 Bernd Schmidt <bernds@redhat.com>
6577 Mostly from Graham Stott <grahams@redhat.com>
6578 * c-common.c (type_for_mode): Add support for V2SFmode.
6579 * tree.c (build_common_tree_nodes_2): Likewise.
6580 * tree.h (enum tree_index, global_trees): Likewise.
6581 * config/i386/i386.c (x86_3dnow_a): New variable.
6582 (override_options): Support 3Dnow extensions.
6583 (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
6584 Athlon's version of 3Dnow.
6585 (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
6586 (ix86_expand_builtin): Handle them.
6587 (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
6588 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
6589 TARGET_3DNOW_A): New macros.
6590 (TARGET_SWITCHES): Add 3Dnow switches.
6591 (VALID_MMX_REG_MODE_3DNOW): New macro.
6592 (VECTOR_MODE_SUPPORTED_P): Use it.
6593 (enum ix86_builtins): Add entries for 3Dnow builtins.
6594 * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
6595 pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
6596 pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
6597 pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
6598 pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
6599 pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
6600 (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
6601 mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
6602 mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
6603 sfence_insn, prefetch): Make these available if TARGET_SSE or
6606 Fri Sep 28 19:18:40 CEST 2001 Jan Hubicka <jh@suse.cz>
6608 * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
6609 ix86_va_start, ix86_build_va_list): Declare.
6610 * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
6611 ix86_va_start, ix86_build_va_list): New global functions.
6612 * i386.md (sse_prologue_save_insn): New insn.
6613 (sse_prologue_save): New expander.
6614 * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
6615 BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
6617 2001-09-28 Neil Booth <neil@daikokuya.demon.co.uk>
6619 * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
6620 Use size_t everywhere, make definitions consistent with
6623 Fri Sep 28 14:59:34 CEST 2001 Jan Hubicka <jh@suse.cz>
6625 * gcse.c (replace_store_insn): Use delete_insn.
6626 * loop.c (move_movables): Likewise; avoid delete_insn
6627 from clobbering notes moved elsewhere.
6628 (check_dbra_loop): Use delete_insn.
6629 * ssa.c (convert_from_ssa): Likewise.
6630 * cse.c (cse_insn): Use delete_insn.
6632 2001-09-28 Neil Booth <neil@daikokuya.demon.co.uk>
6634 * cpphash.h (struct cpp_buff): Make unsigned.
6635 (_cpp_get_buff): Take length of size_t.
6636 (_cpp_unaligned_alloc): New.
6637 (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
6638 (struct cpp_reader): Remove ident_pool. Add u_buff.
6639 * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
6640 (cpp_destroy): Destroy u_buff, not ident_pool.
6641 * cpplex.c (parse_number, parse_string, save_comment,
6642 cpp_token_as_text): Update to use the unaligned buffer.
6643 (new_buff): Make unsigned.
6644 (_cpp_unaligned_alloc): New.
6645 * cpplib.c (glue_header_name): Update to use the unaligned buffer.
6646 * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
6648 (collect_args): Make unsigned.
6650 2001-09-27 Zack Weinberg <zack@codesourcery.com>
6652 * cpplex.c (cpp_output_token): Use a putc loop for
6653 SPELL_OPERATOR, and fwrite for SPELL_IDENT.
6655 * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
6656 * configure, config.in: Regenerate.
6657 * system.h: Replace fwrite and fprintf with their unlocked
6658 variants if available.
6660 2001-09-27 Richard Henderson <rth@redhat.com>
6662 * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
6663 in favour of .eh_frame.
6665 2001-09-27 Aldy Hernandez <aldyh@redhat.com>
6667 * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
6669 (LIBCALL_VALUE): Likewise.
6671 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
6673 * cpphash.h: Update comment.
6674 * cpplex.c: Update comments.
6675 (_cpp_can_paste): Remove.
6676 * cpplib.h (_cpp_can_paste): Remove.
6677 * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
6678 lexer rather than _cpp_can_paste.
6680 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
6682 * doc/cppinternals.texi: Update.
6684 2001-09-26 Neil Booth <neil@daikokuya.demon.co.uk>
6686 * cpphash.h (struct cpp_pool): Remove locks and locked.
6687 (struct cpp_context): Add member buff.
6688 (struct cpp_reader): Remove member argument_pool.
6689 (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6690 * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
6691 * cpplex.c (chunk_suitable): Remove pool argument.
6692 (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
6693 (new_buff, _cpp_extend_buff): Update.
6694 (_cpp_get_buff): Fix silly pointer bug. Be more selective about
6695 which buffer is returned.
6696 (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
6697 (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6698 * cppmacro.c (lock_pools, unlock_pools): Remove.
6699 (push_ptoken_context): Take a _cpp_buff.
6700 (enter_macro_context): Pool locking removed.
6701 (replace_args): Use a _cpp_buff for the replacement list with
6703 (push_token_context): Clear buff.
6704 (expand_arg): Use _cpp_pop_context.
6705 (_cpp_pop_context): Free a context's buffer, if any.
6707 2001-09-26 DJ Delorie <dj@redhat.com>
6709 * c-typeck.c (digest_init): Check for sizeless arrays.
6711 2001-09-26 Richard Henderson <rth@redhat.com>
6713 * optabs.c (init_one_libfunc): Create a dummy function type
6714 instead of using error_mark_node.
6716 2001-09-26 Neil Booth <neil@daikokuya.demon.co.uk>
6718 * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
6719 _cpp_extend_buff, _cpp_free_buff): New.
6720 (struct cpp_reader): New member free_buffs.
6721 * cppinit.c (cpp_destroy): Free buffers.
6722 * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
6723 _cpp_extend_buff, _cpp_free_buff): New.
6724 * cpplib.h (struct cpp_options): Remove unused member.
6725 * cppmacro.c (collect_args): New. Combines the old parse_arg
6726 and parse_args. Use _cpp_buff for memory allocation.
6727 (funlike_invocation_p, replace_args): Update.
6729 Wed Sep 26 13:20:51 CEST 2001 Jan Hubicka <jh@suse.cz>
6731 * final.c (final_scan_insn): Use delete_insn instead of delete_note.
6733 2001-09-25 Andrew Haley <aph@cambridge.redhat.com>
6735 * except.c (sjlj_mark_call_sites): Change address inside sequence.
6737 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6739 * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
6742 2001-09-25 Janis Johnson <janis187@us.ibm.com>
6743 Jim Wilson <wilson@redhat.com>
6745 * doc/install.texi (Specific, ia64-*-linux): Document.
6747 Tue Sep 25 17:13:56 CEST 2001 Jan Hubicka <jh@suse.cz>
6749 * Makefile.in (cfgrtl.o): Add.
6750 * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6751 free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6752 free_aux_for_edge): Declare.
6754 (HAVE_return): Undefine.
6755 * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6756 free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6757 free_aux_for_edge): New global functions.
6758 (first_delete_block): New static variable.
6759 (init_flow): Clear first_delete_block.
6760 (basic_block_for_insn, label_value_list, tail_recursion_label_list,
6761 can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
6762 try_redirect_by_replacing_jump, last_loop_beg_note,
6763 back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
6764 delete_insn, delete_insn_chain, create_basic_block_structure,
6765 create_basic_block, flow_delete_block, compute_bb_for_insn,
6766 free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
6767 set_block_for_new_insns, split_block, merge_blocks_nomove,
6768 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
6769 redirect_edge_and_branch, force_nonfallthru_and_redirect,
6770 force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
6771 tidy_fallthru_edges, split_edge, insert_insn_on_edge,
6772 commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
6773 debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6774 purge_all_dead_edges): Move to ....
6775 * cfgrtl.c: New file; .... Here.
6777 * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
6778 (reroder_basic_block): Use alloc_aux_for_blocks.
6779 * predict.c (estimate_bb_frequencies): Likewise; use
6780 alloc_aux_for_edges.
6781 * profile.c (compute_branch_probabilities): Likewise.
6782 (branch_prob): Likewise.
6783 * reg-stack.c (reg_to_stack): Likewise.
6785 * emit-rtl.c (emit_insns_after): Never return NULL.
6787 * basic-block.h (set_block_for_new_insns): Delete.
6788 * cfgrtl.c (set_block_for_new_insns): Delete.
6790 * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
6791 calls when crossjumping.
6793 * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
6794 * unroll.c (copy_loop_body): Use delete_insn.
6796 * final.c (final, final_scan_insn): Use delete_insn/delete_note.
6797 * function.c (fixup_var_refs_insn, fixup_var_refs_1,
6798 keep_stack_depressed): Likewise.
6799 * gcse.c (cprop_cc0_jump): Likewise.
6800 * local-alloc.c (update_equiv_regs): Likewise.
6801 * loop.c (scan_loop, loop_delete_insns): Likewise.
6802 * regmove.c (try_auto_increment, fixup_match_1): Likewise.
6803 * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
6804 delete_output_reload, delete_address_reloads_1,
6805 reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
6807 * sibcall.c (replace_call_placeholder): Likewise.
6808 * cse.c (cse_insn): Likewise.
6810 2001-09-25 Bernd Schmidt <bernds@redhat.com>
6812 From Graham Stott <grahams@redhat.com>
6813 (def_builtin): Only define builtins appropriate for target_flags. All
6815 (builtin_decsription): Add new field mask which is used to determine
6816 when to define the builtin via the macro def_builtin.
6818 (bdesc_comi): Initialise new mask fields.
6819 (bdesc_2srg): Likewise.
6820 (bdesc_1arg): Likewise.
6822 * config/i386/i386.c (ix86_init_builtins): Correct return type
6823 building v4hi_ftype_v4hi_int_int tree node.
6824 (ix86_expand_sse_comi): Fix typo swapping operands.
6825 Don't swap comparision condition, it is already swapped.
6826 (ix86_expand_sse_compare): Before swapping operands
6827 move operand 1 into new rtx and not the target rtx.
6828 Don't swap comparison condition, it is already swapped.
6829 Always check whether we need to create a new TARGET.
6831 * config/i386/i386.md: (sse_comi) Fix typos.
6832 (sse_ucomi): Likewise.
6833 (cvtss2si): Fix operand 0 contraint.
6834 (cvttss2si): Likewise.
6835 (sse_unpckhps): Fix mode for operand 2.
6836 (sse_unpcklps): Likewise.
6838 2001-09-25 Graham Stott <grahams@redhat.com>
6840 * sibcall.c (skip_copy_to_return_value): Tighten return value
6843 2001-09-24 David Edelsohn <edelsohn@gnu.org>
6845 * rs6000.c (lwa_operand): Address must be word aligned.
6847 Mon Sep 24 18:57:59 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6849 * tree.c (type_hash_marked_p): Consider as marked if debug symbol
6850 number has been set.
6851 (type_hash_mark): Mark type itself.
6853 2001-09-24 Neil Booth <neil@daikokuya.demon.co.uk>
6855 * c-lex.c (cb_def_pragma): Update.
6856 (c_lex): Update, and skip padding.
6857 * cppexp.c (lex, parse_defined): Update, remove unused variable.
6858 * cpphash.h (struct toklist): Delete.
6859 (union utoken): New.
6860 (struct cpp_context): Update.
6861 (struct cpp_reader): New members eof, avoid_paste.
6862 (_cpp_temp_token): New.
6863 * cppinit.c (cpp_create_reader): Update.
6864 * cpplex.c (_cpp_temp_token): New.
6865 (_cpp_lex_direct): Add PREV_WHITE when parsing args.
6866 (cpp_output_token): Don't print leading whitespace.
6867 (cpp_output_line): Update.
6868 * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
6869 do_include_common, do_line, do_ident, do_pragma,
6870 do_pragma_dependency, _cpp_do__Pragma, parse_answer,
6871 parse_assertion): Update.
6872 (get_token_no_padding): New.
6873 * cpplib.h (CPP_PADDING): New.
6874 (AVOID_LPASTE): Delete.
6875 (struct cpp_token): New union member source.
6876 (cpp_get_token): Update.
6877 * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
6878 (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
6879 replace_args, quote_string, stringify_arg, parse_arg, next_context,
6880 enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
6881 _cpp_backup_tokens, _cpp_create_definition): Update.
6882 (push_arg_context): Delete.
6883 (padding_token, push_token_context, push_ptoken_context): New.
6884 (make_string_token, make_number_token): Update, rename.
6885 (cpp_get_token): Update to handle tokens as pointers to const,
6886 and insert padding appropriately.
6887 * cppmain.c (struct printer): New member prev.
6888 (check_multiline_token): Constify.
6889 (do_preprocessing, cb_line_change): Update.
6890 (scan_translation_unit): Update to handle spacing.
6891 * scan-decls.c (get_a_token): New.
6892 (skip_to_closing_brace, scan_decls): Update.
6893 * fix-header.c (read_scan_file): Update.
6895 * doc/cpp.texi: Update.
6897 2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6899 * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC. Avoid
6900 leak by passing malloc'ed pointer to reconcat, not concat.
6902 2001-09-24 DJ Delorie <dj@redhat.com>
6904 * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
6906 2001-09-24 Ulrich Weigand <uweigand@de.ibm.com>:
6908 * flow.c (delete_dead_jumptables): Delete jumptable if the only
6909 reference is from the literal pool.
6911 2001-09-24 Janis Johnson <janis187@us.ibm.com>
6913 * doc/install.texi (Final install): Request additional information
6914 in mail about successful builds.
6916 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6918 * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero. Use
6919 initial value of return pointer register instead of value in frame-20.
6922 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6924 * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
6925 (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
6926 the libcall if there isn't a referenced identifier for the symbol.
6928 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6930 * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
6931 non 64-bit machines. Use these as a plabel for the trampoline.
6932 (TRAMPOLINE_SIZE): Adjust size for new words.
6933 (INITIALIZE_TRAMPOLINE): Initialize new words.
6934 (TRAMPOLINE_ADJUST_ADDRESS): New. Adjust address to make it a
6935 pointer to the plabel in the trampoline.
6937 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6939 * pa.c (function_arg): Pass floating arguments in both general and
6940 floating registers in indirect (dynamic) calls when generating code
6941 for the 32 bit ABI and the HP assembler.
6943 2001-09-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6945 * doc/install.texi: Markup fixes.
6946 Use Solaris 2, SunOS 4 as appropriate.
6947 (Specific, *-*-solaris2*): Explain this.
6948 Unconditionally warn against /usr/ucb tools.
6949 Remove Sun as warning, obsolete.
6950 Move X11 header bug workaround here, update patches.
6951 (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
6952 (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
6954 2001-09-23 Zack Weinberg <zack@codesourcery.com>
6956 * errors.h (warning, error, fatal, internal_error): Don't mark
6957 with ATTRIBUTE_PRINTF_n.
6958 * toplev.h (internal_error, fatal_io_error, warning, error,
6959 pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
6960 error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
6963 Sun Sep 23 18:19:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6965 * function.c (pop_function_context_from): var_refs_queue
6966 and temp slots now in GC memory.
6967 (mark_function_status, free_after_compilation): Likewise;
6968 also struct function now in GC memory.
6969 (assign_stack_temp_for_type): struct temp_slot now in GC memory.
6970 (combine_temp_slots): Likewise.
6971 (schedule_fixup_var_refs): var_refs_queue now in GC memory.
6972 (prepare_function_start): Use GC memory for struct function.
6973 (mark_temp_slot): Deleted.
6974 (gcc_mark_struct_function): struct function now in GC memory.
6976 * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
6977 code for division, not modulus.
6979 * rtl.def (MEM): Remove obsolete part of comment.
6981 2001-09-22 Joseph S. Myers <jsm28@cam.ac.uk>
6983 * c-format.c (init_function_format_info): Check __builtin_printf
6984 and __builtin_fprintf even if -ffreestanding. Check C99 functions
6987 Sat Sep 22 09:09:32 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6989 * c-common.c (format_attribute_table): Remove decl.
6990 * tree.h (format_attribute_table, lang_attribute_table): New decls.
6991 (lang_attribute_common): Likewise.
6993 * function.c (fix_lexical_address): Use set_mem_alias_set.
6994 (expand_function_start): Likewise.
6995 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
6997 * varasm.c (output_constant): Fix unused variable warning.
6999 * attribs.c: New file, from c-common.c.
7000 (attribute_tables): Now four elements.
7001 (format_attribute_table, lang_attribute_common): New variables.
7002 (init_attributes): Reflect above changes.
7003 (handle_mode_attribute): Delete check for wider than uintmax.
7004 * c-common.c: Delete parts moved to attribs.c.
7005 (enum attrs): Deleted; unused.
7006 (c_format_attribute_table): New variable.
7007 (c_common_lang_init): Initialize format_attribute_table with it.
7008 * c-common.h (decl_attributes): Remove decl.
7009 * tree.h (decl_attribute): Move it to here.
7010 * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
7011 (attribs.o): New rule.
7013 2001-09-22 Andreas Jaeger <aj@suse.de>
7015 * builtins.c (c_getstr): Remove unused variable.
7017 2001-09-21 Richard Henderson <rth@redhat.com>
7019 * reload1.c (reload): Use delete_insn instead of splatting
7022 2001-09-21 Richard Henderson <rth@redhat.com>
7024 * reload.c (push_secondary_reload): Don't check for "=" in output
7025 constraint after ""->ALL_REGS check.
7027 2001-09-21 Richard Henderson <rth@redhat.com>
7029 * predict.c (expected_value_to_br_prob): Use pc_set.
7031 * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
7032 ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
7034 2001-09-21 Richard Henderson <rth@redhat.com>
7036 * rtl.h (LCT_RETURNS_TWICE): New.
7037 * calls.c (emit_call_1): Set current_function_calls_setjmp for
7039 (emit_library_call_value_1): Map LCT_RETURNS_TWICE
7040 to ECF_RETURNS_TWICE.
7041 * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
7044 * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
7046 * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
7047 (JMP_BUF_SIZE): New.
7049 2001-09-21 Richard Henderson <rth@redhat.com>
7051 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
7054 2001-09-21 Richard Henderson <rth@redhat.com>
7056 * tree.def (FDESC_EXPR): New.
7057 * expr.c (expand_expr): Handle it.
7058 * varasm.c (initializer_constant_valid_p): Likewise.
7059 (output_constant): Likewise.
7060 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
7061 * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
7062 (ASM_OUTPUT_FDESC): New.
7063 * doc/tm.texi: Document the new macros.
7065 21-09-2001 Richard Earnshaw (reanrsha@arm.com)
7067 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
7068 ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
7069 once merging is complete.
7071 Fri Sep 21 11:20:12 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7073 * integrate.c (allocate_initial_values): Eliminate unused arg warning.
7075 21-09-2001 Richard Earnshaw (reanrsha@arm.com)
7077 * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
7078 that would be invalid after a merge.
7080 Fri Sep 21 14:24:29 CEST 2001 Jan Hubicka <jh@suse.cz>
7082 * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
7083 * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
7085 (flow_delete_insn): This one.
7086 (delete_insn_chain): Rename from ...; do not care labels.
7087 (flow_delete_insn_chain): ... this one.
7088 (flow_delete_block): Remove the insns one BB has been expunged.
7089 (merge_blocks_nomove): Likewise.
7090 (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
7091 updating BB boundaries.
7092 (tidy_fallthru_edge): Likewise.
7093 (commit_one_edge_insertion): Likewise.
7094 * cfgbuild.c (find_basic_block): Likewise.
7095 (find_basic_blocks_1): Likewise.
7096 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
7097 (try_crossjump_to_edge): Likewise.
7098 (try_optimize_cfg): Likewise.
7099 * cse.c (delete_trivially_dead_insns): Likewise.
7100 * df.c (df_insn_delete): Likewise.
7101 * doloop.c (doloop_modify): Use delete_related_insns.
7102 * emit-rtl.c (try_split): Likewise.
7103 (remove_insn): Update BB boundaries.
7104 * expect.c (connect_post_landing_pads): Use delete_related_insns.
7105 * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
7106 updating BB boundaries.
7107 (propagate_block_delete_insn): Likewise.
7108 (propagate_block_delete_libcall): Likewise.
7109 * function.c (delete_handlers): Use delete_related_insns.
7110 (thread_prologue_and_epilogue_insns): Likewise.
7111 * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
7112 * genpeep.c (gen_peephole): Use delete_related_insns.
7113 * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
7115 (find_cond_trap): Likewise.
7116 * integrate.c (save_for_inline): Use delete_related_insns.
7117 (copy_insn_list): Likewise.
7118 * jump.c (pruge_linie_number_notes): Likewise.
7119 (duplicate_loop_exit_test): Likewise.
7120 (delete_computation): Likewise.
7121 (delete_related_insn): Rename from ...; use delete_insn
7122 (delete_insn): ... this one.
7123 (redirect_jump): Use delete_related_insns.
7124 * loop.c (scan_loop): Likewise.
7125 (move_movables): Likewise.
7126 (find_and_verify_loops): Likewise.
7127 (check_dbra_loop): Likewise.
7128 * recog.c (peephole2_optimize): Likewise.
7129 * reg-stack.c (delete_insn_for_stacker): Remove.
7130 (move_for_stack_reg): Use delete_insn.
7131 * regmove.c (combine_stack_adjustments_for_block): Likewise.
7132 * reload1.c (delete_address_reloads): Use delete_related_insns.
7133 (fixup_abnormal_edges): Use delete_insn.
7134 * recog.c (emit_delay_sequence): Use delete_related_insns.
7135 (delete_from-delay_slot): Likewise.
7136 (delete_scheduled_jump): likewise.
7137 (optimize_skip): Likewise.
7138 (try_merge_delay_insns): Likewise.
7139 (full_simple_delay_slots): Likewise.
7140 (fill_slots_from_thread): Likewise.
7141 (relax_delay_slots): Likewise.
7142 (make_return_insns): Likewise.
7143 (dbr_schedule): Likewise.
7144 * rtl.h (delete_insn): Rename to delete_related_insns.
7145 (delete_insn, delete_insn_chain): New prototypes.
7146 * ssa-ccp (sse_fast_dce): Remove deleting of DEF, as it is done
7147 by df_insn_delete already.
7148 * ssa-dce.c (delete_insn_bb): Use delete_insn.
7149 * ssa.c (convert_from_ssa): Use delete_related_insns.
7150 * unroll.c (unroll_loop): Likewise.
7151 (calculate_giv_inc): Likewise.
7152 (copy_loop_body): Likewise.
7154 * i386-protos.h (ix86_libcall_value, ix86_function_value,
7155 ix86_function_arg_regno_p, ix86_function_arg_boundary,
7156 ix86_return_in_memory, ix86_function_value): Declare.
7157 * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
7158 new static valurables.
7159 (x86_64_reg_class): New enum
7160 (x86_64_reg_class_name): New array.
7161 (classify_argument, examine_argument, construct_container,
7162 merge_classes): New static functions.
7163 (optimization_options): Enable flag_omit_frame_pointer and disable
7164 flag_pcc_struct_return on 64bit.
7165 (ix86_libcall_value, ix86_function_value,
7166 ix86_function_arg_regno_p, ix86_function_arg_boundary,
7167 ix86_return_in_memory, ix86_function_value): New global functions.
7168 (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
7169 (function_arg_advance): Handle x86_64 passing conventions.
7170 (function_arg): Likewise.
7171 * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
7172 (RETURN_IN_MEMORY): Move offline.
7173 (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
7174 (FUNCTION_VALUE_REGNO_P): New macro.
7175 (FUNCTION_ARG_REGNO_P): Move offline.
7176 (struct ix86_args): Add maybe_vaarg.
7177 * next.h (FUNCTION_VALUE_REGNO_P): Delete.
7178 * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
7180 2001-09-21 Hartmut Penner <hpenner@de.ibm.com>
7182 * s390.md: Changed attributes for scheduling.
7183 * s390.c: (s390_adjust_cost, s390_adjust_priority)
7186 2001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
7188 Table-driven attributes.
7189 * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
7190 config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
7191 config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
7192 config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
7193 config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
7194 config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
7195 doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
7196 tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
7197 * tree.h (struct tree_decl): Change machine_attributes to
7199 * doc/c-tree.texi: Document that all attributes are now attached
7201 * c-common.c (add_attribute, attrtab, attrtab_idx,
7202 default_valid_lang_attribute, valid_lang_attribute): Remove.
7203 (attribute_tables, attributes_initialized,
7204 c_common_attribute_table, default_lang_attribute_table): New
7206 (handle_packed_attribute, handle_nocommon_attribute,
7207 handle_common_attribute, handle_noreturn_attribute,
7208 handle_unused_attribute, handle_const_attribute,
7209 handle_transparent_union_attribute, handle_constructor_attribute,
7210 handle_destructor_attribute, handle_mode_attribute,
7211 handle_section_attribute, handle_aligned_attribute,
7212 handle_weak_attribute, handle_alias_attribute,
7213 handle_no_instrument_function_attribute,
7214 handle_no_check_memory_usage_attribute, handle_malloc_attribute,
7215 handle_no_limit_stack_attribute, handle_pure_attribute): New
7217 (init_attributes, decl_attributes): Rewrite to implement
7218 table-driven attributes.
7219 * c-common.h (enum attribute_flags): Move to tree.h.
7220 * c-format.c (decl_handle_format_attribute,
7221 decl_handle_format_arg_attribute): Rename to
7222 handle_format_attribute and handle_format_arg_attribute. Update
7223 for table-driven attributes.
7224 * c-common.h (decl_handle_format_attribute,
7225 decl_handle_format_arg_attribute): Remove prototypes.
7226 (handle_format_attribute, handle_format_arg_attribute): Add
7228 * c-decl.c (grokdeclarator): Handle attributes nested inside
7230 * c-parse.in (setattrs, maybe_setattrs): Remove.
7231 (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
7232 Update to handle nested attributes properly.
7233 (maybe_resetattrs, after_type_declarator,
7234 parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
7235 absdcl1_ea, direct_absdcl1): Update to handle nested attributes
7237 (make_pointer_declarator): Update to handle nested attributes
7239 * doc/extend.texi: Update documentation of limits of attributes
7240 syntax. Warn about problems with attribute semantics in C++.
7241 * target.h (struct target): Remove valid_decl_attribute and
7242 valid_type_attribute. Add attribute_table and
7243 function_attribute_inlinable_p.
7244 * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
7245 TARGET_VALID_TYPE_ATTRIBUTE): Remove.
7246 (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
7248 (TARGET_INITIALIZER): Update.
7249 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
7251 (function_attribute_inlinable_p): New function. Check for the
7252 presence of any machine attributes before using
7253 targetm.function_attribute_inlinable_p.
7254 (function_cannot_inline_p): Update.
7255 * Makefile.in (integrate.o): Update dependencies.
7256 * doc/tm.texi: Update documentation of target attributes and
7257 example definition of TARGET_VALID_TYPE_ATTRIBUTE.
7258 * tree.c (default_valid_attribute_p, valid_machine_attribute):
7260 (default_target_attribute_table,
7261 default_function_attribute_inlinable_p): New.
7262 (lookup_attribute): Update comment to clarify handling of multiple
7263 attributes with the same name.
7264 (merge_attributes, attribute_list_contained): Allow multiple
7265 attributes with the same name but different arguments to appear in
7266 the same attribute list.
7267 * tree.h (default_valid_attribute_p): Remove prototype.
7268 (struct attribute_spec): New.
7269 (default_target_attribute_table): Declare.
7270 (enum attribute_flags): Move from c-common.h. Add
7271 ATTR_FLAG_TYPE_IN_PLACE.
7272 (default_function_attribute_inlinable_p): Declare.
7273 * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
7274 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7275 (TARGET_ATTRIBUTE_TABLE): Define.
7276 (vms_attribute_table): New.
7277 * config/arc/arc.c (arc_valid_decl_attribute): Remove.
7278 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7279 (TARGET_ATTRIBUTE_TABLE): Define.
7280 (arc_attribute_table, arc_handle_interrupt_attribute): New.
7281 * config/arm/arm.c (arm_valid_type_attribute_p,
7282 arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
7284 (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
7286 (TARGET_ATTRIBUTE_TABLE): Define.
7287 (arm_attribute_table, arm_handle_fndecl_attribute,
7288 arm_handle_isr_attribute): New.
7289 * config/avr/avr.c (avr_valid_type_attribute,
7290 avr_valid_decl_attribute): Remove.
7291 (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
7293 (TARGET_ATTRIBUTE_TABLE): Define.
7294 (avr_attribute_table, avr_handle_progmem_attribute,
7295 avr_handle_fndecl_attribute): New.
7296 * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
7297 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7298 (TARGET_ATTRIBUTE_TABLE): Define.
7299 (c4x_attribute_table, c4x_handle_fntype_attribute): New.
7300 * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
7301 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7302 (TARGET_ATTRIBUTE_TABLE): Define.
7303 (h8300_attribute_table, h8300_handle_fndecl_attribute,
7304 h8300_handle_eightbit_data_attribute,
7305 h8300_handle_tiny_data_attribute): New.
7306 * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
7307 i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
7309 (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
7311 * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
7312 (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
7314 (TARGET_ATTRIBUTE_TABLE): Define.
7315 (ix86_attribute_table, ix86_handle_cdecl_attribute,
7316 ix86_handle_regparm_attribute): New.
7317 * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
7318 i386_pe_valid_type_attribute_p): Remove.
7319 (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
7320 * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
7321 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7322 (TARGET_ATTRIBUTE_TABLE): Define.
7323 (ia64_attribute_table): New.
7324 * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
7325 interrupt_ident2, model_ident1, model_ident2): Remove.
7326 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7327 (TARGET_ATTRIBUTE_TABLE): Define.
7328 (init_idents): Update.
7329 (m32r_attribute_table, m32r_handle_model_attribute): New.
7330 * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
7332 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7333 (TARGET_ATTRIBUTE_TABLE): Define.
7334 (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
7335 * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
7336 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7337 (TARGET_ATTRIBUTE_TABLE): Define.
7338 (mcore_attribute_table, mcore_handle_naked_attribute): New.
7339 * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
7340 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7341 (TARGET_ATTRIBUTE_TABLE): Define.
7342 (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
7343 * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
7344 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7345 (TARGET_ATTRIBUTE_TABLE): Define.
7346 (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
7347 * config/sh/sh.c (sh_valid_decl_attribute): Remove.
7348 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7349 (TARGET_ATTRIBUTE_TABLE): Define.
7350 (sh_attribute_table, sh_handle_interrupt_handler_attribute,
7351 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
7353 * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
7355 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
7356 (TARGET_ATTRIBUTE_TABLE): Define.
7357 (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
7359 * config/v850/v850.c (v850_valid_decl_attribute): Remove.
7360 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7361 (TARGET_ATTRIBUTE_TABLE): Define.
7362 (v850_attribute_table, v850_handle_interrupt_attribute,
7363 v850_handle_data_area_attribute): New.
7364 * config/v850/v850-c.c (mark_current_function_as_interrupt):
7365 Return void. Call decl_attributes instead of
7366 valid_machine_attribute.
7368 Fri Sep 21 01:49:41 2001 J"orn Rennecke <amylaar@redhat.com>
7370 * sh-protos.h (sh_pr_n_sets): Declare.
7371 * sh.c (calc_live_regs): If the initial value for PR has been copied,
7372 look at the copy to determine if PR needs to be saved.
7373 sh_pr_n_sets: New function.
7374 * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
7375 (ALLOCATE_INITIAL_VALUE): Define.
7377 * sh.c (initial_elimination_offset):
7378 Fix RETURN_ADDRESS_POINTER_REGNUM case.
7380 Fri Sep 21 01:13:56 2001 J"orn Rennecke <amylaar@redhat.com>
7382 * integrate.c (allocate_initial_values): New function.
7383 * integrate.h (allocate_initial_values): Declare.
7384 * local-alloc.c (local_alloc): Move call to allocate_reg_info from
7386 * reload1.c (reload): And initialization of reg_equiv_memory_loc
7388 * toplev.c (rest_of_compilation): To here.
7389 Call allocate_initial_values.
7390 * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
7392 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7394 * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
7396 2001-09-20 DJ Delorie <dj@redhat.com>
7398 * c-typeck.c (really_start_incremental_init): Discriminate
7399 between zero-length arrays and flexible arrays.
7400 (push_init_level): Detect zero-length arrays and handle them
7401 like fixed-sized arrays.
7402 * expr.c (store_constructor): Handle zero-length arrays and
7403 flexible arrays correctly.
7404 * doc/extend.texi: Update zero-length array notes.
7406 2001-09-20 Jim Wilson <wilson@redhat.com>
7408 * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
7409 (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
7410 for issue port conflicts.
7411 (cycle_end_fill_slots): TYPE_L instructions take two slots.
7413 2001-09-20 Andrew MacLeod <amacleod@redhat.com>
7415 * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
7418 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7420 * fold-const.c (hashtab.h): Include.
7421 (int_const_binop): Remove FORSIZE arg and compute from type; all
7423 Call size_int_type_wide for all single-word constants.
7424 (size_htab_hash, size_htab_eq): New functions.
7425 (size_int_type_wide): Rework to use hash table.
7426 * ggc-common.c (hashtab.h): Include.
7427 (struct d_htab_root): New struct.
7428 (d_htab_roots): New variable.
7429 (ggc_add_deletable_htab, ggc_htab_delete): New functions
7430 (ggc_mark_roots): Handle deletable htabs.
7431 * ggc-page.c (ggc_marked_p): New function.
7432 * ggc-simple.c (ggc_marked_p): Likewise.
7433 * ggc.h: Reformatting throughout.
7434 (ggc_marked_p, ggc_add_deletable_htab): New declarations.
7435 * tree.c (init_obstacks): Make type_hash_table a deletable root.
7436 (type_hash_add): Allocate struct type_hash from GC memory.
7437 (mark_hash_entry, mark_type_hash): Deleted.
7438 (type_hash_marked_p, type_hash_mark): New functions.
7439 * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
7441 Thu Sep 20 12:49:34 2001 J"orn Rennecke <amylaar@redhat.com>
7443 * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
7446 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7448 * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
7449 array-too-large test for signed sizetype.
7451 Thu Sep 20 12:19:36 CEST 2001 Jan Hubicka <jh@suse.cz>
7453 * i386.md (indirect_jump): Allow Pmode operand.
7454 (tablejump): LIkewise; perform expansion to 64bit mode.
7455 * i386.c (symbolic_operand): Allow 64bit PIC references.
7456 (pic_symbolic_operand): Likewise.
7457 (ix86_find_base_term): Strip the 64bit PIC references.
7458 (legitimate_pic_address_disp_p): Handle 64bit PIC.
7459 (legitimize_pic_address): Likewise.
7460 (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
7461 * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
7463 2001-09-19 Alexandre Petit-Bianco <apbianco@redhat.com>
7465 * stringpool.c (get_identifier_with_length): New function.
7466 * tree.h (get_identifier_with_length): New prototype.
7468 2001-09-19 Alan Modra <amodra@bigpond.net.au>
7469 David Edelsohn <edelsohn@gnu.org>
7472 * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
7473 already sign-extended.
7475 * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
7476 * config/rs6000/rs6000.c (logical_operand): Always compare op as
7478 (rs6000_emit_set_long_const): Avoid unnecessary shift.
7479 (output_profile_hook): Declare label_name const.
7480 * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
7481 to match constraints.
7483 2001-09-19 Stan Shebs <shebs@apple.com>
7485 * alias.c: Fix typos in comments.
7486 * sched-rgn.c (init_ready_list): Ditto.
7487 * unwind-dw2.c (uw_frame_state_for): Ditto.
7488 * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
7489 * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
7490 * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
7492 2001-09-19 Richard Henderson <rth@redhat.com>
7494 * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
7496 * Makefile.in (cfg.o): Depend on TM_P_H.
7498 2001-09-19 Richard Henderson <rth@redhat.com>
7500 * config/alpha/alpha.c (local_symbol_p): Split out from ...
7501 (local_symbolic_operand): ... here.
7502 (small_symbolic_operand): Check mode.
7503 (global_symbolic_operand): New.
7504 (input_operand): Reject symbolics if explicit relocs.
7505 (call_operand): Tidy.
7506 (alpha_legitimize_address): Use movdi_er_high_g.
7507 (alpha_expand_mov): Likewise.
7508 * config/alpha/alpha-protos.h: Update.
7509 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7510 * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
7511 (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
7512 (UNSPECV_LDGP2): Remove.
7513 (all call patterns): Use 's' not 'i' for symbolic constraint.
7514 (call_osf call_value_osf): Use call_operand.
7515 (all osf call patterns): Use $gp. New peepholes for explicit relocs.
7516 (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
7517 (prologue_ldgp_1_er): Remove.
7518 (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
7519 (builtin_setjmp_receiver_er patterns): Use them.
7520 (exception_receiver_er): Likewise.
7522 2001-09-19 Richard Henderson <rth@redhat.com>
7524 * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
7526 * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
7527 and NON_LOCAL_GOTO notes.
7528 * recog.c (peephole2_optimize): Likewise. Handle EH_REGION;
7529 copy over CALL_INSN_FUNCTION_USAGE.
7531 2001-09-18 Catherine Moore <clm@redhat.com>
7533 * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
7536 2001-09-18 Ulrich Weigand <uweigand@de.ibm.com>:
7538 * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
7539 new-style tm_file specification. Specify correct tm_p_file,
7540 md_file, and out_file for s390x.
7542 * config/s390/linux.h, linux64.h: Don't include other target
7543 macro header files. Now handled via tm_file.
7545 * config/s390/linux.h, s390.h: (IEEE_FLOAT, TARGET_IEEE_FLOAT,
7546 TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
7547 are defined before use.
7549 Tue Sep 18 09:51:11 2001 Eric Christopher <ecechristo@redhat.com>
7551 * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
7552 code generation only for Gnu assembler.
7554 2001-09-18 Catherine Moore <clm@redhat.com>
7556 * config/stormy16 (LIB_SPEC): Remove -lnosys.
7558 2001-09-18 Richard Sandiford <rsandifo@redhat.com>
7560 * config/mips/mips.c (mips_frame_set): New.
7561 (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
7562 a parallel frame-related expression with a set for each register.
7564 2001-09-18 Philip Blundell <philb@gnu.org>
7566 * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
7569 2001-09-17 Dale Johannesen <dalej@apple.com>
7571 * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
7572 * config/rs6000/aix.h (FIXED_R2): Define.
7573 * config/rs6000/darwin.h (FIXED_R2): Define.
7574 * config/rs6000/sysv4.h (FIXED_R2): Define.
7576 2001-09-17 Jeff Sturm <jsturm@one-point.com>
7578 * except.c (dw2_build_landing_pads): New local
7579 clobbers_hard_regs. Emit an ASM_INPUT as a scheduling
7580 barrier after clobbers. Fixes c++/4012.
7582 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7584 * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
7586 2001-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
7588 * dostage2, dostage3, listing, make-l2.com, makefile.vms,
7589 patch-apollo-includes, vmsconfig.com: Remove obsolete files.
7591 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7593 * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
7596 2001-09-17 Neil Booth <neil@daikokuya.demon.co.uk>
7598 * cpphash.h (_cpp_lex_direct): New.
7599 * cpplex.c (_cpp_lex_token): Update.
7600 (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
7601 and increment that pointer.
7602 * cppmacro.c (alloc_expansion_token): New.
7603 (lex_expansion_token): Lex macro expansion directly into
7606 2001-09-16 Brad Lucier <lucier@math.purdue.edu>
7608 * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
7610 Sun Sep 16 21:59:46 CEST 2001 Jan hubicka <jh@suse.cz>
7612 * basic-block.h (free_bb_for_insn): Declare.
7613 * bb-reorder.c (label_for_bb): Use block_label.
7614 (emit_jump_to_block_after): Remove.
7615 (insert_intra_1): Do not update block_for_insn.
7616 (insert_inter_bb_scope_notes): Likewise; update bb->end
7617 * cfg.c (free_bb_for_insn): New.
7618 (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
7619 (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
7620 (commit_one_edge_insertion): Likewise.
7621 (commit_one_edge_insertion): Do not update BB boundary.
7622 (commit_edge_insertions): Do not call compute_bb_for_insn.
7623 * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
7624 * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
7625 (merge_blocks_move_successor_nojumps): Likewise.
7626 (try_crossjump_to_edge): Do not update block_for_insn.
7627 * combine.c (combine_instructions): Remove compute_bb_for_insn call.
7628 * df.c (df_pattern_emit_later): Do not update BB boundary.
7629 (df_jump_pattern_emit_after): Likewise.
7630 (df_insn_move_before): Use emit_insn_before.
7631 * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
7633 (add_insn_after, add_insn_before, emit_insns_after): Update BB
7634 boundaries and basic_block_for_insn.
7635 (reorder_insns_nobb): Rename from reorder_insns.
7636 (reorder_insns): New.
7637 (emit_block_insn_before, emit_block_insn_after): Kill.
7638 * flow.c (check_function_return_warnings): Do not call
7639 compute_bb_for_insn; Do not free basic_block_for_insn.
7640 (attempt_auto_inc): Do not update basic_block_for_insn.
7641 * function.c (emit_return_into_block): Likewise;
7642 do not update BB boundaries.
7643 * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
7644 (insert_insn_end_bb): Use emit_insn_before; Likewise.
7645 (pre_insert_copy_insn): Likewise.
7646 (update_ld_motion_notes): Likewise.
7647 (insert_insn_start_bb): Likewise.
7648 (replace_store_insn): Likewise.
7649 * ifcvt.c (noce_process_if_block): Likewise.
7650 (if_convert): Do not call compute_bb_for_insn.
7651 * lcm.c (optimize_mode_switching): Do not update BB boundaries.
7652 Use emit_insn_before and emit_insn_after.
7653 * recog.c (split_all_insns): Do not update BB boundaries;
7654 Do not call compute_bb_for_insn.
7655 (peephole2_optimize): Do not update BB boundaries.
7656 * reg-stack.c (emit_pop_insn): Use emit_insn_after and
7658 (emit_swap_insn): Likewise.
7659 (convert_regs_1): Likewise.
7660 * reload1.c (reload): Call compute_bb_for_insn.
7661 * rtl.h (reorder_insns_nobb): Declare.
7662 * ssa.c (rename_equivalent_regs): Use emit_insn_before.
7663 * toplev.c (rest_of_compilation): Call free_bb_for_insn
7664 at places CFG is invalidated; do not call compute_bb_for_insn.
7666 * cfg.c (expunge_block): Invalidate BB structure.
7668 * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
7671 * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
7673 2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
7675 * cpphash.h (_cpp_lex_token): Update prototype.
7676 * cpplex.c (_cpp_lex_token): New prototype.
7677 * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
7678 lex_macro_node, read_flag, do_pragma_poison): Update.
7679 * cppmacro.c (cpp_get_token, parse_params,
7680 lex_expansion_token): Update.
7682 2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
7684 * cppmain.c (scan_translation_unit): Don't worry about
7685 putting a space after hashes.
7686 * cpplib.c (directive_diagnostics): New.
7687 (_cpp_handle_directive): Update to use directive_diagnostics.
7688 (run_directive): Don't toggle prevent_expansion.
7689 (do_line): Backup in case of the line extension.
7690 * cpplib.h (cpp_lexer_pos): Remove.
7691 * cppmacro.c (_cpp_create_definition): Precede a leading #
7694 2001-09-15 Richard Henderson <rth@redhat.com>
7696 * c-typeck.c (comptypes): Handle zero-length arrays properly.
7698 2001-09-15 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7700 * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
7702 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7704 PR preprocessor/3571
7705 * tradcpp.c (handle_directive): Skip non-vertical space.
7707 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7709 * cppmain.c (setup_callbacks): Set line callback only
7710 if outputting preprocessed source.
7712 2001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7714 * collect2.c (main): Const-ification.
7715 * gcc.c (translate_options, process_command): Use xstrdup in
7716 lieu of xmalloc/strcpy.
7717 (main): Use concat in lieu of xmalloc/strcpy/strcat.
7719 2001-09-14 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7721 * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
7724 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7726 * scan-decls.c (scan_decls): Fix typo.
7728 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7730 * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
7731 Split mlstring_pos into mls_line and mls_col.
7732 * cppinit.c (cpp_create_reader): Initialize line to 1.
7733 (cpp_destroy): Free tokenruns.
7734 (push_include): Don't update lexer_pos.
7735 * cpplex.c (unterminated, parse_string): Update.
7736 (lex_token): Don't update lexer_pos, update.
7737 * cpplib.c (if_stack): Save line instead of line + col.
7738 (start_directive, _cpp_do__Pragma, do_else, do_elif,
7739 push_conditional, _cpp_pop_buffer): Update.
7740 * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
7741 (_cpp_create_definition): Update.
7743 2001-09-15 Eric Christopher <echristo@redhat.com>
7745 * config/mips/abi64.h: Add support for MEABI.
7747 2001-09-15 Eric Christopher <echristo@redhat.com>
7749 * config/mips/mips.md: Add unspec #2.
7751 (reload_outdi): Ditto.
7752 (reload_outsi): Ditto.
7755 2001-09-15 Eric Christopher <echristo@redhat.com>
7756 Jason Eckhardt <jle@redhat.com>
7758 * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
7759 * config/mips/isa32-linux.h: New file.
7760 * config/mips/isa3264.h: Ditto.
7761 * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
7762 * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
7763 (output_block_mode): Support MEABI.
7764 (function_arg): Ditto. Fix floating point arg passing.
7765 (mips_va_start): Ditto.
7766 (override_options): Add isas 32 and 64, meabi, mips32 and mips64
7768 (mips_asm_file_start): Add new section to pass abi to gdb.
7769 (function_arg_pass_by_reference): Support MEABI.
7770 (mips_parse_cpu): Support mips32 and mips64 processors.
7771 * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
7772 TARGET_MIPS5KC. Support isa32 and isa64.
7773 (processor_type): Add r4kc, r5kc, r20kc.
7774 (GENERATE_MULT3_SI): New.
7775 (GENERATE_MULT3_DI): Ditto.
7776 (GENERATE_MULT3): Remove.
7777 (ISA_HAS_64BIT_REGS): Add isa == 64.
7778 (ISA_HAS_8CC): Add mips_isa = 32 and 64.
7779 (ISA_HAS_MADD_MSUB): New.
7780 (ISA_HAS_CLZ_CLO): Ditto.
7781 (ISA_HAS_DCLZ_DCLO): Ditto.
7782 (ABI_GAS_ASM_SPEC): New.
7783 (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
7786 (SUBTARGET_CC1_SPEC): Ditto.
7787 (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7788 (PAD_VARARGS_DOWN): Support MEABI.
7789 (HARD_REGNO_NREGS): Move to mips.c.
7790 (ASM_OUTPUT_IDENT): Add #undef.
7791 * config/mips/mips.md: Add r4kc, r5kc, r20kc.
7792 (mulsi3): Use GENERATE_MULT3_SI.
7793 (mulsi3_mult3): Ditto. Support mips32, mips64.
7794 (mul_acc_si): Use ISA_HAS_MADD_MSUB.
7795 (mul_sub_si): New pattern.
7796 (unnamed splitters): New.
7797 (muldi3): Use GENERATE_MULT3_DI.
7798 (muldi3_internal2): Ditto.
7799 (movdicc): Support mips32.
7800 * config/mips/t-isa3264: New file.
7802 2001-09-15 Hans-Peter Nilsson <hp@axis.com>
7804 * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
7805 || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
7806 || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
7808 * reorg.c (fill_slots_from_thread): After call to
7809 steal_delay_list_from_target, update own_thread as new_thread may
7812 2001-09-14 Neil Booth <neil@daikokuya.demon.co.uk>
7814 * cpperror.c (print_location): Take line and column, for
7815 default positioning use the previously lexed token.
7816 (_cpp_begin_message): Take line and column.
7817 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7818 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7819 * cpphash.h (_cpp_begin_message): Update prototype.
7820 * cppinit.c (push_include): Don't set output line.
7821 * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
7822 * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
7823 (do_pragma): Kludge for front ends. Don't expand macros at all.
7824 * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
7825 (struct cpp_token): Remove output_line.
7826 (struct cpp_callbacks): New member line_change.
7827 * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
7828 cpp_get_token): Preserve BOL flag.
7829 (cpp_get_line): Remove.
7830 (_cpp_backup_tokens): Remove useless abort().
7831 * cppmain.c (cb_line_change): New.
7832 (scan_translation_unit): Don't worry about starting new lines here.
7833 * scan-decls.c (scan_decls): Update.
7834 * c-lex.c (c_lex, init_c_lex): Update.
7835 (cb_line_change, src_lineno): New.
7837 Fri Sep 14 13:54:50 EDT 2001 John Wehle (john@feith.com)
7839 * tree.c (append_random_chars): Generate the random
7840 characters in a reproducable fashion.
7842 2001-09-14 Richard Henderson <rth@redhat.com>
7844 * config/i386/i386.c (internal_label_prefix): New.
7845 (internal_label_prefix_len): New.
7846 (override_options): Set them.
7847 (local_symbolic_operand): New.
7848 (legitimate_pic_address_disp_p): Use it.
7849 (legitimize_pic_address): Likewise.
7851 2001-09-14 Marc Espie <espie@openbsd.org>
7853 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Generate reference to GOT
7856 2001-09-14 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7858 * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
7859 * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
7861 2001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
7863 * rtlanal.c (subreg_regno_offset): Add semicolon to end of
7864 invocation of SUBREG_REGNO_OFFSET.
7866 * haifa-sched.c: Fix typo in FSF copyright statement.
7867 * sched-deps.c: Fix typo in FSF copyright statement.
7868 * sched-ebb.c: Fix typo in FSF copyright statement.
7869 * sched-rgn.c: Fix typo in FSF copyright statement.
7870 * sched-vis.c: Fix typo in FSF copyright statement.
7872 * config.gcc: Move inclusion of arm elf specific header files
7873 from the files themselves into the tm_file variable. Make
7874 sure that elfos.h is included before target specific elf
7876 * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
7878 (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
7879 * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
7880 ASM_OUTPUT_CASE_LABEL): Protect definition.
7881 (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
7882 not already defined.
7883 * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
7884 LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
7885 Remove duplicate definition.
7886 (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
7887 (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
7888 (RDATA_SECTION_FUNCTION): Remove redundant definition.
7889 (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
7890 Remove inclusion of arm/elf.h.
7891 * config/arm/unknown-elf.h: as for conix-elf.h.
7892 (STARTFILE_SPEC): Include crti.o and crtn.o.
7893 * config/arm/linux-elf.h: as for conix-elf.h.
7894 * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
7895 * config/arm/strongarm-elf.h: Remove inclusion of
7897 * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
7898 * config/arm/unknown-elf-oabi.h: Remove inclusion of
7899 unknown-elf.h and elf.h.
7900 * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
7901 * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
7902 ASM_WEAKEN_LABEL): Remove redundant definition.
7903 * config/arm/elf.h: Test for inclusion of elfos.h
7904 (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
7905 ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
7906 SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
7907 EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
7908 redundant definition.
7909 (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
7910 ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
7911 ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
7912 * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
7913 Add rules to build crti.o and crtn.o
7914 * crti.asm: New file.
7915 * crtn.asm: New file.
7917 2001-09-13 Neil Booth <neil@daikokuya.demon.co.uk>
7919 * c-parse.in (_yylex): Use _cpp_backup_tokens.
7920 * cpphash.h (struct tokenrun): Add prev.
7921 (struct lexer_state): Remove bol.
7922 (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
7923 (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
7925 * cppinit.c (cpp_create_reader): Don't set bol.
7926 (cpp_destroy): Don't free lookaheads.
7927 * cpplex.c (lex_directive): Remove.
7928 (next_tokenrun): Update.
7929 (_cpp_lex_token): Clean up logic.
7930 (lex_token): Update to return a pointer to lexed token, since it
7931 can move to the start of the buffer. Simpify newline handling.
7932 * cpplib.c (SEEN_EOL): Update.
7933 (skip_rest_of_line): Remove lookahead stuff.
7934 (end_directive): Line numbers are already incremented. Revert
7935 to start of lexed token buffer if we can.
7936 (_cpp_handle_directive, do_pragma, do_pragma_dependency,
7937 parse_answer): Use _cpp_backup_tokens.
7938 (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
7939 instead. Don't check for EOL.
7940 (do_include_common, do_line, do_pragma_system_header): Use
7942 * cpplib.h (BOL, _cpp_backup_tokens): New.
7943 * cppmacro.c (save_lookahead_token, take_lookahead_token,
7944 alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
7945 cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
7946 (builtin_macro): Don't use cpp_get_line.
7947 (cpp_get_line): Short term kludge.
7948 (parse_arg): Handle directives in arguments here. Back up when
7949 appropriate. Store EOF at end of argument list.
7950 (funlike_invocation_p): Use _cpp_backup_tokens.
7951 (push_arg_context): Account for EOF at end of list.
7952 (cpp_get_token): Remove lookahead stuff. Update.
7954 2001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7956 * c-parse.in (yyerror): Const-ification and/or static-ization.
7957 * c-typeck.c (push_member_name): Likewise.
7958 * collect2.c (main): Likewise.
7959 * dbxout.c (dbxout_parms): Likewise.
7960 * diagnostic.c (format_with_decl): Likewise.
7961 * dwarf2out.c (output_ranges): Likewise.
7962 * dwarfout.c (fundamental_type_code): Likewise.
7963 * except.c (dw2_output_call_site_table): Likewise.
7964 * gcc.c (do_spec_1): Likewise.
7965 * genopinit.c (optabs): Likewise.
7966 * objc/objc-act.c (synth_id_with_class_suffix, start_class,
7967 gen_declaration_1, handle_impent): Likewise.
7968 * protoize.c (default_include, in_system_include_dir, abspath):
7970 * sched-vis.c (visualize_stall_cycles): Likewise.
7971 * sdbout.c (plain_type_1, sdbout_end_function,
7972 sdbout_end_epilogue): Likewise.
7973 * varasm.c (decode_reg_name): Likewise.
7975 * 1750a.c (mod_regno_adjust): Likewise.
7976 * alpha.c (alpha_write_one_linkage,
7977 unicosmk_output_default_externs): Likewise.
7978 * arm.c (arm_condition_codes): Likewise.
7979 * arm.h (arm_condition_codes): Likewise.
7980 * avr.c (output_movsisf, encode_section_info): Likewise.
7981 * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
7983 * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7984 * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7985 * m88k.c (output_function_profiler): Likewise.
7986 * mips.c (mips_output_conditional_branch): Likewise.
7987 * ns32k.c (ns32k_out_reg_names): Likewise.
7988 * ns32k.h (ns32k_out_reg_names): Likewise.
7989 * pj.c (pj_output_rval): Likewise.
7990 * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
7991 * sparc.c (sparc_flat_function_prologue,
7992 sparc_flat_function_epilogue): Likewise.
7994 2001-09-13 Markus Werle <numerical.simulation@web.de>
7995 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7997 * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
7998 Aachen University of Technology".
8000 2001-09-13 Andreas Schwab <schwab@suse.de>
8002 * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
8005 2001-09-13 Richard Henderson <rth@redhat.com>
8007 * config/alpha/alpha.c (small_symbolic_operand): New.
8008 (override_options): Set MASK_SMALL_DATA based on pic/PIC.
8009 (some_operand, input_operand): Don't handle HIGH.
8010 (alpha_legitimize_address): Use it. Emit HIGH with PLUS gp.
8011 (alpha_expand_mov): Likewise.
8012 (print_operand) [H]: Just print HIGH symbol.
8013 (print_operand_address): Handle small data.
8014 * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
8015 (TARGET_SWITCHES): Add -msmall-data/large-data.
8016 (PIC_OFFSET_TABLE_REGNUM): New.
8017 (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
8018 (PREDICATE_COES): Update.
8019 * config/alpha/alpha.md (adddi_er_high): New.
8020 (adddi_er_low): Handle small data.
8021 * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
8022 prefer .sdata to .rodata.
8023 (SELECT_RTX_SECTION): Likewise.
8025 2001-09-12 Josh Martin <josh.martin@abq.sc.philips.com>
8027 * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
8028 defining __size_t and leaving size_t undefined.
8030 2001-09-12 Diego Novillo <dnovillo@redhat.com>
8032 * basic-block.h (expunge_block): Declare.
8033 * cfg.c (expunge_block): Remove static declaration.
8035 2001-09-12 Richard Henderson <rth@redhat.com>
8037 * integrate.c (copy_insn_list): Copy label name from
8038 NOTE_INSN_DELETED_LABEL.
8040 2001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8042 * c-common.c (c_tree_code_name): Const-ification.
8043 * c-decl.c (c_decode_option): Likewise.
8044 * c-typeck.c (warn_for_assignment): Likewise.
8045 * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
8047 * cppinit.c (output_deps): Likewise.
8048 * dependence.c (dependence_string, direction_string): Likewise.
8049 * dwarf2out.c (output_ranges): Likewise.
8050 * fixinc/fixfixes.c (emit_gnu_type): Likewise.
8051 * fixinc/gnu-regex.c (re_error_msgid): Likewise.
8052 * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
8053 standard_startfile_prefix, standard_startfile_prefix_1,
8054 standard_startfile_prefix_2, tooldir_base_prefix,
8055 standard_bindir_prefix, find_a_file): Likewise.
8056 * genattrtab.c (make_length_attrs): Likewise.
8057 * gencheck.c (tree_codes): Likewise.
8058 * genemit.c (gen_split): Likewise.
8059 * genrecog.c (special_mode_pred_table): Likewise.
8060 * graph.c (graph_ext): Likewise.
8061 * protoize (default_include): Likewise.
8062 * reload.c (reload_when_needed_name): Likewise.
8063 * sched-vis.c (visualize_stall_cycles): Likewise.
8064 * tlink.c (recompile_files): Likewise.
8065 * toplev.c (decode_g_option): Likewise.
8066 * tradcpp.c (output_deps): Likewise.
8067 * varasm.c (decode_reg_name): Likewise.
8069 * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
8072 * avr.c (avr_regnames, encode_section_info): Likewise.
8073 * c4x.c (float_reg_names): Likewise.
8074 * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
8075 * elfos.h (const_section): Likewise.
8076 * i386.c (ix86_comp_type_attributes): Likewise.
8077 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
8078 * ia64/aix.h (UNIQUE_SECTION): Likewise.
8079 * ia64.c (type_names): Likewise.
8080 * m68hc11.c (reg_class_names): Likewise.
8081 * m88k.c (m_options): Likewise.
8082 * mips.c (mips_output_conditional_branch, mips_unique_section):
8084 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8085 * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
8086 ultra_code_names): Likewise.
8087 * sparc.h (OVERRIDE_OPTIONS): Likewise.
8089 2001-09-12 Jakub Jelinek <jakub@redhat.com>
8091 * configure.in (gcc_cv_as_shf_merge): Fix a typo.
8092 Use --fatal-warnings option for gas.
8093 * configure: Rebuilt.
8095 2001-09-12 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8097 * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
8099 2001-09-11 Jim Wilson <wilson@redhat.com>
8101 * alias.c (clear_reg_alias_info): Only handle pseudo registers.
8103 2001-10-11 Matt Kraai <kraai@alumni.carnegiemellon.edu>
8105 * builtins.c (c_strlen): Treat an offset too large for a
8106 HOST_WIDE_INT as out of range.
8108 Tue Sep 11 18:57:47 CEST 2001 Jan Hubicka <jh@suse.cz>
8110 * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
8111 (EDGE_CRITICAL_P): New predicate.
8112 * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
8114 (insert_insn_on_edge): Use EDGE_CRITICAL_P.
8115 (dump_edge_info): Remove "crit".
8116 * cfganal.c (mark_critical_edges): Kill.
8117 * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
8118 * cfgcleanup.c (cleanup_cfg): Likewise.
8119 * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
8120 (find_spanning_tree): Likewise.
8121 * reg-stack.c (convert_regs_1): Likewise.
8122 * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
8124 * basic-block.h (create_basic_block_structure): New.
8125 (create_basic_block): Update prototype.
8126 (force_nonfallthru): New.
8127 * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
8128 * cfg.c (create_basic_block_structure): Rename from create_basic_block;
8129 handle updating of block_for_insn, creating of empty BBs and BBs at
8130 the end of INSN chain.
8131 (create_basic_block): New function.
8132 (split_block): Use create_basic_block.
8133 (force_nonfallthru_and_redirect): Break out from ...; cleanup
8134 (redirect_edge_and_branch_force): ... here.
8135 (force_nonfallthru): New.
8136 (split_edge): Rewrite to use force_nonfallthru and create_block.
8137 * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
8138 (find_basic_blocks): Free basic_block_for_insn.
8139 * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
8141 * cfg.c: Fix formating.
8142 * cfgcleanup.c: Fix formating.
8143 (merge_blocks, tail_recursion_label_p): Return bool.
8144 (merge_blocks_move_predecessor_nojumps,
8145 merge_blocks_move_successor_nojumps): Return void.
8147 2001-09-11 Jakub Jelinek <jakub@redhat.com>
8149 * configure.in: Check whether assembler supports section merging.
8150 * config.in: Rebuilt.
8151 * configure: Rebuilt.
8152 * varasm.c (variable_section, output_constant_pool): Pass alignment
8153 to SELECT_SECTION and SELECT_RTX_SECTION.
8154 (mergeable_string_section): New.
8155 (mergeable_constant_section): New.
8156 (default_elf_asm_named_section): Output SECTION_MERGE and
8157 SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
8158 * output.h (mergeable_string_section): New.
8159 (mergeable_constant_section): New.
8160 (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
8161 * toplev.c (flag_merge_constants): New.
8162 (f_options): Add -fmerge-constants and -fmerge-all-constants
8164 (toplev_main): Default to -fno-merge-constants if not optimizing.
8165 * flags.h (flag_merge_constants): Add extern.
8166 * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
8167 * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
8169 * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
8170 Define if assembler has working .subsection -1 support.
8171 (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
8172 Put constant into special SHF_MERGE sections if the linker should
8173 attempt to merge duplicates.
8174 * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
8176 Put constant into special SHF_MERGE sections if the linker should
8177 attempt to merge duplicates.
8178 * config/alpha/elf.h: Likewise.
8179 (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
8180 has working .subsection -1 support.
8181 * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
8183 * config/svr3.h: Likewise.
8184 * config/darwin.h: Likewise.
8185 * config/arm/aof.h: Likewise.
8186 * config/arm/linux-elf.h: Likewise.
8187 * config/avr/avr.h: Likewise.
8188 * config/c4x/c4x.h: Likewise.
8189 * config/d30v/d30v.h: Likewise.
8190 * config/i386/dgux.h: Likewise.
8191 * config/i386/osfrose.h: Likewise.
8192 * config/i386/sco5.h: Likewise.
8193 * config/i386/svr3gas.h: Likewise.
8194 * config/ia64/aix.h: Likewise.
8195 * config/m32r/m32r.h: Likewise.
8196 * config/m68k/m68k.h: Likewise.
8197 * config/m88k/dgux.h: Likewise.
8198 * config/m88k/m88k.h: Likewise.
8199 * config/mcore/mcore-pe.h: Likewise.
8200 * config/mips/mips.h: Likewise.
8201 * config/pa/pa.h: Likewise.
8202 * config/pa/pa-linux.h: Likewise.
8203 * config/romp/romp.h: Likewise.
8204 * config/rs6000/sysv4.h: Likewise.
8205 * config/rs6000/xcoff.h: Likewise.
8206 * config/s390/linux.h: Likewise.
8207 * config/sparc/sparc.h: Likewise.
8208 * config/sparc/sysv4.h: Likewise.
8209 * config/stormy16/stormy16.h: Likewise.
8210 * config/v850/v850.h: Likewise.
8211 * config/vax/vms.h: Likewise.
8212 * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
8213 and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
8214 * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
8215 default_elf_asm_named_section for SHF_MERGE sections.
8217 Tue Sep 11 17:55:54 CEST 2001 Jan Hubicka <jh@suse.cz>
8219 * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
8222 2001-09-11 Joseph S. Myers <jsm28@cam.ac.uk>
8224 * c-common.c (split_specs_attrs): Allow for empty attributes with
8225 empty TREE_PURPOSE. Fixes PR c/4294.
8227 Tue Sep 11 11:37:52 CEST 2001 Jan Hubicka <jh@suse.cz>
8229 * basic-block.h (cached_make_edge, make_single_succ): New.
8230 (make_edge): Remove first parameter.
8231 * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
8232 * cfg.c (cached_make_edge): Rename from make_edge; return newly
8233 created edge; use obstack allocation.
8234 (make_edge, make_single_succ_edge): New.
8235 (first_removed_edge): New static variable.
8236 (init_flow): Initialize first_removed_edge and n_edges.
8237 (clear_edges): Use remove_edge.
8238 (flow_delete_block): Likewise.
8239 (remove_edge): Add removed edges to the removed edges list.
8240 (split_block, redirect_edge_and_branch_force, split_edge):
8242 * cfganal.c (flow_call_edges_add): Updaet make_edge call.
8243 (add_noreturn_fake_exit_edges): Likewise.
8244 (connect_infinite_loops_to_exit): Liekwise.
8245 * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
8246 Use cached_make_edge.
8247 * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
8248 * profile.c (branch_prob): Update make_edge call.
8249 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8251 2001-09-11 Richard Henderson <rth@redhat.com>
8253 * config/alpha/alpha.c: Tidy formatting.
8254 (local_symbolic_operand): Verify mode.
8255 (alpha_sa_mask): Ignore unicos for eh_return.
8256 (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
8257 * config/alpha/alpha.md (umk divsi patterns): Remove.
8258 (extendsfdf2): Remove unicos check.
8259 (tablejump): Merge vms and unicos code; always use direct set
8262 2001-09-11 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8264 * config.gcc (alpha*-*-unicosmk*): New target.
8266 * config/alpha/alpha-protos.h (symbolic_operand,
8267 unicosmk_add_call_info_word, unicosmk_add_extern,
8268 unicosmk_defer_case_vector, unicosmk_unique_section,
8269 unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
8270 unicosmk_asm_file_start, unicosmk_asm_file_end,
8271 unicosmk_output_common): Declare.
8273 * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
8274 direct_return, function_arg, alpha_va_start, alpha_va_arg,
8275 alpha_does_function_need_gp, alpha_end_function): Support Cray
8277 (alpha_init_machine_status, alpha_mark_machine_status,
8278 alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
8279 unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
8280 unicosmk_asm_named_section, unicosmk_insert_attributes,
8281 unicosmk_section_type_flags, symbolic_operand,
8282 unicosmk_output_module_name, unicosmk_output_default_externs,
8283 unicosmk_output_dex, unicosmk_output_externs,
8284 unicosmk_output_addr_vec, unicosmk_ssib_name,
8285 unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
8286 unicosmk_asm_file_end, unicosmk_output_common,
8287 unicosmk_section_type_flags, unicosmk_unique_section,
8288 unicosmk_add_call_info_word, unicosmk_text_section,
8289 unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
8290 unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
8291 unicosmk_dex_count, unicosmk_special_name): New.
8292 (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
8293 TARGET_ABI_UNICOSMK.
8294 (get_aligned_mem, alpha_expand_unaligned_load,
8295 alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
8296 alpha_expand_unaligned_store_words): Support big-endian mode.
8297 (print_operand): Likewise. New format specifier 't'. Use
8298 TARGET_AS_SLASH_BEFORE_SUFFIX.
8299 (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
8300 (alpha_pv_save_size): Update with above change.
8301 (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
8302 alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
8305 * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
8306 (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
8307 (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
8308 (EXTRA_CONSTRAINT): New constraint 'U'.
8309 (PREDICATE_CODES): Add symbolic_operand.
8311 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
8312 UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
8313 (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
8314 (integer division and modulus patterns): Split in default and
8316 (*divmodsi_internal, *divmoddi_internal): Disable for
8317 TARGET_ABI_UNICOSMK.
8318 (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
8319 little-endian and big-endian versions.
8320 (ext, ins, msk): Likewise.
8321 (extv, extzv, insv): Support big-endian mode.
8322 (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
8323 (call_umk, call_value_umk, *call_umk, tablejump_umk,
8324 *tablejump_umk_internal, *call_value_umk): New.
8325 (*movdi_nofix): Add pattern for loading an address into a register on
8326 TARGET_ABI_UNICOSMK.
8327 (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
8328 (umk_mismatch_args, arg_home_umk): New.
8329 (various insns): Don't use mov, fmov, nop, fnop and unop.
8330 (realign): Support TARGET_ABI_UNICOSMK.
8332 * config/alpha/unicosmk.h: New file.
8333 * config/alpha/t-unicosmk: New file.
8335 * fixinc/inclhack.def (unicosmk_restrict): New.
8336 * fixinc/fixincl.x: Regenerate.
8338 * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
8339 (wchar_t): Check for and define __WCHAR_T__.
8341 2001-09-11 Richard Sandiford <rsandifo@redhat.com>
8343 * combine.c (simplify_shift_const): Treat shifts by the mode
8346 2001-09-11 Neil Booth <neil@daikokuya.demon.co.uk>
8348 * cpphash.h (struct tokenrun): New.
8349 (struct cpp_context): New member bol.
8350 (struct cpp_reader): New members.
8351 (_cpp_init_tokenrun): New.
8352 * cppinit.c (cpp_create_reader): Set up the token runs.
8353 * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
8354 (lex_token): New internalised version of _cpp_lex_token. Don't
8355 handle directives or the multiple include optimization here any
8356 more. Simply lex a token.
8357 * cpplib.c (run_directive): Clear bol.
8358 (_cpp_pop_buffer): Set bol.
8359 * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
8362 2001-09-11 Michael Meissner <meissner@redhat.com>
8364 * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
8365 give an error if the user uses -mfp32.
8366 (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
8368 (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
8369 floating point register size.
8370 (EXTRA_SPECS): Add CPP_FPR_SPEC.
8372 * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
8373 HOST_WIDE_INT_PRINT_DEC to properly print the result of
8375 * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
8376 * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
8378 2001-09-11 Hans-Peter Nilsson <hp@axis.com>
8380 * dbxout.c (dbxout_parms): Fix typo in comment.
8381 * unroll.c (loop_find_equiv_value): Ditto.
8382 * toplev.c (rest_of_compilation): Ditto.
8383 * loop.c (scan_loop): Ditto.
8384 * dwarf2out.c (struct dw_fde_struct): Ditto.
8386 2001-09-10 Zack Weinberg <zackw@panix.com>
8388 * cpplex.c (parse_identifier): Fast-path optimize. Avoid
8389 copying identifier when we're just going to throw it away.
8390 (parse_identifier_slow): New routine to handle abnormal cases.
8391 (_cpp_lex_token): Update call site.
8393 * hashtable.c (ht_lookup): Don't assume that the string we've
8394 been given is NUL-terminated.
8395 * system.h: #define __builtin_expect(a, b) to (a) if not
8398 2001-09-10 Michael Meissner <meissner@redhat.com>
8400 * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
8403 2001-09-10 David Edelsohn <edelsohn@gnu.org>
8405 * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
8407 Mon Sep 10 16:26:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8409 * builtins.c (c_getstr): Correct thinko in last change and further
8412 2001-09-10 Tim Freeman <tim@fungibole.com>
8414 * dwarf2out.c (incomplete_types, decl_scope_table): Make them
8415 into varray's and register them as roots with the garbage
8416 collector so they are not collected too soon.
8418 Mon Sep 10 14:21:26 CEST 2001 Jan Hubicka <jh@suse.cz>
8420 * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
8422 * basic-block.h (flow_obstack, label_value_list,
8423 tail_recursion_label_list): Declare
8424 (tidy_fallthru_edges): Declare.
8425 (expunge_block, last_loop_beg_note): Delete.
8426 (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
8428 (basic_block_for_insn, label_value_list): Move from flow.c; make global.
8429 (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
8430 init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
8431 flow_delete_insn, flow_delete_insn_chain, create_basic_block,
8432 expunge_block, flow_delete_block, compute_bb_for_insn,
8433 update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
8434 make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
8435 redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
8436 try_redirect_by_replacing_jump, last_loop_beg_note,
8437 redirect_edge_and_branch, redirect_edge_and_branch_force,
8438 tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
8439 split_edge, insert_insn_on_edge, commit_one_edge_insertion,
8440 commit_edge_insertions, dump_flow_info, debug_flow_info,
8441 dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
8442 verify_flow_info, purge_dead_edges, purge_all_dead_edges):
8443 Move here from flow.c
8444 * cfganal.c: New file.
8445 (forwarder_block_p, can_fallthru, mark_critical_edges,
8446 mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
8447 find_unreachable_blocks, create_edge_list, free_edge_list,
8448 print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
8449 flow_edge_list_print, remove_fake_successors, remove_fake_edges,
8450 add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
8451 flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
8452 flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
8453 flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
8454 Move here from flow.c
8455 * cfgbuild.c: New file
8456 (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
8457 make_edges, find_basic_blocks_1, find_basic_blocks,
8458 find_sub_basic_blocks): Move here from flow.c
8459 * cfgcleanup.c: New file.
8460 (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
8461 merge_blocks_move_predecessor_nojumps,
8462 merge_blocks_move_successor_nojumps, merge_blocks,
8463 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
8464 try_crossjump_bb, try_optimize_cfg): Move here from flow.c
8465 (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
8467 * cfgloop.c: New file
8468 (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
8469 flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
8470 flow_loop_exit_edges_find, flow_loop_nodes_find,
8471 flow_loop_pre_header_scan, flow_loop_pre_header_find,
8472 flow_loop_tree_node_add, flow_loops_tree_build,
8473 flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
8474 flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
8475 Move here from flow.c
8476 * flow.c: Remove everything moved elsewhere
8477 * output.h (cleanup_cfg): Return bool.
8479 * bb-reorder.c (reorder_block_def): Remove 'index'.
8480 (insert_intra_1): Add argument BB, set block for new note.
8481 (make_reorder_chain): Do not depdent on BB indexes.
8482 (make_reorder_chain_1): Do not use BB indexes.
8483 (label_for_bb): Likewise; set BB for new insn.
8484 (emit_jump_to_block_after): Likewise.
8485 (fixup_reorder_chain): Sanity check that all basic blocks
8486 are chained; verify newly created insn chain; remove
8487 undocnitional jump simplifying; Do not use BB indexes;
8488 properly initialize count and frequency information;
8489 dump reordered sequence.
8490 (insert_intra_bb_scope_notes): update call of insert_intra_1.
8491 (insert_inter_bb_scope_notes): Set block for new insn.
8492 (reorder_basic_blocks): Dump flow info before reoredering.
8494 Mon Sep 10 06:47:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8496 * alias.c (clear_reg_alias_info): Use K&R format definition.
8497 Avoid unsigned warning.
8498 * builtins.c: Use "unsigned int", not "unsigned".
8499 (target_char_cast): Use host_integerp and tree_low_cst.
8500 (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
8501 (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
8502 (c_getstr): Likewise.
8503 (std_expand_builtin_va_arg): Use int_size_in_bytes.
8504 (builtin_memcpy_read_str): Avoid unsigned warning.
8505 (expand_builtin_memcpy): Alignments are unsigned.
8506 (expand_builtin_strncpy, expand_builtin_memset): Likewise.
8507 (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
8508 * predict.c (expensive_function_p): LIMIT now unsigned.
8509 * resource.c (mark_target_live_regs): Make some vars unsigned.
8510 * sdbout.c: Use "unsigned int", not "unsigned".
8511 (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
8512 (sdbout_source_line): Likewise.
8513 (sdbout_record_type_name): Remove "const" for NAME declaration.
8514 * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
8516 2001-09-10 Richard Sandiford <rsandifo@redhat.com>
8518 * calls.c (store_one_arg): Expand comment.
8520 2001-09-10 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8522 * calls.c (store_one_arg): Make sure that the entire argument is
8523 pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
8525 2001-09-09 Richard Henderson <rth@redhat.com>
8527 * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
8529 Sun Sep 9 10:43:17 CEST 2001 Jan Hubicka <jh@suse.cz>
8531 * loop.c (combine_givs): Fix computing of benefit once giv is combined.
8533 2001-09-09 Richard Henderson <rth@redhat.com>
8535 * config/alpha/alpha.c (alpha_next_sequence_number): New.
8536 (alpha_this_literal_sequence_number): New.
8537 (alpha_this_gpdisp_sequence_number): New.
8538 (some_operand, input_operand): Add HIGH.
8539 (local_symbolic_operand): New.
8540 (alpha_encode_section_info): New.
8541 (alpha_legitimate_address_p): Allow LO_SUM.
8542 (alpha_legitimize_address): Generate HIGH+LO_SUM.
8543 (alpha_expand_mov): Likewise.
8544 (secondary_reload_class): Check memory_operand not general_operand
8546 (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
8547 (alpha_expand_unaligned_store): Likewise.
8548 (alpha_expand_unaligned_load_words): Likewise.
8549 (alpha_expand_unaligned_store_words): Likewise.
8550 (alpha_expand_block_clear): Likewise.
8551 (print_operand): Handle %#, %*, %H.
8552 (print_operand_address): Handle LO_SUM.
8554 (alpha_does_function_need_gp): Use it.
8555 (alpha_expand_block_move): Fix signed compare warnings.
8556 (alpha_sa_mask, alpha_align_insns): Likewise.
8557 * config/alpha/alpha-protos.h: Update.
8558 * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
8559 (MASK_EXPLICIT_RELOCS): New.
8560 (TARGET_SWITCHES): Add -mexplicit-relocs.
8561 (EXTRA_CONSTRAINT): Add 'T'.
8562 (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
8563 (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
8564 (ENCODE_SECTION_INFO): Out line.
8565 (REDO_SECTION_INFO_P): New.
8566 (STRIP_NAME_ENCODING): New.
8567 (ASM_OUTPUT_LABELREF): New.
8568 (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
8569 (PREDICATE_CODES): Update.
8570 * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
8571 call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
8572 movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
8573 builtin_setjmp_receiver_er, exception_receiver_1_er,
8574 call_value_osf_1_er): New patterns.
8575 (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
8576 (movqi, movhi, movsi): Add explicit $31 base register to lda.
8577 * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
8578 (FINAL_PRESCAN_INSN): New.
8580 Sat Sep 8 22:00:55 CEST 2001 Jan Hubicka <jh@suse.cz>
8582 * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
8584 2001-09-08 Andreas Jaeger <aj@suse.de>
8586 * i386.h (TARGET_SWITCHES): Fix description.
8588 2001-09-07 David Edelsohn <edelsohn@gnu.org>
8590 * rs6000.c (num_insns_constant): Compute number of instructions
8593 * doc/install.texi: Explain AIX exception handling work-around.
8594 Update URL for AIX fixes.
8596 2001-09-07 Jim Wilson <wilson@redhat.com>
8598 * alias.c (clear_reg_alias_info): New.
8599 * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
8600 * rtl.h (clear_reg_alias_info): Declare.
8602 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8604 * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
8606 (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
8607 (m16m,edivm,emulm): Change declaration to match definition.
8609 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8611 * reload.c (push_reload): Check for subreg_lowpart_p instead of
8612 SUBREG_BYTE being 0 when determining if the inner part of a subreg
8615 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8617 * c-common.c (signed_or_unsigned_type): Handle machine mode types
8618 which have no corresponding C type.
8619 * fold_const.c (target_isinf,target_isnan,target_negative): Update
8620 the representation of 64-bit doubles to work with 64-bit ints.
8622 2001-09-07 Aldy Hernandez <aldyh@redhat.com>
8624 * config/mips/mips.c (override_options): Do not override ISA when ABI
8625 specified if MIPS_CPU_STRING_DEFAULT was specified.
8627 2001-09-07 Richard Henderson <rth@redhat.com>
8629 * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
8630 (express_from_1): Wrap lines.
8631 * rtlanal.c (commutative_operand_precedence): Rename from
8632 operand_preference; export.
8633 * rtl.h: Declare it.
8634 * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
8635 (simplify_binary_operation): Invoke simplify_plus_minus on
8636 (CONST (PLUS ...)) as well.
8637 (struct simplify_plus_minus_op_data): New.
8638 (simplify_plus_minus_op_data_cmp): New.
8639 (simplify_plus_minus): Use them. Avoid infinite recursion with
8640 simplify_binary_operation wrt CONST.
8642 Fri Sep 7 11:52:30 2001 Kazu Hirata <kazu@hxi.com>
8644 * h8300-protos.h (general_operand_dst_push): Remove.
8645 * h8300.c (general_operand_dst_push): Likewise.
8646 * h8300.h (OK_FOR_T): Likewise.
8647 (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
8648 * h8300.md (pushqi_h8300): New.
8649 (pushqi_h8300hs): Likewise.
8651 (pushhi_h8300): Likewise.
8652 (pushhi_h8300hs): Likewise.
8655 Fri Sep 7 12:56:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8657 * genattrtab.c (attr_printf): First arg is unsigned.
8658 Clean up formatting of callers.
8660 2001-09-06 Aldy Hernandez <aldyh@redhat.com>
8662 * config/mips/mips.c (override_options): Allow abi32 with 64 bit
8665 2001-09-07 Andreas Jaeger <aj@suse.de>
8667 * i386.h (TARGET_SWITCHES): Fix descriptions.
8669 2001-09-07 Matt Kraai <kraai@alumni.carnegiemellon.edu>
8671 * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
8673 2001-09-06 Ira Ruben <ira@apple.com>
8675 Remove OP_IDENTIFIER.
8676 * tree.def (OP_IDENTIFIER): Remove.
8677 * tree.c (tree_node_kind enum): Remove op_id_kind.
8678 (tree_node_kind_names): Remove "op_identifiers".
8679 (make_node): Remove OP_IDENTIFIER test.
8680 (build_op_identifier): Removed because it isn't being used.
8681 * print-tree.c (print_node): Remove OP_IDENTIFIER case.
8682 * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
8684 2001-09-06 Richard Henderson <rth@redhat.com>
8686 * simplify-rtx.c (simplify_binary_operation): Revert last change.
8688 2001-09-06 Richard Henderson <rth@redhat.com>
8690 * simplify-rtx.c (simplify_binary_operation): Simplify contents
8693 2001-09-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8695 * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
8696 number used for CR register.
8698 Thu Sep 6 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
8699 Joern Rennecke (amylaar@cygnus.com)
8701 * h8300-protos.h (h8300_return_addr_rtx): New prototype.
8702 * h8300.c (initial_offset): Handle offset between RP and FP.
8703 (h8300_return_addr_rtx): New function.
8704 * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
8706 (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
8707 (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8708 (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
8709 (CAN_ELIMINATE, REGISTER_NAMES):
8710 (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
8712 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
8714 Remove TYPE_NONCOPIED_PARTS.
8715 * tree.h (TYPE_NONCOPIED_PARTS): Remove.
8716 (struct tree_type): Remove noncopied_parts.
8717 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
8718 * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
8719 (fixed_type_p): Remove.
8720 (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
8721 (expand_expr, MODIFY_EXPR): Likewise.
8722 * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
8723 * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
8725 2001-09-06 Alan Modra <amodra@bigpond.net.au>
8727 * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
8729 (mask64_operand): Likewise.
8730 (includes_rldic_lshift_p): Likewise.
8731 (includes_rldicr_lshift_p): Likewise.
8733 2001-09-05 Ziemowit Laski <zlaski@apple.com>
8735 * objc/objc-act.c (build_message_expr): If a class method cannot
8736 be found, do not issue a warning if a corresponding instance
8737 method exists in the root class.
8739 2001-09-05 Richard Henderson <rth@redhat.com>
8741 * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
8743 2001-09-05 Zack Weinberg <zack@codesourcery.com>
8745 * function.c (ggc_mark_struct_function): Mark f->outer.
8746 * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
8747 * integrate.c (output_inline_function): ... not here.
8749 Wed Sep 5 17:28:49 CEST 2001 Jan Hubicka <jh@suse.cz>
8751 * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
8753 * i386.c (size_cost): New static variable.
8754 (override_function): Use size_cost when -Os is specified.
8756 * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
8757 properly; Use current_function_calls_eh_return.
8758 (ix86_expand_epilogue): Avoid dummy optimize_size tests;
8759 use leave to avoid dependency chain.
8761 * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
8762 get BB loop_depth instead of computing it from LOOP notes.
8764 * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
8766 2001-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8768 * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8769 * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8770 UNALIGNED_DOUBLE_INT_ASM_OP): Define
8772 2001-09-05 Jeffrey A Law (law@cygnus.com)
8773 Jason Merrill (jason@redhat.com)
8775 * stor-layout.c (layout_type): Complain if an array's size can
8776 not be represented in a size_t.
8778 * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
8780 2001-09-05 David Billinghurst <David.Billinghurst@riotinto.com>
8782 * gcc.c: (process_command) Add parentheses around assignment
8783 used as truth value.
8785 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
8787 * config/mips/mips.c (save_restore_insns): Don't mark any register
8788 save slots as unchanging if current_function_calls_eh_return.
8790 2001-09-05 Richard Henderson <rth@redhat.com>
8792 * config/alpha/alpha.c (alpha_legitimate_address_p): New.
8793 * config/alpha/alpha-protos.h: Declare it.
8794 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
8795 (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
8796 (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
8797 (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
8798 (REG_OK_FOR_BASE_P): Select one of the above.
8800 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
8802 * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
8803 (crti.o): Prefix name of object file with $(T).
8806 2001-09-05 David S. Miller <davem@redhat.com>
8808 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8809 * config/sparc/linux64.h: Likewise.
8811 2001-09-05 Andreas Jaeger <aj@suse.de>
8813 * doc/invoke.texi (i386 Options): -mwide-multiply is not
8814 available anymore, remove the documentation.
8815 (i386 Options): Fix typo, cleanup index entries.
8817 * prefix.c (concat): Remove, we can use the version from liberty.
8819 2001-09-05 Richard Henderson <rth@redhat.com>
8821 * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
8822 New functions split out of md file expanders.
8823 * config/alpha/alpha-protos.h: Declare them.
8824 * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
8826 2001-09-05 Neil Booth <neil@daikokuya.demon.co.uk>
8828 * cppmacro.c (funlike_invocation_p): No need to restore context.
8830 2001-09-04 Richard Henderson <rth@redhat.com>
8832 * reload.c (push_reload): Export.
8833 * reload.h (push_reload): Declare it.
8835 * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
8836 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8837 * config/alpha/alpha.c (alpha_legitimize_address): New.
8838 (alpha_legitimize_reload_address): Likewise.
8839 * config/alpha/alpha-protos.h: Declare them.
8841 2001-09-04 Stan Shebs <shebs@apple.com>
8843 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
8844 * config/darwin.c (machopic_stub_name): Account for internally
8845 generated lib calls such as memcpy.
8847 2001-09-04 Richard Henderson <rth@redhat.com>
8849 * unwind.h (_UA_END_OF_STACK): New flag.
8850 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
8852 Tue Sep 4 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
8854 * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
8856 2001-09-04 Richard Sandiford <rsandifo@redhat.com>
8858 * config/mips/mips.c (save_restore_insns): Change base_offset to
8859 fp_offset in second call to mips_emit_frame_related_store.
8861 2001-09-04 Hans-Peter Nilsson <hp@axis.com>
8863 * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
8864 sometimes be represented as a NOTE of type
8865 NOTE_INSN_DELETED_LABEL.
8866 (Insns): Document NOTE_INSN_DELETED_LABEL.
8868 2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
8870 * c-common.h (tree_dump_index): Add more comments.
8871 * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
8872 (dump_option_value_info): New struct.
8873 (dump_options): New array.
8874 (dump_switch_p): Parse switch options symbolically.
8875 * doc/invoke.texi (-fdump-ast): Rename to ...
8876 (-fdump-tree): ... here. Document that options are symbolic, and
8877 not all are applicable.
8879 2001-09-04 David S. Miller <davem@redhat.com>
8881 * config/sparc/sparc.md (define_splits): Kill constraints.
8883 Cleanup redundant and unused insn attributes.
8884 * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
8885 binary, and move. Mark ialu as default.
8886 (commented out define_function_unit "alu"): Kill.
8887 (define_attr "use_clobbered"): Kill.
8888 (whole file): Kill address insn type references. Replace
8889 all unary/binary/move references with ialu.
8890 * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
8891 references. Replace TYPE_{UNARY,BINARY,MOVE} references with
8894 Simplify length insn attribute and make more judicious use
8895 of insn attribute defaulting.
8896 * config/sparc/sparc.md (all insns with length > one): Mark as
8897 insn type multi if real instructions, else use default if
8898 it is a forced splitter.
8899 (all insns with length == one): Use default insn length.
8900 (all insns of type ialu): Use default insn type.
8902 Fix erroneous insn attribute settings.
8903 (addx): Set insn type to misc.
8904 (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
8905 const_umulsidi3_sp64): Set insn type to imul.
8907 Track SFmode vs DFmode insns according to UltraSPARC
8909 * config/sparc/sparc.md ("fptype"): New attribute, default
8911 (all DFmode single insns): Mark as fptype "double".
8913 2001-09-03 Jakub Jelinek <jakub@redhat.com>
8915 * loop.c (express_from_1): Fix CONSTANT_P(a) case.
8917 2001-09-03 Richard Henderson <rth@redhat.com>
8919 * function.h (struct function): Add arg_pointer_save_area_init.
8920 * function.c (expand_function_end): Init arg_pointer_save_area.
8921 (get_arg_pointer_save_area): Do not init arg_pointer_save_area
8922 when called from a nested function.
8924 2001-09-02 Angela Marie Thomas <angela@cygnus.com>
8926 * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
8929 Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
8931 * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
8933 2001-09-01 Geoffrey Keating <geoffk@redhat.com>
8935 * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
8936 (emit_push_insn): Use specified padding direction when
8937 STACK_PUSH_CODE is POST_INC.
8939 * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
8941 2001-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8943 * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
8945 2001-09-01 Neil Booth <neil@daikokuya.demon.co.uk>
8947 * cppinit.c (cpp_start_read): Free the imacros list as we
8948 traverse it. Don't free the chains before returning.
8949 (_cpp_push_next_buffer): Only try pushing buffers if we've
8950 completed -imacros handling.
8952 2001-08-31 Eric Christopher <echristo@redhat.com>
8954 * gcc.c (handle_braces): Add explaination for abort.
8956 2001-08-30 Roman Zippel <zippel@linux-m68k.org>
8958 * expmed.c (store_bit_field): Update to patch from 2001-08-27:
8959 move adjustment of bitpos instead.
8961 2001-08-31 Zack Weinberg <zack@codesourcery.com>
8963 * function.c: Remove all_functions. Make outer_function_chain
8965 (init_function_start): Don't add new function structure to
8967 (find_function_data, push_function_context_to,
8968 pop_function_context_from, put_var_into_stack,
8969 trampoline_address): Update for changed structure element names.
8970 (push_function_context_to): Disentangle.
8971 (free_after_compilation): Also free F.
8972 (expand_dummy_function_end): Don't free cfun here.
8973 (put_var_into_stack): Comment why we can't use find_function_data here.
8974 (fix_lexical_addr, trampoline_address, ): Use find_function_data.
8975 (mark_function_chain): Split into maybe_mark_struct_function and
8976 ggc_mark_struct_function. Export the latter.
8977 (init_function_once): Mark from cfun and outer_function_chain;
8980 * function.h (struct function): Kill next_global. Rename next
8981 to outer. All users updated to match.
8982 (all_functions, outer_function_chain): Don't declare.
8984 * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
8985 * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
8986 don't touch f->inlinable, after calling rest_of_compilation.
8988 * tree.h: Forward-declare struct function. Prototype
8989 ggc_mark_struct_function.
8991 2001-08-31 Kazu Hirata <kazu@hxi.com>
8993 * config/h8300/h8300.md (*andorhi3): Fix typos.
8995 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8997 * calls.c (emit_library_call_value): Don't use a fixed
8998 argument after VA_CLOSE, i.e. out of scope in traditional C.
9000 * emit-rtl.c (gen_rtvec): Likewise.
9002 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9004 * Makefile.in (c-pragma.o): Depend on output.h.
9005 (reorg.o): Depend on except.h.
9007 * c-pragma.c: Include output.h.
9009 * reorg.c: Include except.h.
9011 * unwind-dw2.c: Call __builtin_alloca, not alloca.
9013 2001-08-31 Richard Henderson <rth@redhat.com>
9015 * sched-deps.c (add_dependence): Don't elide dependency if the
9016 conditional used by insn is modified in elem.
9018 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
9020 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
9022 2001-08-31 Diego Novillo <dnovillo@redhat.com>
9024 * c-decl.c (c_decode_option): Skip '-f' prefix before calling
9027 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
9029 * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
9031 (stormy16_asm_out_constructor): New function.
9032 (TARGET_ASM_CONSTRUCTOR): Define.
9033 (TARGET_ASM_DESTRUCTOR): Define.
9035 2001-08-31 Andreas Jaeger <aj@suse.de>
9037 * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
9038 * loop.c (add_label_notes): Likewise.
9039 * reload.c (find_reloads): Likewise.
9040 * config/sh/sh.c (machine_dependent_reorg): Likewise.
9042 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
9044 * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
9045 code here. Take _Unwind_{W,Sw}ord*.
9046 (read_encoded_value_with_base): Use them.
9047 * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
9049 (extract_cie_info): Simplify read_?leb128 handling.
9050 (execute_stack_op, execute_cfa_program): Likewise.
9051 * unwind-dw2-fde.c (get_cie_encoding): Likewise.
9053 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
9055 * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
9056 the frame pointer to pop the stack if convenient.
9058 * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
9059 Don't use post-increment before combine.
9060 * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
9061 a call-saved register.
9063 2001-08-31 Andreas Jaeger <aj@suse.de>
9065 * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
9068 2001-08-30 Geoffrey Keating <geoffk@redhat.com>
9070 * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
9071 not DIV/MOD, of course.
9073 2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
9075 * rtl.def: Undo my patch commited 2001-08-27.
9077 * genattrtab.c: Ditto.
9081 * sched-int.h: Ditto.
9083 * target-def.h: Ditto.
9087 * haifa-sched.c: Ditto.
9089 * sched-rgn.c: Ditto.
9091 * sched-vis.c: Ditto.
9093 * Makefile.in: Ditto.
9095 * doc/md.texi: Ditto.
9097 * doc/tm.texi: Ditto.
9099 * doc/contrib.texi: Ditto.
9101 * doc/gcc.texi: Ditto.
9103 * genattrtab.h: Remove it.
9105 * genautomata.c: Remove it.
9107 * genattr.c: Undo my patch and Richard Henderson's patch commited
9110 Thu Aug 30 19:22:15 2001 J"orn Rennecke <amylaar@redhat.com>
9112 * config.gcc (h8300-*-elf*): New case.
9113 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
9114 (SUBTARGET_CPP_SPEC): Define.
9115 (EXTRA_SPECS): Define.
9116 (SUBTARGET_EXTRA_SPECS): Define.
9117 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
9118 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
9120 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
9122 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
9123 (LIB2FUNCS_EXTRA): Define.
9124 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
9125 config/h8300/fixunssfsi.c: New file.
9127 2001-08-30 Kazu Hirata <kazu@hxi.com>
9129 * config/h8300/h8300.md (zero_extendqihi2): Changes to
9130 define_expand to accommodate target-specific attributes.
9131 (anonymous zero_extendqihi2 patterns): New.
9133 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
9135 * h8300.md (*andorhi3): New pattern.
9137 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
9139 * h8300.c (dosize): Fix test for "sub".
9141 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
9143 * c-typeck.c (pointer_diff): Try to eliminate common term before
9146 2001-08-30 Nick Clifton <nickc@cambridge.redhat.com>
9148 * config/arm/arm.c (arm_compute_initial_elimination_offset):
9149 Account for the saves of the FP registers.
9151 * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
9152 (TEXT_SECTION_ASM_OP): Define.
9153 (INIT_SECTION_ASM_OP): Define.
9154 (FINI_SECTION_ASM_OP): Define.
9155 (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
9156 (RDATA_SECTION_FUNCITON): Provide prototype.
9158 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
9160 * reload1.c (move2add_note_store): Correct typo checking for
9163 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
9165 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
9166 note should not be considered outside the libcall block.
9168 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9170 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
9172 2001-08-29 Kazu Hirata <kazu@hxi.com>
9174 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
9176 2001-08-29 Kazu Hirata <kazu@hxi.com>
9178 * config/h8300/h8300-protos.h: Add a prototype for
9180 * config/h8300/h8300.c (emit_logical_op): New.
9181 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
9188 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
9190 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
9191 comparison with rtx INTVAL.
9192 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
9194 * pa.h (FUNCTION_ARG_SIZE): Likewise.
9196 2001-08-29 Kazu Hirata <kazu@hxi.com>
9198 * config/h8300/lib1funcs.asm: Update the copyright. Fix
9201 2001-08-29 Kazu Hirata <kazu@hxi.com>
9203 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
9204 (reg n) to (mem (pre_dec (reg n))
9205 (anonymous movsi pattern): Likewise.
9207 2001-08-29 Kazu Hirata <kazu@hxi.com>
9209 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
9211 2001-08-29 Kazu Hirata <kazu@hxi.com>
9213 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
9214 several special constants.
9216 2001-08-29 Kazu Hirata <kazu@hxi.com>
9218 * config/h8300/lib1funcs.asm: Fix comment typos.
9220 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9222 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
9223 Fix format specifier warnings.
9225 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
9226 inet_makeaddr, semctl): Prototype.
9228 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
9229 (save_restore_insns): Use base_offset, not gp_offset.
9231 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
9232 (ASM_OUTPUT_BYTE): Fix format specifier warning.
9234 2001-08-29 Richard Henderson <rth@redhat.com>
9236 * bb-reorder.c (function_tail_eff_head): New.
9237 (record_effective_endpoints): Set it.
9238 (fixup_reorder_chain): Use it.
9240 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9242 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
9244 2001-08-28 Dale Johannesen <dalej@apple.com>
9246 * config/darwin.c (machopic_function_base_name): Add const
9247 qualifier to a string.
9248 (darwin_encode_section_info): Ditto.
9250 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9252 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
9253 function definition.
9255 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
9257 * df.h (struct df): Add rts_order variable.
9259 * df.c (df_visit_next_rts): New function.
9260 (df_visit_next): Renamed to df_visit_next_rc
9261 (df_analyse_1): Allocate/compute/free rts_order as well.
9262 (df_rd_global_compute): Use df_visit_next_rc instead of
9264 (df_ru_global_compute): Use df_visit_next_rts instead of
9267 * flow.c (flow_reverse_top_sort_order_compute): New function.
9269 * basic-block.h: Add prototype.
9271 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
9273 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
9274 blocks, the BB_REACHABLE is now set, rather than aux being
9275 non-NULL. Update the test to reflect this.
9277 2001-08-28 Eric Christopher <echristo@redhat.com>
9279 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
9280 config/mips/crti.asm: Ditto.
9282 2001-08-28 Eric Christopher <echristo@redhat.com>
9283 Richard Henderson <rth@redhat.com>
9285 * c-pragma.h (add_weak): Move prototype from here...
9286 * output.h (add_weak): ... to here.
9287 * varasm.c (add_weak): Fix typo.
9288 * config/mips/crti.asm: New file.
9289 * config/mips/crtn.asm: Ditto.
9290 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
9291 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
9292 (INVOKE__main): Ditto.
9293 (INIT_SECTION_ASM_OP): New.
9294 (FINI_SECTION_ASM_OP): Ditto.
9295 (STARTFILE_SPEC): Add crti.
9296 (ENDFILE_SPEC): Add crtn.
9297 * config/mips/elf64.h: Same.
9298 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
9300 * config/mips/vxworks.h: Ditto.
9301 * config/mips/t-elf: Support crti and crtn.
9303 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9305 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
9308 2001-08-28 Richard Henderson <rth@redhat.com>
9310 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
9311 (one_cmplbi2 splitter): Remove redundant test.
9313 2001-08-28 Dale Johannesen <dalej@apple.com>
9315 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
9317 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
9319 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
9321 2001-08-28 Stan Shebs <shebs@apple.com>
9323 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
9324 (UNALIGNED_SHORT_ASM_OP): Define.
9325 (UNALIGNED_INT_ASM_OP): Define.
9327 2001-08-28 Will Cohen <wcohen@redhat.com>
9329 * config/rs6000/rs6000.md (store_multiple): Correct RTL
9330 generation for first set.
9332 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
9334 * flow.c (redirect_edge_succ_nodup): Return new edge.
9335 (try_simplify_condjump): Use new edge.
9336 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
9338 * cse.c (cse_basic_block): Skip note instructions.
9340 2001-08-27 Richard Henderson <rth@redhat.com>
9342 * combine.c (combine_simplify_rtx): Don't reverse condition
9343 if there is no reverse for the condition.
9344 (simplify_comparison): Don't simplify subregs from INT to FP.
9346 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
9347 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
9348 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
9349 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
9350 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
9351 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
9353 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
9355 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
9356 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
9358 (adddi_dilshr32, adddi_dishl32): Only data register can be
9359 source for mem destination.
9361 * expmed.c (store_bit_field): Ignore adjustment to bitpos
9362 and use bitnum to decide about register move.
9364 2001-08-27 Richard Henderson <rth@redhat.com>
9366 * genattr.c (main): Emit state_t even when not doing scheduling.
9368 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
9369 Richard Henderson <rth@redhat.com>
9371 * gcse.c (reg_first_set, reg_last_set): Replace with ...
9372 (reg_avail_info, current_bb): ... these.
9373 (oprs_unchanged_p, record_last_reg_set_info): Use them.
9374 (compute_hash_table): Likewise.
9376 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
9378 * flow.c (verify_flow_info): Use checksums to verify edges.
9380 2001-08-27 Richard Henderson <rth@redhat.com>
9382 * genautomata.c (expand_automata): Always create a description.
9384 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
9386 * optabs.c (expand_binop): Correctly handle the carry in multiword
9387 add/subtract operations.
9389 2001-08-27 Fred Fish <fnf@be.com>
9391 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
9394 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
9396 * reload.c (find_reloads_toplev): Back out this change:
9398 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
9400 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
9401 mem if the address is a mode_dependent_address_p.
9403 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
9405 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9406 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9407 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9410 * genattr.c (main): New variable num_insn_reservations. Increase
9411 it if there is DEFINE_INSN_RESERVATION. Output automaton based
9412 pipeline hazard recognizer interface.
9414 * genattrtab.h: New file.
9416 * genattrtab.c: Include genattrtab.h.
9417 (attr_printf, check_attr_test, make_internal_attr,
9418 make_numeric_value): Move protypes into genattrtab.h. Define them
9420 (num_dfa_decls): New global variable.
9421 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9422 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9423 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9424 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
9426 * genautomata.c: New file.
9428 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9430 * sched-int.h: (curr_state): Add the external definition for
9431 automaton pipeline interface.
9432 (haifa_insn_data): Add comments for members blockage and units.
9434 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9435 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9436 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9437 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9438 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9439 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9440 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9442 (TARGET_SCHED): Use the new macros.
9444 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9445 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9446 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9447 dfa_bubble): New members in gcc_target.sched.
9449 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9450 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9451 (insn_queue): Redefine it as pointer to array.
9452 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9454 (max_insn_queue_index_macro_value): New variable.
9455 (curr_state, dfa_state_size, ready_try): New varaibles for
9456 automaton interface.
9457 (ready_element, ready_remove, max_issue): New function prototypes
9458 for automaton interface.
9459 (choose_ready): New function prototype.
9460 (insn_unit, blockage_range): Add comments.
9461 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9462 FUNCTION_UNITS_SIZE == 0.
9463 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9464 actual_hazard, potential_hazard): Add comments.
9465 (insn_cost): Use cost -1 as undefined value. Remove
9466 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
9468 (ready_element, ready_remove): New functions for automaton
9470 (schedule_insn): Add new code for automaton pipeline interface.
9471 (queue_to_ready): Add new code for automaton pipeline interface.
9472 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9473 (debug_ready_list): Print newline when the queue is empty.
9474 (max_issue): New function for automaton pipeline interface.
9475 (choose_ready): New function.
9476 (schedule_block): Add new code for automaton pipeline interface.
9477 Print ready list before scheduling each insn.
9478 (sched_init): Add new code for automaton pipeline interface.
9479 Initiate insn cost by -1.
9480 (sched_finish): Free the current automaton state and finalize
9481 automaton pipeline interface.
9483 * sched-rgn.c: Include target.h.
9484 (init_ready_list, new_ready, debug_dependencies): Add new code for
9485 automaton pipeline interface.
9487 * sched-vis.c: Include target.h.
9488 (get_visual_tbl_length): Add code for automaton interface.
9489 (target_units, print_block_visualization): Add comments.
9491 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9492 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9493 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9494 (getruntime.o, genautomata.o): New entries.
9495 (genattrtab.o): Add new dependency file genattrtab.h.
9496 (genattrtab): Add new dependencies. Link it with `libm.a'.
9497 (getruntime.o, hashtab.o): New entries for canadian cross.
9499 * doc/md.texi: Description of automaton based model.
9501 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9503 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9504 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9505 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9506 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9507 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9508 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9509 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9511 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9512 MAX_DFA_ISSUE_RATE): New macro descriptions.
9514 * doc/contrib.texi: Add dfa based scheduler contribution.
9516 * doc/gcc.texi: Add more information about genattrtab.
9518 2001-08-27 Diego Novillo <dnovillo@redhat.com>
9520 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
9523 2001-08-27 Richard Henderson <rth@redhat.com>
9525 * function.c (expand_function_end): Don't init arg_pointer_save_area.
9526 (get_arg_pointer_save_area): New. Create an init it here.
9527 (fix_lexical_addr): Use it.
9528 * function.h: Declare it.
9529 * builtins.c (expand_builtin_setjmp_receiver): Use it.
9530 * stmt.c (expand_nl_goto_receiver): Use it.
9532 2001-08-27 Richard Henderson <rth@redhat.com>
9534 * final.c (final_scan_insn): Don't enter APP_ON mode for
9537 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
9538 alignment for assemble_integer for DW_EH_PE_aligned.
9539 * except.c (output_function_exception_table): Likewise.
9541 2001-08-26 Andreas Jaeger <aj@suse.de>
9543 * c-tree.h: Add prototyp for c_sizeof_nowarn.
9545 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
9547 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
9549 2001-08-27 Alan Modra <amodra@bigpond.net.au>
9551 * config/rs6000/rs6000.c (mask_operand): Rewrite without
9553 (mask64_operand): Likewise.
9554 (rldic_operand): Delete.
9555 (includes_lshift64_p): Delete.
9556 (includes_rldic_lshift_p): New function.
9557 (includes_rldicr_lshift_p): New function.
9558 (print_operand): Don't call rldic_operand in case 'W'.
9559 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
9560 (includes_lshift64_p): Remove.
9561 (includes_rldic_lshift_p): Declare.
9562 (includes_rldicr_lshift_p): Declare.
9563 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
9564 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
9565 Replace match_operand rldic_operand predicate with
9566 const_int_operand. Replace includes_lshift64_p condition with
9567 includes_rldic_lshift_p.
9568 <ashldi3_internal 64 bit rldicr patterns>: New.
9570 2001-08-27 Andreas Jaeger <aj@suse.de>
9572 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9573 * errors.c: Likewise.
9574 * final.c: Likewise.
9575 * dwarf2asm.c: Likewise.
9576 * doprint.c (checkit): Likewise.
9577 * diagnostic.c: Likewise.
9578 * collect2.c: Likewise.
9579 * calls.c: Likewise.
9580 * c-semantics.c (build_stmt): Likewise.
9581 * c-format.c (status_warning): Likewise.
9582 * c-errors.c (pedwarn_c99): Likewise.
9583 * builtins.c (validate_arglist): Likewise.
9584 * config/pj/pj.c (pj_printf): Likewise.
9585 * fix-header.c: Likewise.
9587 * gcov.c (fnotice): Likewise.
9588 * gensupport.c (message_with_line): Likewise.
9589 * mips-tfile.c: Likewise.
9590 * protoize.c (notice): Likewise.
9591 * read-rtl.c (fatal_with_file_and_line): Likewise.
9592 * rtl-error.c: Likewise.
9593 * tradcpp.c: Likewise.
9595 * cp/tree.c (build_min_nt): Likewise.
9596 (build_min): Likewise.
9597 * cp/lex.c: Likewise.
9598 * cp/errfn.c: Likewise.
9599 * cp/rtti.c (create_pseudo_type_info): Likewise.
9601 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
9603 * df.c (df_uses_record): Return after recording all uses
9606 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
9608 * df.c (df_insn_modify): Realloc the INSN table here, if
9609 necessary, here, too.
9611 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
9613 * config/mips/mips.c (mips_function_value): Handle complex return
9616 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
9618 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
9620 * reload.c (make_memloc): Copy result if it is still
9621 reg_equiv_memory_loc[regno] on return.
9622 (subst_reloads) [ENABLE_CHECKING]: Check that none of
9623 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
9624 reg_equiv_mem are modified by the substitutions.
9626 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
9628 * predict.c (expensive_function_p): New.
9629 * rtl.h (expensive_function_p): Declare.
9630 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
9631 (use_fast_prologue_epilogue): New static variable.
9632 (expand_prologue): Set it; emit short prologues if unset.
9633 (expand_epilogue): Likewise.
9635 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
9637 * config.gcc: Add stormy16-*-elf case.
9638 * config/stormy16/stormy-abi: New file.
9639 * config/stormy16/stormy16-lib2.c: New file.
9640 * config/stormy16/stormy16-protos.h: New file.
9641 * config/stormy16/stormy16.c: New file.
9642 * config/stormy16/stormy16.h: New file.
9643 * config/stormy16/stormy16.md: New file.
9644 * config/stormy16/t-stormy16: New file.
9646 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
9648 * i386.h (no-accumulate-outgoing-args): Use proper mask.
9650 2001-08-24 David Edelsohn <edelsohn@gnu.org>
9652 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
9653 descriptor members are pointer size, not constant 4.
9654 * config/rs6000/rs6000.md (define_splits): Remove more unused
9657 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9659 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
9661 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
9663 * cp/rtti.c (VPARAMS): Fix parameter.
9665 2001-08-24 Zack Weinberg <zackw@panix.com>
9667 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
9669 (mode_for_extraction): No need for #ifdefs. Add default-case abort
9671 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
9672 in if controlling use of insv.
9673 (extract_bit_field): Likewise, for extv and extzv.
9675 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
9677 * i386.md (movcc peep2): Fix load of 0.
9679 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9681 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
9682 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
9684 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
9686 * c-pragma.h: Move weak_syms and weak_decls...
9687 * varasm.c: ...here. Now static.
9688 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
9689 depend on HANDLE_PRAGMA_WEAK.
9691 * c-common.c (c_alignof, c_alignof_expr): Move here...
9692 * c-typeck.c: ...from here.
9693 * c-tree.h, c-common.h: Adjust.
9695 2001-08-23 Bernd Schmidt <bernds@redhat.com>
9697 * config/ia64/ia64.c (rws_update): If !pred, set write_count
9698 instead of incrementing it.
9700 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
9701 asm ready, don't try to move them all into the same array element.
9703 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
9705 * function.c (thread_prologue_and_epilogue_insns): Avoid
9706 fallthru flag on edge to exit.
9708 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
9710 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
9713 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
9715 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
9716 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
9717 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
9720 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
9722 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
9723 replace "GNU CC" with "GCC".
9725 2001-08-23 Richard Henderson <rth@redhat.com>
9727 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
9728 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
9729 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
9730 Need GR between FR and not GR_AND_FR.
9731 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
9732 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
9733 AR regs before GR regs.
9734 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
9735 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
9736 (REGISTER_MOVE_COST): Update.
9737 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
9739 2001-08-23 Richard Henderson <rth@redhat.com>
9741 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
9744 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
9746 * reload1.c (emit_reload_insns): Don't look for notes
9747 on a NULL store_insn.
9749 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9751 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
9752 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
9753 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
9754 format specifier warnings.
9755 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
9757 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
9759 * config/i386/i386-protos.h: Correct declaration of
9760 i386_pe_asm_named_section.
9762 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
9764 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
9766 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
9768 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
9770 * cpperror.c (print_location): Don't show _Pragma.
9771 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
9772 and file change callback generation here.
9773 (stack_include_file): Update use of cpp_push_buffer.
9774 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
9775 (struct cpp_buffer): Remove type, pfile members.
9776 * cppinit.c (cpp_handle_option): Use free_chain.
9777 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
9778 (skip_escaped_newlines, get_effective_char, lex_percent): Take
9779 a cpp_reader rather than a cpp_buffer.
9780 (skip_escaped_newlines, get_effective_char, skip_block_comment,
9781 skip_line_comment, parse_string, lex_percent, lex_dot,
9782 _cpp_lex_token): Update accordingly.
9783 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
9785 (cpp_push_buffer): Update prototype.
9786 (run_directive): Update use of cpp_push_buffer.
9787 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
9788 handle_assertion): Update use of run_directive.
9789 * cpplib.h (enum cpp_buffer_type): Remove.
9790 (cpp_push_buffer): Update prototype.
9791 * fix-header.c (read_scan_file): Update.
9793 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9795 * gcc.c (struct prefix_list): Change prefix to const char *.
9797 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9799 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
9801 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
9803 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
9806 * jump.c (squeeze_notes): Take parms by reference. Handle END being
9809 * ifcvt.c (dead_or_predicable): Adjust.
9810 * loop.c (find_and_verify_loops): Adjust.
9811 * stmt.c (expand_end_case): Adjust.
9812 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
9813 head and end insn pointers in the basic block, not just local copies.
9814 (merge_blocks_move_predecessor_nojumps): Likewise.
9816 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
9818 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
9819 bitmap.h, builtin-types.def, builtins.c, builtins.def,
9820 c-aux-info.c, c-common.c, c-common.def, c-common.h,
9821 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
9822 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
9823 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
9824 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
9825 conditions.h, config.gcc, configure.frag, configure.in,
9826 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
9827 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
9828 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
9829 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
9830 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
9831 emit-rtl.c, errors.c, errors.h, except.c, except.h,
9832 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
9833 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
9834 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
9835 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
9836 gencheck.c, gencodes.c, genconfig.c, genemit.c,
9837 genextract.c, genflags.c, gengenrtl.c, genmultilib,
9838 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
9839 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
9840 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
9841 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
9842 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
9843 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
9844 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
9845 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
9846 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
9847 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
9848 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
9849 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
9850 params.h, predict.c, predict.def, predict.h, prefix.c,
9851 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
9852 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
9853 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
9854 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
9855 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
9856 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
9857 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
9858 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
9859 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
9860 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
9861 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
9862 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
9863 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
9864 xcoffout.h: replace "GNU CC" with "GCC".
9866 2001-08-21 Richard Henderson <rth@redhat.com>
9868 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
9869 (final_scan_insn): Consider jump tables data even if we have no
9870 independent text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
9872 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
9873 (ASM_OUTPUT_CASE_END): Remove.
9874 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
9875 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
9876 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9878 2001-08-21 Richard Henderson <rth@redhat.com>
9880 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
9881 at barrier insns. Emit stop bits before barriers.
9883 * flow.c (flow_find_cross_jump): Don't consider unconditional
9884 return insns for commoning.
9886 * final.c (compute_alignments): Fix typo.
9888 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
9889 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
9890 (store_bit_field): Use mode_for_extraction more places.
9891 (extract_bit_field): Likewise.
9893 2001-08-21 Zack Weinberg <zackw@panix.com>
9895 * caller-save.c: Don't include insn-codes.h.
9896 (reg_save_code, reg_restore_code): Make arrays of int.
9897 All uses updated to match.
9898 (insert_save, insert_restore): No need to initialize "code"
9899 variable upon declaration.
9900 * Makefile.in: update dependencies; fix typo in clean rule.
9902 2001-08-21 Richard Henderson <rth@redhat.com>
9904 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
9905 (merge_if_block): Handle fallout from same.
9907 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9909 * builtins.c (type_to_class): Fix typo in last change.
9911 2001-08-21 Richard Henderson <rth@redhat.com>
9913 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
9914 ia64_asm_output_label.
9916 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
9917 copy of gp while the real gp register contains garbage.
9919 2001-08-21 Zack Weinberg <zackw@panix.com>
9921 * expmed.c (mode_for_extraction): New function.
9922 (store_bit_field, extract_bit_field): Use it.
9923 * expr.h: Prototype it and provide an enum for its first argument.
9925 * combine.c, function.c, recog.c: Don't include insn-codes.h.
9926 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
9927 and digging through the insn_data tables.
9928 * Makefile.in: Update dependencies.
9930 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
9932 * cppfiles.c (stack_include_file): line-map.c now handles include
9934 (handle_missing_handler): Similarly.
9935 (_cpp_execute_include): Similarly.
9936 (_cpp_pop_file_buffer): Similarly.
9937 * cpphash.h (struct cpp_reader): Remove system_include_depth,
9938 buffer_stack_depth and include_depth.
9939 * cpplib.c (do_include_common): line-map.c now handles include depth.
9940 (cpp_push_buffer): Similarly.
9941 (_cpp_pop_buffer): Similarly.
9942 * cppmacro.c (builtin_macro): Update.
9943 * line-map.c (init_line_maps): Set depth.
9944 (add_line_map): Increment "used" earlier. Update and use the
9946 (trace_include): Use the include depth.
9947 * line-map.h (struct line_maps): New member depth.
9949 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
9951 * cppfiles.c (stack_include_file): Don't handle -H here.
9952 * cppinit.c (cpp_start_read): Set include tracing after
9953 cpp_post_options and after stacking the main file.
9954 * line-map.c (trace_include): New.
9955 (init_line_maps, add_line_map): Update.
9956 * line-map.h (struct line_maps): New member trace_includes.
9958 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
9960 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
9961 * cppfiles.c (stack_include_file): Only stack a file if there
9962 is something to do. Return a boolean indicating whether a
9963 buffer was stacked or not.
9964 (_cpp_execute_include): Similarly.
9965 (_cpp_read_file): Similarly.
9966 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
9968 2001-08-21 Sam Steingold <sds@gnu.org>
9970 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
9971 (RECACHE): keep obufp_before_macroname up to date
9973 2001-08-21 Zack Weinberg <zackw@panix.com>
9975 * stmt.c: Don't include insn-codes.h.
9976 (expand_end_case): Machine specific logic moved to expr.c.
9977 No need to worry about __builtin_classify_type.
9978 (check_for_full_enumeration_handling, emit_case_nodes):
9981 * builtins.o (expand_builtin_classify_type): Split up so code
9982 can be shared with fold_builtin_classify_type.
9983 (type_to_class, fold_builtin_classify_type): New functions.
9984 (fold_builtins): Handle __builtin_classify_type.
9986 * expr.c (do_tablejump): Now static.
9987 (case_values_threshold, try_casesi, try_tablejump): New;
9988 code mostly from stmt.c (expand_end_case).
9989 (expr.h): Update prototypes.
9991 * Makefile.in (stmt.o): Update dependencies.
9993 2001-08-21 Will Cohen <wcohen@redhat.com>
9995 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
9996 declaration of variable i.
9997 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
9998 declaration of variable i.
10000 2001-08-21 Richard Henderson <rth@redhat.com>
10002 * crtstuff.c: Fix thinko last change. Move list tails to start
10003 of CRT_END section. Tidy ifdefs.
10004 (__EH_FRAME_BEGIN__): Always static for ELF.
10005 (__do_global_ctors_1): Rename from __frame_dummy.
10006 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
10007 name change; don't hide __EH_FRAME_BEGIN__.
10009 2001-08-21 Richard Henderson <rth@redhat.com>
10011 * gdbinit.in: Move break on exit after break on fancy_abort.
10013 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
10016 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
10018 * cpphash.h (_cpp_push_next_buffer): New.
10019 * cppinit.c (do_includes): Remove.
10020 (push_include, free_chain, _cpp_push_next_buffer): New.
10021 (cpp_start_read): Use them to rework command line option handling.
10022 (cpp_handle_option): Combine handling of -include and -imacros.
10023 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
10024 appropriate. Always insert missing \n at EOF.
10025 * cpplib.c (start_directive): Get the directive position right.
10026 * cppmain.c (cb_file_change): Always print the first line, unless
10029 2001-08-20 Andreas Jaeger <aj@suse.de>
10031 * profile.c (compute_branch_probabilities): Remove extra new-line
10033 * flow.c (verify_flow_info): Likewise.
10035 2001-08-20 Diego Novillo <dnovillo@redhat.com>
10037 * basic-block.h (basic_block): Add new field 'flags'.
10038 (BB_REACHABLE): Define.
10039 (expunge_block): Declare.
10040 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
10041 (EXIT_BLOCK_PTR): Ditto.
10042 (expunge_block): Remove static declaration.
10043 (cleanup_cfg): Clear bb->aux on every basic block.
10044 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
10045 computing reachability.
10046 (delete_unreachable_blocks): Delete block b if b->flags has
10047 BB_REACHABLE unset.
10049 2001-08-20 Diego Novillo <dnovillo@redhat.com>
10051 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
10053 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10055 * sparc.c (sparc_variable_issue): Fix typo in last change.
10057 2001-08-20 Richard Henderson <rth@redhat.com>
10059 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
10061 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
10063 * pa.h (RETURN_IN_MEMORY): Improve comment.
10065 2001-08-20 Janis Johnson <janis187@us.ibm.com>
10067 * doc/invoke.texi (Profiling options): Clarify the interactions
10068 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
10070 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
10072 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
10075 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10077 * gcc.c (make_relative_prefix): Allocate a sufficiently large
10080 2001-08-20 Richard Henderson <rth@redhat.com>
10082 * final.c (end_final): Fix typo last change.
10084 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
10086 * cppinit.c (init_standard_includes): The returned buffer
10087 is already malloc-ed.
10088 * gcc.c (add_prefix): Similarly.
10089 * prefix.c (translate_name): Update to support clear buffer
10091 (update_path): Similarly. Be sure to free any newly allocated
10092 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
10093 (tr): New function.
10094 * prefix.h (update_path): Update prototype and document.
10095 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
10096 up and update to new buffer ownership rules.
10097 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
10099 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
10101 * final.c (compute_alignments): New function.
10102 (init_insn_lengths): Do not care label_align.
10103 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
10104 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
10105 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
10106 (shorted_branches): Realloc label_align array; do
10107 not call init_insn_lengths; Do not care about loop alignments.
10108 * output.h (compute_alignments): Declare.
10109 * toplev.c (rest_of_compilation): Call compute_alignments.
10110 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
10112 * predict.c (block_info_def): Add npredecesors, remove nvisited;
10113 change visited to tovisit.
10114 (propagate_freq): Use faster traversing algorithm.
10115 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
10116 to tovisit; reverse meaning.
10118 * predict.c (struct block_info_def): Remove nvisited.
10119 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10120 (estimate_bb_frequencies): Call mark_dfs_back_edges.
10122 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
10124 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
10125 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
10126 (TARGET_FUSED_MADD): New.
10127 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
10128 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
10129 the multiply-add instructions.
10131 2001-08-19 Richard Henderson <rth@redhat.com>
10133 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
10134 is aligned to pointer size.
10136 2001-08-19 Richard Henderson <rth@redhat.com>
10138 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
10139 display markers during final schedule.
10141 2001-08-19 Richard Henderson <rth@redhat.com>
10143 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
10145 2001-08-19 Richard Henderson <rth@redhat.com>
10147 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
10148 in the same string.
10149 (ASM_NAME_TO_STRING): Remove.
10150 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
10151 in the same string. Remove support for expressions.
10153 2001-08-19 Richard Henderson <rth@redhat.com>
10155 * config/i386/i386.md (tablejump): Make an expander; handle
10156 pic relative addressing here.
10157 (tablejump_1): Rename from tablejump_pic.
10160 2001-08-19 Richard Henderson <rth@redhat.com>
10162 * regclass.c (fix_register): Fix typo.
10164 2001-08-18 Richard Henderson <rth@redhat.com>
10166 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
10167 (struct _Unwind_Context): Expand br_loc to hold it.
10168 (uw_frame_state_for): Handle leaf functions better.
10169 (uw_update_reg_address): Update for br_loc change.
10171 2001-08-18 Richard Henderson <rth@redhat.com>
10173 * crtstuff.c: Move list heads before code that uses them.
10174 (__JCR_LIST__): Remove initial null.
10175 (frame_dummy, __frame_dummy): Do java registration here ...
10176 (__do_global_ctors_aux): ... not here.
10178 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
10179 (__do_global_dtors_aux): Update to match.
10180 (__JCR_LIST__, __do_jv_register_classes): New.
10182 * config/ia64/crtend.asm (__JCR_END__): New.
10183 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
10184 instead of an indirect LTOFF22 reloc.
10186 2001-08-18 Richard Henderson <rth@redhat.com>
10188 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
10189 * regclass.c (init_reg_sets_1): Fix typo.
10190 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
10191 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
10192 (ia64_compute_frame_size): Make ar.unat live when in use.
10193 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
10194 for ar.pfs; remove ar.unat handling.
10195 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
10197 (PREDICATE_CODES): Add ar_pfs_reg_operand.
10198 * config/ia64/ia64-protos.h: Update decls.
10199 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
10200 (sibcall_pic): Likewise.
10202 2001-08-18 Richard Henderson <rth@redhat.com>
10204 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
10205 pred_rel_mutex when searching for insn_group_barrier.
10206 * config/ia64/ia64.md (cycle_display): Combine the expander
10209 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
10210 bit before asm as needed.
10212 2001-08-18 Richard Henderson <rth@redhat.com>
10214 * timevar.def (TV_MACH_DEP): New.
10215 * toplev.c (rest_of_compilation): Use it.
10216 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
10218 2001-08-18 Zack Weinberg <zackw@panix.com>
10220 * unwind-dw2.c (execute_stack_op): Add default aborts to
10221 the inner switches to prevent warnings.
10223 2001-08-18 Richard Henderson <rth@redhat.com>
10225 * timevar.h (struct timevar_time_def): Change element type to float.
10226 (ticks_to_msec, clocks_to_msec): Likewise.
10227 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
10228 (get_time): Likewise.
10229 (timevar_print): Adjust zero check and printing to match.
10231 2001-08-18 Zack Weinberg <zackw@panix.com>
10233 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
10234 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
10235 Eliminate overfull or underfull hboxes.
10237 2001-08-18 Zack Weinberg <zackw@panix.com>
10239 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
10241 2001-08-18 Zack Weinberg <zackw@panix.com>
10243 * haifa-sched.c: Convert to target hooks. Macros replaced
10244 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
10245 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
10246 MD_SCHED_FINISH, and HAVE_cycle_display.
10247 * target-def.h (TARGET_SCHED_ADJUST_COST,
10248 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
10249 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
10250 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
10251 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
10252 New hook #defines to be overridden.
10253 (TARGET_SCHED): Bring them all together.
10254 (TARGET_INITIALIZER): Update.
10255 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
10256 instead of 'struct rtx_def *' throughout.
10257 (struct sched): New set of hooks for the scheduler.
10258 * Makefile.in (haifa-sched.o): Depend on target.h.
10259 * doc/tm.texi: Document the new scheduler hooks, together in
10260 their own section, instead of scattered around.
10261 Fix a bunch of underfull/overfull hboxes.
10263 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
10264 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
10265 sparc.h: Don't define any of the old scheduler macros.
10267 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
10268 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
10269 sparc.c: Create hook functions from code extracted from
10270 corresponding target header, or make existing hooks static, as
10271 appropriate. Set the appropriate entries in targetm.
10273 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
10274 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
10275 rs6000-protos.h, s390-protos.h, sparc-protos.h:
10276 Remove prototypes for functions which are now static.
10278 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
10279 related gunk; the Haifa scheduler is now the only choice.
10281 2001-08-18 Zack Weinberg <zackw@panix.com>
10283 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
10284 * genopinit.c: Put floating point divide insns in sdiv_optab.
10285 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
10286 * config/gofast.h, config/c4x/c4x.h,
10287 config/ia64/hpux_longdouble.h, config/mips/mips.h,
10288 config/pa/long_double.h, config/rs6000/sysv4.h,
10289 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
10290 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
10291 (init_optabs): Use init_optabv for overflow-trapping optabs.
10292 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
10293 cmp_optab RTX codes so have_insn_for can find them.
10295 * optabs.c (expand_simple_binop, expand_simple_unop,
10296 have_insn_for, gen_sub3_insn): New interfaces.
10297 * expr.h: Prototype new functions.
10298 (enum optab_methods): Move here from optabs.h.
10300 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
10301 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
10302 Use new functions instead of working directly with optabs.
10303 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
10304 unroll.c: Don't include optabs.h.
10305 * caller-save.c, combine.c, function.c, stmt.c: Just include
10306 insn-codes.h, not optabs.h.
10307 * Makefile.in: Update dependencies.
10309 * combine.c (make_compound_operation, simplify_comparison):
10310 Fix typos testing for this or that instruction.
10312 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10314 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
10315 generating libgcc.a.
10317 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10319 * except.c (TYPE_HASH): Delete.
10321 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
10324 * tree.c (TYPE_HASH): Delete.
10326 * tree.h (TYPE_HASH): Define.
10328 2001-08-18 Graham Stott <grahams@redhat.com>
10330 * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
10332 (adddi3_internal_2+2): Likewise.
10333 (eh_set_lr_di+1): Likewise.
10335 2001-08-17 Richard Henderson <rth@redhat.com>
10337 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
10338 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
10339 * dwarf2asm.c: ... here.
10340 * dwarfout.c: Remove them.
10342 * varasm.c (assemble_integer): Add align parameter.
10343 (assemble_real, output_constant, output_constructor): Likewise.
10344 * output.h: Update decls.
10345 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
10346 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
10347 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
10348 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
10349 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
10350 Update all callers.
10352 * final.c (end_final): Abort profile block generation if we
10353 haven't layed it out properly.
10354 * output.h (assemble_eh_integer): Remove stale decl.
10355 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
10357 (assemble_integer): Handle unaligned data.
10358 (assemble_real): Abort on unaligned data.
10359 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
10361 (default_dtor_section_asm_out_destructor): Use assemble_align.
10362 (default_named_section_asm_out_constructor): Likewise.
10363 (default_ctor_section_asm_out_constructor): Likewise.
10364 * config/darwin.c (machopic_asm_out_constructor): Likewise.
10365 (machopic_asm_out_destructor): Likewise.
10366 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
10367 (nextstep_asm_out_destructor): Likewise.
10368 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
10369 (vms_asm_out_destructor): Likewise.
10371 2001-08-17 Richard Henderson <rth@redhat.com>
10373 * config/mips/iris6.h (TARGET_IRIX6): New.
10374 (current_section_name, current_section_flags): New.
10375 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
10376 (MAX_OFILE_ALIGNMENT): New.
10377 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
10378 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
10379 (copy_file_data): Split out from
10380 (mips_asm_file_end): ... here.
10381 (mips_asm_file_start): Remove extra .section directive. Use
10382 tmpfile instead of mips_make_temp_file.
10383 (mips_unique_section): Use const char * as needed for warnings.
10384 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
10385 re-add align parameter.
10386 (iris6_asm_named_section): New.
10387 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
10388 (iris6_asm_output_align, iris6_section_align_1): New.
10389 (iris6_asm_file_start, iris6_asm_file_end): New.
10390 * config/mips/mips-protos.h: Update decls.
10392 2001-08-17 Janis Johnson <janis187@us.ibm.com>
10394 * doc/install.texi (Install GCC): Add links to build status pages.
10396 (Final install): Ditto; request updates for specific info
10398 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
10400 * cpperror.c (print_location): Don't take a file name; use the
10402 (_cpp_begin_message): Similarly.
10403 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
10404 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
10405 (cpp_pedwarn_with_file_and_line): Remove.
10406 * cppfiles.c (stack_include_file): Update; set filename to stdin
10407 here when appropriate.
10408 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
10409 (_cpp_begin_message): Don't take a file name.
10410 * cppinit.c: Add comment.
10411 * cpplex.c: Fix end-of-directive indicator.
10412 * cpplib.c: Don't include intl.h.
10413 (run_directive, do_diagnostic): Update.
10414 (do_line): Update to not use nominal_fname.
10415 (cpp_push_buffer): Don't take a filename.
10416 * cpplib.h (struct ht): Remove.
10417 (cpp_push_buffer): Don't take a filename.
10418 (cpp_pedwarn_with_file_and_line): Remove.
10419 * cppmacro.c (struct cpp_macro): Remove file.
10420 (builtin_macro): Update.
10421 (_cpp_create_definition): Update.
10422 * cppmain.c: Correct comment.
10423 * fix-header.c (read_scan_file): Update.
10425 2001-08-17 Kazu Hirata <kazu@hxi.com>
10427 * sbitmap.c: Fix comment formatting.
10428 * sched-deps.c: Likewise.
10429 * sibcall.c: Likewise.
10430 * simplify-rtx.c: Likewise.
10432 * ssa-ccp.c: Likewise.
10433 * stor-layout.c: Likewise.
10434 * timevar.c: Likewise.
10435 * toplev.c: Likewise.
10436 * unwind-dw2.c: Likewise.
10437 * unwind-dw2-fde.c: Likewise.
10438 * varasm.c: Likewise.
10440 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
10442 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
10443 or larger than an integer in memory.
10445 2001-08-17 Zack Weinberg <zackw@panix.com>
10447 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
10448 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
10449 * rtl.h: Don't forward-declare union tree_node here. Don't
10450 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
10451 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
10452 and tree respectively.
10453 * tree.h: Don't forward-declare struct rtx_def here. Don't
10454 typedef tree here. Change all uses of struct rtx_def *,
10455 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
10456 and tree respectively.
10458 2001-08-17 Richard Henderson <rth@redhat.com>
10460 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
10461 config/mips/openbsd.h: Fix typos last change.
10463 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10465 * doc/invoke.texi (Optimize Options): The default for
10466 -finline-limit is 600.
10468 2001-08-17 Richard Henderson <rth@redhat.com>
10470 * varasm.c (text_section): Allow TEXT_SECTION to override the
10471 printing of TEXT_SECTION_ASM_OP.
10472 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
10473 (DATA_SECTION, BSS_SECTION): Remove.
10474 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
10475 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
10476 Rename from s/_NAME//.
10477 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
10478 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
10479 (TEXT_SECTION): ... here. New.
10480 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
10481 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
10482 * config/mips/openbsd.h: Likewise.
10483 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
10484 (mips_asm_file_end): Likewise test.
10485 (mips_output_function_epilogue): Likewise. Switch back to data
10486 section after emitting the function.
10488 * doc/tm.texi (Sections): Document TEXT_SECTION.
10490 2001-08-17 Richard Henderson <rth@redhat.com>
10492 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
10493 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
10495 2001-08-17 Richard Henderson <rth@redhat.com>
10497 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
10498 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
10499 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
10500 Add aligned attribute.
10502 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
10504 * config/sh/sh.md: Add modes to unspecs in first insn to match
10505 those in the second.
10507 * Makefile.in: Fix collect2 copy for Cygwin.
10509 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
10511 Install the proper patch.
10512 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10513 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10514 (expand_function_start): Likewise.
10515 * stmt.c (expand_decl): Likewise.
10516 * varasm.c (make_decl_rtx): Likewise.
10518 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
10520 * final.c: Undo my previous accidental checkin.
10521 * output.h: Likewise.
10522 * tm.texi: Likewise.
10524 2001-08-16 Richard Henderson <rth@redhat.com>
10526 * varasm.c (named_section_flags): Remove align parameter.
10527 * varasm.c, dwarf2out.c: Update all callers.
10528 * output.h: Update prototypes.
10530 * target.h (target.asm_out.named_section): Remove align parameter.
10531 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
10532 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
10533 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
10534 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
10535 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
10537 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
10538 (get_named_section_flags, set_named_section_flags): New.
10539 (named_section_flags): Use them.
10540 (named_section): Do decl vs section flags check here...
10541 (default_section_type_flags): ... not here.
10542 (init_varasm_once): Create in_named_htab.
10543 (resolve_unique_section): Mark reloc unused.
10545 2001-08-16 Richard Henderson <rth@redhat.com>
10547 * varasm.c (force_const_mem): Keep pool alignment in bits.
10548 (output_constant_pool): Use assemble_align.
10550 2001-08-16 Zack Weinberg <zackw@panix.com>
10552 * doc/tm.texi: Remove extra @table command.
10554 2001-08-16 Zack Weinberg <zackw@panix.com>
10556 * final.c (shorten_branches): Clear the end of the label_align
10557 array only if we made it larger. Break up messy expressions
10560 * diagnostic.c (internal_error): Check for error recursion
10561 before doing ICE suppression.
10563 * timevar.c: Timing variables now count in milliseconds.
10564 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
10565 (get_time): Not here.
10566 (timevar_print): Don't print any timer whose user, cpu, and
10567 wall times are all zero as displayed.
10568 * timevar.h: Update comment aboout units. Make timevar
10571 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
10573 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10574 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10575 (expand_function_start): Likewise.
10576 * stmt.c (expand_decl): Likewise.
10577 * varasm.c (make_decl_rtx): Likewise.
10579 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
10581 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
10582 (finalize_record_size): Don't set TYPE_USER_ALIGN.
10584 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10586 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
10589 2001-08-16 Andreas Jaeger <aj@suse.de>
10591 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
10594 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
10596 * rtl.h (only_sets_cc0_p): New prototype.
10597 * jump.c (sets_cc0_p): Handle INSN.
10598 (only_sets_cc0_p): New function.
10599 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
10600 (tidy_fallthru_edge): Likewise.
10601 * integrate.c (copy_insn_list): Likewise.
10602 * unroll.c (unroll_loop): Likewise.
10603 (copy_loop_body): Likewise.
10605 2001-08-15 Jason Eckhardt <jle@redhat.com>
10607 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
10609 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
10611 * predict.c (struct block_info_def): Remove nvisited.
10612 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10613 (estimate_bb_frequencies): Call mark_dfs_back_edges.
10615 * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
10616 (ix86_adjust_cost): Teach scheduler that latency to load operand can
10619 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
10621 * predict.def: Update hitrates.
10623 2001-08-15 Richard Henderson <rth@redhat.com>
10625 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
10627 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
10629 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
10630 note from its associated jump.
10632 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
10634 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
10635 also on 64-bit s390x targets.
10637 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
10639 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
10641 (arm_expand_prologue): Handled nested functions which take a
10642 variable argument list.
10643 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
10644 macro with an invocation of
10645 arm_compute_initial_elimination_offset.
10646 * config/arm/arm-protos.h: Prototype
10647 arm_compute_initial_elimination_offset.
10649 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10651 * doc/install.texi (Specific, avr): Fix markup.
10652 (Specific, c4x): Ditto.
10654 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10656 * predict.c (dump_prediction): Change `bool' parameter to `int'.
10658 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
10660 * Makefile.in (OBJS): Add rtl-error.o
10661 (rtl-error.o): New rule.
10662 (diagnostic.o): Adjust dependency.
10663 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
10664 error_for_asm, _fatal_insn, _fatal_insn_not_found,
10665 warning_for_asm): Move to...
10666 rtl-error.c: ...here. New file.
10668 2001-08-14 Richard Henderson <rth@redhat.com>
10670 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
10671 if USING_SJLJ_EXCEPTIONS.
10673 2001-08-14 Steve Ellcey <sje@cup.hp.com>
10675 * tlink.c (scan_linker_output): Check string for unsatisfied in
10676 addition to undefined and unresolved.
10678 2001-08-14 Graham Stott <grahams@redhat.com>
10680 * libgcc2.c (*): Replace EH_FRAME_SECTION with
10681 EH_FRAME_SECTION_NAME.
10683 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
10685 * genattrtab.c (simplify_test_exp_in_temp): New function.
10686 (simplify_test_exp): Avoid explicit use of temporary obstack.
10687 (simplify_cond, insert_right_side, evaluate_eq_attr,
10688 simplify_and_tree, simplify_or_tree, eliminate_known_true):
10689 Use simplify_test_exp_in_temp.
10690 (optimize_attrs): Iterate until expression stabilizes.
10692 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
10694 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
10695 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
10697 2001-08-13 Richard Henderson <rth@redhat.com>
10699 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
10700 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
10701 * config/arm/conix-elf.h: Likewise.
10703 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
10705 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
10707 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10709 * gcse.c (hash_scan_set): Expressions that are set as part of
10710 jump instructions are not available.
10712 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
10714 * config/s390/s390.c (print_operand, s390_function_prologue,
10715 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
10717 2001-08-13 Richard Henderson <rth@redhat.com>
10719 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
10720 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
10721 * doc/tm.texi (Exception Region Output): Document it.
10723 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
10725 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
10726 DWARF2 instead of stabs by default.
10728 2001-08-13 David Edelsohn <edelsohn@gnu.org>
10730 * config/rs6000/rs6000.c: Include optabs.h.
10732 2001-08-13 David Edelsohn <edelsohn@gnu.org>
10734 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
10735 save/restore routines.
10736 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
10738 2001-08-13 Andreas Jaeger <aj@suse.de>
10740 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
10741 the english is correct.
10743 2001-08-13 Zack Weinberg <zackw@panix.com>
10745 * expr.h: Split out optab- and libfunc-related code to...
10746 * optabs.h, libfuncs.h: ... these new headers.
10748 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
10750 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
10752 * mkconfig.sh: Don't include insn-codes.h from config.h.
10754 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
10755 enum insn_code is available. Move reload_in_optab and
10756 reload_out_optab array declarations to optabs.h.
10757 * regmove.c (gen_add3_insn): Move to optabs.c, export from
10758 there, prototype in expr.h.
10759 * gencodes.c: Cleanup: zap global variables, don't use
10760 printf where puts will do, don't bother defining MAX_INSN_CODE
10761 which nothing uses, let CODE_FOR_nothing get its value implicitly.
10763 * genemit.c, genopinit.c: Include optabs.h in generated file.
10764 * genoutput.c: Include insn-codes.h in generated file.
10765 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
10766 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
10767 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
10768 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
10769 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
10770 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
10772 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
10773 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
10774 config/m88k/m88k.c, config/sparc/sparc.c:
10775 Include libfuncs.h.
10776 * reload.c: Include expr.h and optabs.h before reload.h.
10777 * config/alpha/alpha.c: Include tree.h before reload.h.
10778 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
10779 and reload.h in that order.
10780 * config/sparc/sparc.c: Include debug.h.
10781 * recog.c: Include insn-codes.h.
10783 2001-08-13 Andreas Jaeger <aj@suse.de>
10785 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
10788 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10790 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
10791 * gcc.c (init_spec): Fix typo in comment.
10792 * varasm.c (data_section): Fix typo in comment.
10794 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
10796 * predict.c (dump_prediction): New argument "USED".
10797 (combine_predictions_for_insn): Determine the used heuristics,
10798 output the case no heuristic applied.
10799 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
10801 2001-08-13 Andreas Jaeger <aj@suse.de>
10803 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
10806 2001-08-13 Kazu Hirata <kazu@hxi.com>
10808 * jump.c: Fix formatting.
10810 2001-08-13 Kazu Hirata <kazu@hxi.com>
10812 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
10815 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
10817 * loop.c (check_dbra_loop): Use condjump_label to compute
10820 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
10821 to better document the files they're in.
10823 2001-08-12 Zack Weinberg <zackw@panix.com>
10825 * recog.h (struct insn_operand_data): Shrink 'mode' field
10828 2001-08-12 Kazu Hirata <kazu@hxi.com>
10830 * gcc.c: Fix comment formatting.
10831 * gccspec.c: Likewise.
10832 * gcov.c: Likewise.
10833 * gcse.c: Likewise.
10834 * genemit.c: Likewise.
10835 * gengenrtl.c: Likewise.
10836 * genrecog.c: Likewise.
10837 * gensupport.c: Likewise.
10838 * ggc-page.c: Likewise.
10839 * global.c: Likewise.
10840 * graph.c: Likewise.
10841 * ifcvt.c: Likewise.
10842 * integrate.c: Likewise.
10844 * libgcc2.c: Likewise.
10845 * loop.c: Likewise.
10846 * mbchar.c: Likewise.
10847 * optabs.c: Likewise.
10848 * predict.c: Likewise.
10849 * prefix.c: Likewise.
10850 * profile.c: Likewise.
10851 * protoize.c: Likewise.
10852 * real.c: Likewise.
10853 * recog.c: Likewise.
10854 * regclass.c: Likewise.
10855 * regmove.c: Likewise.
10856 * reg-stack.c: Likewise.
10857 * reload1.c: Likewise.
10858 * resource.c: Likewise.
10859 * rtlanal.c: Likewise.
10862 2001-08-12 Kazu Hirata <kazu@hxi.com>
10864 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
10865 a tree representing a constant is passed to the macro.
10867 2001-08-12 Richard Henderson <rth@redhat.com>
10869 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
10870 (rs6000_elf_asm_out_destructor): New.
10871 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
10872 (DTORS_SECTION_ASM_OP): Remove.
10873 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10874 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
10876 2001-08-12 David Edelsohn <edelsohn@gnu.org>
10879 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10880 * gcc.c (set_collect_gcc_options): New function, split out from
10882 Ignore elided switches.
10883 (do_spec_1): Invoke before executing command.
10884 (set_input): Export.
10885 Move declaration ...
10886 * gcc.h (set_input): ... here.
10887 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
10890 2001-08-12 Richard Henderson <rth@redhat.com>
10892 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
10893 thinko wrt TARGET_RELOCATABLE.
10895 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
10897 * fix-header.c (cb_file_change): Update prototype.
10899 2001-08-11 Zack Weinberg <zackw@panix.com>
10901 * toplev.c (set_float_handler): Make static.
10902 * toplev.h: Don't prototype set_float_handler.
10904 * simplify-rtx.c: Don't include setjmp.h.
10905 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
10907 (simplify_unary_operation, simplify_binary_operation): Use them,
10908 via do_float_handler.
10910 * fold-const.c: Don't include setjmp.h.
10911 (exact_real_inverse_1): New function.
10912 (exact_real_inverse): Use it, via do_float_handler.
10914 * varasm.c: Don't include setjmp.h.
10915 (assemble_real_1): New function.
10916 (assemble_real): Use it, via do_float_handler.
10917 Call internal_error if we get a trap here.
10919 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
10920 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
10922 2001-08-11 Zack Weinberg <zackw@panix.com>
10924 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
10925 STACK_BOUNDARY if not already defined.
10927 * calls.c, function.c, reload1.c, explow.c: Don't default
10928 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
10929 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
10931 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
10934 * doc/tm.texi: Document that STACK_BOUNDARY is required;
10935 clarify difference between it and PREFERRED_STACK_BOUNDARY.
10937 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
10939 * cppmacro.c (enter_macro_context): Push macro expansions even
10942 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10944 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
10945 (rs6000_elf_section_type_flags): Actually return a value.
10947 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
10949 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
10950 Clean up code: add missing comments and prototypes, fix warnings,
10951 remove obsolete code, fix spacing to conform to coding style.
10953 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
10955 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
10956 and TARGET_ASM_CLOSE_PAREN.
10957 (regclass_map): CC register belongs to class NO_REGS.
10958 (legitimize_pic_address): Don't generate unnecessary moves
10959 (to avoid confusing loop optimization).
10960 (check_and_change_labels): Replace jump_long by indirect_jump.
10961 (s390_final_chunkify): Don't start a new literal pool on section
10962 switch in 64-bit code.
10963 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
10965 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
10966 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
10967 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
10969 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
10970 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
10971 (CONST_COSTS): Fixed incorrect costs.
10973 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
10974 Use emit_jump instead of emit_jump_insn (gen_jump).
10975 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
10976 (to avoid confusing flow analysis).
10977 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
10978 (casesi, casesi_jump): New.
10979 (jump_long): Removed. Functionality merged into indirect_jump.
10980 (indirect_jump): Accept address_operand, not just register_operand.
10981 (cjump_long, icjump_long): Use same logic as indirect_jump.
10982 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
10983 Fixed broken setjmp/longjmp handling.
10984 (do_builtin_setjmp_setup): Removed.
10986 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
10987 broken GNU as versions that don't accept .quad with large
10988 negative values. Use hexadecimal output instead.
10989 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
10990 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
10991 FUNCTION_EPILOGUE): Removed. Now in targetm.
10993 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
10995 * config/s390/fixdfdi.h: Add missing copyright statement.
10996 Fix type conflicts on 64-bit. Add missing SFmode routines.
10998 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
11001 2001-08-11 Richard Henderson <rth@redhat.com>
11003 * rtl.h (REG_EH_RETHROW): Remove.
11004 * rtl.c (reg_note_name): Update.
11005 * combine.c (distribute_notes): Don't check for it.
11007 2001-08-11 Richard Henderson <rth@redhat.com>
11009 * combine.c (distribute_notes): Place REG_SETJMP.
11011 2001-08-11 Richard Henderson <rth@redhat.com>
11013 * doc/extend.texi (Arrays and pointers implementation): Discourage
11014 relying on sign-extension of pointers.
11016 2001-08-11 H.J. Lu <hjl@gnu.org>
11018 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
11020 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
11021 RDATA_SECTION_ASM_OP.
11023 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11025 * doc/install.texi (Specific, c4x): Fix cross-reference to the
11026 main manual to work both for info and HTML versions.
11028 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
11029 Matt Kraai <kraai@alumni.carnegiemellon.edu>
11031 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
11032 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
11033 (struct cpp_pool): New member first.
11034 * cppinit.c (append_include_chain): Plug memory leaks.
11035 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
11036 Allocate pragma structures from the (aligned) macro pool to
11037 avoid leaking memory.
11038 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
11039 so we don't leak memory.
11040 * hashtable.c (ht_destroy): New.
11041 * hashtable.h (ht_destroy): New.
11043 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
11044 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11046 * c-lex.c (map): Make const.
11047 (cb_file_change): Update for callback passing a line map.
11048 Don't assume we have a previous map. Remove sanity check
11049 about popping too many files.
11050 * cpperror.c (print_location): Make map const.
11051 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
11052 (cpp_make_system_header): Similarly.
11053 (search_from): Similarly.
11054 (_cpp_execute_include): Don't remember where we came from.
11055 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
11056 (struct cpp_reader): Make map const.
11057 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
11058 * cpplib.c (do_line): Update; line maps now hold sysp.
11059 (cpp_push_buffer): Similarly.
11060 (_cpp_do_file_change): Similarly; callback with map instead.
11061 (cpp_get_line_maps): Constify return value.
11062 (_cpp_pop_buffer): Update.
11063 * cpplib.h (struct cpp_file_change): Remove.
11064 (struct cpp_callbacks): Update.
11065 (cpp_get_line_maps): Constify return value.
11066 * cppmacro.c (_cpp_create_definition): Update.
11067 * cppmain.c (struct printer): Constify map.
11068 (maybe_print_line): Similarly.
11069 (print_line): Similarly. Deduce flags 1 and 2 here.
11070 (cb_file_change): Update.
11071 * line-map.c (free_line_maps): Warn regardless.
11072 (add_line_map): Return pointer to const. When passed NULL to_file
11073 with LC_LEAVE, use the obvious values for the return point so the
11074 caller doesn't have to figure them out.
11075 (lookup_line): Return pointer to const.
11076 (print_containing_files): Take pointer to const.
11077 * line-map.h (struct line_map): New members reason, sysp.
11078 (add_line_map): Return pointer to const.
11079 (lookup_line): Similarly.
11080 (print_containing_files): Take pointer to const.
11082 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
11083 Richard Henderson <rth@redhat.com>
11085 * regmove.c (regmove_optimize): Avoid setting a register twice in
11088 2001-08-10 Richard Henderson <rth@redhat.com>
11090 * doc/extend.texi (Arrays and pointers implementation): Document
11091 behavior of pointer/integer conversion.
11093 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
11095 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
11097 2001-08-10 Richard Henderson <rth@redhat.com>
11099 * doc/extend.texi (C Implementation): New chapter.
11100 * doc/gcc.texi (Top): Link it in.
11102 2001-08-10 Andrew Cagney <ac131313@redhat.com>
11104 * doc/install.texi (Specific): Fix CVS merge botch.
11106 2001-08-10 Richard Henderson <rth@redhat.com>
11108 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
11109 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
11111 2001-08-10 Zack Weinberg <zackw@stanford.edu>
11113 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
11114 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
11115 this macro is now required.
11117 * cselib.c (cselib_process_insn), flow.c (propagate_block),
11118 loop.c (find_and_verify_loops), reload.c (reload): Check
11119 for rtx code of CALL_INSN, not CALL, when deciding if we
11120 need to check for REG_SETJMP note.
11122 * gcse.c (compute_hash_table, compute_store_table): Update
11123 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
11126 * config/avr/avr.c: Fix typo.
11127 * config/convex/convex.c (expand_movstr): Use adjust_address.
11128 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
11130 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
11131 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
11133 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
11134 Do define STACK_BOUNDARY.
11135 * config/i370/i370.c: Include expr.h.
11136 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
11137 config/pa/som.h, config/v850/v850.h: Take in_ctors and
11138 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
11139 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
11140 * config/m88k/m88k.c: Include c-tree.h after expr.h.
11141 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
11142 * config/romp/romp.c: Include expr.h after tree.h.
11144 (output_fpop): Use xmalloc, not oballoc.
11145 * config/we32k/we32k.c: Include expr.h.
11147 2001-08-10 Kazu Hirata <kazu@hxi.com>
11149 * config/h8300/h8300.h: Fix formatting.
11151 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
11153 * c-common.h (RETURN_NULLIFIED_P): Lose.
11154 * c-semantics.c (genrtl_return_stmt): Don't check it.
11156 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
11158 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
11159 (mips_annotate_frame_insn): New function.
11160 (mips_emit_frame_related_store): New function.
11161 (save_restore_insns): Don't mark instructions that set up the base
11162 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
11163 the store instructions instead.
11164 (mips_expand_prologue): If the stack size is moved into a temporary
11165 register, do not mark that move as frame-related. Add a
11166 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
11168 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
11170 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
11171 stack slot as unchanging if current_function_calls_eh_return.
11173 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
11175 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
11176 access the second half of the TFmode scratch operand.
11178 2001-08-10 Anthony Green <green@redhat.com>
11180 * java/class.c (emit_register_classes): Conditionalize code on
11183 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11185 * doc/install.texi (Specific, avr): Fix cross-reference to the
11186 main manual to work both for info and HTML versions.
11188 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11190 * stmt.c (expand_null_return_1): Remove code to generate simple returns
11191 and "use_goto" argument.
11192 (expand_null_return, expand_value_return): Update all callers.
11193 * function.c (expand_function_end): Remove code to generate simple
11195 * config/vax/vax.md (epilogue): New expander for function return.
11196 * doc/md.texi (epilogue): Remove "if defined".
11198 2001-08-09 Zack Weinberg <zackw@stanford.edu>
11200 * Makefile.in: Partially revert my previous change:
11201 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
11202 of the hashtab.o and safe-ctype.o rules.
11204 2001-08-09 Richard Henderson <rth@redhat.com>
11206 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
11207 (USE_COLLECT2): Remove duplicate definition.
11208 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
11209 (use_collect2): Remove dead code.
11210 * configure.in (use_collect2): Remove will_use_collect2 and
11211 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
11212 * configure: Rebuild.
11214 * target.h (targetm.asm_out.constructor): New.
11215 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
11216 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
11217 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
11218 * varasm.c (in_ctors, in_dtors): New.
11219 (assemble_constructor, assemble_destructor): Remove.
11220 (default_stabs_asm_out_destructor): New.
11221 (default_named_section_asm_out_destructor): New.
11222 (dtors_section, default_dtor_section_asm_out_destructor): New.
11223 (default_stabs_asm_out_constructor): New.
11224 (default_named_section_asm_out_constructor): New.
11225 (ctors_section, default_ctor_section_asm_out_constructor): New.
11226 * output.h: Update declarations.
11227 * c-decl.c (c_expand_body): Use target hooks instead of
11228 assemble_constructor and assemble_destructor.
11229 * profile.c (output_func_start_profiler): Likewise.
11230 * objc/objc-act.c (finish_objc): Likewise.
11231 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
11232 for the constructor.
11233 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
11235 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
11236 (DTORS_SECTION_ASM_OP): Likewise.
11237 (__CTOR_LIST__): Use attribute section when possible.
11238 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
11240 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
11241 ASM_OUTPUT_CONSTRUCTOR.
11243 * config/darwin.c (machopic_asm_out_constructor): New.
11244 (machopic_asm_out_destructor): New.
11245 * config/darwin-protos.h: Update declarations.
11246 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11247 (ASM_OUTPUT_DESTRUCTOR): Remove.
11248 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11249 * config/nextstep.c (nextstep_asm_out_constructor): New.
11250 (nextstep_asm_out_destructor): New.
11251 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11252 (ASM_OUTPUT_DESTRUCTOR): Remove.
11253 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11254 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
11255 ASM_OUTPUT_*STRUCTOR.
11256 * config/i386/aix386ng.h: Likewise.
11258 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
11259 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
11260 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
11261 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11262 * config/lynx.h: Likewise.
11263 * config/netware.h: Likewise.
11264 * config/psos.h: Likewise.
11265 * config/alpha/alpha-interix.h: Likewise.
11266 * config/alpha/elf.h: Likewise.
11267 * config/arc/arc.h: Likewise.
11268 * config/arm/aof.h: Likewise.
11269 * config/arm/coff.h: Likewise.
11270 * config/arm/elf.h: Likewise.
11271 * config/c4x/c4x.h: Likewise.
11272 * config/h8300/h8300.h: Likewise.
11273 * config/i386/cygwin.h: Likewise.
11274 * config/i386/djgpp.h: Likewise.
11275 * config/i386/i386-coff.h: Likewise.
11276 * config/i386/i386-interix.h: Likewise.
11277 * config/i386/sco5.h: Likewise.
11278 * config/i386/vsta.h: Likewise.
11279 * config/i386/win32.h: Likewise.
11280 * config/i960/i960-coff.h: Likewise.
11281 * config/ia64/sysv4.h: Likewise.
11282 * config/m68hc11/m68hc11.h: Likewise.
11283 * config/m68k/coff.h: Likewise.
11284 * config/m68k/mot3300.h: Likewise.
11285 * config/m88k/m88k.h: Likewise.
11286 * config/mcore/mcore-pe.h: Likewise.
11287 * config/mcore/mcore.h: Likewise.
11288 * config/mips/elf.h: Likewise.
11289 * config/mips/elf64.h: Likewise.
11290 * config/mips/iris6.h: Likewise.
11291 * config/pa/pa64-hpux.h: Likewise.
11292 * config/rs6000/sysv4.h: Likewise.
11293 * config/sh/sh.h: Likewise.
11294 * config/sparc/litecoff.h: Likewise.
11296 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
11297 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
11298 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11299 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11300 (ASM_OUTPUT_DESTRUCTOR): Remove.
11301 * config/a29k/a29k.c: Move include of tree.h.
11302 * config/a29k/udi.h: Delete file.
11303 * config/alpha/alpha.c (vms_asm_out_constructor): New.
11304 (vms_asm_out_destructor): New.
11305 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
11306 (EXTRA_SECTION_FUNCTIONS): Likewise.
11307 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11308 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11309 * config/c4x/c4x.c: Move include of tree.h.
11310 * config/clipper/clipper.c (clix_asm_out_constructor): New.
11311 (clix_asm_out_destructor): New.
11312 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11313 (ASM_OUTPUT_DESTRUCTOR): Remove.
11314 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11315 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11316 (TARGET_ASM_CONSTRUCTOR): New.
11317 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
11318 (sco_asm_out_constructor): New.
11319 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
11320 * config/i386/svr3gas.h: Remove stack grows up code.
11321 Remove code duplicated from i386/sysv3.h.
11322 (TARGET_ASM_CONSTRUCTOR): New.
11323 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11324 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
11325 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11326 (TARGET_ASM_CONSTRUCTOR): New.
11327 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
11328 (m68hc11_asm_out_destructor): New.
11329 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
11330 (TARGET_ASM_DESTRUCTOR): New.
11331 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
11332 * config/m68k/dpx2.h: Properly undef all the bits inherited from
11333 config/svr3.h pertaining to section manipulation.
11334 * config/m68k/dpx2g.h: Remove #if 0 code.
11335 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
11336 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
11337 (ASM_OUTPUT_CONSTRUCTOR): Remove.
11338 (TARGET_ASM_CONSTRUCTOR): New.
11339 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
11340 (m88k_svr3_asm_out_constructor): New.
11341 (m88k_svr3_asm_out_destructor): New.
11342 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11343 (ASM_OUTPUT_DESTRUCTOR): Remove.
11344 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11345 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
11346 * config/rs6000/aix.h: Likewise.
11347 * config/mips/rtems64.h: Don't undef removed constructor related bits.
11348 * config/mips/vxworks.h: Likewise.
11349 * config/rs6000/lynx.h: Likewise.
11350 * config/sh/elf.h: Likewise.
11351 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
11352 (DTORS_SECTION_ASM_OP): New.
11353 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11354 (ASM_OUTPUT_DESTRUCTOR): Remove.
11355 * config/sparc/sol2-sld-64.h: Likewise.
11356 * config/vax/vax.c (vms_asm_out_constructor): New.
11357 (vms_asm_out_destructor): New.
11358 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11359 (ASM_OUTPUT_DESTRUCTOR): Remove.
11360 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11362 * doc/tm.texi (@node Initialization): Update.
11364 2001-08-09 Richard Henderson <rth@redhat.com>
11366 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
11367 (__do_global_dtors_aux): Use gp-relative static data to avoid
11368 one dynamic relocation.
11369 (__do_frame_setup): Register Java classes.
11370 * config/alpha/crtend.asm (__JCR_END__): New.
11372 2001-08-09 Zack Weinberg <zackw@stanford.edu>
11374 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
11375 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
11376 (GEN, STAGESTUFF): Add new files.
11377 (insn-constants.h, s-constants, tm-preds.h, s-preds,
11378 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
11379 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
11380 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
11381 as well as insn-codes.h and insn-flags.h in config.h; and no
11382 extra headers in tconfig.h and hconfig.h.
11384 * gencodes.c: Eliminate code to generate predicate declarations
11385 or #defines for md-file constants.
11386 * genconstants.c, genpreds.c: New files.
11388 * i386.md: Re-order guard expressions such that TARGET_64BIT
11389 comes first, when this permits better optimization. Add
11390 TARGET_64BIT to more x86-64 patterns. Add comment explaining
11391 why this is desirable.
11393 2001-08-09 Jakub Jelinek <jakub@redhat.com>
11395 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
11396 (find_fde_for_dso): Remove.
11397 (_Unwind_IteratePhdrCallback): New.
11398 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
11399 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
11401 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11403 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
11404 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
11406 2001-08-09 Graham Stott <grahams@redhat.com>
11408 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
11409 (vis_no_unit): Use it.
11410 (visualize_no_unit): Add the insn only if room exists.
11412 2001-08-09 Graham Stott <grahams@redhat.com>
11414 * predict.c (estimate_probability): Replace magic numbers with
11415 appropriate enumeration.
11417 2001-08-09 Graham Stott <grahams@redhat.com>
11419 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
11421 (EXTRACT_FLAGS): Likewise.
11423 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
11425 * config/mips/mips.c (mips_legitimate_address_p): Check for
11426 CONST_INT in last patch.
11428 2001-08-08 Anthony Green <green@redhat.com>
11430 * java/class.c (emit_register_classes): Use assemble_jcr if
11431 possible. Keep the original mechanism as a fallback.
11432 * defaults.h (JCR_SECTION_NAME): Define if we have named section
11433 and weak symbol support.
11434 * crtstuff.c (__JCR_LIST__): Define.
11435 (__JCR_END__): Define.
11436 (_Jv_RegiserClasses): Define weak symbol if possible.
11437 (__do_global_ctors_aux): Register classes for ELF targets with
11438 weak symbol support.
11440 2001-08-08 Kazu Hirata <kazu@hxi.com>
11442 * dbxout.c: Fix comment formatting.
11443 * dependence.c: Likewise.
11445 * diagnostic.c: Likewise.
11446 * dominance.c: Likewise.
11447 * doprint.c: Likewise.
11448 * dwarf2out.c: Likewise.
11449 * dwarfout.c: Likewise.
11450 * emit-rtl.c: Likewise.
11451 * except.c: Likewise.
11452 * explow.c: Likewise.
11453 * expmed.c: Likewise.
11454 * expr.c: Likewise.
11455 * flow.c: Likewise.
11456 * fold-const.c: Likewise.
11457 * function.c: Likewise.
11459 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11461 * global.c (retry_global_alloc): Avoid shadowing allocno.
11463 2001-08-08 Mark Mitchell <mark@codesourcery.com>
11465 * except.c (remove_fixup_regions): Fix typo.
11467 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
11469 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
11470 unsigned HOST_WIDE_INT to avoid warning.
11471 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
11472 * flow.c (set_block_for_new_insns): Likewise.
11474 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
11476 * sibcall.c (return_value_pseudo): New static variable.
11477 (skip_copy_to_return_value): Handle return_value_pseudo.
11478 (call_ends_block_p): Ensure that return_value_pseudo is set.
11479 (optimize_sibling_and_tail_recursive_call): Discover the
11480 load of pseudo return value in alternate exit block.
11482 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
11484 * calls.c (ECF_ALWAYS_RETURN): New constant.
11485 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
11486 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
11487 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
11488 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
11489 * rtl.c (reg_note_name): New name.
11490 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
11492 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
11494 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
11496 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
11498 * alias.c (get_alias_set): Return a previously calculated
11499 alias set for a VAR_DECL.
11500 * function.c (gen_mem_addressof): Calculate the alias set before
11503 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
11505 * predict.def: Set hitrates according our experimental run.
11507 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
11509 * i386.h (HARD_REGNO_RENAME_OK): New macro.
11511 2001-08-08 H.J. Lu <hjl@gnu.org>
11513 * config/mips/mips.c (mips_unique_section): New. Copied from
11516 * config/mips/mips-protos.h (mips_unique_section): New
11519 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
11521 * config/mips/little.h: New. Generic little endian mips
11522 targets. Only mips*-*-linux* is converted to use it so far.
11524 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
11525 (WCHAR_TYPE): Defined
11526 (WCHAR_TYPE_SIZE): Likewise.
11527 (INIT_SUBTARGET_OPTABS): Likewise.
11528 (BSS_SECTION_ASM_OP): Likewise.
11529 (SBSS_SECTION_ASM_OP): Likewise.
11530 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11531 (ASM_DECLARE_OBJECT_NAME): Likewise.
11532 (UNIQUE_SECTION): Likewise.
11533 (EXTRA_SECTIONS): Likewise.
11534 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
11535 (ASM_OUTPUT_DESTRUCTOR): Likewise.
11536 (ASM_OUTPUT_DEF): Likewise.
11537 (HANDLE_SYSV_PRAGMA): Removed.
11538 (NO_IMPLICIT_EXTERN_C): Likewise.
11539 (TARGET_MEM_FUNCTIONS): Likewise.
11540 (STARTFILE_SPEC): Likewise.
11541 (ENDFILE_SPEC): Likewise.
11542 (LIB_SPEC): Likewise.
11543 (INVOKE__main): Likewise.
11544 (CTOR_LIST_BEGIN): Likewise.
11545 (CTOR_LIST_END): Likewise.
11546 (DTOR_LIST_BEGIN): Likewise.
11547 (DTOR_LIST_END): Likewise.
11548 (SET_ASM_OP): Likewise.
11549 (ASM_OUTPUT_SOURCE_LINE): Likewise.
11550 (ASM_OUTPUT_DEF): Likewise.
11551 (ASM_OUTPUT_IDENT): Likewise.
11553 * config/mips/mips.h (ASM_SPEC): Undefine before define.
11554 (CPLUSPLUS_CPP_SPEC): Likewise.
11555 (ASM_APP_ON) Redefine only if not defined.
11556 (ASM_APP_OFF): Likewise.
11557 (ASM_OUTPUT_SOURCE_LINE): Likewise.
11558 (ASM_OUTPUT_IDENT): Likewise.
11560 * config.gcc: Update tm_file for Linux/mips.
11562 2001-08-08 Bernd Schmidt <bernds@redhat.com>
11564 * cselib.c (cselib_record_sets): If insn is predicated, turn
11565 sources into IF_THEN_ELSEs.
11567 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
11568 Turn into define_insn_and_split.
11570 * sched-deps.c: Include "cselib.h".
11571 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
11572 Use cselib to turn memory addresses into VALUEs.
11573 (sched_analyze): Call cselib_init/cselib_finish if necessary.
11574 * sched-int.h (struct sched_info): New member USE_CSELIB.
11575 * sched-ebb.c (ebb_sched_info): Initialize it.
11576 * sched-rgn.c (rgn_sched_info): Likewise.
11577 * Makefile.in (sched-deps.o): Update dependencies.
11579 * cselib.h (cselib_subst_to_values): Declare.
11580 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
11581 that have no value and autoincs to be handled by generating a new
11584 2001-08-08 Graham Stott <grahams@redhat.com>
11586 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
11587 within fixed length SEQUENCE.
11589 2001-08-08 Graham Stott <grahams@redhat.com>
11591 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
11592 (diagnostic_prefixing_rule): Likewise.
11593 (diagnostic_line_cutoff): Likewise.
11594 (diagnostic_kind_count): Likewise.
11596 2001-08-08 Graham Stott <grahams@redhat.com>
11598 * alias.c (find_base_decl): Delete redundent assignment.
11600 2001-08-08 Graham Stott <grahams@redhat.com>
11602 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
11603 (abs): Uppercase and paranthesize macro parameter.
11604 (MEM_DEPENDENCY): Add whitespace.
11606 2001-08-08 Graham Stott <grahams@redhat.com>
11608 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
11609 failure check for CONST_INT
11611 2001-08-08 Graham Stott <grahams@redhat.com>
11613 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
11614 (libcall_dead_p): Likewise.
11616 (mark_used_regs): Constify fmt.
11617 (find_use_as_address): Likewise.
11619 2001-08-08 Graham Stott <grahams@redhat.com>
11621 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
11624 2001-08-08 Graham Stott <grahams@redhat.com>
11626 * combine.c (combine_simplify_rtx): Update comment and
11627 remove erroneous test.
11629 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
11631 * cppinit.c (cpp_finish): Pop the final buffer without comment.
11632 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
11633 take care to avoid multiple no-newline at EOF warnings in that
11636 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
11638 * calls.c (expand_call): Do not emit INSN_SETJMP note.
11639 (emit_library_call_value_1): Likewise.
11640 (emit_call_1): Emit REG_SETJMP note.
11641 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
11643 * cselib.c (cselib_process_insn): Likewise.
11644 * flow.c (propagate_block): Likewise.
11645 * loop.c (find_and_verify_loops): Likewise.
11646 * reload.c (find_equiv_regs): Likewise.
11647 * reload1.c (reload): Likewise.
11648 * resource.c (mark_referenced_resources,
11649 mark_set_resources): Likewise.
11650 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
11651 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
11652 * haifa-sched.c (unlink_other_notes): Likewise.
11653 (reemit_notes): Likewise.
11654 * sched-ebb.c (sched_ebb): Likewise.
11655 * sched-rgc.c (sched_region): Likewise.
11656 * rtl.c (note_insn_name): Likewise.
11657 (reg_note_name): Add REG_SETJMP
11658 * rtl.h (reg_note): Add REG_SETJMP.
11659 (insn_note): Remove NOTE_INSN_SETJMP.
11661 * profile.c (branch_prob): Add fake edges for setjmp.
11663 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
11665 * config.gcc: Quote target_cpu_default2 correctly for
11666 powerpc*-*-* targets.
11668 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
11670 * cpplib.h, line-map.h: Update comments.
11671 * cppmain.c (printer_init): Move inline.
11672 (maybe_print_line, print_line): Take a map pointer.
11673 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
11674 (cb_file_change): Don't use prior value of print.map.
11676 2001-08-07 David Edelsohn <edelsohn@gnu.org>
11678 * doc/install.texi: Document fine-grained multilib configuration.
11680 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
11682 * rtlanal.c (find_first_parameter_load): Call note_stores
11683 only on the instructions.
11685 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
11687 * alias.c (nonlocal_mentioned_p):
11688 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
11689 * calls.c (emit_call_1): Likewise.
11690 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
11691 * cselib.c (cselib_process_insn): Likewise.
11692 * df.c (df_insns_modify): Likewise.
11693 * flow.c (need_fake_edge_p): Likewise.
11694 (propagate_one_insn): Likewise.
11695 * haifa-sched.c (reemit_notes): Likewise.
11696 * integrate.c (copy_insn_list): Likewise.
11697 * jump.c (delete_prior_computation): Likewise.
11698 * local-alloc.c (validate_equiv_mem): Likewise.
11699 * loop.c (scan_loop): Likewise.
11700 * predict.c (estimate_probability): Likewise.
11701 * reload.c (reload): Likewise.
11702 * sched-deps (sched_analyze): Likewise.
11703 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
11704 * gcse.c (compute_hash_table): Likewise.
11705 (mark_call): Likewise.
11706 (store_killed_in_insn): Likewise.
11708 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
11710 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
11712 2001-08-06 Richard Henderson <rth@redhat.com>
11714 * varasm.c (assemble_gc_entry): Remove.
11715 * output.h: Likewise.
11717 2001-08-06 Richard Henderson <rth@redhat.com>
11719 * varasm.c (assemble_constructor): Take a symbol_ref and a
11720 priority instead of a bare string. Move priority handling
11721 here from cp/decl2.c.
11722 * output.h: Update decls.
11724 * c-decl.c (c_expand_body): Update calls to assemble_constructor
11725 and assemble_destructor.
11726 * profile.c (output_func_start_profiler): Likewise.
11727 * objc/objc-act.c (finish_objc): Likewise.
11728 (build_module_descriptor): Return the symbol not the symbol name.
11730 2001-08-06 David Edelsohn <edelsohn@gnu.org>
11732 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
11733 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
11734 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
11735 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
11736 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
11737 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
11739 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
11741 * cpperror.c (print_containing_files): Moved to line-map.c.
11742 (print_location): line-map.c handles re-listing or otherwise.
11743 * cpphash.h (struct lexer_state): Remove next_bol.
11744 (struct cpp_buffer): Remove include_stack_listed.
11745 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
11746 Remove faked buffer handling.
11747 (_cpp_do_file_change): Tweak.
11748 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
11749 * cppmain.c (struct printer): Remove filename.
11750 (print_line, cb_file_change): Update accordingly.
11751 * line-map.c: Include intl.h.
11752 (init_line_maps): Initialize last_listed.
11753 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
11754 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
11755 (print_containing_files): New.
11756 * line-map.h (struct line_maps): New member last_listed.
11757 (print_containing_files, INCLUDED_FROM): New.
11758 * Makefile.in: Update.
11759 * po/POTFILES.in: Add line-map.c.
11761 2001-08-06 Richard Henderson <rth@redhat.com>
11763 * except.c (convert_from_eh_region_ranges_1): Never mark
11764 USE or CLOBBER insns as throwing.
11766 * expr.c (store_constructor): Don't clobber memory targets.
11768 2001-08-06 Andreas Jaeger <aj@suse.de>
11770 * profile.c (branch_prob): Remove unused variable insn.
11772 * Makefile.in (local-alloc.o): Add dependency on except.h.
11774 * local-alloc.c: Include except.h for can_throw_internal prototype.
11776 2001-08-06 Richard Henderson <rth@redhat.com>
11778 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
11779 * function.c (expand_main_function): Implement it.
11780 * doc/tm.texi: Document it.
11782 2001-08-06 Stan Shebs <shebs@apple.com>
11784 * doc/install.texi: Document powerpc-*-darwin* details.
11786 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
11788 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
11789 (ASM_CPU_SPEC): Move back to rs6000.h
11790 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
11792 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
11794 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
11797 * config/rs6000/linux64.h: Ditto.
11799 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11800 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
11803 Remove accidently readded definitions of FUNCTION_PROLOGUE,
11804 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
11806 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11809 2001-08-05 Richard Henderson <rth@redhat.com>
11811 * local-alloc.c (update_equiv_regs): Do not move insns that
11814 2001-08-05 Jan Hubicka <jh@suse.cz>
11816 * Makefile.in (reload1.o): Add dedendancy on except.h
11817 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
11819 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
11820 indicating wehther edges has been cleaned up.
11821 * reload1.c: Inlucde except.h
11822 (fixup_abnormal_edges): Accept deleted insns.
11823 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
11826 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
11828 * cpplib.c (do_line): Correct line number after pop_buffer.
11830 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
11832 PR preprocessor/3824
11833 * line-map.c: Update comments.
11834 * line-map.h: Update comments.
11835 * tradcif.y: Don't consider large numbers unsigned.
11837 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
11839 PR preprocessor/3081
11840 * c-lex.c (map): New.
11841 (cb_file_change): Update map and use it.
11842 (cb_def_pragma, cb_define, cb_undef): Use map and line.
11843 (c_lex): Update to use map.
11844 * cpperror.c (print_location): Move to using logical line numbers.
11845 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
11846 (cpp_make_system_header): Similarly.
11847 (_cpp_execute_include): Stop line numbering hacks. Store the
11848 line we will return to.
11849 * cpphash.h (CPP_BUF_LINE): Remove.
11850 (struct cpp_buffer): Remove lineno and pseudo_newlines.
11851 Add map and return_to_line.
11852 (_cpp_do_file_change): Update.
11853 * cppinit.c (cpp_start_read): Update line kludge.
11854 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
11855 (trigraph_ok): Use logical line numbers for diagnostics.
11856 (skip_block_comment): Likewise.
11857 (skip_whitespace): Likewise.
11858 (skip_line_comment): Use pfile->line instead.
11859 (_cpp_lex_token): Update to use logical line numbering exclusively.
11860 Handle BOL locally. Accept new lines in directives, but keep
11861 pfile->line decremented. Diagnostics use logical lines. Update
11862 directive handling.
11863 * cpplib.c (SEEN_EOL): New.
11864 (skip_rest_of_line, check_eol): Use it.
11865 (end_directive): Increase line number when accepting the newline
11866 at the end of a directive.
11867 (run_directive): Simplify.
11868 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
11869 (_cpp_do_file_change): Update to take buffer line number as an
11870 argument, and store the current map in the cpp_reader. Remove
11871 line number kludges.
11872 (_cpp_do__Pragma): Restore output position after a _Pragma.
11873 (cpp_push_buffer): Don't set output line or lineno.
11874 (_cpp_pop_buffer): Transfer more info from a faked buffer.
11875 Remove line kludge. Set output_line.
11876 * cppmacro.c (builtin_macro): Update handling of __LINE__.
11877 (parse_arg): Use logical lines.
11878 (save_lookahead_token): Save EOFs too now.
11879 * cppmain.c (struct printer): Fix comments.
11880 (printer_init): Simplify, let caller do errors.
11881 (scan_translation_unit, check_multiline_token, dump_macro): Update.
11882 (maybe_print_line): Simplify.
11883 (print_line): Don't print a linemarker if -P.
11884 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
11885 (cb_file_change): Simplify.
11886 * line-map.h (LAST_SOURCE_LINE): Fix.
11887 (CURRENT_LINE_MAP): New.
11889 2001-08-05 Bernd Schmidt <bernds@redhat.com>
11891 * doloop.c (doloop_modify_runtime): Properly compute number of
11892 iterations if loop was unrolled.
11894 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
11895 if their CSELIB_VAL_PTRs are.
11897 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
11898 (setup_spill_pointers): Initialize it.
11899 (spill_restore_mem): Set it.
11900 (do_spill, do_restore): Use it to add REG_INC note.
11901 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
11903 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
11904 asms if other insns are available.
11906 * config/ia64/ia64.c (condop_operator): New predicate.
11907 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
11908 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
11911 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
11912 temporary register than directly using a MEM.
11914 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
11916 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
11917 parameter in last change.
11919 2001-08-04 Zack Weinberg <zackw@panix.com>
11921 * sparc.md: Don't use #if inside C test expression.
11923 2001-08-04 Richard Henderson <rth@redhat.com>
11925 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
11927 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
11929 * cpphash.h (struct cpp_reader): New member directive_line.
11930 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
11931 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
11932 do_pragma): Pass line to callbacks.
11933 (start_directive): Record line of directive.
11934 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
11935 cb_include): Similarly.
11936 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
11939 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
11941 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
11944 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
11946 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
11948 * reload1.c (fixup_abnormal_edges): New static function.
11951 * flow.c (need_fake_edge_p): New function.
11952 (flow_call_edges_add): Fix handling of noreturn and sibling calls;
11953 avoid call insn to be very last insn in the insn stream.
11955 * profile.c (branch_prob): Call flow_call_edges_add instead of
11956 doing that by hand; cleanup cfg to re-merge basic blocks once
11959 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
11961 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
11962 are also on line-map.h.
11963 * cppfiles.c (stack_include_file): Update.
11964 * cpphash.h (struct cpp_buffer): New member return_at_eof.
11965 (_cpp_pop_buffer): New.
11966 * cppinit.c (cpp_destroy, cpp_finish): Update.
11967 (do_includes): Mark each buffer to return at EOF.
11968 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
11969 return as requested.
11970 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
11971 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
11972 * cpplib.h (cpp_pop_buffer): Remove.
11973 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
11974 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
11976 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
11978 (do_preprocessing): Update.
11979 * fix-header.c (read_scan_file): Update. No need to pop buffers.
11980 * c-parse.in (_yylex): Similarly.
11981 * scan-decls.c (scan_decls): Similarly.
11982 * line-map.h: Update comments.
11984 * objc/Make-lang.in (objc-act.o): Update dependencies.
11986 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11988 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
11989 and soft register for operand 0.
11990 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
11992 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11994 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
11995 register for operand 0.
11996 ("bitcmpqi_z_used"): Allow memory for operand 0.
11997 (split "bitcmpqi"): New split to handle address reg as operand 1.
11999 2001-08-04 Andreas Jaeger <aj@suse.de>
12001 * gcse.c: Revert Daniel's last patch.
12003 2001-08-03 Zack Weinberg <zackw@stanford.edu>
12005 * sparc-protos.h: Add prototypes for fp_zero_operand and
12007 * sh-protos.h: Add prototype for fpul_operand.
12009 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
12011 * doc/extend.texi (Other Builtins): Fix typo in last change.
12013 2001-08-03 Richard Henderson <rth@redhat.com>
12015 * target.h (gcc_target): Add asm_out.named_section,
12016 section_type_flags, have_named_sections.
12017 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
12018 (TARGET_HAVE_NAMED_SECTIONS): New.
12019 (TARGET_SECTION_TYPE_FLAGS): New.
12021 * Makefile.in (toplev.o): Depend on TARGET_H.
12022 (varasm.o, dbxout.o): Likewise.
12023 * c-common.c (decl_attributes): Check targetm.have_named_sections
12024 instead of ifdef ASM_OUTPUT_SECTION_NAME.
12025 * dbxout.c (dbxout_function_decl): Likewise.
12026 (dbxout_function_end): Likewise.
12027 * toplev.c (compile_file): Likewise.
12028 * varasm.c (exception_section): Likewise.
12029 * cp/decl2.c (finish_objects): Likewise.
12031 * defaults.h (EH_FRAME_SECTION): Remove.
12032 (EH_FRAME_SECTION_ASM_OP): Remove.
12033 (EH_FRAME_SECTION_NAME): New.
12034 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
12035 (UNIQUE_SECTION_P): Remove.
12036 * dwarf2out.c (SECTION_FORMAT): Remove.
12037 (ASM_OUTPUT_SECTION): Remove.
12038 (output_call_frame_info): Use named_section_flags.
12039 (output_comp_unit, dwarf2out_start_source_file): Likewise.
12040 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
12041 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
12042 * varasm.c (in_eh_frame, eh_frame_section): Remove.
12043 (named_section_flags): New.
12044 (named_section): Use it and targetm.section_type_flags.
12045 (resolve_unique_section): New.
12046 (assemble_start_function): Use it.
12047 (asm_emit_uninitialised, assemble_variable): Likewise.
12048 (default_section_type_flags): New.
12049 (default_no_named_section, default_elf_asm_named_section): New.
12050 (default_coff_asm_named_section, default_pe_asm_named_section): New.
12051 * output.h: Update varasm.c decls.
12052 (SECTION_*): New flags.
12054 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
12055 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
12057 * config/elfos.h (UNIQUE_SECTION_P): Remove.
12058 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
12059 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
12060 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
12061 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
12062 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
12063 * config/mips/elf.h, config/mips/elf64.h: Likewise.
12064 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
12065 * config/pa/pa64-hpux.h,
12067 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
12068 (TARGET_ASM_NAMED_SECTION): New.
12069 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
12070 * config/alpha/vms.h, config/arm/coff.h: Likewise.
12071 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
12072 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
12073 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
12074 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
12075 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
12076 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
12077 * config/i386/sco5.h, config/i386/win32.h: Likewise.
12078 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
12079 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
12080 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
12081 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
12082 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
12083 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
12084 * config/sparc/sysv4.h: Likewise.
12086 * config/nextstep.h: Error until named sections implemented.
12088 * config/a29k/a29k.c (a29k_asm_named_section): New.
12089 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
12090 (vms_section_type_flags, vms_asm_named_section): New.
12091 * config/arm/arm.c (arm_elf_asm_named_section): New.
12092 * config/avr/avr.c (asm_output_section_name): Remove.
12093 * config/avr/avr-protos.h: Update.
12094 * config/c4x/c4x.c (c4x_asm_named_section): New.
12095 * config/h8300/h8300.c (h8300_asm_named_section): New.
12096 * config/i386/i386.c (sco_asm_named_section): New.
12097 * config/i386/winnt.c (SECTION_PE_SHARED): New.
12098 (i386_pe_section_type_flags): New.
12099 (i386_pe_asm_named_section): New.
12100 * config/i386/i386-protos.h: Update.
12101 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
12102 * config/mcore/mcore.c (mcore_asm_named_section): New.
12103 * config/mips/mips.c (iris6_asm_named_section): New.
12104 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
12105 instead of UNIQUE_SECTION_P.
12106 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
12107 (xcoff_asm_named_section): New.
12108 * config/sh/sh.c (sh_asm_named_section): New.
12109 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
12111 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
12112 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
12113 (EH_FRAME_SECTION_NAME): New.
12114 (EXCEPTION_SECTION): New.
12115 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
12116 (DEBUG_*_SECTION): Remove.
12117 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
12118 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
12119 (EH_FRAME_SECTION_ASM_OP): Remove.
12121 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
12122 (ASM_OUTPUT_SECTION_NAME): Remove.
12123 (TARGET_ASM_NAMED_SECTION): New.
12124 (TARGET_HAVE_NAMED_SECTIONS): New.
12125 (TARGET_SECTION_TYPE_FLAGS): New.
12126 (EH_FRAME_SECTION_ASM_OP): Remove.
12127 (EH_FRAME_SECTION_NAME): New.
12129 2001-08-03 Zack Weinberg <zackw@stanford.edu>
12131 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
12132 for complex expressions when cfun == 0.
12133 * doc/extend.texi: Document that __builtin_constant_p can be
12134 used in data initializers as well as functions.
12136 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
12138 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
12139 variable I locally, instead of expecting a declaration in the
12142 2001-08-03 Richard Henderson <rth@redhat.com>
12144 * except.c (collect_one_action_chain): Add an explicit cleanup
12145 action if regions surrounding a catch were encoded entirely
12146 within the call-site entry.
12148 2001-08-03 Richard Henderson <rth@redhat.com>
12150 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
12151 don't take REGNO of a non-register.
12153 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12155 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
12156 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
12157 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
12158 (__gthread_mutex_init_function): New function for mutex initialization.
12160 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
12162 * Makefile.in: Revert screwed up commit.
12164 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12166 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
12167 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
12168 merged by linker script to get a final _exit().
12169 (__do_global_dtors): New for destructor handling in specific exit
12171 (__do_global_ctors): New for constructors in specific install section.
12172 (__map_data_section): Map data sections before running constructors.
12173 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
12174 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
12175 (DTORS_SECTION_ASM_OP): Likewise.
12176 (CTORS_SECTION_FUNCTION): Define to force a reference to
12178 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
12180 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
12182 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
12184 * Makefile.in: Add df.h to gcse.c dependencies.
12186 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12188 * varasm.c (output_constant_def_contents): Use for the length of a
12189 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
12190 depending on which is larger.
12192 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
12194 * gcse.c: Include df.h for use as a dataflow analyzer.
12196 Declaration of reg_set_info: gone.
12197 New df_analyzer variable used by store motion.
12198 (reg_set_info): Deleted.
12199 (mark_mem_regs): New function, analyze regs used by a mem.
12200 (store_ops_ok): Use dataflow analyzer results to determine if
12201 necessary regs are changed in the block.
12202 (find_moveable_store): Remove check for symbol ref, we can handle
12203 much more complex expressions now.
12204 (compute_store_table): Remove most of the code, it's unnecessary
12205 now that the dataflow analyzer records the info for us.
12206 (store_killed_after): Add parameter to say whether to do the
12207 store_ops_okay test, used to speed up testing when we already know
12208 the answer, and just want to know if the store itself was killed.
12209 (build_store_vector): Largely rewritten to calculate the various
12210 vectors properly, and somewhat optimized.
12211 (store_motion): Init the df_analyzer, get REG_DEF chains.
12212 Also handle trapping expressions (since mems almost always trap)
12213 (simple_mem): Redefine what a simple mem is.
12215 2001-08-03 DJ Delorie <dj@redhat.com>
12217 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
12218 set from a constant part of the condition.
12220 2001-08-01 Andrew Cagney <ac131313@redhat.com>
12222 * mkdeps.c (deps_add_default_target): Make local variable
12223 ``start'' a const char pointer.
12224 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
12226 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12228 * doc/install.texi (Configuration): Fix markup.
12229 (Specific, i?86-*-udk): Likewise.
12230 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
12232 Document --enable-threads and --enable-libgcj status.
12233 (Specific, mips-sgi-irix*): Canonicalize triples.
12234 (Specific, mips-sgi-irix5): Warn about problems with this config.
12235 Mention required GNU as patch.
12236 Native assembler problems are fixed.
12237 (Specific, mips-sgi-irix6): Update O32 ABI support status.
12238 Document --enable-threads and --enable-libgcj status.
12240 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
12242 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
12245 2001-08-03 Richard Henderson <rth@redhat.com>
12247 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
12250 2001-08-03 Richard Henderson <rth@redhat.com>
12252 * rtlanal.c (find_first_parameter_load): Stop if we
12253 reach a CODE_LABEL at BOUNDARY.
12255 2001-08-03 Richard Henderson <rth@redhat.com>
12257 * config/alpha/alpha.md (force_movdi): New insn.
12258 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
12259 Tweek FRP marking of VMS prologue insns.
12260 * config/alpha/vms.h (EPILOGUE_USES): New.
12262 2001-08-02 Richard Henderson <rth@redhat.com>
12264 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
12266 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
12268 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
12269 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
12270 config/convex/convex.h, config/d30v/d30v.c,
12271 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12272 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
12273 config/mips/mips.h, config/mn10200/mn10200.h,
12274 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
12275 config/v850/v850.h, config/vax/openbsd.h,
12276 config/vax/openbsd1.h, config/vax/ultrix.h,
12277 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
12278 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
12279 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
12280 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
12281 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
12282 in comments and documentation.
12284 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12288 * Makefile.in (line-map.o): New.
12289 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
12290 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
12291 * cpperror.c (print_containing_files): Similarly.
12292 (print_location): Update. Don't output a space before _Pragma.
12293 * cppfiles.c (stack_include_file): Set to line 1 immediately.
12294 (stack_include_filee, cpp_make_system_header): Update.
12295 (_cpp_execute_include): Get logical line number right for calling
12296 as-yet-unterminated #include.
12297 * cpphash.h (struct cpp_reader): Add line_maps.
12298 (_cpp_do_file_change): Update.
12299 * cppinit.c (cpp_create_reader): Initialize line maps.
12300 (cpp_destroy): Destroy line maps.
12301 (cpp_start_read): Get logical line number right.
12302 * cpplex.c (parse_string): Only warn once for multi-line strings.
12303 Use boolean variable for null warning.
12304 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
12306 (do_include_common): End the directive early.
12307 (do_line): Don't warn about out-of-range lines in preprocessed
12308 source. Update. Remove unused variables.
12309 (_cpp_do_file_change): Update for new line mapping.
12310 (pragma_cb): New typedef.
12311 (cpp_register_pragma): Stop looking ahead before calling the
12313 (do_pragma_system_header): End directive early.
12314 (cpp_get_line_maps): New.
12315 (cpp_pop_buffer): Fudge logical line. Update.
12316 * cpplib.h: Include line-map.h
12317 (enum cpp_fc_reason): Remove.
12318 (struct cpp_file_change): Update.
12319 (cpp_get_line_maps): New.
12320 * cppmain.c (struct_printer): New member map.
12321 (cb_file_change): Update for new mappings.
12322 * fix-header.c (cb_file_change): Similarly.
12324 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
12326 * Makefile.in (libgcc.mk): Define mkinstalldirs.
12327 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
12329 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
12331 * config/vax/vax.c: include expr.h.
12333 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
12335 * Makefile.in ($(srcdir)/configure): Only rebuild in
12337 ($(srcdir)/config.in): Only define in maintainer mode.
12338 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
12340 2001-08-02 David Edelsohn <edelsohn@gnu.org>
12342 * doc/install.texi (Install GCC: Binaries): Update Bull info.
12344 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12346 * gcc.c (set_collect_gcc_options): New function, split out from
12348 Ignore elided switches.
12349 (do_spec_1): Invoke before executing command.
12350 (set_input): Export.
12351 Move declaration ...
12352 * gcc.h (set_input): ... here.
12353 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
12356 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
12359 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
12361 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
12363 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
12365 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
12366 for the unnamed instructions it expands to.
12368 2001-08-02 Richard Henderson <rth@redhat.com>
12370 * regclass.c (call_really_used_regs): Conditionally define.
12371 (init_reg_sets_1): Don't use it if not defined.
12372 (fix_register): Similarly, don't set it.
12374 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12376 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
12377 Correct comment that had been missed in the previous change.
12379 2001-08-01 Stan Shebs <shebs@apple.com>
12381 * config/darwin.c (machopic_stub_name): Try matching by name.
12382 (update_stubs): New function.
12383 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
12386 2001-08-01 Richard Henderson <rth@redhat.com>
12388 * except.c (output_function_exception_table): Use assemble_align.
12389 * varasm.c (assemble_eh_label): Remove.
12390 (assemble_eh_align, assemble_eh_integer): Remove.
12392 2001-08-01 Robert Lipe <robertl@caldera.com>
12394 * dwarfout.c: Remove reference to README.DWARF.
12396 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
12398 * regclass.c (call_really_used_regs): New array for registers which
12399 are actually used by a call.
12400 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
12402 (fix_register): Set call_really_used too.
12403 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
12404 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
12406 2001-08-01 Richard Henderson <rth@redhat.com>
12408 * read-rtl.c (read_name): Consider \r whitespace.
12410 2001-07-11 Andrew Cagney <ac131313@redhat.com>
12412 * config.gcc: Recognize powerpc-*-netbsd*.
12414 * doc/install.texi (Host/target specific installation notes for
12415 GCC): Mention powerpc-*-netbsd*.
12417 * config/rs6000/netbsd.h: New file.
12418 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
12419 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
12420 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
12421 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
12422 (TARGET_VERSION): Redefine.
12424 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
12425 mcall-netbsd as a match for mcall-sysv.
12426 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
12427 (ncrti.S, ncrtn.S): New targets.
12428 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
12430 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
12431 "netbsd' as a V4 ABI.
12432 (ASM_SPEC): Check for -mcall-netbsd.
12433 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
12434 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
12435 (LIB_SPEC, ENDFILE_SPEC): Ditto.
12436 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
12437 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
12438 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
12439 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
12441 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
12442 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
12444 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12446 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
12447 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
12448 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
12449 including "unwind-pe.h".
12451 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
12453 * rs6000.md (define_splits): Kill unused constraints.
12455 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
12456 Jan Hubicka <jh@suse.cz>
12458 * function.c (thread_prologue_and_epilogue_insns): Kill code
12459 dealing with non-existent CFG.
12461 2001-08-01 Kazu Hirata <kazu@hxi.com>
12463 * alias.c: Fix comment formatting.
12464 * bitmap.c: Likewise.
12465 * builtins.c: Likewise.
12466 * calls.c: Likewise.
12467 * c-common.c: Likewise.
12468 * c-decl.c: Likewise.
12469 * c-dump.c: Likewise.
12470 * c-lex.c: Likewise.
12471 * collect2.c: Likewise.
12472 * combine.c: Likewise.
12473 * conflict.c: Likewise.
12474 * cppfiles.c: Likewise.
12475 * cppinit.c: Likewise.
12476 * cpplex.c: Likewise.
12477 * cpplib.c: Likewise.
12478 * cppmacro.c: Likewise.
12479 * cppspec.c: Likewise.
12480 * c-pragma.c: Likewise.
12481 * crtstuff.c: Likewise.
12483 * cselib.c: Likewise.
12484 * c-semantics.c: Likewise.
12485 * c-typeck.c: Likewise.
12487 2001-08-01 H.J. Lu <hjl@gnu.org>
12489 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
12491 2001-08-01 H.J. Lu <hjl@gnu.org>
12493 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
12495 2001-08-01 Ziemowit Laski <zlaski@apple.com>
12497 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
12498 contextualizing Objective-C class name lookup by the lexer.
12499 (typespec_reserved_nonattr): Disable ObjC class name lookup after
12501 (protocoldef): Add support for forward @protocol declarations.
12502 (yylexname): Suppress ObjC class name lookup in certain contexts;
12503 re-enable after lookup is complete.
12504 (_yylex): Re-enable ObjC class name lookup when certain
12505 punctuation marks are seen.
12507 * objc/objc-act.c (check_protocol_recursively): New function used
12508 for finding circular dependencies in protocols.
12509 (objc_declare_protocols): New function for handling forward
12510 @protocol declarations.
12511 (receiver_is_class_object): Detect the case when 'self' is used
12512 inside of a class method.
12513 (build_message_expr): Issue a warning if class method is desired
12514 but instance method is found instead.
12515 (conforms_to_protocol): Streamline.
12516 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
12517 protocol Foo, even if 'Bar foo' does not.
12518 (check_protocols): Streamline.
12519 (start_protocol): Add checks for circular and duplicate protocol
12521 (encode_aggregate_within): For typedefs of structs, encode the
12523 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
12524 (objc_declare_protocols): New prototype.
12526 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12528 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
12529 * cpplex.c (handle_newline): Update prototype. Maintain logical
12531 (skip_escaped_newlines, skip_block_comment, parse_string):
12532 Update accordingly.
12533 (_cpp_lex_token): Update, and store token position within the token.
12534 * cpplib.h (struct cpp_token): Add line and column entries.
12535 * cppmacro.c (replace_args): Position stringified tokens correctly.
12537 2001-08-01 Andreas Jaeger <aj@suse.de>
12539 * basic-block.h: Add prototype for last_loop_beg_note.
12541 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
12543 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
12544 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
12546 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
12547 while handling WITH_CLEANUP_EXPR node. Use second operand calling
12548 expand_decl_cleanup.
12549 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
12551 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
12552 operand while calling simple_cst_equal.
12553 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
12554 operand is the cleanup expression, the third is the RTL_EXPR.
12555 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
12557 2001-07-31 Jeff Sturm <jsturm@one-point.com>
12559 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
12561 2001-07-31 matthew green <mrg@eterna.com.au>
12563 * config.gcc (i386-*-netbsdelf): New description.
12564 * config/i386/netbsd-elf.h: New file.
12566 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
12568 * loop.c (check_dbra_loop): Use single_set to compute
12571 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
12573 PowerPC reorg and support for powerpc64-*-linux*.
12575 Also fixes emitting of constants on 32 bit and 64 bit
12578 * config.gcc: powerpc64-*-linux* is a new target.
12579 Things that needed aix.h now also include xcoff.h
12581 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
12583 Move AIX specific stuff into aix.h.
12584 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
12585 with more than just XCOFF now.
12586 (SET_ASM_OP): Remove, now defined where needed.
12587 (FUNCTION_PROLOGUE): New macro definition.
12588 (FUNCTION_EPILOGUE): New macro definition.
12589 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
12591 * config/rs6000/xcoff.h: New file.
12593 * config/rs6000/linux64.h: New file.
12595 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
12597 2001-07-31 Alan Modra <amodra@bigpond.net.au>
12599 * rs6000.c (print_operand_address): Handle ELF syntax.
12600 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
12601 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
12602 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
12604 2001-07-31 David Edelsohn <edelsohn@gnu.org>
12606 * rs6000.c (rs6000_override_options): Only disable
12607 flag_function_sections for XCOFF.
12608 (exact_log2_cint_operand): New predicate.
12609 (reg_or_{add,sub}_cint64_operand): New predicates.
12610 (add_operand): Compare CONST_INT with fewer function calls.
12611 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
12612 (print_operand, case 'p'): Ensure positive operand.
12613 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
12614 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
12615 (PREDICATE_CODES): Add new predicates.
12616 * rs6000.md (addsi3): Split 32-bit constants more correctly.
12617 (divsi3, modsi3): Ensure positive power-of-2.
12618 (adddi3): Use new predicate. Split 32-bit constants more
12619 correctly. Re-arrange splitter to handle any constant.
12620 (subdi3): Use new predicate.
12621 (divdi3, moddi3): Ensure positive power-of-2.
12622 (movdi): Use rs6000_emit_set_const.
12623 (load_toc_v4_pic_di): Delete.
12625 2001-07-31 Graham Stott <grahams@redhat.com>
12627 * function.c (pad_below): Revert 2001-07-26 patch.
12629 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
12631 * reg-stack (convert_regs_1): Fix best edge condition.
12633 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
12635 * jump.c (duplicate_loop_exit_test): Better test for jumps
12636 entering the loop; create loop pre_header.
12638 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
12640 * doc/install.texi: Add s390 and s390x as new targets.
12641 * doc/invoke.texi: Add documentation of S/390 and zSeries
12643 * doc/md.texi: Add documentation of S/390 and zSeries constraints.
12645 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
12647 * config/m68k/m68k.md: Replace all general_operand with
12648 nonimmediate_operand for all destinations.
12649 * config/m68k/m68k.c (not_sp_operand): Likewise.
12651 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
12653 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
12655 2001-07-30 Richard Henderson <rth@redhat.com>
12657 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
12658 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
12660 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
12662 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
12663 Add missing doc strings
12664 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
12665 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
12667 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
12669 * i386.c (ix86_output_main_function_alignment_hack): New function.
12670 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
12672 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
12673 edges by EDGE_DFS_BACK flag.
12674 (dump_edge_info): Add dfs_back flag.
12675 * basic-block.h (EDGE_DFS_BACK): New constant.
12676 (mark_dfs_back_edges): Declare.
12677 * alias.c (loop_p): Remove.
12678 (mark_constant_function): Use mark_dfs_back_edges.
12680 * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
12681 (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
12682 (compensate_edge): Break out from ...
12683 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
12684 (convert_regs_2): Set block_done once block is really done;
12685 Do updating of the predecessors counts.
12687 * toplev.c (rest_of_compilation): Recompute block_for_insn
12688 before post-reload cfg_cleanup.
12689 * function.c (thread_prologue_epilogue_insns):
12690 Call set_block_for_new_insns when emitting prologue directly.
12692 2001-07-30 Andreas Jaeger <aj@suse.de>
12694 * jump.c: Add prototype for mark_modified_reg.
12696 * cse.c (set_live_p): Add unused attribute.
12698 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
12700 (scan_for_source_files): Use long for count to avoid overflow.
12701 (output_data): Likewise.
12702 (output_data): Don't use string concatatenation to silence gcc
12705 * predict.c: Fix typos and grammar.
12707 * gcse.c (insert_insn_end_bb): Remove unused variables.
12709 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
12711 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
12712 (attempt_auto_inc): LIkewise.
12713 (mark_used_reg): Likewise.
12714 (try_pre_increment_1): Likewise.
12715 * regclass.c (regclass): Likewise.
12716 * global.c (allocno_compare): Update comment; change scaling factor.
12717 * local-alloc.c (QTY_CMP_PRI): Likewise.
12718 * regs.h (REG_FREQ_FROM_BB): New.
12719 (REG_FREQ_MAX): Likewise.
12721 2001-07-30 H.J. Lu <hjl@gnu.org>
12723 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
12726 2001-07-30 H.J. Lu (hjl@gnu.org)
12728 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
12729 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
12730 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
12732 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
12734 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
12735 as -mthumb-interwork when -mcpu=arm7 is specified.
12737 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
12739 * predict.def (noreturn, loop branch, loop exit): Mark as first
12742 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
12744 * combine.c (try_combine): Avoid barrier after noop jumps.
12746 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12748 * cpphash.h (struct cpp_reader): Remove import_warning.
12749 * cpplib.c (skip_rest_of_line): Don't bother turning off
12751 (parse_include): Move include handling to...
12752 (do_include_common): ... here. Move import warning from...
12753 (do_import): ... here.
12754 (do_pragma_poison): Don't do a callback for poison identifiers.
12755 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
12756 * cppmain.c (setup_callbacks): Similarly.
12758 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
12760 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
12761 handle multiple sets.
12762 * except.c (sjlj_mark_call_sites): .... here.
12763 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
12765 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
12767 Suggested by Richard Henderson and Richard Kenner:
12768 * combine.c (recog_for_combine): Use the fake recog
12769 only if instruction does not match.
12770 * rtl.h (NOOP_MOVE_INSN_CODE): New.
12771 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
12773 * combine.c (try_combine): Discover noop jump as direct jump.
12775 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
12777 * df.c (df_rd_global_compute): Add successors to worklist, not
12779 (df_ru_global_compute): Ditto.
12781 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
12783 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
12784 increment REG_N_SETS.
12786 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
12788 * sbitmap.h: New prototype for sbitmap_a_xor_b.
12790 * sbitmap.c (sbitmap_a_xor_b): New function.
12791 ifdef the basic block stuff on IN_GCC.
12793 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12795 * cppexp.c (parse_defined): Always record the macro name.
12796 (lex): Don't worry about identifiers, or special-case
12798 (_cpp_parse_expr): Figure out at the end of the routine
12799 whether we saw a valid !defined() expression.
12800 * cppfiles.c (stack_include_file): Update for mi_valid.
12801 (_cpp_pop_file_buffer): Similarly.
12802 * cpplex.c (_cpp_lex_token): Similarly.
12803 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
12804 mi_if_not_defined, mi_lexed): Remove.
12806 * cpplib.c (do_if): Simplify.
12807 (do_endif, push_conditional, _cpp_handle_directive): Update
12808 for renaming of mi_state to mi_valid.
12810 * cpp.texi: Add index entries for digraphs, and add comment
12811 that C++ refers to them as alternative tokens.
12813 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
12815 * basic-block.h (CLEANUP_PRE_LOOP): New.
12816 * except.c (finish_eh_generation): Update call of cleanup_cfg.
12817 * sibcall.c (optimize_sibling_calls): Likewise.
12818 * toplev.c (rest_of_compilation): Likewise.
12819 * flow.c (try_forward_edges): Take argument MODE;
12820 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
12821 (try_optimize_cfg): Update call of try_forward_edges.
12823 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
12824 Jan Hubicka <jh@suse.cz>
12826 * (validate_replace_rtx_1): Fix simplification of MINUS.
12828 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
12830 PR preprocessor/3669
12831 * cppinit.c (init_dependency_output): Turn off dump requests
12832 if sending dependencies to stdout.
12834 2001-07-28 Richard Henderson <rth@redhat.com>
12836 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
12839 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
12841 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
12843 2001-07-28 Kazu Hirata <kazu@hxi.com>
12845 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
12846 is VAR_DECL first to prevent an ICE.
12848 2001-07-28 Richard Henderson <rth@redhat.com>
12850 * varasm.c (immed_real_const_1): Don't elide special cases for
12852 (clear_const_double_mem): Clear const_tiny_rtx too.
12854 2001-07-28 Richard Henderson <rth@redhat.com>
12856 * dwarf2out.c (dw_val_class_offset): New.
12857 (struct dw_ranges_struct, dw_ranges_ref): New.
12858 (ranges_table, ranges_table_allocated): New.
12859 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
12860 (add_AT_offset, add_ranges, output_ranges): New.
12861 (print_die, output_die): Handle dw_val_class_offset.
12862 (attr_checksum, size_of_die, value_format): Likewise.
12863 (gen_lexical_block_die): Handle non-contiguous blocks.
12864 (gen_block_die): Likewise.
12865 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
12866 if needed. Dump the ranges table.
12867 * final.c (final_start_function): Remove unnecessary notes and
12868 rebuild the block tree before numbering the blocks.
12869 * function.c (reorder_blocks_0): Walk the existing block tree
12870 to unmark all blocks.
12871 (reorder_blocks_1): Create block fragments when duplicate block
12873 (reorder_fix_fragments): New.
12874 (reorder_blocks): Call it.
12875 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
12877 2001-07-28 Richard Henderson <rth@redhat.com>
12879 * emit-rtl.c (adjust_address): Make a copy of the memory address.
12881 2001-07-28 Richard Henderson <rth@redhat.com>
12883 * flow.c (add_to_mem_set_list): New function.
12884 (init_propagate_block_info): Use it.
12885 (mark_set_1): Likewise.
12886 (insn_dead_p): Canonicalize memory address for dead store
12887 comparison. Allow wider mode stores to kill narrower mode stores.
12888 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
12889 (invalidate_mems_from_set): Don't handle MEMs.
12891 2001-07-28 Kazu Hirata <kazu@hxi.com>
12893 * config/h8300/h8300.h: Fix formatting.
12895 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
12897 * basic-block.h (EDGE_FREQUENCY): New macro.
12898 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
12900 * flow.c (find_sub_basic_blocks): Likewise.
12901 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
12902 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
12904 * predict.c (DEF_PREDICTOR): New argument FLAGS.
12905 (HITRATE): New macro.
12906 (PRED_FLAG_FIRST_MATCH): New constant.
12907 (predictor_info): New field flgags.
12908 (combine_predictions_for_insn): Use DS theory to combine
12909 probabilities; set the edge probabilities when finished.
12910 (estimate_probability): Avoid duplicated matches
12911 of LOOP_BRANCH heuristics for nested loops; update comment.
12912 * predict.def: Add flags for each prediction, set probabilities
12913 according to B&L paper.
12914 * predict.h (DEF_PREDICTOR): New argument FLAGS.
12916 * profile.c (compute_branch_probabilities): Cleanup way the edge
12917 probabilities are computed and REG_BR_PROB notes are dropped; if
12918 values does not match, emit error.
12919 (init_branch_prob): Do error instead of warning when profile driven
12920 feedback is missing or corrupt.
12922 2001-07-27 DJ Delorie <dj@redhat.com>
12924 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
12925 against a constant, try to adjust the compare to have the desired
12926 constant in it so that min/max optimizations happen more often.
12928 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
12930 * flow.c (last_loop_beg_note): New function.
12931 (redirect_edge_and_branch): Use it.
12932 (split_edge): Likewise.
12934 * alias.c (loop_p): Avoid uninitialized memory access.
12936 * flow.c (try_forward_edges): Avoid accessing freed memory.
12938 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
12941 2001-07-26 Andrew Haley <aph@redhat.com>
12942 Joern Rennecke <amylaar@redhat.com>
12944 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
12945 (SUBTARGET_CPP_ENDIAN_SPEC): New.
12946 (SUBTARGET_CPP_SPEC): New.
12947 (CPP_SPEC): Remove.
12948 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
12949 (SUBTARGET_CPP_PTR_SPEC): New.
12950 (CPP_DEFAULT_CPU_SPEC): New.
12951 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
12952 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12953 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
12954 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12955 (SUBTARGET_CPP_SPEC): Define as an empty string.
12957 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12959 * doc/install.texi (Configuration): Properly link the host
12960 specific instructions also when generating HTML.
12962 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
12964 * flow.c (redirect_edge_and_branch_force): Test
12965 target->global_live_at_start.
12967 2001-07-26 Richard Henderson <rth@redhat.com>
12969 * simplify-rtx.c (avoid_constant_pool_reference): Export.
12970 * rtl.h (avoid_constant_pool_reference): Declare it.
12971 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
12972 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
12974 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
12976 * rtl.h (cleanup_barriers): Declare.
12977 * jump.c (cleanup_barriers): New function.
12978 * toplev.c (rest_of_compilation): Call cleanup_barriers
12979 before loop optimizer and after bb_reorder.
12981 * flow.c (back_edge_of_syntactic_loop_p): New.
12982 (split_edge): Use it.
12984 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12986 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
12988 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
12990 * cse.c (cse_process_notes): Replace any registers if the address
12993 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
12995 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
12996 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
12997 (propagate_block): Update prototype.
12998 * flow.c (update_life_info): Simplify the CFG and
12999 recalculate the global regs which are alive when
13000 removing dead code during a global update.
13001 (propagate_block): Return non-zero if an INSN is
13004 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13006 * Makefile.in (LIBICONV): Define.
13008 2001-07-26 Catherine Moore <clm@redhat.com>
13010 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
13011 of conditional to avoid tree checking errors.
13013 2001-07-26 Kazu Hirata <kazu@hxi.com>
13015 * regmove.c (regmove_optimize): Don't replace a reg with
13016 another reg of a different mode.
13018 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
13020 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
13021 limit length of dependency flush list.
13022 * params.h (MAX_PENDING_LIST_LENGTH): Define.
13023 * sched-int.h (struct deps): Add pending_flush_length field.
13024 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
13025 has 1 element in it.
13026 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
13027 (sched_analyze): After a jump, if the pending memory flush list is too
13028 large, flush the pending lists.
13029 (init_deps): Initialize pending_flush_length to 0.
13030 * doc/invoke.texi (max_pending_list_length): Document parameter.
13032 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
13034 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
13035 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
13036 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
13038 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13040 * cpphash.h (struct_lexer_state): Delete was_skipping.
13041 Move skipping here from struct cpp_reader.
13042 * cpplex.c (parse_identifier): Update.
13043 (_cpp_lex_token): Don't skip tokens in a directive.
13044 * cpplib.c (struct if_stack): Update.
13045 (start_directive, end_directive): Don't change skipping state.
13046 (_cpp_handle_directive): Update.
13047 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
13048 (do_else, do_endif): Update; only check for excess tokens if not
13049 in a skipped conditional block.
13050 (push_conditional): Update for new struct if_stack.
13052 2001-07-26 Graham Stott <grahams@redhat.com>
13054 * function.c (locate_and_pad_parm): Also pad initial offset
13055 so that the total argument size also includes the padding.
13057 2001-07-26 Graham Stott <grahams@redhat.com>
13059 * gensupport.c (alter_output_for_insn): Correct enable checking failure
13060 change XSTR to XTMPL.
13062 (process_one_cond_exec): Likewise
13064 2001-07-25 Richard Henderson <rth@redhat.com>
13066 * varasm.c (assemble_variable): Create DECL_RTL before setting
13069 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
13071 * predict.c (estimate_probability): Avoid duplicated predictions.
13073 * loop.c (find_and_verify_loops): Grok multiple barriers.
13075 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13077 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
13079 * dbxout.c: Consistently use putc instead of fputc.
13080 (print_wide_int): New function; call instead of direct fprintf.
13081 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
13082 (dbxout_type_fields, dbxout_type_method_1): Likewise.
13083 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
13084 (print_int_cst_octal): Likewise.
13085 (print_octal): Show we wrote characters.
13086 (dbxout_type): Set have_used_extensions in more places.
13088 2001-07-25 Catherine Moore <clm@redhat.com>
13090 * config/v850/v850.c (v850_va_arg): Use addr
13091 instead of valist to build incr.
13093 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
13095 * flow.c (delete_dead_jumptables): New function.
13096 (life_analyzis): Call it.
13097 * bb-reorder.c (skip_insns_after_block): Handle contradictory
13100 2001-07-25 Richard Henderson <rth@redhat.com>
13102 * except.c (reachable_handlers): Handle a region being removed
13103 out from under a RESX.
13105 2001-07-25 Richard Henderson <rth@redhat.com>
13107 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
13108 swap GE/GT if it is an fp comparison.
13110 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
13112 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
13115 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
13117 * ssa.c (rename_insn_1): Do not wrap an assignment to a
13118 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
13121 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
13122 throw an exception.
13123 (visit_expression): When attempting to simplify an expression,
13124 retrieve any modes for arguments before they are simplified
13127 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
13128 Janis Johnson <janis@us.ibm.com>
13130 * stmt.c (expand_goto): A nonlocal goto can be a call too.
13131 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
13132 pointer parameters to match documented usage of nonlocal_goto.
13133 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
13134 parameters to their correct order.
13135 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
13136 parameters to their correct order.
13138 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
13140 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
13142 2001-07-25 Jan Hubicka <jh@suse.cz>
13143 Richard Henderson <rth@redhat.com>
13145 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
13147 (make_edges): New argument update_p; populate the edge cache if set.
13148 (find_basic_blocks): Update make_edges invocation.
13150 2001-07-24 Joel Sherrill <joel@OARcorp.com>
13152 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
13154 2001-07-24 Joel Sherrill <joel@OARcorp.com>
13156 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
13157 -Acpu and -Amachine.h.
13158 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
13159 Corrected header to say ELF not a.out.
13160 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
13161 when given -msoft-float.
13163 2001-07-24 Joel Sherrill <joel@OARcorp.com>
13165 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
13166 extra multilib parts like arm-elf.
13167 (i960-*-coff*, i960-*-rtems): Should not use collect2.
13168 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
13169 crtfini.o as extra multilib parts.
13171 2001-07-24 Joel Sherrill <joel@OARcorp.com>
13173 * configure.in: Add rtems as a supported thread model.
13174 * gthr-rtems.h: Add missing entry point __gthread_active_p.
13175 * configure: Rebuilt.
13177 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
13179 * stor-layout.c (get_mode_alignment): make it work when
13180 BITS_PER_UNIT is not a power of two.
13181 * builtins.c (get_pointer_alignment): Likewise.
13183 2001-07-24 Richard Henderson <rth@redhat.com>
13185 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
13186 the retrieved constant into the expected mode.
13188 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
13190 * flow.c (try_simplify_condjump): Avoid duplicated edges.
13191 (verify_flow_info): Check for duplicated edges; clarify
13194 * flow.c (block_label): Update basic_block_for_insn.
13195 (commit_edge_insertions): Call compute_bb_for_insn.
13197 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
13200 * flow.c (redirect_edge_and_branch,
13201 try_optimize_cfg): Use redirect_edge_succ_nodup
13202 (redirect_edge_succ_nodup): New.
13203 * basic_block.h (redirect_edge_succ_nodup): Declare.
13205 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
13208 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
13210 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
13211 (try_crossjump_to_edge): Update commetns.
13212 (try_crossjump_bb): Likewise.
13214 2001-07-24 Richard Henderson <rth@redhat.com>
13216 * combine.c (distribute_notes): Move set of need_refresh
13217 for noop_move_p down to catch all cases.
13219 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
13221 * recog.c (split_all_insns_noflow): New.
13222 * rtl.h (split_all_insns_noflow): Declare.
13223 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
13224 * m68hc11.c (m68hc11_reorg): Likewise.
13225 * sh.c (machine_dependent_reorg): Likewise.
13226 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
13229 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
13231 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
13232 (ashlsi3_n splitter): Likewise.
13233 (lshrsi3_n splitter): Likewise.
13235 (GOTaddr2picreg): Make const SImode.
13236 (sym_label2reg): Likewise.
13237 (symGOT2reg): Likewise.
13238 (symGOTOFF2reg) Likewise.
13240 (casesi_worker_0): Make unspec SImode.
13242 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
13244 * config/sh/sh.c (barrier_align): Check that an operand really is
13245 an insn before extracting its INSN_CODE.
13247 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
13249 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
13252 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
13253 for SImode to prevent overflow.
13255 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13257 * config/mips/irix6-libc-compat.c: New file.
13258 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
13259 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
13260 passing workaround.
13262 2001-07-24 lars brinkhoff <lars@nocrew.org>
13264 * rtl.texi (REG_POINTER): Document.
13265 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
13266 QFmode, HFmode, TQFmode, QCmode, and HCmode.
13268 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
13270 * flow.c (delete_noop_moves): Do not confuse libcall regions.
13272 2001-07-23 Richard Henderson <rth@redhat.com>
13274 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
13276 2001-07-23 Kazu Hirata <kazu@hxi.com>
13278 * config/h8300/h8300-protos.h: Add a prototype for
13279 general_operand_dst_push.
13280 * config/h8300/h8300.c (general_operand_dst_push): New.
13281 * config/h8300/h8300.h (OK_FOR_T): New.
13282 (EXTRA_CONSTRAINT): Use it.
13283 * config/h8300/h8300.md (movqi_push): Remove and integrate into
13284 the existing movqi pattern.
13285 (movhi_push): Likewise.
13287 * reload.c: Fix comment typos.
13289 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
13291 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
13293 2001-07-23 H.J. Lu (hjl@gnu.org)
13295 * doc/extend.texi: Update __builtin_return_address and
13296 __builtin_frame_address.
13298 2001-07-23 Richard Henderson <rth@redhat.com>
13300 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
13302 * config/i386/i386.md: New setcc+movzbl peephole2.
13304 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13306 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
13307 * objc/objc-act.c: Include debug.h.
13308 (synth_module_prologue): Save and restore debug hooks too.
13310 2001-07-23 lars brinkhoff <lars@nocrew.org>
13312 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
13313 and C4X_FLOAT_FORMAT.
13314 (BOOL_TYPE_SIZE): Document.
13316 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
13318 * unroll.c (loop_iterations): Fix miscalculation of initial
13321 2001-07-13 Andrew Haley <aph@redhat.com>
13323 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
13324 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
13325 * config/sh/sh.c (sh_can_redirect_branch): New function.
13326 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
13327 * reorg.c (steal_delay_list_from_target): Use
13328 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
13330 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
13332 * flow.c (try_simplify_condjump): Unlink insn chain on
13333 fallthru edge; use can_fallthru.
13335 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
13337 * basic-block.h (find_sub_basic_block): Declare.
13338 * flow.c (make_edges): New arguments MIN and MAX;
13339 (find_sub_basic_blocks): Revamp to use make_edges
13340 and purge_dead_edges.
13341 (find_basic_blocks): Update call of find_sub_basic_block.
13343 * recog.c (split_all_insns): Always expect CFG to be consistent;
13344 call find_sub_basic_blocks in case something has changed.
13345 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
13348 * basic-block.h (delete_noop_moves): Declare.
13349 * combine.c (combine_instructions): Call it.
13350 (recog_for_combine): Tolerate noop moves
13351 (distribute_notes): Force refresh when register dies at noop move.
13352 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
13354 (life_analysis): Update delete_noop_moves call.
13355 (set_noop_p): Move too ...
13356 * rtlanal.c (noop_move_p): ... here.
13357 * rtl.h (noop_move_p): Declare.
13359 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
13360 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
13362 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
13363 (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
13365 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
13367 * reload.c (push_reload): Fix typo in comment.
13368 (find_reloads_address): Ditto.
13369 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
13371 2001-07-22 Richard Henderson <rth@redhat.com>
13373 * flow.c: Grammar check and clarify a lot of comments.
13374 (try_simplify_condjump): Rename variables to be clearer.
13375 (try_forward_edges): Skip complex and fallthru edges.
13376 Rearrange tests to avoid duplicate checks.
13377 (flow_find_cross_jump): Likewise.
13378 (outgoing_edges_match): Allow match if neither branch has
13379 probability data. Loosen probability match to 5%.
13380 (try_crossjump_to_edge): Hoist repeated indirection into
13382 (try_crossjump_bb): Don't check complex edges. Eliminate
13383 redundant crossjump tests.
13384 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
13385 checks before more expensive checks.
13387 2001-07-22 Richard Henderson <rth@redhat.com>
13389 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
13390 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
13393 2001-07-22 Richard Henderson <rth@redhat.com>
13395 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
13396 (const_sint32_operand): Likewise.
13397 * m68k.md (anon mulsi pattern): Use const_int_operand not
13398 const_sint32_operand.
13399 (umulsi3_highpart): Zero extend a constant input.
13400 (smulsi3_highpart): Don't bother checking SImode constant.
13401 (const_umulsi3_highpart): Give op3 DImode.
13402 (const_smulsi3_highpart): Likewise.
13404 2001-07-22 Richard Henderson <rth@redhat.com>
13406 * flow.c (split_block): Make sure bb_note is included in the
13407 new block when splitting before a label.
13409 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
13411 * basic-block.h (redirect_edge_and_branch_force,
13412 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
13413 * flow.c (redirect_edge_and_branch_force,
13414 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
13415 (redirect_edge_and_branch_force): Fix copying of lifeness information.
13416 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
13417 * ifcvt.c (dead_or_predictable): Take BB as an new destination
13418 instead of label; update CFG after transformation.
13419 (find_if_case_1): Update call, use redirect_edge_and_branch_force
13420 for finishing the transformation; handle even case where ELSE
13421 does not follow THEN.
13422 (find_if_case_2): Update call of dead_or_predictable; simplify
13425 * emit-rtl.c (split_branch_probability): New global variable.
13426 (try_split): Take care to set split_branch_probability and
13427 create REG_BR_PROB note for new jump insns.
13428 * md.texi (define_split): Document new feature.
13430 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
13432 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
13434 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
13435 (asm_out_file): Remove redundant declaration.
13436 (assemble_asm): Remove old #if 0 block.
13437 (assemble_variable): Remove end of function; debug output is
13438 now handled with global_decl. Remove old #if 0 block. Update.
13439 Remove saved_in_section and associated no-op code.
13440 * Makefile.in (varasm.o): Correct dependencies.
13442 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
13444 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13445 the definition in defaults.h.
13447 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
13449 * jump.c: Update comments.
13450 (delete_barrier_successors, delete_unreferenced_labels,
13451 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
13452 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
13453 jump_optimize, jump_optimize_minimal): Kill.
13454 (rebuild_jump_labels): Move code from jump_optimize_1.
13455 (purge_line_number_notes): Likewise.
13456 (copy_loop_headers): Likewise.
13457 * reg-stack.c: Update comment.
13458 * stmt.c: Likewise.
13459 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
13460 JUMP_AFTER_REGSCAN): Kill.
13461 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
13462 purge_line_number_notes and copy_loop_headers.
13464 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
13465 Richard Henderson <rth@redhat.com>
13467 * dbxout.c (dbxout_global_decl): New.
13468 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13469 * sdbout.c (sdbout_finish): New.
13470 (sdbout_debug_hooks): Use it, add comments.
13471 (sdbout_global_decl): Defer initialised public vars to
13473 * varasm.c (assemble_variable): Don't output debug information
13474 for file-scope variables.
13476 2001-07-22 Richard Henderson <rth@redhat.com>
13478 * config/alpha/alpha.c (get_trap_mode_suffix): New.
13479 (get_round_mode_suffix): New.
13480 (print_operand): Use them for [/]. Remove support for [&'`()+].
13481 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
13482 * config/alpha/alpha.md (attr round_suffix): New.
13483 (attr trap_suffix): New.
13484 (all insns): Set them appropriately. Use %/ instead of the
13485 myriad punctuators.
13487 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13489 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
13491 2001-07-22 Richard Henderson <rth@redhat.com>
13493 * regrename.c (regrename_optimize): Compute nregs for each
13494 potential target register.
13496 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
13497 Richard Henderson <rth@redhat.com>
13499 * dbxout.c (dbxout_global_decl): New.
13500 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13501 * sdbout.c (sdbout_finish): New.
13502 (sdbout_debug_hooks): Use it, add comments.
13503 (sdbout_global_decl): Defer initialised public vars to
13505 * varasm.c (assemble_variable): Don't output debug information
13506 for file-scope variables.
13508 2001-07-21 H.J. Lu (hjl@gnu.org)
13510 * config/mips/mips.c (mips_cpu): Moved into ...
13511 (override_options): Here.
13513 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
13515 (mips_cpu): Removed.
13517 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13519 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
13520 ("iorqi3"): Likewise.
13521 ("xorqi3"): Likewise.
13522 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
13523 ("*subhi3_sp): Likewise.
13524 ("*subhi3"): Likewise.
13525 ("extendhisi2"): Accept D, X and Y as source operand to avoid
13528 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
13530 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
13531 * config/freebsd.h: Likewise.
13532 * config/linux.h: Likewise.
13533 * config/openbsd.h: Likewise.
13534 * config/alpha/linux-elf.h: Likewise.
13535 * config/arm/linux-elf.h: Likewise.
13536 * config/d30v/d30v.h: Likewise.
13537 * config/fr30/fr30.h: Likewise.
13538 * config/ia64/aix.h: Likewise.
13539 * config/ia64/ia64.h: Likewise.
13540 * config/mips/linux.h: Likewise.
13541 * config/pj/pj.h: Likewise.
13542 * config/rs6000/linux.h: Likewise.
13543 * config/sparc/linux.h: Likewise.
13544 * config/sparc/linux64.h: Likewise.
13546 2001-07-20 Bruce Korb <bkorb@gnu.org>
13548 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
13549 because getc() and char* may disagree on signedness.
13551 2001-07-20 Richard Henderson <rth@redhat.com>
13553 * doc/rtl.texi (REG_DEAD): Update for current semantics.
13555 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
13556 insns to delete in the presence of cc0 in a jump insn.
13558 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
13559 Jan Hubicka <jh@suse.cz>
13561 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
13562 of doing the change by hand.
13564 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
13566 * rtlanal.c (set_noop_p): Return true for noop jumps.
13568 * expr.c (emit_single_push_insn): Add call to push expander.
13569 * expr.h (optab_index): Add OTI_push
13570 (push_optab): New constant.
13571 * genopinit.c (optabs): Add push_optab.
13572 * optabs.c (init_optab): Init push optab.
13573 * md.texi (push??1): Document
13575 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13577 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
13578 expand to emit the pattern; put a REG_INC note for push/pop
13580 ("movdf", "movdf_internal"): Likewise.
13581 ("movsi", "movsi_internal"): Likewise.
13582 ("movsf", "movsf_internal"): Likewise.
13583 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
13585 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13587 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
13590 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
13592 * params.def: Change default max inline insns to 100.
13594 2001-07-20 Diego Novillo <dnovillo@redhat.com>
13596 * combine.c (combine_simplify_rtx): Generate a new shift operation
13597 when simplifying the first operand of a (neg (ashift)) expression.
13599 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
13601 * regclass.c (N_REG_INTS): Use only 32 bits per element.
13603 2001-07-20 Kelley Cook <kelley.cook@home.com>
13605 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
13606 information. Move rest into ...
13607 (*-*-solaris): ... here. Eliminate redundant information and
13608 reword necessary packages section. Delete 4.x assembler bug info.
13609 (sparc-sun-*): Merge into ...
13610 (sparc-sun-sunos*): here.
13612 2001-07-20 Catherine Moore <clm@redhat.com>
13614 * config/v850/v850.md (casesi): Generate LABEL_REF
13617 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
13619 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
13620 * i386.c (ix86_zero_extend_to_Pmode): Make global.
13621 * i386.md (strclrsi expander): Use it.
13623 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
13625 * integrate.c (copy_insn_list): handle
13626 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
13627 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
13628 identically as to CODE_LABEL.
13630 * fold-const (fold): Convert A/B/C to A/(B*C) and
13633 * except.c (connect_post_landing_pads): Delete the RESX insns.
13635 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
13637 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
13639 * config/mips/mips.md (nmadd/nmsub): Use macro.
13641 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
13643 * cppinit.c (remove_dup_dir): Make static.
13644 (remove_dup_dirs): Make static. Only warn about preempting a
13645 system directory with a non-system directory.
13647 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
13649 * ifcvt.c (noce_try_store_flag_constants): Correct order
13650 of parameters to trunc_int_for_mode.
13652 2001-07-19 Mark Mitchell <mark@codesourcery.com>
13654 * reorg.c (fill_simple_delay_slots): If an instruction might throw
13655 an exception that will be caught within this function, do not fill
13656 its delay slot with any subsequent instruction.
13658 2001-07-19 Steve Ellcey <sje@cup.hp.com>
13660 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
13661 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
13662 pointer extension instruction.
13663 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
13664 * simplify-rtx.c (simplify_unary_operation) Likewise.
13665 * explow.c (convert_memory_address) Check value of
13666 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
13668 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
13669 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
13670 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
13671 Add Multilib Support.
13672 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
13673 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
13674 Add Multilib Support.
13675 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
13677 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
13678 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
13679 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
13681 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
13683 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
13684 old and new operands in `<', `3' and `b'.
13686 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13688 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
13689 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
13690 (toplev.o): Don't depend on xcoffout.h.
13691 * c-decl.c: Include debug.h
13692 (duplicate_decls): Use debug hook.
13693 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
13694 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13695 (dbxout_types): Remove.
13696 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
13697 * debug.c (do_nothing_debug_hooks): Update.
13698 (debug_true_tree, debug_nothing_rtx): New.
13699 * debug.h (struct rtx_def): New.
13700 (struct gcc_debug_hooks): New hooks ignore_block,
13701 outlining_inline_function and label.
13702 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
13703 dwarf2out_frame_finish): New.
13704 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
13705 Make static, update prototype.
13706 (dwarf2_debug_hooks): Update.
13707 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
13708 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
13709 * dwarfout.c (dwarf_debug_hooks): Update.
13710 * emit-rtl.c: Include debug.h.
13711 (remove_unnecessary_notes): Use debug hook.
13712 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
13713 (final_scan_insn): Use debug hook.
13714 * integrate.c (output_inline_function): Use debug hook.
13715 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
13716 (sdb_debug_hooks): Update.
13717 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
13718 * toplev.c: Don't include xcoffout.h.
13719 (note_outlining_of_inline_function, debug_ignore_block): Remove.
13720 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
13722 * tree.h (dwarf2out_do_frame): Remove.
13724 2001-07-19 Catherine Moore <clm@cygnus.com>
13726 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
13728 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
13730 * reload1.c (eliminate_regs_in_insn): When updating a set
13731 to the frame pointer to the hardware frame pointer, perform
13732 the update always not just when REPLACE is set.
13734 * reload1.c (choose_reload_regs): Don't inherit a reload
13735 that crosses multiple registers if registers past the first
13736 don't fit in the desired class.
13738 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
13739 when negating constants.
13741 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
13743 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
13744 * doc/tree.texi: Ditto.
13746 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
13747 Jakub Jelinek <jakub@redhat.com>
13749 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
13750 (extract_cie_info): Handle "eh" augmentation properly,
13752 (struct frame_state, __frame_state_for): New.
13754 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13756 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
13757 HANDLE_SYSV_PRAGMA): Define.
13758 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
13760 (copy_object): Caller changed.
13762 2001-07-19 Andreas Schwab <schwab@suse.de>
13764 * configure.in (assembler dwarf2 debug_line support): Define nop
13766 * configure: Regenerated.
13768 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13770 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
13772 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
13773 to conditionally compiled block.
13774 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13775 * dbxout.h (dbxout_function): Remove.
13776 * debug.c (do_nothing_debug_hooks): Update.
13777 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
13778 global_decl, deferred_inline_function.
13779 * dwarf2out.c (dwarf2_debug_hooks): Update.
13780 (dwarf2out_global_decl): New.
13781 * dwarfout.c: Don't include dwarfout.h.
13782 (dwarfout_global_decl, dwarfout_function_decl,
13783 dwarfout_deferred_inline_function): New.
13784 (dwarf_debug_hooks): Update.
13785 * dwarfout.h: Remove.
13786 * final.c: Don't include dwarfout.h.
13787 * sdbout.c (sdbout_global_decl): New.
13788 (sdbout_debug_hooks): Update.
13789 * toplev.c: Don't include dwarfout.h.
13790 (check_global_declarations, rest_of_compilation): Use new debug hooks.
13791 (note_deferral_of_defined_inline_function): Remove.
13792 * toplev.h (note_deferral_of_defined_inline_function): Remove.
13793 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
13794 * ch/lex.c: Don't include dwarfout.h.
13795 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
13796 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
13797 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
13798 * cp/optimize.c: Include debug.h.
13799 (maybe_clone_body): Use debug hook.
13800 * cp/semantics.c: Include debug.h.
13801 (expand_body): Use debug hook.
13802 * po/POTFILES.in: Remove dwarfout.h.
13804 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13806 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
13807 * c-parse.in (yyerror, _yylex): Similarly.
13808 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
13809 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
13811 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
13812 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
13814 2001-07-18 Jeff Sturm <jsturm@one-point.com>
13816 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
13817 in-class declaration at -g1. Fixes c++/2814.
13819 2001-07-18 Richard Henderson <rth@redhat.com>
13821 * doc/md.texi (reload_in/out): Document restrictions in predicates
13822 and constraints for these patterns. Document empty string matching
13825 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13827 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
13829 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
13831 * cse.c: Undo my previous patch.
13833 2001-07-18 Tom Tromey <tromey@redhat.com>
13836 * configure: Rebuilt.
13837 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
13839 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
13841 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
13842 Jan Hubicka <jh@suse.cz>
13844 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
13845 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
13846 * jump.c (mark_jump_label): Do not forward branches.
13848 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
13850 * cse.c (delete_trivially_dead_insns): Delete the libcall block
13851 when return value is unused.
13853 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
13855 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
13857 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
13859 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
13860 on error. We can't blindly return the result of
13861 pthread_mutex_trylock because it returns a positive number on
13862 error, while we must return -1 on error.
13863 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
13865 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
13867 2001-07-18 Andreas Jaeger <aj@suse.de>
13869 * integrate.c (output_inline_function): Correct type of debug_hooks.
13871 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
13873 * combine.c (combine_simplify_rtx): DIV can be treated
13874 associatively for floats if unsafe math optimisations are enabled.
13876 2001-07-17 Richard Henderson <rth@redhat.com>
13878 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
13880 2001-07-17 Richard Henderson <rth@redhat.com>
13882 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
13883 don't force the function address into a register.
13884 (expand_call, emit_library_call_value_1): Update callers.
13885 * builtins.c (expand_builtin_apply): Likewise.
13886 * expr.h (prepare_call_address): Update decl.
13888 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
13890 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
13892 * config/i386/chorus.h: Move up.
13893 * config/sparc/chorus.h: Likewise.
13894 * config/rs6000/chorus.h: Likewise.
13895 * config/chorus.h: Moved here.
13897 2001-07-17 Andreas Schwab <schwab@suse.de>
13899 * configure.in (assembler eh_frame optimization): Handle big
13901 * configure: Regenerated.
13903 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
13905 * expr.c (epxand_expr): Convert divisions into multiplications by
13906 reciprocals if -ffast-math.
13908 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
13910 * dbxout.c (dbxout_really_begin_function): Rename to
13911 dbxout_begin_function.
13912 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13913 (dbxout_begin_function): Remove.
13914 (dbxout_function): Update.
13915 (dbxout_source_line): Update prototype.
13916 * dbxout.h (dbxout_begin_function): Remove.
13917 * debug.c (do_nothing_debug_hooks): Update.
13918 (debug_nothing_tree): Update.
13919 (debug_nothing_charstar_rtx): Remove.
13920 * debug.h (union tree_node): Declare.
13921 (struct rtx_def): Remove.
13922 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
13923 begin_function. Change source_line prototype.
13924 (debug_nothing_tree): New.
13925 (debug_nothing_charstar_rtx): Delete.
13926 (dwarf2out_begin_prologue): Moved from ...
13927 * tree.h: ... here.
13928 * dwarf2out.c (dwarf2_debug_hooks): Update.
13929 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
13930 debug info, call dwarf2out_source_line.
13931 (dwarf2out_souce_line): Update prototype.
13932 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
13933 Change prototype, make static.
13934 (dwarfout_source_line): Update prototype.
13935 (dwarf_debug_hooks): Update.
13936 * dwarfout.h (dwarfout_begin_function): Remove.
13937 * final.c (final_start_function, final_scan_insn): Use appropriate
13938 debug hooks, update to use notice_source_line.
13939 (output_source_line): Rename notice_source_line. Don't call the
13940 source_line debug hook.
13941 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
13942 make static, update prototype.
13943 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
13945 (sdbout_end_prologue): New.
13946 (sdbout_source_line): Update prototype.
13947 (sdbout_debug_hooks): Update.
13948 (sdbout_symbol): Remove unused var.
13949 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
13951 * varasm.c: Include debug.h.
13952 (assemble_start_function): Use begin_function debug_hook.
13953 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13954 update with prototype.
13955 (xcoffout_source_line): Update prototype.
13956 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13958 (xcoffout_source_line): Update prototype.
13960 2001-07-17 Richard Henderson <rth@redhat.com>
13962 * c-typeck.c (build_binary_op): Do not shorten unsigned
13963 right shift after sign extension.
13965 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
13967 * combine.c (combine_simplify_rtx): Attempt to simplify
13968 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
13970 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
13971 (simplify_binary_operation, simplify_unary_operation,
13972 simplify_relational_operation): Use it.
13974 * combine.c (combine_simplify_rtx): Don't do associative law
13975 on divisions; allow associative law on floats.
13977 2001-07-17 H.J. Lu <hjl@gnu.org>
13978 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13980 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
13981 ASM_OUTPUT_WEAK_ALIAS are defined.
13982 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
13983 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
13985 * config/mips/iris5.h: ... here.
13986 (HANDLE_SYSV_PRAGMA): Defined as 1.
13987 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
13988 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
13991 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
13993 * c-parse.in (all_prefix_attributes): New variable.
13994 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
13995 (maybe_resetattrs): New production.
13996 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
13997 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
13998 notype_initdcl, nested_function, notype_nested_function,
13999 component_decl, components, components_notype,
14000 component_declarator, component_notype_declarator,
14001 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
14002 ivars, mydecl, myparm): Update. Avoid prefix attributes just
14003 after a comma being applied to more than one declarator.
14004 * doc/extend.texi (Attribute Syntax): Update. Remove
14005 documentation of bugs that are no longer present.
14007 2001-07-13 Eric Christopher <echristo@redhat.com>
14009 * config/mips/mips.h: Change TUNE_MIPS* options to use
14011 (EXTRA_SPECS): Add cc1_cpu_spec.
14012 * config/mips/mips.md (muldf3): Fix typo.
14014 2001-07-16 Richard Henderson <rth@redhat.com>
14016 * config/m68k/m68k.c: Include expr.h and reload.h.
14017 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
14018 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
14020 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
14021 Richard Henderson <rth@redhat.com>
14023 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
14024 (insn_live_p): Fix fall off end of function.
14025 (dead_libcall_p): Remove COUNTS argument; update callers.
14026 (delete_trivially_dead_insns): Remove unused variables.
14028 2001-07-17 Andreas Jaeger <aj@suse.de>
14030 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
14031 x86-64 pic support.
14033 * lcm.c (optimize_mode_switching): Avoid warning for unused
14034 variable if !NORMAL_MODE.
14036 * flow.c (try_crossjump_to_edge): Remove unused variable.
14038 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14040 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
14041 atexit declaration in stdlib.h.
14043 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
14045 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
14047 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
14049 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
14050 * except.c (finish_eh_generation): Update call of cleanup_cfg;
14051 do rebuild_jump_labels instead of jump_optimize
14052 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
14053 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
14054 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
14056 * flow.c: Include timevar.h
14057 (find_basic_block): Push/pop timevar;
14058 (cleanup_cfg): Likewise.
14059 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
14060 * Makefile: Add dependencies on timevar.h
14062 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
14063 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
14065 * rtl.h (delete_trivially_dead_insns): Add new parameter.
14066 * toplev.c (rest_of_compilation): Update calls.
14067 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
14068 (delete_trivially_dead_insns): ... here; accept new argument
14069 preserve_basic_blocks; preserve basic blocks if set.
14071 * reg-stack.c (stack_regs_mentioned): Return 0 if
14072 stack_regs_mentioned_data is not initialized.
14073 (reg_to_stack): Make stack_regs_mentioned survive after the
14074 reg-stack is completted; do not call cleanup_cfg.
14075 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
14076 make cleanup_cfg after bb-reorder to output to debug file.
14078 2001-07-16 Richard Henderson <rth@redhat.com>
14080 * regclass.c (init_reg_sets): Use only 32 bits per initializer
14081 from int_reg_class_contents.
14083 2001-07-16 Richard Henderson <rth@redhat.com>
14085 * hard-reg-set.h (regs_invalidated_by_call): Declare.
14086 * regclass.c (regs_invalidated_by_call): Move from cse.c.
14087 (init_reg_sets_1): Move initialization from cse_main.
14088 * cse.c (regs_invalidated_by_call): Move to regclass.c.
14089 (cse_main): Move its initialization also.
14090 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
14091 * flow.c (propagate_one_insn): Likewise.
14092 * gcse.c (compute_hash_table): Likewise.
14093 (compute_kill_rd, compute_store_table): Likewise.
14094 * sched-deps.c (sched_analyze_1): Likewise.
14096 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
14098 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
14101 2001-07-16 Steve Ellcey <sje@cup.hp.com>
14103 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
14104 in if statement so we don't access undefined memory.
14106 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
14108 * gcse.c: Update comment at top.
14109 Update comment on mem handling.
14110 mem_last_set, mem_first_set, mem_set_in_block: gone.
14111 Declaration of reg_set_info: gone.
14112 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
14113 pointless with load_killed_in_block_p (they are *more*
14114 conservative then it, not less, and less accurate).
14115 (oprs_not_set_p): Ditto.
14116 (alloc_gcse_mem): Don't allocate mem_set_in_block
14117 (free_gcse_mem): Don't free it, either.
14118 (record_last_mem_set_info): Update comment in front, remove
14119 mem_*set_* stuff. Note the reason we don't handle stores directly
14121 (compute_hash_table): Update comments to reflect reality. Remove
14122 mem_*set_* references.
14123 (reset_opr_set_tables): Remove mem_*set_* references.
14124 (mark_call): Ditto.
14125 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
14126 (mark_clobber): Ditto (on both parts, we double set here too).
14127 (expr_killed_p): Remove mem_set_in_block test.
14128 (compute_transp): Remove mem_set_in_block test.
14130 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
14131 of edge, and removal of phi alternative to dump file.
14132 (ssa_ccp_substitute_constants): Add note about register now being
14133 constant, and which uses were replaced in what insns to dump file.
14135 2001-07-16 Andreas Jaeger <aj@suse.de>
14137 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
14138 variables of type HOST_WIDEST_INT.
14140 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
14141 (__bb_exit_func): Correct type of count_max to avoid overflow.
14142 (num_digits): Handle long long argument.
14144 * combine.c (gen_lowpart_for_combine): Remove unused variable.
14146 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
14148 * output.h (sdb_begin_function_line): Restore as an extern
14150 * sdbout.c (sdb_begin_function_line): Make extern.
14152 2001-07-15 Richard Henderson <rth@redhat.com>
14154 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
14155 * genrecog.c (maybe_both_true_mode): New.
14156 (maybe_both_true_2): Use it.
14157 (write_switch): Don't put Pmode in a switch.
14158 * rtl.c (mode arrays): Don't explicitly size them.
14160 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
14162 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
14163 handling; move unconditional splitting before mode switching.
14165 * i386.md (type): Add fistp type.
14166 (i387, length_attr, scheduling definitions): Handle this type.
14167 (fix_trunc?f?i2): Revamp to use mode switching.
14168 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
14169 * i386.h (fp_cw_mode): New enum
14170 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
14171 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
14173 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14175 * Makefile.in (integrate.o): Add debug.h.
14176 * integrate.c (debug.h): Add.
14177 (output_inline_function): Save, reset, and restore debug_hooks.
14179 2001-07-15 Richard Henderson <rth@redhat.com>
14181 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
14182 instead of COMPARE for the EQUIV expression.
14184 2001-07-15 Richard Henderson <rth@redhat.com>
14186 * flow.c (redirect_edge_and_branch_force): Initialize
14187 global_live_at_start and global_live_at_end.
14188 (allocate_bb_life_data): Export.
14189 * basic-block.h (allocate_bb_life_data): Declare.
14190 * toplev.c (rest_of_compilation): Call it.
14192 2001-07-15 Richard Henderson <rth@redhat.com>
14194 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
14195 (alpha_tablejump_best_label): New.
14196 * config/alpha/alpha-protos.h: Declare them.
14197 * config/alpha/alpha.md: Use braced strings for code blocks.
14198 (tablejump_osf): Break out add with r29.
14199 (tablejump_osf_internal): Remove.
14200 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
14201 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
14203 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
14205 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
14208 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
14210 * i386-protos.h (ix86_split_fp_branch): Update prototype.
14211 (ix86_fp_jump_nontrivial_p): New.
14212 * i386.md (fp_jcc_?): Update call of split_fp_branch;
14213 use ix86_fp_jump_nontrivial_p.
14214 * i386.c (ix86_fp_jump_nontrivial_p): New.
14215 (ix86_split_fp_branch): Accept code instead of rtx.
14216 (ix86_expand_compare): Expand comparison early in case
14217 doing so is resonably cheap.
14219 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
14221 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
14223 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
14224 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
14226 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
14228 * dbxout.c (dbxout_source_line): Make static, update prototype.
14229 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
14230 (dbxout_init, dbxout_finish, dbxout_source_line,
14231 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
14232 * dbxout.h (dbxout_source_line): Delete.
14233 * debug.c (debug_nothing_file, debug_nothing_file_int,
14234 debug_nothing_file_charstar_rtx): New.
14235 (do_nothing_debug_hooks): Update.
14236 (debug_nothing_void, debug_nothing_charstar_rtx,
14237 dwarf2out_end_epilogue): New.
14238 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
14239 * debug.h (struct rtx_def): Declare.
14240 (gcc_debug_hooks): New hooks source_line, end_epilogue
14242 (debug_nothing_void, debug_nothing_charstar_rtx,
14243 dwarf2out_end_epilogue): New.
14244 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
14245 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
14246 (dwarf2_debug_hooks): Update.
14247 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
14248 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
14249 * dwarf2out.h (dwarf2out_source_line): Remove.
14250 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
14251 Make static, update prototype.
14252 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
14253 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
14254 (dwarf_debug_hooks): Update.
14255 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
14256 dwarfout_end_function): Remove.
14257 * final.c (profile_function): Use debug hooks for ending functions
14259 (output_source_line, final_end_function): Update prototype,
14261 (final_start_function, final_scan_insn): Update.
14262 * output.h (sdb_begin_function_line): Remove.
14263 (final_end_function): Update prototype.
14264 * sdbout.c (sdb_begin_function_line): Make static.
14265 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
14266 (sdbout_source_line): New.
14267 (sdbout_end_epilogue, sdbout_end_function): Make static, update
14269 (sdb_debug_hooks): Update.
14270 (sdbout_init, sdbout_source_line,
14271 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
14272 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
14273 * toplev.c (compile_file, rest_of_compilation): Update.
14274 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
14275 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
14276 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
14277 Update for prototype changes.
14278 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
14279 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
14281 2001-07-15 Richard Henderson <rth@redhat.com>
14283 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
14284 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
14285 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
14286 * config/alpha/alpha.c: Likewise.
14287 * config/alpha/alpha.md: Likewise.
14288 * config/alpha/alpha32.h: Likewise.
14289 * config/alpha/vms.h: Likewise.
14290 (OPEN_VMS): Remove.
14292 2001-07-14 Richard Henderson <rth@redhat.com>
14294 * config/alpha/alpha.md: Use define_constants for unspec values.
14295 Substitute throughout.
14297 2001-07-14 Tim Josling <tej@melbpc.org.au>
14299 * tree.def (EXPON_EXPR) remove. Never supported anyway.
14301 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
14303 * pa.md: Remove unused constraints from define_split's.
14305 2001-04-14 Richard Henderson <rth@redhat.com>
14307 * ifcvt.c (find_cond_trap): Test for exit block.
14309 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
14311 Re-install recently reverted patch.
14312 * emit-rtl.c (try_split): Update mark_jump_label call.
14313 * flow.c (find_sub_basic_blocks): Likewise.
14314 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
14315 jump_back_p): Kill.
14316 (mark_all_labels): Kill second parameter.
14317 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
14318 (rebuild_jump_labels, jump_optimize_minimal): Update call
14319 of jump_optimize_1.
14320 (jump_optimize_1): Kill crossjumping code.
14321 (mark_jump_label): Kill cross_jump parameter.
14322 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
14323 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
14324 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
14326 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
14328 (dump_file_info): Likewise.
14329 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
14330 reorganize passes to do reg-stack first, bb-reorder second.
14331 * invoke.texi (-d letters doc): Remove the jump2 pass.
14333 2001-07-14 Richard Henderson <rth@redhat.com>
14335 * ifcvt.c (find_cond_trap): New.
14336 (find_if_header): Call it.
14337 (merge_if_block): Relax existing jump sanity check.
14338 * jump.c (jump_optimize_1): Remove conditional trap handling.
14340 2001-07-14 Alan Modra <amodra@bigpond.net.au>
14342 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
14344 (insn_refs_are_delayed): Correct comment.
14345 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
14346 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
14347 instead of r31. Make associated insn !TARGET_64BIT, and
14348 provide an additional 64-bit insn that clobbers r2.
14349 (divsi3): Likewise.
14350 (udivsi3): Likewise.
14351 (modsi3): Likewise.
14352 (umodsi3): Likewise.
14354 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
14356 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
14358 * flow.c (redirect_edge_and_branch_force, split_edge,
14359 try_crossjump_to_edge): Use set_block_for_new_insns.
14360 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
14362 2001-07-13 H.J. Lu (hjl@gnu.org)
14364 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
14367 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
14369 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
14371 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
14373 * c-common.c (decl_attributes): Take a pointer to the node to
14374 which attributes are to be attached, and a flags argument.
14375 * c-common.h (enum attribute_flags): New.
14376 (decl_attributes): Update prototype.
14377 * c-decl.c (start_decl, push_parm_decl, finish_struct,
14378 finish_enum, start_function): Update calls to decl_attributes.
14379 * c-parse.in (component_declarator, component_notype_declarator,
14380 label): Update calls to decl_attributes.
14382 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
14384 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
14385 * config/avr/avr.c (legitimate_address_p): Return value changed
14386 from letter to register classes. For better debugging.
14388 2001-07-13 Kazu Hirata <kazu@hxi.com>
14390 * jump.c (reversed_comparison_code_parts): Fix comment typos.
14392 2001-07-13 H.J. Lu (hjl@gnu.org)
14394 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
14396 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
14398 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
14399 correctly for shared configurations.
14400 * config/t-libgcc-pic: New.
14401 * config/{i386,m68k,sparc}/t-openbsd: New.
14402 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
14403 Support -shared. Support debugging libraries with -g.
14404 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
14405 frame information does not emit pointer diffs.
14406 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
14407 emit pointer diffs.
14409 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
14411 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
14413 2001-07-13 David Edelsohn <edelsohn@gnu.org>
14415 * combine.c (try_combine): Ensure const_int pow2 is positive.
14417 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
14419 * config.gcc: Add configuration for s/390.
14420 * config/s390/s390.c: New. Subroutines for code generation.
14421 * config/s390/s390.h: New. Definitions for s/390.
14422 * config/s390/s390-protos.h: New. Prototypes.
14423 * config/s390/linux.h: New. Definitions for linux for s/390.
14424 * config/s390/linux64.h: New. Definitions for linux for zSeries.
14425 * config/s390/t-linux: New. Makefile fragment.
14426 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
14427 * config/s390/fixdfdi.h: New. Fix L_fix*di.
14429 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
14431 * emit-rtl.c (try_split): Update mark_jump_label call.
14432 * flow.c (find_sub_basic_blocks): Likewise.
14433 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
14434 jump_back_p): Kill.
14435 (mark_all_labels): Kill second parameter.
14436 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
14437 (rebuild_jump_labels, jump_optimize_minimal): Update call
14438 of jump_optimize_1.
14439 (jump_optimize_1): Kill crossjumping code.
14440 (mark_jump_label): Kill cross_jump parameter.
14441 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
14442 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
14443 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
14445 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
14447 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
14448 reorganize passes to do reg-stack first, bb-reorder second.
14449 * invoke.texi (-d letters doc): Remove the jump2 pass.
14451 2001-07-12 Steve Ellcey <sje@cup.hp.com>
14453 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
14455 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
14457 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
14459 (verify_flow_info): Make diagnostics prettier.
14461 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
14463 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
14465 * flow.c (outgoing_edges_match): Return early if condition reversal
14468 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
14470 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
14471 (mips_move_2words): When splitting a move into two instructions,
14472 prefix the second address operand with '%D'.
14474 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
14476 * Makefile.in (final.o): Depend on debug.h.
14477 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
14478 (dbx_debug_hooks): Add new hooks.
14479 (xcoff_debug_hooks): New.
14480 * debug.c (debug_nothing_file_int_int): New.
14481 (do_nothing_debug_hooks): Update.
14482 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
14483 (debug_nothing_file_int_int): New.
14484 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
14485 static, update prototype.
14486 (dwarf2_debug_hooks): Update.
14487 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
14488 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
14489 static, update prototype.
14490 (dwarf_debug_hooks): Update.
14491 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
14492 * final.c: Include debug.h.
14493 (final_scan_insn): Use debug hooks when beginning and ending blocks.
14494 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
14495 static, update prototype.
14496 (sdb_debug_hooks): Update.
14497 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
14498 * toplev.c: Distinguish between xcoff and dbx.
14500 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
14501 Call all debug hooks, not just dwarf ones.
14503 2001-07-11 Timothy Wall <twall@redhat.com>
14505 * config.gcc: Add configuration for AIX5/IA64.
14506 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
14507 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
14508 support prefix/suffix code.
14509 * config/ia64/t-aix: New. Makefile fragment.
14510 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
14512 2001-07-11 Kazu Hirata <kazu@hxi.com>
14514 * recog.c (validate_change): Fix a comment typo.
14516 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
14518 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
14519 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
14521 * dbxout.c (dbx_debug_hooks): Add new hooks.
14522 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
14524 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
14526 * dbxout.h (dbxout_start_new_source_file,
14527 dbxout_resume_previous_source_file): Delete.
14528 * debug.c (do_nothing_debug_hooks): Add new hooks.
14529 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14530 (debug_nothing_int_charstar, debug_nothing_int): New.
14531 * debug.h (gcc_debug_hooks): New hooks define, undef,
14532 start_source_file and end_source_file.
14533 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14534 (debug_nothing_int_charstar, debug_nothing_int): New.
14535 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
14536 the conditionally compiled section.
14537 (dwarf2out_start_source_file, dwarf2out_end_source_file,
14538 dwarf2out_define, dwarf2out_undef): Make static.
14539 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
14540 dwarf2out_define, dwarf2out_undef): Remove.
14541 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
14542 (dwarfout_start_source_file, dwarfout_end_source_file,
14543 dwarfout_define, dwarfout_undef): Make static.
14544 (dwarfout_start_source_file_check,
14545 dwarfout_end_source_file_check): New.
14546 (dwarfout_define, dwarfout_finish): Update.
14547 * dwarfout.h (dwarfout_start_new_source_file,
14548 dwarfout_resume_previous_source_file, dwarfout_define,
14549 dwarfout_undef): Remove.
14550 * sdbout.c (sdb_debug_hooks): Add new hooks.
14551 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
14553 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
14554 make static, take an arg.
14555 * sdbout.h (sdbout_start_new_source_file,
14556 sdbout_resume_previous_source_file): Delete.
14557 * toplev.c (debug_start_source_file, debug_end_source_file,
14558 debug_define, debug_undef): Delete.
14559 * toplev.h (debug_start_source_file, debug_end_source_file,
14560 debug_define, debug_undef): Delete.
14562 * java/jcf-parse.c: Include debug.h.
14563 (parse_class_file): Update to use debug hooks directly.
14564 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
14566 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14568 * alias.c (set_mem_alias_set): New function.
14569 * rtl.h (set_mem_alias_set): Declare it.
14570 * builtins.c (expand_builtin_return_addr): Call it instead of
14571 using MEM_ALIAS_SET accessor.
14572 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
14573 (get_memory_rtx, expand_builtin_va_arg): Likewise.
14574 (expand_builtin_va_copy):Likewise.
14575 * caller-save.c (setup_save_areas): Likewise.
14576 * calls.c (compute_argument_addresses): Likewise.
14577 * explow.c (set_mem_attributes): Likewise.
14578 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
14579 (expand_assignment, store_constructor_field, store_field): Likewise.
14580 (expand_expr_unaligned): Likewise.
14581 * function.c (assign_stack_temp_for_type): Likewise.
14582 (put_reg_into_stack, gen_mem_addressof): Likewise.
14583 * ifcvt.c (noce_try_cmove_arith): Likewise.
14584 * reload1.c (reload, alter_reg): Likewise.
14585 * config/alpha/alpha.c (get_aligned_mem): Likewise.
14586 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
14587 (alpha_expand_unaligned_store): Likewise
14588 (alpha_expand_unaligned_load_words): Likewise.
14589 (alpha_expand_unaligned_store_words): Likewise.
14590 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
14591 (alpha_expand_epilogue): Likewise.
14592 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14593 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
14594 * config/i386/i386.c (legitimize_pic_address): Likewise.
14595 * config/i960/i960.c (setup_incoming_varargs): Likewise.
14596 * config/ia64/ia64.c (spill_restore_mem): Likewise.
14597 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14598 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
14599 * config/mips/mips.c (mips_va_arg): Likewise.
14600 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14601 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14602 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
14603 (setup_incoming_varargs, rs6000_va_arg): Likewise.
14604 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
14605 (rs6000_emit_epilogue): Likewise.
14606 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
14607 * config/sparc/sparc.c (sparc_va_arg): Likewise.
14608 * config/v850/v850.c (v850_va_arg): Likewise.
14610 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
14612 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
14613 when fallthru edge is present.
14614 (mege_blocks): Handle case where creation of jump insn
14617 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
14618 CLEANUP_POST_REGSTACK): New constants.
14619 * except.c (finish_eh_generation): Update call of cleanup_cfg,
14620 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
14621 * output.h (cleanup_cfg): Update prototype.
14622 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
14623 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
14624 cleanup_cfg call; kill missleading comment.
14625 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
14626 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
14627 parameter; control optimizations performed using it.
14628 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
14629 try_crossjump_bb): New functions.
14631 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14633 * pa.c (pa_output_function_prologue): Delete prototype. Make function
14635 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
14636 pa_output_function_prologue.
14637 * pa-protos.h (pa_output_function_prologue): New prototype.
14639 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14641 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
14642 and low to get correct sign extension in low+high test.
14644 2001-07-11 Janis Johnson <janis@us.ibm.com>
14646 * gcov.c (arcdata): Use gcov_type to fix branch percentage
14647 for large hit count.
14649 * profile.c (branch_prob): Fix .bbg info for computed gotos
14652 2001-07-11 Mark Mitchell <mark@codesourcery.com>
14654 * stmt.c (parse_output_constraint): New function, split out
14656 (expand_asm_operands): ... here. Use parse_output_constraint.
14657 * tree.h (parse_output_constraint): Declare it.
14659 2001-07-11 Richard Henderson <rth@redhat.com>
14661 * bitmap.c: Comment some functions; fiddle whitespace.
14662 (bitmap_free): Don't export.
14663 (bitmap_element_allocate): Use memset.
14664 * bitmap.h (bitmap_free): Don't declare.
14666 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
14668 * gcse.c, lcm.c, sched-deps.c:
14669 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
14671 * flow.c (flow_loops_find): Free dom if we found no loops, since
14672 we aren't going to save it.
14674 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
14677 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
14679 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
14681 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14683 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
14684 #ifndef DWARF2_DEBUGGING_INFO.
14686 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14688 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
14690 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14692 * config/mips/mips.c (gen_int_relational): Tell the caller not to
14693 reverse a branch if a NE comparison is implemented with GTU.
14695 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14696 H.J. Lu <hjl@gnu.org>
14698 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
14699 constant addresses.
14700 (call_internal2): Likewise.
14701 (call_value_internal1): Likewise.
14702 (call_value_internal2): Likewise.
14703 (call_value_multiple_internal1): Likewise.
14704 (call_value_multiple_internal2): Likewise.
14706 2001-07-10 Kazu Hirata <kazu@hxi.com>
14708 * calls.c (emit_library_call_value_1): Fix a comment typo.
14709 * dwarf2out.c (mem_loc_descriptor): Likewise.
14710 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
14712 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
14714 * simplify-rtx.c (simplify_subreg): Fix typo in comment
14716 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14718 * recog.c (offsettable_address_p): Handle LO_SUM case.
14719 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
14720 instead of plus_constant.
14722 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14724 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
14725 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
14727 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14729 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
14730 adjust_address_nv instead of plus_constant.
14732 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
14734 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
14735 dwarf2out.o): Depend on debug.h, wrap long lines.
14736 * dbxout.c: Include debug.h.
14737 (dbx_debug_hooks): New.
14738 (dbxout_init): Make static, take just 2 args.
14739 (dbxout_finish): Make static.
14740 * dbxout.h (dbxout_init, dbxout_finish): Delete.
14741 * debug.c: New file.
14742 * debug.h: New file.
14743 * dwarf2out.c: Include debug.h.
14744 (dwarf2_debug_hooks): New.
14745 (dwarf2out_init): Make static.
14746 (dwarf2out_finish): Make static, take 2 args.
14747 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
14748 * dwarfout.c: Include debug.h.
14749 (dwarf_debug_hooks): New.
14750 (dwarfout_init): Make static.
14751 (dwarfout_finish): Make static, take 2 args.
14752 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
14753 * sdbout.c: Include debug.h.
14754 (sdb_debug_hooks): New.
14755 (sdbout_init): Make static, take 2 args.
14756 * sdbout.h (sdbout_init): Delete.
14757 * toplev.c: Include debug.h.
14758 (debug_hooks): New.
14759 (compile_file): Set deubg_hooks based on command line options.
14760 Use the hooks unconditionally rather than conditional compilation.
14762 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
14764 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
14765 first_insn_after_basic_block_note instead.
14767 * df.c (df_bb_refs_unlink): #if 0 out for now.
14769 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
14771 * ssa.h: Add prototype for ssa_const_prop
14772 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
14773 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
14774 (ssa_fast_dce): Remove unused variable
14776 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14778 * diagnostic.c (finish_diagnostic): Rename to
14779 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
14782 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
14784 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
14787 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
14788 (dump_file): Only pad the demangled name with spaces if the
14789 mangled name was padded with spaces.
14791 2001-07-10 Bernd Schmidt <bernds@redhat.com>
14793 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
14796 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14798 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
14799 extraction if no direct load if either EXPAND_CONST_ADDRESS or
14800 EXPAND_INITIALIZER.
14802 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
14803 whether can put offset inside LO_SUM to check mode alignment, not size.
14805 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14807 * doc/tm.texi (Misc): Fix thinko.
14809 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
14811 * regmove.c (replace_in_call_usage): Fix warnings.
14812 * sched-deps.c (add_dependence): Fix warnings.
14813 * simplify-rtx.c (simplify_subreg): Likewise.
14814 Return NULL_RTX instead of NULL.
14816 * reg-stack.c (emit_swap_insn): Eliminate warnings.
14817 (subst_asm_stack_regs): Likewise.
14819 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
14822 * dwarf2out.c (output_call_frame_info): Declare i as int.
14823 (build_abbrev_table): Declare n_alloc as int.
14824 (dwarf2out_finish): Initialize die.
14825 * except.c: Declare sjlj_funcdef_number as unsigned.
14826 (connect_post_landing_pads): Declare j as unsigned.
14827 (convert_to_eh_region_ranges): Initialize call_site.
14828 (output_function_exception_table): Initialize tt_format_size.
14829 * expr.c (move_by_pieces_1): Initialize to1.
14830 (store_constructor): Initialize minelt and maxelt.
14831 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
14832 * function.c (instantiate_decls): Avoid signed/unsigned warning.
14834 * c-decl.c (combine_parm_decls): Unused, remove.
14835 * c-tree.h: Remove prototype for combine_parm_decls.
14837 * reload.c (push_reload): Fix warning.
14838 (regno_clobbered_p): Likewise.
14839 * reload1.c (replace_pseudos_in_call_usage): Likewise.
14840 (reload_combine): Likewise.
14842 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
14843 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
14845 * bitmap.c (bitmap_operation): Change user.
14846 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
14848 2001-07-10 Eric Christopher <echristo@redhat.com>
14850 * config/mips/mips.c (override_options): Fix typo.
14852 2001-07-09 Stan Shebs <shebs@apple.com>
14854 * target.h (struct gcc_target): New fields init_builtins and
14856 * target-def.h (TARGET_INIT_BUILTINS): New macro.
14857 (TARGET_EXPAND_BUILTIN): New macro.
14858 (TARGET_INITIALIZER): Add them.
14859 * builtins.c: Include target.h.
14860 (expand_builtin): Use targetm.expand_builtin.
14861 (default_init_builtins): New function.
14862 (default_expand_builtin): New function.
14863 * expr.h (default_init_builtins): Declare.
14864 (default_expand_builtin): Declare.
14865 * c-common.c (c_common_nodes_and_builtins): Use
14866 targetm.init_builtins.
14867 * defaults.h (MD_INIT_BUILTINS): Remove.
14868 * Makefile.in (builtins.o): Depend on target.h.
14870 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
14871 (TARGET_EXPAND_BUILTIN): Define.
14872 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
14873 (MD_EXPAND_BUILTIN): Remove.
14875 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
14876 (TARGET_EXPAND_BUILTIN): Define.
14877 (c4x_init_builtins): Make endlink arg a local.
14878 (c4x_print_operand): Fix typos in adjust_address usages.
14879 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
14880 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
14881 (MD_EXPAND_BUILTIN): Remove.
14883 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
14884 (TARGET_EXPAND_BUILTIN): Define.
14885 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
14886 (ix86_init_builtins): Call new function only if TARGET_MMX.
14887 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
14888 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
14889 (MD_EXPAND_BUILTIN): Remove.
14891 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
14892 (TARGET_EXPAND_BUILTIN): Define.
14893 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
14894 (MD_EXPAND_BUILTIN): Remove.
14896 * doc/tm.texi: Document these changes.
14898 2001-07-09 Diego Novillo <dnovillo@redhat.com>
14900 * basic-block.h (tree_node): Forward declare if needed.
14901 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
14902 (BLOCK_HEAD_TREE): Define.
14903 (BLOCK_END_TREE): Define.
14904 (struct loops): Rename field 'tree' to 'tree_root'.
14905 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
14907 (flow_loops_tree_build): Rename reference to field 'tree' to
14909 (flow_loops_level_compute): Ditto.
14910 * predict.c (estimate_bb_frequencies): Ditto.
14911 * tree.h (struct tree_common): Add field 'aux'.
14913 2001-07-09 Stan Shebs <shebs@apple.com>
14915 * config/darwin.c (darwin_encode_section_info): Don't mark any
14916 DECL_EXTERNAL node as defined.
14918 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
14920 * pa.c (pa_init_machine_status, pa_mark_machine_status,
14921 pa_free_machine_status, hppa_init_pic_save): Delete.
14922 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
14923 (hppa_profile_hook): Use hppa_pic_save_rtx.
14924 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
14925 hppa_init_pic_save): Delete.
14926 (hppa_pic_save_rtx): Declare.
14927 * pa.md (call, call_value, sibcall, sibcall_value,
14928 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
14930 2001-07-09 Kazu Hirata <kazu@hxi.com>
14932 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
14933 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
14935 2001-07-09 Andreas Jaeger <aj@suse.de>
14937 * output.h: Add declaration of final_forward_branch_p.
14939 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
14941 * varray.c: Include errors.h for internal_error and trim_filename
14944 * Makefile.in (varray.o): Add errors.h.
14946 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
14948 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
14949 * optabs.c (have_add2_insn): Check whether the add insn chosen
14950 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
14951 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
14953 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
14955 * Makefile.in (OBJS): Add ssa-ccp.o
14956 (ssa-ccp.o): Add dependencies.
14957 * toplev.c (DFI_ssa_ccp): New dump file enum.
14958 (dump_file): Add entry for dumping after SSA CCP.
14959 (flag_ssa_ccp): New flag variable.
14960 (f_options): Add -fssa-ccp.
14961 (rest_of_compilation): Run SSA CCP if requested.
14962 * timevar.def (TV_SSA_CCP): New timevar.
14963 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
14964 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
14965 Fix minor typo in SSA DCE documentation.
14966 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
14967 Add documentation for new dump option. Renumber dump files
14970 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
14972 * emit-rtl.c (gen_highpart_mode): New.
14973 * rtl.h (gen_highpart_mode): Declare.
14974 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
14975 operand can be VOIDmode constant.
14977 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
14979 * flow.c (redirect_edge_and_branch_force): New.
14980 (can_fallthru): Ensure that basic blocks are succeeding.
14981 (try_optimize_cfg): Do not delete basic block if it is the last one.
14983 * flow.c (try_redirect_by_replacing_jump): Do not remove
14984 jumps with side effects, unlink chain on fallthru edge;
14985 set block for new jump instruction; avoid basic block to
14986 over by line number note.
14988 * flow.c (try_simplify_condjump): Verify that the condjump
14989 is not always falling through.
14992 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14994 * flow.c (forwarder_block_p): Fix for fallthru blocks.
14995 (try_redirect_by_replacing_jump): Update properly the count
14996 and frequency information.
14998 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15000 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
15001 address that is a LO_SUM specially.
15002 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
15004 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
15006 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
15007 (operand_subword): Use them.
15008 (change_address_1): Renamed from change_address; new arg VALIDATE.
15009 * expr.h: Reflect above changes; change_address now macro.
15010 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
15012 * cselib.c (add_mem_for_addr): Likewise.
15013 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
15014 * regmove.c (try_apply_stack_adjustment): Likewise.
15015 * reload.c (push_reload, make_memloc): Likewise.
15016 * reload1.c (eliminate_regs): Likewise.
15017 * simplify-rtx.c (simplify_replace_rtx): Likewise.
15018 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
15020 * combine.c (make_extraction, simplify_shift_const): Likewise.
15021 (gen_lowpart_for_combine): Likewise.
15022 * cse.c (gen_lowpart_if_possible): Likewise.
15023 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
15024 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
15025 * optabs.c (gen_move_insn): Likewise.
15026 * reload1.c (alter_reg): Likewise.
15027 * simplify-rtx.c (simplify_subreg): Likewise.
15028 * stmt.c (expand_anon_union_decl): Likewise.
15029 * recog.c (validate_replace_rtx_1): Likewise.
15031 * Makefile.in (recog.o): Add $(EXPR_H).
15032 * explow.c (stabilize): Call replace_equiv_address.
15033 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15034 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
15036 2001-07-03 Andrew Haley <aph@redhat.com>
15038 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
15039 the mode of the memory location.
15041 2001-07-09 Bo Thorsen <bo@suse.co.uk>
15043 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
15045 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
15047 * final.c (output_addr_const): Use target opening and
15048 closing parentheses.
15049 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
15050 defaults, add to TARGET_ASM_OUT.
15051 * target.h (struct gcc_target): Add open_paren and close_paren.
15052 * doc/md.texi: Update.
15053 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
15054 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
15055 TARGET_ASM_CLOSE_PAREN.
15056 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
15058 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
15060 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
15061 * config/a29k/a29k.h: Similarly.
15062 * config/alpha/alpha.h: Similarly.
15063 * config/arc/arc.h: Similarly.
15064 * config/arm/aof.h: Similarly.
15065 * config/arm/aout.h: Similarly.
15066 * config/avr/avr.h: Similarly.
15067 * config/c4x/c4x.h: Similarly.
15068 * config/clipper/clipper.h: Similarly.
15069 * config/convex/convex.h: Similarly.
15070 * config/d30v/d30v.h: Similarly.
15071 * config/dsp16xx/dsp16xx.h: Similarly.
15072 * config/elxsi/elxsi.h: Similarly.
15073 * config/fr30/fr30.h: Similarly.
15074 * config/h8300/h8300.h: Similarly.
15075 * config/i370/i370.h: Similarly.
15076 * config/i386/i386.h: Similarly.
15077 * config/i860/i860.h: Similarly.
15078 * config/i960/i960.h: Similarly.
15079 * config/ia64/ia64.h: Similarly.
15080 * config/m32r/m32r.h: Similarly.
15081 * config/m68hc11/m68hc11.h: Similarly.
15082 * config/m68k/m68k.h: Similarly.
15083 * config/m88k/m88k.h: Similarly.
15084 * config/mcore/mcore.h: Similarly.
15085 * config/mips/mips.h: Similarly.
15086 * config/mn10200/mn10200.h: Similarly.
15087 * config/mn10300/mn10300.h: Similarly.
15088 * config/ns32k/ns32k.h: Similarly.
15089 * config/pa/pa.h: Similarly.
15090 * config/pdp11/pdp11.h: Similarly.
15091 * config/pj/pj.h: Similarly.
15092 * config/romp/romp.h: Similarly.
15093 * config/rs6000/rs6000.h: Similarly.
15094 * config/sh/sh.h: Similarly.
15095 * config/sparc/sparc.h: Similarly.
15096 * config/v850/v850.h: Similarly.
15097 * config/vax/vax.h: Similarly.
15098 * config/we32k/we32k.h: Similarly.
15100 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
15102 * doc/c-tree.texi: Document representation of attributes.
15104 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
15106 * doc/tm.texi: Update some places for the rename of target to
15109 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
15111 * target.h (struct gcc_target): Add insert_attributes.
15112 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
15113 (TARGET_INITIALIZER): Update.
15114 * tree.c, tree.h (default_insert_attributes): New function.
15115 Update comments on other default functions to refer to targetm,
15117 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
15118 TARGET_INSERT_ATTRIBUTES.
15119 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
15120 * c-common.c (decl_attributes): Use targetm.insert_attributes.
15121 Don't use PRAGMA_INSERT_ATTRIBUTES.
15122 * Makefile.in (c-common.o): Depend on $(TARGET_H).
15123 * c-decl.c (start_decl, start_function): Don't call
15124 SET_DEFAULT_DECL_ATTRIBUTES.
15125 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
15126 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
15128 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
15129 (c4x_check_attribute): Avoid modifying attribute list itself.
15130 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
15132 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
15133 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
15135 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
15136 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
15138 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
15139 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
15141 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
15142 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
15143 Adjust parameters. Make static.
15145 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
15147 * c-common.c (decl_attributes): Only take a single attributes
15149 * c-common.h (decl_attributes): Update prototype.
15150 * c-decl.c (start_decl, start_function): Only take a single
15151 attributes parameter. Update calls to decl_attributes.
15152 (finish_struct, finish_enum): Update calls to decl_attributes.
15153 (push_parm_decl): Expect unified list of attributes. Update call
15154 to decl_attributes.
15155 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
15156 notype_nested_function, component_declarator,
15157 component_notype_declarator, label): Update calls to
15159 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
15160 lists that are passed to push_parm_decl.
15161 * c-tree.h (start_function, start_decl): Update prototypes.
15162 * config/sh/sh-protos.h, config/sh/sh.c
15163 (sh_pragma_insert_attributes): Only take a single attributes
15165 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
15166 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
15167 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
15168 build_module_descriptor, generate_static_references,
15169 generate_strings, build_selector_translation_table,
15170 generate_descriptor_table, generate_protocols,
15171 generate_ivars_list, generate_dispatch_table,
15172 generate_protocol_list, generate_category,
15173 generate_shared_structures, really_start_method, add_objc_decls,
15174 generate_classref_translation_entry): Update calls to start_decl
15175 and start_function.
15176 (build_tmp_function_decl, start_method_def): Unify attribute lists
15177 that are passed to push_parm_decl.
15179 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
15181 * final.c (no_asm_to_stream): New.
15182 (final_scan_insn): Use target structures for prologue ends
15183 and epilogue starts.
15184 * output.h (no_asm_to_stream): New.
15185 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
15186 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
15187 (TARGET_ASM_OUT): Update.
15188 * target.h (struct gcc_target): New members function_end_prologue
15189 and function_begin_epilogue.
15190 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
15191 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
15192 * config/alpha/alpha.c (output_end_prologue): Rename to
15193 alpha_output_function_end_prologue. Use in target struct
15195 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
15196 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
15197 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
15198 ia64_output_function_end_prologue. Use in target struct
15200 (ia64_function_prologue, ia64_funciton_epilogue): Rename
15201 mistyped prototypes.
15202 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
15203 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
15205 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
15206 an use in target struct, make static.
15207 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
15210 2001-07-08 Richard Henderson <rth@redhat.com>
15212 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
15214 2001-07-08 Richard Henderson <rth@redhat.com>
15216 * config/i386/i386.md: Remove constraints strings from define_split
15217 and define_peephole2 patterns.
15218 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
15219 (eh_return): Use them.
15221 2001-07-08 Richard Henderson <rth@redhat.com>
15223 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
15224 Document MD_FALLBACK_FRAME_STATE_FOR.
15226 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15228 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
15229 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
15231 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
15233 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
15235 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
15236 of the label inside NAME as opposed to just the end of NAME.
15238 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
15240 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
15241 * config/alpha/alpha.c (alpha_init_machine_status,
15242 alpha_mark_machine_status, alpha_free_machine_status): Delete.
15243 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
15244 (vms_valid_decl_attribute_p): Make static, conditionally compile.
15245 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
15247 2001-07-06 Stan Shebs <shebs@apple.com>
15249 * target.h (targetm): Rename global from "target", so as not to
15250 conflict with local variables.
15252 * c-typeck.c: Ditto.
15255 * cp/decl.c: Ditto.
15256 * cp/decl2.c: Ditto.
15257 * cp/typeck.c: Ditto.
15258 * 1750a/1750a.c: Ditto.
15259 * a29k/a29k.c: Ditto.
15260 * arc/arc.c: Ditto.
15261 * arm/arm.c: Ditto.
15262 * avr/avr.c: Ditto.
15263 * clipper/clipper.c: Ditto.
15264 * convex/convex.c: Ditto.
15265 * d30v/d30v.c: Ditto.
15266 * dsp16xx/dsp16xx.c: Ditto.
15267 * elxsi/elxsi.c: Ditto.
15268 * fr30/fr30.c: Ditto.
15269 * h8300/h8300.c: Ditto.
15270 * i370/i370.c: Ditto.
15271 * i386/i386.c: Ditto.
15272 * i860/i860.c: Ditto.
15273 * i960/i960.c: Ditto.
15274 * ia64/ia64.c: Ditto.
15275 * m32r/m32r.c: Ditto.
15276 * m68hc11/m68hc11.c: Ditto.
15277 * m68k/m68k.c: Ditto.
15278 * m88k/m88k.c: Ditto.
15279 * mips/mips.c: Ditto.
15280 * ns32k/ns32k.c: Ditto.
15282 * pdp11/pdp11.c: Ditto.
15283 * romp/romp.c: Ditto.
15284 * rs6000/rs6000.c: Ditto.
15286 * sparc/sparc.c: Ditto.
15287 * vax/vax.c: Ditto.
15288 * we32k/we32k.c: Ditto.
15289 * doc/tm.texi: Update the manual to match.
15291 2001-07-06 Richard Henderson <rth@redhat.com>
15293 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
15294 DWARF2_UNWIND_INFO not just whether it is defined.
15296 2001-07-06 Diego Novillo <dnovillo@redhat.com>
15298 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
15299 call to simplify_binary_operation returns a new pattern.
15301 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
15303 * glimits.h (__SHRT_MAX__): New.
15304 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
15305 (SHRT_MAX): Define in terms of __SHRT_MAX__.
15307 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
15309 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
15312 2001-07-06 Richard Henderson <rth@redhat.com>
15314 * bitmap.c (bitmap_release_memory): Move adjacent to the
15315 allocation functions.
15316 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
15317 the implementation. Binary search for the set bit.
15318 (bitmap_union_of_diff): Allocate the temporary on the stack
15319 instead of using xmalloc.
15321 2001-07-06 Richard Henderson <rth@redhat.com>
15323 * genrecog.c (validate_pattern): Warn for constraints in
15324 define_{expand,split,peephole2}. Remove strict_low_part
15325 before looking up match_dup.
15327 2001-07-06 DJ Delorie <dj@redhat.com>
15329 * doc/gcc.texi (Makefile): Rename to be a more general purpose
15330 chapter about various build hints and history. Add section
15331 talking about the various types of native and cross builds.
15333 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
15335 * Makefile.in (final.o): Depend on target.h.
15336 * final.c: Include target.h.
15337 (default_function_pro_epilogue): New.
15338 (final_start_function): Use target structure for function prologues.
15339 (final_end_function): Use target structure for function epilogues.
15340 * fold-const.c (real_hex_to_f): Constify s and p.
15341 * output.h (default_function_pro_epilogue): New.
15342 * real.h (real_hex_to_f): Update prototype.
15343 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
15344 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
15345 (TARGET_INITIALIZER): Update.
15346 * target.h (gcc_target): Add struct asm_out.
15347 * doc/tm.texi: Update.
15350 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
15351 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
15352 in cpu/cpu.c, or rename old functions consistently. Take
15353 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
15354 redundant macros and prototypes. Make new functions static.
15356 * 1750a/1750a.c: Similarly.
15357 * 1750a/1750a.h: Similarly.
15358 * a29k/a29k-protos.h: Similarly.
15359 * a29k/a29k.c: Similarly.
15360 * a29k/a29k.h: Similarly.
15361 * arc/arc-protos.h: Similarly.
15362 * arc/arc.c: Similarly.
15363 * arc/arc.h: Similarly.
15364 * arm/arm-protos.h: Similarly.
15365 * arm/arm.c: Similarly.
15366 * arm/arm.h: Similarly.
15367 * avr/avr-protos.h: Similarly.
15368 * avr/avr.c: Similarly.
15369 * avr/avr.h: Similarly.
15370 * clipper/clipper-protos.h: Similarly.
15371 * clipper/clipper.c: Similarly.
15372 * clipper/clipper.h: Similarly.
15373 * convex/convex.c: Similarly.
15374 * convex/convex.h: Similarly.
15375 * d30v/d30v-protos.h: Similarly.
15376 * d30v/d30v.c: Similarly.
15377 * d30v/d30v.h: Similarly.
15378 * d30v/d30v.md: Similarly.
15379 * dsp16xx/dsp16xx-protos.h: Similarly.
15380 * dsp16xx/dsp16xx.c: Similarly.
15381 * dsp16xx/dsp16xx.h: Similarly.
15382 * elxsi/elxsi.c: Similarly.
15383 * elxsi/elxsi.h: Similarly.
15384 * fr30/fr30.c: Similarly.
15385 * fr30/fr30.md: Similarly.
15386 * h8300/h8300-protos.h: Similarly.
15387 * h8300/h8300.c: Similarly.
15388 * h8300/h8300.h: Similarly.
15389 * i370/i370-protos.h: Similarly.
15390 * i370/i370.c: Similarly.
15391 * i370/i370.h: Similarly.
15392 * i386/i386.c: Similarly.
15393 * i386/osf1elf.h: Similarly.
15394 * i386/osfrose.h: Similarly.
15395 * i860/i860-protos.h: Similarly.
15396 * i860/i860.c: Similarly.
15397 * i860/i860.h: Similarly.
15398 * i960/i960-protos.h: Similarly.
15399 * i960/i960.c: Similarly.
15400 * i960/i960.h: Similarly.
15401 * ia64/ia64-protos.h: Similarly.
15402 * ia64/ia64.c: Similarly.
15403 * ia64/ia64.h: Similarly.
15404 * m32r/m32r-protos.h: Similarly.
15405 * m32r/m32r.c: Similarly.
15406 * m32r/m32r.h: Similarly.
15407 * m68hc11/m68hc11-protos.h: Similarly.
15408 * m68hc11/m68hc11.c: Similarly.
15409 * m68hc11/m68hc11.h: Similarly.
15410 * m68k/crds.h: Similarly.
15411 * m68k/dpx2.h: Similarly.
15412 * m68k/m68k-protos.h: Similarly.
15413 * m68k/m68k.c: Similarly.
15414 * m68k/m68k.h: Similarly.
15415 * m68k/news.h: Similarly.
15416 * m88k/m88k-protos.h: Similarly.
15417 * m88k/m88k.c: Similarly.
15418 * m88k/m88k.h: Similarly.
15419 * mips/mips-protos.h: Similarly.
15420 * mips/mips.c: Similarly.
15421 * mips/mips.h: Similarly.
15422 * ns32k/merlin.h: Similarly.
15423 * ns32k/ns32k.c: Similarly.
15424 * ns32k/ns32k.h: Similarly.
15425 * ns32k/tek6000.h: Similarly.
15426 * pa/pa-protos.h: Similarly.
15427 * pa/pa.c: Similarly.
15428 * pa/pa.h: Similarly.
15429 * pdp11/2bsd.h: Similarly.
15430 * pdp11/pdp11-protos.h: Similarly.
15431 * pdp11/pdp11.c: Similarly.
15432 * pdp11/pdp11.h: Similarly.
15433 * romp/romp-protos.h: Similarly.
15434 * romp/romp.c: Similarly.
15435 * romp/romp.h: Similarly.
15436 * rs6000/rs6000-protos.h: Similarly.
15437 * rs6000/rs6000.c: Similarly.
15438 * rs6000/rs6000.h: Similarly.
15439 * rs6000/sysv4.h: Similarly.
15440 * sh/sh-protos.h: Similarly.
15441 * sh/sh.c: Similarly.
15442 * sh/sh.h: Similarly.
15443 * sparc/sparc-protos.h: Similarly.
15444 * sparc/sparc.c: Similarly.
15445 * sparc/sparc.h: Similarly.
15446 * vax/vax.c: Similarly.
15447 * vax/vax.h: Similarly.
15448 * vax/vms.h: Similarly.
15449 * we32k/we32k.c: Similarly.
15450 * we32k/we32k.h: Similarly.
15452 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
15454 * basic-block.h (first_insn_after_basic_block_note): Declare.
15455 * flow.c (first_insn_after_basic_block_note): Define. Moved
15457 * ssa.c (first_insn_after_basic_block_note): Remove.
15458 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
15460 (ssa_eliminate_dead_code): Properly update the CFG and PHI
15461 nodes when we find a dead conditional branch. Insert BARRIERs
15462 after any blocks with no successors, but which do not have
15465 2001-07-06 Zack Weinberg <zackw@stanford.edu>
15467 * varray.c (varray_check_failed): Use internal_error.
15469 2001-07-05 Andrew Haley <aph@redhat.com>
15471 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
15472 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
15473 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
15475 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
15477 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
15478 reference if the target constant is also a SYMBOL_REF.
15480 2001-07-05 Eric Christopher <echristo@redhat.com>
15482 * config/mips/mips.h (MASK_MIPS3900): Remove.
15483 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
15484 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
15485 (TARGET_MIPS3900): Change to use mips_arch.
15486 (TARGET_MIPS4000): New.
15487 (TARGET_MIPS4100): New.
15488 (TARGET_MIPS4300): New.
15489 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
15490 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
15492 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
15493 (ISA_HAS_BRANCHLIKELY): To here.
15494 (CC1_CPU_SPEC): New.
15495 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
15496 (mips_arch_string): Declare.
15497 (mips_arch): Declare.
15498 (TARGET_OPTIONS): Add -march and -mtune.
15500 * config/mips/mips.c (mips_arch_string): New.
15502 (override_options): Handle -march for codegen and -mtune
15503 for scheduling. Use mips_arch. Move tx39 target default here.
15504 (mips_parse_cpu): Move error message to override_options.
15506 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
15508 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
15510 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
15511 (MIPS Options): Ditto. Change mcpu entry to historical text.
15513 2001-07-05 H.J. Lu (hjl@gnu.org)
15515 * config/mips/mips.c (mips_parse_cpu): New function to parse
15518 2001-07-05 Jim Wilson <wilson@redhat.com>
15520 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
15521 * config/ia64/t-ia64: Likewise.
15522 (LIB1ASMFUNCS): Update comment.
15524 2001-07-05 David Edelsohn <edelsohn@gnu.org>
15526 * doc/install.texi (Install GCC: Binaries): Fix typo.
15528 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15530 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
15531 reference using the stack pointer, adjust it since we push Y
15533 ("*ashrsi3"): Likewise.
15534 ("*lshrsi3"): Likewise.
15536 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15538 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
15539 when -fomit-frame-pointer is used.
15541 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
15543 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
15544 (try_redirect_by_replacing_jump): Reverse updating properly the
15545 count and frequency information. Reverse removing cc0 setter.
15546 (forwarder_block_p): Reverse fixing for fallthru blocks.
15548 2001-07-05 DJ Delorie <dj@redhat.com>
15550 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
15551 (translate_options): If the above is defined, use it to map
15552 given options to new options.
15553 * doc/tm.texi: Document it.
15555 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
15556 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15558 * doc/invoke.texi (Optimize Options): Document that -fgcse may
15559 cause programs using computed gotos to run more slowly.
15561 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15563 * doc/install.texi (Specific): Markup, spelling and typo fixes.
15565 Consistently require binutils 2.11.2, not prereleases.
15566 (Specific, decstation-*): Canonicalize as mips-dec-*.
15567 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
15569 (Specific, m68k-altos): Removed reference to README.altos, deleted.
15570 (Specific, mips-*): Reword MIPS C compiler requirements.
15571 (Specific, powerpc*-*-*): New, mention --with-cpu once.
15572 (Specific, sunv5): Removed, obsolete.
15574 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
15576 * dwarf2out.c (output_loc_list): Use an all ones mask for
15577 .text asm output and don't rely on long long
15578 literals. Reformat some long lines.
15580 2001-07-05 Andreas Jaeger <aj@suse.de>
15582 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
15585 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
15587 * dwarf2out.c (dwarf2out_define): Update comment.
15588 (dwarf2out_undef): Ditto.
15589 (dwarf2out_start_source_file): Ditto.
15590 (dwarf2out_end_source_file): Ditto.
15591 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
15592 since we never call the start/end debug hook for the primary file.
15594 2001-07-04 Kazu Hirata <kazu@hxi.com>
15596 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
15599 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
15601 * cppinit.c (remove_dup_dirs): Inform if a system include
15602 directory is being reordered.
15603 * doc/invoke.texi (Directory Options): GCC warns if you hide a
15605 * doc/cpp.texi (Search Paths): Likewise.
15606 * doc/gcc.texi (Interoperation): Remove information about
15609 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
15611 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
15612 (VARRAY_TOP_CHAR_PTR): Likewise.
15614 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15616 * gcc.c (process_command): Don't assign elements of a const char*.
15618 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15620 * emit-rtl.c (change_address): Don't abort if invalid address while
15621 reload is in progress.
15623 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
15625 * c-lex.c (cb_file_change): Pass line number to
15626 debug_start_source_file.
15627 (cb_undefine): Pass correct line number to debug_undef.
15629 * toplev.c (debug_start_source_file): Add line number to
15630 parameters. Pass it along to dwarf2out_start_source_file.
15631 (decode_g_option): Stop resetting debug level back to normal when
15632 we change debug formats, unless the current level is
15633 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
15636 * toplev.h (debug_start_source_file): Add line number to
15639 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
15642 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
15644 Output debug_macinfo data for starting file if requested.
15645 (dwarf2out_end_source_file): Output debug_macinfo data for ending
15647 (dwarf2out_define): Output debug_macinfo data for defining a macro
15649 (dwarf2out_undef): Output debug_macinfo data for undefining a
15650 macro if requested.
15651 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
15652 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
15653 (macinfo_section_label): New. DWARF2 macro info section label.
15654 (dwarf2out_init): If we want macro info, output the start label
15656 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
15657 attribute to the compilation unit die pointing to the macro info.
15659 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
15661 * dwarf2out.c (new_loc_list): Move to inside #ifdef
15662 DWARF2_DEBUGGING_INFO.
15663 (add_loc_descr_to_loc_list): Ditto.
15664 (output_loc_list): Ditto.
15665 Also, fix thinko in curr not being initialized.
15666 (gen_internal_sym): Ditto.
15668 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15670 * emit-rtl.c (replace_equiv_address): New function.
15671 * expr.h (replace_equiv_address): New declaration.
15672 * explow.c (validize_mem): Call it instead of change_address and
15673 also call if -fforce-addr and address is constant.
15674 * expr.c: Replace more calls to change_address with adjust_address
15675 and/or replace_equiv_address or to validize_mem.
15676 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
15677 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
15678 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15679 * config/i370/i370.md, config/i860/i860.md: Likewise.
15680 * config/i960/i960.md, config/mips/mips.c: Likewise.
15681 * config/mips/mips.md, config/pa/pa.md: Likewise.
15682 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
15683 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
15685 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15687 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
15689 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
15692 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
15694 * doc/include: New directory.
15695 * doc/fdl.texi: Move to doc/include/fdl.texi.
15696 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
15697 * doc/include/funding.texi, doc/include/gpl.texi: New files.
15698 * doc/gcc.texi: Use funding.texi and gpl.texi.
15699 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
15700 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
15701 Update dependencies and use -I $(docdir)/include.
15703 2001-07-04 Anthony Green <green@redhat.com>
15705 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
15707 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15709 * doc/install.texi (sparc64-*-*): Remove garbage.
15711 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
15713 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
15714 Fix typo in last change to use adjust_address.
15716 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15718 * doc/install.texi (Specific): Update information for *-*-solaris*.
15720 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15722 * explow.c (plus_constant_wide): Reinitialize Y for restart.
15724 2001-07-03 Stan Shebs <shebs@apple.com>
15726 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
15727 case for flag_no_mach_text_sections.
15728 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
15729 * config/darwin.c (flag_no_mach_text_sections): Remove.
15730 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
15732 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15734 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
15735 and avoid checking for constant as first operand.
15736 * recog.c (find_constant_term_loc): No longer static.
15737 (adj_offettable_operand): Delete.
15738 * rtl.h (adj_offsettable_operand): Delete declaration.
15739 (find_constant_term): Add declaration.
15740 * caller-save.c: Replace calls to adj_offsettable_operand with calls
15742 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
15743 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
15744 * config/i386/i386.c, config/i386/i386.md: Likewise.
15745 * config/i860/i860.c, config/i960/i960.c: Likewise.
15746 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
15747 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
15748 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
15749 * config/mips/mips.c, config/mips/mips.md: Likewise.
15750 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
15751 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
15752 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
15753 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
15754 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
15755 * config/ns32k/ns32k.md: Likewise.
15757 2001-07-03 Zack Weinberg <zackw@stanford.edu>
15759 * rtl.c (copy_rtx): Handle 'T' format letter.
15760 * gensupport.c (collect_insn_data): Likewise.
15761 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
15763 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
15765 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
15766 -B option. Use 'dir' not 'foo' as example directory name.
15768 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15770 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15771 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
15773 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
15775 * doc/cppinternals.texi: Improve formatting and logical markup.
15777 2001-07-03 Andreas Jaeger <aj@suse.de>
15779 * Makefile.in (insn-recog.o): Add dependency on reload.h.
15781 * genrecog.c (write_header): Include reload.h for prototypes in
15784 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
15787 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
15788 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
15789 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
15790 i386_pe_valid_type_attribute_p): Add.
15791 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
15792 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
15794 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15796 * explow.c (plus_constant_wide, case LO_SUM): New case.
15797 (plus_constant_for_output_wide): Delete.
15798 * rtl.h (plus_constant_for_output): Delete.
15799 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
15800 instead of plus_constant_for_output.
15801 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
15802 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
15803 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
15804 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
15805 * config/sparc/sparc.md: Likewise.
15806 Convert some change_address calls to adjust_address.
15808 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
15810 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
15811 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
15812 documentation of -std and -Wwrite-strings.
15814 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
15816 * cse.c (canon_hash): Don't register registers in very small
15817 register classes, as extending their lifetime might cause
15820 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
15822 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15824 * flow.c (forwarder_block_p): Fix for fallthru blocks.
15825 (try_redirect_by_replacing_jump): Update properly the count
15826 and frequency information.
15828 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
15830 * toplev.c (dump_file_index): Move SSA dumps just after first
15832 (dump_file): Corresponding changes.
15833 (rest_of_compilation): Move SSA path to just after the first
15835 * doc/gcc.texi (Passes): Update due to movement of SSA path.
15836 * doc/invoke.texi: Update dump file #s as they were completely
15837 out of date with reality.
15839 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
15841 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
15843 * expr.c (emit_move_insn_1): Deal with non-default
15846 * expr.c (emit_single_push_insn): Fix warning.
15848 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
15850 * expr.c (emit_move_insn_1): Avoid modifying
15851 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
15853 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15855 * emit-rtl.c (adjust_address): New function.
15856 * expr.h (adjust_address): Add declaration.
15857 * builtins.c: Replace some calls to change_address with calls to it
15858 or to validize_mem.
15859 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
15860 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
15861 * config/arm/arm.c, config/convex/convex.c: Likewise.
15862 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15863 * config/i386/i386.c, config/i386/i386.md: Likewise.
15864 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
15865 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
15866 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
15867 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
15868 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
15870 2001-07-02 Jim Wilson <wilson@redhat.com>
15872 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
15874 2001-07-02 Steve Ellcey <sje@cup.hp.com>
15876 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
15877 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
15879 2001-07-02 Zack Weinberg <zackw@stanford.edu>
15881 * cppinit.c (lang_defaults): New table.
15882 (set_lang): Just read from lang_defaults into the live options
15885 2001-07-02 Zack Weinberg <zackw@stanford.edu>
15887 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
15888 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
15889 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
15891 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15893 * doc/install.texi: Various spelling and markup fixes.
15894 (Installing GCC): Component specific installation instructions are
15897 Warn about removing old install dir in the presence of shared libs.
15898 (Configuration): Invoke with options target to match configure
15900 Consistently refer to gas, gld pathnames.
15901 Invert --enable-multilib documentation.
15902 Remove references to old compiler versions.
15904 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15906 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
15908 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15910 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
15912 (Specific, mips*-sgi-irix5): Note IDO download.
15913 Reworded MIPS C hints.
15914 Use GNU as instead of GAS.
15916 Removed SGI Freeware reference, IRIX 6 only.
15917 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
15918 Note N64 library requirement/workaround.
15920 Complete list of structure passing bug victims.
15922 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15924 * doc/install.texi: Remove CVS Id.
15926 2001-07-02 Andreas Jaeger <aj@suse.de>
15928 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
15929 (find_inherently_necessary): Remove unused variable.
15931 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
15933 * c-common.h (TDI_inlined): New ast dump phase.
15934 (dump_flag_name): New function.
15935 * c-dump.c (dump_files): Add inlined phase.
15936 (dump_flag_name): Define.
15937 * doc/invoke.texi (-fdump-ast-inlined): Document.
15939 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15941 * stor-layout.c (layout_decl): Revert change to handling of alignment
15944 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15946 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
15949 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
15951 * doc/tm.texi (FUNCTION_ARG): Document that the last call
15954 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
15956 * tlink.c (recompile_files): Remove COMPILER_PATH and
15957 LIBRARY_PATH from the environment.
15959 2001-07-01 Zack Weinberg <zackw@stanford.edu>
15961 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
15962 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
15964 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
15966 * c-parse.in (OBJC_STRING): Kill.
15967 (objc_string): Decompose to [objc_string] '@' STRING.
15968 (reswords): Take the leading '@' off all the Objective C keywords.
15969 (objc_rid_sans_at): Kill.
15970 (init_reswords): Don't initialize it.
15971 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
15972 (_yylex): Kill reconsider label. Look ahead one token after
15973 an '@'; if we get an identifier, check whether it's an
15974 Objective C @-keyword. If so, return the keyword. Otherwise,
15975 put back the token and return the '@' as a terminal.
15977 * cpplib.c (lex_macro_node): Remove unnecessary check for
15978 leading '@' on identifier. Clarify control flow and commentary.
15980 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15982 * cse.c (new_label_ref): Variable deleted.
15983 (insert): Remove set of new_label_ref.
15984 (check_for_label_ref): New function.
15985 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
15987 See ChangeLog.5 for earlier changes.