1 2000-08-24 Jim Wilson <wilson@cygnus.com>
3 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
4 Copy type in a TYPE_DECL, just like pushdecl does.
6 2000-08-24 Richard Henderson <rth@cygnus.com>
8 * toplev.c (main): Enable flag_reorder_blocks at -O2.
10 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
12 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
13 asked for one page, allocate GGC_QUIRE_SIZE of them and put
14 the extras on the free list.
15 (release_pages): Clean up.
16 (ggc_set_mark): Don't adjust G.allocated here...
17 (sweep_pages): ... do it here.
19 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
21 * cppfiles.c (read_include_file): Rearrange initializations.
23 2000-08-24 Richard Henderson <rth@cygnus.com>
25 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
27 * config/ia64/ia64-protos.h: Update.
28 * config/ia64/ia64.c (gr_register_operand): New.
29 (fr_register_operand, grfr_register_operand): New.
30 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
31 (grfr_reg_or_8bit_operand): New.
32 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
33 use gr_register_operand.
34 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
35 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
36 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
37 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
38 (fr_reg_or_fp01_operand): Likewise.
39 (not_postinc_memory_operand): New.
40 (ia64_split_timode): Remove unused variables.
41 (rtx_needs_barrier): Check arguments to cmpxchg.
42 (builtin_description): Remove.
43 (bdesc_2argsi, bdesc_2argdi): Remove.
44 (ia64_init_builtins): Declare all builtins directly.
45 (ia64_expand_fetch_and_op): Rewrite to be called from
46 ia64_expand_builtin directly. Use expand_binop and co.
47 (ia64_expand_op_and_fetch): Likewise.
48 (ia64_expand_compare_and_swap): Likewise.
49 (ia64_expand_binop_builtin): Remove.
50 (ia64_expand_lock_test_and_set): New.
51 (ia64_expand_lock_release): New.
52 (ia64_expand_builtin): Use them.
53 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
54 (EXTRA_CONSTRAINT): Use it.
55 (PREDICATE_CODES): Update.
56 * config/ia64/ia64.md (*): Use gr_register_operand and co.
57 (mf): Indicate that we set memory as well as use it.
58 (fetchadd_acq_si): Show memory being modified as well.
59 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
60 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
61 (lock_test_and_set_si, lock_test_and_set_di): Remove.
62 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
63 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
64 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
65 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
66 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
67 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
68 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
69 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
70 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
71 return type. Pretty print definitions.
73 2000-08-24 Jim Wilson <wilson@cygnus.com>
75 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
76 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
78 2000-08-24 Jason Merrill <jason@redhat.com>
80 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
81 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
82 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
83 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
85 2000-08-24 Greg McGary <greg@mcgary.org>
87 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
88 and extendtab within their proper array boundaries.
89 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
92 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
93 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
94 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
95 * config/fr30/fr30.c (fr30_print_operand): Likewise.
96 * config/i386/dgux.c (output_options): Likewise.
97 * config/i386/dgux.h (ASM_FILE_START): Likewise.
98 * config/m88k/m88k.c (output_options): Likewise.
99 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
100 * config/mcore/mcore.c (mcore_output_inline_const_forced,
101 layout_mcore_frame, handle_structs_in_regs): Likewise.
102 * config/mips/mips.c (output_block_move): Likewise.
103 * config/rs6000/rs6000.c (rs6000_override_options,
104 rs6000_file_start): Likewise.
105 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
106 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
107 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
108 * builtins.c (expand_builtin_setjmp): Likewise.
109 * expr.c (safe_from_p): Likewise.
110 * flow.c (life_analysis): Likewise.
111 * fold-const.c (size_int_type_wide): Likewise.
112 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
113 * genattrtab.c (make_length_attrs): Likewise.
114 * genopinit.c (gen_insn): Likewise.
115 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
116 * global.c (global_alloc): Likewise.
117 * local-alloc.c (find_free_reg): Likewise.
118 * mips-tdump.c (print_symbol): Likewise.
119 * mips-tfile.c (parse_def, parse_input): Likewise.
120 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
121 * stmt.c (expand_nl_goto_receiver): Likewise.
122 * stor-layout.c (set_sizetype): Likewise.
123 * varasm.c (decode_reg_name): Likewise.
124 * toplev.c (decode_f_option, decode_W_option,
125 set_target_switch, print_switch_values): Likewise.
126 (NUM_ELEM): Remove macro.
127 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
129 2000-08-24 Greg McGary <greg@mcgary.org>
131 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
132 (MAIN_NAME_P, main_identifier_node): New macros.
133 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
134 * c-decl.c (start_decl, grokdeclarator, start_function,
135 store_parm_decls, finish_function): Use MAIN_NAME_P.
136 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
137 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
138 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
139 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
141 2000-08-24 Greg McGary <greg@mcgary.org>
143 * cppfiles.c (actual_directory): Don't write beyond `dir'
145 * real.c (asctoeg): Stay within bounds of etens[][].
147 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
149 * dependence.c (dependence_string, direction_string,
150 dump_one_node, dump_node_dependence): Hide unused identifiers.
151 (get_low_bound, normalize_coefficients): Match definition to
153 (get_one_coefficient): Initialize variables `value0_is_idx' and
155 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
156 (ziv_test): Delete variable `idx', use parameter `sub' instead.
157 (direction_merge): Avoid automatic aggregate initialization.
158 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
159 Initialize variables `dest_idx' and `src_idx'.
160 (end_dependence_analysis): Avoid C89 style function definition.
162 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
164 * c-common.c (time_char_table): Don't allow width with %F.
165 (check_format_info): Don't allow "Z" length with scanf.
167 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
169 * diagnostic.c (finish_diagnostic): Define.
170 (output_do_printf): Use wrap_text instead of output_add_string.
171 (default_print_error_function): Avoid embedded '\n'.
173 * diagnostic.h (flush_diagnostic_buffer): Declare.
175 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
177 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
179 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
181 * Makefile.in (GCC_PASSES): Add specs.
183 2000-08-23 Jim Wilson <wilson@cygnus.com>
185 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
186 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
187 EHANDLER nor UHANDLER bit is set.
188 (__get_except_table): Likewise.
190 2000-08-23 Nick Clifton <nickc@redhat.com>
192 * config/arm/lib1funcs.asm: Replace upper case condition codes
193 with lower case versions.
195 * config/arm/arm.h (STRUCT_VALUE): Define.
196 (STRUCT_VALUE_REGNUM): Delete.
198 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
200 * cpphash.h (IN_I): New flag for directive table.
201 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
203 (_cpp_check_directive): If -fpreprocessed, execute directives
204 marked with IN_I. Issue no warnings in this case.
205 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
207 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
209 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
211 (check_format_info): Support printf 'I' flag; warn about it with
214 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
216 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
217 barrier can't be ignored by the alias analysis code.
219 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
221 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
222 works inside fixincl.
224 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
226 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
227 simplify_relational_operation() unless both operands are of
229 * cse.c (fold_rtx): Likewise.
231 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
233 * rtlanal.c (rtx_unstable_p): The pic register is stable
234 (within one function) and the actual rtx should be used
235 when checking the registers.
236 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
238 * alias.c (true_dependence, write_dependence_p): Fix
239 bug in previous patch.
241 * i386.c (ix86_GOT_alias_set): New.
242 (legitimize_pic_address): Use it.
244 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
245 only stable if its address is stable.
246 (rtx_varies_p): An unchanging MEM can't vary if
247 its address doesn't vary.
249 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
251 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
253 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
255 * vax.h (ASM_SPEC): Pass `-J' to assembler.
256 * x-vax-gcc: New file for bootstrapping with gcc.
257 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
258 * configure.in: Use x-vax-gcc with gcc.
259 * configure: Rebuilt.
261 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
263 * toplev.c (rest_of_compilation): Rebuild label notes after
264 post-reload splitting pass if new labels have been created.
266 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
268 * diagnostic.h (output_buffer_state): New macro.
269 * diagnostic.c (diagnostic_for_decl, sorry,
270 default_print_error_function, output_do_verbatim,
271 report_diagnostic, report_problematic_module): Use it.
273 (output_format): Use wrap_text instead of maybe_wrap_text.
275 2000-08-22 Nick Clifton <nickc@redhat.com>
277 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
278 Common code for ARM divide and modulus functions.
279 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
281 (FUNC_END): New macro: Common code at the end of the division and
283 (THUMB_FUNCTION_START): New macro: Common code at the start of
285 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
287 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
289 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
291 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
292 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
295 2000-08-22 Nick Clifton <nickc@redhat.com>
297 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
298 restorative additions, test for bottom bits of IP being set,
299 rather than relying upon the RORs not matching.
302 2000-08-22 David Edelsohn <edelsohn@gnu.org>
304 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
305 text_section() as appropriate instead of emitting text csect
307 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
308 (UNIQUE_SECTION): Define macro.
309 (ASM_OUTPUT_SECTION_NAME): Define macro.
310 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
311 on AIX if debugging and -fdata-sections always.
313 2000-08-22 Steven King <sxking@uswest.net>
315 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
317 (LDBL_MAX): Same here.
319 2000-08-22 Richard Henderson <rth@cygnus.com>
321 * flow.c (tidy_fallthru_edge): Update b->end properly.
323 2000-08-22 Stan Cox <scox@redhat.com>
325 * Makefile.in (OBJS): Add dependence.o.
326 * dependence.c: New file.
328 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
330 * calls.c (check_sibcall_argument_overlap_1): Adjust for
332 (check_sibcall_argument_overlap): Likewise.
334 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
336 * invoke.texi (SH Options): Document -m4-nofpu,
337 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
338 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
340 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
342 * c-common.c (check_format_info): Give the 'some locales' warning
343 for strftime %Ey rather than the unconditional 'only last 2 digits
346 2000-08-22 Richard Henderson <rth@cygnus.com>
348 * alias.c (init_alias_analysis): Do not register
349 struct_value_incoming_rtx or static_chain_rtx as pointing
352 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
354 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
356 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
358 * diagnostic.h (report_problematic_module): Declare.
359 * diagnostic.c (report_problematic_module): New function.
360 (report_error_function): Tweak.
362 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
364 * stmt.c (expand_goto_internal, fixup_gotos): Only check
365 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
367 2000-08-21 Richard Henderson <rth@cygnus.com>
369 * flow.c (calculate_global_regs_live): Mark frame pointer live
370 everywhere before reload.
372 2000-08-21 Jim Wilson <wilson@cygnus.com>
374 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
375 INTEL_EXTENDED_IEEE_FORMAT.
376 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
377 clear last two bytes of output FP value.
379 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
381 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
383 2000-08-21 Jakub Jelinek <jakub@redhat.com>
385 * unroll.c (loop_find_equiv_value): If ret is modified between
386 insn and loop_start, ret might not be equivalent to reg.
388 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
390 * c-common.c (init_dollar_format_checking,
391 maybe_read_dollar_number, finish_dollar_format_checking): New
393 (dollar_arguments_used, dollar_arguments_count,
394 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
396 (check_format_info): Support $ formats for scanf and printf width
397 and precision. Always increment format_chars to advance past the
398 '*' of precision, not just when the format parameters are
401 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
403 * mips.c (block_move_loop, expand_block_move,
404 function_arg_partial_nregs, save_restore_insns, function_prologue,
405 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
407 (function_arg_advance, function_arg): Match argument to format
410 2000-08-21 Nix <nix@esperi.demon.co.uk>
412 * gcc.c (do_spec_1): Implement %j spec flag.
415 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
416 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
417 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
418 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
420 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
421 writable) instead of hardcoded value.
423 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
425 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
428 * gcc.c (cc1_options): Do not process -o or run the assembler if
430 * objc/lang-spec.h: Likewise.
432 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
434 * fixinc/fixincl.c (fix_with_system): Pipe the output of
435 "external" fixes through `cat', to avoid truncating the input
438 2000-08-21 Jakub Jelinek <jakub@redhat.com>
440 * config/i386/i386.md (lea_general_1): Copy insn condition to split
442 (lea_general_2, lea_general_3): Likewise.
444 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
446 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
447 warnings to user code.
449 * c-lex.c (readescape, yylex): Likewise.
451 * c-typeck.c (store_init_value, process_init_element): Likewise
452 (c_expand_start_case): Format.
454 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
456 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
458 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
459 and linker_endian_spec to endian_spec.
460 (ENDIAN_SPEC): Add %{EB} and %{EL}.
461 (LINK_SPEC): Remove %{EB} and %{EL}.
462 (ASM_SPEC): Likewise. Use %(endian_spec).
464 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
466 * c-tree.h (flag_hosted): Move declaration from here...
467 * c-common.h (flag_hosted): ... to here.
468 (flag_noniso_default_format_attributes): New declaration.
469 * c-decl.c (flag_noniso_default_format_attributes): New variable.
470 (c_decode_option): Set it appropriately for options choosing
471 language standard variant.
472 * c-common.c (init_function_format_info): Only provide default
473 format attributes if flag_hosted. Only provide the gettext
474 formats if flag_noniso_default_format_attributes. Update
476 (check_format_info): Disable treatment of %a as a scanf flag in
479 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
481 * c-common.c (scan_char_table): Add 'w' to flags for all formats
483 (check_format_info): Set 'wide' for scanf format widths. Warn for
484 a zero scanf width. Make the check for writing into a constant
485 object at the first level of indirection; at later levels, warn if
486 any type qualifiers are encountered.
488 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
490 * reload.c (reload_inner_reg_of_subreg): New function broken out of
492 (push_reload): Use reload_inner_reg_of_subreg.
493 (combine_reloads): Do not combine reloads if the input reload
494 is a SUBREG in which the inner part will need reloading.
496 * global.c (global_alloc): Avoid passing dumpfile argument to
498 * toplev.c (rest_of_compilation): Likewise.
499 * reload.h (reload): Remove dumpfile argument. Callers changed.
500 (debug_reload, debug_reload_to_stream): Move prototypes here.
501 * rtl.h (reload): Remove dumpfile argument.
502 * reload.c (debug_reload): Remove prototype.
503 (debug_reload_to_stream): Likewise.
504 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
507 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
509 * diagnostic.c (context_as_prefix): Export.
510 (need_error_newline): Remove.
511 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
512 (error_module_changed, record_last_error_module,
513 error_function_changed, record_last_error_function): New functions.
514 (initialize_diagnostics): Default intialize
515 lang_diagnostic_starter, lang_diagnostic_finalizer.
516 (init_output_buffer): Tweak.
517 (file_name_as_prefix): New function.
518 (announce_function, default_print_error_function,
519 report_error_function, set_diagnostic_context): Tweak.
521 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
523 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
524 condition expression.
526 2000-08-20 Richard Henderson <rth@cygnus.com>
528 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
530 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
532 * cppinit.c (cpp_init): Set global flag when called.
533 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
535 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
537 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
538 before `process_directive' so that newlines won't be missed
540 (cpp_printf): Increment `print->lineno' when newline is emitted.
542 * cppmain.c (cb_ident): Likewise.
543 (cb_define): Likewise.
544 (cb_undef): Likewise.
545 (cb_include): Likewise.
546 (cb_def_pragma): Likewise.
547 (dump_macros_helper): Likewise.
549 2000-08-20 Richard Henderson <rth@cygnus.com>
551 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
552 assigned before a loop.
554 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
555 (ashrsi3, lshrsi3): Likewise.
557 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
559 * c-lang.c: #include diagnostic.h
560 (c_tree_printer): New function.
561 (lang_init): Initialize lang_printer.
563 * Makefile.in (c-lang.o): Depends on diagnostic.h
565 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
567 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
569 * diagnostic.c (default_diagnostic_starter,
570 default_diagnostic_finalizer): New functions.
571 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
572 (pedwarn, pedwarn_with_file_and_line, error,
573 error_with_file_and_line, fatal, warning,
574 warning_with_file_and_line): Adjust call to report_diagnostic.
575 (report_diagnostic): Rework.
576 (set_diagnostic_context): New function.
578 * diagnostic.h (struct diagnostic_context): New data structure.
579 (diagnostic_message, diagnostic_argument_list,
580 diagnostic_file_location, diagnostic_line_location,
581 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
582 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
583 (set_diagnostic_context): Declare.
584 (report_diagnostic): Change prototype.
586 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
588 * fix-header.c (main): Initialize cpplib.
590 2000-08-19 Michael Meissner <meissner@redhat.com>
592 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
593 instructions in it before checking for indirect jumps.
595 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
596 in a indirect jump as a potential for conditional execution.
598 * d30v.h (d30v_init_expanders): Don't declare here.
599 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
602 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
604 * cpp.texi: Add @section for assertions.
606 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
608 * loop.c (scan_loop): Use CONST_CALL_P instead of
609 checking for REG_LIBCALL / REG_RETVAL.
611 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
613 * reload1.c (reload_as_needed): Accept dumpfile argument,
614 pass it to emit_reload_insns.
615 (emit_reload_insns): Add new dumpfile argument. If non-null
616 then dump the reloads for each insn into the dumpfile.
617 (reload): Pass dumpfile to reload_as_needed.
619 * invoke.texi: Clean up linux-gnu vs linux comments.
621 2000-08-19 Richard Henderson <rth@cygnus.com>
623 * config/ia64/ia64.c (reg_or_5bit_operand): New.
624 (ia64_depz_field_mask): New.
625 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
626 (PREDICATE_CODES): Update.
627 * config/ia64/ia64.md: Update commentary.
628 (depz_internal): New.
629 (ashlsi3): Implement directly.
630 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
631 (ashldi3): Use shladd.
632 * config/ia64/ia64-protos.h: Update.
634 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
636 * toplev.c (independent_decode_option): Always process -g.
637 Remove third argument, now unused. Adjust caller to match.
639 2000-08-18 Richard Henderson <rth@cygnus.com>
641 * combine.c (make_compound_operation): Break after creating
644 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
646 * cpplib.c (cpp_register_pragma_space): Just return if the
647 namespace is already registered.
649 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
651 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
652 constant amount. Do not generate ROTL instruction.
654 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
656 * config/sh/elf.h: Do not include sh/sh.h.
657 * config/sh/rtems.h: Likewise.
658 * config/sh/rtemself.h: Do not include sh/elf.h.
659 * configure.in: Get them included with `tm_file's.
660 * configure: Rebuilt.
662 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
663 * config/sh/sh.c (fpscr_set_from_mem): Use them.
665 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
667 * stor-layout.c (compute_record_type): Don't use mode of single
668 field as mode of record if not integer mode of same type.
670 * regmove.c (perhaps_ends_bb_p): New function.
671 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
672 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
673 (fixup_match_1): Likewise.
674 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
675 avoid signed/unsigned warnings.
677 * function.c (fixup_var_refs_1, case MEM): Update CODE after
680 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
682 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
683 (_cpp_trigraph_map): Declaration moved from cpplex.c
685 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
686 instead of 256. Use consistent test for designated initializers.
687 (cpp_init): Initialize trigraph_map.
688 (initialize_standard_includes, parse_option): Use memcmp
691 * cpplex.c (init_trigraph_map): Remove.
692 (trigraph_ok, trigraph_replace, lex_line): Refer to
695 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
696 (do_unassert): Remove unused "next" local.
698 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
700 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
702 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
705 2000-08-17 Richard Henderson <rth@cygnus.com>
707 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
708 the first insn in a sequence.
710 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
712 * alias.c (true_dependence, write_dependence_p): A read
713 involving a label_ref or the constant pool doesn't create
716 * rtl.h (unchanging): Improve documentation.
718 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
720 * cse.c (insert_regs): Remove unused `regno'.
722 2000-08-17 Neil Booth <NeilB@earthling.net>
724 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
725 remove_dup_dirs. If qtail == brack, remove brack not
727 (remove_dup_dir, remove_dup_dirs): New functions.
729 2000-08-17 Neil Booth <NeilB@earthling.net>
731 * cppinit.c (cpp_cleanup): Free include dir chains.
732 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
733 (do_unassert): Free the assert with _cpp_free_definition.
734 * cppmacro.c (_cpp_free_definition): Free memory allocated for
735 assertions. Make the node a T_VOID node.
737 2000-08-17 Neil Booth <NeilB@earthling.net>
739 * cppinit.c (path_include, append_include_chain):
740 Remove 2nd parameter (struct cpp_pending *).
741 (path_include, initialize_standard_includes, cpp_handle_option):
742 Update callers appropriately.
743 (cpp_handle_option): Use pend.
745 2000-08-17 Neil Booth <NeilB@earthling.net>
747 * cppinit.c (sort_options): Remove, put functionality in
750 (initialize_builtins): Free memory.
751 (cpp_start_read): Move init_IStable to cpp_init.
753 * cpplib.h (cpp_init): New prototype.
754 * cppmain.c (main): Call cpp_init.
756 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
758 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
759 (rtx_unstable_p, rtx_varies_p): Process vectors.
761 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
763 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
764 references to GLOBAL symbols. Use LOCAL where appropriate.
766 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
768 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
769 use t-aix41 when host == target.
771 2000-08-16 Richard Henderson <rth@cygnus.com>
773 * reload.c (push_secondary_reload): Revert last change.
774 If we use a reload_in/out pattern, make the when the same
775 as the primary reload.
776 (find_reloads): Likewise.
778 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
780 * configure.in (libstdcxx-v3): Fix test.
781 * configure: Regenerate.
783 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
785 * calls.c (calls_function_1, expand_call): Only test
786 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
787 * function.c (thread_prologue_and_epilogue_insns): Likewise.
789 2000-08-16 Richard Henderson <rth@cygnus.com>
791 * combine.c (simplify_shift_const): Revert previous two
792 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
793 before the main loop.
795 2000-08-15 Richard Henderson <rth@cygnus.com>
797 * combine.c (simplify_shift_const): Bound shift count when
800 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
802 * calls.c (ECF_SP_DEPRESSED): New macro.
803 (calls_function_1): Treat calling sp-depressed function as alloca.
804 (emit_call_1): Don't adjust SP if calling sp-depressed function.
805 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
806 If sp-depressed, ensure block saves and restores SP.
807 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
809 * function.c (keep_stack_depressed): New function.
810 (thread_prologue_and_epilogue_insns): Call it.
811 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
812 to print DECL_OFFSET_ALIGN.
813 Print no-force-blk and transparent-union flags properly.
814 * stmt.c (expand_goto_internal): Don't restore stack if last block
815 and function returns with sp depressed.
816 (fixup_gotos): Likewise.
817 (save_stack_pointer): New function, from code in expand_decl.
818 (expand_decl): Call new function.
819 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
820 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
821 (save_stack_pointer): New declaration.
823 * diagnostic.c (fatal_function): New variable.
824 (set_fatal_function): New function.
826 * diagnostic.h (set_fatal_function): New declaration.
828 2000-08-15 William Cohen <wcohen@redhat.com>
830 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
831 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
832 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
834 2000-08-15 Richard Henderson <rth@cygnus.com>
836 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
838 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
840 * arm.c (arm_function_ok_for_sibcall): New function.
841 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
842 * arm.md (call expanders): Don't check here for calls that can't
845 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
847 * arm.md (splits generating cond_exec): Disable.
849 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
851 * arm/linux-elf.h (text_section): Delete declaration.
853 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
855 ARM support for unordered FP operations.
856 * arm-protos.h (arm_comparison_operator): Declare.
857 * arm.c (arm_comparison_operator): New function.
858 (arm_select_cc_mode): Add unordered comparison codes.
859 (get_arm_condition_code): Likewise.
860 (arm_final_prescan_insn): Can't handle unordered jumps that can't
862 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
863 * arm.md (all uses of comparison_operator): Replace with
864 arm_comparison_operator.
865 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
867 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
870 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
872 * gthr-posix.h: Conditionally include <sched.h>; include
873 <config.h> from libobjc/.
875 2000-08-14 Richard Henderson <rth@cygnus.com>
877 * config/i386/i386.c (legitimize_pic_address): Use Pmode
880 2000-08-14 Richard Henderson <rth@cygnus.com>
882 * configure.in (ia64-*): Set float_format for i386 long double.
884 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
885 as we would for i386 XFmode.
886 (PUT_REAL): Likewise.
887 (endian, ereal_atof, real_value_truncate): Likewise.
888 (ereal_isneg, toe64, etens, make_nan): Likewise.
889 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
891 * config/ia64/ia64-protos.h: Update.
892 * config/ia64/ia64.c (general_tfmode_operand): New.
893 (destination_tfmode_operand): New.
894 (tfreg_or_fp01_operand): New.
895 (ia64_split_timode): New.
896 (spill_tfmode_operand): New.
897 (ia64_expand_prologue): Use TFmode not XFmode.
898 (ia64_expand_epilogue): Likewise.
899 (ia64_function_arg): Likewise.
900 (ia64_function_arg_advance): Likewise.
901 (ia64_return_in_memory): Likewise.
902 (ia64_function_value): Likewise.
903 (ia64_print_operand): Likewise.
904 (ia64_register_move_cost): Set GR<->FR to 5.
905 (ia64_secondary_reload_class): Get GR for TImode memory op.
906 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
907 (ROUND_TYPE_ALIGN): Remove.
908 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
909 (INTEL_EXTENDED_IEEE_FORMAT): Define.
910 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
911 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
912 (MODES_TIEABLE_P): Use TFmode, not XFmode.
913 (CLASS_MAX_NREGS): Likewise.
914 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
915 (PREDICATE_CODES): Update.
916 * config/ia64/ia64.md (movti): New.
917 (movti_internal): Use a clobber for memory alternatives.
918 (reload_inti, reload_outti): New.
919 (movsfcc_astep): Predicate properly.
920 (movdfcc_astep): Likewise.
923 (extendsftf2, extenddftf2): New.
924 (trunctfsf2, trunctfdf2): New.
925 (floatditf2, fix_trunctfdi2): New.
926 (floatunsditf2, fixuns_trunctfdi2): New.
927 (addtf3, subtf3, multf3, abstf2): New.
928 (negtf2, nabstf2, mintf3, maxtf3): New.
929 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
931 (fr_spill): Use TFmode, not XFmode.
932 (fr_restore): Likewise.
933 * config/ia64/lib1funcs.asm (__divtf3): New.
934 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
936 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
938 * cse.c (fold_rtx): Avoid empty body in an if-statement.
940 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
941 `U' integer constant suffix.
943 * dwarf2out.c (add_subscript_info): Avoid empty body in an
946 * sparc/sol2.h (__enable_execute_stack): Prototype.
948 2000-08-14 David Edelsohn <edelsohn@gnu.org>
950 * collect2.c: Remove use of AIX import file.
952 * longlong.h: Test ARCH_PWR not ARCH_POWER.
954 * rs6000.c (print_operand, case 'E'): Add else.
956 2000-08-14 Richard Henderson <rth@cygnus.com>
958 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
959 (movdi_symbolic): New.
961 2000-08-14 Jim Wilson <wilson@cygnus.com>
963 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
964 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
965 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
968 2000-08-14 Richard Henderson <rth@cygnus.com>
970 * expr.c (emit_group_load): Don't force constants into registers.
971 Special case source already in the correct mode.
973 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
975 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
976 * fixinc/inclhack.def: Likewise.
977 * fixinc/mkfixinc.sh: Likewise.
978 * configure: Regenerate.
979 * fixinc/fixincl.x: Regenerate.
980 * install.texi: Document equivalence of linux and linux-gnu.
982 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
984 * cse.c (insert_regs): Also in REG case: When finding an invalid
985 value, and we make a new quantity, make sure that it won't be
986 mistaken by for a valid one by mention_regs.
988 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
990 * h8300.md: Remove obsolete peepholes.
992 2000-08-13 Kazu Hirata <kazu@hxi.com>
994 * invoke.texi (H8/300 Options): Fix typos.
995 * config/h8300.c: Fix formatting.
996 * config/h8300.h: Fix comment typos.
997 (OVERRIDE_OPTIONS): Fix formatting.
999 * function.c: Fix formatting.
1001 * cse.c: Fix formatting.
1003 2000-08-13 Geoff Keating <geoffk@cygnus.com>
1005 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
1006 (attempt_auto_inc): Suppress parentheses warning.
1007 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
1008 * loop.c (load_mems): Remove `u' suffix in two places.
1009 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
1011 * config/rs6000/rs6000.h: Likewise.
1012 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
1013 __eabi dummy routine.
1014 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
1017 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
1018 not put stuff in .sdata unnecessarily.
1019 (rs6000_unique_section): New function.
1020 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
1021 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
1023 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
1024 arrays in C99. Don't try to look at DECL_REGISTER of a
1025 COMPONENT_REF. Don't complain twice about the same error.
1027 * fixinc/inclhack.def (aix_pthread): New fix.
1028 (aix_sysmachine): New fix.
1029 * fixinc/fixincl.x: Regenerate.
1031 * expr.c (expand_expr): Call convert_modes when turning a large
1032 multiply into a small one.
1034 2000-08-12 Geoff Keating <geoffk@cygnus.com>
1036 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
1037 the tree structure an exponent rather than an explicit alignment
1038 so it doesn't overflow.
1039 (SET_DECL_OFFSET_ALIGN): New macro.
1040 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
1041 rather than DECL_OFFSET_ALIGN.
1042 (place_field): Likewise.
1043 * expmed.c (store_bit_field): Abort on align==0 to avoid
1044 antisocial machine behaviour.
1046 2000-08-12 Richard Henderson <rth@cygnus.com>
1048 * sibcall.c (uses_addressof): Accept both addressof and
1049 current_function_internal_arg_pointer inside a mem.
1050 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
1051 if current_function_uses_addressof.
1052 * stmt.c (expand_return): Kill tail recursion and HAVE_return
1055 2000-08-11 Richard Henderson <rth@cygnus.com>
1057 * config/ia64/ia64.md (addsi3): Remove expander.
1058 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
1059 (*addsi3_shladd): New.
1061 2000-08-11 Richard Henderson <rth@cygnus.com>
1063 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
1064 (do_restore): Likewise.
1065 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
1066 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
1067 (rtx_needs_barrier): Track actual bit manipulation for
1068 ar.unat moves, gr_spill, and gr_restore.
1069 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
1070 (process_set): Don't handle varargs spills.
1071 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
1072 .mem.offset here instead of in process_set.
1073 (gr_restore): Likewise.
1075 2000-08-11 Richard Henderson <rth@cygnus.com>
1077 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
1079 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
1081 * gcc.texi (The Configuration File): Document
1082 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
1083 UPDATE_PATH_HOST_CANONICALIZATION.
1085 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1087 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
1088 unprototyped function pointer casts on integer constants.
1090 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
1092 * fixproto: Recognize DOS paths with drive letters as absolute paths.
1094 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
1096 * extend.texi (Volatiles): Fix typos.
1098 2000-08-11 Kazu Hirata <kazu@hxi.com>
1100 * flow.c: Fix formatting.
1102 2000-08-11 Richard Henderson <rth@cygnus.com>
1104 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
1105 pattern, always allocate a tertiary scratch register.
1107 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
1108 (reload_inhi): Likewise.
1110 2000-08-11 Richard Henderson <rth@cygnus.com>
1112 * function.c (put_reg_into_stack): Allow type to be NULL.
1113 (schedule_fixup_var_refs): Likewise.
1114 (gen_mem_addressof): Allow decl to be NULL.
1115 (put_addressof_into_stack): Likewise.
1117 * flow.c (merge_blocks_nomove): Be more careful about
1118 locating the beginning of block A.
1120 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
1122 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1127 * config.in: Reverted the check for <sched.h>.
1129 2000-08-10 Chris Demetriou <cgd@sibyte.com>
1131 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
1132 macros define the name of CTOR and DTOR sections.
1133 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
1134 DTOR_LIST_END): Change to use attributes to specify
1136 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
1137 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
1138 DTOR_LIST_END): Same as in mips/elf.h.
1140 2000-08-10 Drew Moseley <dmoseley@redhat.com>
1142 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
1143 disabling just crt0.o.
1145 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
1147 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
1148 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
1149 (EXTRA_SPECS): Add them.
1150 * arm/lib1funcs.asm: Support builds for interworking.
1151 Use macros to eliminate duplicated pieces of code.
1153 2000-08-10 Kazu Hirata <kazu@hxi.com>
1155 * h8300.c (expand_a_rotate): New.
1156 (emit_a_rotate): Likewise.
1157 (h8300_adjust_insn_length): Add support for the rotate insns.
1158 * h8300.md (rotlqi3): New.
1159 (*rotlqi3_1): Likewise.
1160 (rotlhi3): Likewise.
1161 (*rotlhi3_1): Likewise.
1162 (rotlhi3): Likewise.
1163 (*rotlhi3_1): Likewise.
1164 * h8300-proto.h: Add prototypes for expand_a_rotate and
1167 * h8300.c: Fix comment typos.
1168 (dosize): Declare the variable amount as unsigned.
1169 (get_shift_alg): Fix a comparison between signed and unsigned.
1170 (emit_a_shift): Likewise.
1171 (h8300_adjust_insn_length): Simplify the code.
1173 * c-decl.c: Fix formatting.
1175 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1177 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
1178 warning about non-traditional numeric constant suffixes.
1180 * cppexp.c (parse_number): Likewise.
1182 * invoke.texi: (-Wtraditional): Document new behavior.
1184 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1186 * gthr-posix.h: Include auto-host.h. Conditionally include
1188 * configure.in: Check for the <sched.h> header file.
1189 * config.in: Added define for HAVE_SCHED_H.
1191 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1193 * c-typeck.c (process_init_element): For -Wtraditional, warn about
1194 initialization of unions.
1196 * invoke.texi (-Wtraditional): Document new behavior.
1198 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
1200 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
1201 instead of extra_c_flags.
1202 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
1203 * configure: Regenerate.
1204 * config.in: Regenerate.
1206 * cpperror.c (cpp_type2name): New function.
1207 * cpplex.c (lex_line): If we issued an error for an invalid
1208 preprocessing directive, discard that logical line.
1209 * cpplib.c (do_line): Call a hook function if the current file
1210 is renamed by #line.
1211 (do_ident): Pass the contents of the string, not the entire
1212 token, to the callback function.
1213 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
1214 (cb.rename_file): New hook function.
1215 (cb.ident): Adjust prototype.
1216 (cpp_type2name): Prototype.
1217 * cppmacro.c (dump_macro_args): Correct precedence lossage.
1219 * cppmain.c (cb_ident): Update for changed interface.
1220 (cb_rename_file): New function.
1221 (main): Set rename callback.
1223 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
1225 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
1226 multi-word registers.
1228 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
1230 * c-common.c (combine_strings, check_format_info): Refer to ISO C
1231 or ISO C89 instead of ANSI C.
1232 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
1233 build_enumerator, do_case): Likewise.
1234 * c-lex.c (parse_float, yylex): Likewise.
1235 * c-parse.in: Likewise.
1236 * c-typeck.c (common_type, build_array_ref, build_binary_op,
1237 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
1238 build_c_cast, convert_for_assignment, set_init_index,
1239 set_init_label, c_expand_start_case): Likewise.
1240 * toplev.c (documented_lang_options, display_help): Likewise.
1242 2000-08-08 Kazu Hirata <kazu@hxi.com>
1244 * h8300.c: Fix formatting.
1245 * h8300.h: Likewise.
1246 * h8300.md: Likewise.
1247 (movsi_h8300hs): Fix formatting of the resulting assembly code.
1249 * reload1.c: Fix formatting.
1251 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
1253 * alpha/alpha.c (alpha_emit_xfloating_libcall):
1254 Use GEN_CALL_VALUE define.
1255 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
1256 * clipper/clipper.md (untyped_call): Likewise.
1257 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
1258 * fx80/fx80.md (untyped_call): Likewise.
1259 * mips/mips.md (untyped_call): Likewise.
1260 * ns32k/ns32k.md (untyped_call): Likewise.
1261 * pa/pa.md (untyped_call): Likewise.
1262 * romp/romp.md (untyped_call): Likewise.
1263 * sparc/sparc.md (untyped_call): Likewise.
1265 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1267 * config/i860/i860.c (singlemove_string): Do not generate assembler
1268 pseudo instructions that must be expanded (that is, with signed
1269 constants larger than 16 bits).
1271 2000-08-08 Richard Henderson <rth@cygnus.com>
1273 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
1274 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
1275 (init_propagate_block_info): Don't kill memory stores at -O0.
1276 (mark_set_1, mark_used_regs): Likewise.
1278 2000-08-08 David Edelsohn <edelsohn@gnu.org>
1280 * rs6000.c (optimization_options): Decorate 'level' as
1282 (mask64_operand): Remove sign-extend thinko.
1283 (rldic_operand): New function.
1284 (load_multiple_operation): regno's are unsigned ints.
1285 (store_multiple_operation): Likewise.
1286 (lmw_operation): Likewise.
1287 (stmw_operation): Likewise.
1288 (includes_lshift_p): shift_mask is unsigned int.
1289 (includes_lshift64_p): New function.
1290 (addrs_ok_for_quad_peep): unsigned int reg1.
1291 (print_operand): Consistently add "else" after
1292 output_operand_lossage().
1293 (print_operand, case 'b'): Fold in case 'W'.
1294 (print_operand, case 'W'): Print rldic MB value.
1295 (output_epilogue): Update Objective-C language string.
1296 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
1297 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
1298 * rs6000.md (ashldi3): Add rldic instruction.
1299 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
1300 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
1303 2000-08-08 Richard Henderson <rth@cygnus.com>
1305 * config/ia64/ia64-protos.h: Remove duplicates. Update
1306 for massive code rearrangements.
1307 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
1308 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
1309 (ia64_local_regs, ia64_need_regstk): Remove.
1310 (ar_ccv_reg_operand): New.
1311 (ia64_gp_save_reg): New.
1312 (struct ia64_frame_info): Combine most of the size elements;
1313 add new gr save elements.
1314 (find_gr_spill): New.
1315 (next_scratch_gr_reg): New.
1316 (mark_reg_gr_used_mask): New.
1317 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
1318 to GR backing store regs when possible.
1319 (ia64_initial_elimination_offset): New.
1320 (ia64_rap_fp_offset): Remove.
1321 (save_restore_insns): Remove.
1322 (setup_spill_pointers): New.
1323 (finish_spill_pointers): New.
1324 (spill_restore_mem): New.
1325 (do_spill, do_restore): New.
1326 (ia64_expand_prologue): Rewrite to use them.
1327 (ia64_expand_epilogue): Likewise.
1328 (ia64_direct_return): Update for current_frame_info changes.
1329 (ia64_function_prologue): Simplify .prologue emission. Emit
1331 (ia64_setup_incoming_varargs): Don't ever emit rtl.
1332 (ia64_dbx_register_number): New.
1333 (ia64_initialize_trampoline): New.
1334 (ia64_secondary_reload_class): Request GR_REGS for integer
1335 arithmetic destined for FR_REGS.
1336 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
1337 (ia64_mark_machine_status): Mark ia64_gp_save.
1338 (rws_access_regno): Rename from rws_access_reg; don't treat
1339 predicates specially.
1340 (rws_access_reg): New. Update all callers.
1341 (rtx_needs_barrier): Remove dead unspecs.
1342 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
1343 (ia64_encode_section_info): Silence signed/unsigned warnings.
1344 (spill_offset, sp_offset, spill_offset_emitted): Remove.
1345 (tmp_reg, tmp_saved): Remove.
1346 (process_set): Rewrite to expect complicated bits via
1347 REG_FRAME_RELATED_EXPR.
1348 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
1349 in the use of ar.ccv; never set RTX_UNCHANGING_P.
1350 (ia64_expand_op_and_fetch): Likewise.
1351 (ia64_expand_compare_and_swap): Likewise.
1352 (ia64_expand_builtin): Likewise.
1353 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
1354 (FIRST_PSEUDO_REGISTER): Update.
1355 (AR_M_REGNO_P): Update.
1356 (FIXED_REGS): Don't mark three local registers as used.
1357 (EXTRA_CC_MODES): New.
1358 (SELECT_CC_MODE): New.
1359 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
1360 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
1361 (FRAME_GROWS_DOWNWARD): Unset.
1362 (STARTING_FRAME_OFFSET): Zero.
1363 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
1364 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
1365 (HARD_FRAME_POINTER_REGNUM): New.
1366 (CAN_DEBUG_WITHOUT_FP): Define.
1367 (TRAMPOLINE_TEMPLATE): Remove.
1368 (TRAMPOLINE_SIZE): Lower to 32.
1369 (TRAMPOLINE_ALIGNMENT): Lower to 64.
1370 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
1371 (PREDICATE_CODES): Update.
1372 (struct machine_function): Add ia64_gp_save.
1373 * config/ia64/ia64.md: Purge unused unspecs.
1374 (movsi patterns): Allow moves to/from AR_M_REGS.
1375 (movdi patterns): Allow moves to/from p0.
1376 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
1377 (gr_spill, gr_restore): Indicate ar.unat read/written.
1378 (nonlocal_goto): Don't pass old frame_pointer.
1379 (nonlocal_goto_receiver): Remove.
1380 (exception_receiver): New.
1381 (builtin_setjmp_setup): New.
1382 (builtin_setjmp_receiver): New.
1383 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
1384 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
1385 (__ia64_restore_stack_nonlocal): Likewise.
1386 (__ia64_trampoline): New.
1387 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
1389 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
1391 2000-08-08 Richard Henderson <rth@cygnus.com>
1393 * frame.h (ia64_frame_state): Add my_psp.
1394 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
1395 (__throw): Pass it in. Don't clobber r7.
1396 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
1397 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
1398 and nothing to do with sp.
1399 (normalize_reg_loc): Use frame->my_psp.
1400 (frame_translate): Handle frame-pointer-less functions. Set
1401 spill_base correctly, in absence of being told.
1402 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
1403 (__ia64_backtrace_helper): New sp argument. Use
1404 builtin_return_address instead of label addresses.
1405 (print_record) [mem_stack_v]: No size member.
1407 2000-08-08 Richard Henderson <rth@cygnus.com>
1409 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
1411 2000-08-08 Richard Henderson <rth@cygnus.com>
1413 * tm.texi (LOCAL_REGNO): Document.
1414 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
1415 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
1416 * reload1.c (reload): Likewise when considering nonlocal labels.
1418 * config/ia64/ia64.h (LOCAL_REGNO): New.
1419 * config/sparc/sparc.h (LOCAL_REGNO): New.
1421 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
1423 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
1425 2000-08-07 Nick Clifton <nickc@redhat.com>
1427 * config/mips/mips.c: Fix compile time warning messages.
1428 * config/mips/mips-protos.h: Add prototype for equality_op.
1430 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
1432 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
1434 * mn10300.md: Use nonimmediate_operand instead of general_operand
1437 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
1439 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
1441 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
1442 * sh.c (expand_block_move): Break long lines.
1443 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
1444 * sh.md (mulsi3): Likewise.
1445 (movdi): Adjust spacing.
1447 2000-08-07 Richard Henderson <rth@cygnus.com>
1449 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
1450 * expr.c (emit_group_store): Don't set it.
1452 2000-08-07 Kazu Hirata <kazu@hxi.com>
1454 * invoke.texi (Options for Debugging Your Program or GCC): Remove
1455 duplicate entries for 'w' and 'z'.
1457 * flow.c: Fix a comment typo.
1459 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1461 * c-parse.in: Changed the language string for Objective-C to "GNU
1464 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1466 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
1467 to improve the Posix thread support for Objective-C.
1469 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
1471 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
1472 CTI_UNSIGNED_PTRDIFF_TYPE.
1473 (signed_size_type_node): Define.
1474 (unsigned_ptrdiff_type_node): Define.
1475 * c-decl.c (init_decl_processing): Create the
1476 signed_size_type_node and unsigned_ptrdiff_type_node types.
1477 * c-common.c (T_SC): Define.
1480 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
1481 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
1483 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
1484 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
1485 flags for %c, %s and %[.
1486 (check_format_info): Only allow leniency for signedness of targets
1487 of character pointers (when pedantic) for formats flagged with
1488 "c", so for strings but not for %hh formats. When pedantic, don't
1489 allow character pointers to substitute for void pointers if a
1490 second level of indirection is present.
1492 2000-08-06 Kazu Hirata <kazu@hxi.com>
1494 * invoke.texi (Options for Debugging Your Program or GCC): Update
1495 the names of dump files.
1497 * h8300.c (dosize): Rearrange code for conciseness.
1498 (split_adds_subs): Likewise.
1500 * loop.c: Fix formatting.
1502 * dwarf2out.c: Fix formatting.
1504 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
1506 * expr.c: Fix formatting.
1508 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1510 * rs6000.c (rs6000_maybe_dead): Prototype.
1512 2000-08-06 Richard Henderson <rth@cygnus.com>
1514 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
1515 HAVE_nonlocal_goto as well.
1516 * config/i960/i960.md (nonlocal_goto): Don't do it here.
1517 * config/pj/pj.md (nonlocal_goto): Likewise.
1519 2000-08-07 Michael Hayes <mhayes@cygnus.com>
1521 * loop.c (try_swap_copy_prop): New function.
1522 (load_mems): Rename copies to load_copies and add new regset
1523 store_copies. Check for sets of shadow registers and mark
1524 in store_copies. Call try_swap_copy_prop for registers
1525 marked in store_copies.
1527 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1529 * objc/objc-act.c: New command line option -fconstant-string-class
1530 to allow specifying a user defined constant string class,
1531 different from NXConstantString.
1533 * toplev.c: Moved the Objective-C specific options to
1534 objc/lang-options.h.
1536 * objc/lang-options.h: Moved the Objective-C specific options from
1537 toplev.c. Added -fconstant-string-class.
1539 2000-08-05 Chris Demetriou <cgd@sibyte.com>
1541 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
1542 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
1543 __CTOR_LIST__ from func_ptr array to just func_ptr, to
1544 avoid extra alignment imposed on arrays.
1545 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
1546 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
1548 * mips.h: Clean up comments and spacing near MASKs.
1549 (TARGET_UNIX_ASM): Delete.
1550 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
1551 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
1554 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
1556 * c-common.c (print_char_table): Add entries for the X/Open '
1557 format flag (print decimals with locale's thousands grouping
1558 character). Make %C expect wint_t.
1559 (check_format_info): If pedantic, warn when the %n$ operand
1560 number form is used. Allow for the ' flag; warn about it if
1563 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
1565 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
1566 type is a float mode, cfun->decl's return type is not, and
1567 TARGET_FLOAT_RETURNS_IN_80387.
1569 2000-08-04 Andreas Schwab <schwab@suse.de>
1571 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
1572 token list, which are always `#' and `pragma'.
1574 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
1576 * tree.c (tree_expr_nonnegative_p): Move to...
1577 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
1578 (rtl_expr_nonnegative_p): New.
1579 * tree.h: Add prototype for rtl_expr_nonnegative_p.
1581 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
1582 CONST_DOUBLE_CHAIN: Move to...
1583 * rtl.h: ...here. Use XCINT/XCEXP.
1585 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
1586 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
1587 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
1590 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
1592 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1594 * config/c4x/c4x.md (return_indirect_internal): New.
1595 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
1597 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
1599 * c-common.c (time_char_table): Mark up formats added in C99 and
1600 make other corrections. %D and %g were added in C99. %Og is an
1601 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
1602 C99. %e was added in C99. %Oj is an extension. %G and %z are in
1603 C99 rather than GNU extensions, but %OG and %Oz are extensions.
1604 %h was added in C99. %C was added in C99. %OY and %OC are
1605 extensions. Add the C99 format %F.
1606 (check_format_info): If pedantic and not in C99 mode, warn for C99
1609 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1611 * function.c (schedule_fixup_var_refs): New function, broken out
1612 of put_reg_into_stack.
1613 (put_reg_into_stack): Use it.
1614 (put_var_into_stack): In CONCAT case, fixup up references for
1615 components only after fixing up references to the whole concat.
1617 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
1619 * alias.c (mark_constant_function): Use INSN_P.
1620 (init_alias_analysis): Likewise.
1621 * combine.c (combine_instructions): Use INSN_P.
1622 (can_combine_p): Likewise.
1623 (try_combine): Likewise.
1624 (distribute_notes): Likewise.
1625 (distribute_links): Likewise.
1626 * cse.c (cse_around_loop): Use INSN_P.
1627 (invalidate_skipped_block): Likewise.
1628 (cse_set_around_loop): Likewise.
1629 (cse_end_of_basic_block): Likewise.
1630 (delete_trivially_dead_insns): Likewise.
1631 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
1632 (unshare_all_rtl_1): Likewise.
1633 (next_cc0_user): Likewise.
1634 (try_split make_insn_raw): Likewise.
1635 (remove_unnecessary_notes): Likewise.
1636 * final.c (shorten_branches): Use INSN_P.
1637 (leaf_renumber_regs): Likewise.
1638 (leaf_renumber_regs_insn): Likewise.
1639 * flow.c (find_label_refs): Use INSN_P.
1640 (verify_wide_reg): Likewise.
1641 (notice_stack_pointer_modification): Likewise.
1642 (count_or_remove_death_notes): Likewise.
1643 (verify_flow_info): Likewise.
1644 (clear_log_links): Likewise.
1645 * function.c (fixup_var_refs_insns): Use INSN_P.
1646 (compute_insns_for_mem): Likewise.
1647 * gcse.c (alloc_gcse_mem): Use INSN_P.
1648 (compute_sets): Likewise.
1649 (compute_hash_table): Likewise.
1650 (classic_gcse): Likewise.
1652 (insert_insn_end_bb): Likewise.
1653 (delete_null_pointer_checks_1): Likewise.
1654 * global.c (expand_preferences): Use INSN_P.
1655 (build_insn_chain): Likewise.
1656 * graph.c (node_data): Use INSN_P.
1657 * haifa-sched.c (priority): Use INSN_P.
1658 (rm_line_notes): Likewise.
1659 (rm_other_notes): Likewise.
1660 (find_insn_reg_weight): Likewise.
1661 (init_target_units): Likewise.
1662 (schedule_block): Likewise.
1663 (compute_block_forward_dependences): Likewise.
1664 (debug_dependencies): Likewise.
1665 (set_priorities): Likewise.
1666 * integrate.c (function_cannot_inline_p): Use INSN_P.
1667 (save_parm_insns): Likewise.
1668 (copy_insn_list): Likewise.
1669 * jump.c (mark_all_labels): Use INSN_P.
1670 (never_reached_warning): Likewise.
1671 * lcm.c (optimize_mode_switching): Use INSN_P.
1672 * local-alloc.c (validate_equiv_mem): Use INSN_P.
1673 (memref_used_between_p): Likewise.
1674 (update_equiv_regs): Likewise.
1675 (block_alloc): Likewise.
1676 (no_conflict_p): Likewise.
1677 * loop.c (scan_loop): Use INSN_P.
1678 (find_and_verify_loops): Likewise.
1679 (count_loop_regs_set): Likewise.
1680 (loop_reg_used_before_p): Likewise.
1681 (strength_reduce): Likewise.
1682 (recombine_givs): Likewise.
1683 (check_dbra_loop): Likewise.
1684 (load_mems): Likewise.
1685 (try_copy_prop): Likewise.
1686 * print-rtl.c (print_rtx): Use INSN_P.
1687 * recog.c (find_single_use): Use INSN_P.
1688 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
1689 (next_flags_user): Likewise.
1690 (swap_rtx_condition): Likewise.
1691 * regmove.c (mark_flags_life_zones): Use INSN_P.
1692 (optimize_reg_copy_1): Likewise.
1693 (optimize_reg_copy_2): Likewise.
1694 (optimize_reg_copy_3): Likewise.
1695 (reg_is_remote_constant_p): Likewise.
1696 (fixup_match_2): Likewise.
1697 (regmove_optimize): Likewise.
1698 (fixup_match_1): Likewise.
1699 * regrename.c (build_def_use): Use INSN_P.
1700 (replace_reg_in_block): Likewise.
1701 (consider_use): Likewise.
1702 * reload.c (find_equiv_reg): Use INSN_P.
1703 * reload1.c (reload): Use INSN_P.
1704 (maybe_fix_stack_asms): Likewise.
1705 (calculate_needs_all_insns): Likewise.
1706 (reload_as_needed): Likewise.
1707 (emit_output_reload_insns): Likewise.
1708 (delete_address_reloads_1): Likewise.
1709 (reload_cse_regs_1): Likewise.
1710 (reload_combine): Likewise.
1711 (reload_cse_move2add): Likewise.
1712 * reorg.c (redundant_insn): Use INSN_P.
1713 (dbr_schedule): Likewise.
1714 * resource.c (find_dead_or_set_registers): Use INSN_P.
1715 (mark_target_live_regs): Likewise.
1716 * rtlanal.c (reg_used_between_p): Use INSN_P.
1717 (reg_referenced_between_p): Likewise.
1718 (reg_set_between_p): Likewise.
1719 (reg_set_p): Likewise.
1720 (single_set): Likewise.
1721 (multiple_sets): Likewise.
1722 (find_last_value): Likewise.
1723 (reg_set_last): Likewise.
1724 (find_reg_note): Likewise.
1725 (find_regno_note): Likewise.
1726 * sibcall.c (sequence_uses_addressof): Use INSN_P.
1727 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
1728 * ssa.c (find_evaluations): Use INSN_P.
1729 (rename_block): Likewise.
1730 (rename_equivalent_regs): Likewise.
1731 * unroll.c (loop_find_equiv_value): Use INSN_P.
1732 (set_dominates_use): Likewise.
1733 * varasm.c (mark_constant_pool): Use INSN_P.
1734 (mark_constants): Likewise.
1735 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
1736 (alphaev4_next_group): Likewise.
1737 (alphaev5_next_group): Likewise.
1738 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
1739 (c4x_rptb_rpts_p): Likewise.
1740 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
1741 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
1742 (rs6000_adjust_priority): Likewise.
1743 * config/sh/sh.c (sh_loop_align): Use INSN_P.
1744 (machine_dependent_reorg): Likewise.
1745 (split_branches): Likewise.
1746 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
1748 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
1750 * combine.c (recog_for_combine): Remove the old notes
1751 prior to attempting to recognize the new pattern.
1752 (distribute_notes): Ignore REG_NONNEG notes.
1754 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
1756 * varasm.c (output_constructor): Add .align 0 for packed vars.
1758 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1760 * configure.in: Use default thread_file even when enable_threads is
1761 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
1762 * configure: Rebuilt.
1764 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
1766 2000-08-04 Donn Terry (donnte@microsoft.com)
1768 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
1770 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
1772 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
1773 Delete code that conditionally modifies 'version'.
1774 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
1775 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
1776 * gcc.c (main): Use it.
1777 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
1778 * prefix.c (update_path): Use it.
1779 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
1780 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
1781 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
1783 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
1784 (SUBTARGET_SWITCHES): Adjust.
1785 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
1787 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
1789 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
1791 * c-common.h (flag_isoc94): Declare.
1792 * c-decl.c (flag_isoc94): Define.
1793 (c_decode_option): Set flag_isoc94 as appropriate.
1794 * c-common.c (T_PD, T_IM, T_UIM): Define.
1795 (format_char_info): Add tlen and jlen.
1796 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
1798 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
1800 (time_char_table): Add NULL entries for %t and %j.
1801 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
1802 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
1803 Warn for printf %lf if pedantic and not C99. Don't warn for empty
1804 precision. Allow precision argument to be unsigned int. If
1805 pedantic, warn for %p passed an argument not a pointer to possibly
1806 qualified void or a possibly qualified character type, and for
1807 pointer targets of the wrong sign, except for character pointers.
1809 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
1811 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
1812 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
1813 (wint_type_node): Define.
1814 * c-decl.c (WINT_TYPE): Define.
1815 (init_decl_processing): Create the wint_type_node type.
1816 * c-common.c (T_WI): Define.
1817 (print_char_table): Use T_WI for %lc format.
1819 2000-08-04 Bruce Korb <bkorb@gnu.org>
1821 * fixinc/: Verified that the MSDOS patch does not break
1822 the UNIX functionality and applied the next three patches
1825 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
1827 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
1828 output file with the temporary one by appending ".X" to generate
1829 the temporary fuile's name. If the output file already has an
1830 extension, replace it with ".X".
1832 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
1833 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
1834 reallocate the command buffer while copying the command-line
1835 argument. Redirect the output directly to the temporary file,
1836 instead of going through another temporary file.
1837 (process): Close the temporary file before unlinking it.
1838 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
1839 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
1840 (run_compiles): Pass p_fixd argument to machine_matches, as it
1843 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
1844 environment, assume there are no symlinks in the include
1845 directory. When cleaning up the DONE files, look for them
1846 case-insensitively. Don't try to remove symlinks if they aren't
1849 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
1850 all callers changed. Declare pz "const char *", to avoid compiler
1853 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
1854 Change prototype of make_raw_shell_str.
1856 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
1858 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
1859 (initialize) [__MSDOS__]: Use tempnam.
1860 (initialize): Don't use SIGPIPE if it is not defined.
1862 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
1865 2000-07-25 Bruce Korb <bkorb@gnu.org>
1867 * fixinc/fix*.[ch]: substantially reworked to make it possible
1868 to run this program without using fork(2) or pipe(2) (i.e. in
1871 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
1873 * cppdefault.h (WINT_TYPE): Define.
1874 * cppinit.c (builtin_array): Define __WINT_TYPE__.
1875 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
1876 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
1878 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
1880 * (mips_legitimate_address_p): Don't allow register+offset
1881 if the offset is large and negative, and we are compiling
1882 for 64 bit registers.
1884 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1886 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
1887 insn_code_number + 1.
1889 2000-08-04 Kazu Hirata <kazu@hxi.com>
1891 * h8300.c (function_prologue): Rearrange code for conciseness.
1892 (function_epilogue): Likewise.
1893 * h8300.h (OK_FOR_U): Fix formatting.
1895 * cse.c: Fix a comment typo. Fix formatting.
1897 2000-08-03 Richard Henderson <rth@cygnus.com>
1899 * config/i386/i386.md (return_indirect_internal): New.
1900 * config/i386/i386.c (ix86_expand_epilogue): Use it.
1902 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
1904 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
1906 (lex_line): Glue @ onto the beginning of identifiers and
1907 string constants, in Objective-C mode.
1908 (output_token, spell_token): Handle CPP_OSTRING.
1909 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
1910 beginning of a NAME or a STRING, in objc mode.
1912 * cpplib.c (get_define_node): Do not permit identifiers that
1913 begin with @ to be #defined.
1914 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
1915 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
1917 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
1918 * c-tree.h (build_objc_string): Delete prototype.
1919 * objc/objc-tree.def: Delete OBJC_STRING_CST.
1920 * c-lex.c (yylex): Use build_string for all three kinds of strings.
1922 * c-parse.in, objc/objc-act.c: Update commentary.
1924 2000-08-03 Mark Mitchell <mark@codesourcery.com>
1926 * extend.texi: Fix typo in last change.
1928 * extend.texi: Add commentary on statement-expressions and their
1929 interactions with C++.
1931 2000-08-03 Nick Clifton <nickc@cygnus.com>
1933 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
1934 * dwarf.h (LANG_JAVA): Change value to 0x000b.
1936 2000-08-03 Anthony Green <green@cygnus.com>
1938 * dwarf2out.c (gen_compile_unit_die): Add java language support.
1939 (add_bound_info): Check for java language.
1940 (is_java): New function.
1941 * dwarfout.c (output_compile_unit_die): Ditto.
1942 * dwarf.h (dwarf_source_language): Add java source language type.
1943 * dwarf2.h (dwarf_source_language): Ditto.
1945 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
1947 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
1950 * i386.c (ix86_expand_branch): Mode of comparison in
1951 IF_THEN_ELSE is VOIDmode.
1953 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
1955 * gengenrtl.c, rtl.c: Avoid #elif.
1957 2000-08-03 Michael Poole <poole@troilus.org>
1959 * tm.texi (Register Classes): Clarify order of sub-initializers
1960 in REG_CLASS_CONTENTS.
1962 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1964 From SAITOH Masanobu:
1965 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
1967 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
1969 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
1970 is not supported by tradcpp and isn't actually needed for cygwin.
1972 2000-08-03 Kazu Hirata <kazu@hxi.com>
1974 * h8300.c: Fix a comment typo.
1975 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
1977 * jump.c: Fix formatting.
1979 * toplev.c: Fix formatting.
1981 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
1983 * flow.c (find_auto_inc): Verify that we've got a REG before
1984 peeking at its regno. Fail, don't abort if we can't find
1985 the increment of the desired register.
1987 * pa.md (shadd height reduction patterns/splitters): Remove.
1989 2000-08-02 Jim Wilson <wilson@cygnus.com>
1991 * config/ia64/ia64-protos.h (flag_ssa): Declare.
1992 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
1994 2000-08-02 Mark Mitchell <mark@codesourcery.com>
1996 * dce.c: Remove all uses of assert.
1997 * dwarf2out.c: Likewise.
1998 * dwarfout.c: Likewise.
2001 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2003 * gcc.h (lang_specific_driver): Constify second argument.
2004 * gcc.c (translate_options, process_command, main): Likewise.
2005 Constify variables to match. Cast second argument to
2008 * cppspec.c, gccspec.c: Adjust type of second argument to
2009 lang_specific_driver, and update code as necessary.
2011 2000-08-02 Jakub Jelinek <jakub@redhat.com>
2013 * loop.c (scan_loop): Ensure update_end label does not
2014 go away until reg_scan_update is run.
2016 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2018 * c-common.h: Prototype min_precision and c_build_qualified_type here...
2019 * c-tree.h: ... not here.
2020 * errors.h: Prototype fancy_abort.
2022 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
2023 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
2024 * regrename.c (regrename_optimize): Make control flow explicit.
2025 (replace_reg_in_block): Initialize reg_use to 0.
2027 * i386.c (legitimate_address_p): Rename error label to
2028 report_error to avoid namespace clash.
2030 2000-08-02 Kazu Hirata <kazu@hxi.com>
2032 * fold-const.c: Fix formatting.
2034 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
2036 * i386.c (legitimate_address_p): Accept other bases than
2037 pic_offset_table_rtx for GOTOFF constructs.
2039 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
2041 * i386.md (shift to lea splitter): Use const_int_operand.
2043 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2045 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
2046 cppspec.c: Do not use 'legal' or 'illegal' in error messages
2049 * cppmain.c (cb_define, cb_undef): Don't generate any output
2050 if not done_initializing.
2051 * cpplex.c (maybe_paste_with_next): When the token after a ##
2052 is an omitted rest argument, only delete the token before it
2053 if that token is a comma. Do not warn about bogus token
2054 pastes for , ## rest_arg.
2057 * cpp.1: Regenerate.
2059 2000-08-02 Fred Fish <fnf@be.com>
2061 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
2062 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
2065 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
2066 Be directories to search path.
2068 Remove support for __declspec(dllimport) and __declspec(dllexport).
2069 This is leftover cruft from the earlier BeOS gcc port when BeOS
2070 used Microsoft's PE object file format.
2071 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
2072 * config/i386/t-beos (winnt.o): Remove Makefile frag.
2073 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
2074 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
2075 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
2076 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
2077 (REDO_SECTION_INFO_P): Remove.
2078 (ASM_EXPORT_DECL): Remove.
2079 (ASM_DECLARE_FUNCTION_NAME): Remove.
2080 (ASM_DECLARE_OBJECT_NAME): Remove.
2081 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
2082 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
2083 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
2084 (STRIP_NAME_ENCODING): Remove.
2086 Remove support for obsolete version of BeOS that is no longer
2088 * configure.in (i*86-*-beospe*): Remove.
2089 * config/i386/beos-pe.h: Remove.
2091 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
2092 Mark Mitchell <mark@codesourcery.com>
2094 * Makefile.in (OBJS): Added dce.o.
2095 (ssa.o): Updated target to include ssa.h.
2097 (toplev.o): Likewise.
2098 (dce.o): Created target.
2099 * basic-block.h: Added comments.
2100 (INVALID_BLOCK): Added definition.
2101 (connect_infinite_loops_to_exit): Added declaration.
2102 Moved SSA declarations to ssa.h.
2103 * flow.c: Added inclusion of ssa.h.
2104 (struct depth_first_search_dsS, depth_first_search_ds):
2106 (compute_immediate_postdominators): Added definition.
2107 (connect_infinite_loops_to_exit): Likewise.
2108 (flow_dfs_compute_reverse_init): Likewise.
2109 (flow_dfs_compute_reverse_add_bb): Likewise.
2110 (flow_dfs_compute_reverse_execute): Likewise.
2111 (flow_dfs_compute_reverse_finish): Likewise.
2112 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
2113 (LABEL_P): Added definition.
2116 (BARRIER_P): Likewise.
2117 (JUMP_TABLE_DATA_P): Likewise.
2118 (INSN_DEAD_CODE_P): Likewise.
2119 * ssa.c: Replaced inclusions with ssa.h inclusion.
2120 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
2121 (rename_registers): Removed unnecessary variables.
2122 * ssa.h: Created by moving declarations from ssa.c and
2124 * timevar.def: Defined TV_DEAD_CODE_ELIM.
2125 * toplev.c: Added ssa.h inclusion.
2126 (dump_file_index): Added DFI_dce.
2127 (dump_file): Added "dce" entry.
2129 (f_options): Added dce entry.
2130 * invoke.texi: Document -fdce. Emphasize experimental status of
2134 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
2136 * cpperror.c (v_message): Split into _cpp_begin_message and
2137 v_message macro. All callers updated.
2138 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
2141 * cppfiles.c (cpp_syshdr_flags): New function.
2142 (read_include_file): Don't call cpp_output_tokens. Call
2144 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
2145 (cpp_reader_init): Don't initialize token_buffer. Call
2146 _cpp_init_internal_pragmas.
2147 (cpp_cleanup): Don't clear token_buffer.
2148 (cpp_start_read): Don't worry about output from -D processing.
2149 Don't call cpp_output_tokens.
2150 (cpp_finish): Don't dump macros here. Don't call
2152 * cppmacro.c (_cpp_dump_definition): Rename
2153 cpp_dump_definition. Write directly to a FILE *.
2154 (dump_funlike_macro): Delete.
2155 (dump_macro_args): New.
2157 * cpplex.c (TOKEN_LEN): Convert to inline function.
2158 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
2159 cpp_scan_line, _cpp_dump_list): Delete.
2160 (cpp_printf, cpp_output_list): New.
2161 (output_line_command): Don't worry about entering or leaving files.
2162 (cpp_scan_buffer): Just output each token as we hit it.
2163 (process_directive): Don't call cpp_output_tokens.
2164 (_cpp_glue_header_name): Don't use token_buffer.
2165 (output_token, dump_param_spelling): Write directly to a FILE *.
2167 * cpplib.c (pass_thru_directive, dump_macro_name,
2168 pragma_dispatch, do_pragma_gcc): Delete.
2169 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
2170 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
2172 (do_error, do_warning, pragma_dependency): Call
2173 _cpp_begin_message, then cpp_output_list.
2174 (cpp_register_pragma, cpp_register_pragma_space,
2175 _cpp_init_internal_pragmas): New.
2176 (do_pragma): Walk the pragmas table here.
2177 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
2178 do_pragma_dependency): Return void.
2179 (do_pragma_implementation): Moved to cppmain.c.
2181 * cpplib.h: Update prototypes.
2182 (struct cpp_reader): Remove printer, token_buffer,
2183 token_buffer_size, and limit. Add struct cb, and pragmas.
2184 (struct cpp_printer): Remove last_id and written.
2185 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
2186 CPP_ADJUST_WRITTEN): Delete.
2187 * cpphash.h: Update prototypes.
2188 (ufputs): New wrapper.
2190 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
2191 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
2192 (main): Set up callbacks. Register #pragma implementation.
2193 Dump macros from here.
2195 2000-08-01 Geoff Keating <geoffk@cygnus.com>
2197 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
2198 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
2199 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
2200 insns if they have a REG_MAYBE_DEAD note attached.
2201 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
2202 (rs6000_emit_load_toc_table): TOC loads may go dead.
2204 2000-08-01 Jim Wilson <wilson@cygnus.com>
2206 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
2207 type exists before using it. Use number of words as alignment
2209 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
2210 ia64_va_arg): Propagate ia64_function_args changes here.
2212 2000-08-01 Richard Henderson <rth@cygnus.com>
2214 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
2215 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2217 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
2219 From Joern Rennecke:
2220 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
2221 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
2222 unless TARGET_SH3E is set.
2223 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
2225 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
2226 (ashlsi3_std): New pattern.
2227 (ashlsi3 expander): Use it for TARGET_SH3.
2228 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
2230 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
2232 * loop.c (canonicalize_condition): Use destination, not source to
2233 determine SET's mode.
2235 2000-07-31 Mark Mitchell <mark@codesourcery.com>
2237 * flow.c (clear_log_links): Fix typo.
2239 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
2241 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
2242 on targets which need more than one insn for a compare/cbranch
2245 2000-07-31 Jim Wilson <wilson@cygnus.com>
2247 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
2248 when computing offset.
2250 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
2252 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
2254 2000-07-31 Geoff Keating <geoffk@cygnus.com>
2256 * flow.c (clear_log_links): Nuke global_live_at_start and
2257 global_live_at_end data, since if the log_links stuff is invalid
2258 so is global_live_at_*.
2260 2000-07-31 Richard Henderson <rth@cygnus.com>
2262 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
2264 2000-07-31 Jakub Jelinek <jakub@redhat.com>
2266 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
2267 (_cpp_get_token): Don't macro expand a just pasted token if it
2268 was pasted at no_expand_level.
2270 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
2272 * cppmacro.c (find_param, count_params, save_expansion):
2273 Permit 'defined' as a macro parameter name.
2275 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
2277 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
2278 xcpp to cpp throughout.
2279 (native): Remove unnecessary dependency on cpp.
2281 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
2282 tradcpp to tradcpp0.
2283 (.i spec): Add missing output-file spec to cc1 command line.
2284 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
2286 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
2288 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
2289 (implicit_decl_warning): New function.
2290 (implicitly_declare): Use it.
2291 * c-typeck.c (build_external_ref): Use implicit_decl_warning
2292 to complain about implicit decls of builtins.
2294 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
2295 based on pedantic && flag_isoc99, if not already set.
2296 * c-tree.h: Declare mesg_implicit_function_declaration.
2297 Prototype implicit_decl_warning.
2299 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
2301 * Makefile.in (ssa.o): Updated header files in dependences.
2302 * basic-block.h: Added compute_immediate_postdominators declaration.
2303 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
2305 * flow.c (compute_immediate_dominators): Updated comment.
2306 (compute_immediate_postdominators): Added definition.
2307 * rtl.h (HARD_REGISTER_P): Added definition.
2308 * ssa.c: Include additional header files.
2309 (assert): Added definition.
2310 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
2311 include select hard registers.
2312 (ssa_rename_to_insert): Likewise.
2313 (ssa_rename_from_initialize): Likewise.
2314 (ssa_rename_from_lookup): Likewise.
2315 (original_register): Likewise.
2316 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
2317 include select hard reigsters.
2318 (ssa_rename_from_traverse): Likewise.
2319 (ssa_rename_from_free): Likewise.
2320 (ssa_rename_from_print): Likewise.
2321 (ssa_rename_from_print_1): Likewise.
2322 (ssa_rename_from_hash_function): Likewise.
2323 (ssa_rename_from_equal): Likewise.
2324 (ssa_rename_from_delete): Likewise.
2325 (simplify_to_immediate_dominators): Removed in favor of
2326 flow.c:compute_immediate_dominators.
2327 (find_evaluations_1): Modified to work with hard registers.
2328 (insert_phi_node): Likewise.
2329 (insert_phi_nodes): Likewise.
2330 (struct rename_set_data): Updated prev_reg comment.
2331 (create_delayed_rename): Modified to work with hard registers.
2332 (RENAME_NO_RTX): Updated comment.
2333 (apply_delayed_renames): Modified to work with hard registers.
2334 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
2335 (rename_block): Updated to use revised ssa_rename_to interface.
2336 (rename_registers): Updated to use revised ssa_rename_to and
2337 ssa_rename_from interface.
2338 (convert_to_ssa): Revised to use compute_immediate_dominators and
2339 deal with hard registers.
2340 (make_regs_equivalent_over_bad_edges): Modified to work with hard
2341 registers. Added check for illegal unification of hard register.
2342 (make_equivalent_phi_alternatives_equivalent): Modified to work
2343 with hard registers.
2344 (compute_conservative_reg_partition): Likewise.
2345 (coalesce_if_unconflicting): Modified to work with hard registers
2346 and check for conflicting hard registers.
2347 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
2349 (rename_equivalent_regs_in_insn): Modified to work with hard
2351 (record_canonical_element_1): Added definition.
2352 (check_hard_regs_in_partition): Added definition.
2353 (convert_from_ssa): Added data structure deallocation and check
2354 for illegal hard register unification.
2355 (conflict_hard_regs_p): Added definition.
2356 * toplev.c (rest_of_compilation): Added comment.
2358 2000-07-31 Anthony Green <green@redhat.com>
2360 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
2362 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
2364 * builtins.c (expand_builtin_apply): Don't defer pop during
2367 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2369 * calls.c (combine_pending_stack_adjustment_and_call): Only use
2370 preferred_unit_stack_boundary when it is > 1.
2372 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
2374 * c-common.c (init_function_format_info): Add C99 format functions
2377 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
2378 void' or 'register void' as being the special case of 'void' alone
2379 in a parameter list.
2381 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
2382 discarding qualifiers into a plain warning.
2384 2000-07-31 Kazu Hirata <kazu@hxi.com>
2386 * combine.c: Fix formatting.
2388 * h8300.md: Fix formatting.
2390 * local-alloc.c: Fix formatting.
2392 * h8300.c (get_shift_alg): Remove the variable alg.
2393 (emit_a_shift): Rearrange code to improve readability.
2395 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
2397 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
2398 HImode on all architectures and a combination of HImode and SImode
2399 on H8/300H and H8/S.
2401 * h8300.c (split_adds_subs): Rearrange code for conciseness.
2403 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
2405 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
2408 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
2410 * recog.c (extract_insn): Set operand_mode according to
2411 operand if match_operand is VOIDmode.
2413 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
2415 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
2417 2000-07-31 Geoff Keating <geoffk@cygnus.com>
2419 * c-parse.in (extdefs): Call ggc_collect between external
2422 2000-07-30 Michael Hayes <mhayes@cygnus.com>
2423 Richard Henderson <rth@cygnus.com>
2425 * Makefile.in (OBJS): Add doloop.o.
2426 * doloop.c: New file.
2428 * final.c (insn_current_reference_address): Return 0 before final.
2429 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
2430 * jump.c (any_uncondjump_p): Likewise.
2431 * loop.c (indirect_jump_in_function): Make static.
2432 (strength_reduce): Call doloop_optimize.
2433 (insert_bct, instrument_loop_bct): Remove.
2434 * loop.h (doloop_optimize): Prototype.
2435 * recog.c (split_all_insns): Split all INSN_P.
2436 * toplev.c (flag_branch_on_count_reg): Default on.
2438 * config/c4x/c4x.c (c4x_optimization_options): Don't set
2439 flag_branch_on_count_reg.
2440 * config/i386/i386.c (override_options): Likewise.
2441 * config/rs6000/rs6000.c (optimization_options): Likewise.
2443 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
2445 (dbra_ge): Remove, as well as all it's splitters.
2447 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
2450 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
2451 (ia64_register_move_cost): Declare.
2452 * config/ia64/ia64.c (ar_lc_reg_operand): New.
2453 (struct ia64_frame_info): Add ar_size.
2454 (ia64_compute_frame_size): Set it.
2455 (save_restore_insns): Save and restore ar.lc.
2456 (ia64_register_move_cost): New, moved from header file. Handle
2457 application registers.
2458 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
2459 (emit_insn_group_barriers): Special case doloop_end_internal.
2460 (ia64_epilogue_uses): Mark ar.lc live at end.
2461 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
2462 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
2463 (FIRST_PSEUDO_REGISTER): Make room.
2464 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
2465 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
2466 (REG_ALLOC_ORDER): Update.
2467 (HARD_REGNO_MODE_OK): Update.
2468 (REGISTER_NAMES): Update.
2469 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
2470 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
2471 (REGNO_REG_CLASS): Update.
2472 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
2473 (REGISTER_MOVE_COST): Move out of line.
2474 (PREDICATE_CODES): Update.
2475 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
2476 (addsi3_plus1_alt, adddi3_plus1_alt): New.
2477 (shladd_elim splitter): Allow constants in the predicate.
2478 (doloop_end, doloop_end_internal): New.
2480 2000-07-30 Richard Henderson <rth@cygnus.com>
2482 * genattrtab.c (struct insn_def): Add lineno member.
2483 (struct insn_ent): Likewise.
2484 (struct attr_desc): Likewise.
2485 (struct delay_desc): Likewise.
2486 (struct function_unit_op): Likewise.
2487 (struct function_unit): Likewise.
2488 (check_attr_value): Use message_with_line.
2489 (check_defs): Likewise.
2490 (expand_units): Likewise.
2491 (check_attr_test): Take a lineno argument.
2492 (gen_attr): Likewise.
2493 (gen_insn): Likewise.
2494 (gen_delay): Likewise.
2495 (gen_unit): Likewise.
2496 (main): Give it to them.
2497 (convert_set_attr_alternative): Take an insn_def argument
2498 instead of num_alt and insn_index.
2499 (convert_set_attr): Likewise.
2500 (write_test_expr): Protect INSN_ADDRESSES load
2501 with INSN_ADDRESSES_SET_P.
2503 2000-07-30 Richard Henderson <rth@cygnus.com>
2505 * flow.c (init_propagate_block_info): Use pc_set.
2507 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
2509 * i386.md (*lea_general_[123]) New insns and splits.
2510 (addsi3 to lea splitter): Handle other modes too.
2511 (shlsi3 to lea splitter): Likewise.
2512 (addhi_1_lea, shlhi_1_lea): New patterns.
2513 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
2515 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
2517 * recog.c (general_operand, nonimmediate_operand): Accept
2518 any mode for VOIDmode CONSTANT_P operands.
2520 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
2522 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
2523 instead of replace_rtx.
2524 * recog.c (validate_replace_rtx_subexp): New function.
2525 * recog.h (validate_replace_rtx_subexp): Declare.
2527 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
2529 * combine.c (simplify_set, make_extraction, make_compound_operation
2530 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
2531 as force_to_mode argument.
2533 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
2535 * combine.c (if_then_else_cond): Be sure that mode fits in
2538 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
2540 * combine.c (record_promoted_value): Allow bitsize of mode
2541 to be equivalent to HOST_BITS_PER_WISE_INT.
2543 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
2545 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
2546 Do not call gen_mode_alignment when mode is BLKmode.
2548 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
2550 * loop.c (express_from_1): Fix call of simplify_gen_binary.
2552 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
2554 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
2555 VOIDmode implies both operands to be VOIDmode.
2556 (simplify_ternary_operation): Compute properly the mode of comparison.
2557 * combine.c (combine_simplify_rtx): Likewise.
2559 2000-07-25 Michael Hayes <mph@paradise.net.nz>
2561 * basic-block.h (struct loops): New field rc_order.
2562 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
2563 (flow_loops_free): Free rc_order.
2564 (flow_depth_first_order_compute): New parameter rc_order.
2565 (flow_loops_find): Allocate rc_order and swap usage with
2568 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2569 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2571 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
2572 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
2573 (nodb_call, return_from_epilogue): Likewise.
2574 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
2575 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
2576 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
2577 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
2578 (c4x_valid_type_attribute_p): Likewise.
2579 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
2580 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
2582 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2584 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
2585 and loadhi_big_constant if applicable.
2586 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
2587 and add new splitter.s
2589 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2591 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
2593 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2595 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
2597 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2599 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
2601 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2603 * config/c4x/libgcc.S (divqf3): Improve accuracy.
2605 2000-07-27 Mark Mitchell <mark@codesourcery.com>
2607 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
2608 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
2609 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
2610 (get_prev_bb_note): Likewise.
2611 (remove_scope_notes): Likewise.
2612 * flow.c (commit_one_edge_insertion): Likewise.
2613 (merge_blocks_nomove): Likewise.
2614 (verify_flow_info): Likewise.
2615 * gcse.c (insert_insn_end_bb): Likewise.
2616 * reg-stack.c (emit_swap_insn): Likewise.
2617 * ssa.c (first_insn_after_basic_block_note): New function.
2618 (insert_phi_node): Use it.
2619 (rename_block): Likewise.
2620 (eliminate_phi): Likewise.
2621 (make_regs_equivalent_over_bad_edges): Likewise.
2622 (make_equivalent_phi_alternatives_equivalent): Likewise.
2623 (for_each_successor_phi): Likewise.
2624 (convert_from_ssa): Modify phi-node deletion algorithm.
2626 2000-07-29 Andreas Jaeger <aj@suse.de>
2628 * configure.in (mips*-*-linux*): Use mips*el to check for little
2629 endian MIPS, add tmake_file.
2631 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
2632 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
2633 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2635 2000-07-28 Richard Henderson <rth@cygnus.com>
2637 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
2638 Sign extend mode size before negating.
2640 2000-07-28 Richard Henderson <rth@cygnus.com>
2642 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
2644 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
2646 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
2647 (cse_insn): Likewise.
2648 (addr_affects_sp_p): Likewise.
2649 * expr.c (move_by_pieces): Likewise.
2650 (clear_by_pieces): Likewise.
2651 * gcse.c (oprs_unchanged_p): Likewise.
2652 * haifa-sched.c (sched_analyze_2): Likewise.
2653 * recog.c (offsettable_address_p): Likewise.
2654 * regclass.c (record_address_regs): Likewise.
2655 * reload.c (find_reusable_reload): Likewise.
2656 (push_reload): Likewise.
2657 (operands_match_p): Likewise.
2658 (decompose): Likewise.
2659 (find_reloads_address_1): Likewise.
2660 (find_inc_amount): Likewise.
2661 * reload1.c (elimination_effects): Likewise.
2662 * resource.c (mark_set_resources): Likewise.
2663 * flow.c (attempt_auto_inc): New function; mostly broken out
2665 (find_auto_inc): Split into two functions and enhanced to
2666 generate POST_MODIFY.
2667 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
2668 * rtl.h (count_all_occurrences): Declare.
2669 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
2671 * rtlanal.c (count_all_occurrences): New function.
2672 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
2673 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
2675 * config/ia64/ia64-protos.h (destination_operand): Declare.
2676 * config/ia64/ia64.c (destination_operand): New function.
2677 (ia64_print_operand): Handle POST_MODIFY.
2678 (rtx_needs_barrier): Likewise.
2679 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
2680 (HAVE_POST_MODIFY_REG): Define to 1.
2681 (MAX_REGS_PER_ADDRESS): Change to 2.
2682 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
2683 (LEGITIMATE_ADDRESS_REG): New helper macro.
2684 (LEGITIMATE_ADDRESS_DISP): Likewise.
2685 (PREDICATE_CODES): Add entry for destination_operand.
2686 * config/ia64/ia64.md (all mov patterns): Use destination_operand
2687 predicate for operand 0.
2689 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2691 * dwarf2out.c: Indent #error directive.
2693 * gbl-ctors.h: Fix typo in comment.
2694 (__do_global_ctors): Prototype.
2696 * gcse.c (record_one_set, pre_delete): Remove unused variables.
2698 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
2699 (print_operand): Initialize variable `t'.
2701 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
2703 * config/arm/arm.md ("call_value"): removed constraints.
2704 Constraints are ignored in expanders.
2705 (*call_value_reg): split =rf into various constraints.
2706 (*call_value_mem): same
2707 (*call_value_symbol): same
2708 (*sibcall_value_insn): same
2710 2000-07-28 Philipp Thomas <pthomas@suse.de>
2712 * install.texi (--enable-nls): Change the description of the NLS
2713 related configure options to match the current state.
2714 (--with-included-gettext): Likewise.
2715 (--enable-maintainer-mode): New description added.
2716 * extend.texi (-fstrict-prototype): Add missing '.'.
2718 2000-07-27 Jim Wilson <wilson@cygnus.com>
2720 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
2721 DECL_INITIAL (decl) == NULL_TREE.
2723 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
2725 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
2726 on insn-attr.h with it.
2727 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
2728 * insn-addr.h: New header.
2729 (insn_addresses_): Renamed from insn_addresses.
2730 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
2731 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
2732 INSN_ADDRESSES_NEW): New macros.
2733 * genattrtab.c (write_test_expr): Use new macros.
2734 * final.c (insn_addresses, init_insn_lengths): Likewise.
2735 (align_fuzz, shorten_branches): Likewise.
2736 (final): Likewise. Do not reject new insns if their addresses
2737 have been added to INSN_ADDRESSES.
2738 * config/arm/arm.c, config/avr/avr.c: Use new macros.
2739 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
2740 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
2741 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
2742 * config/sh/sh.c: Likewise.
2743 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
2745 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
2747 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
2749 * gcc.c (struct prefix_list): Add member priority.
2750 (enum path_prefix_priority): Declare.
2751 (add_prefix): Replace ``first'' with ``priority''. Append new
2752 entry but keep list in priority order.
2753 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
2754 PREFIX_PRIORITY_LAST to add_prefix.
2755 (process_command): Move include kludge - foo/stageN - to before
2758 2000-07-27 Jason Merrill <jason@redhat.com>
2760 * dwarf2out.c (gen_typedef_die): Abort if we get identical
2761 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
2763 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
2765 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
2766 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
2768 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
2770 * c-decl.c (finish_function): Don't treat 'main' specially unless
2771 flag_hosted. In C99 mode, return 0 from 'main' unless
2772 DEFAULT_MAIN_RETURN is otherwise defined.
2774 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
2775 parameters defaulting to int in an old-style function definition.
2777 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2779 * c-parse.in (string): For -Wtraditional, warn about string
2780 concatenation only once per line.
2782 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
2784 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
2785 for HI-UX/WE2 systems.
2787 2000-07-24 Bruce Korb <bkorb@gnu.org>
2789 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
2790 defining the __xxx_TYPE__ macros.
2791 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
2792 * fixincl/fixlib.h: don't need to include "tm.h" anymore
2793 * fixincl/inclhack.def(type_map): now obsolete
2795 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
2797 * cpp.texi: Append a trailing full-stop to xrefs where needed.
2799 2000-07-26 Dave Pitts <dpitts@cozx.com>
2801 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
2803 (mvs_hash_alias): New function.
2804 (mvs_add_alias): Change argument spacing.
2805 (mvs_need_alias): Change aliasing criteria. Added documentation.
2806 (mvs_get_alias): Change to use hashed name. The hashed name prevents
2807 CSECT name collisions.
2808 (mvs_check_alias): Likewise.
2809 (handle_pragma): Change documentation.
2810 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
2811 mode from SImode to DImode.
2812 (iorhi3): Changed LTORG size for insn.
2814 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
2816 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
2817 mem if the address is a mode_dependent_address_p.
2819 2000-07-26 Kazu Hirata <kazu@hxi.com>
2821 * h8300.c (print_operand): Print ":8" when the 'R' operand is
2822 suitable for 8-bit absolute.
2823 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
2824 (OK_FOR_U): Add a case for the 8-bit constant address on the
2827 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
2829 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
2830 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
2831 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
2832 lack of implemented alignment.
2834 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
2836 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
2837 cross-compiling between 64-bit and 32-bit machines.
2839 2000-07-27 Richard Henderson <rth@cygnus.com>
2841 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
2842 (movhicc_astep, movhi_internal_astep): New.
2843 (movsicc_astep, movsi_internal_astep): New.
2844 (movdicc_astep, movdi_internal_astep): New.
2845 (movsfcc_astep, movsf_internal_astep): New.
2846 (movdfcc_astep, movdf_internal_astep): New.
2847 (movxfcc_astep, movxf_internal_astep): New.
2848 (cmovdi_internal_astep, cmovsi_internal_astep): New.
2849 Unify the cmov[ds]i splitters.
2851 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
2853 * real.c (asctoeg): Rename `error' label to unexpected_char_error
2855 2000-07-26 Nick Clifton <nickc@cygnus.com>
2857 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
2858 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
2860 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
2861 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
2863 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
2865 * c-decl.c (finish_enum): Convert enumerations that fit in an
2867 (build_enumerator): In pedantic mode, cast to `int' those that
2870 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
2872 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
2874 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2876 * sh.md (cmpgtdi_t): Must be split.
2877 (cmpgtdi_t+1): New splitter.
2879 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
2881 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
2882 warnings for indented directives even if we are skipping.
2884 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
2886 * invoke.texi (strict-prototypes): Remove.
2887 * extend.texi (Deprecated Features): Add strict-prototypes.
2888 (Backwards Compatibility): New node.
2890 2000-07-25 Jakub Jelinek <jakub@redhat.com>
2892 * config/i386/i386.md (andsi_1+1): Allow HImode.
2893 (andsi_1+2): Require q_regs_operand.
2895 2000-07-25 Jakub Jelinek <jakub@redhat.com>
2897 * config/i386/i386.md (call_pop): Check operands[0],
2898 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
2900 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
2901 (call_value): Likewise.
2903 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
2905 * toplev.c (pipe_closed): Delete.
2906 (crash_signal): New. Generate ICE for a fatal signal.
2907 (float_signal): Call crash_signal outside a float-handler
2909 (main): Install crash_signal as handler for core-dumping signals.
2911 2000-07-25 David Edelsohn <edelsohn@gnu.org>
2913 * rs6000.c (print_operand, case 'T'): New case.
2915 * rs6000.md (call_indirect_aix32): Convert to expander of
2916 scheduled instructions.
2917 (call_indirect_aix64): Likewise.
2918 (call_value_indirect_aix{32,64}): Likewise.
2919 (call, call_value): Invoke expanders for AIX. Fall through to
2921 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
2922 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
2923 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
2924 only "g" constraint.
2925 (call_nonlocal_aix64): Likewise.
2926 (call_value_nonlocal_aix{32,64}): Likewise.
2927 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
2929 (call_value_nonlocal_sysv): New pattern.
2930 (indirect_jump{si,di}): Use new 'T' modifier.
2931 (tablejump{si,di} matchers): Likewise.
2932 (return_internal_{si,di}): Likewise.
2933 (return_eh_{si,di}): Likewise.
2935 2000-07-24 Richard Henderson <rth@cygnus.com>
2937 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
2938 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2939 * config/ia64/ia64.md (movdi_internal): Use it.
2941 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
2943 * cppexp.c: Warn about unary + if -Wtraditional.
2944 * cpplex.c (lex_line): Always set BOL on the first token of a line.
2946 2000-07-24 Michael Meissner <meissner@redhat.com>
2948 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
2951 2000-07-24 Nick Clifton <nickc@cygnus.com>
2953 * config/arm/arm.c (emit_multi_reg_push): Generate a
2954 REG_FRAME_RELEATED_NOTE that is compatable with the code in
2955 dwarf2out_debug_frame_expr.
2957 2000-07-24 Jason Merrill <jason@redhat.com>
2959 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
2960 UNALIGNED_INT_ASM_OP.
2961 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
2962 a location expression.
2963 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
2964 assume indirect access if we're saving the CFA address exactly.
2966 * Makefile.in (bootstrap): Move -BstageN/ to the end.
2968 2000-07-24 Jakub Jelinek <jakub@redhat.com>
2970 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
2973 2000-07-24 Michael Meissner <meissner@redhat.com>
2975 * invoke.texi (D30V Options): Add d30v options.
2977 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
2979 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
2980 needed by our gcse pass anymore.
2981 (free_pre_mem): Corresponding changes.
2982 (compute_pre_data): Do not call compute_transpout anymore.
2984 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
2985 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
2988 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
2989 (compute_pre_data): Do it here instead.
2991 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
2993 (pre_delete): Corresponding changes.
2995 2000-07-23 Mark Mitchell <mark@codesourcery.com>
2997 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
2998 to figure out whether or not a variable has already been emitted.
3000 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
3002 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
3003 instead of gen_call.
3005 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
3007 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
3009 2000-07-23 Kazu Hirata <kazu@hxi.com>
3011 * h8300.c: Fix formatting.
3013 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
3015 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
3016 for `long' switch expression into a plain warning.
3018 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
3019 (yylex): Don't pedwarn for "inline" in C99 mode.
3021 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
3023 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
3024 ggc_alloc): Likewise.
3025 * bb-reorder.c (dump_scope_forest_1): Likewise.
3027 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
3029 * reload.c (find_reloads_toplev): Add new parameter
3031 (find_reloads): Add new parameter to find_reloads_toplev calls.
3033 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
3035 * collect2.c (main): Typo fixed.
3036 * diagnostic.c: Typo fixed.
3037 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
3038 * eh-common.h: Typo fixed.
3039 * emit-rtl.c (start_sequence): Typo fixed.
3040 * flow.c (find_label_refs): Typo fixed.
3041 (calculate_global_regs_live): Typo fixed.
3042 (mark_regno_cond_dead): Typo fixed.
3043 (create_edge_list): Typos fixed.
3044 (verify_edge_list): Typo fixed.
3045 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
3046 * loop.c (strength_reduce): Typo in function name fixed.
3047 * rtl.h: Added comments. Typo in function name fixed.
3048 * rtlanal.c: Typo in function name fixed.
3049 (insn_dependant_p): Rename to ...
3050 (insn_dependent_p): ... this.
3051 (computed_jumo_p): Typo fixed.
3053 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3055 * system.h (__FUNCTION__): Wrap definition in #ifndef.
3057 2000-07-21 David Edelsohn <edelsohn@gnu.org>
3059 * rs6000.h (SIZE_TYPE): Define.
3061 2000-07-21 Mark Mitchell <mark@codesourcery.com>
3063 * ssa.c (rename_insn_1): Don't rename registers that are
3066 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
3068 * diagnostic.c (trim_filename, fancy_abort): Moved here from
3070 (fatal_function, set_fatal_function): Removed.
3071 (fatal): Don't prepare for or call the fatal_function.
3072 (diagnostic_lock, error_recursion): New.
3073 (diagnostic_for_decl, report_diagnostic): Guard against
3074 re-entering the error reporting routines.
3075 (fancy_abort): Assume function is not NULL.
3077 * errors.c (fancy_abort): New. Assume function is not NULL.
3078 * tradcpp.c (fancy_abort): Assume function is not NULL.
3080 * system.h: Provide default definition of __FUNCTION__.
3081 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
3082 Always use __FUNCTION__ in definition of abort.
3084 * varray.h: Likewise.
3085 * toplev.h: Likewise. Don't prototype set_fatal_function.
3087 2000-07-20 Geoff Keating <geoffk@cygnus.com>
3089 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
3091 * glimits.h: Don't do #if defined for ARCH_PPC.
3093 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
3094 constants of size no larger than a pointer should go in the TOC.
3095 Add 'MODE' parameter.
3096 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
3097 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
3098 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3099 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
3100 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
3101 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
3102 (rs6000_legitimize_address): Likewise.
3103 (rs6000_emit_move): Likewise.
3104 (rs6000_select_rtx_section): Likewise.
3105 (output_toc): Deal properly with outputting small constants like
3106 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
3107 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
3108 MODE parameter. Put small constants in the TOC.
3110 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
3112 (rs6000_emit_move): When reload calls us with an illegitimate
3113 address, exit early. Move the change_address calls to one place
3114 at the end of the routine. Merge the SImode and DImode expanders.
3115 When called by reload to put an integer into a FP register, force
3118 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
3120 (rs6000_hash_constant): Hash mode too.
3121 (toc_hash_function): Allow for key_mode.
3122 (toc_hash_eq): Structures are different if key_mode differs.
3123 (output_toc): Add 'mode' parameter. Save key_mode.
3124 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
3125 Pass 'mode' parameter.
3126 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
3128 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
3129 for vtable references.
3131 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
3132 choice, don't put integer values in FP regs.
3134 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
3136 * flow.c (verify_flow_info): Revamp code to verify that the
3137 head and end of each basic block are in the insn chain.
3139 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
3141 * gcse.c (record_one_set): Prepend instead of append onto
3142 reg_set_table, making it O(n) instead O(n^2).
3143 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
3144 Use a queue instead of a stack as worklist.
3146 2000-07-20 Kazu Hirata <kazu@hxi.com>
3148 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
3149 * h8300.h (OK_FOR_T): New.
3150 (EXTRA_CONSTRAINT): Support OK_FOR_T.
3151 * h8300.md: Use inc/dec.[wl] for increment/decrement
3152 by 1 and 2 in HI and SI modes.
3154 2000-07-20 Jim Wilson <wilson@cygnus.com>
3156 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
3157 larger than 14 bits.
3159 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
3161 * cppmacro.c (CAN_PASTE_AFTER): New macro.
3162 (count_params): Don't set GNU_REST_ARGS on anything.
3163 (save_expansion): Set PASTE_LEFT only on tokens for which
3164 CAN_PASTE_AFTER is true, or which are named operators.
3166 * cpplex.c (parse_args): Distinguish between a rest argument
3167 given one empty argument, and a rest argument given zero arguments.
3168 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
3169 deletion of previous token based on that.
3170 (get_raw_token): Flatten some control structure.
3172 * cpplib.h (CPP_LAST_EQ): Correct.
3173 (VOID_REST): New token flag.
3174 (GNU_REST_ARGS): Delete.
3176 * tradcpp.c (main): Don't munge -D options.
3177 (make_definition): Bring -D handling in line with cpplib.
3178 (do_define): Strip all leading whitespace from macro definitions.
3180 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
3182 * Makefile.in (tradcpp): Depend on intl.o and version.o.
3184 2000-07-20 Bruce Korb <bkorb@gnu.org>
3186 * fixincl/check.tpl: strip the platform specific types before testing
3187 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
3188 * fixincl/fixincl.tpl: use platform specific types
3189 * fixincl/fixlib.h: include the platform specific types
3190 * fixincl/inclhack.def(gnu_types): don't supply the types
3191 * fixincl/fixincl.x: regen
3193 2000-07-19 Jim Wilson <wilson@cygnus.com>
3195 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
3198 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
3200 * tradcpp.c (rescan): Do not recognize directives when the #
3203 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
3205 Implement C++ named operators.
3207 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
3208 of operators allowed in #if and having an _EQ variant. Add
3209 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
3210 (cpp_token flags): Add NAMED_OP.
3211 (enum node_type): Add T_OPERATOR.
3212 (struct cpp_hashnode): Add code slot to value union.
3213 * cpphash.h (spec_nodes): Remove n_defined.
3215 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
3216 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
3217 (is_macro_disabled): Tweak error messages.
3219 * cpplib.c (get_define_node): Disallow all named operators as
3220 macro names. Tweak error messages.
3221 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
3223 * cppinit.c (builtin_array): Add entries for the named operators.
3224 * cppexp.c (lex): Check for CPP_DEFINED token.
3225 (priority table): Add entries for CPP_MIN and CPP_MAX.
3226 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
3228 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
3230 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
3231 larger than the array of cuids.
3232 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
3235 2000-07-19 Bruce Korb <bkorb@gnu.org>
3237 * fixinc/fixincl.c: Convert to using a table of environment variables
3238 and activate the auto-edit marker on the fixed output files.
3239 * fixinc/fixlib.h: Define the environment table
3240 * fixinc/fixincl.sh: export the ${INPUT} dir
3241 * fixinc/check.tpl: likewise
3243 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
3245 * gcc.c (.h spec): Fix typo.
3247 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
3249 * Makefile.in: Fix tradcif.c path.
3251 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
3253 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
3256 * cpphash.h (TOKEN_NAME): New macro.
3257 (_cpp_spell_operator): Deleted.
3258 (token_spellings): Now _cpp_token_spellings.
3260 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
3261 * cpplex.c: Use OP and TK macros when expanding the
3262 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
3263 store the stringification of the enumeration name (CPP_CHAR,
3264 etc.) in the name slot of token_spellings.
3265 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
3266 token_spellings directly.
3267 * cpplib.c: Use TOKEN_SPELL.
3269 * cpplex.c (_cpp_push_token): If the token being pushed back
3270 is the previous token in this context, just subtract one from
3272 * cppmacro.c (save_expansion): Clear aux field when storing a
3275 2000-07-18 Jakub Jelinek <jakub@redhat.com>
3277 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
3278 buffer, provided it is not NULL.
3280 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
3282 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
3283 case of invalid volatile re-declaration.
3285 2000-07-18 Jakub Jelinek <jakub@redhat.com>
3287 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
3288 (expand_call): Adjust caller.
3290 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
3292 * diagnostic.h (report_diagnostic): Change prototype.
3294 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
3295 diagnostic_for_decl): Change prototype.
3296 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
3297 error, warning, error_with_file_and_line,
3298 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
3299 Adjust call to report_diagnostic, diagnostic_for_decl.
3300 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
3301 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
3303 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
3304 varaible argument list.
3306 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
3308 * cpphash.c: Don't include hashtab.h. Most macro-handling code
3309 moved to cppmacro.c.
3310 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
3311 dump_hash_helper): Delete.
3312 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
3313 cpp_forall_identifiers): New. Implement specialized version of
3314 Vlad's expandable hash table.
3315 (cpp_lookup): Use new functions.
3316 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
3318 * cppmacro.c: New file.
3319 * cppinit.c (dump_macros_helper): New.
3320 (cpp_finish): Iterate over the identifier table directly.
3321 * cpplex.c (parse_name): Calculate the hash of the identifier
3322 while we scan it. Use _cpp_lookup_with_hash when we can.
3324 * cpphash.h: Update prototypes.
3325 (xcnewvec, HASHSTEP): New helper macros.
3326 * cpplib.h: Update prototypes.
3327 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
3328 (cppmacro.o): New rule.
3329 (cpphash.o): Update deps.
3331 * cppmain.c: Do not set pfile->printer if no_output is on.
3333 2000-07-15 Neil Booth <neilb@earthling.net>
3335 * cpplib.c: Change all directive-handler functions to return
3337 * cpphash.h: Update typedefs.
3339 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
3341 * configure: Regenerate.
3343 * extend.texi (Extended Asm): Mention that a memory clobber
3344 does not count as a side-effect.
3346 * unroll.c (copy_loop_body): Fix one instance of using host
3347 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
3350 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
3352 2000-07-17 Richard Henderson <rth@cygnus.com>
3354 * config/ia64/ia64.md (movdi): Split out load address code.
3355 New post-reload splitter for symbolic operands.
3356 (movdi_internal): Abort if we didn't split symbolic operands
3357 when we should have.
3358 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
3359 (ia64_reorg): Split insns when not optimizing.
3360 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
3362 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
3364 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
3365 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
3367 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
3369 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
3371 2000-07-17 Jason Merrill <jason@redhat.com>
3373 * Makefile.in (clean): Remove libgcc directory.
3375 * configure.in (-Wno-long-long check): Use higher-level macros.
3377 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
3379 * simplify-rtx.c (simplify_binary_operation): Recognize
3380 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
3381 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
3382 a CONST_INT, it will always be zero.
3384 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
3386 * loop.c (check_dbra_loop) : Return if more than one condition is
3387 present to control the loop.
3389 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
3391 * mips.c (mips_expand_prologue): Don't calculate the last argument
3392 register unless we need it. When we are calculating this, make
3393 sure FUNCTION_ARG is giving us a REG.
3395 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3397 * flow.c (libcall_dead_p): Use single_set to verify the insn
3398 has only one set and get for analysis.
3399 (propagate_one_insn): Don't pass the PATTERN of the insn.
3401 2000-07-17 Mark Klein <mklein@dis.com>
3403 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
3405 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3407 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
3408 * configure.in (TARGET_GETGROUPS_T): Evaluate.
3409 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
3410 of second argument of getgroups.
3411 * configure, config.in: Rebuilt.
3413 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
3415 * simplify-rtx.c (simplify_relational_operation): Two signed
3416 values with equal high words are less/greater than each other if
3417 their low words are less/greater when considered as unsigned.
3419 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
3421 * configure.in (vax-*-openbsd): Change to new style configuration,
3422 add collect2/float_format information.
3423 * configure: Rebuilt.
3424 * config/vax/openbsd1.h: New.
3425 * config/vax/openbsd.h: New.
3426 * config/vax/t-openbsd: New.
3428 2000-07-17 Chip Salzenberg <chip@valinux.com>
3430 * c-common.c (shorten_compare): Quiet warnings about unsigned
3431 comparisons with zero when they occur in a system header.
3433 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
3435 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
3436 update to describe current practice.
3438 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
3440 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
3441 references to C9X. Change references to -fstd and -flang-isoc9x
3444 * c-common.c (scan_char_table): Allow "z" length modifiers on
3446 (check_format_info): Use TYPE_DOMAIN on the type matched against
3447 for "z" formats, to retrieve the language size_t rather than the
3450 * c-common.c (check_format_info): Do not make a pedantic objection
3451 to the 'L' length modifier if used with a floating point type
3454 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
3455 constants in C99 mode.
3457 2000-07-17 Kazu Hirata <kazu@hxi.com>
3459 * h8300.md: Fix the format of mac.
3460 (movsi_h8300hs): Output a tab after stmac instead of a space.
3462 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
3463 profitable adds/subs sequences.
3465 * fold-const.c: Fix comment typos.
3467 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
3469 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
3471 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3473 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
3475 2000-07-16 Neil Booth <NeilB@earthling.net>
3477 * cpplex.c: Update comments.
3478 * README.Portability: Small update.
3480 2000-07-16 Neil Booth <NeilB@earthling.net>
3482 * README.Portability: Small update.
3484 2000-07-15 Richard Henderson <rth@cygnus.com>
3486 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
3487 * config/ia64/ia64.c (ia64_move_ok): New function.
3488 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
3489 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
3491 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
3493 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
3494 immediately following a paste operator.
3495 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
3496 (cpp_reader_init): Call it, if HOST_EBCDIC.
3497 (cpp_handle_options): Do not sort option list here.
3498 (handle_option): Rename to cpp_handle_option and export.
3499 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
3500 _cpp_get_token directly.
3501 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
3502 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
3503 * cpplib.h: Prototype cpp_handle_option. Update prototype of
3506 2000-07-15 Richard Henderson <rth@cygnus.com>
3508 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
3509 cast around an expression. Tidy other unsigned tests.
3511 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
3513 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
3514 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
3515 (v_message_with_decl): Rename to ...
3516 (format_with_decl): ... this. Tweak
3517 (diagnostic_for_decl): New function.
3518 (fatal_io_error): Use verbatim in lieu of notice.
3519 (announce_function): Use verbatim.
3520 (default_print_error_function): Likewise.
3521 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
3524 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3526 * mips.c (function_arg_pass_by_reference): Don't do automatic
3527 aggregate initialization.
3528 (machine_dependent_reorg): Initialize variable `mode'.
3530 * mips.md (absdi2): Change variable `regno1' to unsigned int.
3531 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
3532 conflicts with sys/param.h macro of the same name.
3533 (reload_outdi): Likewise.
3535 2000-07-15 Michael Meissner <meissner@redhat.com>
3537 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
3538 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
3539 create a new node instead.
3541 2000-07-15 Neil Booth <NeilB@earthling.net>
3543 * README.Portability: Correct example about calling a function
3544 through a pointer to function. Format wide paragraphs.
3546 2000-07-15 Michael Meissner <meissner@redhat.com>
3548 * README.Portability: Update integer suffixes and function
3551 2000-07-15 Neil Booth <NeilB@earthling.net>
3553 * README.Portability: Small update.
3555 2000-07-15 Neil Booth <NeilB@earthling.net>
3557 * README.Portability: New file.
3559 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
3561 * INSTALL: Give special instructions for building GCC on Irix 6.
3562 * config/mips/x-iris6 (CC): Don't set it.
3565 2000-07-14 Jason Merrill <jason@redhat.com>
3567 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
3568 register in the stack and later in another register, use the new
3571 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
3573 * config/mips/mips.md: (absdi2): Handle sign_extend for
3576 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
3578 * cpplib.c (do_pragma_dependency): Tidy warning messages.
3580 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
3582 * .cvsignore: Correct typo.
3584 2000-07-13 Mark Mitchell <mark@codesourcery.com>
3586 * .cvsignore: Add generated YACC files.
3587 * objc/.cvsignore: New file.
3589 2000-07-14 Neil Booth <NeilB@earthling.net>
3591 * cpplex.c (adjust_column): New funcion.
3592 (skip_whitespace): Use it.
3593 (skip_block_comment): Use it, and warn about /*/* with
3596 2000-07-14 Neil Booth <NeilB@earthling.net>
3598 * cpphash.c (struct macro_info): Add new members.
3599 (_cpp_free_definition): Delete the macro directly.
3600 (count_params): Return void, with first token of
3601 expansion in struct macro_info on success.
3602 (parse_define): Return int. Hoist syntax checking from
3603 save_macro_expansion. Leave call to save_expansion to
3604 _cpp_create_definition.
3605 (alloc_macro): Needs just 2 arguments.
3606 (free_macro): Delete.
3607 (save_expansion): Don't perform syntax check.
3608 (_cpp_create_definition): Call save_expansion.
3610 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3612 * genrecog.c (write_header): Split long string.
3614 * cpphash.c (macro_info): Don't use the `signed' keyword.
3616 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
3618 2000-07-13 Jakub Jelinek <jakub@redhat.com>
3620 * calls.c (stored_args_map): New variable.
3621 (check_sibcall_argument_overlap_1): New.
3622 (check_sibcall_argument_overlap): New.
3623 (expand_call): Initialize stored_args_map.
3624 Call check_sibcall_argument_overlap.
3626 2000-07-13 Bruce Korb <bkorb@gnu.org>
3628 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
3629 (emit_gnu_type): utility procedure for gnu_type_fix
3630 (gnu_type_fix): implement various pre-processor guards around
3631 standard types so these types can be defined over and over
3632 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
3633 types alluded to above will have GNU-compliant base types
3634 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
3635 * fixinc/inclhack.def: add test_text entries and utilize the new
3636 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
3637 * fixinc/fixincl.x: regenerate
3639 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3641 * diagnostic.c (vline_wrapper_message_with_location,
3642 v_message_with_file_and_line, v_error_with_file_and_file,
3643 v_error_for_asm, v_warning_for_asm, vfatal,
3644 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
3645 vsorry, verror, vwarning, vpedwarn): Remove.
3646 (diagnostic_for_asm): New function.
3647 (pedwarn, error, warning, pedwarn_with_file_and_line,
3648 error_with_file_and_line, warning_with_file_and_line, sorry,
3649 error_for_asm, warning_for_asm, fatal): Reimplement.
3650 (finish_diagnostic): Clear diagnostic info as well.
3652 2000-07-13 Neil Booth <NeilB@earthling.net>
3654 * c-common.h (flag_digraphs): New.
3655 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
3656 * c-lex.c (yylex): Use flag_digraphs to decide whether to
3659 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
3661 * gcc.c (do_spec_1): Add new %B operator.
3662 (set_input): Prepare for %B.
3664 (link_command_spec): Move up with the other tm.h-
3665 overrideable specs. Factor out the portion conditional on
3666 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
3667 (struct compiler): Just have a single spec string. All users
3669 (default_compilers): Remove unnecessary braces.
3670 (static_specs): Update.
3672 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
3674 (C and assembly specs): Use the new named specs, as appropriate.
3676 * objc/lang-specs.h: Use the new named specs.
3677 Remove unnecessary braces.
3679 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
3681 * gcc.c (execute): If a subprocess gets a fatal signal, report
3682 strsignal() of the signal number, and ask for a bug report.
3683 Do not do this for SIGPIPE if there's already been an error.
3685 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
3688 * tradcif.c: Remove.
3690 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
3692 * final.c (profile_function): Do not emit profile counters in
3693 the data section, if NO_PROFILE_COUNTERS is defined.
3694 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
3697 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
3698 (FUNCTION_PROFILER): Just emit a call to mcount.
3700 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
3702 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
3704 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
3705 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
3706 traditional, lang_chill, or lang_fortran.
3708 * cppfiles.c: #undef strcmp to suppress warning about macros
3709 used without arguments.
3710 (_cpp_execute_include): Use f, not fname, in "No include path"
3712 (_cpp_pop_file_buffer): New function.
3713 * cpplib.c: Don't include <sys/mman.h>.
3714 (cpp_push_buffer): Set line_base and lineno in new buffer.
3715 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
3717 * cpplex.c: Move all prototypes and structure declarations to the
3718 top of the file. Properly parenthesise some macro arguments.
3719 (cpp_scan_line): New function.
3720 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
3721 don't need to walk up the stack counting.
3723 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3725 * c-common.c (combine_strings): Emit a pedantic warning when a
3726 string length is greater than the minimum ANSI C is required
3729 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
3731 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
3732 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
3734 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3736 * c-decl.c (define_label): Warn about identifier conflicts with
3737 labels in traditional C.
3739 * c-parse.in (unop +): Warn about the unary plus operator for
3742 * c-typeck.c (store_init_value): Warn about automatic aggregate
3743 initialization for traditional C.
3745 * invoke.texi (-Wtraditional): Document new warnings.
3747 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
3749 * Makefile.in (c-errors.o): Fix thinko in dependency.
3751 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
3753 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
3754 -traditional, -ftraditional, or -traditional-cpp was given.
3755 Do not pass -traditional to the preprocessor.
3756 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
3757 preprocessor does it automatically.
3758 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
3760 * ch/lang-specs.h: Always use tradcpp. Do not pass
3761 -traditional, -trigraphs, or -pedantic to the preprocessor.
3762 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
3765 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
3767 * cppexp.c (LOGICAL): Delete macro.
3768 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
3771 * cpphash.c (HASHSIZE): Increase to 4096.
3772 (struct hashdummy): Add hash field.
3773 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
3774 the string values using memcmp.
3775 (cpp_lookup): Set dummy.hash.
3777 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
3779 * configure.in (m88k-openbsd): Express configuration using new fragment
3781 * configure: Rebuilt.
3782 * m88k/aout-dbx.h: New.
3783 * m88k/openbsd.h: New.
3784 * m88k/xm-openbsd.h: New.
3786 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3788 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
3790 2000-07-12 Richard Henderson <rth@cygnus.com>
3792 * reload.c (push_secondary_reload): Make sure to add the new
3793 reload at the end, after acquiring secondary memory.
3795 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3797 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
3799 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
3800 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
3802 * c-parse.in (stmt): Delete unused variables.
3804 * convert.c (convert_to_vector): Likewise.
3806 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
3808 * tree.c (finish_vector_type): Prototype.
3810 2000-07-12 Bruce Korb <bkorb@gnu.org>
3812 * fixinc/fixfixes.c: use xmalloc
3813 * fixinc/fixincl.c(initialize): set program name for xmalloc
3814 * fixinc/fixlib.c(must_malloc): obsolete
3815 (is_cxx_header): no longer used - disabled
3816 (skip_quote): inserted and disabled for future use
3817 * fixinc/fixlib.h: reflects above
3818 * fixinc/fixtests.c: removed dinkleberries
3820 2000-07-12 Neil Booth <NeilB@earthling.net>
3822 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
3823 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
3825 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
3826 struct toklist_dummy): New.
3827 (cpp_free_definition): Free macros with free_macro.
3828 (count_params): Don't save paramter spellings. Save macro
3829 information in a struct macro_info.
3830 (parse_define): Don't allocate a token list.
3831 (save_expansion): Allocate the macro's token list, and
3832 save parameter spellings if necessary. Use TOKEN_SPELL.
3833 (cpp_create_definition): Make list const.
3835 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
3837 * c-typeck.c (pedwarn_c99): Move to
3838 * c-errors.c: ... Here.
3839 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
3840 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
3841 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
3842 (c-errors.o): List dependency.
3844 2000-07-12 Mark Mitchell <mark@codesourcery.com>
3846 * c-parse.c: Remove.
3847 * c-parse.h: Likewise.
3848 * c-parse.y: Likewise.
3849 * objc/objc-parse.c: Likewise.
3850 * objc/objc-pasre.y: Likewise.
3852 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
3854 * gcc.texi: Fix minor typos
3855 * extend.texi: Fix minor typos
3857 2000-07-11 Marc Espie <espie@openbsd.org>
3859 * collect2.c (main): Recognize .lo as object files.
3861 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3863 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
3866 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
3867 with MAP_ANONYMOUS and MAP_ANON.
3868 * configure, config.in: Rebuilt.
3870 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
3872 * diagnostic.c (save_output_state): Remove.
3873 (restore_output_state): Likewise.
3874 (clear_text_info): New function.
3875 (clear_diagnostic_info): Likewise.
3876 (output_text_length, is_starting_newline, output_prefix,
3877 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
3878 prefixing_policy, output_buffer_ptr_to_format_args): New macros
3879 (set_real_maximum_length, output_set_maximum_length,
3880 output_set_prefix, output_get_prefix, output_set_maximum_length,
3881 output_destroy_prefix, init_output_buffer,
3882 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
3883 output_add_newline, output_add_character, output_add_space,
3884 output_append_r, output_append, wrap_text, output_format,
3885 output_do_printf, output_printf, output_do_verbatim,
3886 output_verbatim, verbatim): Use them.
3887 (output_clear): Split into cleat_text_info and
3888 clear_diagnostic_info.
3889 (struct output_state): Move to...
3891 * diagnostic.h: ...Here
3892 (struct output_buffer): Adjust.
3894 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
3896 * cpplex.c (parse_name): No longer inline (premature optimization).
3897 (do_pop_context): Fold into pop_context.
3898 (pop_context): Returns int.
3899 (lex_next): Hoist test for end of directive into pop_context.
3900 (push_macro_context): Returns int; takes just reader and token.
3901 Hoist test for excessive nesting to caller.
3902 (push_arg_context): Returns void; takes just reader and token.
3903 Do not call stringify_arg or get_raw_token.
3904 (get_raw_token): Convert tail recursion through push_arg_context
3905 to a loop at this level. Call stringify_arg here if appropriate.
3906 (maybe_paste_with_next): Convert tail recursion to a while loop.
3907 Hoist test of paste_level to caller.
3909 (stringify_arg): Push arg context at beginning.
3910 (cpp_get_token): Split out core into _cpp_get_token. Call
3911 process_directive here. Throw away CPP_PLACEMARKER tokens.
3912 (_cpp_get_token): Convert tail recursion through
3913 push_macro_context to a loop at this level.
3914 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
3915 _cpp_get_raw_token): Use _cpp_get_token.
3916 (_cpp_skip_rest_of_line): Drop the context stack directly; do
3917 not call pop_context.
3918 (_cpp_run_directive): Call lex_next directly.
3920 * cpphash.h: Prototype _cpp_get_token.
3921 * cppexp.c (lex): Use it.
3922 * cpphash.c (parse_define): Use it.
3923 * cpplib.c (get_define_node, do_undef, parse_include,
3924 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
3925 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
3926 parse_ifdef, validate_else): Use it.
3927 (cpp_push_buffer): Tweak error message; abort if anyone tries
3928 to push a buffer while macro expansions are stacked.
3930 2000-07-11 Donn Terry <donnte@microsoft.com>
3932 * cpplex.c (free_macro_args, save_token): Cast arg of free
3933 and/or xrealloc to PTR.
3934 (_cpp_init_input_buffer): Clear all fields of the base context.
3936 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
3938 * gensupport.c (process_rtx): Make rtl checking stop
3939 complaining about the define_insn while it is being
3940 converted from a define_insn_and_split.
3942 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
3944 * config/mips/mips.c (simple_memory_operand): Access the
3945 INTVAL of the address, not it's containing MEM.
3947 2000-07-11 Bruce Korb <bkorb@gnu.org>
3949 * fixinc/fixtests.c(double_slash): obsolete
3950 (else_endif_label): likewise
3951 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
3952 (libc1_ifdefd_memx): correct initial comment
3953 and omit the #if/#endif pair from the memxxx declarations
3954 * fixinc/fixincl.x: regen
3956 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3958 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
3960 2000-07-11 Neil Booth <NeilB@earthling.net>
3964 2000-07-11 Neil Booth <NeilB@earthling.net>
3966 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
3967 (handle_option): Set digraphs according to standard.
3968 Merge OPT_lang_c89 handler with OPT_std_c89.
3970 * cpplex.c: (lex_line, can_paste): Honour digraphs in
3971 accordance with the digraphs flag.
3973 * cpplib.h: (struct cpp_options): New option digraphs.
3975 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
3976 Bruce Korb <bkorb@gnu.org>
3978 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
3979 * fixinc/fixincl.x: Regenerate.
3980 * fixinc/tests/base/testing.h: Add testcase.
3982 2000-07-10 Richard Henderson <rth@cygnus.com>
3984 * config/ia64/ia64.c (got_symbolic_operand): New.
3985 (symbolic_operand, move_operand): Revert 0701 change.
3986 * config/ia64/ia64.h (PREDICATE_CODES): Update.
3987 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
3988 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
3989 split the offset into a 14-bit low part instead of a 13-bit low part.
3990 (load_fptr): Mark the mem as unchanging.
3991 (load_symptr): Use got_symbolic_operand.
3993 2000-07-10 Nick Clifton <nickc@cygnus.com>
3995 * libgcc2.c (next_stack_level): Cast result of computation to
3996 (void **) so that the assignment does not generate a warning.
3998 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
4000 * flags.h : Add new variable flag_single_precision_constant.
4001 * toplev.c (display_help) : Add -fsingle-precision-constant option.
4002 (flag_single_precision_constant): New.
4003 * c-lex.c (yylex): Convert floating point constant to single
4005 * invoke.texi : Add documentation for this new option.
4007 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
4009 * diagnostic.c (output_octal): Second parameter is unsigned.
4010 (output_long_octal): Likewise.
4011 (output_hexadecimal): Likewise.
4012 (output_long_hexadecimal): Likewise.
4013 (output_format): Adjust arguments extraction. Tweak.
4014 (output_verbatim, verbatim): End variable argument list.
4015 (report_diagnostic): Improve documentation.
4017 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
4019 * c-common.h (build_stmt): Declare.
4020 (build_continue_stmt): Likewise.
4021 (build_break_stmt): Likewise.
4022 (build_return_stmt): Likewise.
4024 * c-decl.c (do_case): Rewrite to do what previously done in
4027 * c-semantics.c (build_stmt): Define.
4028 (build_return_stmt): Likewise.
4029 (build_break_stmt): Likewise.
4030 (build_continue_stmt): Likewise.
4031 (build_case_label): Likewise.
4033 * c-parse.in (BREAK): Change to build tree, then generate RTL.
4034 (CONTINUE): Likewise.
4037 (DEFAULT): Likewise.
4039 * c-parse.y: Regenerate.
4040 * c-pasre.c: Likewise.
4042 2000-07-09 Jason Merrill <jason@redhat.com>
4044 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
4046 * tree.h (STRIP_NOPS): Check for error_mark_node.
4047 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
4048 (dwarf2out_*): Remove duplicate declarations.
4050 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
4051 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
4053 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
4055 * diagnostic.c (wrap_text): New function.
4056 (maybe_wrap_text): Likewise.
4057 (output_add_string): Use it.
4058 (output_format): Likewise.
4059 (count_error): Use verbatim instead of notice.
4060 (report_error_function): Likewise. Don't use plain fprintf.
4061 (finish_diagnostic): New function.
4062 (output_do_verbatim): Tweak. Commonalize functionalities in
4063 output_verbatim and verbatim.
4064 (output_verbatim): Adjust.
4065 (verbatim): Likewise.
4066 (report_diagnostic): Define.
4068 * diagnostic.h (report_diagnostic): Prototype.
4070 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
4072 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
4074 2000-07-09 Neil Booth <NeilB@earthling.net>
4076 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
4077 IShspace, ISspace: Update.
4079 * cppinit.c: ISTABLE: Update.
4082 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
4083 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
4084 (skip_block_comment, skip_line_comment, parse_string,
4085 lex_line): Use is_vspace rather than IS_NEWLINE.
4086 (skip_whitespace, lex_line): Clean up to use is_nvspace.
4087 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
4089 (lex_next): Unconditionally stop if within a directive.
4090 Treat directives within macro invocations as directives
4091 (after parse_args emits error), not as the argument.
4093 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
4095 * diagnostic.c (diagnostic_args): New macro.
4096 (diagnostic_msg): Likewise.
4097 (output_formatted_integer): Likewise.
4098 (output_state): New data type.
4099 (digit_buffer): Make global.
4100 (output_add_integer): Rename to output_decimal. Squeeze
4102 (output_long_decimal, output_unsigned_decimal,
4103 output_long_unsigned_decimal, output_octal, output_long_octal,
4104 output_hexadecimal, output_long_hexadecimal): New functions.
4105 (output_append_r): New function.
4106 (output_append): Tweak.
4107 (output_flush_on): Rename to output_to_stream.
4108 (output_format): Change prototype. Improve documentation. Handle
4109 more format specifiers.
4110 (build_location_prefix): Rename to context_as_prefix.
4111 (output_notice): Rename to output_do_printf.
4112 (output_printf): Tweak.
4113 (line_wrapper_printf): Likewise.
4114 (vline_wrapper_message_with_location): Adjust call to renamed
4116 (v_message_with_decl): Likewise.
4117 (default_print_error_function): Likewise.
4118 (save_output_state): New function.
4119 (restore_output_state): Likewise.
4120 (output_do_verbatim): Likewise.
4121 (output_verbatim): Define.
4122 (verbatim): Likewise.
4124 * diagnostic.h (printer_fn): Change return type from void to int.
4125 Improve documentation.
4126 (output_add_integer): Rename to output_decimal.
4127 (output_flush_on, output_format): Don't export.
4128 (output_verbatim, verbatim): Declare.
4130 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
4132 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
4133 Check whether c divides op1 exactly if operation is not
4136 2000-07-08 Richard Henderson <rth@cygnus.com>
4138 * final.c (final): Do not abort when reg-stack introduces
4141 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
4143 * cpplib.h (struct cpp_name): Now struct cpp_string.
4144 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
4145 CPP_HEADER_NAME): Change to type S.
4146 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
4147 field, a cpp_hashnode *. All references to val.name updated
4148 to use val.str or val.node as appropriate.
4149 (struct cpp_reader): Add spec_nodes field.
4150 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
4152 * cpphash.h (struct spec_nodes): New.
4153 (enum spell_type): Reorder. Only SPELL_STRING tokens use
4154 val.str. All references to 'spelling > SPELL_NONE' updated to
4157 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
4158 pfile->buffer->inc are not NULL before dereferencing them.
4160 * cpplex.c (parse_name): Take a pointer to the current token,
4161 plus current position and limit as args; return the new
4162 position; don't copy the text of a name into the string
4163 buffer, instead call cpp_lookup and store the node pointer.
4164 If extending a token, copy out the text of the old into a
4165 scratch buffer, append the new, look that up and store the new
4166 node pointer. Inline.
4167 (maybe_paste_with_next): If the result of paste is a NAME,
4168 then look up the pasted text and store its node pointer.
4169 (lex_line): Adjust for new parse_name interface.
4170 Check for L"str", L'str' using spec_nodes->n_L.
4171 (spell_token): SPELL_IDENT tokens have their spelling in
4172 val.node->name. Handle SPELL_STRING tokens that don't have
4174 (_cpp_expand_name_space,
4175 (can_paste): Check for L ## "str" using spec_nodes->n_L.
4176 (cpp_get_token, special_symbol): No need to call cpp_lookup.
4177 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
4178 return 1=equal 0=not, not a tristate.
4180 * cpphash.c (var_args_str): Delete.
4181 (find_param): Compare node fields directly.
4182 (is__va_args__): Use CPP_PEDANTIC. Just compare
4183 token->val.node with spec_nodes->n__VA_ARGS__.
4184 (dump_funlike_macro): Don't use var_args_str.
4186 * cpplib.c (_cpp_check_directive): Just walk through
4187 spec_nodes->dirs comparing pointers.
4188 (get_define_node, do_pragma_poison, detect_if_not_defined,
4189 parse_ifdef): The identifier has already been looked up.
4190 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
4192 (do_if): Only call detect_if_not_defined at beginning of file.
4193 (_cpp_parse_assertion): Only copy string pointers for
4194 SPELL_STRING tokens.
4195 (pragma_dispatch): Take a node pointer and examine its name
4197 (_cpp_init_stacks): Also initialize the spec_nodes structure.
4199 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
4201 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
4202 reverse order from the corresponding _cpp_init_* routines.
4204 * cppexp.c (parse_number, parse_charconst, parse_defined,
4205 lex): Check val.node->type instead of calling cpp_defined.
4206 Use spec_nodes entries where appropriate.
4208 * fix-header.c, scan-decls.c: Update for interface changes.
4210 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
4212 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
4213 emitting aux_truncdfsf2.
4215 2000-07-03 Donn Terry (donnte@microsoft.com)
4217 * cppinit.c (print_help): split overlong line into ISO C89
4220 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
4222 * cppexp.c: Update all code for new lexer interface.
4223 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
4224 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
4225 * cpplex.c (token_names): Trim leading CPP_ from names; make
4226 the strings unsigned.
4227 (_cpp_spell_operator): New.
4228 (is_macro_disabled): Disable all macros if rescanning
4230 (_cpp_get_directive_token): Remove.
4232 * cppinit.c: Don't set no_macro_expand.
4233 * cpplib.c (read_line_number, do_line): Check only for EOF,
4235 * cpphash.h: Update prototypes.
4236 * cpplib.h (CPP_VSPACE): Remove.
4237 (struct cpp_reader): Remove no_macro_expand.
4239 2000-07-08 Neil Booth <NeilB@earthling.net>
4241 * cpphash.c (is__va_args__): New function.
4242 (count_params): Fix line reported in error messages. Use
4243 is__va_args__. Don't return ')' on error. Flag GNU style
4244 rest args macro definitions.
4245 (parse_define): Check macro name is not __VA_ARGS__.
4246 (save_expansion): Check identifier in non-varargs-macro is
4247 not __VA_ARGS__. Don't flag GNU_VARARGS.
4248 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
4249 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
4250 than per-token GNU_VARARGS.
4251 * cpplib.h (GNU_VARARGS): Remove.
4252 (GNU_REST_ARGS): New.
4254 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
4256 * i386.md (call_pop, call, call_value_pop): Do not set
4257 current_function_uses_pic_offset_table for calls to static
4258 functions or indirect calls.
4260 2000-07-07 Jim Wilson <wilson@cygnus.com>
4262 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
4263 is_predicate_reg, then take max write_count of register pair.
4265 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4267 * tradcpp.c (main): Rename label `include' to `add_include' to
4268 avoid conflicts with variable `include' in traditional C.
4270 2000-07-07 Jakub Jelinek <jakub@redhat.com>
4272 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
4274 2000-07-07 Jakub Jelinek <jakub@redhat.com>
4276 * sibcall.c (uses_addressof): Add INMEM argument, check for
4277 current_function_internal_arg_pointer outside of MEM rtxs in addition
4279 (sequence_uses_addressof): Update caller.
4281 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
4283 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
4286 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4288 * system.h (UNION_INIT_ZERO): New macro for initializing union
4291 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
4293 2000-07-07 Neil Booth <NeilB@earthling.net>
4297 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
4299 * final.c (final): Detect out of bounds array access to
4300 the insn_lengths array.
4302 2000-07-07 Kazu Hirata <kazu@hxi.com>
4304 * fold-const.c (fold): Fix a comment typo.
4306 2000-07-07 Neil Booth <NeilB@earthling.net>
4308 * cpp.texi: Update to new lexer.
4310 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
4312 * tradcpp.c: New file.
4313 * tradcif.y: New file.
4314 * tradcif.c: New generated file.
4316 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
4317 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
4318 dependencies of C. Install tradcpp from install-common, in
4321 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
4323 * cppinit.c: Include cppdefault.h. Refer to
4324 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
4325 to GCC_INCLUDE_DIR and its length.
4326 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
4327 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
4328 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
4330 (include_defaults_array): Move to cppdefault.c.
4332 * cppdefault.h: New file.
4333 * cppdefault.c: New file.
4335 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
4336 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
4337 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
4340 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4342 * reload.c (push_reload): When seeing if can reuse a register,
4343 check extra registers against widest of INMODE and OUTMODE.
4345 2000-07-06 Neil Booth <NeilB@earthling.net>
4347 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
4348 based on full length of predicate.
4350 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
4352 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
4353 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
4355 2000-07-05 Kazu Hirata <kazu@hxi.com>
4357 * h8300-proto.h: Fix formatting.
4358 * h8300.c: Likewise.
4359 * h8300.h: Likewise.
4361 2000-07-05 Jim Wilson <wilson@cygnus.com>
4363 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
4366 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
4368 * invoke.texi: Fix minor typos
4369 * md.texi: Fix minor typos
4371 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
4373 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
4375 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
4377 * cpplex.c: Don't include sys/mman.h.
4378 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
4380 * cpplib.c: Include sys/mman.h and obstack.h.
4381 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
4383 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
4384 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
4385 bother freeing if stack entries (they will be freed with their buffer).
4386 (do_endif): Free if stack entries from the buffer obstack.
4387 (push_conditional): Allocate if stack entries from the buffer obstack.
4389 (find_answer): Rename to _cpp_find_answer.
4390 (do_assert, do_unassert): Update.
4392 * cpphash.h: Update prototypes.
4393 (xobnew): New convenience macro.
4394 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
4396 (struct cpp_hashnode): Remove disabled field.
4398 * cppinit.c: Don't include hashtab.h or splay-tree.h.
4399 (report_missing_guard): Moved to cppfiles.c.
4400 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
4402 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
4403 cpp_cleanup_includes. Don't destroy hashtab or
4404 all_include_files here.
4405 (cpp_finish): Use _cpp_report_missing_guards.
4407 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
4408 (_cpp_init_include_table): Rename _cpp_init_includes.
4409 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
4411 * cppexp.c (parse_assertion): Update for new name of
4414 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
4416 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
4418 * cpplib.c (do_ident): s/VSPACE/EOF/
4420 2000-07-05 Neil Booth <NeilB@earthling.net>
4422 * cpplex.c: Fix trigraph replacement within strings.
4424 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4426 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
4428 * xcoffout.c (assign_type_number): Constify.
4429 (xcoffout_source_file): Add static prototype. Don't needlessly
4430 cast away const-ness.
4432 2000-07-04 Jason Merrill <jason@redhat.com>
4434 * frame.h (frame_state): Move base_offset to end.
4436 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
4438 * calls.c (emit_library_call_value_1): Revert previous change.
4440 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
4442 * fix-header.c (struct partial_proto): Remove unnecessary fields.
4443 (recognized_extern, recognized_function, read_scan_file):
4444 Update for new scheme.
4445 (check_protection): It's still a multiple include guard even
4446 if it doesn't always trigger.
4447 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
4449 * scan.h: Declare struct cpp_token. Update prototypes.
4451 2000-07-03 Neil Booth <neilb@earthling.net>
4452 Zack Weinberg <zack@wolery.cumb.org>
4454 Complete overhaul of the lexer and macro expander.
4456 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
4457 arg, arglist, argdata, reflist, collect_objlike_expansion,
4458 collect_funlike_expansion, collect_params,
4459 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
4460 unsafe_chars, macarg, compare_defs, special_symbol,
4461 scan_arguments, stringify, funlike_macroexpand,
4462 _cpp_quote_string, monthnames): Delete.
4463 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
4464 _cpp_create_definition, _cpp_dump_definition,
4465 dump_hash_helper): Adjust.
4466 (find_param, count_params, parse_define, var_args_str,
4467 check_macro_redefinition, save_expansion): New.
4469 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
4470 parse_string, output_line_command, trigraph_replace,
4471 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
4472 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
4473 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
4474 _cpp_skip_rest_of_line): Modify.
4476 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
4477 find_position, null_warning, bump_column, expand_name_space,
4478 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
4479 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
4480 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
4481 _cpp_prescan): Delete.
4483 (dump_param_spelling, process_directive, lex_next,
4484 is_macro_disabled, stringify_arg, expand_context_stack,
4485 output_token, make_string_token, alloc_number_token,
4486 special_symbol, duplicate_token, maybe_paste_with_next,
4487 can_paste, prevent_macro_expansion, restore_macro_expansion,
4488 get_temp_token, release_temp_tokens, quote_string,
4489 token_names, token_spellings, _cpp_expand_name_space,
4490 _cpp_glue_header_name, _cpp_reserve_name_space,
4491 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
4492 placemarker_token, eof_token, cpp_context, macro_args,
4493 get_raw_token, parse_arg, parse_args, save_token,
4494 push_arg_context, push_macro_context, pop_context,
4495 do_pop_context, free_macro_args, _cpp_get_line,
4496 _cpp_run_directive): New.
4498 * cpplib.c (validate_else, parse_include, push_conditional,
4499 pass_thru_directive, read_line_number, parse_ifdef,
4500 detect_if_not_defined, _cpp_check_directive, do_define,
4501 do_undef, do_include, do_import, do_include_next, do_error,
4502 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
4503 top_pragmas, do_pragma_gcc, do_pragma_implementation,
4504 do_pragma_poison, do_pragma_system_header,
4505 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
4506 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
4507 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
4508 cpp_defined): Update for new scheme.
4509 (strtoul_for_line, get_define_node, dump_macro_name,
4510 _cpp_check_linemarker, _cpp_parse_assertion): New.
4511 (_cpp_handle_directive, do_pragma_default): Delete.
4513 * cpphash.h (struct predicate): Now struct answer.
4514 (enum spell_type, struct token_spelling, struct directive,
4515 directive_handler): New.
4516 Update prototypes. Remove unused macros.
4517 * cpplib.h: Update prototypes. Remove unused macros,
4518 structure definitions, and fields.
4520 * cpperror.c (print_containing_files, v_message): Adjust.
4521 * cppexp.c (parse_assertion, lex, parse_escape,
4522 _cpp_parse_expr): Adjust.
4523 * cppfiles.c (open_include_file, _cpp_execute_include,
4524 _cpp_compare_file_date, cpp_read_file, read_include_file):
4526 * cppinit.c (dump_special_to_buffer): Delete.
4527 (append_include_chain, merge_include_chains, cpp_reader_init,
4528 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
4529 cpp_finish, handle_option, print_help): Adjust.
4530 * cppmain.c (main): Adjust.
4532 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
4534 * cppspec.c (lang_specific_driver): Use double quotes in error
4537 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
4539 * calls.c (emit_library_call_value_1): Use valreg instead
4540 of hard_libcall_value.
4542 2000-07-03 Geoff Keating <geoffk@cygnus.com>
4544 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
4545 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
4546 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
4554 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
4555 mode instead of wider_mode is being used.
4557 2000-07-03 Jakub Jelinek <jakub@redhat.com>
4559 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
4560 of 'r'. Use q_regs_operand.
4561 (andsi_1+2): Use q_regs_operand.
4563 2000-07-03 Jakub Jelinek <jakub@redhat.com>
4565 * builtins.c (get_memory_rtx): Always put into alias set 0.
4567 2000-07-03 Nick Clifton <nickc@cygnus.com>
4569 * config/arm/arm.md: Fix post increment and pre increment
4570 peepholes so that they do not generate UNPREDICATBLE opcodes.
4571 (ie ones where the increment clobbers the source/destination).
4573 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
4575 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
4576 change too big for -mtiny-stack" a warning, if larger than 63.
4577 (out_set_stack_ptr): Change the logic so -mno-interrupts is
4578 always safe to use on possible future devices.
4579 (function_prologue): Write SPH before SPL, for consistency.
4580 If interrupt_func_p true, we know we have enabled interrupts.
4581 (avr_num_arg_regs): New function. Round up to even number of
4582 bytes if no -mpack-args or if calling a libgcc function.
4583 (function_arg, function_arg_advance): Use it.
4584 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
4585 Output "movw" if available.
4586 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
4587 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
4588 (asm_output_section_name): Add blanks for consistent output.
4589 (encode_section_info): Set TREE_READONLY for progmem data to
4590 avoid gas warnings about changed section attributes.
4591 (avr_hard_regno_mode_ok): Force non-QImode data to start in
4592 even numbered registers on devices with "movw".
4593 * config/avr/avr.h (MASK_*): Define bits for target_flags.
4594 (TARGET_SWITCHES): Mark help strings for translation.
4595 Add new -mpack-args and -menhanced switches.
4596 (TARGET_OPTIONS): Mark help strings for translation.
4597 (progmem_section): Add section attributes.
4598 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
4599 Output "movw" if available.
4600 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
4602 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
4603 call convention (arguments aligned on even registers).
4604 (_cleanup, _exit): Make weak symbols libc can override.
4606 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4608 * fp-bit.h: New file.
4610 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
4611 Comment #endif statements.
4612 (__thenan_sf, __thenan_df): Add missing braces around initializer.
4614 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
4616 * gcse.c (compute_pre_data): Compute ae_kill using other local
4617 properties instead of calling compute_ae_kill.
4619 * alias.c (init_alias_analysis): Do not call
4620 prologue_epilogue_contains until after reload has completed.
4622 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
4624 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
4625 (genrtl_finish_compound_stmt): Likewise.
4626 (genrtl_compound_stmt): Change to return void.
4628 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
4629 move code from here to ...
4630 (genrtl_compound_stmt): ... here.
4631 (genrtl_finish_compound_stmt): Remove.
4632 (expand_stmt): Add comment.
4634 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
4636 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
4639 2000-07-02 Jakub Jelinek <jakub@redhat.com>
4641 * cpplib.h (struct cpp_reader): New field include_depth.
4642 (struct cpp_printer): Rename last_bsd to last_id.
4643 * cppfiles.c (read_include_file): Bump include_depth.
4644 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
4645 (output_line_command): Output correct #line if a header
4646 is including itself and is not protected against multiple inclusion.
4647 Use include_depth instead of buffer_stack_depth, last_id instead of
4649 * cppinit.c (cpp_start_read): Initialize last_id instead of
4652 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
4654 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
4655 (c-semantics.o): New target.
4657 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
4658 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
4659 (genrtl_clear_out_block): Likewise.
4660 (genrtl_goto_stmt): Likewise.
4661 (genrtl_expr_stmt): Likewise.
4662 (genrtl_decl_stmt): Likewise.
4663 (genrtl_if_stmt): Likewise.
4664 (genrtl_while_stmt): Likewise.
4665 (genrtl_do_stmt): Likewise.
4666 (genrtl_return_stmt): Likewise.
4667 (genrtl_for_stmt): Likewise.
4668 (genrtl_break_stmt): Likewise.
4669 (genrtl_continue_stmt): Likewise.
4670 (genrtl_scope_stmt): Likewise.
4671 (genrtl_switch_stmt): Likewise.
4672 (genrtl_case_label): Likewise.
4673 (genrtl_begin_compound_stmt): Likewise.
4674 (gerntl_finish_compound_stmt): Likewise.
4675 (genrtl_compound_stmt): Likewise.
4676 (genrtl_asm_stmt): Likewise.
4677 (genrtl_decl_cleanup): Likewise.
4678 (DECL_ANON_UNION_ELEMS): Likewise.
4679 (emit_local_var): Likewise.
4680 (make_rtl_for_local_static): Likewise.
4681 (expand_cond): Likewise.
4682 (expand_stmt): Likewise.
4683 (c_expand_return): Likewise.
4684 (c_expand_start_case): Likewise.
4685 (do_case): Likewise.
4686 (COMPOUND_STMT_NO_SCOPE): Likewise.
4687 (c_expand_asm_operands): Likewise.
4688 (NEW_FOR_SCOPE_P): New macro.
4689 (expand_expr_stmt_fn): New type.
4691 (set_current_function_name_declared): Likewise.
4692 (current_function_name_declared): Likewise.
4693 (lang_expand_stmt): Likewise.
4694 (stmts_are_full_exprs_p): Likewise.
4695 (anon_aggr_type_p): Likewise.
4696 (lang_expand_expr_stmt): Likewise.
4697 (build_case_label): Likewise.
4699 * c-decl.c (lang_expand_expr_stmt): Initialize.
4700 (stmts_are_full_exprs_p): Define.
4701 (current_function_name_declared): Likewise.
4702 (do_case): Likewise.
4703 (lang_expand_stmt): Likewise.
4704 (set_current_function_name_declared): Likewise.
4705 (anon_aggr_type_p): Likewise.
4707 * c-semantics.c: New file.
4708 (expand_cond): Moved from cp/semantics.c.
4709 (genrtl_do_pushlevel): Likewise.
4710 (genrtl_clear_out_block): Likewise.
4711 (genrtl_goto_stmt): Likewise.
4712 (genrtl_expr_stmt): Likewise.
4713 (genrtl_decl_stmt): Likewise.
4714 (genrtl_if_stmt): Likewise.
4715 (genrtl_while_stmt): Likewise.
4716 (genrtl_do_stmt): Likewise.
4717 (genrtl_return_stmt): Likewise.
4718 (genrtl_for_stmt): Likewise.
4719 (genrtl_break_stmt): Likewise.
4720 (genrtl_continue_stmt): Likewise.
4721 (genrtl_scope_stmt): Likewise.
4722 (genrtl_switch_stmt): Likewise.
4723 (genrtl_case_label): Likewise.
4724 (genrtl_begin_compound_stmt): Likewise.
4725 (genrtl_finish_compound_stmt): Likewise.
4726 (genrtl_compound_stmt): Likewise.
4727 (genrtl_asm_stmt): Likewise.
4728 (genrtl_decl_cleanup): Likewise.
4729 (make_rtl_for_local_static): Moved from cp/decl.c.
4730 (emit_local_var): Likewise.
4731 (expand_stmt): Define.
4733 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
4734 (c_expand_return): Likewise.
4735 (c_expand_start_case): Likewise.
4737 2000-07-01 Richard Henderson <rth@cygnus.com>
4739 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
4740 with the low 13 bits set.
4741 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
4742 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
4743 of the low 13 bits into a CONST plus an adddi3.
4744 (load_symptr): Set RTX_UNCHANGING_P.
4746 See ChangeLog.3 for earlier changes.