1 2000-10-31 Neil Booth <neilb@earthling.net>
3 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
4 undefined. Remove #ifdef check.
5 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
6 Define STDC_0_IN_SYSTEM_HEADERS to 1.
8 2000-10-31 Jan Hubicka <jh@suse.cz>
9 Jakub Jelinek <jakub@redhat.com>
11 * config/i386/i386.h: Clarify CCNOmode description in comment.
12 (EXTRA_CC_MODES): Remove CCRCmode.
13 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
14 (put_condition_code, ix86_match_ccmode): Likewise.
15 (ix86_cc_mode): Likewise. Fix comment.
16 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
17 * config/i386/i386.md: Add unspec 12 description.
18 (adddi3 split): Use unspec 12 instead of CCRCmode.
19 (addsi3_carry_rc): Remove.
20 (addsi3_cc, addqi3_cc): New patterns.
21 (addsi_3): Swap operands, match CCZmode.
23 (addsi_5): Renamed from addsi_6.
25 (addhi_3): Swap operands, match CCZmode.
27 (addhi_5): Renamed from addhi_6.
29 (addqi_3): Swap operands, match CCZmode.
31 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
32 (subsi3_carry_rc): Removed.
33 (iorqi_3): Use =q constraint for clobber.
34 (xorqi_cc_2): Likewise.
35 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
36 (x86_movsicc_0_m1_rc): Removed.
37 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
39 2000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
41 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
42 and decrement of complex types.
44 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
46 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
47 builtin fputs, ensure we still evaluate the stream in case it
50 2000-10-31 Jakub Jelinek <jakub@redhat.com>
52 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
55 Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
57 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
58 (fp_extended_operand, emit_fpscr_use): Likewise.
59 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
60 (fpul_operand): New function.
61 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
62 fp_extended_operand. Add fpul_operand.
63 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
64 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
65 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
66 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
67 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
69 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
70 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
71 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
72 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
73 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
75 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
77 * config/i386/i386.c (ix86_init_builtins): Correct return type
78 building v4hi_ftype_v4hi_int_int tree node.
79 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
80 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
82 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
84 (mmx__uavgv8qi3): Correct insn mnemonic.
85 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
86 (mmx_punpckhwd): Correct insn mnemonic.
87 (mmx_punpckhdq): Likewise.
88 (mmx_punpcklwd): Likewise.
89 (mmx_punpckldq): Likewise.
90 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
91 Renumber case labels to match the _mm_prefetch constants defined in
94 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
95 if the splitter didn't emit new insns.
96 Make sure we call cleanup_subreg_operands even when splitting the last
97 insn in a basic block.
99 * invoke.texi (Debugging Options): Describe -do.
100 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
101 (dump_file): Likewise.
102 (rest_of_compilation): Split .greg dump into .greg and .postreload.
104 2000-10-30 Neil Booth <neilb@earthling.net>
106 * cppfiles.c (stack_include_file): Check for stacked contexts
108 * cpphash.h (_cpp_do__Pragma): New prototype.
109 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
111 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
112 escaped newlines if !(buffer->from_stage3).
113 (_cpp_lex_token): Warn about missing newlines iff
114 !buffer->from_stage3.
116 * cpplib.c (get__Pragma_string, destringize,
117 _cpp_do__Pragma): New functions.
118 (run_directive): Set output_line for _Pragma to avoid line
119 markers in output. Set from_stage3 and prevent macro expansion
120 for _Pragma and command-line options. Check buffer exhaustion.
121 (cpp_push_buffer): Don't check for stacked macro contexts, as
122 this is perfectly legitimate for _Pragma. Move the check to
123 stack_include_file instead. Set from_stage3 iff buffer is
126 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
127 unsigned. New boolean from_stage3.
128 (struct spec_nodes): Add n__Pragma.
130 * cppmacro.c (enter_macro_context): Flip sense of return value.
131 (_cpp_get_token): Handle _Pragma operator.
133 2000-10-30 Phil Edwards <pme@sources.redhat.com>
135 * gcc.texi: The C++ standard isn't "draft" anymore.
137 2000-10-30 Mark Mitchell <mark@codesourcery.com>
139 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
141 2000-10-29 Neil Booth <neilb@earthling.net>
143 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
145 2000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
147 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
148 fixinc/inclhack.def: Change comments mentioning C9X to refer to
151 * invoke.texi: Document that -V will only work for very similar
152 versions of driver and compiler.
154 2000-10-29 Neil Booth <neilb@earthling.net>
156 * cppmacro.c (_cpp_create_definition): Optimize the case of
157 a macro defined to itself.
159 2000-10-29 Neil Booth <neilb@earthling.net>
161 * cpplex.c (save_comment): Don't store new lines in C++ comments.
163 2000-10-29 Michael Hayes <mhayes@redhat.com>
165 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
167 2000-10-28 Geoffrey Keating <geoffk@cygnus.com>
169 * cpphash.c (cpp_forall_identifiers): Add context variable
170 for callback routine.
171 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
173 (main): Call cpp_forall_identifiers with null context.
174 * cpplib.h (cpp_forall_identifiers): Update prototype.
176 * cppmain.c: Make `parse_in' and `print' static.
178 2000-10-28 Alan Modra <alan@linuxcare.com.au>
180 * c-decl.c (finish_function): Clear c_function_name_declared_p.
182 2000-10-28 Richard Henderson <rth@redhat.com>
184 * regrename.c (scan_rtx_address): Frob action, not class,
185 when trying to disable optimization.
187 2000-10-28 Mark Mitchell <mark@codesourcery.com>
189 * c-semantics.c (make_rtl_for_local_static): Don't clobber
192 2000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
194 * configure.in: Determine and substitute gcc_version_full.
195 * configure: Regenerate.
196 * gccbug.in: Use it to give full version. Don't allow
199 2000-10-28 Richard Henderson <rth@redhat.com>
201 * recog.c (split_all_insns): Run cleanup_subreg_operands
204 * regrename.c (regrename_optimize): Verify that all registers of
205 a multiple register mode are available.
206 (scan_rtx_address): Accept the mode of the address; all callers
209 * cpplib.c (run_directive): Fix prototype.
211 2000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
213 * reload.c (find_reloads): Distinguish "wins" so that we know whether
214 a given operand won because of a matching constraint or not; then use
215 that information to compute goal_alternative_matched properly.
216 * reload1.c (choose_reload_regs): Never set reload_override_in for an
219 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
220 accurate value for MULT.
221 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
222 2% or > 98% before using static branch prediction bits.
224 2000-10-28 Neil Booth <neilb@earthling.net>
228 * cpplib.c (struct answer): New.
229 (struct if_stack): Use cpp_lexer_pos rather than line and col.
230 Rename cmacro mi_cmacro.
231 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
232 IN_I): New directive and flags.
233 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
234 parse_answer, parse_assertion, find_answer): New functions.
235 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
236 (lex_macro_node): New function to replace parse_ifdef and
239 (_cpp_handle_directive): New function, combines _cpp_check_directive
240 and _cpp_check_linemarker.
242 (do_define, do_undef, parse_include, do_include, do_import,
243 do_include_next, read_line_number, do_line, do_ident, do_pragma,
244 do_pragma_once, do_pragma_poison, do_pragma_dependency):
245 Update for new token getting interface.
247 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
248 : Update for new multiple-include optimisation technique.
249 (do_elif): Don't forget to invalidate controlling macros.
251 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
252 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
253 Functions to handle assertions with the new token interface.
254 (do_assert, do_unassert): Use them.
256 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
259 (_cpp_init_stacks): Register directive names. Don't register special
262 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
263 new position recording regime.
264 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
265 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
266 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
267 (cpp_type2name): Move to cpplex.c.
269 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
270 (parse_defined): Update to handle new multiple include optimisation
271 method. Remove poisoned identifier warning.
272 (parse_assertion, TYPE_NAME): Delete.
273 (lex): Update for multiple include optimisation, removal of
274 CPP_DEFINED, to use _cpp_test_assertion for assertions and
276 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
277 (op_as_text): New function, to wrap cpp_token_as_text.
279 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
280 Update for MI optimisation.
281 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
282 segfault on diagnostic.
283 (_cpp_compare_file_date): Take a token rather than 3 args.
284 (cpp_read_file): Work correctly for zero-length files.
286 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
287 _cpp_init_hashtable and _cpp_cleanup_hashtable.
288 (cpp_lookup): Place identifiers at front of identifier pool
289 for _cpp_lookup_with_hash.
290 (_cpp_lookup_with_hash): Require identifiers to be at the front of
291 the identifier pool. Commit the memory if not already in the
294 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
295 Initialise various members of cpp_reader, memory pools, and the
297 (cpp_printer_init): Delete.
298 (cpp_cleanup): Update.
299 (struct builtin, builtin_array, initialize_builtins): Update for new
300 hashnode definition and builtin handling.
301 (cpp_start_read, cpp_finish): Don't take or initialise a
304 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
305 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
306 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
307 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
308 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
309 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
310 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
311 struct toklist, struct cpp_context, struct specnodes,
312 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
313 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
314 enum builtin_type, cpp_can_paste): New.
315 (struct cpp_token): Delete line and col members.
316 (struct cpp_buffer): New member output_lineno.
317 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
318 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
319 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
320 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
321 base_context, context, directive, mi_state, mi_if_not_defined,
322 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
323 mlstring_pos, macro_buffer, macro_buffer_len.
324 Delete members mls_line, mls_column, token_list, potential_control_macro,
325 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
326 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
327 save_parameter_spellings, need_newline, .
328 Change type of date, time and spec_nodes members.
329 Change prototypes for include and ident callbacks.
330 (struct cpp_hashnode): Change type of name. Remove union members
331 expansion and code. Add members macro, operator and builtin.
333 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
334 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
335 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
336 cpp_stop_lookahead): New prototypes.
337 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
339 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
342 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
343 ufputs): Move to cpplib.h.
344 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
345 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
346 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
347 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
348 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
349 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
350 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
351 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
352 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
353 _cpp_parse_assertion, _cpp_find_answer): Delete.
354 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
355 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
356 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
357 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
358 _cpp_handle_directive, DSC): New.
359 (struct include_file): New member defined.
361 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
362 _cpp_compare_file_date): Update.
363 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
364 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
365 _cpp_cleanup_hashtable.
367 * Makefile.in: Remove cppoutput.c.
369 * cppoutput.c: Delete
371 * fixheader.c (read_scan_file): Update for new cpp_get_token
373 (recognized_function): New argument LINE.
375 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
376 new cpp_get_token prototype.
378 * scan.h (recognized_function): Update prototype.
380 * po/POTFILES.in: Remove cppoutput.c.
382 2000-10-27 Mark Mitchell <mark@codesourcery.com>
384 * c-typeck.c (check_init_type_bitfields): Remove.
385 (constructor_incremental): Likewise.
386 (struct constructor_stack): Remove incremental bit.
387 (struct initializer_stack): Likewise.
388 (start_init): Don't play with constructor_incremental.
389 (finish_init): Likewise.
390 (really_start_incremental_init): Likewise.
391 (push_init_level): Likewise.
392 (pop_init_level): Likewise.
393 (output_init_level): Likewise.
394 (output_pending_init_elements): Likewise.
396 2000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
398 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
399 Improve error messages. Correct parsing of
400 #pragma pack(pop [,id]). Do not check the user-supplied
401 alignment if we're popping.
403 * gcc.dg/pack-test-1.c: New test case.
404 * gcc.dg/pack-test-2.c: New test case.
405 * gcc.dg/pack-test-1.h: New file.
407 2000-10-27 Neil Booth <neilb@earthling.net>
411 2000-10-27 Kelley Cook <kelley.cook@home.com>
413 * invoke.texi: Document -mintel-syntax
415 2000-10-27 Richard Henderson <rth@redhat.com>
417 * invoke.texi: Document -frename-registers. Add it to -O3.
418 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
419 (enum dump_file_index, dump_file): Update order.
420 (main): Set flag_rename_registers at -O3.
422 2000-10-27 Richard Henderson <rth@redhat.com>
424 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
425 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
426 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
427 * config/alpha/alpha.md (call_osf_1): Use it.
428 (call_value_osf_1): Likewise.
430 * config/ia64/ia64.c: Revert 10-23 patch.
431 (ia64_hard_regno_rename_ok): New.
432 * config/ia64/ia64-protos.h: Declare it.
433 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
435 2000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
436 Richard Henderson <rth@redhat.com>
438 * regrename.c: Rewrite to handle multi-register modes and
439 cond_exec instructions.
440 * Makefile.in (regrename.o): Update dependancies.
441 * recog.h (struct operand_alternative): Add is_address.
442 * recog.c (preprocess_constraints) [case 'p']: Set it.
444 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
446 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
447 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
448 top level. Kill oldstyle_subdirs. Do not include
449 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
450 $outputs. Do not run configure.lang from config.status.
451 Rearrange warning-flag logic to correspond to what the
452 makefile wants. Put special vax stage1 options in
453 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
454 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
455 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
456 switch is given, nothing otherwise.
457 * configure.lang: Delete.
459 * Makefile.in: Expunge all traces of extra_c_objs,
460 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
461 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
462 warning options via a three level scheme so that -pedantic and
463 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
464 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
465 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
466 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
467 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
468 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
469 generation rules. Wrap all rules that change the current
470 directory in parentheses; pmake doesn't spawn a new shell for
471 each command. Expunge all references to $(P). When one
472 command depends on another and they're run all at once, use &&
473 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
474 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
477 * objc/Make-lang.in: Wrap all rules that change the current
478 directory in parentheses. Expunge all references to $(P).
479 When one command depends on another and they're run all at
480 once, use && to separate them, not ;. Add OUTPUT_OPTION to
481 all object-file generation rules. Delete obsolete variables.
482 * objc/Makefile.in: Delete.
484 2000-10-27 Jakub Jelinek <jakub@redhat.com>
486 * calls.c (expand_call): If sibcall_failure is set during pass 1,
487 clear tail_call_insns as well.
489 2000-10-27 Nick Clifton <nickc@redhat.com>
491 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
494 2000-10-26 Richard Henderson <rth@redhat.com>
496 * calls.c (expand_call): Supress sibcall if we have a
497 BLKmode return in registers.
499 2000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
501 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
504 2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
506 * tree.c (make_node, case 't'): Set alignment to that of
508 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
510 2000-10-25 Mark Mitchell <mark@codesourcery.com>
512 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
513 * configure.in (enable-libstdcxx-v3): Arrange to have
514 HAVE_LIBSTDCXX_V3 substituted into the output files.
516 2000-10-25 Richard Henderson <rth@redhat.com>
518 * recog.c (constrain_operands): Initialize which_alternative
519 before no alternatives early exit.
521 * cse.c (find_comparison_args): Check that we can reverse a
522 comparison if needed before accepting the substitution.
524 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
526 * simplify-rtx.c (simplify_relational_operation): Sign extend
527 low words before sign extending to high words.
529 2000-10-25 Nick Clifton <nickc@redhat.com>
531 * config/mcore/mcore.c: Include config.h before system.h.
533 2000-10-25 Ray Essick <essick@ddna.labs.mot.com>
535 * config/mcore/mcore.md (return): Force function epilogue to
536 always be generated to work around epilogue suppression bug in
539 2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
541 * c-decl.c (grokdeclarator): Move warning for qualified void
542 return types with -pedantic to when the function type is
543 constructed. At -W, warn in general for qualified function return
544 types, except for volatile void.
545 * invoke.texi: Document this new warning at -W.
547 2000-10-25 Neil Booth <neilb@earthling.net>
549 * cpp.texi: Update with implementation-defined behavior and
552 2000-10-25 Jakub Jelinek <jakub@redhat.com>
554 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
555 incomplete type force it into alias set 0.
557 Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
559 * alias.c: Include basic-block.h.
560 (loop_p): New function.
561 (mark_constant_function): Use it.
562 * Makefile.in (alias.o): Update dependencies.
564 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
566 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
569 2000-10-24 Jim Wilson <wilson@cygnus.com>
571 * expmed.c (store_bit_field): Move integer pun code down after
572 code that calls emit_move_insn for entire register move.
573 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
574 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
576 2000-10-24 Richard Henderson <rth@cygnus.com>
578 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
579 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
581 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
583 * gcse.c (cprop_insn): do not propagate constants into jump_insn
584 for machines with CC0 more than once.
586 2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
588 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
589 pseudos just like memory.
591 2000-10-24 Alexandre Oliva <aoliva@redhat.com>
593 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
594 when deleting libcall sequence collapsed to a single instruction.
596 2000-10-24 Andrew Haley <aph@cygnus.co.uk>
598 * expr.c (do_store_flag): Don't crash if either side of a
599 comparison is error_mark_node.
601 2000-10-24 Jakub Jelinek <jakub@redhat.com>
603 * sibcall.c (purge_mem_unchanging_flag): New function.
604 (optimize_sibling_and_tail_recursive_calls): Call it.
606 2000-10-24 Philipp Thomas <pthomas@suse.de>
608 * Makefile.in (check-po): New target for doing checks in the po
609 subdir if all languages configured.
610 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
611 configure if NLS is enabled.
612 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
613 otherwise leave empty.
614 * configure: Regenerate.
616 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
618 * i386.c (print_operand): Handle new 'A' formatting code.
619 387 opcodes need suffixes even with -mintel-syntax.
620 Check for explicit size override (codes 'b', 'w' and 'k').
621 (print_operand_address): Check if register prefix is needed when
622 emitting `ds' segment override.
623 * i386.h: Add comment about new 'A' formatting code.
624 * i386.md (jump and call patterns): Emit absolute references using %A.
626 2000-10-23 Richard Henderson <rth@cygnus.com>
628 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
629 output registers as fixed.
630 (ia64_function_epilogue): Undo output fixation.
632 2000-10-23 Richard Henderson <rth@cygnus.com>
634 * config/alpha/alpha.md: Add names for all unnamed insns; use
635 define_insn_and_split in some obvious places.
637 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
638 (zero_extendqisi2, zero_extendqidi2): Likewise.
639 (zero_extendhisi2, zero_extendhidi2): Likewise.
640 (abs splitters): Fix match_scratch operand number.
641 (bcc_reverse): Swap pc & label instead of non-canonical compare.
643 2000-10-23 Jim Wilson <wilson@cygnus.com>
645 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
647 * ia64.md (cmpsi_adjusted): Use %r3.
648 (cmpdi_adjusted): Likewise.
650 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
652 * config/i386/att.h (ASM_FILE_START): Define.
654 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
656 * config/i386/linux.h (ASM_FILE_START): Define.
658 Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
660 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
661 since this (only) drags in a crt0.o reference that the .ld files
664 2000-10-23 Geoff Keating <geoffk@cygnus.com>
666 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
667 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
668 reloads just like an RELOAD_FOR_OUTPUT would.
670 * local-alloc.c (update_equiv_regs): Add an abort(). When
671 deleting or moving insns, update reg_equiv[regno].init_insns.
673 2000-10-23 Mark Mitchell <mark@codesourcery.com>
675 * c-tree.texi: Improve documentation for IF_STMTs and related
676 conditional statements.
678 2000-10-22 Mark Mitchell <mark@codesourcery.com>
680 * expr.c (do_preexpand_calls): Remove.
681 (same_from_p): Don't use CALL_EXPR_RTL.
682 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
683 (preexpand_calls): Remove.
684 * tree.c (first_rtl_op): Remove CALL_EXPR case.
685 (unsave_expr_1): Likewise.
686 * tree.def (CALL_EXPR): Give it only two slots.
687 * tree.h (CALL_EXPR_RTL): Remove.
689 2000-10-21 Chandrakala Chavva <cchavva@redhat.com>
691 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
692 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
695 2000-10-22 Alexandre Oliva <aoliva@redhat.com>
697 * calls.c (combine_pending_stack_adjustment_and_call): Don't
698 adjust stack when unadjusted_alignment ends up as zero.
700 2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
702 * fixinc/genfixes: Remove EGCS reference.
703 * install.texi: Remove EGCS reference.
704 * INSTALL: Regenerate.
706 2000-10-22 Mark Mitchell <mark@codesourcery.com>
708 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
710 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
712 * diagnostic.c: Remove EGCS reference in comment.
714 Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
716 * loop.c (strength_reduce): Fix error in last change.
718 2000-10-20 David Edelsohn <edelsohn@gnu.org>
720 * Makefile.in (SHLIB_NM_FLAGS): New.
721 (libgcc.mk): Pass it.
722 * mklibgcc.in (libgcc.map): Use it.
724 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
725 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
727 2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
729 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
731 * sparc.c (load_pic_register): Delete unused varaible.
733 * libgcc2.c (__addvsi3): Delete unused variable.
735 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
736 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
737 __negvdi2): Prototype.
739 * ssa.c (apply_delayed_renames): Avoid undefined operation.
741 * toplev.c (display_target_options): Make static to match
742 prototype. Delete empty declaration.
744 2000-10-20 Tom Tromey <tromey@cygnus.com>
746 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
747 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
749 Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
751 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
753 (expand_expr_unaligned, case ARRAY_REF): Check that index is
754 a constant before comparing it; use tree_low_cst.
755 * tree.c (save_expr): Set TREE_READONLY.
756 (substitute_expr): Return inside of NON_LVALUE_EXPR.
757 (build, build1): Set TREE_READONLY if all operands are.
758 (build_index_type): If upper bound is a negative number, lower
759 bound is zero and sizetype is unsigned, use upper bound of one and
762 2000-10-20 David Edelsohn <edelsohn@gnu.org>
764 * gcc.c (process_command, main): Use "because" instead of
765 "since" in error messages.
767 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
769 * stor-layout.c (compute_record_mode): Use tree_low_cst.
770 Don't use mode of field for record unless sizes are the same.
771 (layout_type, case ARRAY_TYPE): Remove special bounds handling
772 previously added for Ada; also change to using host_integerp
775 * loop.c (strength_reduce): Show when new register made for
776 giv is known to be a pointer and its aligment if so and known.
777 (loop_dump_aux): Show VERBOSE parameter unused.
779 * gcse.c (set_hash_table_size): Now unsigned.
780 * sdbout.c (template_name_p): Add "const" to avoid warnings.
781 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
782 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
783 (sdbout_end_epilogue): Remove variable NAME.
784 * system.h (getopt): Add default definition.
785 * config/alpha/alpha.c (print_operand): Don't continue processing
787 (summarize_insn): Avoid use of UL in constant.
789 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
791 * fold-const.c (force_fit_type): Unsigned values can overflow
792 if they are sizetype.
793 (int_const_binop): Don't use cache if overflows.
795 2000-10-20 Richard Henderson <rth@cygnus.com>
797 * function.c (locate_and_pad_parm): Zero alignment_pad.
799 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
800 perform substitutions, and apply_change_group to see if it worked.
802 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
804 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
806 * combine.c (struct undo): Change int to unsigned int.
807 (do_SUBST_INT): Args are unsigned int.
808 (make_extraction, force_to_mode): Use proper type when forming mask.
809 (make_field_assignment): Likewise.
811 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
813 * c-common.c (check_format_info_recurse): Extract string constant
814 initializers from non-volatile constant arrays and check them as
816 * c-typeck.c (decl_constant_value): Don't check pedantic or check
817 for DECL_MODE (decl) != BLKmode.
818 (decl_constant_value_for_broken_optimization): New function which
819 includes these checks.
820 (default_conversion, convert_for_assignment, digest_init): Use
821 decl_constant_value_for_broken_optimization instead of
824 2000-10-20 Mark Mitchell <mark@codesourcery.com>
826 * tree.h (DECL_ALIGN_UNIT): New macro.
828 2000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
830 * config/avr/avr-protos.h (avr_output_bld): New.
831 (out_shift_with_cnt): Add t_len argument.
832 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
833 (output_movqi, output_movhi, output_movsisf): Optimize loading
834 any constant with exactly one bit set to NO_LD_REGS.
835 (out_shift_with_cnt): Optimize output code for size or speed,
836 depending on optimize_size. Handle small shift counts as well
837 (if not hand-optimized in ?sh??i3_out). Shifts can be done
838 with or without a scratch register, with help of __tmp_reg__
839 or __zero_reg__ if necessary. Add T_LEN argument to pass the
840 length of TEMPLATE in words, return total insn length in *LEN.
841 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
842 out_shift_with_cnt to work with the above change.
843 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
844 lshrsi3_out): Likewise. Optimize more known shift count cases.
845 Remove cases already well optimized in out_shift_with_cnt.
846 (avr_output_bld): New function.
847 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
848 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
849 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
850 Add reload_completed to insn condition - only for peepholes.
851 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
852 in a register or memory.
853 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
854 Do not require a scratch register.
855 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
856 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
857 Optimize shifts by known count using a scratch register, but only
858 if one is still available after register allocation.
860 2000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
862 * t-vax: New file. Don't build modules from libgcc1.c.
864 Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
866 * alias.c: (mark_constant_function): Don't check pure functions.
867 Initialize and end alias analysis.
868 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
869 Don't make a special exception for recursion. Handle
870 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
871 unless it's volatile.
873 * local-alloc.c (equivalence): New structure.
875 (contains_replace_regs): Remove array and use
877 (memref_referenced_p): Likewise.
878 (no_equiv): Likewise.
879 (update_equiv_regs): Likewise.
881 (equiv_init_varies_p,
882 equiv_init_movable_p): New functions.
883 (update_equiv_regs): Use them. Use rtx_varies_p
884 instead of function_invariant_p. Process insns
885 from end to beginning. Allow a REG_EQUIV insn
886 within the same loop as a use to be moved, also
887 allow it to be moved out of a loop. Update
888 REG_DEAD notes when substituting into an insn.
890 2000-10-19 Jim Wilson <wilson@cygnus.com>
892 * c-decl.c (start_decl): Check for error_mark_node type before using
894 (finish_decl): Likewise. Don't give an error if decl type is
895 already error_mark_node.
897 * haifa-sched.c (compute_trg_info): Add explanatory comments.
898 New local update_blocks. Use update_blocks to remove duplicates
899 when computing update blocks. Check for bblst_table overflow.
900 (schedule_block): Add explanatory comment. Reduce bblst_size by
902 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
905 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
907 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
909 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
911 * expmed.c: Minor corrections in comments.
912 * invoke.texi: Added desciption for the new option -ftrapv.
914 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
916 * libgcc2.c: Added the missing #endif.
918 Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
920 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
922 2000-10-18 Chandrakala Chavva <cchavva@redhat.com>
924 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
925 Use smulv_optab for -ftrapv.
926 (expand_mult_highpart): Use unsigned multiply.
927 (expand_divmod): Special-case division by -1.
928 For EXACT_DIV_EXPR, do right shift first, then the multiply.
929 For complex divide, use abs with unsigned result.
930 * expr.c (force_operand): Use unsigned multiply.
931 (expand_expr): Use overflow-trapping optabs for signed types if
933 If flag_trapv, don't generate a recursive call with EXPAND_SUM
934 if the type is signed and the original call wasn't EXPAND_SUM or
936 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
937 (negv_optab, absv_optab): Declare.
938 * flags.h (flag_trapv): Declare.
939 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
940 smulv_optab, sdivv_optab, negv_optab and absv_optab.
941 (gen_insn): Interpret '$P' as requiring an integer mode,
942 including partial integer modes.
943 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
944 (product_cheap_p): Use unsigned expand_mult.
945 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
946 (negv_optab, absv_optab): Define.
947 (expand_binop): Use overflow-trapping optabs for signed types if
949 Handle negv_optab libe neg_optab.
950 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
951 Use overflow-trapping optabs for signed result if flag_trapv.
952 (expand_complex_abs): Use overflow-trapping optabs for signed types if
954 Don't open-code complex absolute-value operation for flag_trapv.
955 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
956 sdivv_optab, negv_optab and absv_optab.
957 * toplev.c (flag_trapv): Define.
958 (lang_independent_options f_options): Include flag_trapv.
959 * tree.h (TYPE_TRAP_SIGNED): Define.
960 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
961 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
963 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
964 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
966 2000-10-18 Geoffrey Keating <geoffk@cygnus.com>
967 David V. Henkel-Wallace <gumby@cygnus.com>
969 * config/i386/t-netware: Bring in from the Red Hat tree.
970 * config/i386/netware.h: Likewise.
971 * config/netware.h: Likewise.
972 * config/rs6000/netware.h: Delete.
973 * configure.in: Add i[34567]86-*-netware.
974 * configure: Hand-edit to match configure.in change.
976 2000-10-18 Mark Mitchell <mark@codesourcery.com>
978 * c-common.h (flag_no_builtin): Declare.
979 (flag_no_nonansi_builtin): Likewise.
980 (c_common_nodes_and_builtins): Change prototype.
981 * c-common.c (flag_no_builtin): New variable.
982 (flag_no_nonansi_builtin): Likewise.
983 (c_common_nodes_and_builtins): Remove parameters. Adjust
985 * c-decl.c (flag_no_builtin): Remove.
986 (flag_no_nonansi_builtin): Likewise.
987 (init_decl_processing): Adjust call to
988 c_common_nodes_and_builtins.
990 2000-10-18 Marc Espie <espie@openbsd.org>
992 * tm.texi (LIBGCC_SPEC): Synch with reality.
994 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
996 * c-common.c (check_format_types): Check for writing through a
997 NULL pointer argument.
999 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1001 * tm.texi (Exception Region Output): Document
1002 DWARF_CIE_DATA_ALIGNMENT.
1003 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
1005 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
1006 DWARF_CIE_DATA_ALIGNMENT.
1008 2000-10-18 Michael Hayes <mhayes@cygnus.com>
1010 * basic-block.h (struct loop): Delete fields pre_header_root
1011 and pre_header_trace and replace with pre_header_edges
1012 and num_pre_header_edges.
1013 * flow.c (flow_loop_dump): Dump pre_header_edges.
1014 (flow_loops_free): Free pre_header_edges.
1015 (flow_loop_pre_header_scan): Calculate pre_header_edges.
1017 2000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1019 * contrib.texi: Update references to steering committee members
1020 and Jeff Law's entry.
1022 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
1024 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
1025 (maybe_read_dollar_number, check_format_info_main): Use them for
1026 pedantic warning messages.
1028 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
1030 * c-common.c (check_format_info_main): Minor cleanup: move
1031 variables into inner scopes; initialize declarations where
1032 appropriate; don't hardcode "scanf" name on warning for zero
1035 2000-10-17 Mark Mitchell <mark@codesourcery.com>
1037 * c-common.c (back_end_hook): New variable.
1038 * c-common.h (back_end_hook): Declare it.
1039 * c-lang.c (finish_file): Use it.
1041 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
1044 2000-10-18 Jan Hubicka <jh@suse.cz>
1046 * i386.c (ix86_comparison_operator, put_condition_code,
1047 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
1048 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
1049 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
1050 * i386.md (adddi and negdi splitter): Use CCRCmode.
1051 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
1052 (subsi3_carry): add '*'
1053 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
1054 (cmp to add peep2): Use CCRCmode; swap operands.
1056 2000-10-18 Kazu Hirata <kazu@hxi.com>
1058 * h8300.c: Fix a comment typo.
1059 (round_frame_size): New.
1060 (compute_saved_regs): Likewise.
1063 (push_order): Remove.
1064 (pop_order): Likewise.
1065 (function_prologue): Rearrange code for readability.
1066 (function_epilogue): Likewise.
1068 * config/h8300/h8300.md: Remove an unnecessary sign_extend
1069 expander that is used when not optimizing. Output a tab after
1070 each assembly insns.
1072 * reorg.c: Fix formatting.
1074 2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
1076 * reload1.c (move2add_note_store): Check for simple
1077 auto-inc in destination.
1079 2000-10-17 Michael Chastain <chastain@redhat.com>
1081 * config/i386/i386-aout.h: define INT_ASM_OP.
1083 Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
1085 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
1087 Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
1089 * i370.md: Fix spelling typo.
1091 2000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1093 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
1094 Fixes execute/20001017-1.c on powerpc-linux-gnu.
1096 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
1097 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
1100 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
1101 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
1103 * rs6000/aix.h: ...to here.
1104 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
1106 2000-10-17 Jakub Jelinek <jakub@redhat.com>
1108 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
1110 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
1111 sure linker can relax even the delay slot mov %g1,%o7, fix output
1114 2000-10-17 Kazu Hirata <kazu@hxi.com>
1116 * config/h8300/h8300.md: Remove an unnecessary zero_extend
1117 expander that is used when not optimizing. Output a tab after
1118 each assembly insns.
1120 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1122 * gcc.c: New options --target-help.
1123 (process_command): Added code to parse this new option.
1124 * toplev.c (display_target_options): New function to support the
1126 * cppinit.c (new_pending_directive) : New option OPT_target__help.
1127 (cpp_handle_option): Support this new option.
1128 * invoke.texi: Added notes about --target-help option.
1130 2000-10-17 Graham Stott <grahams@redhat.com>
1132 * config/i386/i386.md (testqi_1): Add missing operand prefix
1134 * config/i386/i386-protos.h: Add missing prototype.
1136 2000-10-17 Diego Novillo <dnovillo@cygnus.com>
1138 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
1139 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
1140 using -mintel-syntax.
1142 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
1144 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
1145 (format_types): Use it for printf.
1146 (maybe_read_dollar_number): Add parameter for the kind of format
1147 involved. Warn for multiple use for arguments if this is
1148 inappropriate for the kind of format involved.
1149 (check_format_info_main): Update calls to maybe_read_dollar_number.
1151 2000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1153 * inclhack.def (hpux_maxint): Also apply fix to values.h.
1154 * fixincl.x: Rebuilt.
1156 2000-10-17 Alexandre Oliva <aoliva@redhat.com>
1158 * genrecog.c (write_switch): Return the first condition that needs a
1161 2000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
1163 * c-tree.h (warn_sequence_point): Move declaration to...
1164 * c-common.h (warn_sequence_point): ... here.
1165 * c-decl.c (warn_sequence_point): Move definition to...
1166 * c-common.c (warn_sequence_point): ... here.
1167 (struct reverse_tree): New.
1168 (reverse_list, reverse_max_depth): New static variables.
1169 (build_reverse_tree, common_ancestor, modify_ok
1170 verify_sequence_points): New functions.
1171 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
1172 * c-typeck.c (check_modify_expr): Delete.
1173 (build_modify_expr): Don't call it.
1175 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
1177 * c-common.h (warn_missing_format_attribute): New variable.
1178 * c-decl.c (warn_missing_format_attribute): New variable.
1179 (c_decode_option): Decode -Wmissing-format-attribute and
1180 -Wno-missing-format-attribute.
1181 * c-common.c (check_function_format): If
1182 -Wmissing-format-attribute, give a warning where a vprintf or
1183 vscanf function is called by a function without its own printf or
1185 * toplev.c (documented_lang_options): Add
1186 -Wmissing-format-attribute.
1187 * invoke.texi: Document -Wmissing-format-attribute.
1189 2000-10-17 Marc Espie <espie@openbsd.org>
1191 * invoke.texi (-shared): Insist on requiring code generation flags
1192 to be used along with -shared, and document the subtle failure that
1193 may occur otherwise.
1195 2000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1197 * pa.md (return_internal): Move `use' after `return'.
1199 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1201 * machmode.def: Correct comment.
1203 2000-10-16 Rodney Brown <RodneyBrown@mynd.com>
1205 * print-rtl.c (print_rtx_head): Constify.
1206 * rtl.h (print_rtx_head): Similarly.
1208 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
1209 Constify char * return value.
1211 (output_64bit_and, output_64bit_ior): Constify char * return value.
1212 (pa_can_combine_p): Make static.
1213 (function_arg): Decorate unused `named' argument. Fix comment typo.
1214 (function_arg_partial_nregs): Decorate unused `named' argument.
1216 2000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
1218 * c-common.c (format_check_results): New structure.
1219 (finish_dollar_format_checking): Adjust to take a
1220 format_check_results * parameter.
1221 (check_format_info, check_format_info_recurse,
1222 check_format_info_main): Split check_format_info into three
1223 functions, the main checking going in check_format_info_main.
1224 Recurse when any reduction of the format string argument towards a
1225 string literal is done; go down both branches of a conditional
1226 expression. Don't warn for extra format arguments or empty format
1227 strings if they only occur in some branches of a conditional
1230 2000-10-16 Kazu Hirata <kazu@hxi.com>
1232 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
1234 2000-10-16 Jakub Jelinek <jakub@redhat.com>
1236 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
1238 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
1240 * i386.md (*movsi_or): Switch operand order for intel syntax.
1242 2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
1246 * gcc.texi (Contributing): Update.
1248 2000-10-13 Diego Novillo <dnovillo@cygnus.com>
1250 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
1251 appropriate assembler dialect.
1253 2000-10-13 Alexandre Oliva <aoliva@redhat.com>
1255 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
1257 2000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
1259 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
1260 constants 1 and 2 to NO_LD_REGS.
1262 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1264 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
1266 * objc/Make-lang.in (objc-parse.c): Likewise.
1268 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
1270 * arm.c: Include obstack.h
1271 (minipool_obstack, minipool_startobj): Define.
1272 (arm_add_gc_roots): Initialize them.
1273 (create_fix_barrier): Use our new obstack.
1274 (push_minipool_barrier, push_minipool_fix): Likewise.
1275 (arm_reorg): Release obstack memory.
1277 2000-10-13 Jakub Jelinek <jakub@redhat.com>
1279 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
1280 (prologue, exception_receiver, builtin_setjmp_receiver): New
1282 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
1283 * config/sparc/sparc-protos.h (finalize_pic): Remove.
1284 (load_pic_register): New prototype.
1285 * config/sparc/sparc.c (pic_setup_code): Remove.
1286 (finalize_pic): Rename to...
1287 (load_pic_register): ...this function.
1288 Don't look for nonlocal_goto_receivers and emit pic setup code
1289 directly. Don't check current_function_uses_pic_offset_table.
1291 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
1293 * tree.h (struct obstack): Declare.
1295 2000-10-12 Mark Mitchell <mark@codesourcery.com>
1298 * Makefile.in (ggc-callbacks.o): Remove target.
1299 (flow.o): Depend on GGC_H.
1300 * alias.c (init_alias_analysis):
1301 Remove ggc_p conditionals.
1302 (end_alias_analysis): Likewise.
1303 * basic-block.h (init_flow): New function.
1304 (allocate_reg_life_data): Declare.
1305 * bb-reorder.c (function_obstack): Replace with ...
1306 (flow_obstack): ... new variable.
1307 (fixup_reorder_chain): Use it.
1308 * c-decl.c (ggc_p): Remove.
1309 (caller-save.c): Don't call oballoc/obfree.
1311 undobuf): Remove storage.
1312 (try_combine): Don't call oballoc.
1313 (undo_all): Don't call obfree.
1314 * cse.c (insert): Use xmalloc, not
1316 (cse_main): Adjust accordingly.
1317 * dwarf2out.c (save_rtx): Remove
1319 (dwarf2out_init): Remove ggc_p conditionals.
1320 * emit-rtl.c (rtl_obstack): Remove.
1321 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
1322 (make_insn_raw): Likewise.
1323 (emit_insn_before): Likewise.
1324 (emit_insn_after): Likewise.
1325 (emit_insn): Likewise.
1326 (gen_sequence): Likewise.
1327 (copy_insn_1): Remove handling of `b' RTL components.
1328 (init_emit_once): Remove ggc_p conditionals.
1329 * except.c (create_rethrow_ref): Don't fool with obstacks.
1330 (add_partial_entry): Likewise.
1331 (call_get_eh_context): Likewise.
1332 (begin_protect_partials): Likewise.
1333 (protect_with_terminate): Likewise.
1335 (plus_constant_wide): Likewise.
1336 * expr.c (init_expr_once):
1338 (emit_block_move): Likewise.
1339 (clear_storage): Likewise.
1340 (expand_expr): Likewise.
1341 * flow.c (function_obstack): Remove.
1342 (flow_obstack): New variable.
1343 (flow_firstobj): Likewise.
1344 (create_base_block): Use the flow_obstack.
1345 (split_block): Likewise.
1346 (split_edge): Likewise.
1347 (calculate_global_regs_live): Likewise.
1348 (allocate_bb_life_data): Make it static. Likewiwse.
1349 (init_flow): New function.
1350 (size_int_type_wide): Remove ggc_p conditionals.
1352 (push_function_context_to): Don't call save_tree_status.
1353 (pop_function_context_from): Or restore_tree_status.
1354 (assign_stack_local_1): Don't call push_obstacks.
1355 (find_fixup_replacement): Use xmalloc.
1356 (fixup_var_refs_insns): Free the storage.
1357 (insns_for_mem_walk): Don't mess with obstacks.
1358 (instantiate_decls): Likewise.
1359 (trampoline_address): Likewise.
1360 (expand_function_end): Likewise.
1361 * function.h (sturct function):
1362 Remove obstack-related variables.
1363 (save_tree_status): Don't declare.
1364 (restore_tree_status): Likewise.
1365 * gcse.c (compute_can_copy):
1366 Don't call oballoc/obfree.
1367 * genattrtab.c (operate_exp): Remove
1369 (simplify_cond): Likewise.
1370 (simplify_test_exp): Don't mess with obstacks.
1371 (optimize_attrs): Likewise.
1372 * gengenrtl.c (gendef): Don't include
1374 * ggc-callbacks.c (ggc_p): Remove.
1375 * ggc-none.c (ggc_p): Remove.
1376 * ggc.h (ggc_p): Don't declare.
1377 * integrate.c (save_for_inline): Don't mess with obstacks.
1378 (integrate_decl_tree): Likewise.
1379 (output_inline_function): Likewise.
1381 (init_EXPR_INSN_LIST_cache): Likewise.
1382 * loop.c (temp_obstack):
1384 (rtl_obstack): Likewise.
1385 (init_loop): Don't mess with obstacks.
1386 (reg_address_cost): Free BIVs and GIVs.
1387 (check_insns_for_bivs): Use xmalloc, not oballoc.
1388 (find_mem_givs): Likewise.
1389 (record_biv): Likewise.
1390 (general_induction_var): Likewise.
1391 (product_cheap_p): Likewse.
1392 * optabs.c (init_one_libfunc): Remove
1394 * print-tree.c (debug_tree): Don't use
1396 (print_node): Likewise.
1397 * profile.c (output_func_start_profiler):
1398 Remove call to temporary_allocation.
1400 (eliminate_regs_in_insn): Don't mess with obstacks.
1402 (mark_target_live_regs): Use xmalloc.
1403 (free_resource_info): Free the memory.
1404 * rtl.c (rtl_obstack):
1406 (rtvec_alloc): Don't mess with obstacks.
1407 (rtx_alloc): Likewise.
1409 (copy_rtx): Don't handle `b' cases.
1410 (read_rtx): Use a local rtl_obstack.
1411 * rtl.h (oballoc): Remove.
1413 (pop_obstacks): Likewise.
1414 (push_obstacks): Likewise.
1415 (allocate_bb_life_data): Likewise.
1416 (allocate_reg_life_data): Likewise.
1417 (rtx_free): Likewise.
1418 * sdbout.c (sdbout_queue_anonymous_type):
1419 Use tree_cons, not saveable_tree_cons.
1421 (cselib_init): Don't mess with obstacks.
1423 (mark_block_nesting): Mark the label_chain.
1424 (epxand_label): Use ggc_alloc, not oballoc.
1425 (clear_last_expr): Don't mess with obstacks.
1426 (expand_decl_cleanup): Likewise.
1427 (expand_dcc_cleanup): Likewise.
1428 (expand_dhc_cleanup): Likewise.
1429 (expand_anon_union_decl): Likewise.
1430 (add_case_node): Use xmalloc, not oballoc.
1431 (free_case_nodes): New function.
1432 (expand_end_case): Call it.
1433 * stor-layout.c (layout_type): Don't
1435 (layout_type): Likewise.
1436 * toplev.c (wrapup_global_declarations):
1438 (compile_file): Remove ggc_p conditionals.
1439 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
1440 (decode_f_option): Remove ggc_p conditionals.
1442 (function_maybepermanent_obstack): Remove.
1443 (maybepermanent_obstack): Likewise.
1444 (function_obstack): Likewise.
1445 (tmeporary_obstack): Likewise.
1446 (momentary_obstack): Likewise.
1447 (temp_decl_obstack): Likewise.
1448 (saveable_obstack): Likewise.
1449 (rtl_obstack): Likewise.
1450 (current_obstack): Likewise.
1451 (expression_obstack): Likewise.
1452 (struct obstack_stack): Likewise.
1453 (obstack_stack): Likewise.
1454 (obstack_stack_obstack): Likewise.
1455 (maybepermanent_firstobj): Likewise.
1456 (temporary_firstobj): Likewise.
1457 (momentary_firstobj): Likewise.
1458 (temp_decl_firstobj): Likewise.
1459 (momentary_function_firstobj): Likewise.
1460 (all_types_permanent): Likewise.
1461 (struct momentary_level): Likewise.
1462 (momentary_stack): Likewise.
1463 (init_obstacks): Remove initialization of removed obstacks.
1464 (save_tree_status): Remove.
1465 (restore_tree_status): Likewise.
1466 (temporary_allocation): Liekwise.
1467 (end_temporary_allocation): Liekwise.
1468 (resume_temporary_allocation): Likewise.
1469 (saveable_allocation): Likewise.
1470 (push_obstacks): Likewise.
1471 (push_obstacks_nochange): Likewise.
1472 (pop_obstacks): Likewise.
1473 (allocation_temporary_p): Likewise.
1474 (permanent_allocation): Likewise.
1475 (preserve_data): Likewise.
1476 (preserve_initializer): Likewise.
1477 (rtl_in_current_obstack): Likewise.
1478 (rtl_in_saveable_obstack): Likewise.
1479 (oballoc): Likewise.
1481 (savealloc): Likewise.
1482 (expralloc): Likewise.
1483 (print_obstack_name): Likewise.
1484 (debug_obstack): Likewise.
1485 (object_permanent_p): Likewise.
1486 (push_momentary): Likewise.
1487 (perserve_momentary): Likewise.
1488 (clear_momentary): Likewise.
1489 (pop_momentary): Likewise.
1490 (pop_momentary_nofree): Likewise.
1491 (suspend_momentary): Likewise.
1492 (resume_momentary): Likewise.
1493 (make_node): Don't set TREE_PERMANENT.
1494 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
1495 Don't set TREE_PERMANENT.
1496 (get_identifier): Remove ggc_p conditionals.
1497 (build_string): Likewise.
1498 (make_tree_vec): Likewise.
1499 (build_decl_list): Remove.
1500 (build_expr_list): Likewise.
1501 (tree_cons): Remove ggc_p conditionals.
1502 (decl_tree_cons): Remove.
1503 (expr_tree_cons): Likewise.
1504 (perm_tree_cons): Likewise.
1505 (temp_tree_cons): Likewise.
1506 (saveable_tree_cons): Likewise.
1507 (build1): Remove ggc_p conditionals.
1508 (build_parse_node): Likewise.
1509 (build_type_attribute_variant): Don't mess with obstacks.
1510 (build_type_copy): Likewise.
1511 (type_hash_canon): Likewise.
1512 (build_pointer_type): Likewise.
1513 (build_reference_type): Likewise.
1514 (build_index_type): Likewise.
1515 (build_range_type): Likewise.
1516 (dump_tree_statistics): Don't print obstack information.
1518 (struct tree_common): Remove permanent_flag.
1519 (TREE_PERMANENT): Remove.
1520 (TREE_SET_PERMANENT): Likewise.
1521 (TYPE_OBSTACK): Likewise.
1522 (struct tree_type): Remove obstack.
1524 (savealloc): Likewise.
1525 (build_decl_list): Likewise.
1526 (build_expr_list): Likewise.
1527 (perm_tree_cons): Likewise.
1528 (temp_tree_cons): Likewise.
1529 (saveable_tree_cons): Likewise.
1530 (decl_tree_cons): Likewise.
1531 (expr_tree_cons): Likewise.
1532 (suspend_momentary): Likewise.
1533 (allocation_temporary_p): Likewise.
1534 (resume_momentary): Likewise.
1535 (push_obstacks_nochange): Likewise.
1536 (permanent_allocation): Likewise.
1537 (push_momentary): Likewise.
1538 (clear_momentary): Likewise.
1539 (pop_momentary): Likewise.
1540 (end_temporary_allocation): Likewise.
1541 (pop_obstacks): Likewise.
1542 (push_obstacks): Likewise.
1543 (pop_momentary_nofree): LIkewise.
1544 (preserve_momentary): Likewise.
1545 (saveable_allocation): Likewise.
1546 (temporary_allocation): Likewise.
1547 (resume_temporary_allocation): Likewise.
1548 (perserve_initializer): Likewise.
1549 (debug_obstack): Likewise.
1550 (rtl_in_current_obstack): Likewise.
1551 (rtl_in_saveable_obstack): Likewise.
1553 * varasm.c (current_obstack): Remove.
1554 (saveable_obstack): Remove.
1555 (rtl_obstack): Remove.
1556 (immed_double_const): Don't mess with obstacks.
1557 (immed_real_cons): Likewise.
1558 (output_constant_def): Likewise.
1559 (init_varasm_status): Use xcalloc.
1560 (mark_pool_constant): Mark the pool constant itself.
1561 (free_varasm_status): Free memory.
1562 (decode_rtx_const): Call bzero directly, rather than expanding it
1564 (record_rtx_const): Don't mess with obstacks.
1565 (force_const_mem): Likewise.
1566 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
1568 (aof_pic_entry): Likewise.
1569 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1570 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
1571 * config/pa/pa.c (saveable_obstack): Remove.
1572 (rtl_obstack): Likewise.
1573 (current_obstack): Likewise.
1574 (output_call): Don't mess with obstacks.
1575 (hppa_encode_label): Remove ggc_p conditionals.
1576 * config/romp/romp.c (get_symref): Don't mess with obstacks.
1577 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
1578 (rs6000_encode_section_info): Likewise.
1579 * config/sh/sh.c (get_fpscr_rtx): Likewise.
1581 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
1583 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
1584 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
1585 (addsi3_carry): Canonicalize.
1586 (addqi_5): Remove '*'.
1587 (sbb pattern): Canonicalize.
1589 * i386.md (cmp to inc/add peep2): New.
1591 2000-10-12 Richard Earnshaw <rearnsha@arm.com>
1593 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
1596 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
1598 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
1599 * README.TRAD, TESTS.FLUNK: Remove.
1601 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
1603 * c-common.c (decl_attributes): Don't allow strftime formats with
1604 first_arg_num nonzero.
1605 (check_format_info): Set wanted_type and wanted_type_name to zero
1606 before they are possibly assigned and used.
1608 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
1610 * c-common.c (scanf_flag_specs): Add flags ' and I.
1611 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
1612 or the ^ and # flags together.
1613 (scan_char_table): Handle the ' and I flags.
1614 (format_types): Add ' and I flags for scanf.
1616 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
1618 * c-common.c (print_char_table): Use the unpromoted type for
1619 lengths "h" and "hh" with conversions dioxXu.
1620 (check_format_types): Apply the default argument promotions where
1621 the wanted type is not a pointer target.
1623 2000-10-11 Michael Meeks <mmeeks@gnu.org>
1624 Joseph S. Myers <jsm28@cam.ac.uk>
1626 * c-typeck.c (check_modify_expr): New function.
1627 (build_modify_expr): Call it if warn_sequence_point.
1628 * c-decl.c (warn_sequence_point): New variable.
1629 (c_decode_option): Handle -Wsequence-point and
1630 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
1631 * c-tree.h (warn_sequence_point): Declare.
1632 * invoke.texi (-Wsequence-point): Document.
1633 * toplev.c (documented_lang_options): Add -Wsequence-point and
1634 -Wno-sequence-point.
1635 Original work by Michael Meeks, 16 Jun 1998.
1637 Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1639 * tree.c (get_narrower): Don't look at precision of field if
1642 Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
1644 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
1645 declaration for data with "progmem" attribute.
1647 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
1649 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
1650 Correct insn length if shift count is a memory operand.
1651 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
1652 (*iorhi3_clobber): Change lo8 to hi8.
1653 (zero_extendhisi2): Change %B0 to %A1.
1654 (ashlhi3, ashrhi3): Correct insn length.
1655 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
1656 from "clobber" to "set_n" in some alternatives.
1658 2000-10-10 Jakub Jelinek <jakub@redhat.com>
1660 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
1661 remove its insn_chain structure as well.
1663 2000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1665 * dbxout.c (dbxout_source_line): Remove extra tab.
1667 2000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
1669 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
1671 2000-10-09 Richard Henderson <rth@cygnus.com>
1673 * Makefile.in (LANG_LIB2FUNCS): Remove.
1674 (LIB2FUNCS): Remove _pure.
1675 (LIB2ADD): Remove LANG_LIB2FUNCS.
1676 (stage_a): Don't set LANG_LIB2FUNCS.
1677 * libgcc2.c (__terminate): Mark noreturn.
1678 (__pure_virtual): Remove.
1679 * mklibgcc.in: Remove LIB2ADD .txt processing.
1681 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
1683 * arm.md (push_multi): Revert unintended change.
1685 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
1687 * arm.c: Miscellaneous white space and comment clean-ups. No
1691 2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1693 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
1694 STRING_CST by calling combine_strings.
1696 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
1698 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
1699 (thumb_output_move_mem_multiple): Support new insn format.
1700 * arm.md (movmem12b): Use SSA compatible format.
1701 (movmem8b): Likewise.
1703 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
1705 * arm.md (predicable): New attribute, default to "no".
1706 (all patterns): Mark as predicable if appropriate.
1707 (conditional execution splits): Split using predication format.
1708 (define_cond_exec): Define.
1709 * arm.c (arm_print_operand): handle insn predicate.
1711 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1713 * README.NS32K: Remove file.
1715 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1717 * README-bugs: Remove file.
1719 2000-10-08 Philipp Thomas <pthomas@suse.de>
1720 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
1722 * configure: Rebuilt.
1724 2000-10-08 Philipp Thomas <pthomas@suse.de>
1725 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
1726 disable catalog building if no suitable program was found.
1727 Move warning message from here
1728 (AM_GNU_GETTEXT): To here.
1729 * configure: Rebuilt.
1731 2000-10-08 Philipp Thomas <pthomas@suse.de>
1732 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
1733 different cache variables.
1734 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
1735 uses different cache variables.
1736 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
1737 * configure: Regenerated.
1739 2000-10-08 Richard Henderson <rth@cygnus.com>
1741 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
1742 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
1743 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
1746 * config/t-linux (SHLIB_EXT): New.
1747 (SHLIB_LINK): Use the entire build command, with substitutions.
1748 (SHLIB_LIBS): Remove.
1749 * config/alpha/t-osf4: Likewise.
1750 * config/mips/t-iris6: Likewise.
1751 * config/sparc/t-sol2: Likewise, but move shlib stuff...
1752 * config/sparc/t-slibgcc-sld: ...here.
1753 * config/sparc/t-slibgcc: New file.
1755 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
1757 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
1758 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
1760 (intmax_type_node, uintmax_type_node): Define.
1761 * c-common.c (decl_attributes): If pedantic, warn if `mode'
1762 attributes create a type wider than intmax_t.
1763 (T_IM, T_UIM): Define properly.
1764 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
1766 (init_decl_processing): Initialize intmax_type_node and
1768 * c-lex.c (lex_number): When pedantic and warning for integer
1769 constants that are too large, in C99 mode warn for those that have
1770 a type wider than long long.
1772 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
1774 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
1775 FMT_FLAG_FANCY_PERCENT_OK): Define.
1776 (format_char_info): Add flag "4" to comment.
1777 (format_flag_spec, format_flag_pair): New structures.
1778 (format_kind_info): Add additional fields to control format
1780 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
1781 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
1783 (time_char_table): Use "4" flag to handle %Ey.
1784 (format_types): Add entries for new fields.
1785 (get_flag_spec): New function.
1786 (check_format_info): Increase size of flag_chars[] to 256.
1787 Control format checking using the new fields of a format_kind_info
1788 and the new tables; remove all conditionals on printf_format_type,
1789 scanf_format_type or strftime_format_type. Handle all details of
1790 bad combinations of flags (including width, precision and strftime
1791 modifiers) through data rather than ad hoc code. Handle all
1792 details of standard versions in which flags appeared through
1793 data. Use the "4" flag.
1795 2000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
1797 * config/h8300/h8300.md: Remove the memory alternative and correct
1798 the insn lengths in the templates for sign extention and zero
1801 2000-10-07 Richard Henderson <rth@cygnus.com>
1803 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
1804 * flow.c (make_edges): Revert last change.
1806 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
1808 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
1810 2000-10-06 David O'Brien <obrien@dragon.nuxi.com>
1812 * config/alpha/elf.h: Standardize the formatting.
1814 2000-10-06 David O'Brien <obrien@FreeBSD.org>
1816 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
1819 2000-10-06 Richard Henderson <rth@cygnus.com>
1821 * function.c (diddle_return_value): Examine
1822 current_function_return_rtx instead of the DECL_RESULT.
1823 (expand_function_end): Handle reloading DECL_RESULT from memory
1824 into a hard register. Query promote_mode for sign of mismatched
1827 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
1829 * haifa-sched.c (schedule_insns): Fix typo in freeing
1830 forward_dependency_cache.
1832 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
1834 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
1835 `TARGET_SH2' as a condition.
1837 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
1839 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
1840 forward_dependency_cache): New variables.
1841 (add_dependence, remove_dependence): Use anti_dependency_cache and
1842 output_dependency_cache.
1843 (compute_block_forward_dependences): Use forward_dependency_cache.
1844 (schedule_insns): Allocate and free memory for anti/output/forward
1845 dependencies caches.
1847 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
1849 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
1850 `! TARGET_SH1'. Reindent.
1852 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1854 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
1855 Move functions from here ...
1857 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
1859 (c_expand_builtin): New function.
1860 (init_function_format_info): Don't set `check_function_format_ptr'.
1861 (c_common_nodes_and_builtins): Set built_in_class type for
1862 printf/__builtin_printf to BUILT_IN_FRONTEND.
1863 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
1865 * c-common.h (build_function_call): Declare.
1867 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
1868 to `lang_expand_expr' rather than `expand_builtin'.
1870 * tree.c (check_function_format_ptr): Delete.
1872 * tree.h (check_function_format_ptr): Likewise.
1874 2000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
1876 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
1877 DW_OP_bregx when cfa->reg > 31.
1879 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
1882 2000-10-05 Richard Henderson <rth@cygnus.com>
1884 * c-decl.c (warn_missing_noreturn): Remove.
1885 (c_expand_body): Don't set or check can_reach_end.
1886 * c-tree.h (warn_missing_noreturn): Move ...
1887 * flags.h: ... here.
1888 (can_reach_end): Remove.
1889 * flow.c (check_function_return_warnings): New.
1890 (make_edges): No edge to exit for noreturn sibcalls.
1891 * function.c (expand_function_end): Save the return value
1892 clobber instruction.
1893 (mark_function_status): Mark it.
1894 * function.h (struct function): Add x_clobber_return_insn.
1895 * jump.c (can_reach_end): Remove.
1896 (calculate_can_reach_end): Remove.
1897 (jump_optimize_1): Don't call it.
1898 * output.h (check_function_return_warnings): Declare.
1899 * toplev.c (warn_missing_noreturn): Move from c-decl.c
1900 (rest_of_compilation): Call check_function_return_warnings.
1902 2000-10-05 Richard Henderson <rth@cygnus.com>
1904 * Makefile.in (NM_FOR_TARGET): New.
1905 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
1906 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
1907 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
1908 shared library build on that and EXTRA_MULTILIB_PARTS.
1909 * mkmap-flat.awk: New file.
1910 * mkmap-symver.awk: New file.
1911 * libgcc-std.ver: New file.
1912 * config/libgcc-glibc.ver: New file.
1913 * config/ia64/libgcc-ia64.ver: New file.
1914 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
1915 (SHLIB_LINK): Add --version-script.
1916 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
1917 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
1918 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
1919 (SHLIB_LINK): Add -M.
1921 2000-10-05 Richard Henderson <rth@cygnus.com>
1923 * Makefile.in (LIB2FUNCS): Add _clz.
1924 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
1925 (__clz_tab): Put in its own unit, non-static.
1926 * libgcc2.h: Always include longlong.h.
1928 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
1929 a zero instead of -1.
1930 (count_trailing_zeros): Likewise.
1932 2000-10-05 Richard Henderson <rth@cygnus.com>
1934 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
1935 when second op1 is const0_rtx. Validate op0 as a register.
1936 * config/alpha/alpha.md (setcc_internal): Don't allow constants
1937 in the first argument of the compare.
1938 (setcc_swapped_internal): Likewise.
1939 (setne_internal): Likewise.
1941 2000-10-05 Geoff Keating <geoffk@cygnus.com>
1943 * tree.c (tree_size): New function split out of copy_node.
1944 (make_node): Remove obstack handling. Use tree_size.
1945 (copy_node): Use tree_size.
1946 * tree.h: Prototype tree_size.
1948 2000-10-05 Richard Henderson <rth@cygnus.com>
1950 * diagnostic.c (output_format): Add missing break.
1952 2000-10-05 Jim Wilson <wilson@cygnus.com>
1954 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
1955 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
1956 sequence insn to INSN, and delete last sequence insn.
1958 2000-10-05 Phil Edwards <pme@gcc.gnu.org>
1960 * gcc.c (main): Include generated configargs.h header
1961 and use arguments in '-v' output.
1963 Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1965 * gcc.c: Move data on prefixes forward in file and reorganize.
1966 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
1967 Always define, but make null if no value.
1968 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
1969 and "md_startfile_prefix_1".
1970 (main): Check whether md_exec_prefix and the others are the
1971 null string rather than whether the macro is defined.
1973 Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
1975 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
1976 from PSImode to SImode.
1978 2000-10-05 Jakub Jelinek <jakub@redhat.com>
1980 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
1981 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
1982 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
1985 Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1987 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
1988 negation in proper type.a
1990 2000-10-04 Richard Henderson <rth@cygnus.com>
1992 * configure.in (enable-shared): New.
1993 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
1994 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
1995 * mklibgcc.in: Use them to link shared a libgcc.
1996 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
1997 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
1998 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
1999 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
2001 * configure.in (alpha-osf*): Use t-osf and x-osf.
2002 * config/alpha/t-osf: New file.
2003 * config/alpha/t-osf4: New file.
2004 * config/alpha/x-osf: New file.
2005 * config/alpha/x-alpha: Remove file.
2007 2000-10-04 Will Cohen <wcohen@redhat.com>
2009 * c-typeck.c (process_init_element): Added warning for zero-length
2012 * extend.texi (Zero Length): State that static initializers for
2013 zero-length arrays are not allowed.
2015 Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
2017 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
2020 2000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2022 * config/float-c4x.h: New.
2023 * configure.in (c4x-*): Set float_format to c4x.
2024 * configure: Regenerate.
2026 2000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2028 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
2029 compilation for solaris versions 2.7 and greater.
2031 2000-10-02 Marc Espie <espie@openbsd.org>
2033 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
2034 instead of redefining from scratch.
2036 2000-10-02 David O'Brien <obrien@dragon.nuxi.com>
2038 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
2040 2000-10-01 Mark Mitchell <mark@codesourcery.com>
2042 * config/ns32k/genix.h: Remove.
2043 * config/ns32k/x-genix: Likewise.
2044 * config/ns32k/xm-genix.h: Likewise.
2045 * config/fx80: Remove all filee in directory.
2046 * config/pyr: Likewise.
2047 * config/tahoe: Likewise.
2048 * config/gmicro: Likewise.
2049 * config/spur: Likewise.
2050 * configure.in: Remove configury bits for above targets.
2051 * configure: Regenerated.
2053 * configure.in: Don't configure chill by default.
2054 * configure: Regenerated.
2056 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
2057 (lang_mark_false_label_stack): Remove.
2058 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
2059 <top level> string in GC area.
2060 (mark_splay_tree_node): New function.
2061 (mark_splay_tree): Likewise.
2062 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
2064 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
2065 * ggc-common.c (lang_mark_false_label_stack): Change type.
2066 * ggc.h (ggc_alloc_string): Add comment.
2067 (ggc_strdup): New function.
2069 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
2071 * config/avr/avr.h (BRANCH_COST): Define as 0.
2073 * config/pdp11/pdp11.c: #include "tree.h" added.
2075 2000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
2077 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
2078 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
2079 with known shift count.
2080 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
2081 New alternative for shift count 2 with no scratch register.
2082 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
2083 "set_n" for shift counts 1 and 2.
2085 2000-09-30 Geoff Keating <geoffk@cygnus.com>
2087 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
2088 the mask value from the individual SET operations.
2089 (return_internal_si): Move the USE after the RETURN.
2090 (return_internal_di): Likewise.
2091 (return_and_restore_fpregs_si): Likewise.
2092 (return_and_restore_fpregs_di): Likewise.
2093 (return_eh_si): Likewise.
2094 (return_eh_di): Likewise.
2095 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
2097 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
2098 Don't generate a PARALLEL around a single operation movsi_to_cr.
2099 Generate the RETURN first in any PARALLELs.
2101 * rtlanal.c (single_set_1): Use fatal_insn to display the
2102 invalid insn. Check for more cases when a USE or CLOBBER occurs
2104 * Makefile.in: Update dependencies for rtlanal.o.
2106 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
2108 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
2110 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
2112 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
2113 Consistently use @email for formatting email addresses.
2115 2000-09-29 Richard Henderson <rth@cygnus.com>
2117 * cse.c (notreg_cost): New argument outer.
2118 (COST): Pass in SET to notreg_cost
2120 (fold_rtx): Use COST_IN. Prefer constants when costs
2123 2000-09-29 David Edelsohn <edelsohn@gnu.org>
2125 * fixinc/inclhack.def (broken_cabs): Generalize regex.
2126 * fixinc/fixincl.x: Regenerate.
2128 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2130 * loop.c (check_final_value): A GIV is not replaceable if used
2133 Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
2135 * version.c: Bump to gcc-2.97.
2137 Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
2139 * final.c (final_scan_insn): Remove extra extract_insn call;
2140 Use caching for constrain_operands.
2141 (cleanup_subreg_operands): Use caching for extract_insn.
2142 * recog.c (constrain_operands_cached): New.
2143 * recog.h (constrain_operands_cached): Declare.
2144 * i386.c (ix86_attr_length_immediate_default,
2145 ix86_attr_length_address_default, ix86_agi_dependant): Cache
2148 * recog.c (asm_noperands): Tweak.
2149 (extract_insn): Do not call asm_noperads for non-asm instructions.
2151 Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
2153 * recog.c (recog_memoized): Rename to recog_memoized_1.
2154 * recog.h (recog_memoized): Rename to recog_memoized_1.
2155 (recog_memoized): New macro.
2156 * rtl.h (single_set): Rename to single_set_1
2157 (single_set): New macro.
2158 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
2161 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
2162 Do not use match_dup of input operands at outputs.
2163 Use register_operand for memory expression.
2164 (rep_movsi): Put use last, canonicalize.
2165 Use register_operand for memory expression.
2166 (rep_movqi): Put use last.
2167 Use register_operand for memory expression.
2168 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
2169 of input operands at outputs. Use register_operand for memory
2171 (rep_stossi): Put use last; canonicalize; fix match_dup in
2172 the address expression
2173 (rep_stosqi): Likewise.
2174 (memcmp expander): Update calls.
2175 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
2178 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
2180 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
2182 2000-09-28 David O'Brien <obrien@FreeBSD.org>
2184 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
2185 Contains the old contents of config/i386/freebsd.h
2186 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
2187 Contains the old contents of config/i386/freebsd-elf.h
2188 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
2189 config/i386/freebsd.h.
2190 * configure.in: Adjust for above changes.
2191 * po/POTFILES.in: Likewise.
2192 * po/en_GB.po: Likewise.
2193 * po/gcc.pot: Likewise.
2194 * configure: Rebuilt.
2196 2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2198 * doloop.c (doloop_modify): Prevent delete_insn() from
2199 deleting too much. Prefer loop->top over loop->start as
2200 target for the new JUMP insn.
2201 (doloop_valid_p): Ignore loop with exit_count != 0.
2203 2000-09-28 Philipp Thomas <pthomas@suse.de>
2205 * invoke.texi (i386 Options): Add athlon to table of possible
2208 2000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
2210 * diagnostic.h (output_clear_message_text): New function.
2211 (output_message_text): New macro.
2213 * diagnostic.c (clear_text_info): Rename to
2214 output_clear_message_text.
2215 (output_clear): Adjust.
2216 (output_finish): Rename to output_finalize_message. Tweek.
2217 (output_to_stream): Adjust.
2219 2000-09-28 Neil Booth <neilb@earthling.net>
2221 * cpperror.c (_cpp_begin_message): Do the test for suppression
2222 of warnings and pedantic warnings before the "is a warning an
2224 * cppinit.c (cpp_handle_option): Remove surplus \n.
2225 * cpplex.c (ON_REST_ARG): Delete.
2226 (skip_block_comment): Initialise prevc.
2227 (parse_args): Improve error messages.
2228 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
2230 * cpplib.c (cpp_push_buffer): Fix grammar in message.
2231 * cppmain.c (main): Set callbacks for #ident and #pragma
2232 only if no_output option is false.
2233 (do_pragma_implementation): Only call the #pragma handler
2234 if it is set in the cpp_reader structure.
2236 Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
2238 * integrate.c (copy_insn_list): if an ignored return value
2239 is being clobbered, skip cloning that into the inline copy.
2241 2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
2243 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
2244 use @uref for formatting URLs.
2246 2000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
2248 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
2251 Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
2253 * gcc.c (cpp_options): Add spec for -ftabstop=.
2254 (invoke_as): New spec that handles invoking as.
2255 Update specs to handle -save-temps and -traditional.
2256 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
2258 * cp/lang-specs.h, objc/lang-specs.h: Update to use
2259 invoke_as, and handle -save-temps and -traditional (if
2262 2000-09-26 Jakub Jelinek <jakub@redhat.com>
2264 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
2266 (function_arg_slotno): Accept TImode/CTImode.
2267 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
2270 2000-09-26 Michael Hayes <mhayes@cygnus.com>
2272 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
2275 2000-09-25 Jim Wilson <wilson@cygnus.com>
2277 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
2278 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
2279 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
2280 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
2282 Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
2284 * cpplex.c (parse_args): Don't set VOID_REST flag.
2285 (CONTEXT_VARARGS): New flag.
2286 (maybe_paste_with_next): Set context earlier in loop. Use
2287 it. Do varargs test with CONTEXT_VARARGS flag.
2288 (push_arg_context): Set CONTEXT_VARARGS flag if we're
2289 pushing an argument context for a varargs argument.
2290 * cpplib.h (VOID_REST): Delete.
2291 * gcc.dg/cpp/vararg1.c: Add test case.
2293 2000-09-25 Branko Cibej <branko.cibej@hermes.si>
2295 * flags.h: Declare warning flag warn_system_headers.
2296 * toplev.c: Define it.
2297 (W_options): Add option -Wsystem-headers.
2298 * diagnostic.c (count_error): Test warn_system_headers.
2299 * invoke.texi: Add description for -Wsystem-headers.
2300 * cpplib.h (cpp_options): New member warn_system_headers.
2301 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
2302 CPP_IN_SYSTEM_HEADER.
2303 * cpplib.c (do_import, do_pragma_once): Likewise.
2304 * cpperror.c (_cpp_begin_message): Test warn_system_headers
2305 and CPP_IN_SYSTEM_HEADER.
2306 * cppinit.c (handle_option): Recognize -Wsystem_headers.
2307 (print_help): Describe -Wsystem_headers.
2308 * cpplex.c (lex_line): Reorganize condition so that warnings
2309 about C++ comments in system headers can be enabled. Remove
2310 label do_line_comment.
2312 Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
2314 * cpplex.c (save_comment): Only store the initial '/'
2316 (lex_token): Combine handling of the two comment types.
2317 Pass everything but the initial '/' to save_comment.
2319 Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
2321 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
2322 _cpp_can_paste): New library-internal prototypes.
2323 * cpplex.c (dump_param_spelling, output_line_command,
2324 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
2325 cpp_printf, cpp_output_list): Move to cppoutput.c.
2326 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
2327 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
2329 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
2330 dump_param_spelling, output_line_command, cpp_scan_buffer,
2331 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
2333 * Makefile.in: Add cppoutput.c.
2334 * po/POTFILES.in: Add cppoutput.c.
2336 2000-09-25 Richard Henderson <rth@cygnus.com>
2338 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
2339 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
2340 split until after reload.
2341 (rotlsi3, rotldi3): New.
2343 2000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
2345 * diagnostic.c (output_last_position): Define.
2346 (set_real_maximum_length): Tweek.
2347 * diagnostic.h (output_last_position): Declare.
2349 2000-09-25 Kazu Hirata <kazu@hxi.com>
2351 * config/i386/i386.c: Fix formatting.
2353 2000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
2355 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
2356 UNITS_PER_WORD is small.
2358 2000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
2360 * c-common.c (format_char_info): Add flags2; update comments.
2361 (print_char_table, scan_char_table, time_char_table): Split some
2362 flags out into flags2.
2363 (check_format_info): Use flags2 for those flags, for identifying
2364 the initial character of a scanf scanset, and for identifying
2365 printf formats where the '0' flag is ignored with precision.
2367 2000-09-25 Hans-Peter Nilsson <hp@axis.com>
2369 Changes below marked "here" add TABs on either or both sides,
2370 covering start of line, up to any operand for all noted .*ASM.*_OP
2371 definitions. All callers changed.
2372 * tm.texi: Make documented *_ASM.*_OP:s include spacing
2373 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
2374 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
2375 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
2376 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
2377 Fix typos in description for LONG_LONG_TYPE_SIZE and
2378 FINI_SECTION_ASM_OP.
2379 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
2380 why these defaults don't have leading spacing.
2381 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
2382 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2383 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
2384 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
2385 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
2386 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
2387 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
2388 * varasm.c (ASM_STABS_OP): Here.
2389 * xcoffout.h (ASM_STABS_OP): Here.
2390 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
2391 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
2392 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
2393 STRING_ASM_OP): Here.
2394 * config/freebsd.h (IDENT_ASM_OP): Here.
2395 * config/linux-aout.h (SET_ASM_OP): Here.
2396 * config/linux.h (SET_ASM_OP): Here.
2397 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2399 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
2400 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
2401 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
2402 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2404 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
2405 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
2406 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
2407 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
2408 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
2409 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2410 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
2411 * config/a29k/udi.h (INT_ASM_OP): Here.
2412 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
2413 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
2415 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
2416 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2417 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2418 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
2419 ASM_STABD_OP): Here.
2420 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
2421 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
2422 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2423 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
2424 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
2425 SIZE_ASM_OP, STRING_ASM_OP): Here.
2426 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
2427 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
2428 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
2429 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
2430 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
2431 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
2433 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2434 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
2435 * config/arm/coff.h (INT_ASM_OP): Here.
2436 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
2437 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
2438 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
2439 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
2440 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
2441 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2442 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
2443 STRING_ASM_OP): Here. Update documentation copy in comments.
2444 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
2445 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
2446 DATA_SECTION_ASM_OP): Here.
2447 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
2449 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
2450 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
2451 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2452 BSS_SECTION_ASM_OP): Here.
2453 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2454 BSS_SECTION_ASM_OP): Here.
2455 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2457 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
2458 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
2459 * config/h8300/h8300.h (ASM_WORD_OP): Here.
2460 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2461 BSS_SECTION_ASM_OP): Here.
2462 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
2463 * config/i386/bsd.h (ASM_BYTE_OP): Here.
2464 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
2465 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
2466 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
2468 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
2469 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
2471 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
2472 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
2473 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
2474 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
2476 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
2477 * config/i386/netbsd.h (INT_ASM_OP): Here.
2478 * config/i386/openbsd.h (INT_ASM_OP): Here.
2479 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
2480 IDENT_ASM_OP): Here.
2481 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
2482 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
2483 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
2484 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
2485 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
2486 SHARED_BSS_SECTION_ASM_OP): Here.
2487 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
2488 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
2489 DATA_SECTION_ASM_OP): Here.
2490 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2491 CONST_SECTION_ASM_OP): Here.
2492 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
2493 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2494 BSS_SECTION_ASM_OP): Here.
2495 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
2496 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
2497 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
2498 BSS_ASM_OP): Here, but use trailing spaces.
2499 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
2500 DATA_SECTION_ASM_OP): Here.
2501 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
2503 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
2504 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
2505 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2506 TDESC_SECTION_ASM_OP): Here.
2507 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
2508 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
2509 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2511 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2512 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
2513 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2514 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
2515 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
2516 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
2517 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2518 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
2519 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
2520 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
2521 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
2522 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
2524 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
2525 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
2526 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
2527 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
2528 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
2529 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
2530 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
2531 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2532 GLOBAL_ASM_OP): Here.
2533 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
2534 BSS_SECTION_ASM_OP): Here.
2535 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
2536 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2537 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
2538 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
2540 * config/m68k/newsgas.h (SET_ASM_OP): Here.
2541 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
2542 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
2543 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
2544 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
2545 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
2546 but use trailing spaces.
2547 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
2548 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
2549 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
2551 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
2552 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
2553 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2554 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
2555 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2556 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
2557 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
2558 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
2559 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
2560 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
2561 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2562 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
2564 * config/m88k/openbsd.h (SET_ASM_OP): Here.
2565 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2566 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
2567 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
2568 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
2569 DTORS_SECTION_ASM_OP): Here.
2570 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
2571 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
2572 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
2573 BSS_SECTION_ASM_OP): Here.
2574 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
2575 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
2576 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
2577 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
2578 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
2579 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
2580 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
2581 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
2583 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
2585 * config/mips/osfrose.h (SET_ASM_OP): Here.
2586 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
2587 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
2588 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
2589 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2591 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
2592 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
2593 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
2594 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
2595 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
2596 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2598 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2600 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
2601 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
2602 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
2604 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
2605 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
2606 * config/sparc/linux.h (COMMON_ASM_OP): Here.
2607 * config/sparc/linux64.h (COMMON_ASM_OP,
2608 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
2609 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
2610 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
2611 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
2612 * config/sparc/pbd.h (ASM_INT_OP): Here.
2613 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
2614 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
2615 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
2616 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
2617 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
2618 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
2619 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
2620 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
2621 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
2622 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2623 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2624 EH_FRAME_SECTION_ASM_OP): Here.
2625 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
2626 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2628 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2630 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
2631 TCOMMON_ASM_OP): Here.
2632 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2634 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2637 2000-09-25 Richard Henderson <rth@cygnus.com>
2639 * expmed.c (store_bit_field): Adjust last change to not consider
2640 any word-sized field naturally aligned.
2642 2000-09-24 Richard Henderson <rth@cygnus.com>
2644 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
2645 TFmode unordered compares properly. Revalidate integer compare
2647 (alpha_emit_setcc): New.
2648 (alpha_emit_conditional_move): Revalidate integer compare operands.
2649 * config/alpha/alpha-protos.h: Update.
2650 * config/alpha/alpha.md (cmpdi): Allow general operands.
2651 (sne): Use alpha_emit_setcc.
2652 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
2653 (sunordered, sordered): New.
2655 2000-09-24 Richard Henderson <rth@cygnus.com>
2657 * config/ia64/ia64-protos.h: Update.
2658 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
2659 (ia64_expand_call): New.
2660 (ia64_expand_prologue): Emit an alloc if we need extra input
2662 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
2663 instruction if true.
2664 (struct reg_flags): Add is_sibcall.
2665 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
2666 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
2667 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
2668 * config/ia64/ia64.h (PREDICATE_CODES): Update.
2669 * config/ia64/ia64.md (call): Use ia64_expand_call.
2670 (call_value): Likewise.
2671 (sibcall, sibcall_value): New.
2672 (call patterns): Remove extra expanders; tidy.
2673 (sibcall_epilogue): New.
2674 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
2676 2000-09-24 Richard Henderson <rth@cygnus.com>
2678 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
2680 * sibcall.c (skip_pic_restore): New.
2681 (identify_call_return_value): Use it.
2683 2000-09-24 Mark Mitchell <mark@codesourcery.com>
2685 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
2686 functions. Generalize to handle both C and C++.
2687 * Makefile.in (c-tree.info): New target.
2688 (info): Add c-tree.info.
2690 Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2692 * expr.c (store_field): If BITSIZE is negative, use size of type.
2693 (expand_expr, case COMPONENT_EXPR): Likewise.
2695 Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
2697 * cpplex.c: Update TODO comment.
2698 * cpplib.c (do_error, do_warning): Merge common code of
2699 do_error and do_warning into do_diagnostic. Use it.
2700 (do_diagnostic): New function.
2701 * cpplib.h: Fix comment typo.
2703 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
2705 * c-common.c (check_format_info): Warn for a wide character string
2706 used as a non-wide format argument.
2708 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
2710 * builtins.def (BUILT_IN_LLABS): Add.
2711 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
2712 * c-common.c (c_common_nodes_builtins): Create builtin functions
2713 __builtin_llabs, and plain llabs unless no_nonansi_builtins
2714 outside of C99 mode.
2715 (expand_tree_builtin): Handle BUILT_IN_LLABS.
2717 Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
2719 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
2720 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
2721 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
2722 _cpp_free_toklist): No need to worry about extra dummy token
2723 at the start of token lists any more.
2724 (trigraph_ok): Only warn outside comments.
2725 (skip_block_comment): Set and clear lexing_comment.
2726 (skip_line_comment): Take a cpp_reader not cpp_buffer.
2727 Set and clear lexing_comment.
2728 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
2729 (check_long_token): Delete.
2730 (lex_percent, lex_dot): New subroutines of lex_token to
2731 handle lexing of '.' and '%' without lookback.
2732 (lex_token): Use lex_dot and lex_percent.
2733 (lex_line): Don't check for LIST_OFFSET.
2734 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
2735 * cpplib.c (_cpp_parse_assertion): Similarly.
2736 (cpp_push_buffer): Initialize extra_char.
2737 * cpplib.h (LIST_OFFSET): Delete.
2738 (struct cpp_buffer): New member extra_char.
2739 (struct lexer_state): New members lexing_comment and seen_dot.
2741 2000-09-23 Jason Merrill <jason@redhat.com>
2743 * config/rs6000/x-aix41 (CLIB): Define here.
2744 * config/rs6000/t-aix43: Not here.
2745 * config/rs6000/t-aix41: Or here. Remove.
2746 * configure.in: Don't use it.
2748 2000-09-22 Jason Merrill <jason@redhat.com>
2750 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
2751 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
2752 * config.in: Regenerate.
2754 * configure.in: Fix checks for assembler features when using a
2755 one-tree assembler that has not yet been built.
2756 Fix --disable-threads.
2758 2000-09-19 Geoff Keating <geoffk@cygnus.com>
2760 * stmt.c (expand_asm_operands): Allow # in constraints.
2762 2000-09-22 Jason Merrill <jason@redhat.com>
2764 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
2766 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
2767 function-local names.
2769 2000-09-22 Brad Lucier <lucier@math.purdue.edu>
2770 Mark Mitchell <mark@codesourcery.com>
2772 * toplev.c (warn_disabled_optimization): Declare new warning flag.
2773 * flags.h (warn_disabled_optimization): Add it here.
2774 * gcse.c (gcse_main): Add warning when disabled.
2775 * invoke.texi: Document -Wdisabled-optimization.
2777 2000-09-21 Jason Merrill <jason@redhat.com>
2779 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
2781 * dwarf2out.c (tree_add_const_value_attribute): New fn.
2782 (gen_variable_die): Call it for non-definitions.
2784 * dwarf2out.c (die_struct): Add die_mark field.
2785 (mark_dies, unmark_dies): New fns.
2786 (clear_die_sizes): Remove.
2787 (print_die): Check die_symbol rather than die_offset.
2788 (build_abbrev_table, output_pubnames, output_aranges): Check
2789 die_mark rather than die_offset.
2790 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
2793 Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
2795 * cppfiles.c (lookup_include_file): Rename to open_file.
2796 Always create a splay tree value, even on syscall failures.
2797 Negative entries indicated by fd == -2.
2798 Re-open files closed in the meantime.
2799 (_cpp_fake_include): Create a negative splay tree entry.
2800 (find_include_file, cpp_read_file): Update for function name
2802 * gcc.gd/cpp/mi4.c: Testcase.
2804 2000-09-21 Nick Clifton <nickc@redhat.com>
2806 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
2807 ARM and THUMB modes.
2809 * config/mcore/mcore.c: Fix compile time warnings.
2810 * config/mcore/mcore-protos.h: Fix compile time warnings.
2812 2000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2814 * configure.in: Correct test of gcc_cv_glibc.
2815 * configure: Rebuilt.
2816 * config.in: Rebuilt.
2818 2000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2820 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
2821 (expand_builtin): Handle BUILT_IN_FWRITE.
2823 * builtins.def (BUILT_IN_FWRITE): New entry.
2825 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
2827 Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2829 * gcc.c (modify_target): New variable and struct.
2830 (process_command): Handle MODIFY_TARGET_NAME.
2831 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
2832 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
2834 * c-decl.c (finish_decl): Add else's to avoid referencing
2835 TYPE_DOMAIN of an ERROR_MARK.
2837 Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
2839 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
2842 2000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
2844 * config/avr/avr.md (neghi2): Add alternative for input and output
2845 operands in different registers, as in negsi2.
2846 (*negsi2): Remove '*' from the name. Use "movw" if available.
2848 2000-09-19 Jim Wilson <wilson@cygnus.com>
2850 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
2851 HAVE_GAS_HIDDEN macro.
2853 Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
2855 * cpplex.c (lex_line): Drop the EOF token for unknown
2856 directives in assembler.
2858 2000-09-19 David Edelsohn <edelsohn@gnu.org>
2860 * configure.in: Allow enable_threads_flag value of "aix". Define
2861 thread_file as "aix" for AIX 4.3 and above.
2862 * configure: Regenerated.
2864 * gthr-aix.h: New file.
2866 * rs6000/t-aix43: Replace soft-float multilib with pthread.
2867 Remove 403 processor multilib match. Fix rios2 processor multilib
2870 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
2871 to return to appropriate csect.
2873 2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2875 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
2877 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
2878 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
2881 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
2884 * c-common.c (init_function_format_info): Handle __builtin_printf.
2885 Set `check_function_format_ptr'.
2886 (c_common_nodes_and_builtins): Set `puts_ftype' and
2887 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
2888 __builtin_printf and printf.
2890 * tree.c, tree.h (check_function_format_ptr): Declare.
2892 Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
2894 * cppfiles.c (read_include_file): Take no special action for
2897 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
2899 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
2900 rather than that of branch.
2901 (shorten_branches): Don't increment insn_current_address twice.
2903 Undo most of the Wed Jan 27 23:39:53 1999 patch:
2904 * loop.h (struct induction): Delete members derived, ix and last_use.
2905 (struct loop_ivs): Delete members first_increment_giv and
2907 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
2908 recombine_givs): Delete functions.
2909 (find_and_verify_loops): Don't initialize cont_dominator.
2910 (strength_reduce): Lose code to try to find bivs that can be
2911 expressed as givs of another biv, and to convert biv increments
2913 Lose loop_scan_start variable, always use loop->scan_start.
2914 Don't call recombine_givs. Don't handle derived givs.
2915 (record_giv): Don't initialize derived and last_use fields.
2916 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
2918 * unroll.c (derived_regs): Delete static variable.
2919 (unroll_loop): Don't initialize it.
2920 (copy_loop_body): Lose code to handle derived givs.
2921 (find_splittable_givs): Don't check for givs made from biv
2923 Don't set derived_regs.
2925 Fix misapplied earlier patch:
2926 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
2928 (floatsisf2): Generate floatsisf_ie by default.
2929 (floatsisf_i4): Conditional on TARGET_SH4.
2931 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
2932 predicate for the expanders.
2934 2000-09-19 Richard Henderson <rth@cygnus.com>
2936 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
2937 in addition to pentium and pentiumpro symbols.
2938 (CPP_CPU_DEFAULT_SPEC): Likewise.
2940 * c-typeck.c (c_expand_asm_operands): Restore the output tree
2943 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
2944 if the tree has side effects.
2945 (warn_if_unused_value): Do not warn about void constructs.
2947 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
2949 * unroll.c (copy_loop_body): Update LABEL_NUSES before
2950 calling invert_jump.
2952 2000-09-18 Geoff Keating <geoffk@cygnus.com>
2954 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
2957 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2959 * Makefile.in (c-common.o): Depend on diagnostic.h.
2961 * c-common.c: Include diagnostic.h.
2963 (status_warning): New function.
2964 (check_format_info, maybe_read_dollar_number, check_format_types,
2965 finish_dollar_format_checking, check_function_format): Accept a
2966 `status' parameter. All callers changed.
2968 * c-common.h (check_function_format): Accept a `status' parameter.
2970 * c-typeck.c: Update call to `check_function_format'.
2972 2000-09-18 Richard Henderson <rth@cygnus.com>
2974 * c-decl.c (c_expand_body): Call mark_varargs before
2975 expand_function_start.
2977 2000-09-18 Geoff Keating <geoffk@cygnus.com>
2979 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
2980 * config/rs6000/eabi-ci.asm: Likewise.
2982 2000-09-18 Richard Henderson <rth@cygnus.com>
2984 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
2987 2000-09-18 Jim Wilson <wilson@cygnus.com>
2989 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
2990 before passing it to fold_rtx_mult_add.
2992 * unroll.c (final_giv_value): Pass increment through
2993 extend_value_for_giv before passing it to emit_iv_add_mult.
2995 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
2996 paradoxical subreg, then directly substitute the replacement and
2999 Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
3001 * cpp.texi: Update documentation, including some clarifications,
3002 the treatment of various newline combinations, and space between
3003 backslash and newline.
3005 Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
3007 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
3008 Replace ASM_OUTPUT_LABELREF with assemble_name.
3010 Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
3012 * sh.c (addsubcosts): CONST is not cheap.
3013 (find_barrier): For Sh1, take alignment after jumps into account.
3015 2000-09-15 Andrew Haley <aph@redhat.com>
3017 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
3018 remove all SETs of SUBREGs of hard registers.
3019 * function.c (purge_hard_subreg_sets): New function.
3020 (purge_single_hard_subreg_set): New function.
3021 * rtl.h: (purge_hard_subreg_sets): New function.
3023 2000-09-18 Richard Henderson <rth@cygnus.com>
3025 * config/ia64/ia64-protos.h: Update.
3026 * config/ia64/ia64.c (signed_inequality_operator): New.
3027 (ia64_expand_compare): New.
3028 (ia64_register_move_cost): Handle PR_REGS moves.
3029 (ia64_secondary_reload_class): Require a GR when moving to a PR.
3030 (struct reg_write_state): Add written_by_and/or.
3031 (struct reg_flags): Add is_and/or.
3032 (rws_update): Set them.
3033 (rws_access_regno): Test them to allow parallel comparisons.
3034 (rtx_needs_barrier): Recognize parallel comparisons.
3035 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
3036 Call recog_memoized; ignore pred_rel_mutex.
3037 (emit_predicate_relation_info): Don't call find_basic_blocks here.
3038 (ia64_reorg): Do it here instead.
3039 * config/ia64/ia64.h: s/CCmode/BImode/g
3040 (MODES_TIEABLE_P): Don't tie BImode.
3041 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
3042 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
3043 (RTX_COSTS): Make multiply 4 insns.
3044 (MEMORY_MOVE_COST): New.
3045 (PREDICATE_CODES): Update.
3046 * config/ia64/ia64.md: s/CCmode/BImode/g
3047 (movcci, movbi): New.
3048 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
3049 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
3050 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
3051 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
3052 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
3053 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
3054 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
3055 (mulsi, muldi): Use xmpy not xma.
3057 (movcc, movcc_internal): Remove.
3058 (branch expanders): Use ia64_expand_compare.
3059 (setcc expanders): Likewise.
3060 (cmov insns): Use move_operand and ia64_move_ok.
3061 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
3062 scheduler from moving it past a use.
3063 * config/ia64/build.hacks: Remove.
3065 Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
3067 * cpphash.h (HASHSTEP): Take character rather than pointer
3069 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
3071 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
3073 * cpplex.c (auto_expand_name_space, trigraph_replace,
3074 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
3075 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
3076 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
3077 KNOWN_DIRECTIVE): Delete.
3079 (handle_newline, check_long_token, skip_escaped_newlines,
3080 unterminated): New functions.
3081 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
3083 (parse_identifier): Was parse_name, new implementation.
3084 (skip_line_comment, skip_block_comment, skip_whitespace,
3085 parse_number, parse_string, trigraph_ok, save_comment,
3086 adjust_column, _cpp_get_line): New implementations.
3088 (lex_token): New function. Lexes a token at a time, looking
3089 forwards. Contains most of the guts of the old lex_line.
3090 (lex_line): New implementation, using lex_token to obtain
3092 (cpp_scan_buffer): Use the token's line, not the list's line.
3094 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
3095 New implementations.
3096 (do_assert): Don't bother setting the answer's list's line.
3097 (cpp_push_buffer): Initialise new pfile and read_ahead members
3098 of struct cpp_buffer.
3100 * cpplib.h (cppchar_t): New typedef.
3101 (struct cpp_buffer): read_ahead, pfile and col_adjust are
3103 (struct lexer_state): New structure that determines the state
3104 and behaviour of the lexer.
3105 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
3106 (struct cpp_reader): New member "state". Rename
3107 multiline_string_line and multiline_string_column. Delete
3108 col_adjust, in_lex_line members.
3109 (CPP_BUF_COLUMN): Update.
3111 2000-09-18 Richard Henderson <rth@cygnus.com>
3113 * combine.c (simplify_comparison): Shift a NOT out of a single
3116 * combine.c (if_then_else_cond): Canonicalize BImode true to
3118 * explow.c (trunc_int_for_mode): Likewise.
3120 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
3121 the NOT for De Morgan's rule.
3122 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
3123 of a comparison to the reverse comparison.
3125 * combine.c (try_combine): Allow split to create a single insn.
3127 * machmode.def: Add BImode. Add a column for bitsize.
3128 * machmode.h (DEF_MACHMODE): Adjust for extra column.
3129 (GET_MODE_BITSIZE): Use it.
3130 * rtl.c (DEF_MACHMODE): Adjust for extra column.
3131 (mode_bitsize): New.
3132 (mode_mask_array): Use bitsize.
3133 * combine.c (combine_simplify_rtx): Require inner and outer
3134 modes to match on nonzero_bits optimizations.
3136 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
3138 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
3139 its entry in spill_reg_store.
3140 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
3141 * sh.c (reg_no_subreg_operand): New function.
3142 * sh-protos.h (reg_no_subreg_operand): Declare it.
3143 * sh.h (PREDICATE_CODES): Add it.
3144 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
3145 input operand that needs to be in fpul.
3146 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
3147 * sh.c (find_barrier): Take into account that machine_dependent_reorg
3148 might add new insns.
3150 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3152 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
3154 (sh_expand_epilogue): Take the PIC register into account when
3155 computing the frame size.
3157 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
3158 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
3159 LABEL_REFs with a PIC-safe unspec.
3161 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3163 * c-common.c (check_format_info): Properly save the argument
3164 number and parameter for $ operand number formats in case width
3165 and precision arguments are also used. Allow printf width and
3166 precision arguments to have operand numbers even if none was
3167 specified for the main format, since this is OK for %*.*m. Only
3168 object to missing $ operand number if the format used requires an
3171 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3173 * c-common.c (format_char_info): Add 'W' flag to comment.
3174 (print_char_table, scan_char_table): Use it.
3175 (check_format_info): Use the 'W' flag to determine whether a
3176 format argument is written into.
3178 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3180 * c-common.c (check_format_types): Reorganise and clean up,
3181 checking earlier for ERROR_MARKs and making cur_type into its
3182 TYPE_MAIN_VARIANT where convenient.
3184 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3186 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
3188 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
3190 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
3192 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
3193 * i386.c (struct builtin_description): New.
3194 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
3195 (mmx_reg_operand): Declare MODE arg as unused.
3196 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
3197 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
3198 ix86_expand_binop_builtin, ix86_expand_store_builtin,
3199 ix86_init_builtins, ix86_expand_builtin): New functions.
3200 * i386.h (ix86_builtins): New enumeration.
3201 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
3202 * i386.md (attr length_immediate): 0 for mmx/sse types.
3203 (attr prefix_0f): 1 for mmx/sse types.
3204 (setcc_2): Remove "*" so we get gen_setcc_2.
3205 (emms): Account for changed register numbering. Set "memory" attr
3207 (sfence): Set "memory" attr to unknown.
3209 2000-09-18 Andreas Jaeger <aj@suse.de>
3211 * configure.in: Define _GNU_SOURCE only when using the GNU C
3213 * configure: Regenerated.
3214 * config.in: Regenerated.
3216 2000-09-17 Mark Mitchell <mark@codesourcery.com>
3218 * cppinit.c (cpp_init): Don't use ANSI prototypes.
3219 * flow.c (flow_dump_loop): Likewise.
3220 (flow_loops_dump): Likewise.
3222 * c-typeck.c (c_start_case): Fix typo.
3224 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
3226 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
3227 to int for plain complex which defaults to complex double. Do
3228 warn about defaulting to complex double if pedantic. Warn about
3229 complex integer types if pedantic. Warn about complex types if
3230 pedantic and not in C99 mode.
3231 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
3232 for complex conjugation.
3234 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
3236 * contrib.texi: Update my entry.
3238 Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
3240 * config/avr/avr.md (mcu_enhanced): New attribute.
3241 (mcu_mega): Likewise.
3242 (extendhisi2): Use mcu_enhanced.
3243 (zero_extendhisi2): Likewise.
3244 (call_insn): Use mcu_enhanced and mcu_mega.
3245 (call_value_insn): Likewise.
3246 (*sbrx_branch): Use mcu_mega.
3247 (*sbrx_and_branchsi): Likewise.
3248 (*sbrx_and_branchhi): Likewise.
3249 (*tablejump_lib): Likewise.
3251 Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3253 * alias.c (true_dependence): Allow non-unchanging read to conflict
3254 with unchanging write.
3256 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
3257 (store_constructor): Pass alias_set to it.
3259 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
3260 TYPE_MAIN_VARIANT of ERROR_MARK.
3261 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
3263 * simplify-rtx.c (simplify_unary_operation): Add cases
3264 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
3266 2000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
3268 * expr.h (emit_library_call, emit_library_call_value): Delete
3270 * rtl.h (enum libcall_type): New.
3271 (emit_library_call, emit_library_call_value): Change fn_type arg to
3272 be of type enum libcall_type.
3273 * calls.c: Likewise for the function definitions. Several callers
3274 throughout changed to use the new enumeration appropriately.
3275 (emit_library_call_value_1): Likewise. Put back code to make libcall
3276 blocks of equal form, but only use it for the two new higher
3279 2000-09-16 Mark Mitchell <mark@codesourcery.com>
3281 Convert the C front-end to use function-at-a-time mode.
3282 * c-common.h: Include splay-tree.h.
3283 (C_DECLARED_LABEL_FLAG): New macro.
3284 (struct language_function): Add x_scope_stmt_stack and
3285 x_function_name_declared_p.
3286 (RECHAIN_STMTS): Move definition.
3287 (lang_statment_code_p): Likewise.
3288 (lang_expand_stmt): Likewise.
3289 (lang_expand_decl_stmt): New variable.
3290 (lang_expand_function_end): Likewise.
3291 (current_scope_stmt_stack): New function.
3292 (add_decl_stmt): Likewise.
3293 (add_scope_stmt): Likewise.
3294 (mark_stmt_tree): Likewise.
3295 (struct c_lang_decl): New structure.
3296 (DECL_SAVED_TREE): Define.
3297 (c_mark_lang_decl): New function.
3298 (c_expand_start_cond): Change prototype.
3299 (c_finish_then): New function.
3300 (c_finish_else): Likewise.
3301 (current_function_name_declared): Remove.
3302 (set_current_function_name_declared): Likewise.
3303 (mark_c_language_function): Declare.
3304 (case_compare): Likewise.
3305 (c_add_case_label): Likewise.
3306 (c_expand_expr): Likewise.
3307 (c_safe_from_p): Likewise.
3308 * c-common.c (lang_expand_function_end): New variable.
3309 (struct if_elt): Add if_stmt.
3310 (c_expand_start_cond): Add the if-statement to the statement-tree,
3311 rather than generating RTL.
3312 (c_finish_then): New function.
3313 (c_expand_start_else): Don't generate RTL.
3314 (c_finish_else): New function.
3315 (c_expand_expr_stmt): Don't generate RTL.
3316 (statement_code_p): Add SCOPE_STMT.
3317 (case_compare): New function.
3318 (c_add_case_label): Likewise.
3319 (mark_stmt_tree): Likewise.
3320 (c_mark_lang_decl): Likewise.
3321 (mark_c_language_function): Likewise.
3322 (c_expand_expr): Likewise.
3323 (c_safe_from_p): Likewise.
3324 * c-decl.c (c_stmt_tree): New variable
3325 (c_scope_stmt_stack): Likewise.
3326 (c_function_name_declared_p): Likewise.
3327 (lang_expand_expr_stmt): Remove.
3328 (poplevel): Don't call output_inline_function for nested
3330 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
3332 (redeclaration_error_message): Change means of computing whether
3333 or not a function is nested.
3334 (lookup_label): Don't call label_rtx.
3335 (init_decl_processing): Add more GC roots.
3336 (start_decl): Add DECL_STMTs to the statement-tree, rather than
3337 calling rest_of_decl_compilation.
3338 (finish_decl): Don't call expand_decl.
3339 (store_parm_decls): Begin the statement-tree, but don't generate
3341 (finish_function): Tie off the statement-tree. Call c_expand_body
3343 (c_expand_body): New function.
3344 (push_c_function_context): Save more information.
3345 (pop_c_function_contxt): Likewise.
3346 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
3347 (lang_mark_tree): Mark it.
3348 (current_stmt_tree): Adjust.
3349 (current_scope_stmt_stack): New function.
3351 (set_current_name_declared): Likewise.
3352 (c_begin_compound_stmt): Define.
3353 (c_expand_decl_stmt): Likewise.
3354 * c-lang.c: Include rtl.h and expr.h.
3355 (lang_init): Set more language-specific hooks.
3356 * c-lex.c: Include expr.h.
3357 * c-parse.in: Changes throughout to add statements to the
3358 statement-tree, rather than generating RTL after every statement.
3359 * c-semantics.c (lang_expand_decl_stmt): Define.
3360 (add_decl_stmt): New function.
3361 (add_scope_stmt): Likewise.
3362 (finish_stmt_tree): Tweak.
3363 (genrtl_expr_stmt): Likewise.
3364 (genrtl_decl_stmt): Handle local labels, and call
3365 lang_expand_decl_stmt if required.
3366 (genrtl_for_stmt): Fix line-number handling.
3367 (genrtl_case_label): Handle cleanups.
3368 (genrtl_asm_stmt): Don't call combine_strings.
3369 (genrtl_compound_stmt): Simplify.
3370 (expand_stmt): Handle SCOPE_STMTs.
3371 * c-tree.h (struct lang_decl): New structure.
3372 (C_DECLARED_LABEL_FLAG): Remove.
3373 (c_begin_compound_stmt): Declare.
3374 (c_expand_decl_stmt): Likewise.
3375 (c_expand_start_case): Rename to c_start_case.
3376 (c_finish_case): New function.
3377 * c-typeck.c (start_init): Tweak setting of
3378 constructor_incremental.
3379 (c_expand_asm_operands): Tweak error-handling. Add to the
3381 (c_expand_return): Add to the statement-tree.
3382 (c_expand_start_case): Rename to ...
3383 (c_start_case): ... this.
3384 (struct c_switch): New type.
3385 (switch_stack): New variable.
3386 (do_case): Simplify.
3387 (c_finish_case): New function.
3388 * dependence.c: Include expr.h.
3389 (enum dependence_type): Change spelling of enumerals.
3390 (check_node_dependence): Adjust.
3391 * expr.h (lang_safe_from_p): Declare.
3392 (safe_from_p): Likewise.
3393 * expr.c (lang_safe_from_p): New variable.
3394 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
3395 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
3396 * toplev.c (rest_of_decl_compilation): Robustify.
3397 * tree.c (contains_placeholder_p): Likewise.
3398 * Makefile.in: Update dependencies.
3399 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
3400 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
3401 (objc_expand_function_end): New function.
3402 (finish_method_def): Use it.
3403 (init_objc): Initialize more language-specific hooks.
3404 * objc/Make-lang.in: Update dependencies.
3406 2000-09-16 Geoffrey Keating <geoffk@cygnus.com>
3408 * configure.in: Define macros that affect features before
3409 testing for features. Don't define _XOPEN_SOURCE.
3410 * configure: Regenerated.
3411 * config.in: Regenerated.
3413 Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
3415 * rtlanal.c (rtx_varies_p): Volatile asms vary.
3416 (rtx_unstable_p): Restructure code. Volatile asms
3419 Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3421 * function.h (no_debugging_symbols): New field.
3422 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
3423 Initialize no_debugging_symbols.
3424 (output_inline_function): Save and restore write_symbols and set from
3425 no_debugging_symbols.
3426 * toplev.c (rest_of_compilation): Call save_for_inline.
3427 * tree.h: Update comment.
3429 * stor-layout.c (place_field): Don't do anything if field or
3430 its type are ERROR_MARK.
3432 Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
3434 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
3435 (read_include_file): Ensure inc->mmaped is initialized.
3437 2000-09-16 Richard Henderson <rth@cygnus.com>
3439 * cppiles.c (purge_cache): Use PTR not caddr_t.
3441 2000-09-16 Hans-Peter Nilsson <hp@axis.com>
3443 * gcc.c: In description for %{<S}, say the option removed is -S.
3444 * invoke.texi (Spec Files): Ditto.
3446 2000-09-16 Andreas Jaeger <aj@suse.de>
3448 * configure.in: Always define _GNU_SOURCE to make interfaces
3449 visible that were hidden by only defining _GNU_SOURCE.
3450 * configure: Regenerated.
3452 Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
3454 * cpplex.c (push_macro_context): Set an argument's level after
3455 calling parse_args. We could loop infinitely otherwise.
3457 2000-09-15 Tom Tromey <tromey@cygnus.com>
3459 * configure, config.in: Rebuilt.
3460 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
3462 2000-09-15 Greg McGary <greg@mcgary.org>
3464 * cppmacro.c (check_trad_stringification): Check token
3465 text pointers against limit before dereferencing.
3467 2000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
3469 * c-common.c (format_wanted_type): New structure.
3470 (check_format_types): New function.
3471 (check_format_info): Pass all checking of types of format
3472 arguments, including width and precision arguments, to this new
3475 2000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3477 * BUGS: Remove file.
3479 2000-09-15 Jakub Jelinek <jakub@redhat.com>
3481 * config/alpha/alpha.c (override_options): ev6 cache latencies
3482 from Richard Henderson. Don't allow -mmemory-latency=L0.
3484 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
3485 (TARGET_OPTIONS): Add tune=.
3486 (alpha_tune_string): Declare.
3487 * config/alpha/alpha.c (override_options): Add cpu_table.
3488 Use alpha_cpu_string first to set both alpha_cpu and target_flags
3489 and then alpha_tune_string to set alpha_cpu only.
3490 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
3491 * config/alpha/elf.h (ASM_FILE_START): Likewise.
3492 * config/alpha/osf.h (ASM_FILE_START): Likewise.
3493 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
3495 Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
3497 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
3499 (ix86_comparison_operator, ix86_cc_mode): Declare
3500 * i386.h (CCGC, CCGCO): New modes.
3501 (SELECT_CC_MODE): Move offline to ....
3502 * i386.c (ix86_cc_mode): .... here; use new modes.
3503 (ix86_comparison_operator): New.
3504 (fcmov_comparison_operator): Ensure proper mode.
3505 (put_condition_mode): More sanity checking.
3506 (ix86_match_ccmode): Handle new modes.
3507 (ix86_expand_fp_compare): GEU requires CCmode.
3508 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
3510 * i386.md (cmp?i_ccz_1): Remove
3511 (cmp?i_ccno_1): Use ix86_match_ccmode.
3512 (cmp?i_minus_1): New.
3513 (cmpsi_1): New expander.
3514 (cmpqi_ext_1): Use match_ccmode
3515 (cmpqi_ext_3): New expander.
3516 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
3517 (cmpqi_ext_4): Use match_ccmode.
3518 (add?i_?): Use match_ccmode.
3520 (test?i_ccz_1): Remove
3522 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
3523 (testqi_ext_0): Use ix86_match_ccmode.
3524 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
3525 (xorqi_cc_ext_1): New expander.
3526 (shift patterns): Use CCGOCmode for all shifts except for sar.
3527 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
3528 (setcc_3, jcc_3, miv?icc_c): Remove.
3530 2000-09-15 Will Cohen <wcohen@redhat.com>
3532 * dwarf2out.c (add_const_value_attribute): Changed array into a
3533 xmalloced object, so it exists after function exit.
3534 (free_AT): Added case for dw_val_class_float to free allocated
3537 2000-09-15 Kazu Hirata <kazu@hxi.com>
3539 * config/i386/i386.md: Fix a comment typo.
3540 * gcc.c: Fix formatting.
3542 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
3544 * optabs.c (emit_libcall_block): If target is a user variable,
3545 copy to a temporary first.
3546 * expr.c (convert_move): When generating a libcall, make a libcall
3548 * calls.c (emit_library_call_value_1): Don't create a libcall
3549 sequence here; our caller will in most cases do it.
3551 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
3553 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
3554 * sh.md (reload_outsf): Generate recognizable patterns for
3556 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
3557 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
3558 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
3559 truncdfsf2_i4): Change not to use explicit references to fpul.
3560 (floatsisf2_ie): Remove USE of fpscr.
3561 (floatsisf2): Change default expansion to match this.
3562 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
3565 2000-09-15 Richard Henderson <rth@cygnus.com>
3567 * expmed.c (store_bit_field): Consider naturally aligned
3568 memory for direct reference.
3570 2000-09-15 Richard Henderson <rth@cygnus.com>
3572 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
3573 AND addresses into alias set 0.
3574 (alpha_expand_unaligned_store): Likewise.
3575 (alpha_expand_unaligned_load_words): Likewise.
3576 (alpha_expand_unaligned_store_words): Likewise.
3578 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
3580 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
3581 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
3583 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
3584 rsize of UNITS_PER_WORD.
3586 Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
3588 * cpplex.c (ON_REST_ARG): Correct the test.
3589 (maybe_paste_with_next): Duplicate a token that fail pasting,
3590 and clear its PASTE_LEFT flag, so that nested pasting attempts
3593 2000-09-14 Richard Henderson <rth@cygnus.com>
3595 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
3596 * cse.c (rtx_cost): Likewise.
3597 * optabls.c (expand_binop): Likewise.
3598 (expand_twoval_binop, prepare_cmp_insn): Likewise.
3599 * regclass.c (copy_cost): Likewise.
3600 * reload1.c (reload_cse_move2add): Likewise.
3602 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
3604 * c-parse.in (reswords): Add _Complex.
3606 2000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3608 * gcc.1: Delete documentation for -undef preprocessor option.
3610 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3612 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3613 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
3614 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
3615 Remove undefine before config/elfos.h.
3616 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
3618 2000-09-14 Kazu Hirata <kazu@hxi.com>
3620 * invoke.texi (H8/300 Options): Add -ms2600.
3621 * config/h8300.c (h8300_init_once): Output an error when -ms2600
3622 is used without -ms.
3623 * config/h8300.h (TARGET_MAC): New.
3624 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
3625 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
3626 machine other than H8/S2600.
3627 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
3630 2000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
3632 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
3633 pseudos that refer to the original pseudos, not only to their
3634 equivalent memory locations.
3636 Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3638 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
3639 when making new MEM.
3641 * Makefile.in (LN): Remove duplicate definition.
3643 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
3645 From Joern Rennecke:
3646 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
3647 on an insn and function_invariant_p returns nonzero for the source,
3648 add a REG_EQUAL note.
3650 Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
3652 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
3653 conflict with frame_pointer_rtx.
3655 2000-09-13 Kazu Hirata <kazu@hxi.com>
3657 * loop.c: Fix formatting.
3660 2000-09-13 Richard Henderson <rth@cygnus.com>
3662 * config/ia64/ia64.md (divsf3): New.
3663 (divsf3_internal_lat, divsf3_internal_thr): New.
3664 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
3665 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
3666 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
3667 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
3668 (nmadddf4_alts, nmadddf4_trunc): New.
3669 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
3670 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
3671 (multf3_truncsf_alts, multf3_truncdf_alts): New.
3672 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
3673 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
3674 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
3675 (nmaddtf4_truncdf_alts): New.
3676 (recip_approx): Don't predicate.
3678 2000-09-13 Richard Henderson <rth@cygnus.com>
3680 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
3682 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3684 * flags.h (flag_dump_rtl_in_asm): Declare.
3685 * toplev.c (flag_dump_rtl_in_asm): Define.
3686 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
3687 if -dP is specified.
3688 * rtl.h (print_rtx_head): Declare.
3689 * print-rtl.c (print_rtx_head): Define.
3690 (print_rtx): Print the string pointed to by print_rtx_head
3691 at beginning of each dump line.
3692 (print_rtl): Likewise.
3693 (print_rtl_single): Likewise.
3694 * final.c (final_scan_insn): Dump the insn in the assembly
3696 * gcc.1: Document -dP option.
3697 * invoke.texi (Debugging Options): Likewise.
3699 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3701 * md.texi (Machine Constraints): Document the 68HC11 constraints.
3702 * install.texi (Configurations): Document the 68HC11&68HC12 port.
3703 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
3705 Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
3707 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
3708 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
3709 (*clrstrqi): Likewise.
3710 (xorhi3,xorsi3,absqi2): Likewise.
3711 (one_cmplhi2,one_cmplsi2): Likewise.
3712 (addsi3): Two stupid constraint alternatives removed.
3713 (extendhisi2): Use `movw' for enhanced avr cores.
3714 (zero_extendhisi2): Likewise.
3716 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
3718 * alias.c (find_base_term): Use frame_pointer_rtx
3719 when handling an ADDRESSOF.
3721 * cse.c (canon_hash): Handle USE of BLKmode memory.
3722 (cse_insn): Outgoing arguments for a libcall don't
3723 affect any recorded expressions.
3725 2000-09-12 Tom Tromey <tromey@cygnus.com>
3727 * configure, config.in: Rebuilt.
3728 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
3730 2000-09-12 Jakub Jelinek <jakub@redhat.com>
3732 * c-lex.c (lex_string): Use charwidth to compute bytemask.
3733 * expr.c (expand_expr): Don't optimize constant array references
3734 initialized with wide string constants.
3736 2000-09-13 Michael Hayes <mhayes@cygnus.com>
3738 * loop.c (note_set_pseudo_multiple_uses): Correct.
3740 2000-09-12 Jim Wilson <wilson@cygnus.com>
3742 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
3743 else block, and X has side-effects, then fail.
3745 2000-09-12 Greg McGary <greg@mcgary.org>
3747 * config/mips/mips-protos.h
3748 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
3749 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
3750 (PREDICATE_CODES): Add "trap_cmp_op".
3751 * config/mips/mips.c
3752 (trap_cmp_op, mips_gen_conditional_trap): New functions.
3753 * config/mips/mips.md (trap, conditional_trap): New patterns.
3755 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
3757 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
3760 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3762 * builtins.c (built_in_decls): New array.
3763 (expand_builtin_fputs): New function.
3764 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
3766 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
3768 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
3770 * tree.h (built_in_decls): New array.
3772 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
3774 * convex.md: Use "+" instead of "=" for outputs wrapped in a
3776 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
3778 2000-09-12 Kazu Hirata <kazu@hxi.com>
3780 * haifa-sched.c: Fix formatting.
3782 * genattrtab.c: Fix formatting.
3784 * unroll.c: Fix formatting.
3786 2000-09-12 Bruce Korb <bkorb@gnu.org>
3788 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
3789 remove obsolete code
3790 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
3791 * fixinc/fixincl.tpl: make non-exported arrays static scope
3792 * fixinc/fixincl.x: regenerate
3793 * fixinc/fixlib.h: Use PARAMS, not _P_
3794 * fixinc/fixtests.c: make a type for the test proc & use it
3795 * fixinc/server.h: Use PARAMS, not _P_
3797 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3799 * c-typeck.c (process_init_element): Avoid union init warnings on
3800 floating point zero. Don't crash on unions containing structs.
3802 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3804 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
3805 general_movsrc_operand, and remove CONST_INT from
3806 general_movdst_operand.
3808 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
3810 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
3811 if a reference to non-fixed hardreg is seen. Otherwise, count hard
3812 regs with a higher cost.
3813 (preferrable): Deal with cases where either cost or regcost is
3815 (cse_insn): Use MAX_COST rather than 10000. Always initialize
3817 (COSTS_N_INSNS): Move definition...
3819 (MAX_COST): New macro.
3820 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
3823 2000-09-11 Mark Mitchell <mark@codesourcery.com>
3825 * c-common.h (genrtl_clear_out_block): Remove.
3826 * c-semantics.c (genrtl_clear_out_block): Remove.
3827 (genrtl_while_stmt): Don't call it.
3828 (genrtl_for_stmt): Likewise.
3830 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
3832 * cppfiles.c: Move all default-#defines to top of file.
3833 (open_include_file): Replace by lookup_include_file.
3834 (read_with_read, read_file): Merged into read_include_file.
3835 (stack_include_file, purge_cache): New functions.
3836 (close_cached_fd): Delete.
3837 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
3838 Cache the in-memory buffer, not the file descriptor.
3840 * cpphash.h (struct include_file): Add buffer, st, refcnt,
3842 (xcnew): New utility macro.
3843 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
3844 * cpplib.h (struct cpp_buffer): Remove mapped field.
3846 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
3848 * cpplex.c (parse_string): Accept backslash space newline as a
3850 (lex_line): Likewise.
3851 (_cpp_get_token): Remove hard limit on macro nesting.
3853 2000-09-12 Philipp Thomas <pthomas@suse.de>
3855 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
3856 * configure: Rebuilt.
3858 2000-09-13 Michael Hayes <mhayes@cygnus.com>
3860 * flow.c (split_block): Fix update of registers live at
3863 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
3865 * i386.md (add?i_3, add?i_5): New.
3866 (add?i_4): Rename from add?i_3; Fix compare pattern.
3867 (sub?i_3, xor?i_3, ior?i_3): New.
3869 * genrecog.c (write_tree): Output code to clear insn_extract cache.
3870 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
3871 instead of extract_insn and extract_constrain_insn_cache instead of
3872 extract_insn and constrain_operands.
3873 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
3875 (extract_insn): Clear which_alternative.
3876 (constrain_operands): Set which_alternative to -1 when failed.
3877 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
3880 2000-09-11 Matthew Hiller <hiller@redhat.com>
3882 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
3883 on operand 0 to '+'.
3884 (movstricthi): Likewise.
3886 2000-09-12 Michael Hayes <mhayes@cygnus.com>
3888 * loop.h (LOOP_IVS): New macro.
3889 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
3890 (struct loop_ivs): New.
3891 (struct loop_info): Add ivs field.
3892 (reg_iv_type, reg_iv_info): Delete prototype.
3893 (reg_biv_class, loop_iv_list): Likewise.
3894 * loop.c (record_biv, find_life_end): Pass loop argument.
3895 (reg_iv_type): Remove global array and use
3896 field in loop_regs structure within loop_ivs structure.
3897 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
3898 (first_increment_giv, last_increment_giv): Use entry in
3900 (record_initial): Pass ivs pointer.
3901 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
3903 2000-09-12 Michael Hayes <mhayes@cygnus.com>
3905 * loop.h (LOOP_REGS): New macro.
3906 (struct loop_regs): New.
3907 (struct loop_info): Add regs field.
3908 * loop.c (set_in_loop): Remove global array and store
3909 in loop_regs structure as part of loop_info structure.
3910 (n_times_set, may_not_optimize): Likewise.
3911 (reg_single_usage, moved_once): Likewise.
3912 (count_one_set): Add regs argument.
3913 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
3914 (set_pseudo_multiple_uses): Pass regs pointer.
3916 2000-09-12 Michael Hayes <mhayes@cygnus.com>
3918 * unroll.c (iteration_info): Subsume into loop_iterations.
3919 * loop.h (loop_info): New field iv.
3921 2000-09-12 Michael Hayes <mhayes@cygnus.com>
3923 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
3924 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
3925 (flow_loops_update): New prototype.
3926 (flow_loops_find): Add flags to prototype.
3927 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
3928 * flow.c (flow_loop_pre_header_scan): New.
3929 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
3930 (flow_loop_free): Free pre-header root and trace and exit dominators.
3931 (flow_loops_find): New argument flags.
3932 (flow_loops_update): New function.
3933 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
3935 2000-09-12 Michael Hayes <mhayes@cygnus.com>
3937 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
3938 * flow.c (split_block, update_bb_for_insn): New functions.
3940 2000-09-11 Richard Henderson <rth@cygnus.com>
3942 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
3944 2000-09-11 Richard Henderson <rth@cygnus.com>
3946 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
3947 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
3948 (ia64_override_options): Prevent optimizing division for both
3949 latency and throughput.
3950 (rtx_needs_barrier): Handle frcpa.
3951 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
3952 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
3953 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
3954 (TARGET_SWITCHES): Add -minline-divide-min-latency and
3955 -minline-divide-max-throughput.
3956 (PREDICATE_CODES): Update.
3957 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
3958 (zero_extendsidi2): Likewise. Fix typo in f case insn.
3959 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
3960 (extendsftf2): Likewise.
3961 (extenddftf2): Likewise.
3962 (fix_trunctfdi2_alts): New.
3963 (fixuns_trunctfdi2_alts): New.
3964 (madd*4): Rename from madd*3.
3965 (divsi3, modsi3, udivsi3, umodsi3): New.
3966 (divsi3_internal): New.
3967 (divdi3, moddi3, udivdi3, umoddi3): New.
3968 (divdi3_internal_lat, divdi3_internal_thr): New.
3969 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
3970 (recip_approx): New.
3972 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
3974 * print-rtl.c (debug_call_placeholder_verbose): New variable.
3975 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
3977 * integrate.c (copy_rtx_and_substitute): Don't share
3978 LEAF_REG_REMAPpable registers with the inlined function. Don't
3979 share the function value with calling sequences.
3981 2000-09-11 Jakub Jelinek <jakub@redhat.com>
3983 * c-decl.c (do_case): Fix a typo.
3985 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
3986 to a if the comparison is floating mode and not -ffast-math.
3987 * simplify-rtx.c (simplify_ternary_operation): Likewise.
3989 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
3991 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
3992 gen_ic_invalidate_line.
3994 2000-09-11 Philip Blundell <pb@futuretv.com>
3996 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
3998 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
4000 * install.texi (LANGUAGES): Update to include new languages.
4003 2000-09-11 DJ Delorie <dj@redhat.com>
4005 * gcc.c (main): Don't warn about unused -B prefixes
4006 (unused_prefix_warnings): remove
4008 2000-09-11 Kazu Hirata <kazu@hxi.com>
4010 * final.c: Fix formatting.
4012 * integrate.c: Fix formatting.
4014 2000-09-11 Geoff Keating <geoffk@cygnus.com>
4016 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
4018 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
4020 * reload.c (regno_clobbered_p): Fix thinko in previous change.
4022 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4024 * gcc.1: Document 68hc11 specific options.
4026 2000-09-10 Geoff Keating <geoffk@cygnus.com>
4028 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
4029 (TARGET_LONG_DOUBLE_128): Define.
4030 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
4031 (LONG_DOUBLE_TYPE_SIZE): Redefine.
4032 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
4033 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
4034 of __LONG_DOUBLE_128__.
4035 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
4037 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
4038 (CPP_SYSV_DEFAULT_SPEC): Define.
4039 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
4040 (INIT_TARGET_OPTABS): Define.
4042 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
4043 (RS6000_UITRUNC): Likewise.
4044 (INIT_TARGET_OPTABS): New macro.
4045 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
4046 (trunc_defined): Delete.
4047 (output_prolog): Don't output .extern definitions for fp->int
4048 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
4049 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
4050 (trunc_defined): Delete.
4051 (RS6000_ITRUNC): Moved to aix.h.
4052 (RS6000_UITRUNC): Likewise.
4053 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
4054 only emit a libcall.
4055 (fixuns_truncdfsi2): Delete.
4056 (trunc_call): Delete.
4057 (trunc_call_rtl): Delete.
4059 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4061 * varasm.c (make_decl_rtl): Restore leading star on
4062 DECL_ASSEMBLER_NAME set for decls with an asmspec.
4064 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4066 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
4067 won't give a spurious error for '#pragma pack()'. Simplify
4068 control flow for readability. 'reset' action is not necessary.
4070 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4072 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
4073 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
4074 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
4075 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
4077 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
4078 profile.c, sdbout.c, tradcif.y, tree.c:
4079 Include defaults.h if not already included.
4080 Don't define the above macros.
4082 * Makefile.in: Update dependencies.
4084 2000-09-10 Mark Mitchell <mark@codesourcery.com>
4086 * c-common.h (add_stmt): Change prototype.
4087 (RECHAIN_STMTS): New macro.
4088 (CASE_LABEL_DECL): Likewise.
4089 (genrtl_case_label): Change prototype.
4090 (c_expand_start_case): Remove prototype.
4091 (build_case_label): Change prototype.
4092 (decl_constant_value): Declare.
4093 * c-common.c (check_case_value): Handle C++'s extensions to C
4095 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
4097 * c-parse.in (stmt): Adjust handling of return statements and case
4099 * c-semantics.c (add_stmt): Return the new statement.
4100 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
4101 returned expression. Directly generate RTL, rather than calling
4103 (genrtl_switch_stmt): Don't call c_expand_start_case.
4104 (build_case_label): Take the LABEL_DECL as input, too.
4105 (genrtl_case_label): Just call add_case_node.
4106 (expand_stmt): Adjust calls to genrtl_return_stmt and
4108 * c-tree.h (c_expand_start_case): Declare.
4109 * c-typeck.c (decl_constant_value): Give it external linkage.
4110 (c_expand_return): Don't call expand_return or expand_null_return;
4111 use genrtl_return_stmt instead.
4112 * stmt.c (struct nesting): Remove num_ranges field.
4113 (add_case_node): Give it external linkage.
4114 (expand_start_case): Don't set num_ranges.
4115 (expand_start_case_dummy): Don't clear it.
4116 (pushcase): Rely on add_case_node to handle `default' labels.
4117 (add_case_node): Handle `default' labels.
4118 * tree.c (tree_int_cst_compare): New function.
4119 * tree.h (tree_int_cst_compare): Declare.
4120 (add_case_node): Likewise.
4122 2000-09-10 Richard Henderson <rth@cygnus.com>
4124 * c-parse.in: Revert last change.
4125 (init_reswords): Do not enter disabled keywords into the ridpointers
4126 table, modulo objc weirdness.
4127 (_yylex): Return the canonical spelling for a keyword.
4129 2000-09-10 Philip Blundell <philb@gnu.org>
4131 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
4132 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
4134 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
4136 * alias.c (find_base_term): Handle ADDRESSOF.
4137 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
4139 2000-09-10 Denis Chertykov <denisc@overta.ru>
4141 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
4142 outputting templates with many lines.
4144 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4146 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
4147 to decide whether 64-bit support must be generated.
4149 2000-09-10 Richard Henderson <rth@cygnus.com>
4151 * c-parse.in (asm patterns): Fix volatile check.
4153 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4155 * cppmacro.c (check_trad_stringification): New function.
4156 (save_expansion): If -Wtraditional, warn about stringification of
4159 2000-09-11 Michael Hayes <mhayes@cygnus.com>
4161 * loop.h (struct loop_mem_info): Move from loop.c
4162 (struct loop_info): Add fields store_mems, mems, mems_idx,
4163 mems_allocated, unknown_address_altered,
4164 unknown_constant_address_altered, num_mem_sets, and
4165 first_loop_store_insn.
4167 * loop.c (loop_store_mems): Replace with field in loop_info struct.
4168 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
4169 (unknown_address_altered, unknown_constant_address_altered): Likewise.
4170 (num_mem_sets): Likewise.
4171 (replace_loop_mems, replace_loop_regs): New.
4172 (struct loop_replace_args): New.
4173 (load_mems): Use replace_loop_mems.
4174 (try_copy_prop): Use replace_loop_regs.
4175 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
4177 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4179 * configure.in: Recognize m6811-elf and m6812-elf.
4180 * configure: Regenerate.
4182 2000-09-09 Geoff Keating <geoffk@cygnus.com>
4184 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
4187 2000-09-10 Michael Hayes <mhayes@cygnus.com>
4189 * loop.c (struct movables): New.
4190 (num_movables): Move into struct movables.
4191 (the_movables): Change type to struct movables.
4192 (ignore_some_movables): Change struct movable arg to struct movables.
4193 (force_movables, combine_movables, regs_match_p): Likewise.
4194 (rtx_equal_for_loop_p, move_movables): Likewise.
4195 (scan_loop): Change movables to be of type struct movables.
4196 Replace last_movable with field in movables structure.
4198 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
4200 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
4201 (init_pragma): Avoid warning if pfile happens to be unused.
4202 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
4203 define init_pragma to nothing. Always prototype
4204 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
4206 * c-lex.c (process_directive): Always call dispatch_pragma.
4207 Initialize entering_c_header to 0.
4209 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4211 * config/m68hc11/m68hc11.md: New file, machine description for
4213 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
4214 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
4215 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
4216 * config/m68hc11/m68hc11-protos.h: New file.
4217 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
4218 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
4219 * config/m68hc11/xm-m68hc11.h: New file, target defs.
4220 * config/m68hc11/larith.asm: New file, libgcc routines.
4222 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4224 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
4225 (FPBIT_FUNCS): Add _usi_to_sf.
4226 * config/fp-bit.c (usi_to_float): New function.
4227 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
4228 (usi_to_float): Add appropriate #define.
4230 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
4232 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
4234 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
4235 * i386.md (attr "type"): Add sse and mmx types.
4236 (attr "memory"): Handle them without a crash.
4237 (movsi_1, movdi_2): Allow MMX regs.
4238 (movdi splits): Don't split moves involving MMX regs.
4239 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
4240 (movv4sf_internal, movv4si_internal, movv8qi_internal,
4241 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
4242 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
4243 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
4244 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
4245 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
4246 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
4247 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
4248 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
4249 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
4250 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
4251 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
4252 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
4253 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
4254 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
4255 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
4256 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
4257 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
4258 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
4259 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
4260 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
4261 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
4262 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
4263 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
4264 mmx_clrdi): New patterns.
4266 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
4268 * arm.c: Don't include tm.h directly.
4270 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
4272 * recog.c (validate_replace_rtx_1): Fix confusion about equality
4273 testing; simplify subregs of constants and nested subregs.
4275 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
4277 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
4279 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
4281 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
4283 * rtl.texi (description of USE): Add note about possible pitfalls
4285 From Richard Henderson:
4286 * reload1.c (choose_reload_regs): Compute need_mode properly.
4288 2000-09-07 Richard Henderson <rth@cygnus.com>
4290 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
4291 (__modsi3, __umodsi3): Likewise.
4292 (__udivsi3): Likewise. Normalize the TFmode values.
4294 2000-09-07 Geoff Keating <geoffk@cygnus.com>
4296 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
4298 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
4301 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
4303 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
4304 (cmpeqdi_t): Add output pattern.
4305 (cmpeqdi_t+1): Don't split when not optimizing.
4306 Restore proper splitting operation.
4308 2000-09-07 Richard Henderson <rth@cygnus.com>
4310 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
4311 do not call dispatch_pragma.
4313 2000-09-07 Jim Wilson <wilson@cygnus.com>
4315 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
4316 to CLASS_CANNOT_CHANGE_MODE.
4317 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
4318 mode classes are different.
4320 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
4322 * cpplib.h (struct cpp_options): Add user_label_prefix member,
4323 left out of commit which removed cppulp.c.
4325 2000-09-07 Richard Henderson <rth@cygnus.com>
4327 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
4328 after switch for CASE_DROPS_THROUGH.
4330 2000-09-07 Richard Henderson <rth@cygnus.com>
4332 * loop.c (strength_reduce): Call check_ext_dependant_givs.
4333 Properly extend the biv initial value for the giv.
4334 (record_biv): Zero ext_dependant.
4335 (record_giv): New argument ext_val. Update all callers.
4336 (general_induction_var): Likewise.
4337 (consec_sets_giv): Likewise.
4338 (simplify_giv_expr): Likewise. Fill in ext_val if we find
4339 a sign-extend, zero-extend, or truncate.
4340 (combine_givs_p): Make sure modes are compatible.
4341 (check_ext_dependant_givs): New.
4342 (extend_value_for_giv): New.
4343 * loop.h (struct induction): Add ext_dependant.
4344 * unroll.c (iteration_info): Extend the biv initial value for the giv.
4345 (find_splittable_givs): Likewise.
4346 (final_giv_value): Likewise.
4348 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
4350 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
4351 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
4352 definitions from cpplib.h.
4353 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
4355 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
4356 documentation for REGISTER_TARGET_PRAGMAS.
4358 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
4359 default-pragma callback to implement -Wunknown-pragmas if
4361 * c-parse.in: Move all includes to top of file.
4362 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
4364 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
4366 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
4368 * arm.h, arm-protos.h, arm.c,
4369 c4x.h, c4x-protos.h, c4x.c,
4370 h8300.h, h8300-protos.h, h8300.c,
4371 i370.h, i370-protos.h, i370.c,
4372 i960.h, i960-protos.h, i960.c,
4373 sh.h, sh-protos.h, sh.c,
4374 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
4375 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
4377 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
4378 multiple include guard.
4379 * i370.md (untyped_call): Use GEN_CALL.
4380 (umodsi3): Remove unused variable.
4381 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
4382 * v850.c (output_move_single, output_move_double): Constify
4384 (print_operand): Constify a char *.
4385 * v850.h (struct small_memory_info): Constify name member.
4387 2000-09-07 Kazu Hirata <kazu@hxi.com>
4389 * config/h8300.h: Fix comment typos.
4390 * config/h8300/h8300.md: Likewise.
4391 * config/h8300/lib1funcs.asm: Likewise.
4393 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
4395 * Makefile.in: Remove references to cppulp.{c,o}.
4396 * cppinit.c (initialize_builtins, cpp_start_read,
4397 cpp_handle_option): Update to use cpp_options structure.
4400 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
4402 * c-common.c (time_char_table): Allow %#b and %#h.
4404 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4406 * reorg.c (find_end_label): If the basic block reorder pass moves the
4407 return insn to some other place try to locate it again and put our
4408 end_of_function_label there.
4409 * reorg.c (relax_delay_slots): Check if find_end_label created a
4410 new label that invalidates the current optimazation.
4412 2000-09-07 Catherine Moore <clm@redhat.com>
4414 * unroll.c (unroll_loop): Check for unconditional jumps
4415 to loop continuation. Delete if n_iterations is 1.
4416 (ujump_to_loop_cont): New routine.
4418 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
4420 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
4422 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
4423 to handle multiword modes correctly. All callers and the declaration
4426 2000-09-06 Mark Mitchell <mark@codesourcery.com>
4428 * c-common.h (prep_stmt): Declare.
4429 (lang_expand_stmt): Likewise.
4430 * c-decl.c (lang_expand_stmt): Remove.
4431 * c-semantics.c (lang_expand_stmt): Define.
4432 (prep_stmt): New function.
4433 (expand_stmt): Handle common statement types here.
4435 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4437 * configure.in (sh-*-linux*): Added.
4438 * configure: Rebuilt.
4439 * config/sh/t-linux: New file.
4440 * config/sh/sh.h (USERMODE_BIT): Define.
4441 (TARGET_USERMODE): Likewise.
4442 (TARGET_SWITCHES): New switches for the bits above.
4443 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
4444 * config/sh/linux.h: New file.
4445 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
4446 underscore on linux.
4447 (L_sdivsi3, L_udivsi3): Define for linux.
4448 (L_ic_invalidate): Define.
4449 * invoke.texi (SH Options): Document -musermode.
4451 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4453 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
4454 CSE unless generating PIC.
4456 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
4459 2000-09-06 H.J. Lu (hjl@gnu.org)
4461 * Makefile.in (clean_s1): Depend on stage_b.
4462 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
4463 stage2. They are used for "make compare".
4465 2000-09-06 Mark Mitchell <mark@codesourcery.com>
4467 Move statement-tree facilities from C++ to C front-end.
4468 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
4469 (void_zero_node): New macro.
4470 (struct stmt_tree_s): New type.
4471 (stmt_tree): New typedef.
4472 (struct language_function): New type.
4473 (last_tree): New macro.
4474 (last_expr_type): Likewise.
4475 (walk_tree_fn): New typedef.
4476 (current_stmt_tree): New function.
4477 (begin_stmt_tree): Likewise.
4478 (add_stmt): Likewise.
4479 (finish_stmt_tree): Likewise.
4480 (statement_code_p): Likewise.
4481 (lang_statement_code_p): New variable.
4482 (walk_stmt_tree): New function.
4483 (STMT_IS_FULL_EXPR_P): New macro.
4484 * c-common.c (lang_statement_code_p): New variable.
4485 (c_common_nodes_and_builtins): Initialize void_zero_node.
4486 (statement_code_p): New function.
4487 (walk_stmt_tree): Likewise.
4488 * c-decl.c (language_function): Rename to ...
4489 (c_language_function): ... this. Include language_function.
4490 (push_c_function_context): Adjust accordingly.
4491 (pop_c_function_context): Likewise.
4492 (mark_c_function_context): Likewise.
4493 (current_stmt_tree): Define.
4494 * c-semantics.c (begin_stmt_tree): New function.
4495 (add_stmt): Likewise.
4496 (prune_unused_decls): Likewise.
4497 (finish_stmt_tree): Likewise.
4499 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4501 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
4503 2000-09-06 Kazu Hirata <kazu@hxi.com>
4505 * calls.c: Fix formatting.
4507 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
4509 * config/i386/i386.h (ADDRESS_COST): Fix typo.
4511 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
4513 Integrated preprocessor.
4515 * Makefile.in: Remove all references to c-parse.gperf,
4516 c-gperf.h, and c-parse.h. Remove -d from yacc command line
4517 generating c-parse.c. Update dependencies.
4518 * c-parse.gperf, c-gperf.h: Delete.
4520 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
4521 yy_lim, or yy_get_token. Don't define get_directive_line if
4523 * c-common.h: Add multiple include guard. Define RID values
4524 for every keyword in C, C++, and Objective C. Put all the
4526 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
4527 * c-decl.c (c_decode_option): Handle -lang-objc here.
4528 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
4529 (grokdeclarator): Adjust for new RID scheme.
4530 (extract_interface_info): New stub.
4531 * c-lang.c: Don't declare yy_cur or parse_options.
4532 (lang_init_options): Call cpp_init. Don't call
4534 (lang_init): Don't call check_newline if USE_CPPLIB.
4536 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
4537 Elide lots of unnecessary code if USE_CPPLIB. Delete code
4538 rendered unnecessary by new architecture. Move routines not
4539 shared with C++ to c-parse.in. Maintain a local idea of the
4540 line number. Handle C++ as well as C.
4541 [USE_CPPLIB]: Declare and register callbacks for #ident and
4542 for entering/leaving files.
4543 (init_c_lex, c_lex): Are now the entry points to this file.
4544 (check_newline): Break out directive handling to
4546 (read_ucs, is_extended_char, utf8_extend_token): Moved here
4548 (readescape, parse_float): Overhaul.
4549 (lex_number, lex_string, lex_charconst): Break out of c_lex
4551 (get_fileinfo, update_header_times, dump_one_header,
4552 dump_time_statistics): New and/or moved here from C++.
4553 Support per-file data needed by C++ and per-header timing
4554 statistics (C++ only, at the moment).
4555 * c-lex.h: Update prototypes. Add multiple include guard.
4556 * c-tree.h (struct lang_identifier): Add rid_code field.
4557 (C_IS_RESERVED_WORD, C_RID_CODE): New.
4559 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
4560 reinit_parse_for_function and/or position_after_white_space.
4561 (save_filename, save_lineno): Look ahead before saving.
4562 (label -> identifier ':'): Save file and line before shifting ':'.
4563 (reservedwords): No need to call get_identifier.
4564 (init_parse, finish_parse, yyerror, yylex, yyprint,
4565 make_pointer_declarator): Are now here for C/ObjC.
4566 (rid_to_yy): Conversion table from RID constants to Yacc codes.
4568 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
4569 #pragma registry. Provide dummy implementation of that
4570 interface if !USE_CPPLIB.
4571 * c-pragma.h: Update to match.
4573 * flags.h: Add multiple include guard.
4574 (flag_detailed_statistics): Moved here from C++.
4575 * toplev.c: Define flag_detailed_statistics.
4577 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
4579 * timevar.def (TV_CPP, TV_LEX): New.
4580 * timevar.h: Add multiple include guard.
4582 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
4584 * objc/objc-act.c: Don't mention yy_cur or parse_options.
4585 Initialize cpplib properly. Force lineno to 0 after first
4586 call to check_newline. Don't handle -lang-objc here.
4587 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
4589 2000-09-06 David Edelsohn <edelsohn@gnu.org>
4591 * rs6000.md: Correct function unit definitions for cr_logical and
4593 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
4594 and use portable method for >=0 and floating point >=. Remove
4595 associated matchers.
4597 2000-09-06 Mark Mitchell <mark@codesourcery.com>
4599 * extend.texi: Mark named return value extension as deprecated.
4601 2000-09-06 Geoff Keating <geoffk@cygnus.com>
4603 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
4606 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
4608 * toplev.c (display_help): Fix thinko in documentation.
4610 * diagnostic.h (output_buffer::indent_skip): New fields.
4611 (output_indentation): New macro.
4613 * diagnostic.c (output_indent): New function.
4614 (output_set_prefix, clear_diagnostic_info): Use.
4615 (output_emit_prefix): Predict future indentation.
4617 2000-09-06 DJ Delorie <dj@redhat.com>
4619 * Makefile.in (stage_*): add more dependencies to ensure parallel
4620 builds build correctly
4622 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
4624 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
4625 not bootstrap-lean_f.
4627 2000-09-06 Andreas Schwab <schwab@suse.de>
4629 * mklibgcc.in: Emit rule for libgcc-stage-start.
4630 * Makefile.in (stage1-start, stage2-start, stage3-start,
4631 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
4633 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
4635 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
4636 (update_equiv_regs): Likewise, except for the mn10200 kludge.
4637 (combine_regs): Likewise.
4639 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
4640 * cse.c: Include "basic-block.h".
4641 (struct table_elt): New field REGCOST.
4642 (CHEAP_REG): Delete macro.
4643 (COST): Return 0 for REGs.
4644 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
4645 (notreg_cost): Return 0 for appropriate SUBREGs.
4646 (COSTS_N_INSNS): Return N * 2.
4647 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
4649 (CHEAPER): Use new function preferrable.
4650 (insert): Initialize REGCOST member.
4651 (find_best_addr): Use approx_reg_cost for estimation of register
4653 (cse_insn): Likewise.
4654 * loop.c (iv_add_mult_cost): New function.
4655 (add_cost, shift_cost, mult_cost): Delete variables.
4656 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
4657 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
4658 Make code that detects autoinc opportunities slightly less optimistic.
4659 (simplify_giv_expr): If expression contains other reg that is also a
4660 giv, only increment benefit if this is the only use of that reg.
4661 (consec_sets_giv): Take that change into account.
4662 (combine_givs): Slightly more verbose output.
4664 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
4665 not the cost of an equivalent shift.
4666 * sh-protos.h (addsubcosts): Declare.
4667 * sh.c (addsubcosts): New function.
4668 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
4669 (RTX_COSTS): Tweak. Use addsubcosts.
4670 (ADDRESS_COST): Return higher cost for reg+reg addressing.
4672 2000-09-06 Geoff Keating <geoffk@cygnus.com>
4674 * config/rs6000/rs6000.c (validate_condition_mode): New function.
4675 (branch_comparison_operator): Call validate_condition_mode to
4676 abort rather than returning 0.
4677 (branch_positive_comparison_operator): New function.
4678 (scc_comparison_operator): Call validate_condition_mode to abort
4679 rather than returning 0.
4680 (ccr_bit): Call validate_condition_mode. Update for
4682 (print_operand): Delete %C modifier. Update %E case
4683 to use EQ bit not SO bit.
4684 (rs6000_reverse_condition): New function.
4685 (rs6000_generate_compare): New function.
4686 (rs6000_emit_sCOND): New function.
4687 (rs6000_emit_cbranch): New function.
4688 (output_cbranch): The length of a long branch insn is
4689 now only 8 bytes. Add validate_condition_mode. Use
4690 rs6000_reverse_condition. Remove cror generation.
4692 * config/rs6000/rs6000.h: Update comments.
4693 (PREDICATE_CODES): Add new predicate. Update codes used
4694 by branch_comparison_operator and scc_comparison_operator.
4695 * config/rs6000/rs6000-protos.h: Add prototypes for
4696 new external functions.
4697 * config/rs6000/rs6000.md: Add new scheduling parameters
4698 for cr_logical instructions. Change length of branch
4700 (bCOND patterns): Call rs6000_emit_cbranch.
4701 (sCOND patterns): Call rs6000_emit_sCOND.
4702 (branch patterns): Change lengths to 4.
4703 (cr logical patterns): New.
4705 2000-09-06 Richard Henderson <rth@cygnus.com>
4707 * config/i386/i386.md (call_pop): Fix test for setting
4708 current_function_uses_pic_offset_table.
4709 (call, call_value_pop, call_value): Likewise.
4711 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
4713 * timevar.c (timevar_add): Delete.
4714 (timevar_get): Also count time since the selected timer was
4715 last updated. Do not examine the timevar stack if the
4716 selected timer is standalone.
4718 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4720 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
4722 2000-09-05 Jason Merrill <jason@redhat.com>
4724 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
4725 for 'extern' arrays.
4727 2000-09-05 Richard Henderson <rth@cygnus.com>
4729 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
4730 Eliminate final copy from non-trapping case.
4731 (__divdf3, __divsf3): Likewise.
4733 2000-09-05 Richard Henderson <rth@cygnus.com>
4735 * config/ia64/ia64.md (mulhi3): Fix typo last change.
4736 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
4738 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
4740 * Makefile.in: Restructure bootstrap stages to allow clean
4741 restart after failure.
4743 2000-09-05 Richard Henderson <rth@cygnus.com>
4745 * config/ia64.md (movsi and movdi patterns): Allow moves from
4746 8-bit constants to AR registers.
4748 2000-09-05 Richard Henderson <rth@cygnus.com>
4750 * config/ia64/ia64.md (mulhi3): New.
4752 2000-09-05 Richard Henderson <rth@cygnus.com>
4754 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
4755 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
4756 Optimization Guide, minimum latency alternative.
4757 (__moddi3, __udivdi3, __umoddi3): Likewise.
4758 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
4760 2000-09-05 Bruce Korb <bkorb@gnu.org>
4762 * fixinc/fixincl.c (load_file): always read header files
4763 with sizes that are a multiple of the page size.
4764 & use libiberty's getpagesize for determining that.
4766 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
4768 * gcse.c (hash_string_1): Add prototype.
4769 * cse.c (canon_hash_string): Likewise.
4771 2000-09-04 Craig Newell <CraigN@ieee.org>
4773 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
4775 2000-09-04 Andreas Schwab <schwab@suse.de>
4777 * Makefile.in (STAGESTUFF): Remove libgcc.
4778 (stage1-start, stage2-start, stage3-start): Copy the contents of
4779 the libgcc directory explicitly.
4780 (mostlyclean): Clean libgcc.
4782 2000-09-04 Andrew Haley <aph@redhat.com>
4784 * dwarf2out.c: (stack_adjust_offset): New prototype.
4786 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
4788 * combine.c (make_extraction): Fix rtx_cost comparison to
4791 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
4793 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
4794 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
4795 Add '*' to insn pattern name.
4797 2000-09-04 Jakub Jelinek <jakub@redhat.com>
4799 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
4800 use posn - 1 to index into tokens array.
4801 (maybe_paste_with_next): Adjust caller.
4803 2000-09-03 Geoff Keating <geoffk@cygnus.com>
4805 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
4807 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
4808 (REGNO_REG_CLASS): Use symbolic register
4811 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
4813 * arm.c (final_prescan_insn): If the form of a jump insn isn't
4814 recognized, don't try to conditionally execute it.
4816 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
4818 * config/avr/avr.md ("*tablejump_lib"): New pattern.
4819 (call_value_insn): Right length claculation.
4820 (call_insn): Likewise.
4822 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
4824 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
4825 gas_output_limited_string, gas_output_ascii, output_movqi,
4826 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
4827 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
4828 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
4829 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
4830 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
4831 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
4832 Add "const" as needed to remove warnings.
4834 * config/avr/avr.c (avr_override_options, avr_init_once,
4835 function_prologue, function_epilogue, frame_pointer_required_p,
4836 class_likely_spilled_p, order_regs_for_local_alloc,
4837 avr_address_cost, avr_ret_register): Use K&R style arguments.
4838 (initial_elimination_offset, gas_output_limited_string):
4839 Remove ATTRIBUTE_UNUSED from the used arguments.
4840 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
4841 Use local variables src, dest, base to access operands[].
4842 Rename reg_dest to reg_src if that's what it is.
4843 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
4844 constants to LD_REGS if reg_was_0.
4845 (output_reload_insisf): Change arg 3 to insn length and set it.
4846 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
4847 access to 16-bit I/O register pairs.
4848 (avr_address_cost): Lower cost for the above case.
4849 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
4850 may be clobbered, also for LD_REGS.
4851 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
4854 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
4856 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
4857 macro to test_hard_reg_class function.
4858 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
4859 for loading immediate constants to LD_REGS.
4860 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
4863 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
4865 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
4866 * config/avr/libgcc.S: Lost part of the previous patch.
4868 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4870 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
4871 object before calling pthread_mutex_init.
4873 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
4875 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
4876 config/sh/crtn.asm: New files.
4877 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
4878 (crt1.o, crti.o, crtn.o): New targets.
4879 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
4881 * configure: Rebuilt.
4882 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
4883 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
4884 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
4885 Undefine for config/elfos.h to redefine.
4886 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
4888 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
4890 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
4891 legitimize_pic_address, output_pic_addr_const): Declare.
4892 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
4893 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
4894 (TARGET_SWITCHES): New switch -mprefergot.
4895 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
4896 (PIC_OFFSET_TABLE_REGNUM): Define.
4897 (GOT_SYMBOL_TABLE): Likewise.
4898 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
4899 (ENCODE_SECTION_INFO): Define.
4900 (FINALIZE_PIC): New macros.
4901 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
4902 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
4903 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
4904 (prepare_move_operands): Call emit_pic_move or
4905 emit_pic_const_move if appropriate.
4906 (output_far_jump): For PIC, use braf and output long offset.
4907 (machine_dependent_reorg):
4908 (sh_expand_prologue): Save and initialize the PIC register.
4909 (sh_expand_epilogue): Restore it.
4910 (initial_elimination_offset): Account for it.
4911 (nonpic_symbol_mentioned_p): New function.
4912 (legitimize_pic_address): Likewise.
4913 (output_pic_addr_const): Likewise.
4914 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
4915 (call, call_value): Use them.
4916 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
4917 symPLT_label2reg): New expands.
4918 * invoke.texi (SH Options): Document -mprefergot.
4920 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
4922 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
4923 * gcse.c (hash_string_1): New function.
4924 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
4925 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
4926 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
4927 (canon_hash_string): New function.
4928 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
4929 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
4930 (fold_rtx): Use ASM_OPERANDS accessor macros.
4931 * emit-rtl.c (copy_insn_1): Likewise.
4932 * integrate.c (copy_rtx_and_substitute): Likewise.
4933 * stmt.c (expand_asm_operands): Likewise. Give an
4934 ASM_OPERANDS rtx the mode of the output reg being set from it.
4936 2000-09-01 Fred Fish <fnf@be.com>
4938 * fix-header.c (write_rbrac): Add putc and getc to list of
4939 functions to protect against prior definition as a macro.
4941 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
4943 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
4944 (c_size_type_node): Define.
4945 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
4946 * c-common.c (enum format_lengths, enum format_std_version,
4947 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
4948 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
4949 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
4950 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
4951 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
4952 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
4953 format_types): Define.
4954 (format_char_info, print_char_table, scan_char_table,
4955 time_char_table): Rearrange for new organization of information
4956 about format length modifiers and standard versions.
4957 (T_ST): Redefine to use c_size_type_node.
4958 (check_format_info): Obtain information about length modifiers and
4959 standard versions from tables. Adjust warning message wordings.
4960 Use the name from the user's program for `ll' and `hh' length
4961 modifiers in warning messages. Use more informative names for
4962 wanted types where available (for wchar_t, wint_t, size_t, signed
4963 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
4965 2000-09-01 Jim Wilson <wilson@cygnus.com>
4967 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
4968 * combine.c (distribute_notes): Handle REG_NORETURN.
4969 * rtl.c (reg_note_name): Add REG_NORETURN.
4970 * rtl.h (enum reg_note): Likewise.
4972 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
4974 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
4975 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
4976 (emit_predicate_relation_info): Handle conditional calls with
4978 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
4979 instead of ia64_file_start.
4980 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
4981 * config/ia64/ia64.md (safe_across_calls_all,
4982 save_across_calls_normal): New patterns.
4984 * loop.c (check_final_value): Check for biv use before checking for
4985 giv use. Check for both biv and giv uses. Always set last_giv_use
4986 if there is a giv use.
4988 2000-09-01 Richard Henderson <rth@cygnus.com>
4990 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
4991 (madddi3): Likewise.
4994 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4996 * expr.c (clear_storage): Don't use emit_move_insn unless
4997 either BLKmode or proper size.
4998 (store_constructor): Don't call clear_storage if REG of wrong size.
5000 * flow.c (init_propagate_block_info): Don't mark frame dead at end
5001 of function if returns wiht stack pointer depressed.
5003 2000-09-01 Andrew Haley <aph@redhat.com>
5005 * dwarf2out.c (stack_adjust_offset): New function.
5006 (dwarf2out_stack_adjust): Break out stack adjust logic into
5007 new stack_adjust_offset function. Look inside parallels and
5008 sequences for stack adjustments.
5010 2000-08-31 Jeff Law <law@cygnus.com>
5012 * arm.md: Use no_new_pseudos to determine when it is safe
5013 to create new pseudo registers.
5015 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
5016 when we can safely allocate new registers.
5018 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
5020 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
5021 so that CONCATs are not generated for ASMs.
5022 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
5023 not generating_concat_p.
5024 * function.c (pop_function_context_from): Reset
5025 generating_concat_p.
5026 (prepare_function_start): Likewise.
5027 * rtl.c (generating_concat_p): Define.
5028 * rtl.h (generating_concat_p): Declare.
5029 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
5031 2000-08-22 Philipp Thomas <pthomas@suse.de>
5032 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
5034 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
5037 2000-08-30 Greg McGary <greg@mcgary.org>
5039 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
5040 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
5041 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
5043 2000-08-30 Greg McGary <greg@mcgary.org>
5045 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
5046 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
5047 (TREE_INT_CST): New macro.
5048 * varasm.c (const_hash, compare_constant_1, record_constant_1):
5049 Use new macro TREE_INT_CST.
5051 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
5053 * contrib.texi: Add self.
5055 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
5057 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
5058 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
5061 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5063 * fixinc/gnu-regex.c: Don't define `const'.
5065 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5067 * expr.c (store_constructor): Allow variable bounds of array type.
5068 (expand_expr): Don't blow up if type is ERROR_MARK.
5069 * varasm.c (output_constructor): Don't access lower bound of array
5070 type unless need it if index is supplied (so it can be a variable
5071 if no index is supplied).
5072 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
5073 Other minor cleanups.
5075 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5077 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
5078 for compilations in stage 1 and subsequent stages, respectively.
5079 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
5080 * configure: Rebuilt.
5081 * x-vax, x-vax-gcc: Deleted.
5083 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5085 * c-common.c (declare_function_name): Use func_id_node,
5086 function_id_node, and pretty_function_id_node. Do not make
5087 __func__ visible at file scope.
5088 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
5089 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
5090 (function_id_node, pretty_function_id_node, func_id_node): New
5092 * c-decl.c (init_decl_processing): Initialize function_id_node,
5093 pretty_function_id_node, and func_id_node.
5094 (c_make_fname_decl): Correct comment.
5096 * tree.h (struct tree_identifier): Constify pointer member.
5098 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
5099 * c-pragma.h (struct weak_syms): Constify name and value members.
5100 (add_weak): Constify arguments.
5102 * calls.c (special_function_p): Constify a char *.
5103 (expand_call): Remove variable which is initialized and then
5105 * dependence.c (struct def_use, struct induction, struct subscript):
5106 Constify 'variable' member.
5107 (get_low_bound, have_induction_variable): Constify char * argument.
5108 (find_induction_variable): Add braces to avoid dangling else.
5109 (classify_dependence): Constify char * arrays.
5110 * profile.c (output_func_start_profiler): Constify a char *.
5111 * stor-layout.c (finalize_record_size): Constify a char *.
5112 * tree.c (is_attribute_p): Constify a char *.
5113 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
5115 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
5116 for comprehensibility. Do not call get_identifier if we did
5117 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
5118 create temporary string constants, not ggc_alloc_string. No
5119 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
5120 char * to hold IDENTIFIER_POINTERs.
5122 2000-08-29 Richard Henderson <rth@cygnus.com>
5124 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
5127 2000-08-29 Richard Henderson <rth@cygnus.com>
5129 * reload.c (push_secondary_reload): Allow class == reload_class
5130 if we're using a reload_in/out pattern.
5132 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
5133 the half that does not conflict with the reload register.
5134 (reload_outti): Likewise.
5136 2000-08-29 Kazu Hirata <kazu@hxi.com>
5138 * reload.c: Fix formatting.
5140 * stmt.c: Fix formatting.
5142 * gcc.c: Fix formatting.
5144 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5146 * flags.h (time_report, mem_report): New global flags.
5147 * toplev.c: Define time_report and mem_report.
5148 (f_options): Add -ftime-report and -fmem-report.
5149 (compile_file): Turn on time_report if quiet_flag is off.
5150 Call ggc_print_statistics at very end if mem_report is on.
5151 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
5153 * ggc-common.c (ggc_print_statistics): Rename to
5154 ggc_print_common_statistics; all callers changed. Scale
5155 quantities above 10K to kilobytes and above 10M to megabytes.
5156 * ggc-page.c (ggc_page_print_statistics): Rename to
5157 ggc_print_statistics. Report memory consumed by internal data
5158 structures for each allocation bucket. Scale quantities above
5159 10K to kilobytes and above 10M to megabytes.
5160 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
5161 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
5162 Define tally_leaves always.
5163 (ggc_print_statistics): New function.
5164 * ggc.h: Adjust for renamed functions.
5166 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
5168 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
5169 output_movsisf instead of which_alternative.
5171 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
5173 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
5175 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
5176 (avr_progmem_p): New prototype.
5177 (output_movsisf): Prototype declaration changed.
5178 (output_movqi): New prototype.
5179 (output_movhi): New prototype.
5180 (call_insn_operand): Likewise.
5181 (final_prescan_insn): Likewise.
5182 (avr_simplify_comparision_p): Likewise.
5183 (avr_normalize_condition): Likewise.
5184 (compare_eq_p): Likewise.
5185 (out_shift_with_cnt): Likewise.
5186 (const_int_pow2_p): Likewise.
5187 (output_reload_inhi): Prototype declaration changed.
5189 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
5190 (ldi_reg_rtx): New. rtx for r31.
5191 (avr_init_stack): Initialize as "__stack".
5192 (function_prologue): Use it.
5193 Replace all TARGET_ENHANCED with AVR_ENHANCED.
5194 (avr_mcu_name): Initialize as "avr2".
5195 (avr_enhanced_p, avr_mega_p): New variables.
5196 (mcu_types, avr_override_options): Handle all known MCU types.
5197 Also handle avr1 (only preprocess, assemble and link).
5198 (print_operand): Using of `%K' in output template removed.
5199 (out_movqi_r_mr): Optimized.
5200 (out_movhi_r_mr): Likewise.
5201 (output_movqi): New function.
5202 (output_movhi): Likewise.
5203 (out_movsi_r_mr): Optimized.
5204 (output_movsisf): Compute insn length for `adjust_insn_length'
5205 (out_movqi_mr_r): Optimized.
5206 (out_movhi_mr_r): Optimized.
5207 (adjust_insn_length): Use output_movsisf, output_movqi,
5208 output_movhi for insn length adjusting.
5209 (reg_unused_after): Use dead_or_set_p.
5210 (preferred_reload_class): Now havn't any restriction.
5211 (reg_was_0): New function.
5212 (io_address_p): Likewise.
5213 (const_int_pow2_p): Likewise.
5214 (output_reload_inhi): Likewise.
5215 (output_reload_insisf): Likewise.
5217 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
5218 (LIB_SPEC): Use -lc for all supported devices.
5219 (LIBGCC_SPEC): Use -lgcc for all supported devices.
5220 (AVR_MEGA): Define as avr_mega_p.
5221 (AVR_ENHANCED): New, define as avr_enhanced_p.
5222 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
5223 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
5224 (CRT_BINUTILS_SPECS): Handle all known MCU types.
5225 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
5226 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
5227 (ASM_SPEC): Pass -mmcu=... to the assembler.
5228 Change all -DAVR_* to -D__AVR_*__.
5229 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
5230 Rename library functions to start with two underscores.
5231 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
5233 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
5234 (SUPPORTS_WEAK): Likewise.
5235 (LDI_REG_REGNO): New. Register r31 will be used as temporary
5236 register for loading constants to r0-r14.
5238 * config/avr/avr.md: Replace all TARGET_ENHANCED with
5240 (*mov_r_sp): Removed. Handled by output_movhi.
5241 (*mov_sp_r): Likewise.
5242 (*mov_sp_r_no_interrupts): Likewise
5243 (*mov_sp_r_tiny): Likewise.
5244 (*movqi): Use output_movqi.
5245 (*reload_inqi): New.
5246 (*movhi): Use output_movhi.
5247 (*reload_inhi): New.
5248 (*negsi2): Optimized.
5249 (*negsf2): Likewise.
5250 Added peepholes (define_peephole2) for loading constants to r0-r14
5251 and for using `cpse' command.
5253 * config/avr/libgcc.S: Rename library functions to start with two
5255 Add support for enhanced core.
5256 (_moqhi3): Fix typo, now _modqi3.
5257 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
5258 (__prologue_saves__): Remove test for stack adjust by 0.
5259 (__tablejump__): New.
5261 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
5262 Add multilib support.
5264 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
5266 * loop.c (prescan_loop): Don't check unknown_address_altered
5267 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
5268 to loop_store_mems as necessary.
5269 (loop_invariant_p): Don't check unknown_address_altered
5270 or unknown_constant_address_altered.
5272 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5274 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
5276 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5278 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
5279 print just the filename.
5280 * cpplex.c (_cpp_run_directive): Add additional argument, the
5281 name to give the synthetic buffer. This defaults to
5282 translated "<command line>".
5283 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
5285 (_cpp_define_builtin): New function.
5286 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
5287 * cpphash.h: Update prototypes.
5289 * tradcpp.c (main): Process -D and -U simultaneously, in the
5290 order they appeared on the command line.
5292 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5294 * c-decl.c (define_label): Call warning_with_file_and_line and
5295 error_with_file_and_line instead of plain warning or error.
5297 * c-parse.in (label): Use save_filename/save_lineno to ensure
5298 correct values for calls to define_label.
5300 2000-08-29 Mark Mitchell <mark@codesourcery.com>
5302 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
5304 * expr.c (expand_expr, case TARGET_EXPR): Don't call
5306 * tree.h (get_file_function_name): Remove two duplicate
5309 2000-08-28 Kazu Hirata <kazu@hxi.com>
5311 * tree.c: Fix formatting.
5313 * xcoffout.c: Fix formatting.
5315 2000-08-28 Jason Merrill <jason@redhat.com>
5317 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
5319 2000-08-28 Daniel Berlin <dberlin@redhat.com>
5321 * dwarf2out.c (dwarf2out_finish): Don't bother calling
5322 break_out_includes if it won't do anything.
5324 2000-08-28 Richard Henderson <rth@cygnus.com>
5326 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
5327 (find_reloads): Likewise.
5328 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
5329 (reload_inhi): Likewise.
5331 2000-08-28 Richard Henderson <rth@cygnus.com>
5333 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
5334 (call_insn_operand): Don't expect a surrounding mem.
5335 (constant_call_address_operand): Likewise.
5336 * config/i386/i386.h (PREDICATE_CODES): Update.
5337 * config/i386/i386.md (call patterns): Move the match_operand
5338 for the call destination inside the mem.
5340 2000-08-28 Richard Henderson <rth@cygnus.com>
5342 * local-alloc.c (requires_inout): Don't use reserved range for
5343 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
5344 * recog.c (asm_operand_ok): Likewise.
5345 (preprocess_constraints, constrain_operands): Likewise.
5346 * regclass.c (record_reg_classes): Likewise.
5347 * reload.c (find_reloads): Likewise.
5348 * reload1.c (maybe_fix_stack_asms): Likewise.
5349 (reload_cse_simplify_operands): Likewise.
5350 * stmt.c (expand_asm_operands): Likewise.
5352 * md.texi: Update constraints documentation.
5353 * tm.texi (EXTRA_CONSTRAINT): Update.
5355 2000-08-28 Daniel Berlin <dberlin@redhat.com>
5357 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
5358 (print_die): If we don't know the offset of the
5359 target die, try the symbol. Add a trailing newline.
5360 (reverse_all_dies): New fn.
5361 (dwarf2out_finish): Call it.
5362 (break_out_includes): Reorganize for clarity.
5363 (add_sibling_attributes): Don't call reverse_die_lists.
5364 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
5366 * flags.h: Add flag_eliminate_dwarf2_dups.
5367 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
5369 2000-08-28 Jason Merrill <jason@redhat.com>
5371 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
5372 * dwarf2out.c: #include "md5.h".
5373 (DIE_LABEL_PREFIX): New macro.
5374 (dw_val_struct): Add 'external' flag to val_die_ref.
5375 (add_AT_die_ref, AT_ref): Adjust.
5376 (AT_ref_external, set_AT_ref_external): New fns.
5377 (build_abbrev_table): Call set_AT_ref_external.
5378 (value_format): Call AT_ref_external.
5379 (die_struct): Add die_symbol field.
5380 (new_die): Clear it.
5381 (dwarf_tag_name): Handle BINCL/EINCL.
5382 (dwarf2out_start_source_file): Add BINCL DIE.
5383 (dwarf2out_end_source_file): Add EINCL DIE.
5384 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
5385 (loc_checksum, attr_checksum, die_checksum): New fns.
5386 (is_type_die, is_comdat_die, is_symbol_die): New fns.
5387 (compute_section_prefix, assign_symbol_names): New fns.
5388 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
5389 (output_die): Call output_die_symbol and AT_ref_external.
5390 (output_comdat_comp_unit): New fn, split out from...
5391 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
5393 (output_pubnames, output_aranges): Abort if we see entries from
5395 * toplev.h: Declare file_name_nondirectory.
5396 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
5397 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
5398 (debug_start_source_file): Call dwarf2out_start_source_file
5399 regardless of debug verbosity.
5400 (debug_end_source_file): Similarly.
5401 * tree.h: Declare clean_symbol_name.
5402 * tree.c (clean_symbol_name): Split out from...
5403 (get_file_function_name_long): ...here.
5405 * dwarf2out.c (new_loc_descr): Use calloc.
5406 (splice_child_die): Remove the die from the right parent.
5407 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
5409 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5411 * toplev.c (decode_g_option): Don't give warning for unknown -g
5412 option; return 0 instead.
5413 (main): If -g option is not recognized by front end or
5414 language-independent code, give warning.
5416 2000-08-28 Greg McGary <greg@mcgary.org>
5418 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
5419 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
5420 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
5422 2000-08-27 Greg McGary <greg@mcgary.org>
5424 * cpplex.c (parse_string): Don't look for backslash
5425 before first char in `namebuf'.
5426 * loop.c (strength_reduce): Skip NOTEs.
5428 2000-08-27 Jason Merrill <jason@redhat.com>
5430 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
5431 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
5432 TREE_ASM_WRITTEN, either.
5433 (finish_decl): Adjust.
5435 2000-08-28 Philipp Thomas <pthomas@suse.de>
5437 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
5438 they have been incorporated into the gettext CVS. Change the text to
5439 reflect the current status of NLS. Add instructions for accessing
5440 the gettext CVS and add the patch from Martin v. Loewis.
5442 2000-08-27 Geoff Keating <geoffk@cygnus.com>
5444 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
5445 by using gen_lowpart_common.
5446 (movdi_internal64+6): Likewise.
5448 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
5450 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
5453 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
5454 numbers to the ranges used by GDB.
5456 2000-08-25 Richard Henderson <rth@cygnus.com>
5458 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
5459 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
5460 (ia64_expand_prologue): Likewise.
5461 (ia64_setup_incoming_varargs): Set it. Properly skip the current
5462 argument for stdargs.
5464 2000-08-25 Jason Merrill <jason@redhat.com>
5466 * integrate.c (expand_inline_function): Pull out the original decl.
5468 2000-08-25 Jim Wilson <wilson@cygnus.com>
5470 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
5472 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
5474 2000-08-25 Greg McGary <greg@mcgary.org>
5476 * flow.c (dump_edge_info): Use ARRAY_SIZE.
5477 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
5479 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
5481 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
5483 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
5485 * i386.c (ix86_find_base_term): New.
5486 * i386-protos.h (ix86_find_base_term): Prototype.
5487 * i386.h (FIND_BASE_TERM): Define.
5488 * alias.c (find_base_term): Use it.
5489 * tm.texi (FIND_BASE_TERM): Document it.
5491 * alias.c (true_dependence, write_dependence_p): Unchanging
5492 memory can't conflict with non-unchanging memory.
5494 * alias.c (memrefs_conflict_p): A BLKmode reference
5495 to a symbol (or CONST_INT address) always conflicts
5496 with a reference to another symbol.
5498 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
5500 * c-common.c (time_char_table): Don't allow width and flags with
5503 2000-08-25 Jakub Jelinek <jakub@redhat.com>
5505 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
5506 way as LT and LTU when the second operand has 0 in low word.
5508 2000-08-26 Michael Hayes <mhayes@cygnus.com>
5510 * basic-block.h (struct loop): Rename `exits' field to
5511 `exit_edges'. Add `entry_edges' and `num_entries' fields.
5513 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
5514 (flow_loop_entry_edges_find): Add.
5515 (flow_edge_list_print): Rename from flow_exits_print.
5516 (flow_loops_find): Call flow_loop_entry_edges_find.
5517 (flow_loop_dump): Dump entry_edges list.
5518 (flow_loops_free): Free entry_edges.
5520 2000-08-26 Michael Hayes <mhayes@cygnus.com>
5522 * loop.c (loop_dump_aux, debug_loop): New functions.
5523 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
5525 * flow.c (flow_loops_dump): Add callback parameter.
5526 (flow_loop_dump): Add callback parameter and call it. Move
5527 loop note debugging code to loop_dump_aux.
5529 * basic-block.h (flow_loop_dump): Add callback parameter
5530 (flow_loops_dump): Likewise.
5532 * toplev.c (rest_of_compilation): Add NULL callback function pointer
5533 to call to flow_loops_dump.
5535 2000-08-26 Michael Hayes <mhayes@cygnus.com>
5537 * loop.c (count_loop_regs_set): Replace start and end arguments
5538 with loop argument. All callers udated.
5540 2000-08-26 Michael Hayes <mhayes@cygnus.com>
5542 * loop.c (constant_high_bytes): Delete.
5544 2000-08-26 Michael Hayes <mhayes@cygnus.com>
5546 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
5547 and NOTE_INSN_LOOP_VTOP to...
5548 (find_and_verify_loops) ...here.
5550 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
5552 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
5553 (fini_dummy, init_dummy): Use it.
5555 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
5557 * cpplex.c (is_macro_disabled): Caller has already checked
5558 that we're not a preprocessed file.
5560 2000-08-24 Mark Mitchell <mark@codesourcery.com>
5562 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
5563 (c-iterate.o): Remove target.
5564 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
5565 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
5566 (finish_decl): Don't handle iterators.
5567 (grokdeclarator): Likewise.
5568 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
5569 * gcc/c-gperf.h: Regenerated.
5570 * gcc/c-iterate.c: Removed.
5571 * gcc/c-lex.c (init_lex): Don't handle iterators.
5572 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
5573 (compstmt_primary_start): Remove push_iterator_stack call.
5574 (stmt): Don't allow iterator statements. Replace iterator_expand
5575 with expand_expr_stmt.
5576 (all_iter_stmt): Remove.
5577 (all_iter_stmt_simple): Likewise.
5578 (all_iter_stmt_with_decl): Likewise.
5579 * gcc/c-tree.h (ITERATOR_P): Remove.
5580 (ITERATOR_BOUND_P): Likewise.
5581 (init_iterators): Remove declaration.
5582 (iterator_expand): Likewise.
5583 (iterator_for_loop_start): Likewise.
5584 (iterator_for_loop_end): Likewise.
5585 (iterator_for_loop_record): Likewise.
5586 (push_iterator_stack): Likewise.
5587 (pop_iterator_stack): Likewise.
5588 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
5589 (readonly_warning): Likewise.
5590 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
5592 2000-08-24 Jim Wilson <wilson@cygnus.com>
5594 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
5595 Copy type in a TYPE_DECL, just like pushdecl does.
5597 2000-08-24 Richard Henderson <rth@cygnus.com>
5599 * toplev.c (main): Enable flag_reorder_blocks at -O2.
5601 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
5603 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
5604 asked for one page, allocate GGC_QUIRE_SIZE of them and put
5605 the extras on the free list.
5606 (release_pages): Clean up.
5607 (ggc_set_mark): Don't adjust G.allocated here...
5608 (sweep_pages): ... do it here.
5610 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
5612 * cppfiles.c (read_include_file): Rearrange initializations.
5614 2000-08-24 Richard Henderson <rth@cygnus.com>
5616 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
5618 * config/ia64/ia64-protos.h: Update.
5619 * config/ia64/ia64.c (gr_register_operand): New.
5620 (fr_register_operand, grfr_register_operand): New.
5621 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
5622 (grfr_reg_or_8bit_operand): New.
5623 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
5624 use gr_register_operand.
5625 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
5626 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
5627 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
5628 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
5629 (fr_reg_or_fp01_operand): Likewise.
5630 (not_postinc_memory_operand): New.
5631 (ia64_split_timode): Remove unused variables.
5632 (rtx_needs_barrier): Check arguments to cmpxchg.
5633 (builtin_description): Remove.
5634 (bdesc_2argsi, bdesc_2argdi): Remove.
5635 (ia64_init_builtins): Declare all builtins directly.
5636 (ia64_expand_fetch_and_op): Rewrite to be called from
5637 ia64_expand_builtin directly. Use expand_binop and co.
5638 (ia64_expand_op_and_fetch): Likewise.
5639 (ia64_expand_compare_and_swap): Likewise.
5640 (ia64_expand_binop_builtin): Remove.
5641 (ia64_expand_lock_test_and_set): New.
5642 (ia64_expand_lock_release): New.
5643 (ia64_expand_builtin): Use them.
5644 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
5645 (EXTRA_CONSTRAINT): Use it.
5646 (PREDICATE_CODES): Update.
5647 * config/ia64/ia64.md (*): Use gr_register_operand and co.
5648 (mf): Indicate that we set memory as well as use it.
5649 (fetchadd_acq_si): Show memory being modified as well.
5650 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
5651 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
5652 (lock_test_and_set_si, lock_test_and_set_di): Remove.
5653 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
5654 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
5655 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
5656 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
5657 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
5658 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
5659 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
5660 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
5661 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
5662 return type. Pretty print definitions.
5664 2000-08-24 Jim Wilson <wilson@cygnus.com>
5666 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
5667 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
5669 2000-08-24 Jason Merrill <jason@redhat.com>
5671 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
5672 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
5673 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
5674 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
5676 2000-08-24 Greg McGary <greg@mcgary.org>
5678 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
5679 and extendtab within their proper array boundaries.
5680 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
5681 for the entire array.
5683 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
5684 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
5685 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
5686 * config/fr30/fr30.c (fr30_print_operand): Likewise.
5687 * config/i386/dgux.c (output_options): Likewise.
5688 * config/i386/dgux.h (ASM_FILE_START): Likewise.
5689 * config/m88k/m88k.c (output_options): Likewise.
5690 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
5691 * config/mcore/mcore.c (mcore_output_inline_const_forced,
5692 layout_mcore_frame, handle_structs_in_regs): Likewise.
5693 * config/mips/mips.c (output_block_move): Likewise.
5694 * config/rs6000/rs6000.c (rs6000_override_options,
5695 rs6000_file_start): Likewise.
5696 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
5697 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
5698 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
5699 * builtins.c (expand_builtin_setjmp): Likewise.
5700 * expr.c (safe_from_p): Likewise.
5701 * flow.c (life_analysis): Likewise.
5702 * fold-const.c (size_int_type_wide): Likewise.
5703 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
5704 * genattrtab.c (make_length_attrs): Likewise.
5705 * genopinit.c (gen_insn): Likewise.
5706 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
5707 * global.c (global_alloc): Likewise.
5708 * local-alloc.c (find_free_reg): Likewise.
5709 * mips-tdump.c (print_symbol): Likewise.
5710 * mips-tfile.c (parse_def, parse_input): Likewise.
5711 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
5712 * stmt.c (expand_nl_goto_receiver): Likewise.
5713 * stor-layout.c (set_sizetype): Likewise.
5714 * varasm.c (decode_reg_name): Likewise.
5715 * toplev.c (decode_f_option, decode_W_option,
5716 set_target_switch, print_switch_values): Likewise.
5717 (NUM_ELEM): Remove macro.
5718 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
5720 2000-08-24 Greg McGary <greg@mcgary.org>
5722 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
5723 (MAIN_NAME_P, main_identifier_node): New macros.
5724 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
5725 * c-decl.c (start_decl, grokdeclarator, start_function,
5726 store_parm_decls, finish_function): Use MAIN_NAME_P.
5727 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
5728 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5729 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5730 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
5732 2000-08-24 Greg McGary <greg@mcgary.org>
5734 * cppfiles.c (actual_directory): Don't write beyond `dir'
5735 when it contains "".
5736 * real.c (asctoeg): Stay within bounds of etens[][].
5738 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5740 * dependence.c (dependence_string, direction_string,
5741 dump_one_node, dump_node_dependence): Hide unused identifiers.
5742 (get_low_bound, normalize_coefficients): Match definition to
5744 (get_one_coefficient): Initialize variables `value0_is_idx' and
5746 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
5747 (ziv_test): Delete variable `idx', use parameter `sub' instead.
5748 (direction_merge): Avoid automatic aggregate initialization.
5749 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
5750 Initialize variables `dest_idx' and `src_idx'.
5751 (end_dependence_analysis): Avoid C89 style function definition.
5753 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
5755 * c-common.c (time_char_table): Don't allow width with %F.
5756 (check_format_info): Don't allow "Z" length with scanf.
5758 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
5760 * diagnostic.c (finish_diagnostic): Define.
5761 (output_do_printf): Use wrap_text instead of output_add_string.
5762 (default_print_error_function): Avoid embedded '\n'.
5764 * diagnostic.h (flush_diagnostic_buffer): Declare.
5766 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
5768 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
5770 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
5772 * Makefile.in (GCC_PASSES): Add specs.
5774 2000-08-23 Jim Wilson <wilson@cygnus.com>
5776 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
5777 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
5778 EHANDLER nor UHANDLER bit is set.
5779 (__get_except_table): Likewise.
5781 2000-08-23 Nick Clifton <nickc@redhat.com>
5783 * config/arm/lib1funcs.asm: Replace upper case condition codes
5784 with lower case versions.
5786 * config/arm/arm.h (STRUCT_VALUE): Define.
5787 (STRUCT_VALUE_REGNUM): Delete.
5789 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
5791 * cpphash.h (IN_I): New flag for directive table.
5792 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
5794 (_cpp_check_directive): If -fpreprocessed, execute directives
5795 marked with IN_I. Issue no warnings in this case.
5796 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
5798 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
5800 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
5802 (check_format_info): Support printf 'I' flag; warn about it with
5805 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
5807 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
5808 barrier can't be ignored by the alias analysis code.
5810 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
5812 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
5813 works inside fixincl.
5815 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
5817 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
5818 simplify_relational_operation() unless both operands are of
5820 * cse.c (fold_rtx): Likewise.
5822 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
5824 * rtlanal.c (rtx_unstable_p): The pic register is stable
5825 (within one function) and the actual rtx should be used
5826 when checking the registers.
5827 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
5829 * alias.c (true_dependence, write_dependence_p): Fix
5830 bug in previous patch.
5832 * i386.c (ix86_GOT_alias_set): New.
5833 (legitimize_pic_address): Use it.
5835 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
5836 only stable if its address is stable.
5837 (rtx_varies_p): An unchanging MEM can't vary if
5838 its address doesn't vary.
5840 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5842 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
5844 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5846 * vax.h (ASM_SPEC): Pass `-J' to assembler.
5847 * x-vax-gcc: New file for bootstrapping with gcc.
5848 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
5849 * configure.in: Use x-vax-gcc with gcc.
5850 * configure: Rebuilt.
5852 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5854 * toplev.c (rest_of_compilation): Rebuild label notes after
5855 post-reload splitting pass if new labels have been created.
5857 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
5859 * diagnostic.h (output_buffer_state): New macro.
5860 * diagnostic.c (diagnostic_for_decl, sorry,
5861 default_print_error_function, output_do_verbatim,
5862 report_diagnostic, report_problematic_module): Use it.
5864 (output_format): Use wrap_text instead of maybe_wrap_text.
5866 2000-08-22 Nick Clifton <nickc@redhat.com>
5868 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
5869 Common code for ARM divide and modulus functions.
5870 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
5872 (FUNC_END): New macro: Common code at the end of the division and
5874 (THUMB_FUNCTION_START): New macro: Common code at the start of
5876 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
5878 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5880 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
5882 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
5883 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
5886 2000-08-22 Nick Clifton <nickc@redhat.com>
5888 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
5889 restorative additions, test for bottom bits of IP being set,
5890 rather than relying upon the RORs not matching.
5893 2000-08-22 David Edelsohn <edelsohn@gnu.org>
5895 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
5896 text_section() as appropriate instead of emitting text csect
5898 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
5899 (UNIQUE_SECTION): Define macro.
5900 (ASM_OUTPUT_SECTION_NAME): Define macro.
5901 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
5902 on AIX if debugging and -fdata-sections always.
5904 2000-08-22 Steven King <sxking@uswest.net>
5906 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
5908 (LDBL_MAX): Same here.
5910 2000-08-22 Richard Henderson <rth@cygnus.com>
5912 * flow.c (tidy_fallthru_edge): Update b->end properly.
5914 2000-08-22 Stan Cox <scox@redhat.com>
5916 * Makefile.in (OBJS): Add dependence.o.
5917 * dependence.c: New file.
5919 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
5921 * calls.c (check_sibcall_argument_overlap_1): Adjust for
5923 (check_sibcall_argument_overlap): Likewise.
5925 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5927 * invoke.texi (SH Options): Document -m4-nofpu,
5928 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
5929 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
5931 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
5933 * c-common.c (check_format_info): Give the 'some locales' warning
5934 for strftime %Ey rather than the unconditional 'only last 2 digits
5937 2000-08-22 Richard Henderson <rth@cygnus.com>
5939 * alias.c (init_alias_analysis): Do not register
5940 struct_value_incoming_rtx or static_chain_rtx as pointing
5943 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
5945 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
5947 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
5949 * diagnostic.h (report_problematic_module): Declare.
5950 * diagnostic.c (report_problematic_module): New function.
5951 (report_error_function): Tweak.
5953 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5955 * stmt.c (expand_goto_internal, fixup_gotos): Only check
5956 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
5958 2000-08-21 Richard Henderson <rth@cygnus.com>
5960 * flow.c (calculate_global_regs_live): Mark frame pointer live
5961 everywhere before reload.
5963 2000-08-21 Jim Wilson <wilson@cygnus.com>
5965 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
5966 INTEL_EXTENDED_IEEE_FORMAT.
5967 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
5968 clear last two bytes of output FP value.
5970 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
5972 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
5974 2000-08-21 Jakub Jelinek <jakub@redhat.com>
5976 * unroll.c (loop_find_equiv_value): If ret is modified between
5977 insn and loop_start, ret might not be equivalent to reg.
5979 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
5981 * c-common.c (init_dollar_format_checking,
5982 maybe_read_dollar_number, finish_dollar_format_checking): New
5984 (dollar_arguments_used, dollar_arguments_count,
5985 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
5987 (check_format_info): Support $ formats for scanf and printf width
5988 and precision. Always increment format_chars to advance past the
5989 '*' of precision, not just when the format parameters are
5992 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5994 * mips.c (block_move_loop, expand_block_move,
5995 function_arg_partial_nregs, save_restore_insns, function_prologue,
5996 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
5998 (function_arg_advance, function_arg): Match argument to format
6001 2000-08-21 Nix <nix@esperi.demon.co.uk>
6003 * gcc.c (do_spec_1): Implement %j spec flag.
6004 Remove dead comment.
6006 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
6007 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
6008 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
6009 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
6011 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
6012 writable) instead of hardcoded value.
6014 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
6016 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
6019 * gcc.c (cc1_options): Do not process -o or run the assembler if
6021 * objc/lang-spec.h: Likewise.
6023 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
6025 * fixinc/fixincl.c (fix_with_system): Pipe the output of
6026 "external" fixes through `cat', to avoid truncating the input
6027 file by redirection.
6029 2000-08-21 Jakub Jelinek <jakub@redhat.com>
6031 * config/i386/i386.md (lea_general_1): Copy insn condition to split
6033 (lea_general_2, lea_general_3): Likewise.
6035 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6037 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
6038 warnings to user code.
6040 * c-lex.c (readescape, yylex): Likewise.
6042 * c-typeck.c (store_init_value, process_init_element): Likewise
6043 (c_expand_start_case): Format.
6045 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6047 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
6049 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
6050 and linker_endian_spec to endian_spec.
6051 (ENDIAN_SPEC): Add %{EB} and %{EL}.
6052 (LINK_SPEC): Remove %{EB} and %{EL}.
6053 (ASM_SPEC): Likewise. Use %(endian_spec).
6055 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6057 * c-tree.h (flag_hosted): Move declaration from here...
6058 * c-common.h (flag_hosted): ... to here.
6059 (flag_noniso_default_format_attributes): New declaration.
6060 * c-decl.c (flag_noniso_default_format_attributes): New variable.
6061 (c_decode_option): Set it appropriately for options choosing
6062 language standard variant.
6063 * c-common.c (init_function_format_info): Only provide default
6064 format attributes if flag_hosted. Only provide the gettext
6065 formats if flag_noniso_default_format_attributes. Update
6067 (check_format_info): Disable treatment of %a as a scanf flag in
6070 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6072 * c-common.c (scan_char_table): Add 'w' to flags for all formats
6074 (check_format_info): Set 'wide' for scanf format widths. Warn for
6075 a zero scanf width. Make the check for writing into a constant
6076 object at the first level of indirection; at later levels, warn if
6077 any type qualifiers are encountered.
6079 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
6081 * reload.c (reload_inner_reg_of_subreg): New function broken out of
6083 (push_reload): Use reload_inner_reg_of_subreg.
6084 (combine_reloads): Do not combine reloads if the input reload
6085 is a SUBREG in which the inner part will need reloading.
6087 * global.c (global_alloc): Avoid passing dumpfile argument to
6089 * toplev.c (rest_of_compilation): Likewise.
6090 * reload.h (reload): Remove dumpfile argument. Callers changed.
6091 (debug_reload, debug_reload_to_stream): Move prototypes here.
6092 * rtl.h (reload): Remove dumpfile argument.
6093 * reload.c (debug_reload): Remove prototype.
6094 (debug_reload_to_stream): Likewise.
6095 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
6098 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6100 * diagnostic.c (context_as_prefix): Export.
6101 (need_error_newline): Remove.
6102 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
6103 (error_module_changed, record_last_error_module,
6104 error_function_changed, record_last_error_function): New functions.
6105 (initialize_diagnostics): Default intialize
6106 lang_diagnostic_starter, lang_diagnostic_finalizer.
6107 (init_output_buffer): Tweak.
6108 (file_name_as_prefix): New function.
6109 (announce_function, default_print_error_function,
6110 report_error_function, set_diagnostic_context): Tweak.
6112 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
6114 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
6115 condition expression.
6117 2000-08-20 Richard Henderson <rth@cygnus.com>
6119 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
6121 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
6123 * cppinit.c (cpp_init): Set global flag when called.
6124 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
6126 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
6128 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
6129 before `process_directive' so that newlines won't be missed
6131 (cpp_printf): Increment `print->lineno' when newline is emitted.
6133 * cppmain.c (cb_ident): Likewise.
6134 (cb_define): Likewise.
6135 (cb_undef): Likewise.
6136 (cb_include): Likewise.
6137 (cb_def_pragma): Likewise.
6138 (dump_macros_helper): Likewise.
6140 2000-08-20 Richard Henderson <rth@cygnus.com>
6142 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
6143 assigned before a loop.
6145 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
6146 (ashrsi3, lshrsi3): Likewise.
6148 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
6150 * c-lang.c: #include diagnostic.h
6151 (c_tree_printer): New function.
6152 (lang_init): Initialize lang_printer.
6154 * Makefile.in (c-lang.o): Depends on diagnostic.h
6156 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
6158 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
6160 * diagnostic.c (default_diagnostic_starter,
6161 default_diagnostic_finalizer): New functions.
6162 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
6163 (pedwarn, pedwarn_with_file_and_line, error,
6164 error_with_file_and_line, fatal, warning,
6165 warning_with_file_and_line): Adjust call to report_diagnostic.
6166 (report_diagnostic): Rework.
6167 (set_diagnostic_context): New function.
6169 * diagnostic.h (struct diagnostic_context): New data structure.
6170 (diagnostic_message, diagnostic_argument_list,
6171 diagnostic_file_location, diagnostic_line_location,
6172 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
6173 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
6174 (set_diagnostic_context): Declare.
6175 (report_diagnostic): Change prototype.
6177 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
6179 * fix-header.c (main): Initialize cpplib.
6181 2000-08-19 Michael Meissner <meissner@redhat.com>
6183 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
6184 instructions in it before checking for indirect jumps.
6186 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
6187 in a indirect jump as a potential for conditional execution.
6189 * d30v.h (d30v_init_expanders): Don't declare here.
6190 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
6193 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
6195 * cpp.texi: Add @section for assertions.
6197 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
6199 * loop.c (scan_loop): Use CONST_CALL_P instead of
6200 checking for REG_LIBCALL / REG_RETVAL.
6202 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
6204 * reload1.c (reload_as_needed): Accept dumpfile argument,
6205 pass it to emit_reload_insns.
6206 (emit_reload_insns): Add new dumpfile argument. If non-null
6207 then dump the reloads for each insn into the dumpfile.
6208 (reload): Pass dumpfile to reload_as_needed.
6210 * invoke.texi: Clean up linux-gnu vs linux comments.
6212 2000-08-19 Richard Henderson <rth@cygnus.com>
6214 * config/ia64/ia64.c (reg_or_5bit_operand): New.
6215 (ia64_depz_field_mask): New.
6216 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
6217 (PREDICATE_CODES): Update.
6218 * config/ia64/ia64.md: Update commentary.
6219 (depz_internal): New.
6220 (ashlsi3): Implement directly.
6221 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
6222 (ashldi3): Use shladd.
6223 * config/ia64/ia64-protos.h: Update.
6225 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
6227 * toplev.c (independent_decode_option): Always process -g.
6228 Remove third argument, now unused. Adjust caller to match.
6230 2000-08-18 Richard Henderson <rth@cygnus.com>
6232 * combine.c (make_compound_operation): Break after creating
6235 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
6237 * cpplib.c (cpp_register_pragma_space): Just return if the
6238 namespace is already registered.
6240 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
6242 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
6243 constant amount. Do not generate ROTL instruction.
6245 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
6247 * config/sh/elf.h: Do not include sh/sh.h.
6248 * config/sh/rtems.h: Likewise.
6249 * config/sh/rtemself.h: Do not include sh/elf.h.
6250 * configure.in: Get them included with `tm_file's.
6251 * configure: Rebuilt.
6253 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
6254 * config/sh/sh.c (fpscr_set_from_mem): Use them.
6256 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6258 * stor-layout.c (compute_record_type): Don't use mode of single
6259 field as mode of record if not integer mode of same type.
6261 * regmove.c (perhaps_ends_bb_p): New function.
6262 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
6263 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
6264 (fixup_match_1): Likewise.
6265 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
6266 avoid signed/unsigned warnings.
6268 * function.c (fixup_var_refs_1, case MEM): Update CODE after
6271 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
6273 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
6274 (_cpp_trigraph_map): Declaration moved from cpplex.c
6276 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
6277 instead of 256. Use consistent test for designated initializers.
6278 (cpp_init): Initialize trigraph_map.
6279 (initialize_standard_includes, parse_option): Use memcmp
6282 * cpplex.c (init_trigraph_map): Remove.
6283 (trigraph_ok, trigraph_replace, lex_line): Refer to
6286 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
6287 (do_unassert): Remove unused "next" local.
6289 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
6291 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
6293 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
6296 2000-08-17 Richard Henderson <rth@cygnus.com>
6298 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
6299 the first insn in a sequence.
6301 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
6303 * alias.c (true_dependence, write_dependence_p): A read
6304 involving a label_ref or the constant pool doesn't create
6307 * rtl.h (unchanging): Improve documentation.
6309 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
6311 * cse.c (insert_regs): Remove unused `regno'.
6313 2000-08-17 Neil Booth <NeilB@earthling.net>
6315 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
6316 remove_dup_dirs. If qtail == brack, remove brack not
6318 (remove_dup_dir, remove_dup_dirs): New functions.
6320 2000-08-17 Neil Booth <NeilB@earthling.net>
6322 * cppinit.c (cpp_cleanup): Free include dir chains.
6323 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
6324 (do_unassert): Free the assert with _cpp_free_definition.
6325 * cppmacro.c (_cpp_free_definition): Free memory allocated for
6326 assertions. Make the node a T_VOID node.
6328 2000-08-17 Neil Booth <NeilB@earthling.net>
6330 * cppinit.c (path_include, append_include_chain):
6331 Remove 2nd parameter (struct cpp_pending *).
6332 (path_include, initialize_standard_includes, cpp_handle_option):
6333 Update callers appropriately.
6334 (cpp_handle_option): Use pend.
6336 2000-08-17 Neil Booth <NeilB@earthling.net>
6338 * cppinit.c (sort_options): Remove, put functionality in
6341 (initialize_builtins): Free memory.
6342 (cpp_start_read): Move init_IStable to cpp_init.
6344 * cpplib.h (cpp_init): New prototype.
6345 * cppmain.c (main): Call cpp_init.
6347 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
6349 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
6350 (rtx_unstable_p, rtx_varies_p): Process vectors.
6352 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
6354 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
6355 references to GLOBAL symbols. Use LOCAL where appropriate.
6357 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6359 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
6360 use t-aix41 when host == target.
6362 2000-08-16 Richard Henderson <rth@cygnus.com>
6364 * reload.c (push_secondary_reload): Revert last change.
6365 If we use a reload_in/out pattern, make the when the same
6366 as the primary reload.
6367 (find_reloads): Likewise.
6369 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
6371 * configure.in (libstdcxx-v3): Fix test.
6372 * configure: Regenerate.
6374 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6376 * calls.c (calls_function_1, expand_call): Only test
6377 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
6378 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6380 2000-08-16 Richard Henderson <rth@cygnus.com>
6382 * combine.c (simplify_shift_const): Revert previous two
6383 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
6384 before the main loop.
6386 2000-08-15 Richard Henderson <rth@cygnus.com>
6388 * combine.c (simplify_shift_const): Bound shift count when
6391 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6393 * calls.c (ECF_SP_DEPRESSED): New macro.
6394 (calls_function_1): Treat calling sp-depressed function as alloca.
6395 (emit_call_1): Don't adjust SP if calling sp-depressed function.
6396 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
6397 If sp-depressed, ensure block saves and restores SP.
6398 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
6400 * function.c (keep_stack_depressed): New function.
6401 (thread_prologue_and_epilogue_insns): Call it.
6402 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
6403 to print DECL_OFFSET_ALIGN.
6404 Print no-force-blk and transparent-union flags properly.
6405 * stmt.c (expand_goto_internal): Don't restore stack if last block
6406 and function returns with sp depressed.
6407 (fixup_gotos): Likewise.
6408 (save_stack_pointer): New function, from code in expand_decl.
6409 (expand_decl): Call new function.
6410 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
6411 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
6412 (save_stack_pointer): New declaration.
6414 * diagnostic.c (fatal_function): New variable.
6415 (set_fatal_function): New function.
6417 * diagnostic.h (set_fatal_function): New declaration.
6419 2000-08-15 William Cohen <wcohen@redhat.com>
6421 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
6422 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
6423 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
6425 2000-08-15 Richard Henderson <rth@cygnus.com>
6427 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
6429 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
6431 * arm.c (arm_function_ok_for_sibcall): New function.
6432 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
6433 * arm.md (call expanders): Don't check here for calls that can't
6436 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
6438 * arm.md (splits generating cond_exec): Disable.
6440 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
6442 * arm/linux-elf.h (text_section): Delete declaration.
6444 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
6446 ARM support for unordered FP operations.
6447 * arm-protos.h (arm_comparison_operator): Declare.
6448 * arm.c (arm_comparison_operator): New function.
6449 (arm_select_cc_mode): Add unordered comparison codes.
6450 (get_arm_condition_code): Likewise.
6451 (arm_final_prescan_insn): Can't handle unordered jumps that can't
6452 be done in one insn.
6453 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
6454 * arm.md (all uses of comparison_operator): Replace with
6455 arm_comparison_operator.
6456 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
6458 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
6461 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
6463 * gthr-posix.h: Conditionally include <sched.h>; include
6464 <config.h> from libobjc/.
6466 2000-08-14 Richard Henderson <rth@cygnus.com>
6468 * config/i386/i386.c (legitimize_pic_address): Use Pmode
6471 2000-08-14 Richard Henderson <rth@cygnus.com>
6473 * configure.in (ia64-*): Set float_format for i386 long double.
6475 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
6476 as we would for i386 XFmode.
6477 (PUT_REAL): Likewise.
6478 (endian, ereal_atof, real_value_truncate): Likewise.
6479 (ereal_isneg, toe64, etens, make_nan): Likewise.
6480 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
6482 * config/ia64/ia64-protos.h: Update.
6483 * config/ia64/ia64.c (general_tfmode_operand): New.
6484 (destination_tfmode_operand): New.
6485 (tfreg_or_fp01_operand): New.
6486 (ia64_split_timode): New.
6487 (spill_tfmode_operand): New.
6488 (ia64_expand_prologue): Use TFmode not XFmode.
6489 (ia64_expand_epilogue): Likewise.
6490 (ia64_function_arg): Likewise.
6491 (ia64_function_arg_advance): Likewise.
6492 (ia64_return_in_memory): Likewise.
6493 (ia64_function_value): Likewise.
6494 (ia64_print_operand): Likewise.
6495 (ia64_register_move_cost): Set GR<->FR to 5.
6496 (ia64_secondary_reload_class): Get GR for TImode memory op.
6497 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
6498 (ROUND_TYPE_ALIGN): Remove.
6499 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
6500 (INTEL_EXTENDED_IEEE_FORMAT): Define.
6501 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
6502 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
6503 (MODES_TIEABLE_P): Use TFmode, not XFmode.
6504 (CLASS_MAX_NREGS): Likewise.
6505 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
6506 (PREDICATE_CODES): Update.
6507 * config/ia64/ia64.md (movti): New.
6508 (movti_internal): Use a clobber for memory alternatives.
6509 (reload_inti, reload_outti): New.
6510 (movsfcc_astep): Predicate properly.
6511 (movdfcc_astep): Likewise.
6514 (extendsftf2, extenddftf2): New.
6515 (trunctfsf2, trunctfdf2): New.
6516 (floatditf2, fix_trunctfdi2): New.
6517 (floatunsditf2, fixuns_trunctfdi2): New.
6518 (addtf3, subtf3, multf3, abstf2): New.
6519 (negtf2, nabstf2, mintf3, maxtf3): New.
6520 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
6522 (fr_spill): Use TFmode, not XFmode.
6523 (fr_restore): Likewise.
6524 * config/ia64/lib1funcs.asm (__divtf3): New.
6525 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
6527 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6529 * cse.c (fold_rtx): Avoid empty body in an if-statement.
6531 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
6532 `U' integer constant suffix.
6534 * dwarf2out.c (add_subscript_info): Avoid empty body in an
6537 * sparc/sol2.h (__enable_execute_stack): Prototype.
6539 2000-08-14 David Edelsohn <edelsohn@gnu.org>
6541 * collect2.c: Remove use of AIX import file.
6543 * longlong.h: Test ARCH_PWR not ARCH_POWER.
6545 * rs6000.c (print_operand, case 'E'): Add else.
6547 2000-08-14 Richard Henderson <rth@cygnus.com>
6549 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
6550 (movdi_symbolic): New.
6552 2000-08-14 Jim Wilson <wilson@cygnus.com>
6554 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
6555 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
6556 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
6559 2000-08-14 Richard Henderson <rth@cygnus.com>
6561 * expr.c (emit_group_load): Don't force constants into registers.
6562 Special case source already in the correct mode.
6564 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
6566 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
6567 * fixinc/inclhack.def: Likewise.
6568 * fixinc/mkfixinc.sh: Likewise.
6569 * configure: Regenerate.
6570 * fixinc/fixincl.x: Regenerate.
6571 * install.texi: Document equivalence of linux and linux-gnu.
6573 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6575 * cse.c (insert_regs): Also in REG case: When finding an invalid
6576 value, and we make a new quantity, make sure that it won't be
6577 mistaken by for a valid one by mention_regs.
6579 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
6581 * h8300.md: Remove obsolete peepholes.
6583 2000-08-13 Kazu Hirata <kazu@hxi.com>
6585 * invoke.texi (H8/300 Options): Fix typos.
6586 * config/h8300.c: Fix formatting.
6587 * config/h8300.h: Fix comment typos.
6588 (OVERRIDE_OPTIONS): Fix formatting.
6590 * function.c: Fix formatting.
6592 * cse.c: Fix formatting.
6594 2000-08-13 Geoff Keating <geoffk@cygnus.com>
6596 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
6597 (attempt_auto_inc): Suppress parentheses warning.
6598 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
6599 * loop.c (load_mems): Remove `u' suffix in two places.
6600 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
6602 * config/rs6000/rs6000.h: Likewise.
6603 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
6604 __eabi dummy routine.
6605 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
6608 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
6609 not put stuff in .sdata unnecessarily.
6610 (rs6000_unique_section): New function.
6611 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
6612 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
6614 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
6615 arrays in C99. Don't try to look at DECL_REGISTER of a
6616 COMPONENT_REF. Don't complain twice about the same error.
6618 * fixinc/inclhack.def (aix_pthread): New fix.
6619 (aix_sysmachine): New fix.
6620 * fixinc/fixincl.x: Regenerate.
6622 * expr.c (expand_expr): Call convert_modes when turning a large
6623 multiply into a small one.
6625 2000-08-12 Geoff Keating <geoffk@cygnus.com>
6627 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
6628 the tree structure an exponent rather than an explicit alignment
6629 so it doesn't overflow.
6630 (SET_DECL_OFFSET_ALIGN): New macro.
6631 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
6632 rather than DECL_OFFSET_ALIGN.
6633 (place_field): Likewise.
6634 * expmed.c (store_bit_field): Abort on align==0 to avoid
6635 antisocial machine behaviour.
6637 2000-08-12 Richard Henderson <rth@cygnus.com>
6639 * sibcall.c (uses_addressof): Accept both addressof and
6640 current_function_internal_arg_pointer inside a mem.
6641 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
6642 if current_function_uses_addressof.
6643 * stmt.c (expand_return): Kill tail recursion and HAVE_return
6646 2000-08-11 Richard Henderson <rth@cygnus.com>
6648 * config/ia64/ia64.md (addsi3): Remove expander.
6649 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
6650 (*addsi3_shladd): New.
6652 2000-08-11 Richard Henderson <rth@cygnus.com>
6654 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
6655 (do_restore): Likewise.
6656 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
6657 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
6658 (rtx_needs_barrier): Track actual bit manipulation for
6659 ar.unat moves, gr_spill, and gr_restore.
6660 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
6661 (process_set): Don't handle varargs spills.
6662 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
6663 .mem.offset here instead of in process_set.
6664 (gr_restore): Likewise.
6666 2000-08-11 Richard Henderson <rth@cygnus.com>
6668 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
6670 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
6672 * gcc.texi (The Configuration File): Document
6673 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
6674 UPDATE_PATH_HOST_CANONICALIZATION.
6676 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6678 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
6679 unprototyped function pointer casts on integer constants.
6681 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
6683 * fixproto: Recognize DOS paths with drive letters as absolute paths.
6685 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
6687 * extend.texi (Volatiles): Fix typos.
6689 2000-08-11 Kazu Hirata <kazu@hxi.com>
6691 * flow.c: Fix formatting.
6693 2000-08-11 Richard Henderson <rth@cygnus.com>
6695 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
6696 pattern, always allocate a tertiary scratch register.
6698 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
6699 (reload_inhi): Likewise.
6701 2000-08-11 Richard Henderson <rth@cygnus.com>
6703 * function.c (put_reg_into_stack): Allow type to be NULL.
6704 (schedule_fixup_var_refs): Likewise.
6705 (gen_mem_addressof): Allow decl to be NULL.
6706 (put_addressof_into_stack): Likewise.
6708 * flow.c (merge_blocks_nomove): Be more careful about
6709 locating the beginning of block A.
6711 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
6713 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
6718 * config.in: Reverted the check for <sched.h>.
6720 2000-08-10 Chris Demetriou <cgd@sibyte.com>
6722 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
6723 macros define the name of CTOR and DTOR sections.
6724 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
6725 DTOR_LIST_END): Change to use attributes to specify
6727 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
6728 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
6729 DTOR_LIST_END): Same as in mips/elf.h.
6731 2000-08-10 Drew Moseley <dmoseley@redhat.com>
6733 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
6734 disabling just crt0.o.
6736 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
6738 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
6739 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
6740 (EXTRA_SPECS): Add them.
6741 * arm/lib1funcs.asm: Support builds for interworking.
6742 Use macros to eliminate duplicated pieces of code.
6744 2000-08-10 Kazu Hirata <kazu@hxi.com>
6746 * h8300.c (expand_a_rotate): New.
6747 (emit_a_rotate): Likewise.
6748 (h8300_adjust_insn_length): Add support for the rotate insns.
6749 * h8300.md (rotlqi3): New.
6750 (*rotlqi3_1): Likewise.
6751 (rotlhi3): Likewise.
6752 (*rotlhi3_1): Likewise.
6753 (rotlhi3): Likewise.
6754 (*rotlhi3_1): Likewise.
6755 * h8300-proto.h: Add prototypes for expand_a_rotate and
6758 * h8300.c: Fix comment typos.
6759 (dosize): Declare the variable amount as unsigned.
6760 (get_shift_alg): Fix a comparison between signed and unsigned.
6761 (emit_a_shift): Likewise.
6762 (h8300_adjust_insn_length): Simplify the code.
6764 * c-decl.c: Fix formatting.
6766 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6768 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
6769 warning about non-traditional numeric constant suffixes.
6771 * cppexp.c (parse_number): Likewise.
6773 * invoke.texi: (-Wtraditional): Document new behavior.
6775 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
6777 * gthr-posix.h: Include auto-host.h. Conditionally include
6779 * configure.in: Check for the <sched.h> header file.
6780 * config.in: Added define for HAVE_SCHED_H.
6782 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6784 * c-typeck.c (process_init_element): For -Wtraditional, warn about
6785 initialization of unions.
6787 * invoke.texi (-Wtraditional): Document new behavior.
6789 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
6791 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
6792 instead of extra_c_flags.
6793 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
6794 * configure: Regenerate.
6795 * config.in: Regenerate.
6797 * cpperror.c (cpp_type2name): New function.
6798 * cpplex.c (lex_line): If we issued an error for an invalid
6799 preprocessing directive, discard that logical line.
6800 * cpplib.c (do_line): Call a hook function if the current file
6801 is renamed by #line.
6802 (do_ident): Pass the contents of the string, not the entire
6803 token, to the callback function.
6804 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
6805 (cb.rename_file): New hook function.
6806 (cb.ident): Adjust prototype.
6807 (cpp_type2name): Prototype.
6808 * cppmacro.c (dump_macro_args): Correct precedence lossage.
6810 * cppmain.c (cb_ident): Update for changed interface.
6811 (cb_rename_file): New function.
6812 (main): Set rename callback.
6814 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
6816 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
6817 multi-word registers.
6819 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
6821 * c-common.c (combine_strings, check_format_info): Refer to ISO C
6822 or ISO C89 instead of ANSI C.
6823 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
6824 build_enumerator, do_case): Likewise.
6825 * c-lex.c (parse_float, yylex): Likewise.
6826 * c-parse.in: Likewise.
6827 * c-typeck.c (common_type, build_array_ref, build_binary_op,
6828 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
6829 build_c_cast, convert_for_assignment, set_init_index,
6830 set_init_label, c_expand_start_case): Likewise.
6831 * toplev.c (documented_lang_options, display_help): Likewise.
6833 2000-08-08 Kazu Hirata <kazu@hxi.com>
6835 * h8300.c: Fix formatting.
6836 * h8300.h: Likewise.
6837 * h8300.md: Likewise.
6838 (movsi_h8300hs): Fix formatting of the resulting assembly code.
6840 * reload1.c: Fix formatting.
6842 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
6844 * alpha/alpha.c (alpha_emit_xfloating_libcall):
6845 Use GEN_CALL_VALUE define.
6846 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
6847 * clipper/clipper.md (untyped_call): Likewise.
6848 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
6849 * fx80/fx80.md (untyped_call): Likewise.
6850 * mips/mips.md (untyped_call): Likewise.
6851 * ns32k/ns32k.md (untyped_call): Likewise.
6852 * pa/pa.md (untyped_call): Likewise.
6853 * romp/romp.md (untyped_call): Likewise.
6854 * sparc/sparc.md (untyped_call): Likewise.
6856 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6858 * config/i860/i860.c (singlemove_string): Do not generate assembler
6859 pseudo instructions that must be expanded (that is, with signed
6860 constants larger than 16 bits).
6862 2000-08-08 Richard Henderson <rth@cygnus.com>
6864 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
6865 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
6866 (init_propagate_block_info): Don't kill memory stores at -O0.
6867 (mark_set_1, mark_used_regs): Likewise.
6869 2000-08-08 David Edelsohn <edelsohn@gnu.org>
6871 * rs6000.c (optimization_options): Decorate 'level' as
6873 (mask64_operand): Remove sign-extend thinko.
6874 (rldic_operand): New function.
6875 (load_multiple_operation): regno's are unsigned ints.
6876 (store_multiple_operation): Likewise.
6877 (lmw_operation): Likewise.
6878 (stmw_operation): Likewise.
6879 (includes_lshift_p): shift_mask is unsigned int.
6880 (includes_lshift64_p): New function.
6881 (addrs_ok_for_quad_peep): unsigned int reg1.
6882 (print_operand): Consistently add "else" after
6883 output_operand_lossage().
6884 (print_operand, case 'b'): Fold in case 'W'.
6885 (print_operand, case 'W'): Print rldic MB value.
6886 (output_epilogue): Update Objective-C language string.
6887 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
6888 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
6889 * rs6000.md (ashldi3): Add rldic instruction.
6890 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
6891 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
6894 2000-08-08 Richard Henderson <rth@cygnus.com>
6896 * config/ia64/ia64-protos.h: Remove duplicates. Update
6897 for massive code rearrangements.
6898 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
6899 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
6900 (ia64_local_regs, ia64_need_regstk): Remove.
6901 (ar_ccv_reg_operand): New.
6902 (ia64_gp_save_reg): New.
6903 (struct ia64_frame_info): Combine most of the size elements;
6904 add new gr save elements.
6905 (find_gr_spill): New.
6906 (next_scratch_gr_reg): New.
6907 (mark_reg_gr_used_mask): New.
6908 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
6909 to GR backing store regs when possible.
6910 (ia64_initial_elimination_offset): New.
6911 (ia64_rap_fp_offset): Remove.
6912 (save_restore_insns): Remove.
6913 (setup_spill_pointers): New.
6914 (finish_spill_pointers): New.
6915 (spill_restore_mem): New.
6916 (do_spill, do_restore): New.
6917 (ia64_expand_prologue): Rewrite to use them.
6918 (ia64_expand_epilogue): Likewise.
6919 (ia64_direct_return): Update for current_frame_info changes.
6920 (ia64_function_prologue): Simplify .prologue emission. Emit
6922 (ia64_setup_incoming_varargs): Don't ever emit rtl.
6923 (ia64_dbx_register_number): New.
6924 (ia64_initialize_trampoline): New.
6925 (ia64_secondary_reload_class): Request GR_REGS for integer
6926 arithmetic destined for FR_REGS.
6927 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
6928 (ia64_mark_machine_status): Mark ia64_gp_save.
6929 (rws_access_regno): Rename from rws_access_reg; don't treat
6930 predicates specially.
6931 (rws_access_reg): New. Update all callers.
6932 (rtx_needs_barrier): Remove dead unspecs.
6933 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
6934 (ia64_encode_section_info): Silence signed/unsigned warnings.
6935 (spill_offset, sp_offset, spill_offset_emitted): Remove.
6936 (tmp_reg, tmp_saved): Remove.
6937 (process_set): Rewrite to expect complicated bits via
6938 REG_FRAME_RELATED_EXPR.
6939 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
6940 in the use of ar.ccv; never set RTX_UNCHANGING_P.
6941 (ia64_expand_op_and_fetch): Likewise.
6942 (ia64_expand_compare_and_swap): Likewise.
6943 (ia64_expand_builtin): Likewise.
6944 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
6945 (FIRST_PSEUDO_REGISTER): Update.
6946 (AR_M_REGNO_P): Update.
6947 (FIXED_REGS): Don't mark three local registers as used.
6948 (EXTRA_CC_MODES): New.
6949 (SELECT_CC_MODE): New.
6950 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
6951 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
6952 (FRAME_GROWS_DOWNWARD): Unset.
6953 (STARTING_FRAME_OFFSET): Zero.
6954 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
6955 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
6956 (HARD_FRAME_POINTER_REGNUM): New.
6957 (CAN_DEBUG_WITHOUT_FP): Define.
6958 (TRAMPOLINE_TEMPLATE): Remove.
6959 (TRAMPOLINE_SIZE): Lower to 32.
6960 (TRAMPOLINE_ALIGNMENT): Lower to 64.
6961 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
6962 (PREDICATE_CODES): Update.
6963 (struct machine_function): Add ia64_gp_save.
6964 * config/ia64/ia64.md: Purge unused unspecs.
6965 (movsi patterns): Allow moves to/from AR_M_REGS.
6966 (movdi patterns): Allow moves to/from p0.
6967 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
6968 (gr_spill, gr_restore): Indicate ar.unat read/written.
6969 (nonlocal_goto): Don't pass old frame_pointer.
6970 (nonlocal_goto_receiver): Remove.
6971 (exception_receiver): New.
6972 (builtin_setjmp_setup): New.
6973 (builtin_setjmp_receiver): New.
6974 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
6975 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
6976 (__ia64_restore_stack_nonlocal): Likewise.
6977 (__ia64_trampoline): New.
6978 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
6980 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
6982 2000-08-08 Richard Henderson <rth@cygnus.com>
6984 * frame.h (ia64_frame_state): Add my_psp.
6985 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
6986 (__throw): Pass it in. Don't clobber r7.
6987 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
6988 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
6989 and nothing to do with sp.
6990 (normalize_reg_loc): Use frame->my_psp.
6991 (frame_translate): Handle frame-pointer-less functions. Set
6992 spill_base correctly, in absence of being told.
6993 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
6994 (__ia64_backtrace_helper): New sp argument. Use
6995 builtin_return_address instead of label addresses.
6996 (print_record) [mem_stack_v]: No size member.
6998 2000-08-08 Richard Henderson <rth@cygnus.com>
7000 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
7002 2000-08-08 Richard Henderson <rth@cygnus.com>
7004 * tm.texi (LOCAL_REGNO): Document.
7005 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
7006 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
7007 * reload1.c (reload): Likewise when considering nonlocal labels.
7009 * config/ia64/ia64.h (LOCAL_REGNO): New.
7010 * config/sparc/sparc.h (LOCAL_REGNO): New.
7012 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
7014 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
7016 2000-08-07 Nick Clifton <nickc@redhat.com>
7018 * config/mips/mips.c: Fix compile time warning messages.
7019 * config/mips/mips-protos.h: Add prototype for equality_op.
7021 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
7023 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
7025 * mn10300.md: Use nonimmediate_operand instead of general_operand
7028 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
7030 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
7032 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
7033 * sh.c (expand_block_move): Break long lines.
7034 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
7035 * sh.md (mulsi3): Likewise.
7036 (movdi): Adjust spacing.
7038 2000-08-07 Richard Henderson <rth@cygnus.com>
7040 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
7041 * expr.c (emit_group_store): Don't set it.
7043 2000-08-07 Kazu Hirata <kazu@hxi.com>
7045 * invoke.texi (Options for Debugging Your Program or GCC): Remove
7046 duplicate entries for 'w' and 'z'.
7048 * flow.c: Fix a comment typo.
7050 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7052 * c-parse.in: Changed the language string for Objective-C to "GNU
7055 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7057 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
7058 to improve the Posix thread support for Objective-C.
7060 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
7062 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
7063 CTI_UNSIGNED_PTRDIFF_TYPE.
7064 (signed_size_type_node): Define.
7065 (unsigned_ptrdiff_type_node): Define.
7066 * c-decl.c (init_decl_processing): Create the
7067 signed_size_type_node and unsigned_ptrdiff_type_node types.
7068 * c-common.c (T_SC): Define.
7071 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
7072 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
7074 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
7075 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
7076 flags for %c, %s and %[.
7077 (check_format_info): Only allow leniency for signedness of targets
7078 of character pointers (when pedantic) for formats flagged with
7079 "c", so for strings but not for %hh formats. When pedantic, don't
7080 allow character pointers to substitute for void pointers if a
7081 second level of indirection is present.
7083 2000-08-06 Kazu Hirata <kazu@hxi.com>
7085 * invoke.texi (Options for Debugging Your Program or GCC): Update
7086 the names of dump files.
7088 * h8300.c (dosize): Rearrange code for conciseness.
7089 (split_adds_subs): Likewise.
7091 * loop.c: Fix formatting.
7093 * dwarf2out.c: Fix formatting.
7095 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
7097 * expr.c: Fix formatting.
7099 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7101 * rs6000.c (rs6000_maybe_dead): Prototype.
7103 2000-08-06 Richard Henderson <rth@cygnus.com>
7105 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
7106 HAVE_nonlocal_goto as well.
7107 * config/i960/i960.md (nonlocal_goto): Don't do it here.
7108 * config/pj/pj.md (nonlocal_goto): Likewise.
7110 2000-08-07 Michael Hayes <mhayes@cygnus.com>
7112 * loop.c (try_swap_copy_prop): New function.
7113 (load_mems): Rename copies to load_copies and add new regset
7114 store_copies. Check for sets of shadow registers and mark
7115 in store_copies. Call try_swap_copy_prop for registers
7116 marked in store_copies.
7118 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7120 * objc/objc-act.c: New command line option -fconstant-string-class
7121 to allow specifying a user defined constant string class,
7122 different from NXConstantString.
7124 * toplev.c: Moved the Objective-C specific options to
7125 objc/lang-options.h.
7127 * objc/lang-options.h: Moved the Objective-C specific options from
7128 toplev.c. Added -fconstant-string-class.
7130 2000-08-05 Chris Demetriou <cgd@sibyte.com>
7132 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
7133 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
7134 __CTOR_LIST__ from func_ptr array to just func_ptr, to
7135 avoid extra alignment imposed on arrays.
7136 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
7137 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
7139 * mips.h: Clean up comments and spacing near MASKs.
7140 (TARGET_UNIX_ASM): Delete.
7141 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
7142 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
7145 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
7147 * c-common.c (print_char_table): Add entries for the X/Open '
7148 format flag (print decimals with locale's thousands grouping
7149 character). Make %C expect wint_t.
7150 (check_format_info): If pedantic, warn when the %n$ operand
7151 number form is used. Allow for the ' flag; warn about it if
7154 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
7156 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
7157 type is a float mode, cfun->decl's return type is not, and
7158 TARGET_FLOAT_RETURNS_IN_80387.
7160 2000-08-04 Andreas Schwab <schwab@suse.de>
7162 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
7163 token list, which are always `#' and `pragma'.
7165 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
7167 * tree.c (tree_expr_nonnegative_p): Move to...
7168 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
7169 (rtl_expr_nonnegative_p): New.
7170 * tree.h: Add prototype for rtl_expr_nonnegative_p.
7172 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
7173 CONST_DOUBLE_CHAIN: Move to...
7174 * rtl.h: ...here. Use XCINT/XCEXP.
7176 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
7177 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
7178 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
7181 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
7183 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7185 * config/c4x/c4x.md (return_indirect_internal): New.
7186 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
7188 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7190 * c-common.c (time_char_table): Mark up formats added in C99 and
7191 make other corrections. %D and %g were added in C99. %Og is an
7192 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
7193 C99. %e was added in C99. %Oj is an extension. %G and %z are in
7194 C99 rather than GNU extensions, but %OG and %Oz are extensions.
7195 %h was added in C99. %C was added in C99. %OY and %OC are
7196 extensions. Add the C99 format %F.
7197 (check_format_info): If pedantic and not in C99 mode, warn for C99
7200 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7202 * function.c (schedule_fixup_var_refs): New function, broken out
7203 of put_reg_into_stack.
7204 (put_reg_into_stack): Use it.
7205 (put_var_into_stack): In CONCAT case, fixup up references for
7206 components only after fixing up references to the whole concat.
7208 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
7210 * alias.c (mark_constant_function): Use INSN_P.
7211 (init_alias_analysis): Likewise.
7212 * combine.c (combine_instructions): Use INSN_P.
7213 (can_combine_p): Likewise.
7214 (try_combine): Likewise.
7215 (distribute_notes): Likewise.
7216 (distribute_links): Likewise.
7217 * cse.c (cse_around_loop): Use INSN_P.
7218 (invalidate_skipped_block): Likewise.
7219 (cse_set_around_loop): Likewise.
7220 (cse_end_of_basic_block): Likewise.
7221 (delete_trivially_dead_insns): Likewise.
7222 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
7223 (unshare_all_rtl_1): Likewise.
7224 (next_cc0_user): Likewise.
7225 (try_split make_insn_raw): Likewise.
7226 (remove_unnecessary_notes): Likewise.
7227 * final.c (shorten_branches): Use INSN_P.
7228 (leaf_renumber_regs): Likewise.
7229 (leaf_renumber_regs_insn): Likewise.
7230 * flow.c (find_label_refs): Use INSN_P.
7231 (verify_wide_reg): Likewise.
7232 (notice_stack_pointer_modification): Likewise.
7233 (count_or_remove_death_notes): Likewise.
7234 (verify_flow_info): Likewise.
7235 (clear_log_links): Likewise.
7236 * function.c (fixup_var_refs_insns): Use INSN_P.
7237 (compute_insns_for_mem): Likewise.
7238 * gcse.c (alloc_gcse_mem): Use INSN_P.
7239 (compute_sets): Likewise.
7240 (compute_hash_table): Likewise.
7241 (classic_gcse): Likewise.
7243 (insert_insn_end_bb): Likewise.
7244 (delete_null_pointer_checks_1): Likewise.
7245 * global.c (expand_preferences): Use INSN_P.
7246 (build_insn_chain): Likewise.
7247 * graph.c (node_data): Use INSN_P.
7248 * haifa-sched.c (priority): Use INSN_P.
7249 (rm_line_notes): Likewise.
7250 (rm_other_notes): Likewise.
7251 (find_insn_reg_weight): Likewise.
7252 (init_target_units): Likewise.
7253 (schedule_block): Likewise.
7254 (compute_block_forward_dependences): Likewise.
7255 (debug_dependencies): Likewise.
7256 (set_priorities): Likewise.
7257 * integrate.c (function_cannot_inline_p): Use INSN_P.
7258 (save_parm_insns): Likewise.
7259 (copy_insn_list): Likewise.
7260 * jump.c (mark_all_labels): Use INSN_P.
7261 (never_reached_warning): Likewise.
7262 * lcm.c (optimize_mode_switching): Use INSN_P.
7263 * local-alloc.c (validate_equiv_mem): Use INSN_P.
7264 (memref_used_between_p): Likewise.
7265 (update_equiv_regs): Likewise.
7266 (block_alloc): Likewise.
7267 (no_conflict_p): Likewise.
7268 * loop.c (scan_loop): Use INSN_P.
7269 (find_and_verify_loops): Likewise.
7270 (count_loop_regs_set): Likewise.
7271 (loop_reg_used_before_p): Likewise.
7272 (strength_reduce): Likewise.
7273 (recombine_givs): Likewise.
7274 (check_dbra_loop): Likewise.
7275 (load_mems): Likewise.
7276 (try_copy_prop): Likewise.
7277 * print-rtl.c (print_rtx): Use INSN_P.
7278 * recog.c (find_single_use): Use INSN_P.
7279 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
7280 (next_flags_user): Likewise.
7281 (swap_rtx_condition): Likewise.
7282 * regmove.c (mark_flags_life_zones): Use INSN_P.
7283 (optimize_reg_copy_1): Likewise.
7284 (optimize_reg_copy_2): Likewise.
7285 (optimize_reg_copy_3): Likewise.
7286 (reg_is_remote_constant_p): Likewise.
7287 (fixup_match_2): Likewise.
7288 (regmove_optimize): Likewise.
7289 (fixup_match_1): Likewise.
7290 * regrename.c (build_def_use): Use INSN_P.
7291 (replace_reg_in_block): Likewise.
7292 (consider_use): Likewise.
7293 * reload.c (find_equiv_reg): Use INSN_P.
7294 * reload1.c (reload): Use INSN_P.
7295 (maybe_fix_stack_asms): Likewise.
7296 (calculate_needs_all_insns): Likewise.
7297 (reload_as_needed): Likewise.
7298 (emit_output_reload_insns): Likewise.
7299 (delete_address_reloads_1): Likewise.
7300 (reload_cse_regs_1): Likewise.
7301 (reload_combine): Likewise.
7302 (reload_cse_move2add): Likewise.
7303 * reorg.c (redundant_insn): Use INSN_P.
7304 (dbr_schedule): Likewise.
7305 * resource.c (find_dead_or_set_registers): Use INSN_P.
7306 (mark_target_live_regs): Likewise.
7307 * rtlanal.c (reg_used_between_p): Use INSN_P.
7308 (reg_referenced_between_p): Likewise.
7309 (reg_set_between_p): Likewise.
7310 (reg_set_p): Likewise.
7311 (single_set): Likewise.
7312 (multiple_sets): Likewise.
7313 (find_last_value): Likewise.
7314 (reg_set_last): Likewise.
7315 (find_reg_note): Likewise.
7316 (find_regno_note): Likewise.
7317 * sibcall.c (sequence_uses_addressof): Use INSN_P.
7318 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
7319 * ssa.c (find_evaluations): Use INSN_P.
7320 (rename_block): Likewise.
7321 (rename_equivalent_regs): Likewise.
7322 * unroll.c (loop_find_equiv_value): Use INSN_P.
7323 (set_dominates_use): Likewise.
7324 * varasm.c (mark_constant_pool): Use INSN_P.
7325 (mark_constants): Likewise.
7326 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
7327 (alphaev4_next_group): Likewise.
7328 (alphaev5_next_group): Likewise.
7329 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
7330 (c4x_rptb_rpts_p): Likewise.
7331 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
7332 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
7333 (rs6000_adjust_priority): Likewise.
7334 * config/sh/sh.c (sh_loop_align): Use INSN_P.
7335 (machine_dependent_reorg): Likewise.
7336 (split_branches): Likewise.
7337 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
7339 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
7341 * combine.c (recog_for_combine): Remove the old notes
7342 prior to attempting to recognize the new pattern.
7343 (distribute_notes): Ignore REG_NONNEG notes.
7345 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
7347 * varasm.c (output_constructor): Add .align 0 for packed vars.
7349 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7351 * configure.in: Use default thread_file even when enable_threads is
7352 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
7353 * configure: Rebuilt.
7355 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
7357 2000-08-04 Donn Terry (donnte@microsoft.com)
7359 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
7361 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
7363 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
7364 Delete code that conditionally modifies 'version'.
7365 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
7366 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
7367 * gcc.c (main): Use it.
7368 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
7369 * prefix.c (update_path): Use it.
7370 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
7371 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
7372 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
7374 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
7375 (SUBTARGET_SWITCHES): Adjust.
7376 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
7378 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
7380 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7382 * c-common.h (flag_isoc94): Declare.
7383 * c-decl.c (flag_isoc94): Define.
7384 (c_decode_option): Set flag_isoc94 as appropriate.
7385 * c-common.c (T_PD, T_IM, T_UIM): Define.
7386 (format_char_info): Add tlen and jlen.
7387 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
7389 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
7391 (time_char_table): Add NULL entries for %t and %j.
7392 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
7393 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
7394 Warn for printf %lf if pedantic and not C99. Don't warn for empty
7395 precision. Allow precision argument to be unsigned int. If
7396 pedantic, warn for %p passed an argument not a pointer to possibly
7397 qualified void or a possibly qualified character type, and for
7398 pointer targets of the wrong sign, except for character pointers.
7400 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7402 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
7403 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
7404 (wint_type_node): Define.
7405 * c-decl.c (WINT_TYPE): Define.
7406 (init_decl_processing): Create the wint_type_node type.
7407 * c-common.c (T_WI): Define.
7408 (print_char_table): Use T_WI for %lc format.
7410 2000-08-04 Bruce Korb <bkorb@gnu.org>
7412 * fixinc/: Verified that the MSDOS patch does not break
7413 the UNIX functionality and applied the next three patches
7416 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
7418 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
7419 output file with the temporary one by appending ".X" to generate
7420 the temporary fuile's name. If the output file already has an
7421 extension, replace it with ".X".
7423 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
7424 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
7425 reallocate the command buffer while copying the command-line
7426 argument. Redirect the output directly to the temporary file,
7427 instead of going through another temporary file.
7428 (process): Close the temporary file before unlinking it.
7429 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
7430 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
7431 (run_compiles): Pass p_fixd argument to machine_matches, as it
7434 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
7435 environment, assume there are no symlinks in the include
7436 directory. When cleaning up the DONE files, look for them
7437 case-insensitively. Don't try to remove symlinks if they aren't
7440 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
7441 all callers changed. Declare pz "const char *", to avoid compiler
7444 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
7445 Change prototype of make_raw_shell_str.
7447 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7449 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
7450 (initialize) [__MSDOS__]: Use tempnam.
7451 (initialize): Don't use SIGPIPE if it is not defined.
7453 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
7456 2000-07-25 Bruce Korb <bkorb@gnu.org>
7458 * fixinc/fix*.[ch]: substantially reworked to make it possible
7459 to run this program without using fork(2) or pipe(2) (i.e. in
7462 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7464 * cppdefault.h (WINT_TYPE): Define.
7465 * cppinit.c (builtin_array): Define __WINT_TYPE__.
7466 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
7467 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
7469 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
7471 * (mips_legitimate_address_p): Don't allow register+offset
7472 if the offset is large and negative, and we are compiling
7473 for 64 bit registers.
7475 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7477 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
7478 insn_code_number + 1.
7480 2000-08-04 Kazu Hirata <kazu@hxi.com>
7482 * h8300.c (function_prologue): Rearrange code for conciseness.
7483 (function_epilogue): Likewise.
7484 * h8300.h (OK_FOR_U): Fix formatting.
7486 * cse.c: Fix a comment typo. Fix formatting.
7488 2000-08-03 Richard Henderson <rth@cygnus.com>
7490 * config/i386/i386.md (return_indirect_internal): New.
7491 * config/i386/i386.c (ix86_expand_epilogue): Use it.
7493 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
7495 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
7497 (lex_line): Glue @ onto the beginning of identifiers and
7498 string constants, in Objective-C mode.
7499 (output_token, spell_token): Handle CPP_OSTRING.
7500 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
7501 beginning of a NAME or a STRING, in objc mode.
7503 * cpplib.c (get_define_node): Do not permit identifiers that
7504 begin with @ to be #defined.
7505 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
7506 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
7508 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
7509 * c-tree.h (build_objc_string): Delete prototype.
7510 * objc/objc-tree.def: Delete OBJC_STRING_CST.
7511 * c-lex.c (yylex): Use build_string for all three kinds of strings.
7513 * c-parse.in, objc/objc-act.c: Update commentary.
7515 2000-08-03 Mark Mitchell <mark@codesourcery.com>
7517 * extend.texi: Fix typo in last change.
7519 * extend.texi: Add commentary on statement-expressions and their
7520 interactions with C++.
7522 2000-08-03 Nick Clifton <nickc@cygnus.com>
7524 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
7525 * dwarf.h (LANG_JAVA): Change value to 0x000b.
7527 2000-08-03 Anthony Green <green@cygnus.com>
7529 * dwarf2out.c (gen_compile_unit_die): Add java language support.
7530 (add_bound_info): Check for java language.
7531 (is_java): New function.
7532 * dwarfout.c (output_compile_unit_die): Ditto.
7533 * dwarf.h (dwarf_source_language): Add java source language type.
7534 * dwarf2.h (dwarf_source_language): Ditto.
7536 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
7538 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
7541 * i386.c (ix86_expand_branch): Mode of comparison in
7542 IF_THEN_ELSE is VOIDmode.
7544 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
7546 * gengenrtl.c, rtl.c: Avoid #elif.
7548 2000-08-03 Michael Poole <poole@troilus.org>
7550 * tm.texi (Register Classes): Clarify order of sub-initializers
7551 in REG_CLASS_CONTENTS.
7553 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7555 From SAITOH Masanobu:
7556 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
7558 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
7560 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
7561 is not supported by tradcpp and isn't actually needed for cygwin.
7563 2000-08-03 Kazu Hirata <kazu@hxi.com>
7565 * h8300.c: Fix a comment typo.
7566 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
7568 * jump.c: Fix formatting.
7570 * toplev.c: Fix formatting.
7572 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
7574 * flow.c (find_auto_inc): Verify that we've got a REG before
7575 peeking at its regno. Fail, don't abort if we can't find
7576 the increment of the desired register.
7578 * pa.md (shadd height reduction patterns/splitters): Remove.
7580 2000-08-02 Jim Wilson <wilson@cygnus.com>
7582 * config/ia64/ia64-protos.h (flag_ssa): Declare.
7583 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
7585 2000-08-02 Mark Mitchell <mark@codesourcery.com>
7587 * dce.c: Remove all uses of assert.
7588 * dwarf2out.c: Likewise.
7589 * dwarfout.c: Likewise.
7592 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7594 * gcc.h (lang_specific_driver): Constify second argument.
7595 * gcc.c (translate_options, process_command, main): Likewise.
7596 Constify variables to match. Cast second argument to
7599 * cppspec.c, gccspec.c: Adjust type of second argument to
7600 lang_specific_driver, and update code as necessary.
7602 2000-08-02 Jakub Jelinek <jakub@redhat.com>
7604 * loop.c (scan_loop): Ensure update_end label does not
7605 go away until reg_scan_update is run.
7607 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7609 * c-common.h: Prototype min_precision and c_build_qualified_type here...
7610 * c-tree.h: ... not here.
7611 * errors.h: Prototype fancy_abort.
7613 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
7614 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
7615 * regrename.c (regrename_optimize): Make control flow explicit.
7616 (replace_reg_in_block): Initialize reg_use to 0.
7618 * i386.c (legitimate_address_p): Rename error label to
7619 report_error to avoid namespace clash.
7621 2000-08-02 Kazu Hirata <kazu@hxi.com>
7623 * fold-const.c: Fix formatting.
7625 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
7627 * i386.c (legitimate_address_p): Accept other bases than
7628 pic_offset_table_rtx for GOTOFF constructs.
7630 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
7632 * i386.md (shift to lea splitter): Use const_int_operand.
7634 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7636 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
7637 cppspec.c: Do not use 'legal' or 'illegal' in error messages
7640 * cppmain.c (cb_define, cb_undef): Don't generate any output
7641 if not done_initializing.
7642 * cpplex.c (maybe_paste_with_next): When the token after a ##
7643 is an omitted rest argument, only delete the token before it
7644 if that token is a comma. Do not warn about bogus token
7645 pastes for , ## rest_arg.
7648 * cpp.1: Regenerate.
7650 2000-08-02 Fred Fish <fnf@be.com>
7652 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
7653 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
7656 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
7657 Be directories to search path.
7659 Remove support for __declspec(dllimport) and __declspec(dllexport).
7660 This is leftover cruft from the earlier BeOS gcc port when BeOS
7661 used Microsoft's PE object file format.
7662 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
7663 * config/i386/t-beos (winnt.o): Remove Makefile frag.
7664 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
7665 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
7666 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
7667 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
7668 (REDO_SECTION_INFO_P): Remove.
7669 (ASM_EXPORT_DECL): Remove.
7670 (ASM_DECLARE_FUNCTION_NAME): Remove.
7671 (ASM_DECLARE_OBJECT_NAME): Remove.
7672 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
7673 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
7674 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
7675 (STRIP_NAME_ENCODING): Remove.
7677 Remove support for obsolete version of BeOS that is no longer
7679 * configure.in (i*86-*-beospe*): Remove.
7680 * config/i386/beos-pe.h: Remove.
7682 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
7683 Mark Mitchell <mark@codesourcery.com>
7685 * Makefile.in (OBJS): Added dce.o.
7686 (ssa.o): Updated target to include ssa.h.
7688 (toplev.o): Likewise.
7689 (dce.o): Created target.
7690 * basic-block.h: Added comments.
7691 (INVALID_BLOCK): Added definition.
7692 (connect_infinite_loops_to_exit): Added declaration.
7693 Moved SSA declarations to ssa.h.
7694 * flow.c: Added inclusion of ssa.h.
7695 (struct depth_first_search_dsS, depth_first_search_ds):
7697 (compute_immediate_postdominators): Added definition.
7698 (connect_infinite_loops_to_exit): Likewise.
7699 (flow_dfs_compute_reverse_init): Likewise.
7700 (flow_dfs_compute_reverse_add_bb): Likewise.
7701 (flow_dfs_compute_reverse_execute): Likewise.
7702 (flow_dfs_compute_reverse_finish): Likewise.
7703 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
7704 (LABEL_P): Added definition.
7707 (BARRIER_P): Likewise.
7708 (JUMP_TABLE_DATA_P): Likewise.
7709 (INSN_DEAD_CODE_P): Likewise.
7710 * ssa.c: Replaced inclusions with ssa.h inclusion.
7711 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
7712 (rename_registers): Removed unnecessary variables.
7713 * ssa.h: Created by moving declarations from ssa.c and
7715 * timevar.def: Defined TV_DEAD_CODE_ELIM.
7716 * toplev.c: Added ssa.h inclusion.
7717 (dump_file_index): Added DFI_dce.
7718 (dump_file): Added "dce" entry.
7720 (f_options): Added dce entry.
7721 * invoke.texi: Document -fdce. Emphasize experimental status of
7725 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
7727 * cpperror.c (v_message): Split into _cpp_begin_message and
7728 v_message macro. All callers updated.
7729 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
7732 * cppfiles.c (cpp_syshdr_flags): New function.
7733 (read_include_file): Don't call cpp_output_tokens. Call
7735 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
7736 (cpp_reader_init): Don't initialize token_buffer. Call
7737 _cpp_init_internal_pragmas.
7738 (cpp_cleanup): Don't clear token_buffer.
7739 (cpp_start_read): Don't worry about output from -D processing.
7740 Don't call cpp_output_tokens.
7741 (cpp_finish): Don't dump macros here. Don't call
7743 * cppmacro.c (_cpp_dump_definition): Rename
7744 cpp_dump_definition. Write directly to a FILE *.
7745 (dump_funlike_macro): Delete.
7746 (dump_macro_args): New.
7748 * cpplex.c (TOKEN_LEN): Convert to inline function.
7749 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
7750 cpp_scan_line, _cpp_dump_list): Delete.
7751 (cpp_printf, cpp_output_list): New.
7752 (output_line_command): Don't worry about entering or leaving files.
7753 (cpp_scan_buffer): Just output each token as we hit it.
7754 (process_directive): Don't call cpp_output_tokens.
7755 (_cpp_glue_header_name): Don't use token_buffer.
7756 (output_token, dump_param_spelling): Write directly to a FILE *.
7758 * cpplib.c (pass_thru_directive, dump_macro_name,
7759 pragma_dispatch, do_pragma_gcc): Delete.
7760 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
7761 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
7763 (do_error, do_warning, pragma_dependency): Call
7764 _cpp_begin_message, then cpp_output_list.
7765 (cpp_register_pragma, cpp_register_pragma_space,
7766 _cpp_init_internal_pragmas): New.
7767 (do_pragma): Walk the pragmas table here.
7768 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
7769 do_pragma_dependency): Return void.
7770 (do_pragma_implementation): Moved to cppmain.c.
7772 * cpplib.h: Update prototypes.
7773 (struct cpp_reader): Remove printer, token_buffer,
7774 token_buffer_size, and limit. Add struct cb, and pragmas.
7775 (struct cpp_printer): Remove last_id and written.
7776 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
7777 CPP_ADJUST_WRITTEN): Delete.
7778 * cpphash.h: Update prototypes.
7779 (ufputs): New wrapper.
7781 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
7782 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
7783 (main): Set up callbacks. Register #pragma implementation.
7784 Dump macros from here.
7786 2000-08-01 Geoff Keating <geoffk@cygnus.com>
7788 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
7789 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
7790 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
7791 insns if they have a REG_MAYBE_DEAD note attached.
7792 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
7793 (rs6000_emit_load_toc_table): TOC loads may go dead.
7795 2000-08-01 Jim Wilson <wilson@cygnus.com>
7797 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
7798 type exists before using it. Use number of words as alignment
7800 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
7801 ia64_va_arg): Propagate ia64_function_args changes here.
7803 2000-08-01 Richard Henderson <rth@cygnus.com>
7805 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
7806 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
7808 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
7810 From Joern Rennecke:
7811 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
7812 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
7813 unless TARGET_SH3E is set.
7814 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
7816 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
7817 (ashlsi3_std): New pattern.
7818 (ashlsi3 expander): Use it for TARGET_SH3.
7819 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
7821 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
7823 * loop.c (canonicalize_condition): Use destination, not source to
7824 determine SET's mode.
7826 2000-07-31 Mark Mitchell <mark@codesourcery.com>
7828 * flow.c (clear_log_links): Fix typo.
7830 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
7832 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
7833 on targets which need more than one insn for a compare/cbranch
7836 2000-07-31 Jim Wilson <wilson@cygnus.com>
7838 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
7839 when computing offset.
7841 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
7843 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
7845 2000-07-31 Geoff Keating <geoffk@cygnus.com>
7847 * flow.c (clear_log_links): Nuke global_live_at_start and
7848 global_live_at_end data, since if the log_links stuff is invalid
7849 so is global_live_at_*.
7851 2000-07-31 Richard Henderson <rth@cygnus.com>
7853 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
7855 2000-07-31 Jakub Jelinek <jakub@redhat.com>
7857 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
7858 (_cpp_get_token): Don't macro expand a just pasted token if it
7859 was pasted at no_expand_level.
7861 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
7863 * cppmacro.c (find_param, count_params, save_expansion):
7864 Permit 'defined' as a macro parameter name.
7866 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
7868 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
7869 xcpp to cpp throughout.
7870 (native): Remove unnecessary dependency on cpp.
7872 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
7873 tradcpp to tradcpp0.
7874 (.i spec): Add missing output-file spec to cc1 command line.
7875 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
7877 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
7879 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
7880 (implicit_decl_warning): New function.
7881 (implicitly_declare): Use it.
7882 * c-typeck.c (build_external_ref): Use implicit_decl_warning
7883 to complain about implicit decls of builtins.
7885 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
7886 based on pedantic && flag_isoc99, if not already set.
7887 * c-tree.h: Declare mesg_implicit_function_declaration.
7888 Prototype implicit_decl_warning.
7890 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
7892 * Makefile.in (ssa.o): Updated header files in dependences.
7893 * basic-block.h: Added compute_immediate_postdominators declaration.
7894 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
7896 * flow.c (compute_immediate_dominators): Updated comment.
7897 (compute_immediate_postdominators): Added definition.
7898 * rtl.h (HARD_REGISTER_P): Added definition.
7899 * ssa.c: Include additional header files.
7900 (assert): Added definition.
7901 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
7902 include select hard registers.
7903 (ssa_rename_to_insert): Likewise.
7904 (ssa_rename_from_initialize): Likewise.
7905 (ssa_rename_from_lookup): Likewise.
7906 (original_register): Likewise.
7907 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
7908 include select hard reigsters.
7909 (ssa_rename_from_traverse): Likewise.
7910 (ssa_rename_from_free): Likewise.
7911 (ssa_rename_from_print): Likewise.
7912 (ssa_rename_from_print_1): Likewise.
7913 (ssa_rename_from_hash_function): Likewise.
7914 (ssa_rename_from_equal): Likewise.
7915 (ssa_rename_from_delete): Likewise.
7916 (simplify_to_immediate_dominators): Removed in favor of
7917 flow.c:compute_immediate_dominators.
7918 (find_evaluations_1): Modified to work with hard registers.
7919 (insert_phi_node): Likewise.
7920 (insert_phi_nodes): Likewise.
7921 (struct rename_set_data): Updated prev_reg comment.
7922 (create_delayed_rename): Modified to work with hard registers.
7923 (RENAME_NO_RTX): Updated comment.
7924 (apply_delayed_renames): Modified to work with hard registers.
7925 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
7926 (rename_block): Updated to use revised ssa_rename_to interface.
7927 (rename_registers): Updated to use revised ssa_rename_to and
7928 ssa_rename_from interface.
7929 (convert_to_ssa): Revised to use compute_immediate_dominators and
7930 deal with hard registers.
7931 (make_regs_equivalent_over_bad_edges): Modified to work with hard
7932 registers. Added check for illegal unification of hard register.
7933 (make_equivalent_phi_alternatives_equivalent): Modified to work
7934 with hard registers.
7935 (compute_conservative_reg_partition): Likewise.
7936 (coalesce_if_unconflicting): Modified to work with hard registers
7937 and check for conflicting hard registers.
7938 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
7940 (rename_equivalent_regs_in_insn): Modified to work with hard
7942 (record_canonical_element_1): Added definition.
7943 (check_hard_regs_in_partition): Added definition.
7944 (convert_from_ssa): Added data structure deallocation and check
7945 for illegal hard register unification.
7946 (conflict_hard_regs_p): Added definition.
7947 * toplev.c (rest_of_compilation): Added comment.
7949 2000-07-31 Anthony Green <green@redhat.com>
7951 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
7953 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
7955 * builtins.c (expand_builtin_apply): Don't defer pop during
7958 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7960 * calls.c (combine_pending_stack_adjustment_and_call): Only use
7961 preferred_unit_stack_boundary when it is > 1.
7963 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
7965 * c-common.c (init_function_format_info): Add C99 format functions
7968 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
7969 void' or 'register void' as being the special case of 'void' alone
7970 in a parameter list.
7972 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
7973 discarding qualifiers into a plain warning.
7975 2000-07-31 Kazu Hirata <kazu@hxi.com>
7977 * combine.c: Fix formatting.
7979 * h8300.md: Fix formatting.
7981 * local-alloc.c: Fix formatting.
7983 * h8300.c (get_shift_alg): Remove the variable alg.
7984 (emit_a_shift): Rearrange code to improve readability.
7986 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
7988 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
7989 HImode on all architectures and a combination of HImode and SImode
7990 on H8/300H and H8/S.
7992 * h8300.c (split_adds_subs): Rearrange code for conciseness.
7994 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
7996 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
7999 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
8001 * recog.c (extract_insn): Set operand_mode according to
8002 operand if match_operand is VOIDmode.
8004 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
8006 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
8008 2000-07-31 Geoff Keating <geoffk@cygnus.com>
8010 * c-parse.in (extdefs): Call ggc_collect between external
8013 2000-07-30 Michael Hayes <mhayes@cygnus.com>
8014 Richard Henderson <rth@cygnus.com>
8016 * Makefile.in (OBJS): Add doloop.o.
8017 * doloop.c: New file.
8019 * final.c (insn_current_reference_address): Return 0 before final.
8020 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
8021 * jump.c (any_uncondjump_p): Likewise.
8022 * loop.c (indirect_jump_in_function): Make static.
8023 (strength_reduce): Call doloop_optimize.
8024 (insert_bct, instrument_loop_bct): Remove.
8025 * loop.h (doloop_optimize): Prototype.
8026 * recog.c (split_all_insns): Split all INSN_P.
8027 * toplev.c (flag_branch_on_count_reg): Default on.
8029 * config/c4x/c4x.c (c4x_optimization_options): Don't set
8030 flag_branch_on_count_reg.
8031 * config/i386/i386.c (override_options): Likewise.
8032 * config/rs6000/rs6000.c (optimization_options): Likewise.
8034 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
8036 (dbra_ge): Remove, as well as all it's splitters.
8038 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
8041 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
8042 (ia64_register_move_cost): Declare.
8043 * config/ia64/ia64.c (ar_lc_reg_operand): New.
8044 (struct ia64_frame_info): Add ar_size.
8045 (ia64_compute_frame_size): Set it.
8046 (save_restore_insns): Save and restore ar.lc.
8047 (ia64_register_move_cost): New, moved from header file. Handle
8048 application registers.
8049 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
8050 (emit_insn_group_barriers): Special case doloop_end_internal.
8051 (ia64_epilogue_uses): Mark ar.lc live at end.
8052 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
8053 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
8054 (FIRST_PSEUDO_REGISTER): Make room.
8055 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
8056 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
8057 (REG_ALLOC_ORDER): Update.
8058 (HARD_REGNO_MODE_OK): Update.
8059 (REGISTER_NAMES): Update.
8060 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
8061 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
8062 (REGNO_REG_CLASS): Update.
8063 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
8064 (REGISTER_MOVE_COST): Move out of line.
8065 (PREDICATE_CODES): Update.
8066 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
8067 (addsi3_plus1_alt, adddi3_plus1_alt): New.
8068 (shladd_elim splitter): Allow constants in the predicate.
8069 (doloop_end, doloop_end_internal): New.
8071 2000-07-30 Richard Henderson <rth@cygnus.com>
8073 * genattrtab.c (struct insn_def): Add lineno member.
8074 (struct insn_ent): Likewise.
8075 (struct attr_desc): Likewise.
8076 (struct delay_desc): Likewise.
8077 (struct function_unit_op): Likewise.
8078 (struct function_unit): Likewise.
8079 (check_attr_value): Use message_with_line.
8080 (check_defs): Likewise.
8081 (expand_units): Likewise.
8082 (check_attr_test): Take a lineno argument.
8083 (gen_attr): Likewise.
8084 (gen_insn): Likewise.
8085 (gen_delay): Likewise.
8086 (gen_unit): Likewise.
8087 (main): Give it to them.
8088 (convert_set_attr_alternative): Take an insn_def argument
8089 instead of num_alt and insn_index.
8090 (convert_set_attr): Likewise.
8091 (write_test_expr): Protect INSN_ADDRESSES load
8092 with INSN_ADDRESSES_SET_P.
8094 2000-07-30 Richard Henderson <rth@cygnus.com>
8096 * flow.c (init_propagate_block_info): Use pc_set.
8098 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
8100 * i386.md (*lea_general_[123]) New insns and splits.
8101 (addsi3 to lea splitter): Handle other modes too.
8102 (shlsi3 to lea splitter): Likewise.
8103 (addhi_1_lea, shlhi_1_lea): New patterns.
8104 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
8106 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
8108 * recog.c (general_operand, nonimmediate_operand): Accept
8109 any mode for VOIDmode CONSTANT_P operands.
8111 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
8113 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
8114 instead of replace_rtx.
8115 * recog.c (validate_replace_rtx_subexp): New function.
8116 * recog.h (validate_replace_rtx_subexp): Declare.
8118 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
8120 * combine.c (simplify_set, make_extraction, make_compound_operation
8121 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
8122 as force_to_mode argument.
8124 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
8126 * combine.c (if_then_else_cond): Be sure that mode fits in
8129 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
8131 * combine.c (record_promoted_value): Allow bitsize of mode
8132 to be equivalent to HOST_BITS_PER_WISE_INT.
8134 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
8136 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
8137 Do not call gen_mode_alignment when mode is BLKmode.
8139 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
8141 * loop.c (express_from_1): Fix call of simplify_gen_binary.
8143 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
8145 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
8146 VOIDmode implies both operands to be VOIDmode.
8147 (simplify_ternary_operation): Compute properly the mode of comparison.
8148 * combine.c (combine_simplify_rtx): Likewise.
8150 2000-07-25 Michael Hayes <mph@paradise.net.nz>
8152 * basic-block.h (struct loops): New field rc_order.
8153 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
8154 (flow_loops_free): Free rc_order.
8155 (flow_depth_first_order_compute): New parameter rc_order.
8156 (flow_loops_find): Allocate rc_order and swap usage with
8159 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8160 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8162 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
8163 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
8164 (nodb_call, return_from_epilogue): Likewise.
8165 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
8166 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
8167 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
8168 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
8169 (c4x_valid_type_attribute_p): Likewise.
8170 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
8171 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
8173 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8175 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
8176 and loadhi_big_constant if applicable.
8177 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
8178 and add new splitter.s
8180 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8182 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
8184 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8186 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
8188 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8190 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
8192 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8194 * config/c4x/libgcc.S (divqf3): Improve accuracy.
8196 2000-07-27 Mark Mitchell <mark@codesourcery.com>
8198 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
8199 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
8200 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
8201 (get_prev_bb_note): Likewise.
8202 (remove_scope_notes): Likewise.
8203 * flow.c (commit_one_edge_insertion): Likewise.
8204 (merge_blocks_nomove): Likewise.
8205 (verify_flow_info): Likewise.
8206 * gcse.c (insert_insn_end_bb): Likewise.
8207 * reg-stack.c (emit_swap_insn): Likewise.
8208 * ssa.c (first_insn_after_basic_block_note): New function.
8209 (insert_phi_node): Use it.
8210 (rename_block): Likewise.
8211 (eliminate_phi): Likewise.
8212 (make_regs_equivalent_over_bad_edges): Likewise.
8213 (make_equivalent_phi_alternatives_equivalent): Likewise.
8214 (for_each_successor_phi): Likewise.
8215 (convert_from_ssa): Modify phi-node deletion algorithm.
8217 2000-07-29 Andreas Jaeger <aj@suse.de>
8219 * configure.in (mips*-*-linux*): Use mips*el to check for little
8220 endian MIPS, add tmake_file.
8222 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
8223 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
8224 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
8226 2000-07-28 Richard Henderson <rth@cygnus.com>
8228 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
8229 Sign extend mode size before negating.
8231 2000-07-28 Richard Henderson <rth@cygnus.com>
8233 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
8235 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
8237 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
8238 (cse_insn): Likewise.
8239 (addr_affects_sp_p): Likewise.
8240 * expr.c (move_by_pieces): Likewise.
8241 (clear_by_pieces): Likewise.
8242 * gcse.c (oprs_unchanged_p): Likewise.
8243 * haifa-sched.c (sched_analyze_2): Likewise.
8244 * recog.c (offsettable_address_p): Likewise.
8245 * regclass.c (record_address_regs): Likewise.
8246 * reload.c (find_reusable_reload): Likewise.
8247 (push_reload): Likewise.
8248 (operands_match_p): Likewise.
8249 (decompose): Likewise.
8250 (find_reloads_address_1): Likewise.
8251 (find_inc_amount): Likewise.
8252 * reload1.c (elimination_effects): Likewise.
8253 * resource.c (mark_set_resources): Likewise.
8254 * flow.c (attempt_auto_inc): New function; mostly broken out
8256 (find_auto_inc): Split into two functions and enhanced to
8257 generate POST_MODIFY.
8258 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
8259 * rtl.h (count_all_occurrences): Declare.
8260 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
8262 * rtlanal.c (count_all_occurrences): New function.
8263 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
8264 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
8266 * config/ia64/ia64-protos.h (destination_operand): Declare.
8267 * config/ia64/ia64.c (destination_operand): New function.
8268 (ia64_print_operand): Handle POST_MODIFY.
8269 (rtx_needs_barrier): Likewise.
8270 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
8271 (HAVE_POST_MODIFY_REG): Define to 1.
8272 (MAX_REGS_PER_ADDRESS): Change to 2.
8273 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
8274 (LEGITIMATE_ADDRESS_REG): New helper macro.
8275 (LEGITIMATE_ADDRESS_DISP): Likewise.
8276 (PREDICATE_CODES): Add entry for destination_operand.
8277 * config/ia64/ia64.md (all mov patterns): Use destination_operand
8278 predicate for operand 0.
8280 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8282 * dwarf2out.c: Indent #error directive.
8284 * gbl-ctors.h: Fix typo in comment.
8285 (__do_global_ctors): Prototype.
8287 * gcse.c (record_one_set, pre_delete): Remove unused variables.
8289 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
8290 (print_operand): Initialize variable `t'.
8292 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
8294 * config/arm/arm.md ("call_value"): removed constraints.
8295 Constraints are ignored in expanders.
8296 (*call_value_reg): split =rf into various constraints.
8297 (*call_value_mem): same
8298 (*call_value_symbol): same
8299 (*sibcall_value_insn): same
8301 2000-07-28 Philipp Thomas <pthomas@suse.de>
8303 * install.texi (--enable-nls): Change the description of the NLS
8304 related configure options to match the current state.
8305 (--with-included-gettext): Likewise.
8306 (--enable-maintainer-mode): New description added.
8307 * extend.texi (-fstrict-prototype): Add missing '.'.
8309 2000-07-27 Jim Wilson <wilson@cygnus.com>
8311 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
8312 DECL_INITIAL (decl) == NULL_TREE.
8314 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
8316 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
8317 on insn-attr.h with it.
8318 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
8319 * insn-addr.h: New header.
8320 (insn_addresses_): Renamed from insn_addresses.
8321 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
8322 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
8323 INSN_ADDRESSES_NEW): New macros.
8324 * genattrtab.c (write_test_expr): Use new macros.
8325 * final.c (insn_addresses, init_insn_lengths): Likewise.
8326 (align_fuzz, shorten_branches): Likewise.
8327 (final): Likewise. Do not reject new insns if their addresses
8328 have been added to INSN_ADDRESSES.
8329 * config/arm/arm.c, config/avr/avr.c: Use new macros.
8330 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
8331 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
8332 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
8333 * config/sh/sh.c: Likewise.
8334 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
8336 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
8338 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
8340 * gcc.c (struct prefix_list): Add member priority.
8341 (enum path_prefix_priority): Declare.
8342 (add_prefix): Replace ``first'' with ``priority''. Append new
8343 entry but keep list in priority order.
8344 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
8345 PREFIX_PRIORITY_LAST to add_prefix.
8346 (process_command): Move include kludge - foo/stageN - to before
8349 2000-07-27 Jason Merrill <jason@redhat.com>
8351 * dwarf2out.c (gen_typedef_die): Abort if we get identical
8352 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
8354 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
8356 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
8357 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
8359 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
8361 * c-decl.c (finish_function): Don't treat 'main' specially unless
8362 flag_hosted. In C99 mode, return 0 from 'main' unless
8363 DEFAULT_MAIN_RETURN is otherwise defined.
8365 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
8366 parameters defaulting to int in an old-style function definition.
8368 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8370 * c-parse.in (string): For -Wtraditional, warn about string
8371 concatenation only once per line.
8373 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
8375 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
8376 for HI-UX/WE2 systems.
8378 2000-07-24 Bruce Korb <bkorb@gnu.org>
8380 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
8381 defining the __xxx_TYPE__ macros.
8382 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
8383 * fixincl/fixlib.h: don't need to include "tm.h" anymore
8384 * fixincl/inclhack.def(type_map): now obsolete
8386 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
8388 * cpp.texi: Append a trailing full-stop to xrefs where needed.
8390 2000-07-26 Dave Pitts <dpitts@cozx.com>
8392 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
8394 (mvs_hash_alias): New function.
8395 (mvs_add_alias): Change argument spacing.
8396 (mvs_need_alias): Change aliasing criteria. Added documentation.
8397 (mvs_get_alias): Change to use hashed name. The hashed name prevents
8398 CSECT name collisions.
8399 (mvs_check_alias): Likewise.
8400 (handle_pragma): Change documentation.
8401 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
8402 mode from SImode to DImode.
8403 (iorhi3): Changed LTORG size for insn.
8405 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
8407 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8408 mem if the address is a mode_dependent_address_p.
8410 2000-07-26 Kazu Hirata <kazu@hxi.com>
8412 * h8300.c (print_operand): Print ":8" when the 'R' operand is
8413 suitable for 8-bit absolute.
8414 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
8415 (OK_FOR_U): Add a case for the 8-bit constant address on the
8418 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
8420 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
8421 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
8422 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
8423 lack of implemented alignment.
8425 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
8427 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
8428 cross-compiling between 64-bit and 32-bit machines.
8430 2000-07-27 Richard Henderson <rth@cygnus.com>
8432 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
8433 (movhicc_astep, movhi_internal_astep): New.
8434 (movsicc_astep, movsi_internal_astep): New.
8435 (movdicc_astep, movdi_internal_astep): New.
8436 (movsfcc_astep, movsf_internal_astep): New.
8437 (movdfcc_astep, movdf_internal_astep): New.
8438 (movxfcc_astep, movxf_internal_astep): New.
8439 (cmovdi_internal_astep, cmovsi_internal_astep): New.
8440 Unify the cmov[ds]i splitters.
8442 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
8444 * real.c (asctoeg): Rename `error' label to unexpected_char_error
8446 2000-07-26 Nick Clifton <nickc@cygnus.com>
8448 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
8449 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
8451 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
8452 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
8454 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
8456 * c-decl.c (finish_enum): Convert enumerations that fit in an
8458 (build_enumerator): In pedantic mode, cast to `int' those that
8461 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
8463 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
8465 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8467 * sh.md (cmpgtdi_t): Must be split.
8468 (cmpgtdi_t+1): New splitter.
8470 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
8472 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
8473 warnings for indented directives even if we are skipping.
8475 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
8477 * invoke.texi (strict-prototypes): Remove.
8478 * extend.texi (Deprecated Features): Add strict-prototypes.
8479 (Backwards Compatibility): New node.
8481 2000-07-25 Jakub Jelinek <jakub@redhat.com>
8483 * config/i386/i386.md (andsi_1+1): Allow HImode.
8484 (andsi_1+2): Require q_regs_operand.
8486 2000-07-25 Jakub Jelinek <jakub@redhat.com>
8488 * config/i386/i386.md (call_pop): Check operands[0],
8489 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
8491 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
8492 (call_value): Likewise.
8494 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
8496 * toplev.c (pipe_closed): Delete.
8497 (crash_signal): New. Generate ICE for a fatal signal.
8498 (float_signal): Call crash_signal outside a float-handler
8500 (main): Install crash_signal as handler for core-dumping signals.
8502 2000-07-25 David Edelsohn <edelsohn@gnu.org>
8504 * rs6000.c (print_operand, case 'T'): New case.
8506 * rs6000.md (call_indirect_aix32): Convert to expander of
8507 scheduled instructions.
8508 (call_indirect_aix64): Likewise.
8509 (call_value_indirect_aix{32,64}): Likewise.
8510 (call, call_value): Invoke expanders for AIX. Fall through to
8512 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
8513 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
8514 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
8515 only "g" constraint.
8516 (call_nonlocal_aix64): Likewise.
8517 (call_value_nonlocal_aix{32,64}): Likewise.
8518 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
8520 (call_value_nonlocal_sysv): New pattern.
8521 (indirect_jump{si,di}): Use new 'T' modifier.
8522 (tablejump{si,di} matchers): Likewise.
8523 (return_internal_{si,di}): Likewise.
8524 (return_eh_{si,di}): Likewise.
8526 2000-07-24 Richard Henderson <rth@cygnus.com>
8528 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
8529 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
8530 * config/ia64/ia64.md (movdi_internal): Use it.
8532 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
8534 * cppexp.c: Warn about unary + if -Wtraditional.
8535 * cpplex.c (lex_line): Always set BOL on the first token of a line.
8537 2000-07-24 Michael Meissner <meissner@redhat.com>
8539 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
8542 2000-07-24 Nick Clifton <nickc@cygnus.com>
8544 * config/arm/arm.c (emit_multi_reg_push): Generate a
8545 REG_FRAME_RELEATED_NOTE that is compatable with the code in
8546 dwarf2out_debug_frame_expr.
8548 2000-07-24 Jason Merrill <jason@redhat.com>
8550 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
8551 UNALIGNED_INT_ASM_OP.
8552 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
8553 a location expression.
8554 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
8555 assume indirect access if we're saving the CFA address exactly.
8557 * Makefile.in (bootstrap): Move -BstageN/ to the end.
8559 2000-07-24 Jakub Jelinek <jakub@redhat.com>
8561 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
8564 2000-07-24 Michael Meissner <meissner@redhat.com>
8566 * invoke.texi (D30V Options): Add d30v options.
8568 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
8570 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
8571 needed by our gcse pass anymore.
8572 (free_pre_mem): Corresponding changes.
8573 (compute_pre_data): Do not call compute_transpout anymore.
8575 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
8576 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
8579 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
8580 (compute_pre_data): Do it here instead.
8582 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
8584 (pre_delete): Corresponding changes.
8586 2000-07-23 Mark Mitchell <mark@codesourcery.com>
8588 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
8589 to figure out whether or not a variable has already been emitted.
8591 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
8593 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
8594 instead of gen_call.
8596 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
8598 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
8600 2000-07-23 Kazu Hirata <kazu@hxi.com>
8602 * h8300.c: Fix formatting.
8604 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
8606 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
8607 for `long' switch expression into a plain warning.
8609 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
8610 (yylex): Don't pedwarn for "inline" in C99 mode.
8612 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
8614 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
8615 ggc_alloc): Likewise.
8616 * bb-reorder.c (dump_scope_forest_1): Likewise.
8618 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
8620 * reload.c (find_reloads_toplev): Add new parameter
8622 (find_reloads): Add new parameter to find_reloads_toplev calls.
8624 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
8626 * collect2.c (main): Typo fixed.
8627 * diagnostic.c: Typo fixed.
8628 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
8629 * eh-common.h: Typo fixed.
8630 * emit-rtl.c (start_sequence): Typo fixed.
8631 * flow.c (find_label_refs): Typo fixed.
8632 (calculate_global_regs_live): Typo fixed.
8633 (mark_regno_cond_dead): Typo fixed.
8634 (create_edge_list): Typos fixed.
8635 (verify_edge_list): Typo fixed.
8636 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
8637 * loop.c (strength_reduce): Typo in function name fixed.
8638 * rtl.h: Added comments. Typo in function name fixed.
8639 * rtlanal.c: Typo in function name fixed.
8640 (insn_dependant_p): Rename to ...
8641 (insn_dependent_p): ... this.
8642 (computed_jumo_p): Typo fixed.
8644 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8646 * system.h (__FUNCTION__): Wrap definition in #ifndef.
8648 2000-07-21 David Edelsohn <edelsohn@gnu.org>
8650 * rs6000.h (SIZE_TYPE): Define.
8652 2000-07-21 Mark Mitchell <mark@codesourcery.com>
8654 * ssa.c (rename_insn_1): Don't rename registers that are
8657 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
8659 * diagnostic.c (trim_filename, fancy_abort): Moved here from
8661 (fatal_function, set_fatal_function): Removed.
8662 (fatal): Don't prepare for or call the fatal_function.
8663 (diagnostic_lock, error_recursion): New.
8664 (diagnostic_for_decl, report_diagnostic): Guard against
8665 re-entering the error reporting routines.
8666 (fancy_abort): Assume function is not NULL.
8668 * errors.c (fancy_abort): New. Assume function is not NULL.
8669 * tradcpp.c (fancy_abort): Assume function is not NULL.
8671 * system.h: Provide default definition of __FUNCTION__.
8672 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
8673 Always use __FUNCTION__ in definition of abort.
8675 * varray.h: Likewise.
8676 * toplev.h: Likewise. Don't prototype set_fatal_function.
8678 2000-07-20 Geoff Keating <geoffk@cygnus.com>
8680 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
8682 * glimits.h: Don't do #if defined for ARCH_PPC.
8684 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
8685 constants of size no larger than a pointer should go in the TOC.
8686 Add 'MODE' parameter.
8687 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
8688 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
8689 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
8690 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
8691 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
8692 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
8693 (rs6000_legitimize_address): Likewise.
8694 (rs6000_emit_move): Likewise.
8695 (rs6000_select_rtx_section): Likewise.
8696 (output_toc): Deal properly with outputting small constants like
8697 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
8698 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
8699 MODE parameter. Put small constants in the TOC.
8701 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
8703 (rs6000_emit_move): When reload calls us with an illegitimate
8704 address, exit early. Move the change_address calls to one place
8705 at the end of the routine. Merge the SImode and DImode expanders.
8706 When called by reload to put an integer into a FP register, force
8709 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
8711 (rs6000_hash_constant): Hash mode too.
8712 (toc_hash_function): Allow for key_mode.
8713 (toc_hash_eq): Structures are different if key_mode differs.
8714 (output_toc): Add 'mode' parameter. Save key_mode.
8715 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
8716 Pass 'mode' parameter.
8717 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
8719 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
8720 for vtable references.
8722 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
8723 choice, don't put integer values in FP regs.
8725 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
8727 * flow.c (verify_flow_info): Revamp code to verify that the
8728 head and end of each basic block are in the insn chain.
8730 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
8732 * gcse.c (record_one_set): Prepend instead of append onto
8733 reg_set_table, making it O(n) instead O(n^2).
8734 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
8735 Use a queue instead of a stack as worklist.
8737 2000-07-20 Kazu Hirata <kazu@hxi.com>
8739 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
8740 * h8300.h (OK_FOR_T): New.
8741 (EXTRA_CONSTRAINT): Support OK_FOR_T.
8742 * h8300.md: Use inc/dec.[wl] for increment/decrement
8743 by 1 and 2 in HI and SI modes.
8745 2000-07-20 Jim Wilson <wilson@cygnus.com>
8747 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
8748 larger than 14 bits.
8750 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
8752 * cppmacro.c (CAN_PASTE_AFTER): New macro.
8753 (count_params): Don't set GNU_REST_ARGS on anything.
8754 (save_expansion): Set PASTE_LEFT only on tokens for which
8755 CAN_PASTE_AFTER is true, or which are named operators.
8757 * cpplex.c (parse_args): Distinguish between a rest argument
8758 given one empty argument, and a rest argument given zero arguments.
8759 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
8760 deletion of previous token based on that.
8761 (get_raw_token): Flatten some control structure.
8763 * cpplib.h (CPP_LAST_EQ): Correct.
8764 (VOID_REST): New token flag.
8765 (GNU_REST_ARGS): Delete.
8767 * tradcpp.c (main): Don't munge -D options.
8768 (make_definition): Bring -D handling in line with cpplib.
8769 (do_define): Strip all leading whitespace from macro definitions.
8771 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
8773 * Makefile.in (tradcpp): Depend on intl.o and version.o.
8775 2000-07-20 Bruce Korb <bkorb@gnu.org>
8777 * fixincl/check.tpl: strip the platform specific types before testing
8778 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
8779 * fixincl/fixincl.tpl: use platform specific types
8780 * fixincl/fixlib.h: include the platform specific types
8781 * fixincl/inclhack.def(gnu_types): don't supply the types
8782 * fixincl/fixincl.x: regen
8784 2000-07-19 Jim Wilson <wilson@cygnus.com>
8786 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
8789 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
8791 * tradcpp.c (rescan): Do not recognize directives when the #
8794 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
8796 Implement C++ named operators.
8798 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
8799 of operators allowed in #if and having an _EQ variant. Add
8800 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
8801 (cpp_token flags): Add NAMED_OP.
8802 (enum node_type): Add T_OPERATOR.
8803 (struct cpp_hashnode): Add code slot to value union.
8804 * cpphash.h (spec_nodes): Remove n_defined.
8806 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
8807 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
8808 (is_macro_disabled): Tweak error messages.
8810 * cpplib.c (get_define_node): Disallow all named operators as
8811 macro names. Tweak error messages.
8812 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
8814 * cppinit.c (builtin_array): Add entries for the named operators.
8815 * cppexp.c (lex): Check for CPP_DEFINED token.
8816 (priority table): Add entries for CPP_MIN and CPP_MAX.
8817 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
8819 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
8821 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
8822 larger than the array of cuids.
8823 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
8826 2000-07-19 Bruce Korb <bkorb@gnu.org>
8828 * fixinc/fixincl.c: Convert to using a table of environment variables
8829 and activate the auto-edit marker on the fixed output files.
8830 * fixinc/fixlib.h: Define the environment table
8831 * fixinc/fixincl.sh: export the ${INPUT} dir
8832 * fixinc/check.tpl: likewise
8834 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
8836 * gcc.c (.h spec): Fix typo.
8838 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
8840 * Makefile.in: Fix tradcif.c path.
8842 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
8844 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
8847 * cpphash.h (TOKEN_NAME): New macro.
8848 (_cpp_spell_operator): Deleted.
8849 (token_spellings): Now _cpp_token_spellings.
8851 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
8852 * cpplex.c: Use OP and TK macros when expanding the
8853 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
8854 store the stringification of the enumeration name (CPP_CHAR,
8855 etc.) in the name slot of token_spellings.
8856 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
8857 token_spellings directly.
8858 * cpplib.c: Use TOKEN_SPELL.
8860 * cpplex.c (_cpp_push_token): If the token being pushed back
8861 is the previous token in this context, just subtract one from
8863 * cppmacro.c (save_expansion): Clear aux field when storing a
8866 2000-07-18 Jakub Jelinek <jakub@redhat.com>
8868 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
8869 buffer, provided it is not NULL.
8871 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
8873 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
8874 case of invalid volatile re-declaration.
8876 2000-07-18 Jakub Jelinek <jakub@redhat.com>
8878 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
8879 (expand_call): Adjust caller.
8881 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
8883 * diagnostic.h (report_diagnostic): Change prototype.
8885 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
8886 diagnostic_for_decl): Change prototype.
8887 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
8888 error, warning, error_with_file_and_line,
8889 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
8890 Adjust call to report_diagnostic, diagnostic_for_decl.
8891 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
8892 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
8894 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
8895 varaible argument list.
8897 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
8899 * cpphash.c: Don't include hashtab.h. Most macro-handling code
8900 moved to cppmacro.c.
8901 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
8902 dump_hash_helper): Delete.
8903 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
8904 cpp_forall_identifiers): New. Implement specialized version of
8905 Vlad's expandable hash table.
8906 (cpp_lookup): Use new functions.
8907 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
8909 * cppmacro.c: New file.
8910 * cppinit.c (dump_macros_helper): New.
8911 (cpp_finish): Iterate over the identifier table directly.
8912 * cpplex.c (parse_name): Calculate the hash of the identifier
8913 while we scan it. Use _cpp_lookup_with_hash when we can.
8915 * cpphash.h: Update prototypes.
8916 (xcnewvec, HASHSTEP): New helper macros.
8917 * cpplib.h: Update prototypes.
8918 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
8919 (cppmacro.o): New rule.
8920 (cpphash.o): Update deps.
8922 * cppmain.c: Do not set pfile->printer if no_output is on.
8924 2000-07-15 Neil Booth <neilb@earthling.net>
8926 * cpplib.c: Change all directive-handler functions to return
8928 * cpphash.h: Update typedefs.
8930 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
8932 * configure: Regenerate.
8934 * extend.texi (Extended Asm): Mention that a memory clobber
8935 does not count as a side-effect.
8937 * unroll.c (copy_loop_body): Fix one instance of using host
8938 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
8941 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
8943 2000-07-17 Richard Henderson <rth@cygnus.com>
8945 * config/ia64/ia64.md (movdi): Split out load address code.
8946 New post-reload splitter for symbolic operands.
8947 (movdi_internal): Abort if we didn't split symbolic operands
8948 when we should have.
8949 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
8950 (ia64_reorg): Split insns when not optimizing.
8951 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
8953 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
8955 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
8956 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
8958 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
8960 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
8962 2000-07-17 Jason Merrill <jason@redhat.com>
8964 * Makefile.in (clean): Remove libgcc directory.
8966 * configure.in (-Wno-long-long check): Use higher-level macros.
8968 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
8970 * simplify-rtx.c (simplify_binary_operation): Recognize
8971 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
8972 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
8973 a CONST_INT, it will always be zero.
8975 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
8977 * loop.c (check_dbra_loop) : Return if more than one condition is
8978 present to control the loop.
8980 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
8982 * mips.c (mips_expand_prologue): Don't calculate the last argument
8983 register unless we need it. When we are calculating this, make
8984 sure FUNCTION_ARG is giving us a REG.
8986 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8988 * flow.c (libcall_dead_p): Use single_set to verify the insn
8989 has only one set and get for analysis.
8990 (propagate_one_insn): Don't pass the PATTERN of the insn.
8992 2000-07-17 Mark Klein <mklein@dis.com>
8994 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
8996 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8998 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
8999 * configure.in (TARGET_GETGROUPS_T): Evaluate.
9000 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
9001 of second argument of getgroups.
9002 * configure, config.in: Rebuilt.
9004 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
9006 * simplify-rtx.c (simplify_relational_operation): Two signed
9007 values with equal high words are less/greater than each other if
9008 their low words are less/greater when considered as unsigned.
9010 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
9012 * configure.in (vax-*-openbsd): Change to new style configuration,
9013 add collect2/float_format information.
9014 * configure: Rebuilt.
9015 * config/vax/openbsd1.h: New.
9016 * config/vax/openbsd.h: New.
9017 * config/vax/t-openbsd: New.
9019 2000-07-17 Chip Salzenberg <chip@valinux.com>
9021 * c-common.c (shorten_compare): Quiet warnings about unsigned
9022 comparisons with zero when they occur in a system header.
9024 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
9026 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
9027 update to describe current practice.
9029 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
9031 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
9032 references to C9X. Change references to -fstd and -flang-isoc9x
9035 * c-common.c (scan_char_table): Allow "z" length modifiers on
9037 (check_format_info): Use TYPE_DOMAIN on the type matched against
9038 for "z" formats, to retrieve the language size_t rather than the
9041 * c-common.c (check_format_info): Do not make a pedantic objection
9042 to the 'L' length modifier if used with a floating point type
9045 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
9046 constants in C99 mode.
9048 2000-07-17 Kazu Hirata <kazu@hxi.com>
9050 * h8300.md: Fix the format of mac.
9051 (movsi_h8300hs): Output a tab after stmac instead of a space.
9053 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
9054 profitable adds/subs sequences.
9056 * fold-const.c: Fix comment typos.
9058 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
9060 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
9062 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9064 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
9066 2000-07-16 Neil Booth <NeilB@earthling.net>
9068 * cpplex.c: Update comments.
9069 * README.Portability: Small update.
9071 2000-07-16 Neil Booth <NeilB@earthling.net>
9073 * README.Portability: Small update.
9075 2000-07-15 Richard Henderson <rth@cygnus.com>
9077 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
9078 * config/ia64/ia64.c (ia64_move_ok): New function.
9079 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
9080 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
9082 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
9084 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
9085 immediately following a paste operator.
9086 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
9087 (cpp_reader_init): Call it, if HOST_EBCDIC.
9088 (cpp_handle_options): Do not sort option list here.
9089 (handle_option): Rename to cpp_handle_option and export.
9090 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
9091 _cpp_get_token directly.
9092 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
9093 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
9094 * cpplib.h: Prototype cpp_handle_option. Update prototype of
9097 2000-07-15 Richard Henderson <rth@cygnus.com>
9099 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
9100 cast around an expression. Tidy other unsigned tests.
9102 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
9104 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
9105 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
9106 (v_message_with_decl): Rename to ...
9107 (format_with_decl): ... this. Tweak
9108 (diagnostic_for_decl): New function.
9109 (fatal_io_error): Use verbatim in lieu of notice.
9110 (announce_function): Use verbatim.
9111 (default_print_error_function): Likewise.
9112 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
9115 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9117 * mips.c (function_arg_pass_by_reference): Don't do automatic
9118 aggregate initialization.
9119 (machine_dependent_reorg): Initialize variable `mode'.
9121 * mips.md (absdi2): Change variable `regno1' to unsigned int.
9122 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
9123 conflicts with sys/param.h macro of the same name.
9124 (reload_outdi): Likewise.
9126 2000-07-15 Michael Meissner <meissner@redhat.com>
9128 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
9129 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
9130 create a new node instead.
9132 2000-07-15 Neil Booth <NeilB@earthling.net>
9134 * README.Portability: Correct example about calling a function
9135 through a pointer to function. Format wide paragraphs.
9137 2000-07-15 Michael Meissner <meissner@redhat.com>
9139 * README.Portability: Update integer suffixes and function
9142 2000-07-15 Neil Booth <NeilB@earthling.net>
9144 * README.Portability: Small update.
9146 2000-07-15 Neil Booth <NeilB@earthling.net>
9148 * README.Portability: New file.
9150 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
9152 * INSTALL: Give special instructions for building GCC on Irix 6.
9153 * config/mips/x-iris6 (CC): Don't set it.
9156 2000-07-14 Jason Merrill <jason@redhat.com>
9158 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
9159 register in the stack and later in another register, use the new
9162 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
9164 * config/mips/mips.md: (absdi2): Handle sign_extend for
9167 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
9169 * cpplib.c (do_pragma_dependency): Tidy warning messages.
9171 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
9173 * .cvsignore: Correct typo.
9175 2000-07-13 Mark Mitchell <mark@codesourcery.com>
9177 * .cvsignore: Add generated YACC files.
9178 * objc/.cvsignore: New file.
9180 2000-07-14 Neil Booth <NeilB@earthling.net>
9182 * cpplex.c (adjust_column): New funcion.
9183 (skip_whitespace): Use it.
9184 (skip_block_comment): Use it, and warn about /*/* with
9187 2000-07-14 Neil Booth <NeilB@earthling.net>
9189 * cpphash.c (struct macro_info): Add new members.
9190 (_cpp_free_definition): Delete the macro directly.
9191 (count_params): Return void, with first token of
9192 expansion in struct macro_info on success.
9193 (parse_define): Return int. Hoist syntax checking from
9194 save_macro_expansion. Leave call to save_expansion to
9195 _cpp_create_definition.
9196 (alloc_macro): Needs just 2 arguments.
9197 (free_macro): Delete.
9198 (save_expansion): Don't perform syntax check.
9199 (_cpp_create_definition): Call save_expansion.
9201 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9203 * genrecog.c (write_header): Split long string.
9205 * cpphash.c (macro_info): Don't use the `signed' keyword.
9207 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
9209 2000-07-13 Jakub Jelinek <jakub@redhat.com>
9211 * calls.c (stored_args_map): New variable.
9212 (check_sibcall_argument_overlap_1): New.
9213 (check_sibcall_argument_overlap): New.
9214 (expand_call): Initialize stored_args_map.
9215 Call check_sibcall_argument_overlap.
9217 2000-07-13 Bruce Korb <bkorb@gnu.org>
9219 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
9220 (emit_gnu_type): utility procedure for gnu_type_fix
9221 (gnu_type_fix): implement various pre-processor guards around
9222 standard types so these types can be defined over and over
9223 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
9224 types alluded to above will have GNU-compliant base types
9225 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
9226 * fixinc/inclhack.def: add test_text entries and utilize the new
9227 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
9228 * fixinc/fixincl.x: regenerate
9230 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
9232 * diagnostic.c (vline_wrapper_message_with_location,
9233 v_message_with_file_and_line, v_error_with_file_and_file,
9234 v_error_for_asm, v_warning_for_asm, vfatal,
9235 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
9236 vsorry, verror, vwarning, vpedwarn): Remove.
9237 (diagnostic_for_asm): New function.
9238 (pedwarn, error, warning, pedwarn_with_file_and_line,
9239 error_with_file_and_line, warning_with_file_and_line, sorry,
9240 error_for_asm, warning_for_asm, fatal): Reimplement.
9241 (finish_diagnostic): Clear diagnostic info as well.
9243 2000-07-13 Neil Booth <NeilB@earthling.net>
9245 * c-common.h (flag_digraphs): New.
9246 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
9247 * c-lex.c (yylex): Use flag_digraphs to decide whether to
9250 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
9252 * gcc.c (do_spec_1): Add new %B operator.
9253 (set_input): Prepare for %B.
9255 (link_command_spec): Move up with the other tm.h-
9256 overrideable specs. Factor out the portion conditional on
9257 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
9258 (struct compiler): Just have a single spec string. All users
9260 (default_compilers): Remove unnecessary braces.
9261 (static_specs): Update.
9263 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
9265 (C and assembly specs): Use the new named specs, as appropriate.
9267 * objc/lang-specs.h: Use the new named specs.
9268 Remove unnecessary braces.
9270 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9272 * gcc.c (execute): If a subprocess gets a fatal signal, report
9273 strsignal() of the signal number, and ask for a bug report.
9274 Do not do this for SIGPIPE if there's already been an error.
9276 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
9279 * tradcif.c: Remove.
9281 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9283 * final.c (profile_function): Do not emit profile counters in
9284 the data section, if NO_PROFILE_COUNTERS is defined.
9285 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
9288 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
9289 (FUNCTION_PROFILER): Just emit a call to mcount.
9291 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9293 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
9295 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
9296 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
9297 traditional, lang_chill, or lang_fortran.
9299 * cppfiles.c: #undef strcmp to suppress warning about macros
9300 used without arguments.
9301 (_cpp_execute_include): Use f, not fname, in "No include path"
9303 (_cpp_pop_file_buffer): New function.
9304 * cpplib.c: Don't include <sys/mman.h>.
9305 (cpp_push_buffer): Set line_base and lineno in new buffer.
9306 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
9308 * cpplex.c: Move all prototypes and structure declarations to the
9309 top of the file. Properly parenthesise some macro arguments.
9310 (cpp_scan_line): New function.
9311 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
9312 don't need to walk up the stack counting.
9314 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9316 * c-common.c (combine_strings): Emit a pedantic warning when a
9317 string length is greater than the minimum ANSI C is required
9320 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
9322 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
9323 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
9325 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9327 * c-decl.c (define_label): Warn about identifier conflicts with
9328 labels in traditional C.
9330 * c-parse.in (unop +): Warn about the unary plus operator for
9333 * c-typeck.c (store_init_value): Warn about automatic aggregate
9334 initialization for traditional C.
9336 * invoke.texi (-Wtraditional): Document new warnings.
9338 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
9340 * Makefile.in (c-errors.o): Fix thinko in dependency.
9342 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9344 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
9345 -traditional, -ftraditional, or -traditional-cpp was given.
9346 Do not pass -traditional to the preprocessor.
9347 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
9348 preprocessor does it automatically.
9349 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
9351 * ch/lang-specs.h: Always use tradcpp. Do not pass
9352 -traditional, -trigraphs, or -pedantic to the preprocessor.
9353 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
9356 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9358 * cppexp.c (LOGICAL): Delete macro.
9359 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
9362 * cpphash.c (HASHSIZE): Increase to 4096.
9363 (struct hashdummy): Add hash field.
9364 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
9365 the string values using memcmp.
9366 (cpp_lookup): Set dummy.hash.
9368 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
9370 * configure.in (m88k-openbsd): Express configuration using new fragment
9372 * configure: Rebuilt.
9373 * m88k/aout-dbx.h: New.
9374 * m88k/openbsd.h: New.
9375 * m88k/xm-openbsd.h: New.
9377 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9379 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
9381 2000-07-12 Richard Henderson <rth@cygnus.com>
9383 * reload.c (push_secondary_reload): Make sure to add the new
9384 reload at the end, after acquiring secondary memory.
9386 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9388 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
9390 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
9391 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
9393 * c-parse.in (stmt): Delete unused variables.
9395 * convert.c (convert_to_vector): Likewise.
9397 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
9399 * tree.c (finish_vector_type): Prototype.
9401 2000-07-12 Bruce Korb <bkorb@gnu.org>
9403 * fixinc/fixfixes.c: use xmalloc
9404 * fixinc/fixincl.c(initialize): set program name for xmalloc
9405 * fixinc/fixlib.c(must_malloc): obsolete
9406 (is_cxx_header): no longer used - disabled
9407 (skip_quote): inserted and disabled for future use
9408 * fixinc/fixlib.h: reflects above
9409 * fixinc/fixtests.c: removed dinkleberries
9411 2000-07-12 Neil Booth <NeilB@earthling.net>
9413 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
9414 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
9416 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
9417 struct toklist_dummy): New.
9418 (cpp_free_definition): Free macros with free_macro.
9419 (count_params): Don't save paramter spellings. Save macro
9420 information in a struct macro_info.
9421 (parse_define): Don't allocate a token list.
9422 (save_expansion): Allocate the macro's token list, and
9423 save parameter spellings if necessary. Use TOKEN_SPELL.
9424 (cpp_create_definition): Make list const.
9426 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
9428 * c-typeck.c (pedwarn_c99): Move to
9429 * c-errors.c: ... Here.
9430 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
9431 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
9432 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
9433 (c-errors.o): List dependency.
9435 2000-07-12 Mark Mitchell <mark@codesourcery.com>
9437 * c-parse.c: Remove.
9438 * c-parse.h: Likewise.
9439 * c-parse.y: Likewise.
9440 * objc/objc-parse.c: Likewise.
9441 * objc/objc-pasre.y: Likewise.
9443 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
9445 * gcc.texi: Fix minor typos
9446 * extend.texi: Fix minor typos
9448 2000-07-11 Marc Espie <espie@openbsd.org>
9450 * collect2.c (main): Recognize .lo as object files.
9452 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9454 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
9457 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
9458 with MAP_ANONYMOUS and MAP_ANON.
9459 * configure, config.in: Rebuilt.
9461 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
9463 * diagnostic.c (save_output_state): Remove.
9464 (restore_output_state): Likewise.
9465 (clear_text_info): New function.
9466 (clear_diagnostic_info): Likewise.
9467 (output_text_length, is_starting_newline, output_prefix,
9468 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
9469 prefixing_policy, output_buffer_ptr_to_format_args): New macros
9470 (set_real_maximum_length, output_set_maximum_length,
9471 output_set_prefix, output_get_prefix, output_set_maximum_length,
9472 output_destroy_prefix, init_output_buffer,
9473 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
9474 output_add_newline, output_add_character, output_add_space,
9475 output_append_r, output_append, wrap_text, output_format,
9476 output_do_printf, output_printf, output_do_verbatim,
9477 output_verbatim, verbatim): Use them.
9478 (output_clear): Split into cleat_text_info and
9479 clear_diagnostic_info.
9480 (struct output_state): Move to...
9482 * diagnostic.h: ...Here
9483 (struct output_buffer): Adjust.
9485 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
9487 * cpplex.c (parse_name): No longer inline (premature optimization).
9488 (do_pop_context): Fold into pop_context.
9489 (pop_context): Returns int.
9490 (lex_next): Hoist test for end of directive into pop_context.
9491 (push_macro_context): Returns int; takes just reader and token.
9492 Hoist test for excessive nesting to caller.
9493 (push_arg_context): Returns void; takes just reader and token.
9494 Do not call stringify_arg or get_raw_token.
9495 (get_raw_token): Convert tail recursion through push_arg_context
9496 to a loop at this level. Call stringify_arg here if appropriate.
9497 (maybe_paste_with_next): Convert tail recursion to a while loop.
9498 Hoist test of paste_level to caller.
9500 (stringify_arg): Push arg context at beginning.
9501 (cpp_get_token): Split out core into _cpp_get_token. Call
9502 process_directive here. Throw away CPP_PLACEMARKER tokens.
9503 (_cpp_get_token): Convert tail recursion through
9504 push_macro_context to a loop at this level.
9505 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
9506 _cpp_get_raw_token): Use _cpp_get_token.
9507 (_cpp_skip_rest_of_line): Drop the context stack directly; do
9508 not call pop_context.
9509 (_cpp_run_directive): Call lex_next directly.
9511 * cpphash.h: Prototype _cpp_get_token.
9512 * cppexp.c (lex): Use it.
9513 * cpphash.c (parse_define): Use it.
9514 * cpplib.c (get_define_node, do_undef, parse_include,
9515 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
9516 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
9517 parse_ifdef, validate_else): Use it.
9518 (cpp_push_buffer): Tweak error message; abort if anyone tries
9519 to push a buffer while macro expansions are stacked.
9521 2000-07-11 Donn Terry <donnte@microsoft.com>
9523 * cpplex.c (free_macro_args, save_token): Cast arg of free
9524 and/or xrealloc to PTR.
9525 (_cpp_init_input_buffer): Clear all fields of the base context.
9527 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
9529 * gensupport.c (process_rtx): Make rtl checking stop
9530 complaining about the define_insn while it is being
9531 converted from a define_insn_and_split.
9533 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
9535 * config/mips/mips.c (simple_memory_operand): Access the
9536 INTVAL of the address, not it's containing MEM.
9538 2000-07-11 Bruce Korb <bkorb@gnu.org>
9540 * fixinc/fixtests.c(double_slash): obsolete
9541 (else_endif_label): likewise
9542 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
9543 (libc1_ifdefd_memx): correct initial comment
9544 and omit the #if/#endif pair from the memxxx declarations
9545 * fixinc/fixincl.x: regen
9547 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9549 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
9551 2000-07-11 Neil Booth <NeilB@earthling.net>
9555 2000-07-11 Neil Booth <NeilB@earthling.net>
9557 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
9558 (handle_option): Set digraphs according to standard.
9559 Merge OPT_lang_c89 handler with OPT_std_c89.
9561 * cpplex.c: (lex_line, can_paste): Honour digraphs in
9562 accordance with the digraphs flag.
9564 * cpplib.h: (struct cpp_options): New option digraphs.
9566 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
9567 Bruce Korb <bkorb@gnu.org>
9569 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
9570 * fixinc/fixincl.x: Regenerate.
9571 * fixinc/tests/base/testing.h: Add testcase.
9573 2000-07-10 Richard Henderson <rth@cygnus.com>
9575 * config/ia64/ia64.c (got_symbolic_operand): New.
9576 (symbolic_operand, move_operand): Revert 0701 change.
9577 * config/ia64/ia64.h (PREDICATE_CODES): Update.
9578 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
9579 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
9580 split the offset into a 14-bit low part instead of a 13-bit low part.
9581 (load_fptr): Mark the mem as unchanging.
9582 (load_symptr): Use got_symbolic_operand.
9584 2000-07-10 Nick Clifton <nickc@cygnus.com>
9586 * libgcc2.c (next_stack_level): Cast result of computation to
9587 (void **) so that the assignment does not generate a warning.
9589 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
9591 * flags.h : Add new variable flag_single_precision_constant.
9592 * toplev.c (display_help) : Add -fsingle-precision-constant option.
9593 (flag_single_precision_constant): New.
9594 * c-lex.c (yylex): Convert floating point constant to single
9596 * invoke.texi : Add documentation for this new option.
9598 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
9600 * diagnostic.c (output_octal): Second parameter is unsigned.
9601 (output_long_octal): Likewise.
9602 (output_hexadecimal): Likewise.
9603 (output_long_hexadecimal): Likewise.
9604 (output_format): Adjust arguments extraction. Tweak.
9605 (output_verbatim, verbatim): End variable argument list.
9606 (report_diagnostic): Improve documentation.
9608 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
9610 * c-common.h (build_stmt): Declare.
9611 (build_continue_stmt): Likewise.
9612 (build_break_stmt): Likewise.
9613 (build_return_stmt): Likewise.
9615 * c-decl.c (do_case): Rewrite to do what previously done in
9618 * c-semantics.c (build_stmt): Define.
9619 (build_return_stmt): Likewise.
9620 (build_break_stmt): Likewise.
9621 (build_continue_stmt): Likewise.
9622 (build_case_label): Likewise.
9624 * c-parse.in (BREAK): Change to build tree, then generate RTL.
9625 (CONTINUE): Likewise.
9628 (DEFAULT): Likewise.
9630 * c-parse.y: Regenerate.
9631 * c-pasre.c: Likewise.
9633 2000-07-09 Jason Merrill <jason@redhat.com>
9635 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
9637 * tree.h (STRIP_NOPS): Check for error_mark_node.
9638 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
9639 (dwarf2out_*): Remove duplicate declarations.
9641 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
9642 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
9644 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
9646 * diagnostic.c (wrap_text): New function.
9647 (maybe_wrap_text): Likewise.
9648 (output_add_string): Use it.
9649 (output_format): Likewise.
9650 (count_error): Use verbatim instead of notice.
9651 (report_error_function): Likewise. Don't use plain fprintf.
9652 (finish_diagnostic): New function.
9653 (output_do_verbatim): Tweak. Commonalize functionalities in
9654 output_verbatim and verbatim.
9655 (output_verbatim): Adjust.
9656 (verbatim): Likewise.
9657 (report_diagnostic): Define.
9659 * diagnostic.h (report_diagnostic): Prototype.
9661 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
9663 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
9665 2000-07-09 Neil Booth <NeilB@earthling.net>
9667 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
9668 IShspace, ISspace: Update.
9670 * cppinit.c: ISTABLE: Update.
9673 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
9674 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
9675 (skip_block_comment, skip_line_comment, parse_string,
9676 lex_line): Use is_vspace rather than IS_NEWLINE.
9677 (skip_whitespace, lex_line): Clean up to use is_nvspace.
9678 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
9680 (lex_next): Unconditionally stop if within a directive.
9681 Treat directives within macro invocations as directives
9682 (after parse_args emits error), not as the argument.
9684 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
9686 * diagnostic.c (diagnostic_args): New macro.
9687 (diagnostic_msg): Likewise.
9688 (output_formatted_integer): Likewise.
9689 (output_state): New data type.
9690 (digit_buffer): Make global.
9691 (output_add_integer): Rename to output_decimal. Squeeze
9693 (output_long_decimal, output_unsigned_decimal,
9694 output_long_unsigned_decimal, output_octal, output_long_octal,
9695 output_hexadecimal, output_long_hexadecimal): New functions.
9696 (output_append_r): New function.
9697 (output_append): Tweak.
9698 (output_flush_on): Rename to output_to_stream.
9699 (output_format): Change prototype. Improve documentation. Handle
9700 more format specifiers.
9701 (build_location_prefix): Rename to context_as_prefix.
9702 (output_notice): Rename to output_do_printf.
9703 (output_printf): Tweak.
9704 (line_wrapper_printf): Likewise.
9705 (vline_wrapper_message_with_location): Adjust call to renamed
9707 (v_message_with_decl): Likewise.
9708 (default_print_error_function): Likewise.
9709 (save_output_state): New function.
9710 (restore_output_state): Likewise.
9711 (output_do_verbatim): Likewise.
9712 (output_verbatim): Define.
9713 (verbatim): Likewise.
9715 * diagnostic.h (printer_fn): Change return type from void to int.
9716 Improve documentation.
9717 (output_add_integer): Rename to output_decimal.
9718 (output_flush_on, output_format): Don't export.
9719 (output_verbatim, verbatim): Declare.
9721 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
9723 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
9724 Check whether c divides op1 exactly if operation is not
9727 2000-07-08 Richard Henderson <rth@cygnus.com>
9729 * final.c (final): Do not abort when reg-stack introduces
9732 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
9734 * cpplib.h (struct cpp_name): Now struct cpp_string.
9735 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
9736 CPP_HEADER_NAME): Change to type S.
9737 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
9738 field, a cpp_hashnode *. All references to val.name updated
9739 to use val.str or val.node as appropriate.
9740 (struct cpp_reader): Add spec_nodes field.
9741 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
9743 * cpphash.h (struct spec_nodes): New.
9744 (enum spell_type): Reorder. Only SPELL_STRING tokens use
9745 val.str. All references to 'spelling > SPELL_NONE' updated to
9748 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
9749 pfile->buffer->inc are not NULL before dereferencing them.
9751 * cpplex.c (parse_name): Take a pointer to the current token,
9752 plus current position and limit as args; return the new
9753 position; don't copy the text of a name into the string
9754 buffer, instead call cpp_lookup and store the node pointer.
9755 If extending a token, copy out the text of the old into a
9756 scratch buffer, append the new, look that up and store the new
9757 node pointer. Inline.
9758 (maybe_paste_with_next): If the result of paste is a NAME,
9759 then look up the pasted text and store its node pointer.
9760 (lex_line): Adjust for new parse_name interface.
9761 Check for L"str", L'str' using spec_nodes->n_L.
9762 (spell_token): SPELL_IDENT tokens have their spelling in
9763 val.node->name. Handle SPELL_STRING tokens that don't have
9765 (_cpp_expand_name_space,
9766 (can_paste): Check for L ## "str" using spec_nodes->n_L.
9767 (cpp_get_token, special_symbol): No need to call cpp_lookup.
9768 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
9769 return 1=equal 0=not, not a tristate.
9771 * cpphash.c (var_args_str): Delete.
9772 (find_param): Compare node fields directly.
9773 (is__va_args__): Use CPP_PEDANTIC. Just compare
9774 token->val.node with spec_nodes->n__VA_ARGS__.
9775 (dump_funlike_macro): Don't use var_args_str.
9777 * cpplib.c (_cpp_check_directive): Just walk through
9778 spec_nodes->dirs comparing pointers.
9779 (get_define_node, do_pragma_poison, detect_if_not_defined,
9780 parse_ifdef): The identifier has already been looked up.
9781 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
9783 (do_if): Only call detect_if_not_defined at beginning of file.
9784 (_cpp_parse_assertion): Only copy string pointers for
9785 SPELL_STRING tokens.
9786 (pragma_dispatch): Take a node pointer and examine its name
9788 (_cpp_init_stacks): Also initialize the spec_nodes structure.
9790 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
9792 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
9793 reverse order from the corresponding _cpp_init_* routines.
9795 * cppexp.c (parse_number, parse_charconst, parse_defined,
9796 lex): Check val.node->type instead of calling cpp_defined.
9797 Use spec_nodes entries where appropriate.
9799 * fix-header.c, scan-decls.c: Update for interface changes.
9801 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
9803 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
9804 emitting aux_truncdfsf2.
9806 2000-07-03 Donn Terry (donnte@microsoft.com)
9808 * cppinit.c (print_help): split overlong line into ISO C89
9811 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
9813 * cppexp.c: Update all code for new lexer interface.
9814 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
9815 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
9816 * cpplex.c (token_names): Trim leading CPP_ from names; make
9817 the strings unsigned.
9818 (_cpp_spell_operator): New.
9819 (is_macro_disabled): Disable all macros if rescanning
9821 (_cpp_get_directive_token): Remove.
9823 * cppinit.c: Don't set no_macro_expand.
9824 * cpplib.c (read_line_number, do_line): Check only for EOF,
9826 * cpphash.h: Update prototypes.
9827 * cpplib.h (CPP_VSPACE): Remove.
9828 (struct cpp_reader): Remove no_macro_expand.
9830 2000-07-08 Neil Booth <NeilB@earthling.net>
9832 * cpphash.c (is__va_args__): New function.
9833 (count_params): Fix line reported in error messages. Use
9834 is__va_args__. Don't return ')' on error. Flag GNU style
9835 rest args macro definitions.
9836 (parse_define): Check macro name is not __VA_ARGS__.
9837 (save_expansion): Check identifier in non-varargs-macro is
9838 not __VA_ARGS__. Don't flag GNU_VARARGS.
9839 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
9840 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
9841 than per-token GNU_VARARGS.
9842 * cpplib.h (GNU_VARARGS): Remove.
9843 (GNU_REST_ARGS): New.
9845 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
9847 * i386.md (call_pop, call, call_value_pop): Do not set
9848 current_function_uses_pic_offset_table for calls to static
9849 functions or indirect calls.
9851 2000-07-07 Jim Wilson <wilson@cygnus.com>
9853 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
9854 is_predicate_reg, then take max write_count of register pair.
9856 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9858 * tradcpp.c (main): Rename label `include' to `add_include' to
9859 avoid conflicts with variable `include' in traditional C.
9861 2000-07-07 Jakub Jelinek <jakub@redhat.com>
9863 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
9865 2000-07-07 Jakub Jelinek <jakub@redhat.com>
9867 * sibcall.c (uses_addressof): Add INMEM argument, check for
9868 current_function_internal_arg_pointer outside of MEM rtxs in addition
9870 (sequence_uses_addressof): Update caller.
9872 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
9874 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
9877 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9879 * system.h (UNION_INIT_ZERO): New macro for initializing union
9882 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
9884 2000-07-07 Neil Booth <NeilB@earthling.net>
9888 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
9890 * final.c (final): Detect out of bounds array access to
9891 the insn_lengths array.
9893 2000-07-07 Kazu Hirata <kazu@hxi.com>
9895 * fold-const.c (fold): Fix a comment typo.
9897 2000-07-07 Neil Booth <NeilB@earthling.net>
9899 * cpp.texi: Update to new lexer.
9901 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
9903 * tradcpp.c: New file.
9904 * tradcif.y: New file.
9905 * tradcif.c: New generated file.
9907 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
9908 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
9909 dependencies of C. Install tradcpp from install-common, in
9912 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
9914 * cppinit.c: Include cppdefault.h. Refer to
9915 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
9916 to GCC_INCLUDE_DIR and its length.
9917 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
9918 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
9919 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
9921 (include_defaults_array): Move to cppdefault.c.
9923 * cppdefault.h: New file.
9924 * cppdefault.c: New file.
9926 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
9927 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
9928 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
9931 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9933 * reload.c (push_reload): When seeing if can reuse a register,
9934 check extra registers against widest of INMODE and OUTMODE.
9936 2000-07-06 Neil Booth <NeilB@earthling.net>
9938 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
9939 based on full length of predicate.
9941 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
9943 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
9944 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
9946 2000-07-05 Kazu Hirata <kazu@hxi.com>
9948 * h8300-proto.h: Fix formatting.
9949 * h8300.c: Likewise.
9950 * h8300.h: Likewise.
9952 2000-07-05 Jim Wilson <wilson@cygnus.com>
9954 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
9957 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
9959 * invoke.texi: Fix minor typos
9960 * md.texi: Fix minor typos
9962 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
9964 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
9966 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
9968 * cpplex.c: Don't include sys/mman.h.
9969 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
9971 * cpplib.c: Include sys/mman.h and obstack.h.
9972 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
9974 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
9975 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
9976 bother freeing if stack entries (they will be freed with their buffer).
9977 (do_endif): Free if stack entries from the buffer obstack.
9978 (push_conditional): Allocate if stack entries from the buffer obstack.
9980 (find_answer): Rename to _cpp_find_answer.
9981 (do_assert, do_unassert): Update.
9983 * cpphash.h: Update prototypes.
9984 (xobnew): New convenience macro.
9985 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
9987 (struct cpp_hashnode): Remove disabled field.
9989 * cppinit.c: Don't include hashtab.h or splay-tree.h.
9990 (report_missing_guard): Moved to cppfiles.c.
9991 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
9993 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
9994 cpp_cleanup_includes. Don't destroy hashtab or
9995 all_include_files here.
9996 (cpp_finish): Use _cpp_report_missing_guards.
9998 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
9999 (_cpp_init_include_table): Rename _cpp_init_includes.
10000 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
10002 * cppexp.c (parse_assertion): Update for new name of
10005 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
10007 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
10009 * cpplib.c (do_ident): s/VSPACE/EOF/
10011 2000-07-05 Neil Booth <NeilB@earthling.net>
10013 * cpplex.c: Fix trigraph replacement within strings.
10015 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10017 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
10019 * xcoffout.c (assign_type_number): Constify.
10020 (xcoffout_source_file): Add static prototype. Don't needlessly
10021 cast away const-ness.
10023 2000-07-04 Jason Merrill <jason@redhat.com>
10025 * frame.h (frame_state): Move base_offset to end.
10027 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
10029 * calls.c (emit_library_call_value_1): Revert previous change.
10031 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
10033 * fix-header.c (struct partial_proto): Remove unnecessary fields.
10034 (recognized_extern, recognized_function, read_scan_file):
10035 Update for new scheme.
10036 (check_protection): It's still a multiple include guard even
10037 if it doesn't always trigger.
10038 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
10040 * scan.h: Declare struct cpp_token. Update prototypes.
10042 2000-07-03 Neil Booth <neilb@earthling.net>
10043 Zack Weinberg <zack@wolery.cumb.org>
10045 Complete overhaul of the lexer and macro expander.
10047 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
10048 arg, arglist, argdata, reflist, collect_objlike_expansion,
10049 collect_funlike_expansion, collect_params,
10050 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
10051 unsafe_chars, macarg, compare_defs, special_symbol,
10052 scan_arguments, stringify, funlike_macroexpand,
10053 _cpp_quote_string, monthnames): Delete.
10054 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
10055 _cpp_create_definition, _cpp_dump_definition,
10056 dump_hash_helper): Adjust.
10057 (find_param, count_params, parse_define, var_args_str,
10058 check_macro_redefinition, save_expansion): New.
10060 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
10061 parse_string, output_line_command, trigraph_replace,
10062 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
10063 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
10064 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
10065 _cpp_skip_rest_of_line): Modify.
10067 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
10068 find_position, null_warning, bump_column, expand_name_space,
10069 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
10070 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
10071 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
10072 _cpp_prescan): Delete.
10074 (dump_param_spelling, process_directive, lex_next,
10075 is_macro_disabled, stringify_arg, expand_context_stack,
10076 output_token, make_string_token, alloc_number_token,
10077 special_symbol, duplicate_token, maybe_paste_with_next,
10078 can_paste, prevent_macro_expansion, restore_macro_expansion,
10079 get_temp_token, release_temp_tokens, quote_string,
10080 token_names, token_spellings, _cpp_expand_name_space,
10081 _cpp_glue_header_name, _cpp_reserve_name_space,
10082 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
10083 placemarker_token, eof_token, cpp_context, macro_args,
10084 get_raw_token, parse_arg, parse_args, save_token,
10085 push_arg_context, push_macro_context, pop_context,
10086 do_pop_context, free_macro_args, _cpp_get_line,
10087 _cpp_run_directive): New.
10089 * cpplib.c (validate_else, parse_include, push_conditional,
10090 pass_thru_directive, read_line_number, parse_ifdef,
10091 detect_if_not_defined, _cpp_check_directive, do_define,
10092 do_undef, do_include, do_import, do_include_next, do_error,
10093 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
10094 top_pragmas, do_pragma_gcc, do_pragma_implementation,
10095 do_pragma_poison, do_pragma_system_header,
10096 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
10097 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
10098 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
10099 cpp_defined): Update for new scheme.
10100 (strtoul_for_line, get_define_node, dump_macro_name,
10101 _cpp_check_linemarker, _cpp_parse_assertion): New.
10102 (_cpp_handle_directive, do_pragma_default): Delete.
10104 * cpphash.h (struct predicate): Now struct answer.
10105 (enum spell_type, struct token_spelling, struct directive,
10106 directive_handler): New.
10107 Update prototypes. Remove unused macros.
10108 * cpplib.h: Update prototypes. Remove unused macros,
10109 structure definitions, and fields.
10111 * cpperror.c (print_containing_files, v_message): Adjust.
10112 * cppexp.c (parse_assertion, lex, parse_escape,
10113 _cpp_parse_expr): Adjust.
10114 * cppfiles.c (open_include_file, _cpp_execute_include,
10115 _cpp_compare_file_date, cpp_read_file, read_include_file):
10117 * cppinit.c (dump_special_to_buffer): Delete.
10118 (append_include_chain, merge_include_chains, cpp_reader_init,
10119 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
10120 cpp_finish, handle_option, print_help): Adjust.
10121 * cppmain.c (main): Adjust.
10123 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
10125 * cppspec.c (lang_specific_driver): Use double quotes in error
10128 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
10130 * calls.c (emit_library_call_value_1): Use valreg instead
10131 of hard_libcall_value.
10133 2000-07-03 Geoff Keating <geoffk@cygnus.com>
10135 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
10136 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
10137 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
10145 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
10146 mode instead of wider_mode is being used.
10148 2000-07-03 Jakub Jelinek <jakub@redhat.com>
10150 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
10151 of 'r'. Use q_regs_operand.
10152 (andsi_1+2): Use q_regs_operand.
10154 2000-07-03 Jakub Jelinek <jakub@redhat.com>
10156 * builtins.c (get_memory_rtx): Always put into alias set 0.
10158 2000-07-03 Nick Clifton <nickc@cygnus.com>
10160 * config/arm/arm.md: Fix post increment and pre increment
10161 peepholes so that they do not generate UNPREDICATBLE opcodes.
10162 (ie ones where the increment clobbers the source/destination).
10164 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
10166 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
10167 change too big for -mtiny-stack" a warning, if larger than 63.
10168 (out_set_stack_ptr): Change the logic so -mno-interrupts is
10169 always safe to use on possible future devices.
10170 (function_prologue): Write SPH before SPL, for consistency.
10171 If interrupt_func_p true, we know we have enabled interrupts.
10172 (avr_num_arg_regs): New function. Round up to even number of
10173 bytes if no -mpack-args or if calling a libgcc function.
10174 (function_arg, function_arg_advance): Use it.
10175 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
10176 Output "movw" if available.
10177 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
10178 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
10179 (asm_output_section_name): Add blanks for consistent output.
10180 (encode_section_info): Set TREE_READONLY for progmem data to
10181 avoid gas warnings about changed section attributes.
10182 (avr_hard_regno_mode_ok): Force non-QImode data to start in
10183 even numbered registers on devices with "movw".
10184 * config/avr/avr.h (MASK_*): Define bits for target_flags.
10185 (TARGET_SWITCHES): Mark help strings for translation.
10186 Add new -mpack-args and -menhanced switches.
10187 (TARGET_OPTIONS): Mark help strings for translation.
10188 (progmem_section): Add section attributes.
10189 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
10190 Output "movw" if available.
10191 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
10193 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
10194 call convention (arguments aligned on even registers).
10195 (_cleanup, _exit): Make weak symbols libc can override.
10197 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10199 * fp-bit.h: New file.
10201 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
10202 Comment #endif statements.
10203 (__thenan_sf, __thenan_df): Add missing braces around initializer.
10205 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
10207 * gcse.c (compute_pre_data): Compute ae_kill using other local
10208 properties instead of calling compute_ae_kill.
10210 * alias.c (init_alias_analysis): Do not call
10211 prologue_epilogue_contains until after reload has completed.
10213 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
10215 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
10216 (genrtl_finish_compound_stmt): Likewise.
10217 (genrtl_compound_stmt): Change to return void.
10219 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
10220 move code from here to ...
10221 (genrtl_compound_stmt): ... here.
10222 (genrtl_finish_compound_stmt): Remove.
10223 (expand_stmt): Add comment.
10225 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
10227 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
10230 2000-07-02 Jakub Jelinek <jakub@redhat.com>
10232 * cpplib.h (struct cpp_reader): New field include_depth.
10233 (struct cpp_printer): Rename last_bsd to last_id.
10234 * cppfiles.c (read_include_file): Bump include_depth.
10235 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
10236 (output_line_command): Output correct #line if a header
10237 is including itself and is not protected against multiple inclusion.
10238 Use include_depth instead of buffer_stack_depth, last_id instead of
10240 * cppinit.c (cpp_start_read): Initialize last_id instead of
10243 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
10245 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
10246 (c-semantics.o): New target.
10248 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
10249 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
10250 (genrtl_clear_out_block): Likewise.
10251 (genrtl_goto_stmt): Likewise.
10252 (genrtl_expr_stmt): Likewise.
10253 (genrtl_decl_stmt): Likewise.
10254 (genrtl_if_stmt): Likewise.
10255 (genrtl_while_stmt): Likewise.
10256 (genrtl_do_stmt): Likewise.
10257 (genrtl_return_stmt): Likewise.
10258 (genrtl_for_stmt): Likewise.
10259 (genrtl_break_stmt): Likewise.
10260 (genrtl_continue_stmt): Likewise.
10261 (genrtl_scope_stmt): Likewise.
10262 (genrtl_switch_stmt): Likewise.
10263 (genrtl_case_label): Likewise.
10264 (genrtl_begin_compound_stmt): Likewise.
10265 (gerntl_finish_compound_stmt): Likewise.
10266 (genrtl_compound_stmt): Likewise.
10267 (genrtl_asm_stmt): Likewise.
10268 (genrtl_decl_cleanup): Likewise.
10269 (DECL_ANON_UNION_ELEMS): Likewise.
10270 (emit_local_var): Likewise.
10271 (make_rtl_for_local_static): Likewise.
10272 (expand_cond): Likewise.
10273 (expand_stmt): Likewise.
10274 (c_expand_return): Likewise.
10275 (c_expand_start_case): Likewise.
10276 (do_case): Likewise.
10277 (COMPOUND_STMT_NO_SCOPE): Likewise.
10278 (c_expand_asm_operands): Likewise.
10279 (NEW_FOR_SCOPE_P): New macro.
10280 (expand_expr_stmt_fn): New type.
10282 (set_current_function_name_declared): Likewise.
10283 (current_function_name_declared): Likewise.
10284 (lang_expand_stmt): Likewise.
10285 (stmts_are_full_exprs_p): Likewise.
10286 (anon_aggr_type_p): Likewise.
10287 (lang_expand_expr_stmt): Likewise.
10288 (build_case_label): Likewise.
10290 * c-decl.c (lang_expand_expr_stmt): Initialize.
10291 (stmts_are_full_exprs_p): Define.
10292 (current_function_name_declared): Likewise.
10293 (do_case): Likewise.
10294 (lang_expand_stmt): Likewise.
10295 (set_current_function_name_declared): Likewise.
10296 (anon_aggr_type_p): Likewise.
10298 * c-semantics.c: New file.
10299 (expand_cond): Moved from cp/semantics.c.
10300 (genrtl_do_pushlevel): Likewise.
10301 (genrtl_clear_out_block): Likewise.
10302 (genrtl_goto_stmt): Likewise.
10303 (genrtl_expr_stmt): Likewise.
10304 (genrtl_decl_stmt): Likewise.
10305 (genrtl_if_stmt): Likewise.
10306 (genrtl_while_stmt): Likewise.
10307 (genrtl_do_stmt): Likewise.
10308 (genrtl_return_stmt): Likewise.
10309 (genrtl_for_stmt): Likewise.
10310 (genrtl_break_stmt): Likewise.
10311 (genrtl_continue_stmt): Likewise.
10312 (genrtl_scope_stmt): Likewise.
10313 (genrtl_switch_stmt): Likewise.
10314 (genrtl_case_label): Likewise.
10315 (genrtl_begin_compound_stmt): Likewise.
10316 (genrtl_finish_compound_stmt): Likewise.
10317 (genrtl_compound_stmt): Likewise.
10318 (genrtl_asm_stmt): Likewise.
10319 (genrtl_decl_cleanup): Likewise.
10320 (make_rtl_for_local_static): Moved from cp/decl.c.
10321 (emit_local_var): Likewise.
10322 (expand_stmt): Define.
10324 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
10325 (c_expand_return): Likewise.
10326 (c_expand_start_case): Likewise.
10328 2000-07-01 Richard Henderson <rth@cygnus.com>
10330 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
10331 with the low 13 bits set.
10332 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
10333 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
10334 of the low 13 bits into a CONST plus an adddi3.
10335 (load_symptr): Set RTX_UNCHANGING_P.
10337 See ChangeLog.3 for earlier changes.