1 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
3 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
4 * gcse.c (hash_string_1): New function.
5 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
6 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
7 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
8 (canon_hash_string): New function.
9 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
10 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
11 (fold_rtx): Use ASM_OPERANDS accessor macros.
12 * emit-rtl.c (copy_insn_1): Likewise.
13 * integrate.c (copy_rtx_and_substitute): Likewise.
14 * stmt.c (expand_asm_operands): Likewise. Give an
15 ASM_OPERANDS rtx the mode of the output reg being set from it.
17 2000-09-01 Fred Fish <fnf@be.com>
19 * fix-header.c (write_rbrac): Add putc and getc to list of
20 functions to protect against prior definition as a macro.
22 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
24 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
25 (c_size_type_node): Define.
26 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
27 * c-common.c (enum format_lengths, enum format_std_version,
28 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
29 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
30 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
31 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
32 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
33 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
34 format_types): Define.
35 (format_char_info, print_char_table, scan_char_table,
36 time_char_table): Rearrange for new organization of information
37 about format length modifiers and standard versions.
38 (T_ST): Redefine to use c_size_type_node.
39 (check_format_info): Obtain information about length modifiers and
40 standard versions from tables. Adjust warning message wordings.
41 Use the name from the user's program for `ll' and `hh' length
42 modifiers in warning messages. Use more informative names for
43 wanted types where available (for wchar_t, wint_t, size_t, signed
44 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
46 2000-09-01 Jim Wilson <wilson@cygnus.com>
48 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
49 * combine.c (distribute_notes): Handle REG_NORETURN.
50 * rtl.c (reg_note_name): Add REG_NORETURN.
51 * rtl.h (enum reg_note): Likewise.
53 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
55 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
56 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
57 (emit_predicate_relation_info): Handle conditional calls with
59 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
60 instead of ia64_file_start.
61 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
62 * config/ia64/ia64.md (safe_across_calls_all,
63 save_across_calls_normal): New patterns.
65 * loop.c (check_final_value): Check for biv use before checking for
66 giv use. Check for both biv and giv uses. Always set last_giv_use
67 if there is a giv use.
69 2000-09-01 Richard Henderson <rth@cygnus.com>
71 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
75 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
77 * expr.c (clear_storage): Don't use emit_move_insn unless
78 either BLKmode or proper size.
79 (store_constructor): Don't call clear_storage if REG of wrong size.
81 * flow.c (init_propagate_block_info): Don't mark frame dead at end
82 of function if returns wiht stack pointer depressed.
84 2000-09-01 Andrew Haley <aph@redhat.com>
86 * dwarf2out.c (stack_adjust_offset): New function.
87 (dwarf2out_stack_adjust): Break out stack adjust logic into
88 new stack_adjust_offset function. Look inside parallels and
89 sequences for stack adjustments.
91 2000-08-31 Jeff Law <law@cygnus.com>
93 * arm.md: Use no_new_pseudos to determine when it is safe
94 to create new pseudo registers.
96 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
97 when we can safely allocate new registers.
99 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
101 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
102 so that CONCATs are not generated for ASMs.
103 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
104 not generating_concat_p.
105 * function.c (pop_function_context_from): Reset
107 (prepare_function_start): Likewise.
108 * rtl.c (generating_concat_p): Define.
109 * rtl.h (generating_concat_p): Declare.
110 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
112 2000-08-22 Philipp Thomas <pthomas@suse.de>
113 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
115 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
118 2000-08-30 Greg McGary <greg@mcgary.org>
120 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
121 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
122 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
124 2000-08-30 Greg McGary <greg@mcgary.org>
126 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
127 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
128 (TREE_INT_CST): New macro.
129 * varasm.c (const_hash, compare_constant_1, record_constant_1):
130 Use new macro TREE_INT_CST.
132 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
134 * contrib.texi: Add self.
136 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
138 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
139 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
142 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
144 * fixinc/gnu-regex.c: Don't define `const'.
146 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
148 * expr.c (store_constructor): Allow variable bounds of array type.
149 (expand_expr): Don't blow up if type is ERROR_MARK.
150 * varasm.c (output_constructor): Don't access lower bound of array
151 type unless need it if index is supplied (so it can be a variable
152 if no index is supplied).
153 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
154 Other minor cleanups.
156 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
158 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
159 for compilations in stage 1 and subsequent stages, respectively.
160 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
161 * configure: Rebuilt.
162 * x-vax, x-vax-gcc: Deleted.
164 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
166 * c-common.c (declare_function_name): Use func_id_node,
167 function_id_node, and pretty_function_id_node. Do not make
168 __func__ visible at file scope.
169 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
170 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
171 (function_id_node, pretty_function_id_node, func_id_node): New
173 * c-decl.c (init_decl_processing): Initialize function_id_node,
174 pretty_function_id_node, and func_id_node.
175 (c_make_fname_decl): Correct comment.
177 * tree.h (struct tree_identifier): Constify pointer member.
179 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
180 * c-pragma.h (struct weak_syms): Constify name and value members.
181 (add_weak): Constify arguments.
183 * calls.c (special_function_p): Constify a char *.
184 (expand_call): Remove variable which is initialized and then
186 * dependence.c (struct def_use, struct induction, struct subscript):
187 Constify 'variable' member.
188 (get_low_bound, have_induction_variable): Constify char * argument.
189 (find_induction_variable): Add braces to avoid dangling else.
190 (classify_dependence): Constify char * arrays.
191 * profile.c (output_func_start_profiler): Constify a char *.
192 * stor-layout.c (finalize_record_size): Constify a char *.
193 * tree.c (is_attribute_p): Constify a char *.
194 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
196 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
197 for comprehensibility. Do not call get_identifier if we did
198 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
199 create temporary string constants, not ggc_alloc_string. No
200 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
201 char * to hold IDENTIFIER_POINTERs.
203 2000-08-29 Richard Henderson <rth@cygnus.com>
205 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
208 2000-08-29 Richard Henderson <rth@cygnus.com>
210 * reload.c (push_secondary_reload): Allow class == reload_class
211 if we're using a reload_in/out pattern.
213 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
214 the half that does not conflict with the reload register.
215 (reload_outti): Likewise.
217 2000-08-29 Kazu Hirata <kazu@hxi.com>
219 * reload.c: Fix formatting.
221 * stmt.c: Fix formatting.
223 * gcc.c: Fix formatting.
225 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
227 * flags.h (time_report, mem_report): New global flags.
228 * toplev.c: Define time_report and mem_report.
229 (f_options): Add -ftime-report and -fmem-report.
230 (compile_file): Turn on time_report if quiet_flag is off.
231 Call ggc_print_statistics at very end if mem_report is on.
232 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
234 * ggc-common.c (ggc_print_statistics): Rename to
235 ggc_print_common_statistics; all callers changed. Scale
236 quantities above 10K to kilobytes and above 10M to megabytes.
237 * ggc-page.c (ggc_page_print_statistics): Rename to
238 ggc_print_statistics. Report memory consumed by internal data
239 structures for each allocation bucket. Scale quantities above
240 10K to kilobytes and above 10M to megabytes.
241 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
242 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
243 Define tally_leaves always.
244 (ggc_print_statistics): New function.
245 * ggc.h: Adjust for renamed functions.
247 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
249 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
250 output_movsisf instead of which_alternative.
252 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
254 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
256 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
257 (avr_progmem_p): New prototype.
258 (output_movsisf): Prototype declaration changed.
259 (output_movqi): New prototype.
260 (output_movhi): New prototype.
261 (call_insn_operand): Likewise.
262 (final_prescan_insn): Likewise.
263 (avr_simplify_comparision_p): Likewise.
264 (avr_normalize_condition): Likewise.
265 (compare_eq_p): Likewise.
266 (out_shift_with_cnt): Likewise.
267 (const_int_pow2_p): Likewise.
268 (output_reload_inhi): Prototype declaration changed.
270 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
271 (ldi_reg_rtx): New. rtx for r31.
272 (avr_init_stack): Initialize as "__stack".
273 (function_prologue): Use it.
274 Replace all TARGET_ENHANCED with AVR_ENHANCED.
275 (avr_mcu_name): Initialize as "avr2".
276 (avr_enhanced_p, avr_mega_p): New variables.
277 (mcu_types, avr_override_options): Handle all known MCU types.
278 Also handle avr1 (only preprocess, assemble and link).
279 (print_operand): Using of `%K' in output template removed.
280 (out_movqi_r_mr): Optimized.
281 (out_movhi_r_mr): Likewise.
282 (output_movqi): New function.
283 (output_movhi): Likewise.
284 (out_movsi_r_mr): Optimized.
285 (output_movsisf): Compute insn length for `adjust_insn_length'
286 (out_movqi_mr_r): Optimized.
287 (out_movhi_mr_r): Optimized.
288 (adjust_insn_length): Use output_movsisf, output_movqi,
289 output_movhi for insn length adjusting.
290 (reg_unused_after): Use dead_or_set_p.
291 (preferred_reload_class): Now havn't any restriction.
292 (reg_was_0): New function.
293 (io_address_p): Likewise.
294 (const_int_pow2_p): Likewise.
295 (output_reload_inhi): Likewise.
296 (output_reload_insisf): Likewise.
298 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
299 (LIB_SPEC): Use -lc for all supported devices.
300 (LIBGCC_SPEC): Use -lgcc for all supported devices.
301 (AVR_MEGA): Define as avr_mega_p.
302 (AVR_ENHANCED): New, define as avr_enhanced_p.
303 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
304 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
305 (CRT_BINUTILS_SPECS): Handle all known MCU types.
306 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
307 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
308 (ASM_SPEC): Pass -mmcu=... to the assembler.
309 Change all -DAVR_* to -D__AVR_*__.
310 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
311 Rename library functions to start with two underscores.
312 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
314 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
315 (SUPPORTS_WEAK): Likewise.
316 (LDI_REG_REGNO): New. Register r31 will be used as temporary
317 register for loading constants to r0-r14.
319 * config/avr/avr.md: Replace all TARGET_ENHANCED with
321 (*mov_r_sp): Removed. Handled by output_movhi.
322 (*mov_sp_r): Likewise.
323 (*mov_sp_r_no_interrupts): Likewise
324 (*mov_sp_r_tiny): Likewise.
325 (*movqi): Use output_movqi.
327 (*movhi): Use output_movhi.
329 (*negsi2): Optimized.
331 Added peepholes (define_peephole2) for loading constants to r0-r14
332 and for using `cpse' command.
334 * config/avr/libgcc.S: Rename library functions to start with two
336 Add support for enhanced core.
337 (_moqhi3): Fix typo, now _modqi3.
338 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
339 (__prologue_saves__): Remove test for stack adjust by 0.
340 (__tablejump__): New.
342 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
343 Add multilib support.
345 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
347 * loop.c (prescan_loop): Don't check unknown_address_altered
348 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
349 to loop_store_mems as necessary.
350 (loop_invariant_p): Don't check unknown_address_altered
351 or unknown_constant_address_altered.
353 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
355 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
357 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
359 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
360 print just the filename.
361 * cpplex.c (_cpp_run_directive): Add additional argument, the
362 name to give the synthetic buffer. This defaults to
363 translated "<command line>".
364 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
366 (_cpp_define_builtin): New function.
367 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
368 * cpphash.h: Update prototypes.
370 * tradcpp.c (main): Process -D and -U simultaneously, in the
371 order they appeared on the command line.
373 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
375 * c-decl.c (define_label): Call warning_with_file_and_line and
376 error_with_file_and_line instead of plain warning or error.
378 * c-parse.in (label): Use save_filename/save_lineno to ensure
379 correct values for calls to define_label.
381 2000-08-29 Mark Mitchell <mark@codesourcery.com>
383 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
385 * expr.c (expand_expr, case TARGET_EXPR): Don't call
387 * tree.h (get_file_function_name): Remove two duplicate
390 2000-08-28 Kazu Hirata <kazu@hxi.com>
392 * tree.c: Fix formatting.
394 * xcoffout.c: Fix formatting.
396 2000-08-28 Jason Merrill <jason@redhat.com>
398 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
400 2000-08-28 Daniel Berlin <dberlin@redhat.com>
402 * dwarf2out.c (dwarf2out_finish): Don't bother calling
403 break_out_includes if it won't do anything.
405 2000-08-28 Richard Henderson <rth@cygnus.com>
407 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
408 (find_reloads): Likewise.
409 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
410 (reload_inhi): Likewise.
412 2000-08-28 Richard Henderson <rth@cygnus.com>
414 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
415 (call_insn_operand): Don't expect a surrounding mem.
416 (constant_call_address_operand): Likewise.
417 * config/i386/i386.h (PREDICATE_CODES): Update.
418 * config/i386/i386.md (call patterns): Move the match_operand
419 for the call destination inside the mem.
421 2000-08-28 Richard Henderson <rth@cygnus.com>
423 * local-alloc.c (requires_inout): Don't use reserved range for
424 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
425 * recog.c (asm_operand_ok): Likewise.
426 (preprocess_constraints, constrain_operands): Likewise.
427 * regclass.c (record_reg_classes): Likewise.
428 * reload.c (find_reloads): Likewise.
429 * reload1.c (maybe_fix_stack_asms): Likewise.
430 (reload_cse_simplify_operands): Likewise.
431 * stmt.c (expand_asm_operands): Likewise.
433 * md.texi: Update constraints documentation.
434 * tm.texi (EXTRA_CONSTRAINT): Update.
436 2000-08-28 Daniel Berlin <dberlin@redhat.com>
438 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
439 (print_die): If we don't know the offset of the
440 target die, try the symbol. Add a trailing newline.
441 (reverse_all_dies): New fn.
442 (dwarf2out_finish): Call it.
443 (break_out_includes): Reorganize for clarity.
444 (add_sibling_attributes): Don't call reverse_die_lists.
445 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
447 * flags.h: Add flag_eliminate_dwarf2_dups.
448 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
450 2000-08-28 Jason Merrill <jason@redhat.com>
452 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
453 * dwarf2out.c: #include "md5.h".
454 (DIE_LABEL_PREFIX): New macro.
455 (dw_val_struct): Add 'external' flag to val_die_ref.
456 (add_AT_die_ref, AT_ref): Adjust.
457 (AT_ref_external, set_AT_ref_external): New fns.
458 (build_abbrev_table): Call set_AT_ref_external.
459 (value_format): Call AT_ref_external.
460 (die_struct): Add die_symbol field.
462 (dwarf_tag_name): Handle BINCL/EINCL.
463 (dwarf2out_start_source_file): Add BINCL DIE.
464 (dwarf2out_end_source_file): Add EINCL DIE.
465 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
466 (loc_checksum, attr_checksum, die_checksum): New fns.
467 (is_type_die, is_comdat_die, is_symbol_die): New fns.
468 (compute_section_prefix, assign_symbol_names): New fns.
469 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
470 (output_die): Call output_die_symbol and AT_ref_external.
471 (output_comdat_comp_unit): New fn, split out from...
472 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
474 (output_pubnames, output_aranges): Abort if we see entries from
476 * toplev.h: Declare file_name_nondirectory.
477 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
478 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
479 (debug_start_source_file): Call dwarf2out_start_source_file
480 regardless of debug verbosity.
481 (debug_end_source_file): Similarly.
482 * tree.h: Declare clean_symbol_name.
483 * tree.c (clean_symbol_name): Split out from...
484 (get_file_function_name_long): ...here.
486 * dwarf2out.c (new_loc_descr): Use calloc.
487 (splice_child_die): Remove the die from the right parent.
488 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
490 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
492 * toplev.c (decode_g_option): Don't give warning for unknown -g
493 option; return 0 instead.
494 (main): If -g option is not recognized by front end or
495 language-independent code, give warning.
497 2000-08-28 Greg McGary <greg@mcgary.org>
499 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
500 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
501 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
503 2000-08-27 Greg McGary <greg@mcgary.org>
505 * cpplex.c (parse_string): Don't look for backslash
506 before first char in `namebuf'.
507 * loop.c (strength_reduce): Skip NOTEs.
509 2000-08-27 Jason Merrill <jason@redhat.com>
511 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
512 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
513 TREE_ASM_WRITTEN, either.
514 (finish_decl): Adjust.
516 2000-08-28 Philipp Thomas <pthomas@suse.de>
518 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
519 they have been incorporated into the gettext CVS. Change the text to
520 reflect the current status of NLS. Add instructions for accessing
521 the gettext CVS and add the patch from Martin v. Loewis.
523 2000-08-27 Geoff Keating <geoffk@cygnus.com>
525 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
526 by using gen_lowpart_common.
527 (movdi_internal64+6): Likewise.
529 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
531 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
534 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
535 numbers to the ranges used by GDB.
537 2000-08-25 Richard Henderson <rth@cygnus.com>
539 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
540 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
541 (ia64_expand_prologue): Likewise.
542 (ia64_setup_incoming_varargs): Set it. Properly skip the current
543 argument for stdargs.
545 2000-08-25 Jason Merrill <jason@redhat.com>
547 * integrate.c (expand_inline_function): Pull out the original decl.
549 2000-08-25 Jim Wilson <wilson@cygnus.com>
551 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
553 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
555 2000-08-25 Greg McGary <greg@mcgary.org>
557 * flow.c (dump_edge_info): Use ARRAY_SIZE.
558 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
560 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
562 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
564 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
566 * i386.c (ix86_find_base_term): New.
567 * i386-protos.h (ix86_find_base_term): Prototype.
568 * i386.h (FIND_BASE_TERM): Define.
569 * alias.c (find_base_term): Use it.
570 * tm.texi (FIND_BASE_TERM): Document it.
572 * alias.c (true_dependence, write_dependence_p): Unchanging
573 memory can't conflict with non-unchanging memory.
575 * alias.c (memrefs_conflict_p): A BLKmode reference
576 to a symbol (or CONST_INT address) always conflicts
577 with a reference to another symbol.
579 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
581 * c-common.c (time_char_table): Don't allow width and flags with
584 2000-08-25 Jakub Jelinek <jakub@redhat.com>
586 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
587 way as LT and LTU when the second operand has 0 in low word.
589 2000-08-26 Michael Hayes <mhayes@cygnus.com>
591 * basic-block.h (struct loop): Rename `exits' field to
592 `exit_edges'. Add `entry_edges' and `num_entries' fields.
594 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
595 (flow_loop_entry_edges_find): Add.
596 (flow_edge_list_print): Rename from flow_exits_print.
597 (flow_loops_find): Call flow_loop_entry_edges_find.
598 (flow_loop_dump): Dump entry_edges list.
599 (flow_loops_free): Free entry_edges.
601 2000-08-26 Michael Hayes <mhayes@cygnus.com>
603 * loop.c (loop_dump_aux, debug_loop): New functions.
604 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
606 * flow.c (flow_loops_dump): Add callback parameter.
607 (flow_loop_dump): Add callback parameter and call it. Move
608 loop note debugging code to loop_dump_aux.
610 * basic-block.h (flow_loop_dump): Add callback parameter
611 (flow_loops_dump): Likewise.
613 * toplev.c (rest_of_compilation): Add NULL callback function pointer
614 to call to flow_loops_dump.
616 2000-08-26 Michael Hayes <mhayes@cygnus.com>
618 * loop.c (count_loop_regs_set): Replace start and end arguments
619 with loop argument. All callers udated.
621 2000-08-26 Michael Hayes <mhayes@cygnus.com>
623 * loop.c (constant_high_bytes): Delete.
625 2000-08-26 Michael Hayes <mhayes@cygnus.com>
627 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
628 and NOTE_INSN_LOOP_VTOP to...
629 (find_and_verify_loops) ...here.
631 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
633 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
634 (fini_dummy, init_dummy): Use it.
636 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
638 * cpplex.c (is_macro_disabled): Caller has already checked
639 that we're not a preprocessed file.
641 2000-08-24 Mark Mitchell <mark@codesourcery.com>
643 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
644 (c-iterate.o): Remove target.
645 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
646 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
647 (finish_decl): Don't handle iterators.
648 (grokdeclarator): Likewise.
649 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
650 * gcc/c-gperf.h: Regenerated.
651 * gcc/c-iterate.c: Removed.
652 * gcc/c-lex.c (init_lex): Don't handle iterators.
653 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
654 (compstmt_primary_start): Remove push_iterator_stack call.
655 (stmt): Don't allow iterator statements. Replace iterator_expand
656 with expand_expr_stmt.
657 (all_iter_stmt): Remove.
658 (all_iter_stmt_simple): Likewise.
659 (all_iter_stmt_with_decl): Likewise.
660 * gcc/c-tree.h (ITERATOR_P): Remove.
661 (ITERATOR_BOUND_P): Likewise.
662 (init_iterators): Remove declaration.
663 (iterator_expand): Likewise.
664 (iterator_for_loop_start): Likewise.
665 (iterator_for_loop_end): Likewise.
666 (iterator_for_loop_record): Likewise.
667 (push_iterator_stack): Likewise.
668 (pop_iterator_stack): Likewise.
669 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
670 (readonly_warning): Likewise.
671 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
673 2000-08-24 Jim Wilson <wilson@cygnus.com>
675 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
676 Copy type in a TYPE_DECL, just like pushdecl does.
678 2000-08-24 Richard Henderson <rth@cygnus.com>
680 * toplev.c (main): Enable flag_reorder_blocks at -O2.
682 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
684 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
685 asked for one page, allocate GGC_QUIRE_SIZE of them and put
686 the extras on the free list.
687 (release_pages): Clean up.
688 (ggc_set_mark): Don't adjust G.allocated here...
689 (sweep_pages): ... do it here.
691 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
693 * cppfiles.c (read_include_file): Rearrange initializations.
695 2000-08-24 Richard Henderson <rth@cygnus.com>
697 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
699 * config/ia64/ia64-protos.h: Update.
700 * config/ia64/ia64.c (gr_register_operand): New.
701 (fr_register_operand, grfr_register_operand): New.
702 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
703 (grfr_reg_or_8bit_operand): New.
704 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
705 use gr_register_operand.
706 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
707 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
708 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
709 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
710 (fr_reg_or_fp01_operand): Likewise.
711 (not_postinc_memory_operand): New.
712 (ia64_split_timode): Remove unused variables.
713 (rtx_needs_barrier): Check arguments to cmpxchg.
714 (builtin_description): Remove.
715 (bdesc_2argsi, bdesc_2argdi): Remove.
716 (ia64_init_builtins): Declare all builtins directly.
717 (ia64_expand_fetch_and_op): Rewrite to be called from
718 ia64_expand_builtin directly. Use expand_binop and co.
719 (ia64_expand_op_and_fetch): Likewise.
720 (ia64_expand_compare_and_swap): Likewise.
721 (ia64_expand_binop_builtin): Remove.
722 (ia64_expand_lock_test_and_set): New.
723 (ia64_expand_lock_release): New.
724 (ia64_expand_builtin): Use them.
725 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
726 (EXTRA_CONSTRAINT): Use it.
727 (PREDICATE_CODES): Update.
728 * config/ia64/ia64.md (*): Use gr_register_operand and co.
729 (mf): Indicate that we set memory as well as use it.
730 (fetchadd_acq_si): Show memory being modified as well.
731 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
732 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
733 (lock_test_and_set_si, lock_test_and_set_di): Remove.
734 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
735 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
736 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
737 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
738 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
739 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
740 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
741 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
742 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
743 return type. Pretty print definitions.
745 2000-08-24 Jim Wilson <wilson@cygnus.com>
747 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
748 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
750 2000-08-24 Jason Merrill <jason@redhat.com>
752 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
753 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
754 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
755 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
757 2000-08-24 Greg McGary <greg@mcgary.org>
759 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
760 and extendtab within their proper array boundaries.
761 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
762 for the entire array.
764 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
765 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
766 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
767 * config/fr30/fr30.c (fr30_print_operand): Likewise.
768 * config/i386/dgux.c (output_options): Likewise.
769 * config/i386/dgux.h (ASM_FILE_START): Likewise.
770 * config/m88k/m88k.c (output_options): Likewise.
771 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
772 * config/mcore/mcore.c (mcore_output_inline_const_forced,
773 layout_mcore_frame, handle_structs_in_regs): Likewise.
774 * config/mips/mips.c (output_block_move): Likewise.
775 * config/rs6000/rs6000.c (rs6000_override_options,
776 rs6000_file_start): Likewise.
777 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
778 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
779 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
780 * builtins.c (expand_builtin_setjmp): Likewise.
781 * expr.c (safe_from_p): Likewise.
782 * flow.c (life_analysis): Likewise.
783 * fold-const.c (size_int_type_wide): Likewise.
784 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
785 * genattrtab.c (make_length_attrs): Likewise.
786 * genopinit.c (gen_insn): Likewise.
787 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
788 * global.c (global_alloc): Likewise.
789 * local-alloc.c (find_free_reg): Likewise.
790 * mips-tdump.c (print_symbol): Likewise.
791 * mips-tfile.c (parse_def, parse_input): Likewise.
792 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
793 * stmt.c (expand_nl_goto_receiver): Likewise.
794 * stor-layout.c (set_sizetype): Likewise.
795 * varasm.c (decode_reg_name): Likewise.
796 * toplev.c (decode_f_option, decode_W_option,
797 set_target_switch, print_switch_values): Likewise.
798 (NUM_ELEM): Remove macro.
799 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
801 2000-08-24 Greg McGary <greg@mcgary.org>
803 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
804 (MAIN_NAME_P, main_identifier_node): New macros.
805 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
806 * c-decl.c (start_decl, grokdeclarator, start_function,
807 store_parm_decls, finish_function): Use MAIN_NAME_P.
808 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
809 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
810 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
811 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
813 2000-08-24 Greg McGary <greg@mcgary.org>
815 * cppfiles.c (actual_directory): Don't write beyond `dir'
817 * real.c (asctoeg): Stay within bounds of etens[][].
819 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
821 * dependence.c (dependence_string, direction_string,
822 dump_one_node, dump_node_dependence): Hide unused identifiers.
823 (get_low_bound, normalize_coefficients): Match definition to
825 (get_one_coefficient): Initialize variables `value0_is_idx' and
827 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
828 (ziv_test): Delete variable `idx', use parameter `sub' instead.
829 (direction_merge): Avoid automatic aggregate initialization.
830 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
831 Initialize variables `dest_idx' and `src_idx'.
832 (end_dependence_analysis): Avoid C89 style function definition.
834 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
836 * c-common.c (time_char_table): Don't allow width with %F.
837 (check_format_info): Don't allow "Z" length with scanf.
839 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
841 * diagnostic.c (finish_diagnostic): Define.
842 (output_do_printf): Use wrap_text instead of output_add_string.
843 (default_print_error_function): Avoid embedded '\n'.
845 * diagnostic.h (flush_diagnostic_buffer): Declare.
847 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
849 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
851 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
853 * Makefile.in (GCC_PASSES): Add specs.
855 2000-08-23 Jim Wilson <wilson@cygnus.com>
857 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
858 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
859 EHANDLER nor UHANDLER bit is set.
860 (__get_except_table): Likewise.
862 2000-08-23 Nick Clifton <nickc@redhat.com>
864 * config/arm/lib1funcs.asm: Replace upper case condition codes
865 with lower case versions.
867 * config/arm/arm.h (STRUCT_VALUE): Define.
868 (STRUCT_VALUE_REGNUM): Delete.
870 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
872 * cpphash.h (IN_I): New flag for directive table.
873 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
875 (_cpp_check_directive): If -fpreprocessed, execute directives
876 marked with IN_I. Issue no warnings in this case.
877 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
879 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
881 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
883 (check_format_info): Support printf 'I' flag; warn about it with
886 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
888 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
889 barrier can't be ignored by the alias analysis code.
891 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
893 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
894 works inside fixincl.
896 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
898 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
899 simplify_relational_operation() unless both operands are of
901 * cse.c (fold_rtx): Likewise.
903 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
905 * rtlanal.c (rtx_unstable_p): The pic register is stable
906 (within one function) and the actual rtx should be used
907 when checking the registers.
908 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
910 * alias.c (true_dependence, write_dependence_p): Fix
911 bug in previous patch.
913 * i386.c (ix86_GOT_alias_set): New.
914 (legitimize_pic_address): Use it.
916 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
917 only stable if its address is stable.
918 (rtx_varies_p): An unchanging MEM can't vary if
919 its address doesn't vary.
921 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
923 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
925 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
927 * vax.h (ASM_SPEC): Pass `-J' to assembler.
928 * x-vax-gcc: New file for bootstrapping with gcc.
929 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
930 * configure.in: Use x-vax-gcc with gcc.
931 * configure: Rebuilt.
933 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
935 * toplev.c (rest_of_compilation): Rebuild label notes after
936 post-reload splitting pass if new labels have been created.
938 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
940 * diagnostic.h (output_buffer_state): New macro.
941 * diagnostic.c (diagnostic_for_decl, sorry,
942 default_print_error_function, output_do_verbatim,
943 report_diagnostic, report_problematic_module): Use it.
945 (output_format): Use wrap_text instead of maybe_wrap_text.
947 2000-08-22 Nick Clifton <nickc@redhat.com>
949 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
950 Common code for ARM divide and modulus functions.
951 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
953 (FUNC_END): New macro: Common code at the end of the division and
955 (THUMB_FUNCTION_START): New macro: Common code at the start of
957 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
959 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
961 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
963 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
964 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
967 2000-08-22 Nick Clifton <nickc@redhat.com>
969 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
970 restorative additions, test for bottom bits of IP being set,
971 rather than relying upon the RORs not matching.
974 2000-08-22 David Edelsohn <edelsohn@gnu.org>
976 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
977 text_section() as appropriate instead of emitting text csect
979 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
980 (UNIQUE_SECTION): Define macro.
981 (ASM_OUTPUT_SECTION_NAME): Define macro.
982 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
983 on AIX if debugging and -fdata-sections always.
985 2000-08-22 Steven King <sxking@uswest.net>
987 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
989 (LDBL_MAX): Same here.
991 2000-08-22 Richard Henderson <rth@cygnus.com>
993 * flow.c (tidy_fallthru_edge): Update b->end properly.
995 2000-08-22 Stan Cox <scox@redhat.com>
997 * Makefile.in (OBJS): Add dependence.o.
998 * dependence.c: New file.
1000 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
1002 * calls.c (check_sibcall_argument_overlap_1): Adjust for
1004 (check_sibcall_argument_overlap): Likewise.
1006 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1008 * invoke.texi (SH Options): Document -m4-nofpu,
1009 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
1010 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
1012 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
1014 * c-common.c (check_format_info): Give the 'some locales' warning
1015 for strftime %Ey rather than the unconditional 'only last 2 digits
1018 2000-08-22 Richard Henderson <rth@cygnus.com>
1020 * alias.c (init_alias_analysis): Do not register
1021 struct_value_incoming_rtx or static_chain_rtx as pointing
1024 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
1026 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
1028 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
1030 * diagnostic.h (report_problematic_module): Declare.
1031 * diagnostic.c (report_problematic_module): New function.
1032 (report_error_function): Tweak.
1034 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1036 * stmt.c (expand_goto_internal, fixup_gotos): Only check
1037 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
1039 2000-08-21 Richard Henderson <rth@cygnus.com>
1041 * flow.c (calculate_global_regs_live): Mark frame pointer live
1042 everywhere before reload.
1044 2000-08-21 Jim Wilson <wilson@cygnus.com>
1046 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
1047 INTEL_EXTENDED_IEEE_FORMAT.
1048 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
1049 clear last two bytes of output FP value.
1051 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
1053 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
1055 2000-08-21 Jakub Jelinek <jakub@redhat.com>
1057 * unroll.c (loop_find_equiv_value): If ret is modified between
1058 insn and loop_start, ret might not be equivalent to reg.
1060 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
1062 * c-common.c (init_dollar_format_checking,
1063 maybe_read_dollar_number, finish_dollar_format_checking): New
1065 (dollar_arguments_used, dollar_arguments_count,
1066 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
1068 (check_format_info): Support $ formats for scanf and printf width
1069 and precision. Always increment format_chars to advance past the
1070 '*' of precision, not just when the format parameters are
1073 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1075 * mips.c (block_move_loop, expand_block_move,
1076 function_arg_partial_nregs, save_restore_insns, function_prologue,
1077 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
1079 (function_arg_advance, function_arg): Match argument to format
1082 2000-08-21 Nix <nix@esperi.demon.co.uk>
1084 * gcc.c (do_spec_1): Implement %j spec flag.
1085 Remove dead comment.
1087 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
1088 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
1089 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
1090 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
1092 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
1093 writable) instead of hardcoded value.
1095 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
1097 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
1100 * gcc.c (cc1_options): Do not process -o or run the assembler if
1102 * objc/lang-spec.h: Likewise.
1104 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
1106 * fixinc/fixincl.c (fix_with_system): Pipe the output of
1107 "external" fixes through `cat', to avoid truncating the input
1108 file by redirection.
1110 2000-08-21 Jakub Jelinek <jakub@redhat.com>
1112 * config/i386/i386.md (lea_general_1): Copy insn condition to split
1114 (lea_general_2, lea_general_3): Likewise.
1116 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1118 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
1119 warnings to user code.
1121 * c-lex.c (readescape, yylex): Likewise.
1123 * c-typeck.c (store_init_value, process_init_element): Likewise
1124 (c_expand_start_case): Format.
1126 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1128 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
1130 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
1131 and linker_endian_spec to endian_spec.
1132 (ENDIAN_SPEC): Add %{EB} and %{EL}.
1133 (LINK_SPEC): Remove %{EB} and %{EL}.
1134 (ASM_SPEC): Likewise. Use %(endian_spec).
1136 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
1138 * c-tree.h (flag_hosted): Move declaration from here...
1139 * c-common.h (flag_hosted): ... to here.
1140 (flag_noniso_default_format_attributes): New declaration.
1141 * c-decl.c (flag_noniso_default_format_attributes): New variable.
1142 (c_decode_option): Set it appropriately for options choosing
1143 language standard variant.
1144 * c-common.c (init_function_format_info): Only provide default
1145 format attributes if flag_hosted. Only provide the gettext
1146 formats if flag_noniso_default_format_attributes. Update
1148 (check_format_info): Disable treatment of %a as a scanf flag in
1151 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
1153 * c-common.c (scan_char_table): Add 'w' to flags for all formats
1155 (check_format_info): Set 'wide' for scanf format widths. Warn for
1156 a zero scanf width. Make the check for writing into a constant
1157 object at the first level of indirection; at later levels, warn if
1158 any type qualifiers are encountered.
1160 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
1162 * reload.c (reload_inner_reg_of_subreg): New function broken out of
1164 (push_reload): Use reload_inner_reg_of_subreg.
1165 (combine_reloads): Do not combine reloads if the input reload
1166 is a SUBREG in which the inner part will need reloading.
1168 * global.c (global_alloc): Avoid passing dumpfile argument to
1170 * toplev.c (rest_of_compilation): Likewise.
1171 * reload.h (reload): Remove dumpfile argument. Callers changed.
1172 (debug_reload, debug_reload_to_stream): Move prototypes here.
1173 * rtl.h (reload): Remove dumpfile argument.
1174 * reload.c (debug_reload): Remove prototype.
1175 (debug_reload_to_stream): Likewise.
1176 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
1179 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1181 * diagnostic.c (context_as_prefix): Export.
1182 (need_error_newline): Remove.
1183 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
1184 (error_module_changed, record_last_error_module,
1185 error_function_changed, record_last_error_function): New functions.
1186 (initialize_diagnostics): Default intialize
1187 lang_diagnostic_starter, lang_diagnostic_finalizer.
1188 (init_output_buffer): Tweak.
1189 (file_name_as_prefix): New function.
1190 (announce_function, default_print_error_function,
1191 report_error_function, set_diagnostic_context): Tweak.
1193 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
1195 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
1196 condition expression.
1198 2000-08-20 Richard Henderson <rth@cygnus.com>
1200 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
1202 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
1204 * cppinit.c (cpp_init): Set global flag when called.
1205 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
1207 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
1209 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
1210 before `process_directive' so that newlines won't be missed
1212 (cpp_printf): Increment `print->lineno' when newline is emitted.
1214 * cppmain.c (cb_ident): Likewise.
1215 (cb_define): Likewise.
1216 (cb_undef): Likewise.
1217 (cb_include): Likewise.
1218 (cb_def_pragma): Likewise.
1219 (dump_macros_helper): Likewise.
1221 2000-08-20 Richard Henderson <rth@cygnus.com>
1223 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
1224 assigned before a loop.
1226 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
1227 (ashrsi3, lshrsi3): Likewise.
1229 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
1231 * c-lang.c: #include diagnostic.h
1232 (c_tree_printer): New function.
1233 (lang_init): Initialize lang_printer.
1235 * Makefile.in (c-lang.o): Depends on diagnostic.h
1237 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
1239 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
1241 * diagnostic.c (default_diagnostic_starter,
1242 default_diagnostic_finalizer): New functions.
1243 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
1244 (pedwarn, pedwarn_with_file_and_line, error,
1245 error_with_file_and_line, fatal, warning,
1246 warning_with_file_and_line): Adjust call to report_diagnostic.
1247 (report_diagnostic): Rework.
1248 (set_diagnostic_context): New function.
1250 * diagnostic.h (struct diagnostic_context): New data structure.
1251 (diagnostic_message, diagnostic_argument_list,
1252 diagnostic_file_location, diagnostic_line_location,
1253 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
1254 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
1255 (set_diagnostic_context): Declare.
1256 (report_diagnostic): Change prototype.
1258 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
1260 * fix-header.c (main): Initialize cpplib.
1262 2000-08-19 Michael Meissner <meissner@redhat.com>
1264 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
1265 instructions in it before checking for indirect jumps.
1267 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
1268 in a indirect jump as a potential for conditional execution.
1270 * d30v.h (d30v_init_expanders): Don't declare here.
1271 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
1274 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
1276 * cpp.texi: Add @section for assertions.
1278 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
1280 * loop.c (scan_loop): Use CONST_CALL_P instead of
1281 checking for REG_LIBCALL / REG_RETVAL.
1283 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
1285 * reload1.c (reload_as_needed): Accept dumpfile argument,
1286 pass it to emit_reload_insns.
1287 (emit_reload_insns): Add new dumpfile argument. If non-null
1288 then dump the reloads for each insn into the dumpfile.
1289 (reload): Pass dumpfile to reload_as_needed.
1291 * invoke.texi: Clean up linux-gnu vs linux comments.
1293 2000-08-19 Richard Henderson <rth@cygnus.com>
1295 * config/ia64/ia64.c (reg_or_5bit_operand): New.
1296 (ia64_depz_field_mask): New.
1297 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
1298 (PREDICATE_CODES): Update.
1299 * config/ia64/ia64.md: Update commentary.
1300 (depz_internal): New.
1301 (ashlsi3): Implement directly.
1302 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
1303 (ashldi3): Use shladd.
1304 * config/ia64/ia64-protos.h: Update.
1306 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
1308 * toplev.c (independent_decode_option): Always process -g.
1309 Remove third argument, now unused. Adjust caller to match.
1311 2000-08-18 Richard Henderson <rth@cygnus.com>
1313 * combine.c (make_compound_operation): Break after creating
1316 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
1318 * cpplib.c (cpp_register_pragma_space): Just return if the
1319 namespace is already registered.
1321 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
1323 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
1324 constant amount. Do not generate ROTL instruction.
1326 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
1328 * config/sh/elf.h: Do not include sh/sh.h.
1329 * config/sh/rtems.h: Likewise.
1330 * config/sh/rtemself.h: Do not include sh/elf.h.
1331 * configure.in: Get them included with `tm_file's.
1332 * configure: Rebuilt.
1334 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
1335 * config/sh/sh.c (fpscr_set_from_mem): Use them.
1337 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1339 * stor-layout.c (compute_record_type): Don't use mode of single
1340 field as mode of record if not integer mode of same type.
1342 * regmove.c (perhaps_ends_bb_p): New function.
1343 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
1344 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
1345 (fixup_match_1): Likewise.
1346 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
1347 avoid signed/unsigned warnings.
1349 * function.c (fixup_var_refs_1, case MEM): Update CODE after
1352 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
1354 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
1355 (_cpp_trigraph_map): Declaration moved from cpplex.c
1357 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
1358 instead of 256. Use consistent test for designated initializers.
1359 (cpp_init): Initialize trigraph_map.
1360 (initialize_standard_includes, parse_option): Use memcmp
1363 * cpplex.c (init_trigraph_map): Remove.
1364 (trigraph_ok, trigraph_replace, lex_line): Refer to
1367 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
1368 (do_unassert): Remove unused "next" local.
1370 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
1372 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
1374 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
1377 2000-08-17 Richard Henderson <rth@cygnus.com>
1379 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
1380 the first insn in a sequence.
1382 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
1384 * alias.c (true_dependence, write_dependence_p): A read
1385 involving a label_ref or the constant pool doesn't create
1388 * rtl.h (unchanging): Improve documentation.
1390 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
1392 * cse.c (insert_regs): Remove unused `regno'.
1394 2000-08-17 Neil Booth <NeilB@earthling.net>
1396 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
1397 remove_dup_dirs. If qtail == brack, remove brack not
1399 (remove_dup_dir, remove_dup_dirs): New functions.
1401 2000-08-17 Neil Booth <NeilB@earthling.net>
1403 * cppinit.c (cpp_cleanup): Free include dir chains.
1404 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
1405 (do_unassert): Free the assert with _cpp_free_definition.
1406 * cppmacro.c (_cpp_free_definition): Free memory allocated for
1407 assertions. Make the node a T_VOID node.
1409 2000-08-17 Neil Booth <NeilB@earthling.net>
1411 * cppinit.c (path_include, append_include_chain):
1412 Remove 2nd parameter (struct cpp_pending *).
1413 (path_include, initialize_standard_includes, cpp_handle_option):
1414 Update callers appropriately.
1415 (cpp_handle_option): Use pend.
1417 2000-08-17 Neil Booth <NeilB@earthling.net>
1419 * cppinit.c (sort_options): Remove, put functionality in
1422 (initialize_builtins): Free memory.
1423 (cpp_start_read): Move init_IStable to cpp_init.
1425 * cpplib.h (cpp_init): New prototype.
1426 * cppmain.c (main): Call cpp_init.
1428 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
1430 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
1431 (rtx_unstable_p, rtx_varies_p): Process vectors.
1433 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
1435 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
1436 references to GLOBAL symbols. Use LOCAL where appropriate.
1438 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1440 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
1441 use t-aix41 when host == target.
1443 2000-08-16 Richard Henderson <rth@cygnus.com>
1445 * reload.c (push_secondary_reload): Revert last change.
1446 If we use a reload_in/out pattern, make the when the same
1447 as the primary reload.
1448 (find_reloads): Likewise.
1450 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
1452 * configure.in (libstdcxx-v3): Fix test.
1453 * configure: Regenerate.
1455 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1457 * calls.c (calls_function_1, expand_call): Only test
1458 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
1459 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1461 2000-08-16 Richard Henderson <rth@cygnus.com>
1463 * combine.c (simplify_shift_const): Revert previous two
1464 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
1465 before the main loop.
1467 2000-08-15 Richard Henderson <rth@cygnus.com>
1469 * combine.c (simplify_shift_const): Bound shift count when
1472 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1474 * calls.c (ECF_SP_DEPRESSED): New macro.
1475 (calls_function_1): Treat calling sp-depressed function as alloca.
1476 (emit_call_1): Don't adjust SP if calling sp-depressed function.
1477 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
1478 If sp-depressed, ensure block saves and restores SP.
1479 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
1481 * function.c (keep_stack_depressed): New function.
1482 (thread_prologue_and_epilogue_insns): Call it.
1483 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
1484 to print DECL_OFFSET_ALIGN.
1485 Print no-force-blk and transparent-union flags properly.
1486 * stmt.c (expand_goto_internal): Don't restore stack if last block
1487 and function returns with sp depressed.
1488 (fixup_gotos): Likewise.
1489 (save_stack_pointer): New function, from code in expand_decl.
1490 (expand_decl): Call new function.
1491 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
1492 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
1493 (save_stack_pointer): New declaration.
1495 * diagnostic.c (fatal_function): New variable.
1496 (set_fatal_function): New function.
1498 * diagnostic.h (set_fatal_function): New declaration.
1500 2000-08-15 William Cohen <wcohen@redhat.com>
1502 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
1503 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
1504 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
1506 2000-08-15 Richard Henderson <rth@cygnus.com>
1508 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
1510 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
1512 * arm.c (arm_function_ok_for_sibcall): New function.
1513 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
1514 * arm.md (call expanders): Don't check here for calls that can't
1517 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
1519 * arm.md (splits generating cond_exec): Disable.
1521 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
1523 * arm/linux-elf.h (text_section): Delete declaration.
1525 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
1527 ARM support for unordered FP operations.
1528 * arm-protos.h (arm_comparison_operator): Declare.
1529 * arm.c (arm_comparison_operator): New function.
1530 (arm_select_cc_mode): Add unordered comparison codes.
1531 (get_arm_condition_code): Likewise.
1532 (arm_final_prescan_insn): Can't handle unordered jumps that can't
1533 be done in one insn.
1534 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
1535 * arm.md (all uses of comparison_operator): Replace with
1536 arm_comparison_operator.
1537 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
1539 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
1542 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1544 * gthr-posix.h: Conditionally include <sched.h>; include
1545 <config.h> from libobjc/.
1547 2000-08-14 Richard Henderson <rth@cygnus.com>
1549 * config/i386/i386.c (legitimize_pic_address): Use Pmode
1552 2000-08-14 Richard Henderson <rth@cygnus.com>
1554 * configure.in (ia64-*): Set float_format for i386 long double.
1556 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
1557 as we would for i386 XFmode.
1558 (PUT_REAL): Likewise.
1559 (endian, ereal_atof, real_value_truncate): Likewise.
1560 (ereal_isneg, toe64, etens, make_nan): Likewise.
1561 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
1563 * config/ia64/ia64-protos.h: Update.
1564 * config/ia64/ia64.c (general_tfmode_operand): New.
1565 (destination_tfmode_operand): New.
1566 (tfreg_or_fp01_operand): New.
1567 (ia64_split_timode): New.
1568 (spill_tfmode_operand): New.
1569 (ia64_expand_prologue): Use TFmode not XFmode.
1570 (ia64_expand_epilogue): Likewise.
1571 (ia64_function_arg): Likewise.
1572 (ia64_function_arg_advance): Likewise.
1573 (ia64_return_in_memory): Likewise.
1574 (ia64_function_value): Likewise.
1575 (ia64_print_operand): Likewise.
1576 (ia64_register_move_cost): Set GR<->FR to 5.
1577 (ia64_secondary_reload_class): Get GR for TImode memory op.
1578 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
1579 (ROUND_TYPE_ALIGN): Remove.
1580 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
1581 (INTEL_EXTENDED_IEEE_FORMAT): Define.
1582 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
1583 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
1584 (MODES_TIEABLE_P): Use TFmode, not XFmode.
1585 (CLASS_MAX_NREGS): Likewise.
1586 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
1587 (PREDICATE_CODES): Update.
1588 * config/ia64/ia64.md (movti): New.
1589 (movti_internal): Use a clobber for memory alternatives.
1590 (reload_inti, reload_outti): New.
1591 (movsfcc_astep): Predicate properly.
1592 (movdfcc_astep): Likewise.
1595 (extendsftf2, extenddftf2): New.
1596 (trunctfsf2, trunctfdf2): New.
1597 (floatditf2, fix_trunctfdi2): New.
1598 (floatunsditf2, fixuns_trunctfdi2): New.
1599 (addtf3, subtf3, multf3, abstf2): New.
1600 (negtf2, nabstf2, mintf3, maxtf3): New.
1601 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
1603 (fr_spill): Use TFmode, not XFmode.
1604 (fr_restore): Likewise.
1605 * config/ia64/lib1funcs.asm (__divtf3): New.
1606 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
1608 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1610 * cse.c (fold_rtx): Avoid empty body in an if-statement.
1612 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
1613 `U' integer constant suffix.
1615 * dwarf2out.c (add_subscript_info): Avoid empty body in an
1618 * sparc/sol2.h (__enable_execute_stack): Prototype.
1620 2000-08-14 David Edelsohn <edelsohn@gnu.org>
1622 * collect2.c: Remove use of AIX import file.
1624 * longlong.h: Test ARCH_PWR not ARCH_POWER.
1626 * rs6000.c (print_operand, case 'E'): Add else.
1628 2000-08-14 Richard Henderson <rth@cygnus.com>
1630 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
1631 (movdi_symbolic): New.
1633 2000-08-14 Jim Wilson <wilson@cygnus.com>
1635 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
1636 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
1637 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
1640 2000-08-14 Richard Henderson <rth@cygnus.com>
1642 * expr.c (emit_group_load): Don't force constants into registers.
1643 Special case source already in the correct mode.
1645 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
1647 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
1648 * fixinc/inclhack.def: Likewise.
1649 * fixinc/mkfixinc.sh: Likewise.
1650 * configure: Regenerate.
1651 * fixinc/fixincl.x: Regenerate.
1652 * install.texi: Document equivalence of linux and linux-gnu.
1654 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1656 * cse.c (insert_regs): Also in REG case: When finding an invalid
1657 value, and we make a new quantity, make sure that it won't be
1658 mistaken by for a valid one by mention_regs.
1660 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
1662 * h8300.md: Remove obsolete peepholes.
1664 2000-08-13 Kazu Hirata <kazu@hxi.com>
1666 * invoke.texi (H8/300 Options): Fix typos.
1667 * config/h8300.c: Fix formatting.
1668 * config/h8300.h: Fix comment typos.
1669 (OVERRIDE_OPTIONS): Fix formatting.
1671 * function.c: Fix formatting.
1673 * cse.c: Fix formatting.
1675 2000-08-13 Geoff Keating <geoffk@cygnus.com>
1677 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
1678 (attempt_auto_inc): Suppress parentheses warning.
1679 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
1680 * loop.c (load_mems): Remove `u' suffix in two places.
1681 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
1683 * config/rs6000/rs6000.h: Likewise.
1684 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
1685 __eabi dummy routine.
1686 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
1689 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
1690 not put stuff in .sdata unnecessarily.
1691 (rs6000_unique_section): New function.
1692 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
1693 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
1695 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
1696 arrays in C99. Don't try to look at DECL_REGISTER of a
1697 COMPONENT_REF. Don't complain twice about the same error.
1699 * fixinc/inclhack.def (aix_pthread): New fix.
1700 (aix_sysmachine): New fix.
1701 * fixinc/fixincl.x: Regenerate.
1703 * expr.c (expand_expr): Call convert_modes when turning a large
1704 multiply into a small one.
1706 2000-08-12 Geoff Keating <geoffk@cygnus.com>
1708 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
1709 the tree structure an exponent rather than an explicit alignment
1710 so it doesn't overflow.
1711 (SET_DECL_OFFSET_ALIGN): New macro.
1712 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
1713 rather than DECL_OFFSET_ALIGN.
1714 (place_field): Likewise.
1715 * expmed.c (store_bit_field): Abort on align==0 to avoid
1716 antisocial machine behaviour.
1718 2000-08-12 Richard Henderson <rth@cygnus.com>
1720 * sibcall.c (uses_addressof): Accept both addressof and
1721 current_function_internal_arg_pointer inside a mem.
1722 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
1723 if current_function_uses_addressof.
1724 * stmt.c (expand_return): Kill tail recursion and HAVE_return
1727 2000-08-11 Richard Henderson <rth@cygnus.com>
1729 * config/ia64/ia64.md (addsi3): Remove expander.
1730 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
1731 (*addsi3_shladd): New.
1733 2000-08-11 Richard Henderson <rth@cygnus.com>
1735 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
1736 (do_restore): Likewise.
1737 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
1738 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
1739 (rtx_needs_barrier): Track actual bit manipulation for
1740 ar.unat moves, gr_spill, and gr_restore.
1741 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
1742 (process_set): Don't handle varargs spills.
1743 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
1744 .mem.offset here instead of in process_set.
1745 (gr_restore): Likewise.
1747 2000-08-11 Richard Henderson <rth@cygnus.com>
1749 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
1751 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
1753 * gcc.texi (The Configuration File): Document
1754 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
1755 UPDATE_PATH_HOST_CANONICALIZATION.
1757 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1759 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
1760 unprototyped function pointer casts on integer constants.
1762 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
1764 * fixproto: Recognize DOS paths with drive letters as absolute paths.
1766 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
1768 * extend.texi (Volatiles): Fix typos.
1770 2000-08-11 Kazu Hirata <kazu@hxi.com>
1772 * flow.c: Fix formatting.
1774 2000-08-11 Richard Henderson <rth@cygnus.com>
1776 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
1777 pattern, always allocate a tertiary scratch register.
1779 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
1780 (reload_inhi): Likewise.
1782 2000-08-11 Richard Henderson <rth@cygnus.com>
1784 * function.c (put_reg_into_stack): Allow type to be NULL.
1785 (schedule_fixup_var_refs): Likewise.
1786 (gen_mem_addressof): Allow decl to be NULL.
1787 (put_addressof_into_stack): Likewise.
1789 * flow.c (merge_blocks_nomove): Be more careful about
1790 locating the beginning of block A.
1792 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
1794 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1799 * config.in: Reverted the check for <sched.h>.
1801 2000-08-10 Chris Demetriou <cgd@sibyte.com>
1803 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
1804 macros define the name of CTOR and DTOR sections.
1805 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
1806 DTOR_LIST_END): Change to use attributes to specify
1808 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
1809 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
1810 DTOR_LIST_END): Same as in mips/elf.h.
1812 2000-08-10 Drew Moseley <dmoseley@redhat.com>
1814 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
1815 disabling just crt0.o.
1817 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
1819 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
1820 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
1821 (EXTRA_SPECS): Add them.
1822 * arm/lib1funcs.asm: Support builds for interworking.
1823 Use macros to eliminate duplicated pieces of code.
1825 2000-08-10 Kazu Hirata <kazu@hxi.com>
1827 * h8300.c (expand_a_rotate): New.
1828 (emit_a_rotate): Likewise.
1829 (h8300_adjust_insn_length): Add support for the rotate insns.
1830 * h8300.md (rotlqi3): New.
1831 (*rotlqi3_1): Likewise.
1832 (rotlhi3): Likewise.
1833 (*rotlhi3_1): Likewise.
1834 (rotlhi3): Likewise.
1835 (*rotlhi3_1): Likewise.
1836 * h8300-proto.h: Add prototypes for expand_a_rotate and
1839 * h8300.c: Fix comment typos.
1840 (dosize): Declare the variable amount as unsigned.
1841 (get_shift_alg): Fix a comparison between signed and unsigned.
1842 (emit_a_shift): Likewise.
1843 (h8300_adjust_insn_length): Simplify the code.
1845 * c-decl.c: Fix formatting.
1847 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1849 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
1850 warning about non-traditional numeric constant suffixes.
1852 * cppexp.c (parse_number): Likewise.
1854 * invoke.texi: (-Wtraditional): Document new behavior.
1856 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1858 * gthr-posix.h: Include auto-host.h. Conditionally include
1860 * configure.in: Check for the <sched.h> header file.
1861 * config.in: Added define for HAVE_SCHED_H.
1863 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1865 * c-typeck.c (process_init_element): For -Wtraditional, warn about
1866 initialization of unions.
1868 * invoke.texi (-Wtraditional): Document new behavior.
1870 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
1872 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
1873 instead of extra_c_flags.
1874 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
1875 * configure: Regenerate.
1876 * config.in: Regenerate.
1878 * cpperror.c (cpp_type2name): New function.
1879 * cpplex.c (lex_line): If we issued an error for an invalid
1880 preprocessing directive, discard that logical line.
1881 * cpplib.c (do_line): Call a hook function if the current file
1882 is renamed by #line.
1883 (do_ident): Pass the contents of the string, not the entire
1884 token, to the callback function.
1885 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
1886 (cb.rename_file): New hook function.
1887 (cb.ident): Adjust prototype.
1888 (cpp_type2name): Prototype.
1889 * cppmacro.c (dump_macro_args): Correct precedence lossage.
1891 * cppmain.c (cb_ident): Update for changed interface.
1892 (cb_rename_file): New function.
1893 (main): Set rename callback.
1895 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
1897 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
1898 multi-word registers.
1900 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
1902 * c-common.c (combine_strings, check_format_info): Refer to ISO C
1903 or ISO C89 instead of ANSI C.
1904 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
1905 build_enumerator, do_case): Likewise.
1906 * c-lex.c (parse_float, yylex): Likewise.
1907 * c-parse.in: Likewise.
1908 * c-typeck.c (common_type, build_array_ref, build_binary_op,
1909 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
1910 build_c_cast, convert_for_assignment, set_init_index,
1911 set_init_label, c_expand_start_case): Likewise.
1912 * toplev.c (documented_lang_options, display_help): Likewise.
1914 2000-08-08 Kazu Hirata <kazu@hxi.com>
1916 * h8300.c: Fix formatting.
1917 * h8300.h: Likewise.
1918 * h8300.md: Likewise.
1919 (movsi_h8300hs): Fix formatting of the resulting assembly code.
1921 * reload1.c: Fix formatting.
1923 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
1925 * alpha/alpha.c (alpha_emit_xfloating_libcall):
1926 Use GEN_CALL_VALUE define.
1927 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
1928 * clipper/clipper.md (untyped_call): Likewise.
1929 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
1930 * fx80/fx80.md (untyped_call): Likewise.
1931 * mips/mips.md (untyped_call): Likewise.
1932 * ns32k/ns32k.md (untyped_call): Likewise.
1933 * pa/pa.md (untyped_call): Likewise.
1934 * romp/romp.md (untyped_call): Likewise.
1935 * sparc/sparc.md (untyped_call): Likewise.
1937 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1939 * config/i860/i860.c (singlemove_string): Do not generate assembler
1940 pseudo instructions that must be expanded (that is, with signed
1941 constants larger than 16 bits).
1943 2000-08-08 Richard Henderson <rth@cygnus.com>
1945 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
1946 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
1947 (init_propagate_block_info): Don't kill memory stores at -O0.
1948 (mark_set_1, mark_used_regs): Likewise.
1950 2000-08-08 David Edelsohn <edelsohn@gnu.org>
1952 * rs6000.c (optimization_options): Decorate 'level' as
1954 (mask64_operand): Remove sign-extend thinko.
1955 (rldic_operand): New function.
1956 (load_multiple_operation): regno's are unsigned ints.
1957 (store_multiple_operation): Likewise.
1958 (lmw_operation): Likewise.
1959 (stmw_operation): Likewise.
1960 (includes_lshift_p): shift_mask is unsigned int.
1961 (includes_lshift64_p): New function.
1962 (addrs_ok_for_quad_peep): unsigned int reg1.
1963 (print_operand): Consistently add "else" after
1964 output_operand_lossage().
1965 (print_operand, case 'b'): Fold in case 'W'.
1966 (print_operand, case 'W'): Print rldic MB value.
1967 (output_epilogue): Update Objective-C language string.
1968 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
1969 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
1970 * rs6000.md (ashldi3): Add rldic instruction.
1971 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
1972 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
1975 2000-08-08 Richard Henderson <rth@cygnus.com>
1977 * config/ia64/ia64-protos.h: Remove duplicates. Update
1978 for massive code rearrangements.
1979 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
1980 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
1981 (ia64_local_regs, ia64_need_regstk): Remove.
1982 (ar_ccv_reg_operand): New.
1983 (ia64_gp_save_reg): New.
1984 (struct ia64_frame_info): Combine most of the size elements;
1985 add new gr save elements.
1986 (find_gr_spill): New.
1987 (next_scratch_gr_reg): New.
1988 (mark_reg_gr_used_mask): New.
1989 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
1990 to GR backing store regs when possible.
1991 (ia64_initial_elimination_offset): New.
1992 (ia64_rap_fp_offset): Remove.
1993 (save_restore_insns): Remove.
1994 (setup_spill_pointers): New.
1995 (finish_spill_pointers): New.
1996 (spill_restore_mem): New.
1997 (do_spill, do_restore): New.
1998 (ia64_expand_prologue): Rewrite to use them.
1999 (ia64_expand_epilogue): Likewise.
2000 (ia64_direct_return): Update for current_frame_info changes.
2001 (ia64_function_prologue): Simplify .prologue emission. Emit
2003 (ia64_setup_incoming_varargs): Don't ever emit rtl.
2004 (ia64_dbx_register_number): New.
2005 (ia64_initialize_trampoline): New.
2006 (ia64_secondary_reload_class): Request GR_REGS for integer
2007 arithmetic destined for FR_REGS.
2008 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
2009 (ia64_mark_machine_status): Mark ia64_gp_save.
2010 (rws_access_regno): Rename from rws_access_reg; don't treat
2011 predicates specially.
2012 (rws_access_reg): New. Update all callers.
2013 (rtx_needs_barrier): Remove dead unspecs.
2014 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
2015 (ia64_encode_section_info): Silence signed/unsigned warnings.
2016 (spill_offset, sp_offset, spill_offset_emitted): Remove.
2017 (tmp_reg, tmp_saved): Remove.
2018 (process_set): Rewrite to expect complicated bits via
2019 REG_FRAME_RELATED_EXPR.
2020 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
2021 in the use of ar.ccv; never set RTX_UNCHANGING_P.
2022 (ia64_expand_op_and_fetch): Likewise.
2023 (ia64_expand_compare_and_swap): Likewise.
2024 (ia64_expand_builtin): Likewise.
2025 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
2026 (FIRST_PSEUDO_REGISTER): Update.
2027 (AR_M_REGNO_P): Update.
2028 (FIXED_REGS): Don't mark three local registers as used.
2029 (EXTRA_CC_MODES): New.
2030 (SELECT_CC_MODE): New.
2031 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
2032 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
2033 (FRAME_GROWS_DOWNWARD): Unset.
2034 (STARTING_FRAME_OFFSET): Zero.
2035 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
2036 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
2037 (HARD_FRAME_POINTER_REGNUM): New.
2038 (CAN_DEBUG_WITHOUT_FP): Define.
2039 (TRAMPOLINE_TEMPLATE): Remove.
2040 (TRAMPOLINE_SIZE): Lower to 32.
2041 (TRAMPOLINE_ALIGNMENT): Lower to 64.
2042 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
2043 (PREDICATE_CODES): Update.
2044 (struct machine_function): Add ia64_gp_save.
2045 * config/ia64/ia64.md: Purge unused unspecs.
2046 (movsi patterns): Allow moves to/from AR_M_REGS.
2047 (movdi patterns): Allow moves to/from p0.
2048 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
2049 (gr_spill, gr_restore): Indicate ar.unat read/written.
2050 (nonlocal_goto): Don't pass old frame_pointer.
2051 (nonlocal_goto_receiver): Remove.
2052 (exception_receiver): New.
2053 (builtin_setjmp_setup): New.
2054 (builtin_setjmp_receiver): New.
2055 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
2056 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
2057 (__ia64_restore_stack_nonlocal): Likewise.
2058 (__ia64_trampoline): New.
2059 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
2061 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
2063 2000-08-08 Richard Henderson <rth@cygnus.com>
2065 * frame.h (ia64_frame_state): Add my_psp.
2066 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
2067 (__throw): Pass it in. Don't clobber r7.
2068 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
2069 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
2070 and nothing to do with sp.
2071 (normalize_reg_loc): Use frame->my_psp.
2072 (frame_translate): Handle frame-pointer-less functions. Set
2073 spill_base correctly, in absence of being told.
2074 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
2075 (__ia64_backtrace_helper): New sp argument. Use
2076 builtin_return_address instead of label addresses.
2077 (print_record) [mem_stack_v]: No size member.
2079 2000-08-08 Richard Henderson <rth@cygnus.com>
2081 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
2083 2000-08-08 Richard Henderson <rth@cygnus.com>
2085 * tm.texi (LOCAL_REGNO): Document.
2086 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
2087 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
2088 * reload1.c (reload): Likewise when considering nonlocal labels.
2090 * config/ia64/ia64.h (LOCAL_REGNO): New.
2091 * config/sparc/sparc.h (LOCAL_REGNO): New.
2093 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
2095 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
2097 2000-08-07 Nick Clifton <nickc@redhat.com>
2099 * config/mips/mips.c: Fix compile time warning messages.
2100 * config/mips/mips-protos.h: Add prototype for equality_op.
2102 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
2104 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
2106 * mn10300.md: Use nonimmediate_operand instead of general_operand
2109 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
2111 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
2113 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
2114 * sh.c (expand_block_move): Break long lines.
2115 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
2116 * sh.md (mulsi3): Likewise.
2117 (movdi): Adjust spacing.
2119 2000-08-07 Richard Henderson <rth@cygnus.com>
2121 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
2122 * expr.c (emit_group_store): Don't set it.
2124 2000-08-07 Kazu Hirata <kazu@hxi.com>
2126 * invoke.texi (Options for Debugging Your Program or GCC): Remove
2127 duplicate entries for 'w' and 'z'.
2129 * flow.c: Fix a comment typo.
2131 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2133 * c-parse.in: Changed the language string for Objective-C to "GNU
2136 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2138 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
2139 to improve the Posix thread support for Objective-C.
2141 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
2143 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
2144 CTI_UNSIGNED_PTRDIFF_TYPE.
2145 (signed_size_type_node): Define.
2146 (unsigned_ptrdiff_type_node): Define.
2147 * c-decl.c (init_decl_processing): Create the
2148 signed_size_type_node and unsigned_ptrdiff_type_node types.
2149 * c-common.c (T_SC): Define.
2152 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
2153 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
2155 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
2156 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
2157 flags for %c, %s and %[.
2158 (check_format_info): Only allow leniency for signedness of targets
2159 of character pointers (when pedantic) for formats flagged with
2160 "c", so for strings but not for %hh formats. When pedantic, don't
2161 allow character pointers to substitute for void pointers if a
2162 second level of indirection is present.
2164 2000-08-06 Kazu Hirata <kazu@hxi.com>
2166 * invoke.texi (Options for Debugging Your Program or GCC): Update
2167 the names of dump files.
2169 * h8300.c (dosize): Rearrange code for conciseness.
2170 (split_adds_subs): Likewise.
2172 * loop.c: Fix formatting.
2174 * dwarf2out.c: Fix formatting.
2176 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
2178 * expr.c: Fix formatting.
2180 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2182 * rs6000.c (rs6000_maybe_dead): Prototype.
2184 2000-08-06 Richard Henderson <rth@cygnus.com>
2186 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
2187 HAVE_nonlocal_goto as well.
2188 * config/i960/i960.md (nonlocal_goto): Don't do it here.
2189 * config/pj/pj.md (nonlocal_goto): Likewise.
2191 2000-08-07 Michael Hayes <mhayes@cygnus.com>
2193 * loop.c (try_swap_copy_prop): New function.
2194 (load_mems): Rename copies to load_copies and add new regset
2195 store_copies. Check for sets of shadow registers and mark
2196 in store_copies. Call try_swap_copy_prop for registers
2197 marked in store_copies.
2199 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2201 * objc/objc-act.c: New command line option -fconstant-string-class
2202 to allow specifying a user defined constant string class,
2203 different from NXConstantString.
2205 * toplev.c: Moved the Objective-C specific options to
2206 objc/lang-options.h.
2208 * objc/lang-options.h: Moved the Objective-C specific options from
2209 toplev.c. Added -fconstant-string-class.
2211 2000-08-05 Chris Demetriou <cgd@sibyte.com>
2213 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
2214 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
2215 __CTOR_LIST__ from func_ptr array to just func_ptr, to
2216 avoid extra alignment imposed on arrays.
2217 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
2218 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
2220 * mips.h: Clean up comments and spacing near MASKs.
2221 (TARGET_UNIX_ASM): Delete.
2222 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
2223 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
2226 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
2228 * c-common.c (print_char_table): Add entries for the X/Open '
2229 format flag (print decimals with locale's thousands grouping
2230 character). Make %C expect wint_t.
2231 (check_format_info): If pedantic, warn when the %n$ operand
2232 number form is used. Allow for the ' flag; warn about it if
2235 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
2237 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
2238 type is a float mode, cfun->decl's return type is not, and
2239 TARGET_FLOAT_RETURNS_IN_80387.
2241 2000-08-04 Andreas Schwab <schwab@suse.de>
2243 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
2244 token list, which are always `#' and `pragma'.
2246 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2248 * tree.c (tree_expr_nonnegative_p): Move to...
2249 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
2250 (rtl_expr_nonnegative_p): New.
2251 * tree.h: Add prototype for rtl_expr_nonnegative_p.
2253 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
2254 CONST_DOUBLE_CHAIN: Move to...
2255 * rtl.h: ...here. Use XCINT/XCEXP.
2257 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
2258 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
2259 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
2262 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
2264 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2266 * config/c4x/c4x.md (return_indirect_internal): New.
2267 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
2269 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
2271 * c-common.c (time_char_table): Mark up formats added in C99 and
2272 make other corrections. %D and %g were added in C99. %Og is an
2273 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
2274 C99. %e was added in C99. %Oj is an extension. %G and %z are in
2275 C99 rather than GNU extensions, but %OG and %Oz are extensions.
2276 %h was added in C99. %C was added in C99. %OY and %OC are
2277 extensions. Add the C99 format %F.
2278 (check_format_info): If pedantic and not in C99 mode, warn for C99
2281 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2283 * function.c (schedule_fixup_var_refs): New function, broken out
2284 of put_reg_into_stack.
2285 (put_reg_into_stack): Use it.
2286 (put_var_into_stack): In CONCAT case, fixup up references for
2287 components only after fixing up references to the whole concat.
2289 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2291 * alias.c (mark_constant_function): Use INSN_P.
2292 (init_alias_analysis): Likewise.
2293 * combine.c (combine_instructions): Use INSN_P.
2294 (can_combine_p): Likewise.
2295 (try_combine): Likewise.
2296 (distribute_notes): Likewise.
2297 (distribute_links): Likewise.
2298 * cse.c (cse_around_loop): Use INSN_P.
2299 (invalidate_skipped_block): Likewise.
2300 (cse_set_around_loop): Likewise.
2301 (cse_end_of_basic_block): Likewise.
2302 (delete_trivially_dead_insns): Likewise.
2303 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
2304 (unshare_all_rtl_1): Likewise.
2305 (next_cc0_user): Likewise.
2306 (try_split make_insn_raw): Likewise.
2307 (remove_unnecessary_notes): Likewise.
2308 * final.c (shorten_branches): Use INSN_P.
2309 (leaf_renumber_regs): Likewise.
2310 (leaf_renumber_regs_insn): Likewise.
2311 * flow.c (find_label_refs): Use INSN_P.
2312 (verify_wide_reg): Likewise.
2313 (notice_stack_pointer_modification): Likewise.
2314 (count_or_remove_death_notes): Likewise.
2315 (verify_flow_info): Likewise.
2316 (clear_log_links): Likewise.
2317 * function.c (fixup_var_refs_insns): Use INSN_P.
2318 (compute_insns_for_mem): Likewise.
2319 * gcse.c (alloc_gcse_mem): Use INSN_P.
2320 (compute_sets): Likewise.
2321 (compute_hash_table): Likewise.
2322 (classic_gcse): Likewise.
2324 (insert_insn_end_bb): Likewise.
2325 (delete_null_pointer_checks_1): Likewise.
2326 * global.c (expand_preferences): Use INSN_P.
2327 (build_insn_chain): Likewise.
2328 * graph.c (node_data): Use INSN_P.
2329 * haifa-sched.c (priority): Use INSN_P.
2330 (rm_line_notes): Likewise.
2331 (rm_other_notes): Likewise.
2332 (find_insn_reg_weight): Likewise.
2333 (init_target_units): Likewise.
2334 (schedule_block): Likewise.
2335 (compute_block_forward_dependences): Likewise.
2336 (debug_dependencies): Likewise.
2337 (set_priorities): Likewise.
2338 * integrate.c (function_cannot_inline_p): Use INSN_P.
2339 (save_parm_insns): Likewise.
2340 (copy_insn_list): Likewise.
2341 * jump.c (mark_all_labels): Use INSN_P.
2342 (never_reached_warning): Likewise.
2343 * lcm.c (optimize_mode_switching): Use INSN_P.
2344 * local-alloc.c (validate_equiv_mem): Use INSN_P.
2345 (memref_used_between_p): Likewise.
2346 (update_equiv_regs): Likewise.
2347 (block_alloc): Likewise.
2348 (no_conflict_p): Likewise.
2349 * loop.c (scan_loop): Use INSN_P.
2350 (find_and_verify_loops): Likewise.
2351 (count_loop_regs_set): Likewise.
2352 (loop_reg_used_before_p): Likewise.
2353 (strength_reduce): Likewise.
2354 (recombine_givs): Likewise.
2355 (check_dbra_loop): Likewise.
2356 (load_mems): Likewise.
2357 (try_copy_prop): Likewise.
2358 * print-rtl.c (print_rtx): Use INSN_P.
2359 * recog.c (find_single_use): Use INSN_P.
2360 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
2361 (next_flags_user): Likewise.
2362 (swap_rtx_condition): Likewise.
2363 * regmove.c (mark_flags_life_zones): Use INSN_P.
2364 (optimize_reg_copy_1): Likewise.
2365 (optimize_reg_copy_2): Likewise.
2366 (optimize_reg_copy_3): Likewise.
2367 (reg_is_remote_constant_p): Likewise.
2368 (fixup_match_2): Likewise.
2369 (regmove_optimize): Likewise.
2370 (fixup_match_1): Likewise.
2371 * regrename.c (build_def_use): Use INSN_P.
2372 (replace_reg_in_block): Likewise.
2373 (consider_use): Likewise.
2374 * reload.c (find_equiv_reg): Use INSN_P.
2375 * reload1.c (reload): Use INSN_P.
2376 (maybe_fix_stack_asms): Likewise.
2377 (calculate_needs_all_insns): Likewise.
2378 (reload_as_needed): Likewise.
2379 (emit_output_reload_insns): Likewise.
2380 (delete_address_reloads_1): Likewise.
2381 (reload_cse_regs_1): Likewise.
2382 (reload_combine): Likewise.
2383 (reload_cse_move2add): Likewise.
2384 * reorg.c (redundant_insn): Use INSN_P.
2385 (dbr_schedule): Likewise.
2386 * resource.c (find_dead_or_set_registers): Use INSN_P.
2387 (mark_target_live_regs): Likewise.
2388 * rtlanal.c (reg_used_between_p): Use INSN_P.
2389 (reg_referenced_between_p): Likewise.
2390 (reg_set_between_p): Likewise.
2391 (reg_set_p): Likewise.
2392 (single_set): Likewise.
2393 (multiple_sets): Likewise.
2394 (find_last_value): Likewise.
2395 (reg_set_last): Likewise.
2396 (find_reg_note): Likewise.
2397 (find_regno_note): Likewise.
2398 * sibcall.c (sequence_uses_addressof): Use INSN_P.
2399 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
2400 * ssa.c (find_evaluations): Use INSN_P.
2401 (rename_block): Likewise.
2402 (rename_equivalent_regs): Likewise.
2403 * unroll.c (loop_find_equiv_value): Use INSN_P.
2404 (set_dominates_use): Likewise.
2405 * varasm.c (mark_constant_pool): Use INSN_P.
2406 (mark_constants): Likewise.
2407 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
2408 (alphaev4_next_group): Likewise.
2409 (alphaev5_next_group): Likewise.
2410 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
2411 (c4x_rptb_rpts_p): Likewise.
2412 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
2413 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
2414 (rs6000_adjust_priority): Likewise.
2415 * config/sh/sh.c (sh_loop_align): Use INSN_P.
2416 (machine_dependent_reorg): Likewise.
2417 (split_branches): Likewise.
2418 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
2420 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
2422 * combine.c (recog_for_combine): Remove the old notes
2423 prior to attempting to recognize the new pattern.
2424 (distribute_notes): Ignore REG_NONNEG notes.
2426 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
2428 * varasm.c (output_constructor): Add .align 0 for packed vars.
2430 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2432 * configure.in: Use default thread_file even when enable_threads is
2433 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
2434 * configure: Rebuilt.
2436 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
2438 2000-08-04 Donn Terry (donnte@microsoft.com)
2440 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
2442 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
2444 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
2445 Delete code that conditionally modifies 'version'.
2446 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
2447 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
2448 * gcc.c (main): Use it.
2449 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
2450 * prefix.c (update_path): Use it.
2451 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
2452 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
2453 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
2455 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
2456 (SUBTARGET_SWITCHES): Adjust.
2457 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
2459 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
2461 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
2463 * c-common.h (flag_isoc94): Declare.
2464 * c-decl.c (flag_isoc94): Define.
2465 (c_decode_option): Set flag_isoc94 as appropriate.
2466 * c-common.c (T_PD, T_IM, T_UIM): Define.
2467 (format_char_info): Add tlen and jlen.
2468 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
2470 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
2472 (time_char_table): Add NULL entries for %t and %j.
2473 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
2474 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
2475 Warn for printf %lf if pedantic and not C99. Don't warn for empty
2476 precision. Allow precision argument to be unsigned int. If
2477 pedantic, warn for %p passed an argument not a pointer to possibly
2478 qualified void or a possibly qualified character type, and for
2479 pointer targets of the wrong sign, except for character pointers.
2481 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
2483 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
2484 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
2485 (wint_type_node): Define.
2486 * c-decl.c (WINT_TYPE): Define.
2487 (init_decl_processing): Create the wint_type_node type.
2488 * c-common.c (T_WI): Define.
2489 (print_char_table): Use T_WI for %lc format.
2491 2000-08-04 Bruce Korb <bkorb@gnu.org>
2493 * fixinc/: Verified that the MSDOS patch does not break
2494 the UNIX functionality and applied the next three patches
2497 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
2499 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
2500 output file with the temporary one by appending ".X" to generate
2501 the temporary fuile's name. If the output file already has an
2502 extension, replace it with ".X".
2504 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
2505 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
2506 reallocate the command buffer while copying the command-line
2507 argument. Redirect the output directly to the temporary file,
2508 instead of going through another temporary file.
2509 (process): Close the temporary file before unlinking it.
2510 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
2511 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
2512 (run_compiles): Pass p_fixd argument to machine_matches, as it
2515 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
2516 environment, assume there are no symlinks in the include
2517 directory. When cleaning up the DONE files, look for them
2518 case-insensitively. Don't try to remove symlinks if they aren't
2521 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
2522 all callers changed. Declare pz "const char *", to avoid compiler
2525 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
2526 Change prototype of make_raw_shell_str.
2528 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
2530 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
2531 (initialize) [__MSDOS__]: Use tempnam.
2532 (initialize): Don't use SIGPIPE if it is not defined.
2534 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
2537 2000-07-25 Bruce Korb <bkorb@gnu.org>
2539 * fixinc/fix*.[ch]: substantially reworked to make it possible
2540 to run this program without using fork(2) or pipe(2) (i.e. in
2543 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
2545 * cppdefault.h (WINT_TYPE): Define.
2546 * cppinit.c (builtin_array): Define __WINT_TYPE__.
2547 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
2548 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
2550 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
2552 * (mips_legitimate_address_p): Don't allow register+offset
2553 if the offset is large and negative, and we are compiling
2554 for 64 bit registers.
2556 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2558 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
2559 insn_code_number + 1.
2561 2000-08-04 Kazu Hirata <kazu@hxi.com>
2563 * h8300.c (function_prologue): Rearrange code for conciseness.
2564 (function_epilogue): Likewise.
2565 * h8300.h (OK_FOR_U): Fix formatting.
2567 * cse.c: Fix a comment typo. Fix formatting.
2569 2000-08-03 Richard Henderson <rth@cygnus.com>
2571 * config/i386/i386.md (return_indirect_internal): New.
2572 * config/i386/i386.c (ix86_expand_epilogue): Use it.
2574 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
2576 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
2578 (lex_line): Glue @ onto the beginning of identifiers and
2579 string constants, in Objective-C mode.
2580 (output_token, spell_token): Handle CPP_OSTRING.
2581 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
2582 beginning of a NAME or a STRING, in objc mode.
2584 * cpplib.c (get_define_node): Do not permit identifiers that
2585 begin with @ to be #defined.
2586 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
2587 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
2589 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
2590 * c-tree.h (build_objc_string): Delete prototype.
2591 * objc/objc-tree.def: Delete OBJC_STRING_CST.
2592 * c-lex.c (yylex): Use build_string for all three kinds of strings.
2594 * c-parse.in, objc/objc-act.c: Update commentary.
2596 2000-08-03 Mark Mitchell <mark@codesourcery.com>
2598 * extend.texi: Fix typo in last change.
2600 * extend.texi: Add commentary on statement-expressions and their
2601 interactions with C++.
2603 2000-08-03 Nick Clifton <nickc@cygnus.com>
2605 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
2606 * dwarf.h (LANG_JAVA): Change value to 0x000b.
2608 2000-08-03 Anthony Green <green@cygnus.com>
2610 * dwarf2out.c (gen_compile_unit_die): Add java language support.
2611 (add_bound_info): Check for java language.
2612 (is_java): New function.
2613 * dwarfout.c (output_compile_unit_die): Ditto.
2614 * dwarf.h (dwarf_source_language): Add java source language type.
2615 * dwarf2.h (dwarf_source_language): Ditto.
2617 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
2619 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
2622 * i386.c (ix86_expand_branch): Mode of comparison in
2623 IF_THEN_ELSE is VOIDmode.
2625 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
2627 * gengenrtl.c, rtl.c: Avoid #elif.
2629 2000-08-03 Michael Poole <poole@troilus.org>
2631 * tm.texi (Register Classes): Clarify order of sub-initializers
2632 in REG_CLASS_CONTENTS.
2634 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2636 From SAITOH Masanobu:
2637 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
2639 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
2641 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
2642 is not supported by tradcpp and isn't actually needed for cygwin.
2644 2000-08-03 Kazu Hirata <kazu@hxi.com>
2646 * h8300.c: Fix a comment typo.
2647 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
2649 * jump.c: Fix formatting.
2651 * toplev.c: Fix formatting.
2653 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
2655 * flow.c (find_auto_inc): Verify that we've got a REG before
2656 peeking at its regno. Fail, don't abort if we can't find
2657 the increment of the desired register.
2659 * pa.md (shadd height reduction patterns/splitters): Remove.
2661 2000-08-02 Jim Wilson <wilson@cygnus.com>
2663 * config/ia64/ia64-protos.h (flag_ssa): Declare.
2664 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
2666 2000-08-02 Mark Mitchell <mark@codesourcery.com>
2668 * dce.c: Remove all uses of assert.
2669 * dwarf2out.c: Likewise.
2670 * dwarfout.c: Likewise.
2673 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2675 * gcc.h (lang_specific_driver): Constify second argument.
2676 * gcc.c (translate_options, process_command, main): Likewise.
2677 Constify variables to match. Cast second argument to
2680 * cppspec.c, gccspec.c: Adjust type of second argument to
2681 lang_specific_driver, and update code as necessary.
2683 2000-08-02 Jakub Jelinek <jakub@redhat.com>
2685 * loop.c (scan_loop): Ensure update_end label does not
2686 go away until reg_scan_update is run.
2688 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2690 * c-common.h: Prototype min_precision and c_build_qualified_type here...
2691 * c-tree.h: ... not here.
2692 * errors.h: Prototype fancy_abort.
2694 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
2695 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
2696 * regrename.c (regrename_optimize): Make control flow explicit.
2697 (replace_reg_in_block): Initialize reg_use to 0.
2699 * i386.c (legitimate_address_p): Rename error label to
2700 report_error to avoid namespace clash.
2702 2000-08-02 Kazu Hirata <kazu@hxi.com>
2704 * fold-const.c: Fix formatting.
2706 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
2708 * i386.c (legitimate_address_p): Accept other bases than
2709 pic_offset_table_rtx for GOTOFF constructs.
2711 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
2713 * i386.md (shift to lea splitter): Use const_int_operand.
2715 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2717 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
2718 cppspec.c: Do not use 'legal' or 'illegal' in error messages
2721 * cppmain.c (cb_define, cb_undef): Don't generate any output
2722 if not done_initializing.
2723 * cpplex.c (maybe_paste_with_next): When the token after a ##
2724 is an omitted rest argument, only delete the token before it
2725 if that token is a comma. Do not warn about bogus token
2726 pastes for , ## rest_arg.
2729 * cpp.1: Regenerate.
2731 2000-08-02 Fred Fish <fnf@be.com>
2733 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
2734 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
2737 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
2738 Be directories to search path.
2740 Remove support for __declspec(dllimport) and __declspec(dllexport).
2741 This is leftover cruft from the earlier BeOS gcc port when BeOS
2742 used Microsoft's PE object file format.
2743 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
2744 * config/i386/t-beos (winnt.o): Remove Makefile frag.
2745 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
2746 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
2747 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
2748 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
2749 (REDO_SECTION_INFO_P): Remove.
2750 (ASM_EXPORT_DECL): Remove.
2751 (ASM_DECLARE_FUNCTION_NAME): Remove.
2752 (ASM_DECLARE_OBJECT_NAME): Remove.
2753 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
2754 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
2755 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
2756 (STRIP_NAME_ENCODING): Remove.
2758 Remove support for obsolete version of BeOS that is no longer
2760 * configure.in (i*86-*-beospe*): Remove.
2761 * config/i386/beos-pe.h: Remove.
2763 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
2764 Mark Mitchell <mark@codesourcery.com>
2766 * Makefile.in (OBJS): Added dce.o.
2767 (ssa.o): Updated target to include ssa.h.
2769 (toplev.o): Likewise.
2770 (dce.o): Created target.
2771 * basic-block.h: Added comments.
2772 (INVALID_BLOCK): Added definition.
2773 (connect_infinite_loops_to_exit): Added declaration.
2774 Moved SSA declarations to ssa.h.
2775 * flow.c: Added inclusion of ssa.h.
2776 (struct depth_first_search_dsS, depth_first_search_ds):
2778 (compute_immediate_postdominators): Added definition.
2779 (connect_infinite_loops_to_exit): Likewise.
2780 (flow_dfs_compute_reverse_init): Likewise.
2781 (flow_dfs_compute_reverse_add_bb): Likewise.
2782 (flow_dfs_compute_reverse_execute): Likewise.
2783 (flow_dfs_compute_reverse_finish): Likewise.
2784 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
2785 (LABEL_P): Added definition.
2788 (BARRIER_P): Likewise.
2789 (JUMP_TABLE_DATA_P): Likewise.
2790 (INSN_DEAD_CODE_P): Likewise.
2791 * ssa.c: Replaced inclusions with ssa.h inclusion.
2792 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
2793 (rename_registers): Removed unnecessary variables.
2794 * ssa.h: Created by moving declarations from ssa.c and
2796 * timevar.def: Defined TV_DEAD_CODE_ELIM.
2797 * toplev.c: Added ssa.h inclusion.
2798 (dump_file_index): Added DFI_dce.
2799 (dump_file): Added "dce" entry.
2801 (f_options): Added dce entry.
2802 * invoke.texi: Document -fdce. Emphasize experimental status of
2806 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
2808 * cpperror.c (v_message): Split into _cpp_begin_message and
2809 v_message macro. All callers updated.
2810 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
2813 * cppfiles.c (cpp_syshdr_flags): New function.
2814 (read_include_file): Don't call cpp_output_tokens. Call
2816 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
2817 (cpp_reader_init): Don't initialize token_buffer. Call
2818 _cpp_init_internal_pragmas.
2819 (cpp_cleanup): Don't clear token_buffer.
2820 (cpp_start_read): Don't worry about output from -D processing.
2821 Don't call cpp_output_tokens.
2822 (cpp_finish): Don't dump macros here. Don't call
2824 * cppmacro.c (_cpp_dump_definition): Rename
2825 cpp_dump_definition. Write directly to a FILE *.
2826 (dump_funlike_macro): Delete.
2827 (dump_macro_args): New.
2829 * cpplex.c (TOKEN_LEN): Convert to inline function.
2830 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
2831 cpp_scan_line, _cpp_dump_list): Delete.
2832 (cpp_printf, cpp_output_list): New.
2833 (output_line_command): Don't worry about entering or leaving files.
2834 (cpp_scan_buffer): Just output each token as we hit it.
2835 (process_directive): Don't call cpp_output_tokens.
2836 (_cpp_glue_header_name): Don't use token_buffer.
2837 (output_token, dump_param_spelling): Write directly to a FILE *.
2839 * cpplib.c (pass_thru_directive, dump_macro_name,
2840 pragma_dispatch, do_pragma_gcc): Delete.
2841 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
2842 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
2844 (do_error, do_warning, pragma_dependency): Call
2845 _cpp_begin_message, then cpp_output_list.
2846 (cpp_register_pragma, cpp_register_pragma_space,
2847 _cpp_init_internal_pragmas): New.
2848 (do_pragma): Walk the pragmas table here.
2849 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
2850 do_pragma_dependency): Return void.
2851 (do_pragma_implementation): Moved to cppmain.c.
2853 * cpplib.h: Update prototypes.
2854 (struct cpp_reader): Remove printer, token_buffer,
2855 token_buffer_size, and limit. Add struct cb, and pragmas.
2856 (struct cpp_printer): Remove last_id and written.
2857 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
2858 CPP_ADJUST_WRITTEN): Delete.
2859 * cpphash.h: Update prototypes.
2860 (ufputs): New wrapper.
2862 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
2863 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
2864 (main): Set up callbacks. Register #pragma implementation.
2865 Dump macros from here.
2867 2000-08-01 Geoff Keating <geoffk@cygnus.com>
2869 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
2870 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
2871 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
2872 insns if they have a REG_MAYBE_DEAD note attached.
2873 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
2874 (rs6000_emit_load_toc_table): TOC loads may go dead.
2876 2000-08-01 Jim Wilson <wilson@cygnus.com>
2878 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
2879 type exists before using it. Use number of words as alignment
2881 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
2882 ia64_va_arg): Propagate ia64_function_args changes here.
2884 2000-08-01 Richard Henderson <rth@cygnus.com>
2886 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
2887 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2889 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
2891 From Joern Rennecke:
2892 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
2893 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
2894 unless TARGET_SH3E is set.
2895 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
2897 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
2898 (ashlsi3_std): New pattern.
2899 (ashlsi3 expander): Use it for TARGET_SH3.
2900 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
2902 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
2904 * loop.c (canonicalize_condition): Use destination, not source to
2905 determine SET's mode.
2907 2000-07-31 Mark Mitchell <mark@codesourcery.com>
2909 * flow.c (clear_log_links): Fix typo.
2911 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
2913 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
2914 on targets which need more than one insn for a compare/cbranch
2917 2000-07-31 Jim Wilson <wilson@cygnus.com>
2919 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
2920 when computing offset.
2922 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
2924 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
2926 2000-07-31 Geoff Keating <geoffk@cygnus.com>
2928 * flow.c (clear_log_links): Nuke global_live_at_start and
2929 global_live_at_end data, since if the log_links stuff is invalid
2930 so is global_live_at_*.
2932 2000-07-31 Richard Henderson <rth@cygnus.com>
2934 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
2936 2000-07-31 Jakub Jelinek <jakub@redhat.com>
2938 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
2939 (_cpp_get_token): Don't macro expand a just pasted token if it
2940 was pasted at no_expand_level.
2942 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
2944 * cppmacro.c (find_param, count_params, save_expansion):
2945 Permit 'defined' as a macro parameter name.
2947 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
2949 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
2950 xcpp to cpp throughout.
2951 (native): Remove unnecessary dependency on cpp.
2953 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
2954 tradcpp to tradcpp0.
2955 (.i spec): Add missing output-file spec to cc1 command line.
2956 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
2958 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
2960 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
2961 (implicit_decl_warning): New function.
2962 (implicitly_declare): Use it.
2963 * c-typeck.c (build_external_ref): Use implicit_decl_warning
2964 to complain about implicit decls of builtins.
2966 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
2967 based on pedantic && flag_isoc99, if not already set.
2968 * c-tree.h: Declare mesg_implicit_function_declaration.
2969 Prototype implicit_decl_warning.
2971 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
2973 * Makefile.in (ssa.o): Updated header files in dependences.
2974 * basic-block.h: Added compute_immediate_postdominators declaration.
2975 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
2977 * flow.c (compute_immediate_dominators): Updated comment.
2978 (compute_immediate_postdominators): Added definition.
2979 * rtl.h (HARD_REGISTER_P): Added definition.
2980 * ssa.c: Include additional header files.
2981 (assert): Added definition.
2982 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
2983 include select hard registers.
2984 (ssa_rename_to_insert): Likewise.
2985 (ssa_rename_from_initialize): Likewise.
2986 (ssa_rename_from_lookup): Likewise.
2987 (original_register): Likewise.
2988 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
2989 include select hard reigsters.
2990 (ssa_rename_from_traverse): Likewise.
2991 (ssa_rename_from_free): Likewise.
2992 (ssa_rename_from_print): Likewise.
2993 (ssa_rename_from_print_1): Likewise.
2994 (ssa_rename_from_hash_function): Likewise.
2995 (ssa_rename_from_equal): Likewise.
2996 (ssa_rename_from_delete): Likewise.
2997 (simplify_to_immediate_dominators): Removed in favor of
2998 flow.c:compute_immediate_dominators.
2999 (find_evaluations_1): Modified to work with hard registers.
3000 (insert_phi_node): Likewise.
3001 (insert_phi_nodes): Likewise.
3002 (struct rename_set_data): Updated prev_reg comment.
3003 (create_delayed_rename): Modified to work with hard registers.
3004 (RENAME_NO_RTX): Updated comment.
3005 (apply_delayed_renames): Modified to work with hard registers.
3006 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
3007 (rename_block): Updated to use revised ssa_rename_to interface.
3008 (rename_registers): Updated to use revised ssa_rename_to and
3009 ssa_rename_from interface.
3010 (convert_to_ssa): Revised to use compute_immediate_dominators and
3011 deal with hard registers.
3012 (make_regs_equivalent_over_bad_edges): Modified to work with hard
3013 registers. Added check for illegal unification of hard register.
3014 (make_equivalent_phi_alternatives_equivalent): Modified to work
3015 with hard registers.
3016 (compute_conservative_reg_partition): Likewise.
3017 (coalesce_if_unconflicting): Modified to work with hard registers
3018 and check for conflicting hard registers.
3019 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
3021 (rename_equivalent_regs_in_insn): Modified to work with hard
3023 (record_canonical_element_1): Added definition.
3024 (check_hard_regs_in_partition): Added definition.
3025 (convert_from_ssa): Added data structure deallocation and check
3026 for illegal hard register unification.
3027 (conflict_hard_regs_p): Added definition.
3028 * toplev.c (rest_of_compilation): Added comment.
3030 2000-07-31 Anthony Green <green@redhat.com>
3032 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
3034 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
3036 * builtins.c (expand_builtin_apply): Don't defer pop during
3039 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3041 * calls.c (combine_pending_stack_adjustment_and_call): Only use
3042 preferred_unit_stack_boundary when it is > 1.
3044 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
3046 * c-common.c (init_function_format_info): Add C99 format functions
3049 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
3050 void' or 'register void' as being the special case of 'void' alone
3051 in a parameter list.
3053 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
3054 discarding qualifiers into a plain warning.
3056 2000-07-31 Kazu Hirata <kazu@hxi.com>
3058 * combine.c: Fix formatting.
3060 * h8300.md: Fix formatting.
3062 * local-alloc.c: Fix formatting.
3064 * h8300.c (get_shift_alg): Remove the variable alg.
3065 (emit_a_shift): Rearrange code to improve readability.
3067 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
3069 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
3070 HImode on all architectures and a combination of HImode and SImode
3071 on H8/300H and H8/S.
3073 * h8300.c (split_adds_subs): Rearrange code for conciseness.
3075 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
3077 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
3080 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
3082 * recog.c (extract_insn): Set operand_mode according to
3083 operand if match_operand is VOIDmode.
3085 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
3087 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
3089 2000-07-31 Geoff Keating <geoffk@cygnus.com>
3091 * c-parse.in (extdefs): Call ggc_collect between external
3094 2000-07-30 Michael Hayes <mhayes@cygnus.com>
3095 Richard Henderson <rth@cygnus.com>
3097 * Makefile.in (OBJS): Add doloop.o.
3098 * doloop.c: New file.
3100 * final.c (insn_current_reference_address): Return 0 before final.
3101 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
3102 * jump.c (any_uncondjump_p): Likewise.
3103 * loop.c (indirect_jump_in_function): Make static.
3104 (strength_reduce): Call doloop_optimize.
3105 (insert_bct, instrument_loop_bct): Remove.
3106 * loop.h (doloop_optimize): Prototype.
3107 * recog.c (split_all_insns): Split all INSN_P.
3108 * toplev.c (flag_branch_on_count_reg): Default on.
3110 * config/c4x/c4x.c (c4x_optimization_options): Don't set
3111 flag_branch_on_count_reg.
3112 * config/i386/i386.c (override_options): Likewise.
3113 * config/rs6000/rs6000.c (optimization_options): Likewise.
3115 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
3117 (dbra_ge): Remove, as well as all it's splitters.
3119 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
3122 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
3123 (ia64_register_move_cost): Declare.
3124 * config/ia64/ia64.c (ar_lc_reg_operand): New.
3125 (struct ia64_frame_info): Add ar_size.
3126 (ia64_compute_frame_size): Set it.
3127 (save_restore_insns): Save and restore ar.lc.
3128 (ia64_register_move_cost): New, moved from header file. Handle
3129 application registers.
3130 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
3131 (emit_insn_group_barriers): Special case doloop_end_internal.
3132 (ia64_epilogue_uses): Mark ar.lc live at end.
3133 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
3134 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
3135 (FIRST_PSEUDO_REGISTER): Make room.
3136 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
3137 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
3138 (REG_ALLOC_ORDER): Update.
3139 (HARD_REGNO_MODE_OK): Update.
3140 (REGISTER_NAMES): Update.
3141 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
3142 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
3143 (REGNO_REG_CLASS): Update.
3144 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
3145 (REGISTER_MOVE_COST): Move out of line.
3146 (PREDICATE_CODES): Update.
3147 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
3148 (addsi3_plus1_alt, adddi3_plus1_alt): New.
3149 (shladd_elim splitter): Allow constants in the predicate.
3150 (doloop_end, doloop_end_internal): New.
3152 2000-07-30 Richard Henderson <rth@cygnus.com>
3154 * genattrtab.c (struct insn_def): Add lineno member.
3155 (struct insn_ent): Likewise.
3156 (struct attr_desc): Likewise.
3157 (struct delay_desc): Likewise.
3158 (struct function_unit_op): Likewise.
3159 (struct function_unit): Likewise.
3160 (check_attr_value): Use message_with_line.
3161 (check_defs): Likewise.
3162 (expand_units): Likewise.
3163 (check_attr_test): Take a lineno argument.
3164 (gen_attr): Likewise.
3165 (gen_insn): Likewise.
3166 (gen_delay): Likewise.
3167 (gen_unit): Likewise.
3168 (main): Give it to them.
3169 (convert_set_attr_alternative): Take an insn_def argument
3170 instead of num_alt and insn_index.
3171 (convert_set_attr): Likewise.
3172 (write_test_expr): Protect INSN_ADDRESSES load
3173 with INSN_ADDRESSES_SET_P.
3175 2000-07-30 Richard Henderson <rth@cygnus.com>
3177 * flow.c (init_propagate_block_info): Use pc_set.
3179 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
3181 * i386.md (*lea_general_[123]) New insns and splits.
3182 (addsi3 to lea splitter): Handle other modes too.
3183 (shlsi3 to lea splitter): Likewise.
3184 (addhi_1_lea, shlhi_1_lea): New patterns.
3185 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
3187 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
3189 * recog.c (general_operand, nonimmediate_operand): Accept
3190 any mode for VOIDmode CONSTANT_P operands.
3192 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
3194 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
3195 instead of replace_rtx.
3196 * recog.c (validate_replace_rtx_subexp): New function.
3197 * recog.h (validate_replace_rtx_subexp): Declare.
3199 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
3201 * combine.c (simplify_set, make_extraction, make_compound_operation
3202 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
3203 as force_to_mode argument.
3205 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
3207 * combine.c (if_then_else_cond): Be sure that mode fits in
3210 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
3212 * combine.c (record_promoted_value): Allow bitsize of mode
3213 to be equivalent to HOST_BITS_PER_WISE_INT.
3215 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
3217 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
3218 Do not call gen_mode_alignment when mode is BLKmode.
3220 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
3222 * loop.c (express_from_1): Fix call of simplify_gen_binary.
3224 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
3226 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
3227 VOIDmode implies both operands to be VOIDmode.
3228 (simplify_ternary_operation): Compute properly the mode of comparison.
3229 * combine.c (combine_simplify_rtx): Likewise.
3231 2000-07-25 Michael Hayes <mph@paradise.net.nz>
3233 * basic-block.h (struct loops): New field rc_order.
3234 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
3235 (flow_loops_free): Free rc_order.
3236 (flow_depth_first_order_compute): New parameter rc_order.
3237 (flow_loops_find): Allocate rc_order and swap usage with
3240 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3241 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3243 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
3244 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
3245 (nodb_call, return_from_epilogue): Likewise.
3246 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
3247 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
3248 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
3249 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
3250 (c4x_valid_type_attribute_p): Likewise.
3251 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
3252 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
3254 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3256 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
3257 and loadhi_big_constant if applicable.
3258 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
3259 and add new splitter.s
3261 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3263 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
3265 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3267 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
3269 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3271 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
3273 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3275 * config/c4x/libgcc.S (divqf3): Improve accuracy.
3277 2000-07-27 Mark Mitchell <mark@codesourcery.com>
3279 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
3280 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
3281 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
3282 (get_prev_bb_note): Likewise.
3283 (remove_scope_notes): Likewise.
3284 * flow.c (commit_one_edge_insertion): Likewise.
3285 (merge_blocks_nomove): Likewise.
3286 (verify_flow_info): Likewise.
3287 * gcse.c (insert_insn_end_bb): Likewise.
3288 * reg-stack.c (emit_swap_insn): Likewise.
3289 * ssa.c (first_insn_after_basic_block_note): New function.
3290 (insert_phi_node): Use it.
3291 (rename_block): Likewise.
3292 (eliminate_phi): Likewise.
3293 (make_regs_equivalent_over_bad_edges): Likewise.
3294 (make_equivalent_phi_alternatives_equivalent): Likewise.
3295 (for_each_successor_phi): Likewise.
3296 (convert_from_ssa): Modify phi-node deletion algorithm.
3298 2000-07-29 Andreas Jaeger <aj@suse.de>
3300 * configure.in (mips*-*-linux*): Use mips*el to check for little
3301 endian MIPS, add tmake_file.
3303 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
3304 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
3305 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3307 2000-07-28 Richard Henderson <rth@cygnus.com>
3309 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
3310 Sign extend mode size before negating.
3312 2000-07-28 Richard Henderson <rth@cygnus.com>
3314 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
3316 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
3318 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
3319 (cse_insn): Likewise.
3320 (addr_affects_sp_p): Likewise.
3321 * expr.c (move_by_pieces): Likewise.
3322 (clear_by_pieces): Likewise.
3323 * gcse.c (oprs_unchanged_p): Likewise.
3324 * haifa-sched.c (sched_analyze_2): Likewise.
3325 * recog.c (offsettable_address_p): Likewise.
3326 * regclass.c (record_address_regs): Likewise.
3327 * reload.c (find_reusable_reload): Likewise.
3328 (push_reload): Likewise.
3329 (operands_match_p): Likewise.
3330 (decompose): Likewise.
3331 (find_reloads_address_1): Likewise.
3332 (find_inc_amount): Likewise.
3333 * reload1.c (elimination_effects): Likewise.
3334 * resource.c (mark_set_resources): Likewise.
3335 * flow.c (attempt_auto_inc): New function; mostly broken out
3337 (find_auto_inc): Split into two functions and enhanced to
3338 generate POST_MODIFY.
3339 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
3340 * rtl.h (count_all_occurrences): Declare.
3341 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
3343 * rtlanal.c (count_all_occurrences): New function.
3344 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
3345 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
3347 * config/ia64/ia64-protos.h (destination_operand): Declare.
3348 * config/ia64/ia64.c (destination_operand): New function.
3349 (ia64_print_operand): Handle POST_MODIFY.
3350 (rtx_needs_barrier): Likewise.
3351 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
3352 (HAVE_POST_MODIFY_REG): Define to 1.
3353 (MAX_REGS_PER_ADDRESS): Change to 2.
3354 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
3355 (LEGITIMATE_ADDRESS_REG): New helper macro.
3356 (LEGITIMATE_ADDRESS_DISP): Likewise.
3357 (PREDICATE_CODES): Add entry for destination_operand.
3358 * config/ia64/ia64.md (all mov patterns): Use destination_operand
3359 predicate for operand 0.
3361 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3363 * dwarf2out.c: Indent #error directive.
3365 * gbl-ctors.h: Fix typo in comment.
3366 (__do_global_ctors): Prototype.
3368 * gcse.c (record_one_set, pre_delete): Remove unused variables.
3370 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
3371 (print_operand): Initialize variable `t'.
3373 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
3375 * config/arm/arm.md ("call_value"): removed constraints.
3376 Constraints are ignored in expanders.
3377 (*call_value_reg): split =rf into various constraints.
3378 (*call_value_mem): same
3379 (*call_value_symbol): same
3380 (*sibcall_value_insn): same
3382 2000-07-28 Philipp Thomas <pthomas@suse.de>
3384 * install.texi (--enable-nls): Change the description of the NLS
3385 related configure options to match the current state.
3386 (--with-included-gettext): Likewise.
3387 (--enable-maintainer-mode): New description added.
3388 * extend.texi (-fstrict-prototype): Add missing '.'.
3390 2000-07-27 Jim Wilson <wilson@cygnus.com>
3392 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
3393 DECL_INITIAL (decl) == NULL_TREE.
3395 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
3397 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
3398 on insn-attr.h with it.
3399 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
3400 * insn-addr.h: New header.
3401 (insn_addresses_): Renamed from insn_addresses.
3402 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
3403 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
3404 INSN_ADDRESSES_NEW): New macros.
3405 * genattrtab.c (write_test_expr): Use new macros.
3406 * final.c (insn_addresses, init_insn_lengths): Likewise.
3407 (align_fuzz, shorten_branches): Likewise.
3408 (final): Likewise. Do not reject new insns if their addresses
3409 have been added to INSN_ADDRESSES.
3410 * config/arm/arm.c, config/avr/avr.c: Use new macros.
3411 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
3412 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
3413 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
3414 * config/sh/sh.c: Likewise.
3415 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
3417 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
3419 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
3421 * gcc.c (struct prefix_list): Add member priority.
3422 (enum path_prefix_priority): Declare.
3423 (add_prefix): Replace ``first'' with ``priority''. Append new
3424 entry but keep list in priority order.
3425 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
3426 PREFIX_PRIORITY_LAST to add_prefix.
3427 (process_command): Move include kludge - foo/stageN - to before
3430 2000-07-27 Jason Merrill <jason@redhat.com>
3432 * dwarf2out.c (gen_typedef_die): Abort if we get identical
3433 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
3435 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
3437 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
3438 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
3440 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
3442 * c-decl.c (finish_function): Don't treat 'main' specially unless
3443 flag_hosted. In C99 mode, return 0 from 'main' unless
3444 DEFAULT_MAIN_RETURN is otherwise defined.
3446 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
3447 parameters defaulting to int in an old-style function definition.
3449 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3451 * c-parse.in (string): For -Wtraditional, warn about string
3452 concatenation only once per line.
3454 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
3456 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
3457 for HI-UX/WE2 systems.
3459 2000-07-24 Bruce Korb <bkorb@gnu.org>
3461 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
3462 defining the __xxx_TYPE__ macros.
3463 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
3464 * fixincl/fixlib.h: don't need to include "tm.h" anymore
3465 * fixincl/inclhack.def(type_map): now obsolete
3467 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
3469 * cpp.texi: Append a trailing full-stop to xrefs where needed.
3471 2000-07-26 Dave Pitts <dpitts@cozx.com>
3473 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
3475 (mvs_hash_alias): New function.
3476 (mvs_add_alias): Change argument spacing.
3477 (mvs_need_alias): Change aliasing criteria. Added documentation.
3478 (mvs_get_alias): Change to use hashed name. The hashed name prevents
3479 CSECT name collisions.
3480 (mvs_check_alias): Likewise.
3481 (handle_pragma): Change documentation.
3482 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
3483 mode from SImode to DImode.
3484 (iorhi3): Changed LTORG size for insn.
3486 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
3488 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
3489 mem if the address is a mode_dependent_address_p.
3491 2000-07-26 Kazu Hirata <kazu@hxi.com>
3493 * h8300.c (print_operand): Print ":8" when the 'R' operand is
3494 suitable for 8-bit absolute.
3495 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
3496 (OK_FOR_U): Add a case for the 8-bit constant address on the
3499 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
3501 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
3502 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
3503 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
3504 lack of implemented alignment.
3506 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
3508 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
3509 cross-compiling between 64-bit and 32-bit machines.
3511 2000-07-27 Richard Henderson <rth@cygnus.com>
3513 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
3514 (movhicc_astep, movhi_internal_astep): New.
3515 (movsicc_astep, movsi_internal_astep): New.
3516 (movdicc_astep, movdi_internal_astep): New.
3517 (movsfcc_astep, movsf_internal_astep): New.
3518 (movdfcc_astep, movdf_internal_astep): New.
3519 (movxfcc_astep, movxf_internal_astep): New.
3520 (cmovdi_internal_astep, cmovsi_internal_astep): New.
3521 Unify the cmov[ds]i splitters.
3523 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
3525 * real.c (asctoeg): Rename `error' label to unexpected_char_error
3527 2000-07-26 Nick Clifton <nickc@cygnus.com>
3529 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
3530 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
3532 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
3533 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
3535 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
3537 * c-decl.c (finish_enum): Convert enumerations that fit in an
3539 (build_enumerator): In pedantic mode, cast to `int' those that
3542 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
3544 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
3546 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3548 * sh.md (cmpgtdi_t): Must be split.
3549 (cmpgtdi_t+1): New splitter.
3551 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
3553 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
3554 warnings for indented directives even if we are skipping.
3556 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
3558 * invoke.texi (strict-prototypes): Remove.
3559 * extend.texi (Deprecated Features): Add strict-prototypes.
3560 (Backwards Compatibility): New node.
3562 2000-07-25 Jakub Jelinek <jakub@redhat.com>
3564 * config/i386/i386.md (andsi_1+1): Allow HImode.
3565 (andsi_1+2): Require q_regs_operand.
3567 2000-07-25 Jakub Jelinek <jakub@redhat.com>
3569 * config/i386/i386.md (call_pop): Check operands[0],
3570 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
3572 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
3573 (call_value): Likewise.
3575 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
3577 * toplev.c (pipe_closed): Delete.
3578 (crash_signal): New. Generate ICE for a fatal signal.
3579 (float_signal): Call crash_signal outside a float-handler
3581 (main): Install crash_signal as handler for core-dumping signals.
3583 2000-07-25 David Edelsohn <edelsohn@gnu.org>
3585 * rs6000.c (print_operand, case 'T'): New case.
3587 * rs6000.md (call_indirect_aix32): Convert to expander of
3588 scheduled instructions.
3589 (call_indirect_aix64): Likewise.
3590 (call_value_indirect_aix{32,64}): Likewise.
3591 (call, call_value): Invoke expanders for AIX. Fall through to
3593 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
3594 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
3595 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
3596 only "g" constraint.
3597 (call_nonlocal_aix64): Likewise.
3598 (call_value_nonlocal_aix{32,64}): Likewise.
3599 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
3601 (call_value_nonlocal_sysv): New pattern.
3602 (indirect_jump{si,di}): Use new 'T' modifier.
3603 (tablejump{si,di} matchers): Likewise.
3604 (return_internal_{si,di}): Likewise.
3605 (return_eh_{si,di}): Likewise.
3607 2000-07-24 Richard Henderson <rth@cygnus.com>
3609 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
3610 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3611 * config/ia64/ia64.md (movdi_internal): Use it.
3613 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
3615 * cppexp.c: Warn about unary + if -Wtraditional.
3616 * cpplex.c (lex_line): Always set BOL on the first token of a line.
3618 2000-07-24 Michael Meissner <meissner@redhat.com>
3620 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
3623 2000-07-24 Nick Clifton <nickc@cygnus.com>
3625 * config/arm/arm.c (emit_multi_reg_push): Generate a
3626 REG_FRAME_RELEATED_NOTE that is compatable with the code in
3627 dwarf2out_debug_frame_expr.
3629 2000-07-24 Jason Merrill <jason@redhat.com>
3631 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
3632 UNALIGNED_INT_ASM_OP.
3633 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
3634 a location expression.
3635 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
3636 assume indirect access if we're saving the CFA address exactly.
3638 * Makefile.in (bootstrap): Move -BstageN/ to the end.
3640 2000-07-24 Jakub Jelinek <jakub@redhat.com>
3642 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
3645 2000-07-24 Michael Meissner <meissner@redhat.com>
3647 * invoke.texi (D30V Options): Add d30v options.
3649 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
3651 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
3652 needed by our gcse pass anymore.
3653 (free_pre_mem): Corresponding changes.
3654 (compute_pre_data): Do not call compute_transpout anymore.
3656 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
3657 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
3660 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
3661 (compute_pre_data): Do it here instead.
3663 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
3665 (pre_delete): Corresponding changes.
3667 2000-07-23 Mark Mitchell <mark@codesourcery.com>
3669 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
3670 to figure out whether or not a variable has already been emitted.
3672 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
3674 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
3675 instead of gen_call.
3677 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
3679 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
3681 2000-07-23 Kazu Hirata <kazu@hxi.com>
3683 * h8300.c: Fix formatting.
3685 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
3687 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
3688 for `long' switch expression into a plain warning.
3690 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
3691 (yylex): Don't pedwarn for "inline" in C99 mode.
3693 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
3695 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
3696 ggc_alloc): Likewise.
3697 * bb-reorder.c (dump_scope_forest_1): Likewise.
3699 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
3701 * reload.c (find_reloads_toplev): Add new parameter
3703 (find_reloads): Add new parameter to find_reloads_toplev calls.
3705 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
3707 * collect2.c (main): Typo fixed.
3708 * diagnostic.c: Typo fixed.
3709 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
3710 * eh-common.h: Typo fixed.
3711 * emit-rtl.c (start_sequence): Typo fixed.
3712 * flow.c (find_label_refs): Typo fixed.
3713 (calculate_global_regs_live): Typo fixed.
3714 (mark_regno_cond_dead): Typo fixed.
3715 (create_edge_list): Typos fixed.
3716 (verify_edge_list): Typo fixed.
3717 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
3718 * loop.c (strength_reduce): Typo in function name fixed.
3719 * rtl.h: Added comments. Typo in function name fixed.
3720 * rtlanal.c: Typo in function name fixed.
3721 (insn_dependant_p): Rename to ...
3722 (insn_dependent_p): ... this.
3723 (computed_jumo_p): Typo fixed.
3725 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3727 * system.h (__FUNCTION__): Wrap definition in #ifndef.
3729 2000-07-21 David Edelsohn <edelsohn@gnu.org>
3731 * rs6000.h (SIZE_TYPE): Define.
3733 2000-07-21 Mark Mitchell <mark@codesourcery.com>
3735 * ssa.c (rename_insn_1): Don't rename registers that are
3738 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
3740 * diagnostic.c (trim_filename, fancy_abort): Moved here from
3742 (fatal_function, set_fatal_function): Removed.
3743 (fatal): Don't prepare for or call the fatal_function.
3744 (diagnostic_lock, error_recursion): New.
3745 (diagnostic_for_decl, report_diagnostic): Guard against
3746 re-entering the error reporting routines.
3747 (fancy_abort): Assume function is not NULL.
3749 * errors.c (fancy_abort): New. Assume function is not NULL.
3750 * tradcpp.c (fancy_abort): Assume function is not NULL.
3752 * system.h: Provide default definition of __FUNCTION__.
3753 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
3754 Always use __FUNCTION__ in definition of abort.
3756 * varray.h: Likewise.
3757 * toplev.h: Likewise. Don't prototype set_fatal_function.
3759 2000-07-20 Geoff Keating <geoffk@cygnus.com>
3761 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
3763 * glimits.h: Don't do #if defined for ARCH_PPC.
3765 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
3766 constants of size no larger than a pointer should go in the TOC.
3767 Add 'MODE' parameter.
3768 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
3769 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
3770 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3771 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
3772 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
3773 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
3774 (rs6000_legitimize_address): Likewise.
3775 (rs6000_emit_move): Likewise.
3776 (rs6000_select_rtx_section): Likewise.
3777 (output_toc): Deal properly with outputting small constants like
3778 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
3779 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
3780 MODE parameter. Put small constants in the TOC.
3782 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
3784 (rs6000_emit_move): When reload calls us with an illegitimate
3785 address, exit early. Move the change_address calls to one place
3786 at the end of the routine. Merge the SImode and DImode expanders.
3787 When called by reload to put an integer into a FP register, force
3790 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
3792 (rs6000_hash_constant): Hash mode too.
3793 (toc_hash_function): Allow for key_mode.
3794 (toc_hash_eq): Structures are different if key_mode differs.
3795 (output_toc): Add 'mode' parameter. Save key_mode.
3796 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
3797 Pass 'mode' parameter.
3798 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
3800 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
3801 for vtable references.
3803 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
3804 choice, don't put integer values in FP regs.
3806 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
3808 * flow.c (verify_flow_info): Revamp code to verify that the
3809 head and end of each basic block are in the insn chain.
3811 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
3813 * gcse.c (record_one_set): Prepend instead of append onto
3814 reg_set_table, making it O(n) instead O(n^2).
3815 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
3816 Use a queue instead of a stack as worklist.
3818 2000-07-20 Kazu Hirata <kazu@hxi.com>
3820 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
3821 * h8300.h (OK_FOR_T): New.
3822 (EXTRA_CONSTRAINT): Support OK_FOR_T.
3823 * h8300.md: Use inc/dec.[wl] for increment/decrement
3824 by 1 and 2 in HI and SI modes.
3826 2000-07-20 Jim Wilson <wilson@cygnus.com>
3828 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
3829 larger than 14 bits.
3831 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
3833 * cppmacro.c (CAN_PASTE_AFTER): New macro.
3834 (count_params): Don't set GNU_REST_ARGS on anything.
3835 (save_expansion): Set PASTE_LEFT only on tokens for which
3836 CAN_PASTE_AFTER is true, or which are named operators.
3838 * cpplex.c (parse_args): Distinguish between a rest argument
3839 given one empty argument, and a rest argument given zero arguments.
3840 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
3841 deletion of previous token based on that.
3842 (get_raw_token): Flatten some control structure.
3844 * cpplib.h (CPP_LAST_EQ): Correct.
3845 (VOID_REST): New token flag.
3846 (GNU_REST_ARGS): Delete.
3848 * tradcpp.c (main): Don't munge -D options.
3849 (make_definition): Bring -D handling in line with cpplib.
3850 (do_define): Strip all leading whitespace from macro definitions.
3852 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
3854 * Makefile.in (tradcpp): Depend on intl.o and version.o.
3856 2000-07-20 Bruce Korb <bkorb@gnu.org>
3858 * fixincl/check.tpl: strip the platform specific types before testing
3859 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
3860 * fixincl/fixincl.tpl: use platform specific types
3861 * fixincl/fixlib.h: include the platform specific types
3862 * fixincl/inclhack.def(gnu_types): don't supply the types
3863 * fixincl/fixincl.x: regen
3865 2000-07-19 Jim Wilson <wilson@cygnus.com>
3867 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
3870 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
3872 * tradcpp.c (rescan): Do not recognize directives when the #
3875 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
3877 Implement C++ named operators.
3879 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
3880 of operators allowed in #if and having an _EQ variant. Add
3881 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
3882 (cpp_token flags): Add NAMED_OP.
3883 (enum node_type): Add T_OPERATOR.
3884 (struct cpp_hashnode): Add code slot to value union.
3885 * cpphash.h (spec_nodes): Remove n_defined.
3887 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
3888 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
3889 (is_macro_disabled): Tweak error messages.
3891 * cpplib.c (get_define_node): Disallow all named operators as
3892 macro names. Tweak error messages.
3893 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
3895 * cppinit.c (builtin_array): Add entries for the named operators.
3896 * cppexp.c (lex): Check for CPP_DEFINED token.
3897 (priority table): Add entries for CPP_MIN and CPP_MAX.
3898 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
3900 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
3902 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
3903 larger than the array of cuids.
3904 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
3907 2000-07-19 Bruce Korb <bkorb@gnu.org>
3909 * fixinc/fixincl.c: Convert to using a table of environment variables
3910 and activate the auto-edit marker on the fixed output files.
3911 * fixinc/fixlib.h: Define the environment table
3912 * fixinc/fixincl.sh: export the ${INPUT} dir
3913 * fixinc/check.tpl: likewise
3915 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
3917 * gcc.c (.h spec): Fix typo.
3919 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
3921 * Makefile.in: Fix tradcif.c path.
3923 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
3925 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
3928 * cpphash.h (TOKEN_NAME): New macro.
3929 (_cpp_spell_operator): Deleted.
3930 (token_spellings): Now _cpp_token_spellings.
3932 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
3933 * cpplex.c: Use OP and TK macros when expanding the
3934 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
3935 store the stringification of the enumeration name (CPP_CHAR,
3936 etc.) in the name slot of token_spellings.
3937 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
3938 token_spellings directly.
3939 * cpplib.c: Use TOKEN_SPELL.
3941 * cpplex.c (_cpp_push_token): If the token being pushed back
3942 is the previous token in this context, just subtract one from
3944 * cppmacro.c (save_expansion): Clear aux field when storing a
3947 2000-07-18 Jakub Jelinek <jakub@redhat.com>
3949 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
3950 buffer, provided it is not NULL.
3952 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
3954 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
3955 case of invalid volatile re-declaration.
3957 2000-07-18 Jakub Jelinek <jakub@redhat.com>
3959 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
3960 (expand_call): Adjust caller.
3962 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
3964 * diagnostic.h (report_diagnostic): Change prototype.
3966 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
3967 diagnostic_for_decl): Change prototype.
3968 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
3969 error, warning, error_with_file_and_line,
3970 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
3971 Adjust call to report_diagnostic, diagnostic_for_decl.
3972 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
3973 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
3975 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
3976 varaible argument list.
3978 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
3980 * cpphash.c: Don't include hashtab.h. Most macro-handling code
3981 moved to cppmacro.c.
3982 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
3983 dump_hash_helper): Delete.
3984 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
3985 cpp_forall_identifiers): New. Implement specialized version of
3986 Vlad's expandable hash table.
3987 (cpp_lookup): Use new functions.
3988 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
3990 * cppmacro.c: New file.
3991 * cppinit.c (dump_macros_helper): New.
3992 (cpp_finish): Iterate over the identifier table directly.
3993 * cpplex.c (parse_name): Calculate the hash of the identifier
3994 while we scan it. Use _cpp_lookup_with_hash when we can.
3996 * cpphash.h: Update prototypes.
3997 (xcnewvec, HASHSTEP): New helper macros.
3998 * cpplib.h: Update prototypes.
3999 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
4000 (cppmacro.o): New rule.
4001 (cpphash.o): Update deps.
4003 * cppmain.c: Do not set pfile->printer if no_output is on.
4005 2000-07-15 Neil Booth <neilb@earthling.net>
4007 * cpplib.c: Change all directive-handler functions to return
4009 * cpphash.h: Update typedefs.
4011 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
4013 * configure: Regenerate.
4015 * extend.texi (Extended Asm): Mention that a memory clobber
4016 does not count as a side-effect.
4018 * unroll.c (copy_loop_body): Fix one instance of using host
4019 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
4022 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
4024 2000-07-17 Richard Henderson <rth@cygnus.com>
4026 * config/ia64/ia64.md (movdi): Split out load address code.
4027 New post-reload splitter for symbolic operands.
4028 (movdi_internal): Abort if we didn't split symbolic operands
4029 when we should have.
4030 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
4031 (ia64_reorg): Split insns when not optimizing.
4032 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
4034 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
4036 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
4037 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
4039 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
4041 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
4043 2000-07-17 Jason Merrill <jason@redhat.com>
4045 * Makefile.in (clean): Remove libgcc directory.
4047 * configure.in (-Wno-long-long check): Use higher-level macros.
4049 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
4051 * simplify-rtx.c (simplify_binary_operation): Recognize
4052 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
4053 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
4054 a CONST_INT, it will always be zero.
4056 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
4058 * loop.c (check_dbra_loop) : Return if more than one condition is
4059 present to control the loop.
4061 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
4063 * mips.c (mips_expand_prologue): Don't calculate the last argument
4064 register unless we need it. When we are calculating this, make
4065 sure FUNCTION_ARG is giving us a REG.
4067 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4069 * flow.c (libcall_dead_p): Use single_set to verify the insn
4070 has only one set and get for analysis.
4071 (propagate_one_insn): Don't pass the PATTERN of the insn.
4073 2000-07-17 Mark Klein <mklein@dis.com>
4075 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
4077 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4079 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
4080 * configure.in (TARGET_GETGROUPS_T): Evaluate.
4081 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
4082 of second argument of getgroups.
4083 * configure, config.in: Rebuilt.
4085 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
4087 * simplify-rtx.c (simplify_relational_operation): Two signed
4088 values with equal high words are less/greater than each other if
4089 their low words are less/greater when considered as unsigned.
4091 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
4093 * configure.in (vax-*-openbsd): Change to new style configuration,
4094 add collect2/float_format information.
4095 * configure: Rebuilt.
4096 * config/vax/openbsd1.h: New.
4097 * config/vax/openbsd.h: New.
4098 * config/vax/t-openbsd: New.
4100 2000-07-17 Chip Salzenberg <chip@valinux.com>
4102 * c-common.c (shorten_compare): Quiet warnings about unsigned
4103 comparisons with zero when they occur in a system header.
4105 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
4107 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
4108 update to describe current practice.
4110 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
4112 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
4113 references to C9X. Change references to -fstd and -flang-isoc9x
4116 * c-common.c (scan_char_table): Allow "z" length modifiers on
4118 (check_format_info): Use TYPE_DOMAIN on the type matched against
4119 for "z" formats, to retrieve the language size_t rather than the
4122 * c-common.c (check_format_info): Do not make a pedantic objection
4123 to the 'L' length modifier if used with a floating point type
4126 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
4127 constants in C99 mode.
4129 2000-07-17 Kazu Hirata <kazu@hxi.com>
4131 * h8300.md: Fix the format of mac.
4132 (movsi_h8300hs): Output a tab after stmac instead of a space.
4134 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
4135 profitable adds/subs sequences.
4137 * fold-const.c: Fix comment typos.
4139 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
4141 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
4143 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4145 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
4147 2000-07-16 Neil Booth <NeilB@earthling.net>
4149 * cpplex.c: Update comments.
4150 * README.Portability: Small update.
4152 2000-07-16 Neil Booth <NeilB@earthling.net>
4154 * README.Portability: Small update.
4156 2000-07-15 Richard Henderson <rth@cygnus.com>
4158 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
4159 * config/ia64/ia64.c (ia64_move_ok): New function.
4160 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
4161 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
4163 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
4165 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
4166 immediately following a paste operator.
4167 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
4168 (cpp_reader_init): Call it, if HOST_EBCDIC.
4169 (cpp_handle_options): Do not sort option list here.
4170 (handle_option): Rename to cpp_handle_option and export.
4171 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
4172 _cpp_get_token directly.
4173 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
4174 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
4175 * cpplib.h: Prototype cpp_handle_option. Update prototype of
4178 2000-07-15 Richard Henderson <rth@cygnus.com>
4180 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
4181 cast around an expression. Tidy other unsigned tests.
4183 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
4185 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
4186 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
4187 (v_message_with_decl): Rename to ...
4188 (format_with_decl): ... this. Tweak
4189 (diagnostic_for_decl): New function.
4190 (fatal_io_error): Use verbatim in lieu of notice.
4191 (announce_function): Use verbatim.
4192 (default_print_error_function): Likewise.
4193 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
4196 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4198 * mips.c (function_arg_pass_by_reference): Don't do automatic
4199 aggregate initialization.
4200 (machine_dependent_reorg): Initialize variable `mode'.
4202 * mips.md (absdi2): Change variable `regno1' to unsigned int.
4203 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
4204 conflicts with sys/param.h macro of the same name.
4205 (reload_outdi): Likewise.
4207 2000-07-15 Michael Meissner <meissner@redhat.com>
4209 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
4210 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
4211 create a new node instead.
4213 2000-07-15 Neil Booth <NeilB@earthling.net>
4215 * README.Portability: Correct example about calling a function
4216 through a pointer to function. Format wide paragraphs.
4218 2000-07-15 Michael Meissner <meissner@redhat.com>
4220 * README.Portability: Update integer suffixes and function
4223 2000-07-15 Neil Booth <NeilB@earthling.net>
4225 * README.Portability: Small update.
4227 2000-07-15 Neil Booth <NeilB@earthling.net>
4229 * README.Portability: New file.
4231 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
4233 * INSTALL: Give special instructions for building GCC on Irix 6.
4234 * config/mips/x-iris6 (CC): Don't set it.
4237 2000-07-14 Jason Merrill <jason@redhat.com>
4239 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
4240 register in the stack and later in another register, use the new
4243 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
4245 * config/mips/mips.md: (absdi2): Handle sign_extend for
4248 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
4250 * cpplib.c (do_pragma_dependency): Tidy warning messages.
4252 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
4254 * .cvsignore: Correct typo.
4256 2000-07-13 Mark Mitchell <mark@codesourcery.com>
4258 * .cvsignore: Add generated YACC files.
4259 * objc/.cvsignore: New file.
4261 2000-07-14 Neil Booth <NeilB@earthling.net>
4263 * cpplex.c (adjust_column): New funcion.
4264 (skip_whitespace): Use it.
4265 (skip_block_comment): Use it, and warn about /*/* with
4268 2000-07-14 Neil Booth <NeilB@earthling.net>
4270 * cpphash.c (struct macro_info): Add new members.
4271 (_cpp_free_definition): Delete the macro directly.
4272 (count_params): Return void, with first token of
4273 expansion in struct macro_info on success.
4274 (parse_define): Return int. Hoist syntax checking from
4275 save_macro_expansion. Leave call to save_expansion to
4276 _cpp_create_definition.
4277 (alloc_macro): Needs just 2 arguments.
4278 (free_macro): Delete.
4279 (save_expansion): Don't perform syntax check.
4280 (_cpp_create_definition): Call save_expansion.
4282 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4284 * genrecog.c (write_header): Split long string.
4286 * cpphash.c (macro_info): Don't use the `signed' keyword.
4288 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
4290 2000-07-13 Jakub Jelinek <jakub@redhat.com>
4292 * calls.c (stored_args_map): New variable.
4293 (check_sibcall_argument_overlap_1): New.
4294 (check_sibcall_argument_overlap): New.
4295 (expand_call): Initialize stored_args_map.
4296 Call check_sibcall_argument_overlap.
4298 2000-07-13 Bruce Korb <bkorb@gnu.org>
4300 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
4301 (emit_gnu_type): utility procedure for gnu_type_fix
4302 (gnu_type_fix): implement various pre-processor guards around
4303 standard types so these types can be defined over and over
4304 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
4305 types alluded to above will have GNU-compliant base types
4306 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
4307 * fixinc/inclhack.def: add test_text entries and utilize the new
4308 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
4309 * fixinc/fixincl.x: regenerate
4311 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4313 * diagnostic.c (vline_wrapper_message_with_location,
4314 v_message_with_file_and_line, v_error_with_file_and_file,
4315 v_error_for_asm, v_warning_for_asm, vfatal,
4316 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
4317 vsorry, verror, vwarning, vpedwarn): Remove.
4318 (diagnostic_for_asm): New function.
4319 (pedwarn, error, warning, pedwarn_with_file_and_line,
4320 error_with_file_and_line, warning_with_file_and_line, sorry,
4321 error_for_asm, warning_for_asm, fatal): Reimplement.
4322 (finish_diagnostic): Clear diagnostic info as well.
4324 2000-07-13 Neil Booth <NeilB@earthling.net>
4326 * c-common.h (flag_digraphs): New.
4327 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
4328 * c-lex.c (yylex): Use flag_digraphs to decide whether to
4331 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
4333 * gcc.c (do_spec_1): Add new %B operator.
4334 (set_input): Prepare for %B.
4336 (link_command_spec): Move up with the other tm.h-
4337 overrideable specs. Factor out the portion conditional on
4338 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
4339 (struct compiler): Just have a single spec string. All users
4341 (default_compilers): Remove unnecessary braces.
4342 (static_specs): Update.
4344 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
4346 (C and assembly specs): Use the new named specs, as appropriate.
4348 * objc/lang-specs.h: Use the new named specs.
4349 Remove unnecessary braces.
4351 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
4353 * gcc.c (execute): If a subprocess gets a fatal signal, report
4354 strsignal() of the signal number, and ask for a bug report.
4355 Do not do this for SIGPIPE if there's already been an error.
4357 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
4360 * tradcif.c: Remove.
4362 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
4364 * final.c (profile_function): Do not emit profile counters in
4365 the data section, if NO_PROFILE_COUNTERS is defined.
4366 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
4369 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
4370 (FUNCTION_PROFILER): Just emit a call to mcount.
4372 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
4374 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
4376 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
4377 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
4378 traditional, lang_chill, or lang_fortran.
4380 * cppfiles.c: #undef strcmp to suppress warning about macros
4381 used without arguments.
4382 (_cpp_execute_include): Use f, not fname, in "No include path"
4384 (_cpp_pop_file_buffer): New function.
4385 * cpplib.c: Don't include <sys/mman.h>.
4386 (cpp_push_buffer): Set line_base and lineno in new buffer.
4387 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
4389 * cpplex.c: Move all prototypes and structure declarations to the
4390 top of the file. Properly parenthesise some macro arguments.
4391 (cpp_scan_line): New function.
4392 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
4393 don't need to walk up the stack counting.
4395 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4397 * c-common.c (combine_strings): Emit a pedantic warning when a
4398 string length is greater than the minimum ANSI C is required
4401 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
4403 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
4404 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
4406 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4408 * c-decl.c (define_label): Warn about identifier conflicts with
4409 labels in traditional C.
4411 * c-parse.in (unop +): Warn about the unary plus operator for
4414 * c-typeck.c (store_init_value): Warn about automatic aggregate
4415 initialization for traditional C.
4417 * invoke.texi (-Wtraditional): Document new warnings.
4419 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
4421 * Makefile.in (c-errors.o): Fix thinko in dependency.
4423 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
4425 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
4426 -traditional, -ftraditional, or -traditional-cpp was given.
4427 Do not pass -traditional to the preprocessor.
4428 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
4429 preprocessor does it automatically.
4430 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
4432 * ch/lang-specs.h: Always use tradcpp. Do not pass
4433 -traditional, -trigraphs, or -pedantic to the preprocessor.
4434 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
4437 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
4439 * cppexp.c (LOGICAL): Delete macro.
4440 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
4443 * cpphash.c (HASHSIZE): Increase to 4096.
4444 (struct hashdummy): Add hash field.
4445 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
4446 the string values using memcmp.
4447 (cpp_lookup): Set dummy.hash.
4449 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
4451 * configure.in (m88k-openbsd): Express configuration using new fragment
4453 * configure: Rebuilt.
4454 * m88k/aout-dbx.h: New.
4455 * m88k/openbsd.h: New.
4456 * m88k/xm-openbsd.h: New.
4458 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4460 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
4462 2000-07-12 Richard Henderson <rth@cygnus.com>
4464 * reload.c (push_secondary_reload): Make sure to add the new
4465 reload at the end, after acquiring secondary memory.
4467 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4469 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
4471 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
4472 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
4474 * c-parse.in (stmt): Delete unused variables.
4476 * convert.c (convert_to_vector): Likewise.
4478 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
4480 * tree.c (finish_vector_type): Prototype.
4482 2000-07-12 Bruce Korb <bkorb@gnu.org>
4484 * fixinc/fixfixes.c: use xmalloc
4485 * fixinc/fixincl.c(initialize): set program name for xmalloc
4486 * fixinc/fixlib.c(must_malloc): obsolete
4487 (is_cxx_header): no longer used - disabled
4488 (skip_quote): inserted and disabled for future use
4489 * fixinc/fixlib.h: reflects above
4490 * fixinc/fixtests.c: removed dinkleberries
4492 2000-07-12 Neil Booth <NeilB@earthling.net>
4494 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
4495 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
4497 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
4498 struct toklist_dummy): New.
4499 (cpp_free_definition): Free macros with free_macro.
4500 (count_params): Don't save paramter spellings. Save macro
4501 information in a struct macro_info.
4502 (parse_define): Don't allocate a token list.
4503 (save_expansion): Allocate the macro's token list, and
4504 save parameter spellings if necessary. Use TOKEN_SPELL.
4505 (cpp_create_definition): Make list const.
4507 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
4509 * c-typeck.c (pedwarn_c99): Move to
4510 * c-errors.c: ... Here.
4511 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
4512 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
4513 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
4514 (c-errors.o): List dependency.
4516 2000-07-12 Mark Mitchell <mark@codesourcery.com>
4518 * c-parse.c: Remove.
4519 * c-parse.h: Likewise.
4520 * c-parse.y: Likewise.
4521 * objc/objc-parse.c: Likewise.
4522 * objc/objc-pasre.y: Likewise.
4524 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
4526 * gcc.texi: Fix minor typos
4527 * extend.texi: Fix minor typos
4529 2000-07-11 Marc Espie <espie@openbsd.org>
4531 * collect2.c (main): Recognize .lo as object files.
4533 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4535 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
4538 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
4539 with MAP_ANONYMOUS and MAP_ANON.
4540 * configure, config.in: Rebuilt.
4542 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
4544 * diagnostic.c (save_output_state): Remove.
4545 (restore_output_state): Likewise.
4546 (clear_text_info): New function.
4547 (clear_diagnostic_info): Likewise.
4548 (output_text_length, is_starting_newline, output_prefix,
4549 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
4550 prefixing_policy, output_buffer_ptr_to_format_args): New macros
4551 (set_real_maximum_length, output_set_maximum_length,
4552 output_set_prefix, output_get_prefix, output_set_maximum_length,
4553 output_destroy_prefix, init_output_buffer,
4554 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
4555 output_add_newline, output_add_character, output_add_space,
4556 output_append_r, output_append, wrap_text, output_format,
4557 output_do_printf, output_printf, output_do_verbatim,
4558 output_verbatim, verbatim): Use them.
4559 (output_clear): Split into cleat_text_info and
4560 clear_diagnostic_info.
4561 (struct output_state): Move to...
4563 * diagnostic.h: ...Here
4564 (struct output_buffer): Adjust.
4566 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
4568 * cpplex.c (parse_name): No longer inline (premature optimization).
4569 (do_pop_context): Fold into pop_context.
4570 (pop_context): Returns int.
4571 (lex_next): Hoist test for end of directive into pop_context.
4572 (push_macro_context): Returns int; takes just reader and token.
4573 Hoist test for excessive nesting to caller.
4574 (push_arg_context): Returns void; takes just reader and token.
4575 Do not call stringify_arg or get_raw_token.
4576 (get_raw_token): Convert tail recursion through push_arg_context
4577 to a loop at this level. Call stringify_arg here if appropriate.
4578 (maybe_paste_with_next): Convert tail recursion to a while loop.
4579 Hoist test of paste_level to caller.
4581 (stringify_arg): Push arg context at beginning.
4582 (cpp_get_token): Split out core into _cpp_get_token. Call
4583 process_directive here. Throw away CPP_PLACEMARKER tokens.
4584 (_cpp_get_token): Convert tail recursion through
4585 push_macro_context to a loop at this level.
4586 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
4587 _cpp_get_raw_token): Use _cpp_get_token.
4588 (_cpp_skip_rest_of_line): Drop the context stack directly; do
4589 not call pop_context.
4590 (_cpp_run_directive): Call lex_next directly.
4592 * cpphash.h: Prototype _cpp_get_token.
4593 * cppexp.c (lex): Use it.
4594 * cpphash.c (parse_define): Use it.
4595 * cpplib.c (get_define_node, do_undef, parse_include,
4596 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
4597 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
4598 parse_ifdef, validate_else): Use it.
4599 (cpp_push_buffer): Tweak error message; abort if anyone tries
4600 to push a buffer while macro expansions are stacked.
4602 2000-07-11 Donn Terry <donnte@microsoft.com>
4604 * cpplex.c (free_macro_args, save_token): Cast arg of free
4605 and/or xrealloc to PTR.
4606 (_cpp_init_input_buffer): Clear all fields of the base context.
4608 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
4610 * gensupport.c (process_rtx): Make rtl checking stop
4611 complaining about the define_insn while it is being
4612 converted from a define_insn_and_split.
4614 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
4616 * config/mips/mips.c (simple_memory_operand): Access the
4617 INTVAL of the address, not it's containing MEM.
4619 2000-07-11 Bruce Korb <bkorb@gnu.org>
4621 * fixinc/fixtests.c(double_slash): obsolete
4622 (else_endif_label): likewise
4623 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
4624 (libc1_ifdefd_memx): correct initial comment
4625 and omit the #if/#endif pair from the memxxx declarations
4626 * fixinc/fixincl.x: regen
4628 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4630 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
4632 2000-07-11 Neil Booth <NeilB@earthling.net>
4636 2000-07-11 Neil Booth <NeilB@earthling.net>
4638 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
4639 (handle_option): Set digraphs according to standard.
4640 Merge OPT_lang_c89 handler with OPT_std_c89.
4642 * cpplex.c: (lex_line, can_paste): Honour digraphs in
4643 accordance with the digraphs flag.
4645 * cpplib.h: (struct cpp_options): New option digraphs.
4647 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
4648 Bruce Korb <bkorb@gnu.org>
4650 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
4651 * fixinc/fixincl.x: Regenerate.
4652 * fixinc/tests/base/testing.h: Add testcase.
4654 2000-07-10 Richard Henderson <rth@cygnus.com>
4656 * config/ia64/ia64.c (got_symbolic_operand): New.
4657 (symbolic_operand, move_operand): Revert 0701 change.
4658 * config/ia64/ia64.h (PREDICATE_CODES): Update.
4659 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
4660 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
4661 split the offset into a 14-bit low part instead of a 13-bit low part.
4662 (load_fptr): Mark the mem as unchanging.
4663 (load_symptr): Use got_symbolic_operand.
4665 2000-07-10 Nick Clifton <nickc@cygnus.com>
4667 * libgcc2.c (next_stack_level): Cast result of computation to
4668 (void **) so that the assignment does not generate a warning.
4670 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
4672 * flags.h : Add new variable flag_single_precision_constant.
4673 * toplev.c (display_help) : Add -fsingle-precision-constant option.
4674 (flag_single_precision_constant): New.
4675 * c-lex.c (yylex): Convert floating point constant to single
4677 * invoke.texi : Add documentation for this new option.
4679 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
4681 * diagnostic.c (output_octal): Second parameter is unsigned.
4682 (output_long_octal): Likewise.
4683 (output_hexadecimal): Likewise.
4684 (output_long_hexadecimal): Likewise.
4685 (output_format): Adjust arguments extraction. Tweak.
4686 (output_verbatim, verbatim): End variable argument list.
4687 (report_diagnostic): Improve documentation.
4689 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
4691 * c-common.h (build_stmt): Declare.
4692 (build_continue_stmt): Likewise.
4693 (build_break_stmt): Likewise.
4694 (build_return_stmt): Likewise.
4696 * c-decl.c (do_case): Rewrite to do what previously done in
4699 * c-semantics.c (build_stmt): Define.
4700 (build_return_stmt): Likewise.
4701 (build_break_stmt): Likewise.
4702 (build_continue_stmt): Likewise.
4703 (build_case_label): Likewise.
4705 * c-parse.in (BREAK): Change to build tree, then generate RTL.
4706 (CONTINUE): Likewise.
4709 (DEFAULT): Likewise.
4711 * c-parse.y: Regenerate.
4712 * c-pasre.c: Likewise.
4714 2000-07-09 Jason Merrill <jason@redhat.com>
4716 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
4718 * tree.h (STRIP_NOPS): Check for error_mark_node.
4719 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
4720 (dwarf2out_*): Remove duplicate declarations.
4722 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
4723 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
4725 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
4727 * diagnostic.c (wrap_text): New function.
4728 (maybe_wrap_text): Likewise.
4729 (output_add_string): Use it.
4730 (output_format): Likewise.
4731 (count_error): Use verbatim instead of notice.
4732 (report_error_function): Likewise. Don't use plain fprintf.
4733 (finish_diagnostic): New function.
4734 (output_do_verbatim): Tweak. Commonalize functionalities in
4735 output_verbatim and verbatim.
4736 (output_verbatim): Adjust.
4737 (verbatim): Likewise.
4738 (report_diagnostic): Define.
4740 * diagnostic.h (report_diagnostic): Prototype.
4742 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
4744 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
4746 2000-07-09 Neil Booth <NeilB@earthling.net>
4748 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
4749 IShspace, ISspace: Update.
4751 * cppinit.c: ISTABLE: Update.
4754 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
4755 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
4756 (skip_block_comment, skip_line_comment, parse_string,
4757 lex_line): Use is_vspace rather than IS_NEWLINE.
4758 (skip_whitespace, lex_line): Clean up to use is_nvspace.
4759 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
4761 (lex_next): Unconditionally stop if within a directive.
4762 Treat directives within macro invocations as directives
4763 (after parse_args emits error), not as the argument.
4765 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
4767 * diagnostic.c (diagnostic_args): New macro.
4768 (diagnostic_msg): Likewise.
4769 (output_formatted_integer): Likewise.
4770 (output_state): New data type.
4771 (digit_buffer): Make global.
4772 (output_add_integer): Rename to output_decimal. Squeeze
4774 (output_long_decimal, output_unsigned_decimal,
4775 output_long_unsigned_decimal, output_octal, output_long_octal,
4776 output_hexadecimal, output_long_hexadecimal): New functions.
4777 (output_append_r): New function.
4778 (output_append): Tweak.
4779 (output_flush_on): Rename to output_to_stream.
4780 (output_format): Change prototype. Improve documentation. Handle
4781 more format specifiers.
4782 (build_location_prefix): Rename to context_as_prefix.
4783 (output_notice): Rename to output_do_printf.
4784 (output_printf): Tweak.
4785 (line_wrapper_printf): Likewise.
4786 (vline_wrapper_message_with_location): Adjust call to renamed
4788 (v_message_with_decl): Likewise.
4789 (default_print_error_function): Likewise.
4790 (save_output_state): New function.
4791 (restore_output_state): Likewise.
4792 (output_do_verbatim): Likewise.
4793 (output_verbatim): Define.
4794 (verbatim): Likewise.
4796 * diagnostic.h (printer_fn): Change return type from void to int.
4797 Improve documentation.
4798 (output_add_integer): Rename to output_decimal.
4799 (output_flush_on, output_format): Don't export.
4800 (output_verbatim, verbatim): Declare.
4802 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
4804 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
4805 Check whether c divides op1 exactly if operation is not
4808 2000-07-08 Richard Henderson <rth@cygnus.com>
4810 * final.c (final): Do not abort when reg-stack introduces
4813 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
4815 * cpplib.h (struct cpp_name): Now struct cpp_string.
4816 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
4817 CPP_HEADER_NAME): Change to type S.
4818 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
4819 field, a cpp_hashnode *. All references to val.name updated
4820 to use val.str or val.node as appropriate.
4821 (struct cpp_reader): Add spec_nodes field.
4822 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
4824 * cpphash.h (struct spec_nodes): New.
4825 (enum spell_type): Reorder. Only SPELL_STRING tokens use
4826 val.str. All references to 'spelling > SPELL_NONE' updated to
4829 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
4830 pfile->buffer->inc are not NULL before dereferencing them.
4832 * cpplex.c (parse_name): Take a pointer to the current token,
4833 plus current position and limit as args; return the new
4834 position; don't copy the text of a name into the string
4835 buffer, instead call cpp_lookup and store the node pointer.
4836 If extending a token, copy out the text of the old into a
4837 scratch buffer, append the new, look that up and store the new
4838 node pointer. Inline.
4839 (maybe_paste_with_next): If the result of paste is a NAME,
4840 then look up the pasted text and store its node pointer.
4841 (lex_line): Adjust for new parse_name interface.
4842 Check for L"str", L'str' using spec_nodes->n_L.
4843 (spell_token): SPELL_IDENT tokens have their spelling in
4844 val.node->name. Handle SPELL_STRING tokens that don't have
4846 (_cpp_expand_name_space,
4847 (can_paste): Check for L ## "str" using spec_nodes->n_L.
4848 (cpp_get_token, special_symbol): No need to call cpp_lookup.
4849 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
4850 return 1=equal 0=not, not a tristate.
4852 * cpphash.c (var_args_str): Delete.
4853 (find_param): Compare node fields directly.
4854 (is__va_args__): Use CPP_PEDANTIC. Just compare
4855 token->val.node with spec_nodes->n__VA_ARGS__.
4856 (dump_funlike_macro): Don't use var_args_str.
4858 * cpplib.c (_cpp_check_directive): Just walk through
4859 spec_nodes->dirs comparing pointers.
4860 (get_define_node, do_pragma_poison, detect_if_not_defined,
4861 parse_ifdef): The identifier has already been looked up.
4862 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
4864 (do_if): Only call detect_if_not_defined at beginning of file.
4865 (_cpp_parse_assertion): Only copy string pointers for
4866 SPELL_STRING tokens.
4867 (pragma_dispatch): Take a node pointer and examine its name
4869 (_cpp_init_stacks): Also initialize the spec_nodes structure.
4871 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
4873 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
4874 reverse order from the corresponding _cpp_init_* routines.
4876 * cppexp.c (parse_number, parse_charconst, parse_defined,
4877 lex): Check val.node->type instead of calling cpp_defined.
4878 Use spec_nodes entries where appropriate.
4880 * fix-header.c, scan-decls.c: Update for interface changes.
4882 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
4884 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
4885 emitting aux_truncdfsf2.
4887 2000-07-03 Donn Terry (donnte@microsoft.com)
4889 * cppinit.c (print_help): split overlong line into ISO C89
4892 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
4894 * cppexp.c: Update all code for new lexer interface.
4895 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
4896 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
4897 * cpplex.c (token_names): Trim leading CPP_ from names; make
4898 the strings unsigned.
4899 (_cpp_spell_operator): New.
4900 (is_macro_disabled): Disable all macros if rescanning
4902 (_cpp_get_directive_token): Remove.
4904 * cppinit.c: Don't set no_macro_expand.
4905 * cpplib.c (read_line_number, do_line): Check only for EOF,
4907 * cpphash.h: Update prototypes.
4908 * cpplib.h (CPP_VSPACE): Remove.
4909 (struct cpp_reader): Remove no_macro_expand.
4911 2000-07-08 Neil Booth <NeilB@earthling.net>
4913 * cpphash.c (is__va_args__): New function.
4914 (count_params): Fix line reported in error messages. Use
4915 is__va_args__. Don't return ')' on error. Flag GNU style
4916 rest args macro definitions.
4917 (parse_define): Check macro name is not __VA_ARGS__.
4918 (save_expansion): Check identifier in non-varargs-macro is
4919 not __VA_ARGS__. Don't flag GNU_VARARGS.
4920 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
4921 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
4922 than per-token GNU_VARARGS.
4923 * cpplib.h (GNU_VARARGS): Remove.
4924 (GNU_REST_ARGS): New.
4926 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
4928 * i386.md (call_pop, call, call_value_pop): Do not set
4929 current_function_uses_pic_offset_table for calls to static
4930 functions or indirect calls.
4932 2000-07-07 Jim Wilson <wilson@cygnus.com>
4934 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
4935 is_predicate_reg, then take max write_count of register pair.
4937 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4939 * tradcpp.c (main): Rename label `include' to `add_include' to
4940 avoid conflicts with variable `include' in traditional C.
4942 2000-07-07 Jakub Jelinek <jakub@redhat.com>
4944 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
4946 2000-07-07 Jakub Jelinek <jakub@redhat.com>
4948 * sibcall.c (uses_addressof): Add INMEM argument, check for
4949 current_function_internal_arg_pointer outside of MEM rtxs in addition
4951 (sequence_uses_addressof): Update caller.
4953 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
4955 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
4958 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4960 * system.h (UNION_INIT_ZERO): New macro for initializing union
4963 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
4965 2000-07-07 Neil Booth <NeilB@earthling.net>
4969 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
4971 * final.c (final): Detect out of bounds array access to
4972 the insn_lengths array.
4974 2000-07-07 Kazu Hirata <kazu@hxi.com>
4976 * fold-const.c (fold): Fix a comment typo.
4978 2000-07-07 Neil Booth <NeilB@earthling.net>
4980 * cpp.texi: Update to new lexer.
4982 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
4984 * tradcpp.c: New file.
4985 * tradcif.y: New file.
4986 * tradcif.c: New generated file.
4988 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
4989 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
4990 dependencies of C. Install tradcpp from install-common, in
4993 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
4995 * cppinit.c: Include cppdefault.h. Refer to
4996 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
4997 to GCC_INCLUDE_DIR and its length.
4998 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
4999 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
5000 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
5002 (include_defaults_array): Move to cppdefault.c.
5004 * cppdefault.h: New file.
5005 * cppdefault.c: New file.
5007 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
5008 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
5009 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
5012 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5014 * reload.c (push_reload): When seeing if can reuse a register,
5015 check extra registers against widest of INMODE and OUTMODE.
5017 2000-07-06 Neil Booth <NeilB@earthling.net>
5019 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
5020 based on full length of predicate.
5022 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
5024 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
5025 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
5027 2000-07-05 Kazu Hirata <kazu@hxi.com>
5029 * h8300-proto.h: Fix formatting.
5030 * h8300.c: Likewise.
5031 * h8300.h: Likewise.
5033 2000-07-05 Jim Wilson <wilson@cygnus.com>
5035 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
5038 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
5040 * invoke.texi: Fix minor typos
5041 * md.texi: Fix minor typos
5043 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
5045 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
5047 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
5049 * cpplex.c: Don't include sys/mman.h.
5050 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
5052 * cpplib.c: Include sys/mman.h and obstack.h.
5053 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
5055 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
5056 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
5057 bother freeing if stack entries (they will be freed with their buffer).
5058 (do_endif): Free if stack entries from the buffer obstack.
5059 (push_conditional): Allocate if stack entries from the buffer obstack.
5061 (find_answer): Rename to _cpp_find_answer.
5062 (do_assert, do_unassert): Update.
5064 * cpphash.h: Update prototypes.
5065 (xobnew): New convenience macro.
5066 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
5068 (struct cpp_hashnode): Remove disabled field.
5070 * cppinit.c: Don't include hashtab.h or splay-tree.h.
5071 (report_missing_guard): Moved to cppfiles.c.
5072 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
5074 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
5075 cpp_cleanup_includes. Don't destroy hashtab or
5076 all_include_files here.
5077 (cpp_finish): Use _cpp_report_missing_guards.
5079 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
5080 (_cpp_init_include_table): Rename _cpp_init_includes.
5081 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
5083 * cppexp.c (parse_assertion): Update for new name of
5086 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
5088 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
5090 * cpplib.c (do_ident): s/VSPACE/EOF/
5092 2000-07-05 Neil Booth <NeilB@earthling.net>
5094 * cpplex.c: Fix trigraph replacement within strings.
5096 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5098 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
5100 * xcoffout.c (assign_type_number): Constify.
5101 (xcoffout_source_file): Add static prototype. Don't needlessly
5102 cast away const-ness.
5104 2000-07-04 Jason Merrill <jason@redhat.com>
5106 * frame.h (frame_state): Move base_offset to end.
5108 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
5110 * calls.c (emit_library_call_value_1): Revert previous change.
5112 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
5114 * fix-header.c (struct partial_proto): Remove unnecessary fields.
5115 (recognized_extern, recognized_function, read_scan_file):
5116 Update for new scheme.
5117 (check_protection): It's still a multiple include guard even
5118 if it doesn't always trigger.
5119 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
5121 * scan.h: Declare struct cpp_token. Update prototypes.
5123 2000-07-03 Neil Booth <neilb@earthling.net>
5124 Zack Weinberg <zack@wolery.cumb.org>
5126 Complete overhaul of the lexer and macro expander.
5128 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
5129 arg, arglist, argdata, reflist, collect_objlike_expansion,
5130 collect_funlike_expansion, collect_params,
5131 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
5132 unsafe_chars, macarg, compare_defs, special_symbol,
5133 scan_arguments, stringify, funlike_macroexpand,
5134 _cpp_quote_string, monthnames): Delete.
5135 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
5136 _cpp_create_definition, _cpp_dump_definition,
5137 dump_hash_helper): Adjust.
5138 (find_param, count_params, parse_define, var_args_str,
5139 check_macro_redefinition, save_expansion): New.
5141 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
5142 parse_string, output_line_command, trigraph_replace,
5143 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
5144 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
5145 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
5146 _cpp_skip_rest_of_line): Modify.
5148 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
5149 find_position, null_warning, bump_column, expand_name_space,
5150 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
5151 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
5152 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
5153 _cpp_prescan): Delete.
5155 (dump_param_spelling, process_directive, lex_next,
5156 is_macro_disabled, stringify_arg, expand_context_stack,
5157 output_token, make_string_token, alloc_number_token,
5158 special_symbol, duplicate_token, maybe_paste_with_next,
5159 can_paste, prevent_macro_expansion, restore_macro_expansion,
5160 get_temp_token, release_temp_tokens, quote_string,
5161 token_names, token_spellings, _cpp_expand_name_space,
5162 _cpp_glue_header_name, _cpp_reserve_name_space,
5163 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
5164 placemarker_token, eof_token, cpp_context, macro_args,
5165 get_raw_token, parse_arg, parse_args, save_token,
5166 push_arg_context, push_macro_context, pop_context,
5167 do_pop_context, free_macro_args, _cpp_get_line,
5168 _cpp_run_directive): New.
5170 * cpplib.c (validate_else, parse_include, push_conditional,
5171 pass_thru_directive, read_line_number, parse_ifdef,
5172 detect_if_not_defined, _cpp_check_directive, do_define,
5173 do_undef, do_include, do_import, do_include_next, do_error,
5174 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
5175 top_pragmas, do_pragma_gcc, do_pragma_implementation,
5176 do_pragma_poison, do_pragma_system_header,
5177 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
5178 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
5179 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
5180 cpp_defined): Update for new scheme.
5181 (strtoul_for_line, get_define_node, dump_macro_name,
5182 _cpp_check_linemarker, _cpp_parse_assertion): New.
5183 (_cpp_handle_directive, do_pragma_default): Delete.
5185 * cpphash.h (struct predicate): Now struct answer.
5186 (enum spell_type, struct token_spelling, struct directive,
5187 directive_handler): New.
5188 Update prototypes. Remove unused macros.
5189 * cpplib.h: Update prototypes. Remove unused macros,
5190 structure definitions, and fields.
5192 * cpperror.c (print_containing_files, v_message): Adjust.
5193 * cppexp.c (parse_assertion, lex, parse_escape,
5194 _cpp_parse_expr): Adjust.
5195 * cppfiles.c (open_include_file, _cpp_execute_include,
5196 _cpp_compare_file_date, cpp_read_file, read_include_file):
5198 * cppinit.c (dump_special_to_buffer): Delete.
5199 (append_include_chain, merge_include_chains, cpp_reader_init,
5200 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
5201 cpp_finish, handle_option, print_help): Adjust.
5202 * cppmain.c (main): Adjust.
5204 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
5206 * cppspec.c (lang_specific_driver): Use double quotes in error
5209 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
5211 * calls.c (emit_library_call_value_1): Use valreg instead
5212 of hard_libcall_value.
5214 2000-07-03 Geoff Keating <geoffk@cygnus.com>
5216 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
5217 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
5218 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
5226 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
5227 mode instead of wider_mode is being used.
5229 2000-07-03 Jakub Jelinek <jakub@redhat.com>
5231 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
5232 of 'r'. Use q_regs_operand.
5233 (andsi_1+2): Use q_regs_operand.
5235 2000-07-03 Jakub Jelinek <jakub@redhat.com>
5237 * builtins.c (get_memory_rtx): Always put into alias set 0.
5239 2000-07-03 Nick Clifton <nickc@cygnus.com>
5241 * config/arm/arm.md: Fix post increment and pre increment
5242 peepholes so that they do not generate UNPREDICATBLE opcodes.
5243 (ie ones where the increment clobbers the source/destination).
5245 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
5247 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
5248 change too big for -mtiny-stack" a warning, if larger than 63.
5249 (out_set_stack_ptr): Change the logic so -mno-interrupts is
5250 always safe to use on possible future devices.
5251 (function_prologue): Write SPH before SPL, for consistency.
5252 If interrupt_func_p true, we know we have enabled interrupts.
5253 (avr_num_arg_regs): New function. Round up to even number of
5254 bytes if no -mpack-args or if calling a libgcc function.
5255 (function_arg, function_arg_advance): Use it.
5256 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
5257 Output "movw" if available.
5258 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
5259 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
5260 (asm_output_section_name): Add blanks for consistent output.
5261 (encode_section_info): Set TREE_READONLY for progmem data to
5262 avoid gas warnings about changed section attributes.
5263 (avr_hard_regno_mode_ok): Force non-QImode data to start in
5264 even numbered registers on devices with "movw".
5265 * config/avr/avr.h (MASK_*): Define bits for target_flags.
5266 (TARGET_SWITCHES): Mark help strings for translation.
5267 Add new -mpack-args and -menhanced switches.
5268 (TARGET_OPTIONS): Mark help strings for translation.
5269 (progmem_section): Add section attributes.
5270 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
5271 Output "movw" if available.
5272 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
5274 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
5275 call convention (arguments aligned on even registers).
5276 (_cleanup, _exit): Make weak symbols libc can override.
5278 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5280 * fp-bit.h: New file.
5282 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
5283 Comment #endif statements.
5284 (__thenan_sf, __thenan_df): Add missing braces around initializer.
5286 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
5288 * gcse.c (compute_pre_data): Compute ae_kill using other local
5289 properties instead of calling compute_ae_kill.
5291 * alias.c (init_alias_analysis): Do not call
5292 prologue_epilogue_contains until after reload has completed.
5294 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
5296 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
5297 (genrtl_finish_compound_stmt): Likewise.
5298 (genrtl_compound_stmt): Change to return void.
5300 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
5301 move code from here to ...
5302 (genrtl_compound_stmt): ... here.
5303 (genrtl_finish_compound_stmt): Remove.
5304 (expand_stmt): Add comment.
5306 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
5308 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
5311 2000-07-02 Jakub Jelinek <jakub@redhat.com>
5313 * cpplib.h (struct cpp_reader): New field include_depth.
5314 (struct cpp_printer): Rename last_bsd to last_id.
5315 * cppfiles.c (read_include_file): Bump include_depth.
5316 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
5317 (output_line_command): Output correct #line if a header
5318 is including itself and is not protected against multiple inclusion.
5319 Use include_depth instead of buffer_stack_depth, last_id instead of
5321 * cppinit.c (cpp_start_read): Initialize last_id instead of
5324 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
5326 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
5327 (c-semantics.o): New target.
5329 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
5330 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
5331 (genrtl_clear_out_block): Likewise.
5332 (genrtl_goto_stmt): Likewise.
5333 (genrtl_expr_stmt): Likewise.
5334 (genrtl_decl_stmt): Likewise.
5335 (genrtl_if_stmt): Likewise.
5336 (genrtl_while_stmt): Likewise.
5337 (genrtl_do_stmt): Likewise.
5338 (genrtl_return_stmt): Likewise.
5339 (genrtl_for_stmt): Likewise.
5340 (genrtl_break_stmt): Likewise.
5341 (genrtl_continue_stmt): Likewise.
5342 (genrtl_scope_stmt): Likewise.
5343 (genrtl_switch_stmt): Likewise.
5344 (genrtl_case_label): Likewise.
5345 (genrtl_begin_compound_stmt): Likewise.
5346 (gerntl_finish_compound_stmt): Likewise.
5347 (genrtl_compound_stmt): Likewise.
5348 (genrtl_asm_stmt): Likewise.
5349 (genrtl_decl_cleanup): Likewise.
5350 (DECL_ANON_UNION_ELEMS): Likewise.
5351 (emit_local_var): Likewise.
5352 (make_rtl_for_local_static): Likewise.
5353 (expand_cond): Likewise.
5354 (expand_stmt): Likewise.
5355 (c_expand_return): Likewise.
5356 (c_expand_start_case): Likewise.
5357 (do_case): Likewise.
5358 (COMPOUND_STMT_NO_SCOPE): Likewise.
5359 (c_expand_asm_operands): Likewise.
5360 (NEW_FOR_SCOPE_P): New macro.
5361 (expand_expr_stmt_fn): New type.
5363 (set_current_function_name_declared): Likewise.
5364 (current_function_name_declared): Likewise.
5365 (lang_expand_stmt): Likewise.
5366 (stmts_are_full_exprs_p): Likewise.
5367 (anon_aggr_type_p): Likewise.
5368 (lang_expand_expr_stmt): Likewise.
5369 (build_case_label): Likewise.
5371 * c-decl.c (lang_expand_expr_stmt): Initialize.
5372 (stmts_are_full_exprs_p): Define.
5373 (current_function_name_declared): Likewise.
5374 (do_case): Likewise.
5375 (lang_expand_stmt): Likewise.
5376 (set_current_function_name_declared): Likewise.
5377 (anon_aggr_type_p): Likewise.
5379 * c-semantics.c: New file.
5380 (expand_cond): Moved from cp/semantics.c.
5381 (genrtl_do_pushlevel): Likewise.
5382 (genrtl_clear_out_block): Likewise.
5383 (genrtl_goto_stmt): Likewise.
5384 (genrtl_expr_stmt): Likewise.
5385 (genrtl_decl_stmt): Likewise.
5386 (genrtl_if_stmt): Likewise.
5387 (genrtl_while_stmt): Likewise.
5388 (genrtl_do_stmt): Likewise.
5389 (genrtl_return_stmt): Likewise.
5390 (genrtl_for_stmt): Likewise.
5391 (genrtl_break_stmt): Likewise.
5392 (genrtl_continue_stmt): Likewise.
5393 (genrtl_scope_stmt): Likewise.
5394 (genrtl_switch_stmt): Likewise.
5395 (genrtl_case_label): Likewise.
5396 (genrtl_begin_compound_stmt): Likewise.
5397 (genrtl_finish_compound_stmt): Likewise.
5398 (genrtl_compound_stmt): Likewise.
5399 (genrtl_asm_stmt): Likewise.
5400 (genrtl_decl_cleanup): Likewise.
5401 (make_rtl_for_local_static): Moved from cp/decl.c.
5402 (emit_local_var): Likewise.
5403 (expand_stmt): Define.
5405 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
5406 (c_expand_return): Likewise.
5407 (c_expand_start_case): Likewise.
5409 2000-07-01 Richard Henderson <rth@cygnus.com>
5411 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
5412 with the low 13 bits set.
5413 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
5414 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
5415 of the low 13 bits into a CONST plus an adddi3.
5416 (load_symptr): Set RTX_UNCHANGING_P.
5418 See ChangeLog.3 for earlier changes.