OSDN Git Service

* sibcall.c (skip_pic_restore): New.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2000-09-24  Richard Henderson  <rth@cygnus.com>
2
3         * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
4
5         * sibcall.c (skip_pic_restore): New.
6         (identify_call_return_value): Use it.
7
8 2000-09-24  Mark Mitchell  <mark@codesourcery.com>
9
10         * c-tree.texi: Moved here from cp/ir.texi.  Documented nested
11         functions.  Generalize to handle both C and C++.
12         * Makefile.in (c-tree.info): New target.
13         (info): Add c-tree.info.
14         
15 Sun Sep 24 09:15:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16
17         * expr.c (store_field): If BITSIZE is negative, use size of type.
18         (expand_expr, case COMPONENT_EXPR): Likewise.
19
20 Sun 24-Sep-2000 11:40:23 BST  Neil Booth  <NeilB@earthling.net>
21
22         * cpplex.c: Update TODO comment.
23         * cpplib.c (do_error, do_warning): Merge common code of
24         do_error and do_warning into do_diagnostic.  Use it.
25         (do_diagnostic): New function.
26         * cpplib.h: Fix comment typo.
27
28 2000-09-24  Joseph S. Myers  <jsm28@cam.ac.uk>
29
30         * c-common.c (check_format_info): Warn for a wide character string
31         used as a non-wide format argument.
32
33 2000-09-24  Joseph S. Myers  <jsm28@cam.ac.uk>
34
35         * builtins.def (BUILT_IN_LLABS): Add.
36         * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
37         * c-common.c (c_common_nodes_builtins): Create builtin functions
38         __builtin_llabs, and plain llabs unless no_nonansi_builtins
39         outside of C99 mode.
40         (expand_tree_builtin): Handle BUILT_IN_LLABS.
41
42 Sat 23-Sep-2000 22:39:18 BST  Neil Booth  <NeilB@earthling.net>
43
44         * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
45         CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
46         * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
47         _cpp_free_toklist): No need to worry about extra dummy token
48         at the start of token lists any more.
49         (trigraph_ok): Only warn outside comments.
50         (skip_block_comment): Set and clear lexing_comment.
51         (skip_line_comment): Take a cpp_reader not cpp_buffer.
52         Set and clear lexing_comment.
53         (parse_number): Handle leading '.' indicated by pfile->seen_dot.
54         (check_long_token): Delete.
55         (lex_percent, lex_dot): New subroutines of lex_token to
56         handle lexing of '.' and '%' without lookback.
57         (lex_token): Use lex_dot and lex_percent.
58         (lex_line): Don't check for LIST_OFFSET.
59         (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
60         * cpplib.c (_cpp_parse_assertion): Similarly.
61         (cpp_push_buffer): Initialize extra_char.
62         * cpplib.h (LIST_OFFSET): Delete.
63         (struct cpp_buffer): New member extra_char.
64         (struct lexer_state): New members lexing_comment and seen_dot.
65
66 2000-09-23  Jason Merrill  <jason@redhat.com>
67
68         * config/rs6000/x-aix41 (CLIB): Define here.
69         * config/rs6000/t-aix43: Not here.
70         * config/rs6000/t-aix41: Or here.  Remove.
71         * configure.in: Don't use it.
72
73 2000-09-22  Jason Merrill  <jason@redhat.com>
74
75         * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
76         * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
77         * config.in: Regenerate.
78
79         * configure.in: Fix checks for assembler features when using a
80         one-tree assembler that has not yet been built.
81         Fix --disable-threads.
82
83 2000-09-19  Geoff Keating  <geoffk@cygnus.com>
84
85         * stmt.c (expand_asm_operands): Allow # in constraints.
86
87 2000-09-22  Jason Merrill  <jason@redhat.com>
88
89         * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
90
91         * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
92         function-local names.
93
94 2000-09-22  Brad Lucier <lucier@math.purdue.edu>
95             Mark Mitchell  <mark@codesourcery.com>
96
97         * toplev.c (warn_disabled_optimization): Declare new warning flag.
98         * flags.h (warn_disabled_optimization): Add it here.
99         * gcse.c (gcse_main): Add warning when disabled.
100         * invoke.texi: Document -Wdisabled-optimization.
101
102 2000-09-21  Jason Merrill  <jason@redhat.com>
103
104         * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
105
106         * dwarf2out.c (tree_add_const_value_attribute): New fn.
107         (gen_variable_die): Call it for non-definitions.
108
109         * dwarf2out.c (die_struct): Add die_mark field.
110         (mark_dies, unmark_dies): New fns.
111         (clear_die_sizes): Remove.
112         (print_die): Check die_symbol rather than die_offset.
113         (build_abbrev_table, output_pubnames, output_aranges): Check
114         die_mark rather than die_offset.
115         (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
116         Call mark_dies.
117
118 Thu 21-Sep-2000 18:19:05 BST  Neil Booth  <NeilB@earthling.net>
119
120         * cppfiles.c (lookup_include_file): Rename to open_file.
121         Always create a splay tree value, even on syscall failures.
122         Negative entries indicated by fd == -2.
123         Re-open files closed in the meantime.
124         (_cpp_fake_include): Create a negative splay tree entry.
125         (find_include_file, cpp_read_file): Update for function name
126         change.
127         * gcc.gd/cpp/mi4.c: Testcase.
128
129 2000-09-21  Nick Clifton  <nickc@redhat.com>
130
131         * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
132         ARM and THUMB modes.
133
134         * config/mcore/mcore.c: Fix compile time warnings.
135         * config/mcore/mcore-protos.h: Fix compile time warnings. 
136
137 2000-09-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
138
139         * configure.in: Correct test of gcc_cv_glibc.
140         * configure: Rebuilt.
141         * config.in: Rebuilt.
142
143 2000-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
144
145         * builtins.c (expand_builtin_fputs): Also expand when length!=1.
146         (expand_builtin): Handle BUILT_IN_FWRITE.
147
148         * builtins.def (BUILT_IN_FWRITE): New entry.
149
150         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
151
152 Wed Sep 20 15:39:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
153
154         * gcc.c (modify_target): New variable and struct.
155         (process_command): Handle MODIFY_TARGET_NAME.
156         * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
157         * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
158
159         * c-decl.c (finish_decl): Add else's to avoid referencing
160         TYPE_DOMAIN of an ERROR_MARK.
161
162 Wed Sep 20 21:44:31 2000  Denis Chertykov  <denisc@overta.ru>
163
164         * config/avr/avr.c (adjust_insn_length): Adjust lengths of
165         `reload_in*' insns.
166
167 2000-09-19  Marek Michalkiewicz  <marekm@linux.org.pl>
168
169         * config/avr/avr.md (neghi2): Add alternative for input and output
170         operands in different registers, as in negsi2.
171         (*negsi2): Remove '*' from the name.  Use "movw" if available.
172
173 2000-09-19  Jim Wilson  <wilson@cygnus.com>
174
175         * config/ia64/crtbegin.asm (__dso_handle): Delete use of
176         HAVE_GAS_HIDDEN macro.
177
178 Tue 19-Sep-2000 22:38:57 BST  Neil Booth  <NeilB@earthling.net>
179
180         * cpplex.c (lex_line): Drop the EOF token for unknown
181         directives in assembler.
182
183 2000-09-19  David Edelsohn  <edelsohn@gnu.org>
184
185         * configure.in: Allow enable_threads_flag value of "aix".  Define
186         thread_file as "aix" for AIX 4.3 and above.
187         * configure: Regenerated.
188
189         * gthr-aix.h: New file.
190
191         * rs6000/t-aix43: Replace soft-float multilib with pthread.
192         Remove 403 processor multilib match.  Fix rios2 processor multilib
193         match.
194
195         * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
196         to return to appropriate csect.
197
198 2000-09-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
199
200         * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
201         functions.
202         (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
203         (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
204         BUILT_IN_PRINTF.
205
206         * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
207         New entries.
208
209         * c-common.c (init_function_format_info): Handle __builtin_printf.
210         Set `check_function_format_ptr'.
211         (c_common_nodes_and_builtins): Set `puts_ftype' and
212         `printf_ftype'.  Declare __builtin_putchar, __builtin_puts,
213         __builtin_printf and printf.
214
215         * tree.c, tree.h (check_function_format_ptr): Declare.
216
217 Tue 19-Sep-2000 18:26:57 BST  Neil Booth  <NeilB@earthling.net>
218
219         * cppfiles.c (read_include_file): Take no special action for
220         zero-length files.
221
222 2000-09-19  Bernd Schmidt  <bernds@redhat.co.uk>
223
224         * final.c (insn_current_reference_address): Use INSN_SHUID of seq
225         rather than that of branch.
226         (shorten_branches): Don't increment insn_current_address twice.
227
228         Undo most of the Wed Jan 27 23:39:53 1999 patch:
229         * loop.h (struct induction): Delete members derived, ix and last_use.
230         (struct loop_ivs): Delete members first_increment_giv and
231         last_increment_giv.
232         * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
233         recombine_givs): Delete functions.
234         (find_and_verify_loops): Don't initialize cont_dominator.
235         (strength_reduce): Lose code to try to find bivs that can be
236         expressed as givs of another biv, and to convert biv increments
237         into givs.
238         Lose loop_scan_start variable, always use loop->scan_start.
239         Don't call recombine_givs.  Don't handle derived givs.
240         (record_giv): Don't initialize derived and last_use fields.
241         (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
242         givs.
243         * unroll.c (derived_regs): Delete static variable.
244         (unroll_loop): Don't initialize it.
245         (copy_loop_body): Lose code to handle derived givs.
246         (find_splittable_givs): Don't check for givs made from biv
247         increments.
248         Don't set derived_regs.
249
250         Fix misapplied earlier patch:
251         * config/sh/sh.md (floatsisf_ie): Reenable.  Remove explicit reference
252         to fpul.
253         (floatsisf2): Generate floatsisf_ie by default.
254         (floatsisf_i4): Conditional on TARGET_SH4.
255
256         (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
257         predicate for the expanders.
258
259 2000-09-19  Richard Henderson  <rth@cygnus.com>
260
261         * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
262         in addition to pentium and pentiumpro symbols.
263         (CPP_CPU_DEFAULT_SPEC): Likewise.
264
265         * c-typeck.c (c_expand_asm_operands): Restore the output tree
266         after expanding.
267
268         * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
269         if the tree has side effects.
270         (warn_if_unused_value): Do not warn about void constructs.
271
272         * c-decl.c (poplevel): Invoke warn_about_unused_variables.
273
274         * unroll.c (copy_loop_body): Update LABEL_NUSES before
275         calling invert_jump.
276
277 2000-09-18  Geoff Keating  <geoffk@cygnus.com>
278
279         * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
280         into anything.
281
282 2000-09-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
283
284         * Makefile.in (c-common.o): Depend on diagnostic.h.
285
286         * c-common.c: Include diagnostic.h.
287         (tfaff): Delete.
288         (status_warning): New function.
289         (check_format_info, maybe_read_dollar_number, check_format_types,
290         finish_dollar_format_checking, check_function_format): Accept a
291         `status' parameter.  All callers changed.
292
293         * c-common.h (check_function_format): Accept a `status' parameter.
294
295         * c-typeck.c: Update call to `check_function_format'.
296
297 2000-09-18  Richard Henderson  <rth@cygnus.com>
298
299         * c-decl.c (c_expand_body): Call mark_varargs before
300         expand_function_start.
301
302 2000-09-18  Geoff Keating  <geoffk@cygnus.com>
303
304         * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
305         * config/rs6000/eabi-ci.asm: Likewise.
306
307 2000-09-18  Richard Henderson  <rth@cygnus.com>
308
309         * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
310         for BImode.
311
312 2000-09-18  Jim Wilson  <wilson@cygnus.com>
313
314         * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
315         before passing it to fold_rtx_mult_add.
316
317         * unroll.c (final_giv_value): Pass increment through
318         extend_value_for_giv before passing it to emit_iv_add_mult.
319
320         * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
321         paradoxical subreg, then directly substitute the replacement and
322         return.
323
324 Mon 18-Sep-2000 22:12:44 BST  Neil Booth  <NeilB@earthling.net>
325
326         * cpp.texi: Update documentation, including some clarifications,
327         the treatment of various newline combinations, and space between
328         backslash and newline.
329
330 Mon Sep 18 21:00:47 2000  J"orn Rennecke <amylaar@redhat.co.uk>
331
332         * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
333         Replace ASM_OUTPUT_LABELREF with assemble_name.
334
335 Mon Sep 18 20:26:50 2000  J"orn Rennecke <amylaar@redhat.co.uk>
336
337         * sh.c (addsubcosts): CONST is not cheap.
338         (find_barrier): For Sh1, take alignment after jumps into account.
339
340 2000-09-15  Andrew Haley  <aph@redhat.com>
341
342         * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
343         remove all SETs of SUBREGs of hard registers.
344         * function.c (purge_hard_subreg_sets): New function.
345         (purge_single_hard_subreg_set): New function.
346         * rtl.h: (purge_hard_subreg_sets): New function.
347
348 2000-09-18  Richard Henderson  <rth@cygnus.com>
349
350         * config/ia64/ia64-protos.h: Update.
351         * config/ia64/ia64.c (signed_inequality_operator): New.
352         (ia64_expand_compare): New.
353         (ia64_register_move_cost): Handle PR_REGS moves.
354         (ia64_secondary_reload_class): Require a GR when moving to a PR.
355         (struct reg_write_state): Add written_by_and/or.
356         (struct reg_flags): Add is_and/or.
357         (rws_update): Set them.
358         (rws_access_regno): Test them to allow parallel comparisons.
359         (rtx_needs_barrier): Recognize parallel comparisons.
360         (emit_insn_group_barriers): Set prev_insn after a call stop bit.
361         Call recog_memoized; ignore pred_rel_mutex.
362         (emit_predicate_relation_info): Don't call find_basic_blocks here.
363         (ia64_reorg): Do it here instead.
364         * config/ia64/ia64.h: s/CCmode/BImode/g
365         (MODES_TIEABLE_P): Don't tie BImode.
366         (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
367         (CONST_COSTS): Pick sensible values for CONST_INT based on context.
368         (RTX_COSTS): Make multiply 4 insns.
369         (MEMORY_MOVE_COST): New.
370         (PREDICATE_CODES): Update.
371         * config/ia64/ia64.md: s/CCmode/BImode/g
372         (movcci, movbi): New.
373         (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
374         (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
375         (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
376         (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
377         (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
378         (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
379         (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
380         (mulsi, muldi): Use xmpy not xma.
381         (cmpbi): New.
382         (movcc, movcc_internal): Remove.
383         (branch expanders): Use ia64_expand_compare.
384         (setcc expanders): Likewise.
385         (cmov insns): Use move_operand and ia64_move_ok.
386         (pred_rel_mutex): Use unspec not unspec_volatile.  Prevent the
387         scheduler from moving it past a use.
388         * config/ia64/build.hacks: Remove.
389
390 Mon 18-Sep-2000 19:21:35 BST  Neil Booth  <NeilB@earthling.net>
391
392         * cpphash.h (HASHSTEP): Take character rather than pointer
393         to character.
394         (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
395
396         * cpphash.c (cpp_loookup): Update for new HASHSTEP.
397
398         * cpplex.c (auto_expand_name_space, trigraph_replace,
399         backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
400         IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
401         BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
402         KNOWN_DIRECTIVE): Delete.
403
404         (handle_newline, check_long_token, skip_escaped_newlines,
405         unterminated): New functions.
406         (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
407
408         (parse_identifier): Was parse_name, new implementation.
409         (skip_line_comment, skip_block_comment, skip_whitespace,
410         parse_number, parse_string, trigraph_ok, save_comment,
411         adjust_column, _cpp_get_line): New implementations.
412
413         (lex_token): New function.  Lexes a token at a time, looking
414         forwards.  Contains most of the guts of the old lex_line.
415         (lex_line): New implementation, using lex_token to obtain
416         individual tokens.
417         (cpp_scan_buffer): Use the token's line, not the list's line.
418
419         * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
420          New implementations.
421         (do_assert): Don't bother setting the answer's list's line.
422         (cpp_push_buffer): Initialise new pfile and read_ahead members
423         of struct cpp_buffer.
424
425         * cpplib.h (cppchar_t): New typedef.
426         (struct cpp_buffer): read_ahead, pfile and col_adjust are
427         new members.
428         (struct lexer_state): New structure that determines the state
429         and behaviour of the lexer.
430         (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
431         (struct cpp_reader): New member "state". Rename
432         multiline_string_line and multiline_string_column. Delete
433         col_adjust, in_lex_line members.
434         (CPP_BUF_COLUMN): Update.
435
436 2000-09-18  Richard Henderson  <rth@cygnus.com>
437
438         * combine.c (simplify_comparison): Shift a NOT out of a single
439         bit test.
440
441         * combine.c (if_then_else_cond): Canonicalize BImode true to
442         STORE_FLAG_VALUE.
443         * explow.c (trunc_int_for_mode): Likewise.
444
445         * combine.c (combine_simplify_rtx): Use gen_unary to distribute
446         the NOT for De Morgan's rule.
447         * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
448         of a comparison to the reverse comparison.
449
450         * combine.c (try_combine): Allow split to create a single insn.
451
452         * machmode.def: Add BImode.  Add a column for bitsize.
453         * machmode.h (DEF_MACHMODE): Adjust for extra column.
454         (GET_MODE_BITSIZE): Use it.
455         * rtl.c (DEF_MACHMODE): Adjust for extra column.
456         (mode_bitsize): New.
457         (mode_mask_array): Use bitsize.
458         * combine.c (combine_simplify_rtx): Require inner and outer
459         modes to match on nonzero_bits optimizations.
460
461 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
462
463         * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
464         its entry in spill_reg_store.
465         * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
466         * sh.c (reg_no_subreg_operand): New function.
467         * sh-protos.h (reg_no_subreg_operand): Declare it.
468         * sh.h (PREDICATE_CODES): Add it.
469         * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
470         input operand that needs to be in fpul.
471         (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
472         * sh.c (find_barrier): Take into account that machine_dependent_reorg
473         might add new insns.
474
475 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
476
477         * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
478         MAYBE_DEAD.
479         (sh_expand_epilogue): Take the PIC register into account when
480         computing the frame size.
481
482         * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
483         * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
484         LABEL_REFs with a PIC-safe unspec.
485
486 2000-09-18  Will Cohen  <wcohen@redhat.com>
487
488         * extend.texi (Zero Length): State that static initializers for
489         zero-length arrays are not allowed.
490
491         * c-typeck.c (process_init_element): Flag initializers for zero
492         length arrays.
493
494         * tree.c (integer_all_onesp): Ignore TREE_INT_CST_HIGH if prec is
495         exactly HOST_BITS_PERWIDE_INT.
496
497 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
498
499         * c-common.c (check_format_info): Properly save the argument
500         number and parameter for $ operand number formats in case width
501         and precision arguments are also used.  Allow printf width and
502         precision arguments to have operand numbers even if none was
503         specified for the main format, since this is OK for %*.*m.  Only
504         object to missing $ operand number if the format used requires an
505         argument.
506
507 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
508
509         * c-common.c (format_char_info): Add 'W' flag to comment.
510         (print_char_table, scan_char_table): Use it.
511         (check_format_info): Use the 'W' flag to determine whether a
512         format argument is written into.
513
514 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
515
516         * c-common.c (check_format_types): Reorganise and clean up,
517         checking earlier for ERROR_MARKs and making cur_type into its
518         TYPE_MAIN_VARIANT where convenient.
519
520 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
521
522         * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
523
524 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
525
526         * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
527
528         * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
529         * i386.c (struct builtin_description): New.
530         (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
531         (mmx_reg_operand): Declare MODE arg as unused.
532         (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
533         ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
534         ix86_expand_binop_builtin, ix86_expand_store_builtin,
535         ix86_init_builtins, ix86_expand_builtin): New functions.
536         * i386.h (ix86_builtins): New enumeration.
537         (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
538         * i386.md (attr length_immediate): 0 for mmx/sse types.
539         (attr prefix_0f): 1 for mmx/sse types.
540         (setcc_2): Remove "*" so we get gen_setcc_2.
541         (emms): Account for changed register numbering.  Set "memory" attr
542         to unknown.
543         (sfence): Set "memory" attr to unknown.
544
545 2000-09-18  Andreas Jaeger  <aj@suse.de>
546
547         * configure.in: Define _GNU_SOURCE only when using the GNU C
548         Library.
549         * configure: Regenerated.
550         * config.in: Regenerated.
551
552 2000-09-17  Mark Mitchell  <mark@codesourcery.com>
553
554         * cppinit.c (cpp_init): Don't use ANSI prototypes.
555         * flow.c (flow_dump_loop): Likewise.
556         (flow_loops_dump): Likewise.
557
558         * c-typeck.c (c_start_case): Fix typo.
559
560 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
561
562         * c-decl.c (grokdeclarator): Don't give a warning about defaulting
563         to int for plain complex which defaults to complex double.  Do
564         warn about defaulting to complex double if pedantic.  Warn about
565         complex integer types if pedantic.  Warn about complex types if
566         pedantic and not in C99 mode.
567         * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
568         for complex conjugation.
569
570 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
571
572         * contrib.texi: Update my entry.
573
574 Sun Sep 17 18:48:32 2000  Denis Chertykov  <denisc@overta.ru>
575
576         * config/avr/avr.md (mcu_enhanced): New attribute.
577         (mcu_mega): Likewise.
578         (extendhisi2): Use mcu_enhanced.
579         (zero_extendhisi2): Likewise.
580         (call_insn): Use mcu_enhanced and mcu_mega.
581         (call_value_insn): Likewise.
582         (*sbrx_branch): Use mcu_mega.
583         (*sbrx_and_branchsi): Likewise.
584         (*sbrx_and_branchhi): Likewise.
585         (*tablejump_lib): Likewise.
586
587 Sun Sep 17 10:46:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
588
589         * alias.c (true_dependence): Allow non-unchanging read to conflict
590         with unchanging write.
591
592         * expr.c (store_constructor_field): Accept ALIAS_SET arg.
593         (store_constructor): Pass alias_set to it.
594
595         * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
596         TYPE_MAIN_VARIANT of ERROR_MARK.
597         * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
598
599         * simplify-rtx.c (simplify_unary_operation): Add cases
600         FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
601
602 2000-09-17  Bernd Schmidt  <bernds@redhat.co.uk>
603
604         * expr.h (emit_library_call, emit_library_call_value): Delete
605         declarations.
606         * rtl.h (enum libcall_type): New.
607         (emit_library_call, emit_library_call_value): Change fn_type arg to
608         be of type enum libcall_type.
609         * calls.c: Likewise for the function definitions.  Several callers
610         throughout changed to use the new enumeration appropriately.
611         (emit_library_call_value_1): Likewise.  Put back code to make libcall
612         blocks of equal form, but only use it for the two new higher
613         enumeration values.
614
615 2000-09-16  Mark Mitchell  <mark@codesourcery.com>
616
617         Convert the C front-end to use function-at-a-time mode.
618         * c-common.h: Include splay-tree.h.
619         (C_DECLARED_LABEL_FLAG): New macro.
620         (struct language_function): Add x_scope_stmt_stack and
621         x_function_name_declared_p.
622         (RECHAIN_STMTS): Move definition.
623         (lang_statment_code_p): Likewise.
624         (lang_expand_stmt): Likewise.
625         (lang_expand_decl_stmt): New variable.
626         (lang_expand_function_end): Likewise.
627         (current_scope_stmt_stack): New function.
628         (add_decl_stmt): Likewise.
629         (add_scope_stmt): Likewise.
630         (mark_stmt_tree): Likewise.
631         (struct c_lang_decl): New structure.
632         (DECL_SAVED_TREE): Define.
633         (c_mark_lang_decl): New function.
634         (c_expand_start_cond): Change prototype.
635         (c_finish_then): New function.
636         (c_finish_else): Likewise.
637         (current_function_name_declared): Remove.
638         (set_current_function_name_declared): Likewise.
639         (mark_c_language_function): Declare.
640         (case_compare): Likewise.
641         (c_add_case_label): Likewise.
642         (c_expand_expr): Likewise.
643         (c_safe_from_p): Likewise.
644         * c-common.c (lang_expand_function_end): New variable.
645         (struct if_elt): Add if_stmt.
646         (c_expand_start_cond): Add the if-statement to the statement-tree,
647         rather than generating RTL.
648         (c_finish_then): New function.
649         (c_expand_start_else): Don't generate RTL.
650         (c_finish_else): New function.
651         (c_expand_expr_stmt): Don't generate RTL.
652         (statement_code_p): Add SCOPE_STMT.
653         (case_compare): New function.
654         (c_add_case_label): Likewise.
655         (mark_stmt_tree): Likewise.
656         (c_mark_lang_decl): Likewise.
657         (mark_c_language_function): Likewise.
658         (c_expand_expr): Likewise.
659         (c_safe_from_p): Likewise.
660         * c-decl.c (c_stmt_tree): New variable
661         (c_scope_stmt_stack): Likewise.
662         (c_function_name_declared_p): Likewise.
663         (lang_expand_expr_stmt): Remove.
664         (poplevel): Don't call output_inline_function for nested
665         functions.
666         (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
667         `extern' function.
668         (redeclaration_error_message): Change means of computing whether
669         or not a function is nested.
670         (lookup_label): Don't call label_rtx.
671         (init_decl_processing): Add more GC roots.
672         (start_decl): Add DECL_STMTs to the statement-tree, rather than
673         calling rest_of_decl_compilation.
674         (finish_decl): Don't call expand_decl.
675         (store_parm_decls): Begin the statement-tree, but don't generate
676         RTL.
677         (finish_function): Tie off the statement-tree.  Call c_expand_body
678         if appropriate.
679         (c_expand_body): New function.
680         (push_c_function_context): Save more information.
681         (pop_c_function_contxt): Likewise.
682         (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
683         (lang_mark_tree): Mark it.
684         (current_stmt_tree): Adjust.
685         (current_scope_stmt_stack): New function.
686         (do_case): Remove.
687         (set_current_name_declared): Likewise.
688         (c_begin_compound_stmt): Define.
689         (c_expand_decl_stmt): Likewise.
690         * c-lang.c: Include rtl.h and expr.h.
691         (lang_init): Set more language-specific hooks.
692         * c-lex.c: Include expr.h.
693         * c-parse.in: Changes throughout to add statements to the
694         statement-tree, rather than generating RTL after every statement.
695         * c-semantics.c (lang_expand_decl_stmt): Define.
696         (add_decl_stmt): New function.
697         (add_scope_stmt): Likewise.
698         (finish_stmt_tree): Tweak.
699         (genrtl_expr_stmt): Likewise.
700         (genrtl_decl_stmt): Handle local labels, and call
701         lang_expand_decl_stmt if required.
702         (genrtl_for_stmt): Fix line-number handling.
703         (genrtl_case_label): Handle cleanups.
704         (genrtl_asm_stmt): Don't call combine_strings.
705         (genrtl_compound_stmt): Simplify.
706         (expand_stmt): Handle SCOPE_STMTs.
707         * c-tree.h (struct lang_decl): New structure.
708         (C_DECLARED_LABEL_FLAG): Remove.
709         (c_begin_compound_stmt): Declare.
710         (c_expand_decl_stmt): Likewise.
711         (c_expand_start_case): Rename to c_start_case.
712         (c_finish_case): New function.
713         * c-typeck.c (start_init): Tweak setting of
714         constructor_incremental.
715         (c_expand_asm_operands): Tweak error-handling.  Add to the
716         statement-tree.
717         (c_expand_return): Add to the statement-tree.
718         (c_expand_start_case): Rename to ...
719         (c_start_case): ... this.
720         (struct c_switch): New type.
721         (switch_stack): New variable.
722         (do_case): Simplify.
723         (c_finish_case): New function.
724         * dependence.c: Include expr.h.
725         (enum dependence_type): Change spelling of enumerals.
726         (check_node_dependence): Adjust.
727         * expr.h (lang_safe_from_p): Declare.
728         (safe_from_p): Likewise.
729         * expr.c (lang_safe_from_p): New variable.
730         (safe_from_p): Give it external linkage.  Use lang_safe_from_p.
731         * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
732         * toplev.c (rest_of_decl_compilation): Robustify.
733         * tree.c (contains_placeholder_p): Likewise.
734         * Makefile.in: Update dependencies.
735         * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
736         * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
737         (objc_expand_function_end): New function.
738         (finish_method_def): Use it.
739         (init_objc): Initialize more language-specific hooks.
740         * objc/Make-lang.in: Update dependencies.
741
742 2000-09-16  Geoffrey Keating  <geoffk@cygnus.com>
743
744         * configure.in: Define macros that affect features before
745         testing for features.  Don't define _XOPEN_SOURCE.
746         * configure: Regenerated.
747         * config.in: Regenerated.
748
749 Sat Sep 16 19:42:50 EDT 2000  John Wehle  (john@feith.com)
750
751         * rtlanal.c (rtx_varies_p): Volatile asms vary.
752         (rtx_unstable_p): Restructure code.  Volatile asms
753         are unstable.
754
755 Sat Sep 16 14:35:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
756
757         * function.h (no_debugging_symbols): New field.
758         * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
759         Initialize no_debugging_symbols.
760         (output_inline_function): Save and restore write_symbols and set from
761         no_debugging_symbols.
762         * toplev.c (rest_of_compilation): Call save_for_inline.
763         * tree.h: Update comment.
764
765         * stor-layout.c (place_field): Don't do anything if field or
766         its type are ERROR_MARK.
767
768 Sat Sep 16 19:14:00 2000  Laurynas Biveinis <lauras@softhome.net>
769
770         * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
771         (read_include_file): Ensure inc->mmaped is initialized.
772
773 2000-09-16  Richard Henderson  <rth@cygnus.com>
774
775         * cppiles.c (purge_cache): Use PTR not caddr_t.
776
777 2000-09-16  Hans-Peter Nilsson  <hp@axis.com>
778
779         * gcc.c: In description for %{<S}, say the option removed is -S.
780         * invoke.texi (Spec Files): Ditto.
781
782 2000-09-16  Andreas Jaeger  <aj@suse.de>
783
784         * configure.in: Always define _GNU_SOURCE to make interfaces
785         visible that were hidden by only defining _GNU_SOURCE.
786         * configure: Regenerated.
787
788 Sat 16-Sep-2000 08:13:45 BST  Neil Booth  <NeilB@earthling.net>
789
790         * cpplex.c (push_macro_context): Set an argument's level after
791         calling parse_args.  We could loop infinitely otherwise.
792
793 2000-09-15  Tom Tromey  <tromey@cygnus.com>
794
795         * configure, config.in: Rebuilt.
796         * configure.in: Check for iconv.h.  Define _XOPEN_SOURCE.
797
798 2000-09-15  Greg McGary  <greg@mcgary.org>
799
800         * cppmacro.c (check_trad_stringification): Check token
801         text pointers against limit before dereferencing.
802
803 2000-09-15  Joseph S. Myers  <jsm28@cam.ac.uk>
804
805         * c-common.c (format_wanted_type): New structure.
806         (check_format_types): New function.
807         (check_format_info): Pass all checking of types of format
808         arguments, including width and precision arguments, to this new
809         function.
810
811 2000-09-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
812
813         * BUGS: Remove file.
814
815 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
816
817         * config/alpha/alpha.c (override_options): ev6 cache latencies
818         from Richard Henderson.  Don't allow -mmemory-latency=L0.
819
820         * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
821         (TARGET_OPTIONS): Add tune=.
822         (alpha_tune_string): Declare.
823         * config/alpha/alpha.c (override_options): Add cpu_table.
824         Use alpha_cpu_string first to set both alpha_cpu and target_flags
825         and then alpha_tune_string to set alpha_cpu only.
826         Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
827         * config/alpha/elf.h (ASM_FILE_START): Likewise.
828         * config/alpha/osf.h (ASM_FILE_START): Likewise.
829         * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
830
831 Fri Sep 15 19:45:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
832
833         * i386-protos.h (no_comparison_operator, uno_comparison_operator):
834         Remove.
835         (ix86_comparison_operator, ix86_cc_mode): Declare
836         * i386.h (CCGC, CCGCO): New modes.
837         (SELECT_CC_MODE): Move offline to ....
838         * i386.c (ix86_cc_mode): .... here; use new modes.
839         (ix86_comparison_operator): New.
840         (fcmov_comparison_operator): Ensure proper mode.
841         (put_condition_mode): More sanity checking.
842         (ix86_match_ccmode): Handle new modes.
843         (ix86_expand_fp_compare): GEU requires CCmode.
844         (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
845         doing it by hand.
846         * i386.md (cmp?i_ccz_1): Remove
847         (cmp?i_ccno_1): Use ix86_match_ccmode.
848         (cmp?i_minus_1): New.
849         (cmpsi_1): New expander.
850         (cmpqi_ext_1): Use match_ccmode
851         (cmpqi_ext_3): New expander.
852         (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
853         (cmpqi_ext_4): Use match_ccmode.
854         (add?i_?): Use match_ccmode.
855         (add?i_6): New.
856         (test?i_ccz_1): Remove
857         (test?i_1): New.
858         (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
859         (testqi_ext_0): Use ix86_match_ccmode.
860         (*xorqi_cc_ext_1): Use ix86_match_ccmode.
861         (xorqi_cc_ext_1): New expander.
862         (shift patterns): Use CCGOCmode for all shifts except for sar.
863         (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
864         (setcc_3, jcc_3, miv?icc_c): Remove.
865
866 2000-09-15  Will Cohen  <wcohen@redhat.com>
867
868         * dwarf2out.c (add_const_value_attribute): Changed array into a
869         xmalloced object, so it exists after function exit.
870         (free_AT): Added case for dw_val_class_float to free allocated
871         memory.
872
873 2000-09-15  Kazu Hirata  <kazu@hxi.com>
874
875         * config/i386/i386.md: Fix a comment typo.
876         * gcc.c: Fix formatting.
877
878 2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
879
880         * optabs.c (emit_libcall_block): If target is a user variable,
881         copy to a temporary first.
882         * expr.c (convert_move): When generating a libcall, make a libcall
883         block.
884         * calls.c (emit_library_call_value_1): Don't create a libcall
885         sequence here; our caller will in most cases do it.
886
887         * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
888         MACH into FPUL.
889         (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
890         * sh.md (reload_outsf): Generate recognizable patterns for
891         TARGET_SH3E.
892         (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
893         fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
894         fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
895         truncdfsf2_i4): Change not to use explicit references to fpul.
896         (floatsisf2_ie): Remove USE of fpscr.
897         (floatsisf2): Change default expansion to match this.
898         (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
899         unused patterns.
900
901 2000-09-15  Richard Henderson  <rth@cygnus.com>
902
903         * expmed.c (store_bit_field): Consider naturally aligned
904         memory for direct reference.
905
906 2000-09-15  Richard Henderson  <rth@cygnus.com>
907
908         * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
909         AND addresses into alias set 0.
910         (alpha_expand_unaligned_store): Likewise.
911         (alpha_expand_unaligned_load_words): Likewise.
912         (alpha_expand_unaligned_store_words): Likewise.
913
914 2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
915
916         * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
917         * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
918         is defined.
919         * config/mips/mips.c (mips_va_arg): Args passed by reference have a
920         rsize of UNITS_PER_WORD.
921
922 Fri 15-Sep-2000 06:49:07 BST  Neil Booth  <NeilB@earthling.net>
923
924         * cpplex.c (ON_REST_ARG): Correct the test.
925         (maybe_paste_with_next): Duplicate a token that fail pasting,
926         and clear its PASTE_LEFT flag, so that nested pasting attempts
927         do not occur.
928
929 2000-09-14  Richard Henderson  <rth@cygnus.com>
930
931         * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
932         * cse.c (rtx_cost): Likewise.
933         * optabls.c (expand_binop): Likewise.
934         (expand_twoval_binop, prepare_cmp_insn): Likewise.
935         * regclass.c (copy_cost): Likewise.
936         * reload1.c (reload_cse_move2add): Likewise.
937
938 2000-09-14  Joseph S. Myers  <jsm28@cam.ac.uk>
939
940         * c-parse.in (reswords): Add _Complex.
941
942 2000-09-14  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
943
944         * gcc.1: Delete documentation for -undef preprocessor option.
945
946 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
947
948         * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
949         STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
950         * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
951         Remove undefine before config/elfos.h.
952         * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
953
954 2000-09-14  Kazu Hirata  <kazu@hxi.com>
955
956         * invoke.texi (H8/300 Options): Add -ms2600.
957         * config/h8300.c (h8300_init_once): Output an error when -ms2600
958         is used without -ms.
959         * config/h8300.h (TARGET_MAC): New.
960         (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
961         (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
962         machine other than H8/S2600.
963         * config/h8300.md: Accept mac instructions on the H8/S2600 instead
964         of the H8/S2000.
965
966 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>, Bernd Schmidt  <bernds@redhat.co.uk>
967
968         * reload.c (find_reloads_address_1): Generate reloads for auto_inc
969         pseudos that refer to the original pseudos, not only to their
970         equivalent memory locations.
971
972 Thu Sep 14 12:10:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
973
974         * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
975         when making new MEM.
976
977         * Makefile.in (LN): Remove duplicate definition.
978
979 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
980
981         From Joern Rennecke:
982         * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
983         on an insn and function_invariant_p returns nonzero for the source,
984         add a REG_EQUAL note.
985
986 Thu Sep 14 00:51:57 EDT 2000  John Wehle  (john@feith.com)
987
988         * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
989         conflict with frame_pointer_rtx.
990
991 2000-09-13  Kazu Hirata  <kazu@hxi.com>
992
993         * loop.c: Fix formatting.
994         * loop.h: Likewise.
995
996 2000-09-13  Richard Henderson  <rth@cygnus.com>
997
998         * config/ia64/ia64.md (divsf3): New.
999         (divsf3_internal_lat, divsf3_internal_thr): New.
1000         (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
1001         (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
1002         (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
1003         (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
1004         (nmadddf4_alts, nmadddf4_trunc): New.
1005         (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
1006         (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
1007         (multf3_truncsf_alts, multf3_truncdf_alts): New.
1008         (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
1009         (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
1010         (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
1011         (nmaddtf4_truncdf_alts): New.
1012         (recip_approx): Don't predicate.
1013
1014 2000-09-13  Richard Henderson  <rth@cygnus.com>
1015
1016         * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
1017
1018 2000-09-13  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1019
1020         * flags.h (flag_dump_rtl_in_asm): Declare.
1021         * toplev.c (flag_dump_rtl_in_asm): Define.
1022         (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
1023         if -dP is specified.
1024         * rtl.h (print_rtx_head): Declare.
1025         * print-rtl.c (print_rtx_head): Define.
1026         (print_rtx): Print the string pointed to by print_rtx_head
1027         at beginning of each dump line.
1028         (print_rtl): Likewise.
1029         (print_rtl_single): Likewise.
1030         * final.c (final_scan_insn): Dump the insn in the assembly
1031         file for debugging.
1032         * gcc.1: Document -dP option.
1033         * invoke.texi (Debugging Options): Likewise.
1034
1035 2000-09-13  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1036
1037         * md.texi (Machine Constraints): Document the 68HC11 constraints.
1038         * install.texi (Configurations): Document the 68HC11&68HC12 port.
1039         * invoke.texi (Option Summary, M68hc1x Options): Document the options.
1040
1041 Tue Sep 12 13:51:13 2000  Denis Chertykov  <denisc@overta.ru>
1042
1043         * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
1044         * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
1045         (*clrstrqi): Likewise.
1046         (xorhi3,xorsi3,absqi2): Likewise.
1047         (one_cmplhi2,one_cmplsi2): Likewise.
1048         (addsi3): Two stupid constraint alternatives removed.
1049         (extendhisi2): Use `movw' for enhanced avr cores.
1050         (zero_extendhisi2): Likewise.
1051
1052 Wed Sep 13 02:31:23 EDT 2000  John Wehle  (john@feith.com)
1053
1054         * alias.c (find_base_term): Use frame_pointer_rtx
1055         when handling an ADDRESSOF.
1056
1057         * cse.c (canon_hash): Handle USE of BLKmode memory.
1058         (cse_insn): Outgoing arguments for a libcall don't
1059         affect any recorded expressions.
1060
1061 2000-09-12  Tom Tromey  <tromey@cygnus.com>
1062
1063         * configure, config.in: Rebuilt.
1064         * configure.in: Check for iconv, nl_langinfo, langinfo.h.
1065
1066 2000-09-12  Jakub Jelinek  <jakub@redhat.com>
1067
1068         * c-lex.c (lex_string): Use charwidth to compute bytemask.
1069         * expr.c (expand_expr): Don't optimize constant array references
1070         initialized with wide string constants.
1071
1072 2000-09-13  Michael Hayes  <mhayes@cygnus.com>
1073
1074         * loop.c (note_set_pseudo_multiple_uses): Correct.
1075
1076 2000-09-12  Jim Wilson  <wilson@cygnus.com>
1077
1078         * ifcvt.c (noce_process_if_block): If A and B are the same, and no
1079         else block, and X has side-effects, then fail.
1080
1081 2000-09-12  Greg McGary  <greg@mcgary.org>
1082
1083         * config/mips/mips-protos.h
1084         (trap_cmp_op, mips_gen_conditional_trap): New func decls.
1085         * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
1086         (PREDICATE_CODES): Add "trap_cmp_op".
1087         * config/mips/mips.c
1088         (trap_cmp_op, mips_gen_conditional_trap): New functions.
1089         * config/mips/mips.md (trap, conditional_trap): New patterns.
1090
1091 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
1092
1093         * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
1094         pointer.
1095
1096 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1097
1098         * builtins.c (built_in_decls): New array.
1099         (expand_builtin_fputs): New function.
1100         (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
1101
1102         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
1103
1104         * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
1105
1106         * tree.h (built_in_decls): New array.
1107
1108 Tue Sep 12 08:53:57 2000  Jeffrey A Law  (law@cygnus.com)
1109
1110         * convex.md: Use "+" instead of "=" for outputs wrapped in a
1111         STRICT_LOW_PART.
1112         * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
1113
1114 2000-09-12  Kazu Hirata  <kazu@hxi.com>
1115
1116         * haifa-sched.c: Fix formatting.
1117
1118         * genattrtab.c: Fix formatting.
1119
1120         * unroll.c: Fix formatting.
1121
1122 2000-09-12  Bruce Korb  <bkorb@gnu.org>
1123
1124         * fixinc/fixfixes.c: make a type for the fix procedure & use it,
1125         remove obsolete code
1126         * fixinc/fixincl.c: Use PARAMS, not _P_.  Add no-op default to switch.
1127         * fixinc/fixincl.tpl: make non-exported arrays static scope
1128         * fixinc/fixincl.x: regenerate
1129         * fixinc/fixlib.h: Use PARAMS, not _P_
1130         * fixinc/fixtests.c: make a type for the test proc & use it
1131         * fixinc/server.h: Use PARAMS, not _P_
1132
1133 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1134
1135         * c-typeck.c (process_init_element): Avoid union init warnings on
1136         floating point zero.  Don't crash on unions containing structs.
1137
1138 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
1139
1140         * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
1141         general_movsrc_operand, and remove CONST_INT from
1142         general_movdst_operand.
1143
1144 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
1145
1146         * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
1147         if a reference to non-fixed hardreg is seen.  Otherwise, count hard
1148         regs with a higher cost.
1149         (preferrable): Deal with cases where either cost or regcost is
1150         MAX_COST.
1151         (cse_insn): Use MAX_COST rather than 10000.  Always initialize
1152         regcost values.
1153         (COSTS_N_INSNS): Move definition...
1154         * rtl.h: ...here.
1155         (MAX_COST): New macro.
1156         * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
1157         constant.
1158
1159 2000-09-11  Mark Mitchell  <mark@codesourcery.com>
1160
1161         * c-common.h (genrtl_clear_out_block): Remove.
1162         * c-semantics.c (genrtl_clear_out_block): Remove.
1163         (genrtl_while_stmt): Don't call it.
1164         (genrtl_for_stmt): Likewise.
1165
1166 2000-09-11  Zack Weinberg  <zack@wolery.cumb.org>
1167
1168         * cppfiles.c: Move all default-#defines to top of file.
1169         (open_include_file): Replace by lookup_include_file.
1170         (read_with_read, read_file): Merged into read_include_file.
1171         (stack_include_file, purge_cache): New functions.
1172         (close_cached_fd): Delete.
1173         (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
1174         Cache the in-memory buffer, not the file descriptor.
1175
1176         * cpphash.h (struct include_file): Add buffer, st, refcnt,
1177         mapped fields.
1178         (xcnew): New utility macro.
1179         (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
1180         * cpplib.h (struct cpp_buffer): Remove mapped field.
1181
1182 2000-09-11  Zack Weinberg  <zack@wolery.cumb.org>
1183
1184         * cpplex.c (parse_string): Accept backslash space newline as a
1185         line continuation.
1186         (lex_line): Likewise.
1187         (_cpp_get_token): Remove hard limit on macro nesting.
1188
1189 2000-09-12  Philipp Thomas  <pthomas@suse.de>
1190
1191         * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
1192         * configure: Rebuilt.
1193
1194 2000-09-13  Michael Hayes  <mhayes@cygnus.com>
1195
1196         * flow.c (split_block): Fix update of registers live at
1197         end of split block.
1198
1199 Tue Sep 12 01:51:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1200
1201         * i386.md (add?i_3, add?i_5): New.
1202         (add?i_4): Rename from add?i_3;  Fix compare pattern.
1203         (sub?i_3, xor?i_3, ior?i_3): New.
1204
1205         * genrecog.c (write_tree): Output code to clear insn_extract cache.
1206         * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
1207         instead of extract_insn and extract_constrain_insn_cache instead of
1208         extract_insn and constrain_operands.
1209         * recog.c (extract_insn_cached, extract_constrain_insn_cached):
1210         New functions.
1211         (extract_insn): Clear which_alternative.
1212         (constrain_operands): Set which_alternative to -1 when failed.
1213         * recog.h (extract_constrain_insn_cached, extract_insn_cached):
1214         Declare.
1215
1216 2000-09-11  Matthew Hiller  <hiller@redhat.com>
1217
1218         * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
1219         on operand 0 to '+'.
1220         (movstricthi): Likewise.
1221
1222 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
1223
1224         * loop.h (LOOP_IVS): New macro.
1225         (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
1226         (struct loop_ivs): New.
1227         (struct loop_info): Add ivs field.
1228         (reg_iv_type, reg_iv_info): Delete prototype.
1229         (reg_biv_class, loop_iv_list): Likewise.
1230         * loop.c (record_biv, find_life_end): Pass loop argument.
1231         (reg_iv_type): Remove global array and use
1232         field in loop_regs structure within loop_ivs structure.
1233         (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
1234         (first_increment_giv, last_increment_giv): Use entry in
1235         loop_ivs structure.
1236         (record_initial): Pass ivs pointer.
1237         * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
1238
1239 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
1240
1241         * loop.h (LOOP_REGS): New macro.
1242         (struct loop_regs): New.
1243         (struct loop_info): Add regs field.
1244         * loop.c (set_in_loop): Remove global array and store
1245         in loop_regs structure as part of loop_info structure.
1246         (n_times_set, may_not_optimize): Likewise.
1247         (reg_single_usage, moved_once): Likewise.
1248         (count_one_set): Add regs argument.
1249         (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
1250         (set_pseudo_multiple_uses): Pass regs pointer.
1251
1252 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
1253
1254         * unroll.c (iteration_info): Subsume into loop_iterations.
1255         * loop.h (loop_info): New field iv.
1256
1257 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
1258
1259         * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
1260         (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
1261         (flow_loops_update): New prototype.
1262         (flow_loops_find): Add flags to prototype.
1263         (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
1264         * flow.c (flow_loop_pre_header_scan): New.
1265         (flow_loop_dump): Dump pre-header root and trace and exit dominators.
1266         (flow_loop_free): Free pre-header root and trace and exit dominators.
1267         (flow_loops_find): New argument flags.
1268         (flow_loops_update): New function.
1269         * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
1270
1271 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
1272
1273         * basic-block.h (split_block, update_bb_for_insn): New prototypes.
1274         * flow.c (split_block, update_bb_for_insn): New functions.
1275
1276 2000-09-11  Richard Henderson  <rth@cygnus.com>
1277
1278         * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
1279
1280 2000-09-11  Richard Henderson  <rth@cygnus.com>
1281
1282         * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
1283         * config/ia64/ia64.c (fr_nonimmediate_operand): New.
1284         (ia64_override_options): Prevent optimizing division for both
1285         latency and throughput.
1286         (rtx_needs_barrier): Handle frcpa.
1287         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
1288         (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
1289         (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
1290         (TARGET_SWITCHES): Add -minline-divide-min-latency and
1291         -minline-divide-max-throughput.
1292         (PREDICATE_CODES): Update.
1293         * config/ia64/ia64.md (extendsidi2): Remove * from f case.
1294         (zero_extendsidi2): Likewise.  Fix typo in f case insn.
1295         (extendsfdf2): Add cases for gr<->fr and fr<->mem.
1296         (extendsftf2): Likewise.
1297         (extenddftf2): Likewise.
1298         (fix_trunctfdi2_alts): New.
1299         (fixuns_trunctfdi2_alts): New.
1300         (madd*4): Rename from madd*3.
1301         (divsi3, modsi3, udivsi3, umodsi3): New.
1302         (divsi3_internal): New.
1303         (divdi3, moddi3, udivdi3, umoddi3): New.
1304         (divdi3_internal_lat, divdi3_internal_thr): New.
1305         (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
1306         (recip_approx): New.
1307
1308 2000-09-11  Alexandre Oliva  <aoliva@redhat.com>
1309
1310         * print-rtl.c (debug_call_placeholder_verbose): New variable.
1311         (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
1312         set.
1313         * integrate.c (copy_rtx_and_substitute): Don't share
1314         LEAF_REG_REMAPpable registers with the inlined function.  Don't
1315         share the function value with calling sequences.
1316
1317 2000-09-11  Jakub Jelinek  <jakub@redhat.com>
1318
1319         * c-decl.c (do_case): Fix a typo.
1320
1321         * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
1322         to a if the comparison is floating mode and not -ffast-math.
1323         * simplify-rtx.c (simplify_ternary_operation): Likewise.
1324
1325 Mon Sep 11 20:07:48 2000  J"orn Rennecke <amylaar@redhat.co.uk>
1326
1327         * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
1328         gen_ic_invalidate_line.
1329
1330 2000-09-11  Philip Blundell  <pb@futuretv.com>
1331
1332         * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
1333
1334 Mon Sep 11 10:48:41 2000  Ulrich Drepper <drepper@redhat.com>
1335
1336         * install.texi (LANGUAGES): Update to include new languages.
1337         * INSTALL: Rebuilt.
1338
1339 2000-09-11  DJ Delorie  <dj@redhat.com>
1340
1341         * gcc.c (main): Don't warn about unused -B prefixes
1342         (unused_prefix_warnings): remove
1343
1344 2000-09-11  Kazu Hirata  <kazu@hxi.com>
1345
1346         * final.c: Fix formatting.
1347
1348         * integrate.c: Fix formatting.
1349
1350 2000-09-11  Geoff Keating  <geoffk@cygnus.com>
1351
1352         * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
1353
1354 2000-09-11  Bernd Schmidt  <bernds@redhat.co.uk>
1355
1356         * reload.c (regno_clobbered_p): Fix thinko in previous change.
1357
1358 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1359
1360         * gcc.1: Document 68hc11 specific options.
1361
1362 2000-09-10  Geoff Keating  <geoffk@cygnus.com>
1363
1364         * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
1365         (TARGET_LONG_DOUBLE_128): Define.
1366         (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
1367         (LONG_DOUBLE_TYPE_SIZE): Redefine.
1368         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
1369         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
1370         of __LONG_DOUBLE_128__.
1371         (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
1372         passed.
1373         (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
1374         (CPP_SYSV_DEFAULT_SPEC): Define.
1375         (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
1376         (INIT_TARGET_OPTABS): Define.
1377
1378         * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
1379         (RS6000_UITRUNC): Likewise.
1380         (INIT_TARGET_OPTABS): New macro.
1381         * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
1382         (trunc_defined): Delete.
1383         (output_prolog): Don't output .extern definitions for fp->int
1384         conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
1385         * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
1386         (trunc_defined): Delete.
1387         (RS6000_ITRUNC): Moved to aix.h.
1388         (RS6000_UITRUNC): Likewise.
1389         * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
1390         only emit a libcall.
1391         (fixuns_truncdfsi2): Delete.
1392         (trunc_call): Delete.
1393         (trunc_call_rtl): Delete.
1394
1395 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
1396
1397         * varasm.c (make_decl_rtl): Restore leading star on
1398         DECL_ASSEMBLER_NAME set for decls with an asmspec.
1399
1400 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
1401
1402         * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
1403         won't give a spurious error for '#pragma pack()'.  Simplify
1404         control flow for readability.  'reset' action is not necessary.
1405
1406 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
1407
1408         * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
1409         SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
1410         LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
1411         DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
1412
1413         * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
1414         profile.c, sdbout.c, tradcif.y, tree.c:
1415         Include defaults.h if not already included.
1416         Don't define the above macros.
1417
1418         * Makefile.in: Update dependencies.
1419
1420 2000-09-10  Mark Mitchell  <mark@codesourcery.com>
1421
1422         * c-common.h (add_stmt): Change prototype.
1423         (RECHAIN_STMTS): New macro.
1424         (CASE_LABEL_DECL): Likewise.
1425         (genrtl_case_label): Change prototype.
1426         (c_expand_start_case): Remove prototype.
1427         (build_case_label): Change prototype.
1428         (decl_constant_value): Declare.
1429         * c-common.c (check_case_value): Handle C++'s extensions to C
1430         semantics.
1431         * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
1432         field.
1433         * c-parse.in (stmt): Adjust handling of return statements and case
1434         laels.
1435         * c-semantics.c (add_stmt): Return the new statement.
1436         (genrtl_return_stmt): Take the RETURN_STMT as input, not the
1437         returned expression.  Directly generate RTL, rather than calling
1438         c_expand_return.
1439         (genrtl_switch_stmt): Don't call c_expand_start_case.
1440         (build_case_label): Take the LABEL_DECL as input, too.
1441         (genrtl_case_label): Just call add_case_node.
1442         (expand_stmt): Adjust calls to genrtl_return_stmt and
1443         genrtl_case_label.
1444         * c-tree.h (c_expand_start_case): Declare.
1445         * c-typeck.c (decl_constant_value): Give it external linkage.
1446         (c_expand_return): Don't call expand_return or expand_null_return;
1447         use genrtl_return_stmt instead.
1448         * stmt.c (struct nesting): Remove num_ranges field.
1449         (add_case_node): Give it external linkage.
1450         (expand_start_case): Don't set num_ranges.
1451         (expand_start_case_dummy): Don't clear it.
1452         (pushcase): Rely on add_case_node to handle `default' labels.
1453         (add_case_node): Handle `default' labels.
1454         * tree.c (tree_int_cst_compare): New function.
1455         * tree.h (tree_int_cst_compare): Declare.
1456         (add_case_node): Likewise.
1457
1458 2000-09-10  Richard Henderson  <rth@cygnus.com>
1459
1460         * c-parse.in: Revert last change.
1461         (init_reswords): Do not enter disabled keywords into the ridpointers
1462         table, modulo objc weirdness.
1463         (_yylex): Return the canonical spelling for a keyword.
1464
1465 2000-09-10  Philip Blundell  <philb@gnu.org>
1466
1467         * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
1468         * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
1469
1470 Sun Sep 10 14:30:28 EDT 2000  John Wehle  (john@feith.com)
1471
1472         * alias.c (find_base_term): Handle ADDRESSOF.
1473         (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
1474
1475 2000-09-10  Denis Chertykov  <denisc@overta.ru>
1476
1477         * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
1478         outputting templates with many lines.
1479
1480 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1481
1482         * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
1483         to decide whether 64-bit support must be generated.
1484
1485 2000-09-10  Richard Henderson  <rth@cygnus.com>
1486
1487         * c-parse.in (asm patterns): Fix volatile check.
1488
1489 2000-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1490
1491         * cppmacro.c (check_trad_stringification): New function.
1492         (save_expansion): If -Wtraditional, warn about stringification of
1493         macro arguments.
1494
1495 2000-09-11  Michael Hayes  <mhayes@cygnus.com>
1496
1497         * loop.h (struct loop_mem_info): Move from loop.c
1498         (struct loop_info): Add fields store_mems, mems, mems_idx,
1499         mems_allocated, unknown_address_altered,
1500         unknown_constant_address_altered, num_mem_sets, and
1501         first_loop_store_insn.
1502
1503         * loop.c (loop_store_mems): Replace with field in loop_info struct.
1504         (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
1505         (unknown_address_altered, unknown_constant_address_altered): Likewise.
1506         (num_mem_sets): Likewise.
1507         (replace_loop_mems, replace_loop_regs): New.
1508         (struct loop_replace_args): New.
1509         (load_mems): Use replace_loop_mems.
1510         (try_copy_prop): Use replace_loop_regs.
1511         (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
1512
1513 2000-09-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1514
1515         * configure.in: Recognize m6811-elf and m6812-elf.
1516         * configure: Regenerate.
1517
1518 2000-09-09  Geoff Keating  <geoffk@cygnus.com>
1519
1520         * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
1521         to operand_subword.
1522
1523 2000-09-10  Michael Hayes  <mhayes@cygnus.com>
1524
1525         * loop.c (struct movables): New.
1526         (num_movables): Move into struct movables.
1527         (the_movables): Change type to struct movables.
1528         (ignore_some_movables): Change struct movable arg to struct movables.
1529         (force_movables, combine_movables, regs_match_p): Likewise.
1530         (rtx_equal_for_loop_p, move_movables): Likewise.
1531         (scan_loop): Change movables to be of type struct movables.
1532         Replace last_movable with field in movables structure.
1533
1534 2000-09-08  Zack Weinberg  <zack@wolery.cumb.org>
1535
1536         * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
1537         (init_pragma): Avoid warning if pfile happens to be unused.
1538         * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS.  Never
1539         define init_pragma to nothing.  Always prototype
1540         init_pragma.  Prototype dispatch_pragma if !USE_CPPLIB.
1541
1542         * c-lex.c (process_directive): Always call dispatch_pragma.
1543         Initialize entering_c_header to 0.
1544
1545 2000-09-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1546
1547         * config/m68hc11/m68hc11.md: New file, machine description for
1548         68HC11 & 68HC12.
1549         * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
1550         * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
1551         * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
1552         * config/m68hc11/m68hc11-protos.h: New file.
1553         * config/m68hc11/m68hc11-crt0.S: New file, startup code.
1554         * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
1555         * config/m68hc11/xm-m68hc11.h: New file, target defs.
1556         * config/m68hc11/larith.asm: New file, libgcc routines.
1557
1558 2000-09-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1559
1560         * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
1561         (FPBIT_FUNCS): Add _usi_to_sf.
1562         * config/fp-bit.c (usi_to_float): New function.
1563         * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
1564         (usi_to_float): Add appropriate #define.
1565
1566 2000-09-08  Bernd Schmidt  <bernds@redhat.co.uk>
1567
1568         * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
1569         new functions.
1570         * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
1571         * i386.md (attr "type"): Add sse and mmx types.
1572         (attr "memory"): Handle them without a crash.
1573         (movsi_1, movdi_2): Allow MMX regs.
1574         (movdi splits): Don't split moves involving MMX regs.
1575         (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
1576         (movv4sf_internal, movv4si_internal, movv8qi_internal,
1577         movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
1578         movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
1579         sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
1580         sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
1581         sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
1582         addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
1583         divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
1584         sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
1585         sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
1586         vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
1587         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
1588         cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
1589         addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
1590         subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
1591         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
1592         mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
1593         mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
1594         eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
1595         smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
1596         lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
1597         mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
1598         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
1599         mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
1600         mmx_clrdi): New patterns.
1601
1602 2000-09-08  Richard Earnshaw  <rearnsha@arm.com>
1603
1604         * arm.c: Don't include tm.h directly.
1605
1606 Fri Sep  8 14:34:56 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1607
1608         * recog.c (validate_replace_rtx_1): Fix confusion about equality
1609         testing; simplify subregs of constants and nested subregs.
1610
1611 2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
1612
1613         * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
1614
1615 2000-09-08  Bernd Schmidt  <bernds@redhat.co.uk>
1616
1617         * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
1618         VEC_CONCAT.
1619         * rtl.texi (description of USE): Add note about possible pitfalls
1620         with this rtx.
1621         From Richard Henderson:
1622         * reload1.c (choose_reload_regs): Compute need_mode properly.
1623
1624 2000-09-07  Richard Henderson  <rth@cygnus.com>
1625
1626         * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
1627         (__modsi3, __umodsi3): Likewise.
1628         (__udivsi3): Likewise.  Normalize the TFmode values.
1629
1630 2000-09-07  Geoff Keating  <geoffk@cygnus.com>
1631
1632         * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
1633         with a prototype.
1634         * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
1635         warning.
1636
1637 Fri Sep  8 03:26:38 2000  J"orn Rennecke <amylaar@redhat.co.uk>
1638
1639         * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
1640         (cmpeqdi_t): Add output pattern.
1641         (cmpeqdi_t+1): Don't split when not optimizing.
1642         Restore proper splitting operation.
1643
1644 2000-09-07  Richard Henderson  <rth@cygnus.com>
1645
1646         * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
1647         do not call dispatch_pragma.
1648
1649 2000-09-07  Jim Wilson  <wilson@cygnus.com>
1650
1651         * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
1652         to CLASS_CANNOT_CHANGE_MODE.
1653         * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
1654         mode classes are different.
1655
1656 2000-09-07  Zack Weinberg  <zack@wolery.cumb.org>
1657
1658         * cpplib.h (struct cpp_options): Add user_label_prefix member,
1659         left out of commit which removed cppulp.c.
1660
1661 2000-09-07  Richard Henderson  <rth@cygnus.com>
1662
1663         * bb-reorder.c (fixup_reorder_chain): Add jump in new block
1664         after switch for CASE_DROPS_THROUGH.
1665
1666 2000-09-07  Richard Henderson  <rth@cygnus.com>
1667
1668         * loop.c (strength_reduce): Call check_ext_dependant_givs.
1669         Properly extend the biv initial value for the giv.
1670         (record_biv): Zero ext_dependant.
1671         (record_giv): New argument ext_val.  Update all callers.
1672         (general_induction_var): Likewise.
1673         (consec_sets_giv): Likewise.
1674         (simplify_giv_expr): Likewise.  Fill in ext_val if we find
1675         a sign-extend, zero-extend, or truncate.
1676         (combine_givs_p): Make sure modes are compatible.
1677         (check_ext_dependant_givs): New.
1678         (extend_value_for_giv): New.
1679         * loop.h (struct induction): Add ext_dependant.
1680         * unroll.c (iteration_info): Extend the biv initial value for the giv.
1681         (find_splittable_givs): Likewise.
1682         (final_giv_value): Likewise.
1683
1684 2000-09-07  Zack Weinberg  <zack@wolery.cumb.org>
1685
1686         * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
1687         REGISTER_TARGET_PRAGMAS is defined.  Duplicate some
1688         definitions from cpplib.h.
1689         * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
1690         already done it.
1691         * tm.texi: Document HANDLE_PRAGMA as no longer supported.  Add
1692         documentation for REGISTER_TARGET_PRAGMAS.
1693
1694         * c-lex.c: Include cpplib.h before c-pragma.h.  Define a
1695         default-pragma callback to implement -Wunknown-pragmas if
1696         USE_CPPLIB.
1697         * c-parse.in: Move all includes to top of file.
1698         * c-pragma.c: Include cpplib.h before c-pragma.h.  Include
1699         tm_p.h.
1700         (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
1701         warning.
1702         (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
1703
1704         * arm.h, arm-protos.h, arm.c,
1705           c4x.h, c4x-protos.h, c4x.c,
1706           h8300.h, h8300-protos.h, h8300.c,
1707           i370.h, i370-protos.h, i370.c,
1708           i960.h, i960-protos.h, i960.c,
1709           sh.h, sh-protos.h, sh.c,
1710           v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
1711         pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
1712
1713         * d30v.h: Don't mention HANDLE_PRAGMA in comment.  Add
1714         multiple include guard.
1715         * i370.md (untyped_call): Use GEN_CALL.
1716         (umodsi3): Remove unused variable.
1717         * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
1718         * v850.c (output_move_single, output_move_double): Constify
1719         return value.
1720         (print_operand): Constify a char *.
1721         * v850.h (struct small_memory_info): Constify name member.
1722
1723 2000-09-07  Kazu Hirata  <kazu@hxi.com>
1724
1725         * config/h8300.h: Fix comment typos.
1726         * config/h8300/h8300.md: Likewise.
1727         * config/h8300/lib1funcs.asm: Likewise.
1728
1729 Thu 07-Sep-2000 21:29:00 BST  Neil Booth  <NeilB@earthling.net>
1730
1731         * Makefile.in: Remove references to cppulp.{c,o}.
1732         * cppinit.c (initialize_builtins, cpp_start_read,
1733         cpp_handle_option): Update to use cpp_options structure.
1734         * cppulp.c: Remove.
1735
1736 2000-09-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1737
1738         * c-common.c (time_char_table): Allow %#b and %#h.
1739
1740 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1741
1742         * reorg.c (find_end_label): If the basic block reorder pass moves the
1743         return insn to some other place try to locate it again and put our
1744         end_of_function_label there.
1745         * reorg.c (relax_delay_slots): Check if find_end_label created a
1746         new label that invalidates the current optimazation.
1747
1748 2000-09-07  Catherine Moore  <clm@redhat.com>
1749
1750         * unroll.c (unroll_loop): Check for unconditional jumps
1751         to loop continuation.  Delete if n_iterations is 1.
1752         (ujump_to_loop_cont): New routine.
1753
1754 2000-09-07  Bernd Schmidt  <bernds@redhat.co.uk>
1755
1756         * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
1757         MODE_VECTOR_FLOAT.
1758         * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
1759         to handle multiword modes correctly.  All callers and the declaration
1760         changed.
1761
1762 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
1763
1764         * c-common.h (prep_stmt): Declare.
1765         (lang_expand_stmt): Likewise.
1766         * c-decl.c (lang_expand_stmt): Remove.
1767         * c-semantics.c (lang_expand_stmt): Define.
1768         (prep_stmt): New function.
1769         (expand_stmt): Handle common statement types here.
1770
1771 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
1772
1773         * configure.in (sh-*-linux*): Added.
1774         * configure: Rebuilt.
1775         * config/sh/t-linux: New file.
1776         * config/sh/sh.h (USERMODE_BIT): Define.
1777         (TARGET_USERMODE): Likewise.
1778         (TARGET_SWITCHES): New switches for the bits above.
1779         (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
1780         * config/sh/linux.h: New file.
1781         * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
1782         underscore on linux.
1783         (L_sdivsi3, L_udivsi3): Define for linux.
1784         (L_ic_invalidate): Define.
1785         * invoke.texi (SH Options): Document -musermode.
1786
1787 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
1788
1789         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
1790         CSE unless generating PIC.
1791
1792         * config/sh/sh.md (symPLT_label2reg): Force the initialization of
1793         the PIC register.
1794
1795 2000-09-06  H.J. Lu  (hjl@gnu.org)
1796
1797         * Makefile.in (clean_s1): Depend on stage_b.
1798         (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
1799         stage2. They are used for "make compare".
1800
1801 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
1802
1803         Move statement-tree facilities from C++ to C front-end.
1804         * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
1805         (void_zero_node): New macro.
1806         (struct stmt_tree_s): New type.
1807         (stmt_tree): New typedef.
1808         (struct language_function): New type.
1809         (last_tree): New macro.
1810         (last_expr_type): Likewise.
1811         (walk_tree_fn): New typedef.
1812         (current_stmt_tree): New function.
1813         (begin_stmt_tree): Likewise.
1814         (add_stmt): Likewise.
1815         (finish_stmt_tree): Likewise.
1816         (statement_code_p): Likewise.
1817         (lang_statement_code_p): New variable.
1818         (walk_stmt_tree): New function.
1819         (STMT_IS_FULL_EXPR_P): New macro.
1820         * c-common.c (lang_statement_code_p): New variable.
1821         (c_common_nodes_and_builtins): Initialize void_zero_node.
1822         (statement_code_p): New function.
1823         (walk_stmt_tree): Likewise.
1824         * c-decl.c (language_function): Rename to ...
1825         (c_language_function): ... this.  Include language_function.
1826         (push_c_function_context): Adjust accordingly.
1827         (pop_c_function_context): Likewise.
1828         (mark_c_function_context): Likewise.
1829         (current_stmt_tree): Define.
1830         * c-semantics.c (begin_stmt_tree): New function.
1831         (add_stmt): Likewise.
1832         (prune_unused_decls): Likewise.
1833         (finish_stmt_tree): Likewise.
1834
1835 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1836
1837         * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
1838
1839 2000-09-06  Kazu Hirata  <kazu@hxi.com>
1840
1841         * calls.c: Fix formatting.
1842
1843 2000-09-06  Graham Stott  <grahams@cygnus.co.uk>
1844
1845         * config/i386/i386.h (ADDRESS_COST): Fix typo.
1846
1847 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
1848
1849         Integrated preprocessor.
1850
1851         * Makefile.in: Remove all references to c-parse.gperf,
1852         c-gperf.h, and c-parse.h.  Remove -d from yacc command line
1853         generating c-parse.c.  Update dependencies.
1854         * c-parse.gperf, c-gperf.h: Delete.
1855
1856         * c-common.c: Don't define parse_options, cpp_token, yy_cur,
1857         yy_lim, or yy_get_token.  Don't define get_directive_line if
1858         USE_CPPLIB.
1859         * c-common.h: Add multiple include guard.  Define RID values
1860         for every keyword in C, C++, and Objective C.  Put all the
1861         modifiers first.
1862         (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
1863         * c-decl.c (c_decode_option): Handle -lang-objc here.
1864         (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
1865         (grokdeclarator): Adjust for new RID scheme.
1866         (extract_interface_info): New stub.
1867         * c-lang.c: Don't declare yy_cur or parse_options.
1868         (lang_init_options): Call cpp_init.  Don't call
1869         cpp_options_init.
1870         (lang_init): Don't call check_newline if USE_CPPLIB.
1871
1872         * c-lex.c: Don't include c-parse.h.  Do include timevar.h.
1873         Elide lots of unnecessary code if USE_CPPLIB.  Delete code
1874         rendered unnecessary by new architecture.  Move routines not
1875         shared with C++ to c-parse.in.  Maintain a local idea of the
1876         line number.    Handle C++ as well as C.
1877         [USE_CPPLIB]: Declare and register callbacks for #ident and
1878         for entering/leaving files.
1879         (init_c_lex, c_lex): Are now the entry points to this file.
1880         (check_newline): Break out directive handling to
1881         process_directive.
1882         (read_ucs, is_extended_char, utf8_extend_token): Moved here
1883         from C++ front end.
1884         (readescape, parse_float): Overhaul.
1885         (lex_number, lex_string, lex_charconst): Break out of c_lex
1886         (n'ee yylex).
1887         (get_fileinfo, update_header_times, dump_one_header,
1888         dump_time_statistics): New and/or moved here from C++.
1889         Support per-file data needed by C++ and per-header timing
1890         statistics (C++ only, at the moment).
1891         * c-lex.h: Update prototypes.  Add multiple include guard.
1892         * c-tree.h (struct lang_identifier): Add rid_code field.
1893         (C_IS_RESERVED_WORD, C_RID_CODE): New.
1894
1895         * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
1896         reinit_parse_for_function and/or position_after_white_space.
1897         (save_filename, save_lineno): Look ahead before saving.
1898         (label -> identifier ':'): Save file and line before shifting ':'.
1899         (reservedwords): No need to call get_identifier.
1900         (init_parse, finish_parse, yyerror, yylex, yyprint,
1901         make_pointer_declarator): Are now here for C/ObjC.
1902         (rid_to_yy): Conversion table from RID constants to Yacc codes.
1903
1904         * c-pragma.c: Rewrite parsing logic to fit with cpplib's
1905         #pragma registry.  Provide dummy implementation of that
1906         interface if !USE_CPPLIB.
1907         * c-pragma.h: Update to match.
1908
1909         * flags.h: Add multiple include guard.
1910         (flag_detailed_statistics): Moved here from C++.
1911         * toplev.c: Define flag_detailed_statistics.
1912
1913         * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
1914         #if USE_CPPLIB.
1915         * timevar.def (TV_CPP, TV_LEX): New.
1916         * timevar.h: Add multiple include guard.
1917
1918         * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
1919         #if USE_CPPLIB.
1920         * objc/objc-act.c: Don't mention yy_cur or parse_options.
1921         Initialize cpplib properly.  Force lineno to 0 after first
1922         call to check_newline.  Don't handle -lang-objc here.
1923         Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
1924
1925 2000-09-06  David Edelsohn  <edelsohn@gnu.org>
1926
1927         * rs6000.md: Correct function unit definitions for cr_logical and
1928         mtjmpr.
1929         (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
1930         and use portable method for >=0 and floating point >=.  Remove
1931         associated matchers.
1932
1933 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
1934
1935         * extend.texi: Mark named return value extension as deprecated.
1936
1937 2000-09-06  Geoff Keating  <geoffk@cygnus.com>
1938
1939         * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
1940         the result.
1941
1942 2000-09-06  Gabriel Dos Reis  <gdr@codesourcery.com>
1943
1944         * toplev.c (display_help): Fix thinko in documentation.
1945
1946         * diagnostic.h (output_buffer::indent_skip): New fields.
1947         (output_indentation): New macro.
1948
1949         * diagnostic.c (output_indent): New function.
1950         (output_set_prefix, clear_diagnostic_info): Use.
1951         (output_emit_prefix): Predict future indentation.
1952
1953 2000-09-06  DJ Delorie  <dj@redhat.com>
1954
1955         * Makefile.in (stage_*): add more dependencies to ensure parallel
1956         builds build correctly
1957
1958 2000-09-06  Manfred Hollstein  <manfredh@redhat.com>
1959
1960         * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
1961         not bootstrap-lean_f.
1962
1963 2000-09-06  Andreas Schwab  <schwab@suse.de>
1964
1965         * mklibgcc.in: Emit rule for libgcc-stage-start.
1966         * Makefile.in (stage1-start, stage2-start, stage3-start,
1967         stage4-start): Don't handle libgcc here, use libgcc.mk instead.
1968
1969 2000-09-06  Bernd Schmidt  <bernds@redhat.co.uk>
1970
1971         * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
1972         (update_equiv_regs): Likewise, except for the mn10200 kludge.
1973         (combine_regs): Likewise.
1974
1975         * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
1976         * cse.c: Include "basic-block.h".
1977         (struct table_elt): New field REGCOST.
1978         (CHEAP_REG): Delete macro.
1979         (COST): Return 0 for REGs.
1980         (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
1981         (notreg_cost): Return 0 for appropriate SUBREGs.
1982         (COSTS_N_INSNS): Return N * 2.
1983         (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
1984         SUBREGs.
1985         (CHEAPER): Use new function preferrable.
1986         (insert): Initialize REGCOST member.
1987         (find_best_addr): Use approx_reg_cost for estimation of register
1988         usage.
1989         (cse_insn): Likewise.
1990         * loop.c (iv_add_mult_cost): New function.
1991         (add_cost, shift_cost, mult_cost): Delete variables.
1992         (init_loop): Don't initialize add_cost; reduce copy_cost by half.
1993         (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
1994         Make code that detects autoinc opportunities slightly less optimistic.
1995         (simplify_giv_expr): If expression contains other reg that is also a
1996         giv, only increment benefit if this is the only use of that reg.
1997         (consec_sets_giv): Take that change into account.
1998         (combine_givs): Slightly more verbose output.
1999
2000         * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
2001         not the cost of an equivalent shift.
2002         * sh-protos.h (addsubcosts): Declare.
2003         * sh.c (addsubcosts): New function.
2004         * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
2005         (RTX_COSTS): Tweak.  Use addsubcosts.
2006         (ADDRESS_COST): Return higher cost for reg+reg addressing.
2007
2008 2000-09-06  Geoff Keating  <geoffk@cygnus.com>
2009
2010         * config/rs6000/rs6000.c (validate_condition_mode): New function.
2011         (branch_comparison_operator): Call validate_condition_mode to
2012         abort rather than returning 0.
2013         (branch_positive_comparison_operator): New function.
2014         (scc_comparison_operator): Call validate_condition_mode to abort
2015         rather than returning 0.
2016         (ccr_bit): Call validate_condition_mode.  Update for
2017         new branch scheme.
2018         (print_operand): Delete %C modifier.  Update %E case
2019         to use EQ bit not SO bit.
2020         (rs6000_reverse_condition): New function.
2021         (rs6000_generate_compare): New function.
2022         (rs6000_emit_sCOND): New function.
2023         (rs6000_emit_cbranch): New function.
2024         (output_cbranch): The length of a long branch insn is
2025         now only 8 bytes.  Add validate_condition_mode.  Use
2026         rs6000_reverse_condition.  Remove cror generation.
2027
2028         * config/rs6000/rs6000.h: Update comments.
2029         (PREDICATE_CODES): Add new predicate.  Update codes used
2030         by branch_comparison_operator and scc_comparison_operator.
2031         * config/rs6000/rs6000-protos.h: Add prototypes for
2032         new external functions.
2033         * config/rs6000/rs6000.md: Add new scheduling parameters
2034         for cr_logical instructions.  Change length of branch
2035         instructions.
2036         (bCOND patterns): Call rs6000_emit_cbranch.
2037         (sCOND patterns): Call rs6000_emit_sCOND.
2038         (branch patterns): Change lengths to 4.
2039         (cr logical patterns): New.
2040
2041 2000-09-06  Richard Henderson  <rth@cygnus.com>
2042
2043         * config/i386/i386.md (call_pop): Fix test for setting
2044         current_function_uses_pic_offset_table.
2045         (call, call_value_pop, call_value): Likewise.
2046
2047 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
2048
2049         * timevar.c (timevar_add): Delete.
2050         (timevar_get): Also count time since the selected timer was
2051         last updated.  Do not examine the timevar stack if the
2052         selected timer is standalone.
2053
2054 2000-09-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2055
2056         * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
2057
2058 2000-09-05  Jason Merrill  <jason@redhat.com>
2059
2060         * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
2061         for 'extern' arrays.
2062
2063 2000-09-05  Richard Henderson  <rth@cygnus.com>
2064
2065         * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
2066         Eliminate final copy from non-trapping case.
2067         (__divdf3, __divsf3): Likewise.
2068
2069 2000-09-05  Richard Henderson  <rth@cygnus.com>
2070
2071         * config/ia64/ia64.md (mulhi3): Fix typo last change.
2072         * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
2073
2074 2000-09-03  Donn Terry  <donn@interix.com>,  Laurynas Biveinis  <lauras@softhome.net>
2075
2076         * Makefile.in: Restructure bootstrap stages to allow clean
2077         restart after failure.
2078
2079 2000-09-05  Richard Henderson  <rth@cygnus.com>
2080
2081         * config/ia64.md (movsi and movdi patterns): Allow moves from
2082         8-bit constants to AR registers.
2083
2084 2000-09-05  Richard Henderson  <rth@cygnus.com>
2085
2086         * config/ia64/ia64.md (mulhi3): New.
2087
2088 2000-09-05  Richard Henderson  <rth@cygnus.com>
2089
2090         * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
2091         * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
2092         Optimization Guide, minimum latency alternative.
2093         (__moddi3, __udivdi3, __umoddi3): Likewise.
2094         (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
2095
2096 2000-09-05  Bruce Korb  <bkorb@gnu.org>
2097
2098         * fixinc/fixincl.c (load_file): always read header files
2099         with sizes that are a multiple of the page size.
2100         & use libiberty's getpagesize for determining that.
2101
2102 2000-09-05  Alexandre Oliva  <aoliva@redhat.com>
2103
2104         * gcse.c (hash_string_1): Add prototype.
2105         * cse.c (canon_hash_string): Likewise.
2106
2107 2000-09-04  Craig Newell  <CraigN@ieee.org>
2108
2109         * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
2110
2111 2000-09-04  Andreas Schwab  <schwab@suse.de>
2112
2113         * Makefile.in (STAGESTUFF): Remove libgcc.
2114         (stage1-start, stage2-start, stage3-start): Copy the contents of
2115         the libgcc directory explicitly.
2116         (mostlyclean): Clean libgcc.
2117
2118 2000-09-04  Andrew Haley  <aph@redhat.com>
2119
2120         * dwarf2out.c: (stack_adjust_offset): New prototype.
2121
2122 Wed Jan  1 00:23:59 MET 1997  Jan Hubicka  <jh@suse.cz>
2123
2124         * combine.c (make_extraction): Fix rtx_cost comparison to
2125         match the comment.
2126
2127 Wed Jan  1 00:17:32 MET 1997  Jan Hubicka  <jh@suse.cz>
2128
2129         * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
2130         umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
2131         Add '*' to insn pattern name.
2132
2133 2000-09-04  Jakub Jelinek  <jakub@redhat.com>
2134
2135         * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
2136         use posn - 1 to index into tokens array.
2137         (maybe_paste_with_next): Adjust caller.
2138
2139 2000-09-03  Geoff Keating  <geoffk@cygnus.com>
2140
2141         * invoke.texi: Document the -mvxworks option for rs6000 ELF.
2142
2143         * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
2144         (REGNO_REG_CLASS): Use symbolic register
2145         names.
2146
2147 2000-09-03  Richard Earnshaw  <rearnsha@arm.com>
2148
2149         * arm.c (final_prescan_insn): If the form of a jump insn isn't
2150         recognized, don't try to conditionally execute it.
2151
2152 Sun Sep  3 13:10:56 2000  Denis Chertykov  <denisc@overta.ru>
2153
2154         * config/avr/avr.md ("*tablejump_lib"): New pattern.
2155         (call_value_insn): Right length claculation.
2156         (call_insn): Likewise.
2157
2158 2000-09-02  Marek Michalkiewicz  <marekm@linux.org.pl>
2159
2160         * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
2161         gas_output_limited_string, gas_output_ascii, output_movqi,
2162         output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
2163         out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
2164         out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
2165         ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
2166         lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
2167         out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
2168         Add "const" as needed to remove warnings.
2169
2170         * config/avr/avr.c (avr_override_options, avr_init_once,
2171         function_prologue, function_epilogue, frame_pointer_required_p,
2172         class_likely_spilled_p, order_regs_for_local_alloc,
2173         avr_address_cost, avr_ret_register): Use K&R style arguments.
2174         (initial_elimination_offset, gas_output_limited_string):
2175         Remove ATTRIBUTE_UNUSED from the used arguments.
2176         (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
2177         Use local variables src, dest, base to access operands[].
2178         Rename reg_dest to reg_src if that's what it is.
2179         (output_movhi, output_movsisf): Optimize loading 8-bit immediate
2180         constants to LD_REGS if reg_was_0.
2181         (output_reload_insisf): Change arg 3 to insn length and set it.
2182         (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
2183         access to 16-bit I/O register pairs.
2184         (avr_address_cost): Lower cost for the above case.
2185         (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
2186         may be clobbered, also for LD_REGS.
2187         (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
2188         with a CONST_INT.
2189
2190         * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
2191
2192         * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
2193         macro to test_hard_reg_class function.
2194         (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
2195         for loading immediate constants to LD_REGS.
2196         (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
2197
2198
2199 Sat Sep  2 13:58:23 2000  Marek Michalkiewicz <marekm@linux.org.pl>
2200
2201         * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
2202         * config/avr/libgcc.S: Lost part of the previous patch.
2203
2204 2000-08-31  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2205
2206         * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
2207         object before calling pthread_mutex_init.
2208
2209 2000-09-02  Alexandre Oliva  <aoliva@redhat.com>
2210
2211         * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
2212         config/sh/crtn.asm: New files.
2213         * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
2214         (crt1.o, crti.o, crtn.o): New targets.
2215         * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
2216         sh/t-elf.
2217         * configure: Rebuilt.
2218         * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2219         STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
2220         * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
2221         Undefine for config/elfos.h to redefine.
2222         (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
2223
2224 2000-09-02  Alexandre Oliva  <aoliva@redhat.com>, Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2225
2226         * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
2227         legitimize_pic_address, output_pic_addr_const): Declare.
2228         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
2229         (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
2230         (TARGET_SWITCHES): New switch -mprefergot.
2231         (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
2232         (PIC_OFFSET_TABLE_REGNUM): Define.
2233         (GOT_SYMBOL_TABLE): Likewise.
2234         (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
2235         (ENCODE_SECTION_INFO): Define.
2236         (FINALIZE_PIC): New macros.
2237         (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
2238         (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
2239         * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
2240         (prepare_move_operands): Call emit_pic_move or
2241         emit_pic_const_move if appropriate.
2242         (output_far_jump): For PIC, use braf and output long offset.
2243         (machine_dependent_reorg):
2244         (sh_expand_prologue): Save and initialize the PIC register.
2245         (sh_expand_epilogue): Restore it.
2246         (initial_elimination_offset): Account for it.
2247         (nonpic_symbol_mentioned_p): New function.
2248         (legitimize_pic_address): Likewise.
2249         (output_pic_addr_const): Likewise.
2250         * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
2251         (call, call_value): Use them.
2252         (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
2253         symPLT_label2reg): New expands.
2254         * invoke.texi (SH Options): Document -mprefergot.
2255
2256 2000-09-01  Alexandre Oliva  <aoliva@redhat.com>
2257
2258         * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
2259         * gcse.c (hash_string_1): New function.
2260         (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
2261         (expr_equiv_p) <ASM_OPERANDS>: Likewise.
2262         * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
2263         (canon_hash_string): New function.
2264         (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
2265         (exp_equiv_p) <ASM_OPERANDS>: Likewise.
2266         (fold_rtx): Use ASM_OPERANDS accessor macros.
2267         * emit-rtl.c (copy_insn_1): Likewise.
2268         * integrate.c (copy_rtx_and_substitute): Likewise.
2269         * stmt.c (expand_asm_operands): Likewise.  Give an
2270         ASM_OPERANDS rtx the mode of the output reg being set from it.
2271
2272 2000-09-01  Fred Fish  <fnf@be.com>
2273
2274         * fix-header.c (write_rbrac): Add putc and getc to list of
2275         functions to protect against prior definition as a macro.
2276
2277 2000-09-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2278
2279         * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
2280         (c_size_type_node): Define.
2281         * c-decl.c (init_decl_processing): Initialize c_size_type_node.
2282         * c-common.c (enum format_lengths, enum format_std_version,
2283         format_length_info, format_type_detail, BADLEN, NOLENGTHS,
2284         format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
2285         T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
2286         T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
2287         T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
2288         TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
2289         format_types): Define.
2290         (format_char_info, print_char_table, scan_char_table,
2291         time_char_table): Rearrange for new organization of information
2292         about format length modifiers and standard versions.
2293         (T_ST): Redefine to use c_size_type_node.
2294         (check_format_info): Obtain information about length modifiers and
2295         standard versions from tables.  Adjust warning message wordings.
2296         Use the name from the user's program for `ll' and `hh' length
2297         modifiers in warning messages.  Use more informative names for
2298         wanted types where available (for wchar_t, wint_t, size_t, signed
2299         size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
2300
2301 2000-09-01  Jim Wilson  <wilson@cygnus.com>
2302
2303         * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
2304         * combine.c (distribute_notes): Handle REG_NORETURN.
2305         * rtl.c (reg_note_name): Add REG_NORETURN.
2306         * rtl.h (enum reg_note): Likewise.
2307
2308         * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
2309         ia64_file_start.
2310         * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
2311         (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
2312         (emit_predicate_relation_info): Handle conditional calls with
2313         REG_NORETURN.
2314         * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
2315         instead of ia64_file_start.
2316         * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
2317         * config/ia64/ia64.md (safe_across_calls_all,
2318         save_across_calls_normal): New patterns.
2319
2320         * loop.c (check_final_value): Check for biv use before checking for
2321         giv use.  Check for both biv and giv uses.  Always set last_giv_use
2322         if there is a giv use.
2323
2324 2000-09-01  Richard Henderson  <rth@cygnus.com>
2325
2326         * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
2327         (madddi3): Likewise.
2328         (maddsi3): New.
2329
2330 Fri Sep  1 10:59:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2331
2332         * expr.c (clear_storage): Don't use emit_move_insn unless
2333         either BLKmode or proper size.
2334         (store_constructor): Don't call clear_storage if REG of wrong size.
2335
2336         * flow.c (init_propagate_block_info): Don't mark frame dead at end
2337         of function if returns wiht stack pointer depressed.
2338
2339 2000-09-01  Andrew Haley  <aph@redhat.com>
2340
2341         * dwarf2out.c (stack_adjust_offset): New function.
2342         (dwarf2out_stack_adjust): Break out stack adjust logic into
2343         new stack_adjust_offset function.  Look inside parallels and
2344         sequences for stack adjustments.
2345
2346 2000-08-31  Jeff Law <law@cygnus.com>
2347
2348         * arm.md: Use no_new_pseudos to determine when it is safe
2349         to create new pseudo registers.
2350
2351         * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
2352         when we can safely allocate new registers.
2353
2354 2000-08-31  Geoffrey Keating  <geoffk@cygnus.com>
2355
2356         * stmt.c (expand_asm_operands): Twiddle generating_concat_p
2357         so that CONCATs are not generated for ASMs.
2358         * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
2359         not generating_concat_p.
2360         * function.c (pop_function_context_from): Reset
2361         generating_concat_p.
2362         (prepare_function_start): Likewise.
2363         * rtl.c (generating_concat_p): Define.
2364         * rtl.h (generating_concat_p): Declare.
2365         * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
2366
2367 2000-08-22  Philipp Thomas  <pthomas@suse.de>
2368             Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
2369
2370         * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
2371         for translation.
2372
2373 2000-08-30  Greg McGary  <greg@mcgary.org>
2374
2375         * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
2376         * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
2377         * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
2378
2379 2000-08-30  Greg McGary  <greg@mcgary.org>
2380
2381         * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
2382         (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
2383         (TREE_INT_CST): New macro.
2384         * varasm.c (const_hash, compare_constant_1, record_constant_1):
2385         Use new macro TREE_INT_CST.
2386
2387 Wed 30-Aug-2000 23:18:59 BST  Neil Booth  <NeilB@earthling.net>
2388
2389         * contrib.texi: Add self.
2390
2391 2000-08-30  Alexandre Oliva  <aoliva@redhat.com>
2392
2393         * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
2394         (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
2395         and labels.
2396
2397 2000-08-30  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2398
2399         * fixinc/gnu-regex.c: Don't define `const'.
2400
2401 Tue Aug 29 22:09:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2402
2403         * expr.c (store_constructor): Allow variable bounds of array type.
2404         (expand_expr): Don't blow up if type is ERROR_MARK.
2405         * varasm.c (output_constructor): Don't access lower bound of array
2406         type unless need it if index is supplied (so it can be a variable
2407         if no index is supplied).
2408         Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
2409         Other minor cleanups.
2410
2411 2000-08-29  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2412
2413         * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
2414         for compilations in stage 1 and subsequent stages, respectively.
2415         * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
2416         * configure: Rebuilt.
2417         * x-vax, x-vax-gcc: Deleted.
2418
2419 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
2420
2421         * c-common.c (declare_function_name): Use func_id_node,
2422         function_id_node, and pretty_function_id_node.  Do not make
2423         __func__ visible at file scope.
2424         * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
2425         CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
2426         (function_id_node, pretty_function_id_node, func_id_node): New
2427         macros.
2428         * c-decl.c (init_decl_processing): Initialize function_id_node,
2429         pretty_function_id_node, and func_id_node.
2430         (c_make_fname_decl): Correct comment.
2431
2432         * tree.h (struct tree_identifier): Constify pointer member.
2433
2434         * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
2435         * c-pragma.h (struct weak_syms): Constify name and value members.
2436         (add_weak): Constify arguments.
2437
2438         * calls.c (special_function_p): Constify a char *.
2439         (expand_call): Remove variable which is initialized and then
2440         never used.
2441         * dependence.c (struct def_use, struct induction, struct subscript):
2442         Constify 'variable' member.
2443         (get_low_bound, have_induction_variable): Constify char * argument.
2444         (find_induction_variable): Add braces to avoid dangling else.
2445         (classify_dependence): Constify char * arrays.
2446         * profile.c (output_func_start_profiler): Constify a char *.
2447         * stor-layout.c (finalize_record_size): Constify a char *.
2448         * tree.c (is_attribute_p): Constify a char *.
2449         * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
2450
2451         * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
2452         for comprehensibility.  Do not call get_identifier if we did
2453         not change the DECL_ASSEMBLER_NAME of the decl.  Use alloca to
2454         create temporary string constants, not ggc_alloc_string.  No
2455         need to copy result of ASM_FORMAT_PRIVATE_NAME.  Use const
2456         char * to hold IDENTIFIER_POINTERs.
2457
2458 2000-08-29  Richard Henderson  <rth@cygnus.com>
2459
2460         * config/ia64/ia64.md (muldi3): Use grfr_register_operand
2461         for the inputs.
2462
2463 2000-08-29  Richard Henderson  <rth@cygnus.com>
2464
2465         * reload.c (push_secondary_reload): Allow class == reload_class
2466         if we're using a reload_in/out pattern.
2467
2468         * config/ia64/ia64.md (reload_inti): Use a TImode scratch.  Use
2469         the half that does not conflict with the reload register.
2470         (reload_outti): Likewise.
2471
2472 2000-08-29  Kazu Hirata  <kazu@hxi.com>
2473
2474         * reload.c: Fix formatting.
2475
2476         * stmt.c: Fix formatting.
2477
2478         * gcc.c: Fix formatting.
2479
2480 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
2481
2482         * flags.h (time_report, mem_report): New global flags.
2483         * toplev.c: Define time_report and mem_report.
2484         (f_options): Add -ftime-report and -fmem-report.
2485         (compile_file): Turn on time_report if quiet_flag is off.
2486         Call ggc_print_statistics at very end if mem_report is on.
2487         * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
2488
2489         * ggc-common.c (ggc_print_statistics): Rename to
2490         ggc_print_common_statistics; all callers changed.  Scale
2491         quantities above 10K to kilobytes and above 10M to megabytes.
2492         * ggc-page.c (ggc_page_print_statistics): Rename to
2493         ggc_print_statistics.  Report memory consumed by internal data
2494         structures for each allocation bucket.  Scale quantities above
2495         10K to kilobytes and above 10M to megabytes.
2496         * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
2497         Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
2498         Define tally_leaves always.
2499         (ggc_print_statistics): New function.
2500         * ggc.h: Adjust for renamed functions.
2501
2502 Wed Aug 30 00:11:42 2000  Denis Chertykov  <denisc@overta.ru>
2503
2504         * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
2505         output_movsisf instead of which_alternative.
2506
2507         * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
2508
2509 Tue Aug 29 22:29:58 2000  Denis Chertykov  <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
2510
2511         * config/avr/avr-protos.h: (avr_output_ascii) Removed.
2512         (avr_progmem_p): New prototype.
2513         (output_movsisf): Prototype declaration changed.
2514         (output_movqi): New prototype.
2515         (output_movhi): New prototype.
2516         (call_insn_operand): Likewise.
2517         (final_prescan_insn): Likewise.
2518         (avr_simplify_comparision_p): Likewise.
2519         (avr_normalize_condition): Likewise.
2520         (compare_eq_p): Likewise.
2521         (out_shift_with_cnt): Likewise.
2522         (const_int_pow2_p): Likewise.
2523         (output_reload_inhi): Prototype declaration changed.
2524
2525         * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
2526         (ldi_reg_rtx): New. rtx for r31.
2527         (avr_init_stack): Initialize as "__stack".
2528         (function_prologue): Use it.
2529         Replace all TARGET_ENHANCED with AVR_ENHANCED.
2530         (avr_mcu_name): Initialize as "avr2".
2531         (avr_enhanced_p, avr_mega_p): New variables.
2532         (mcu_types, avr_override_options): Handle all known MCU types.
2533         Also handle avr1 (only preprocess, assemble and link).
2534         (print_operand): Using of `%K' in output template removed.
2535         (out_movqi_r_mr): Optimized.
2536         (out_movhi_r_mr): Likewise.
2537         (output_movqi): New function.
2538         (output_movhi): Likewise.
2539         (out_movsi_r_mr): Optimized.
2540         (output_movsisf): Compute insn length for `adjust_insn_length'
2541         (out_movqi_mr_r): Optimized.
2542         (out_movhi_mr_r): Optimized.
2543         (adjust_insn_length): Use output_movsisf, output_movqi,
2544         output_movhi for insn length adjusting.
2545         (reg_unused_after): Use dead_or_set_p.
2546         (preferred_reload_class): Now havn't any restriction.
2547         (reg_was_0): New function.
2548         (io_address_p): Likewise.
2549         (const_int_pow2_p): Likewise.
2550         (output_reload_inhi): Likewise.
2551         (output_reload_insisf): Likewise.
2552
2553         * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
2554         (LIB_SPEC): Use -lc for all supported devices.
2555         (LIBGCC_SPEC): Use -lgcc for all supported devices.
2556         (AVR_MEGA): Define as avr_mega_p.
2557         (AVR_ENHANCED): New, define as avr_enhanced_p.
2558         (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
2559         (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
2560         (CRT_BINUTILS_SPECS): Handle all known MCU types.
2561         Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
2562         (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
2563         (ASM_SPEC): Pass -mmcu=... to the assembler.
2564         Change all -DAVR_* to -D__AVR_*__.
2565         (INIT_TARGET_OPTABS), config/avr/libgcc.S:
2566         Rename library functions to start with two underscores.
2567         (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
2568         alignment.
2569         (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
2570         (SUPPORTS_WEAK): Likewise.
2571         (LDI_REG_REGNO): New. Register r31 will be used as temporary
2572         register for loading constants to r0-r14.
2573
2574         * config/avr/avr.md: Replace all TARGET_ENHANCED with
2575         AVR_ENHANCED.
2576         (*mov_r_sp): Removed. Handled by output_movhi.
2577         (*mov_sp_r): Likewise.
2578         (*mov_sp_r_no_interrupts): Likewise
2579         (*mov_sp_r_tiny): Likewise.
2580         (*movqi): Use output_movqi.
2581         (*reload_inqi): New.
2582         (*movhi): Use output_movhi.
2583         (*reload_inhi): New.
2584         (*negsi2): Optimized.
2585         (*negsf2): Likewise.
2586         Added peepholes (define_peephole2) for loading constants to r0-r14
2587         and for using `cpse' command.
2588
2589         * config/avr/libgcc.S: Rename library functions to start with two
2590         underscores.
2591         Add support for enhanced core.
2592         (_moqhi3): Fix typo, now _modqi3.
2593         (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
2594         (__prologue_saves__): Remove test for stack adjust by 0.
2595         (__tablejump__): New.
2596
2597         * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
2598         Add multilib support.
2599
2600 Tue Aug 29 15:17:54 EDT 2000  John Wehle  (john@feith.com)
2601
2602         * loop.c (prescan_loop): Don't check unknown_address_altered
2603         when deciding if insert_loop_mem is safe.  Add BLKmode MEMs
2604         to loop_store_mems as necessary.
2605         (loop_invariant_p): Don't check unknown_address_altered
2606         or unknown_constant_address_altered.
2607
2608 2000-08-29  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2609
2610         * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
2611
2612 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
2613
2614         * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
2615         print just the filename.
2616         * cpplex.c (_cpp_run_directive): Add additional argument, the
2617         name to give the synthetic buffer.  This defaults to
2618         translated "<command line>".
2619         * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
2620         Adjust to match.
2621         (_cpp_define_builtin): New function.
2622         * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
2623         * cpphash.h: Update prototypes.
2624
2625         * tradcpp.c (main): Process -D and -U simultaneously, in the
2626         order they appeared on the command line.
2627
2628 2000-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2629
2630         * c-decl.c (define_label): Call warning_with_file_and_line and
2631         error_with_file_and_line instead of plain warning or error.
2632
2633         * c-parse.in (label): Use save_filename/save_lineno to ensure
2634         correct values for calls to define_label.
2635
2636 2000-08-29  Mark Mitchell  <mark@codesourcery.com>
2637
2638         * calls.c (expand_call): Don't create a VAR_DECL just to throw it
2639         away.
2640         * expr.c (expand_expr, case TARGET_EXPR): Don't call
2641         mark_addressable.
2642         * tree.h (get_file_function_name): Remove two duplicate
2643         declarations.
2644
2645 2000-08-28  Kazu Hirata  <kazu@hxi.com>
2646
2647         * tree.c: Fix formatting.
2648
2649         * xcoffout.c: Fix formatting.
2650
2651 2000-08-28  Jason Merrill  <jason@redhat.com>
2652
2653         * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
2654
2655 2000-08-28  Daniel Berlin  <dberlin@redhat.com>
2656
2657         * dwarf2out.c (dwarf2out_finish): Don't bother calling
2658         break_out_includes if it won't do anything.
2659
2660 2000-08-28  Richard Henderson  <rth@cygnus.com>
2661
2662         * reload.c (push_secondary_reload): Revert 2000-08-16 change.
2663         (find_reloads): Likewise.
2664         * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
2665         (reload_inhi): Likewise.
2666
2667 2000-08-28  Richard Henderson  <rth@cygnus.com>
2668
2669         * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
2670         (call_insn_operand): Don't expect a surrounding mem.
2671         (constant_call_address_operand): Likewise.
2672         * config/i386/i386.h (PREDICATE_CODES): Update.
2673         * config/i386/i386.md (call patterns): Move the match_operand
2674         for the call destination inside the mem.
2675
2676 2000-08-28  Richard Henderson  <rth@cygnus.com>
2677
2678         * local-alloc.c (requires_inout): Don't use reserved range for
2679         EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
2680         * recog.c (asm_operand_ok): Likewise.
2681         (preprocess_constraints, constrain_operands): Likewise.
2682         * regclass.c (record_reg_classes): Likewise.
2683         * reload.c (find_reloads): Likewise.
2684         * reload1.c (maybe_fix_stack_asms): Likewise.
2685         (reload_cse_simplify_operands): Likewise.
2686         * stmt.c (expand_asm_operands): Likewise.
2687
2688         * md.texi: Update constraints documentation.
2689         * tm.texi (EXTRA_CONSTRAINT): Update.
2690
2691 2000-08-28  Daniel Berlin  <dberlin@redhat.com>
2692
2693         * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
2694         (print_die): If we don't know the offset of the
2695         target die, try the symbol.  Add a trailing newline.
2696         (reverse_all_dies): New fn.
2697         (dwarf2out_finish): Call it.
2698         (break_out_includes): Reorganize for clarity.
2699         (add_sibling_attributes): Don't call reverse_die_lists.
2700         (output_comp_unit): Rename from output_comdat_comp_unit.  Use for
2701         primary CU, too.
2702         * flags.h: Add flag_eliminate_dwarf2_dups.
2703         * toplev.c (f_options): Support -feliminate-dwarf2-dups.
2704
2705 2000-08-28  Jason Merrill  <jason@redhat.com>
2706
2707         * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
2708         * dwarf2out.c: #include "md5.h".
2709         (DIE_LABEL_PREFIX): New macro.
2710         (dw_val_struct): Add 'external' flag to val_die_ref.
2711         (add_AT_die_ref, AT_ref): Adjust.
2712         (AT_ref_external, set_AT_ref_external): New fns.
2713         (build_abbrev_table): Call set_AT_ref_external.
2714         (value_format): Call AT_ref_external.
2715         (die_struct): Add die_symbol field.
2716         (new_die): Clear it.
2717         (dwarf_tag_name): Handle BINCL/EINCL.
2718         (dwarf2out_start_source_file): Add BINCL DIE.
2719         (dwarf2out_end_source_file): Add EINCL DIE.
2720         (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
2721         (loc_checksum, attr_checksum, die_checksum): New fns.
2722         (is_type_die, is_comdat_die, is_symbol_die): New fns.
2723         (compute_section_prefix, assign_symbol_names): New fns.
2724         (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
2725         (output_die): Call output_die_symbol and AT_ref_external.
2726         (output_comdat_comp_unit): New fn, split out from...
2727         (dwarf2out_finish): ...here.  Also call add_sibling_attributes for
2728         secondary CUs.
2729         (output_pubnames, output_aranges): Abort if we see entries from
2730         secondary CUs.
2731         * toplev.h: Declare file_name_nondirectory.
2732         * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
2733         (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
2734         (debug_start_source_file): Call dwarf2out_start_source_file
2735         regardless of debug verbosity.
2736         (debug_end_source_file): Similarly.
2737         * tree.h: Declare clean_symbol_name.
2738         * tree.c (clean_symbol_name): Split out from...
2739         (get_file_function_name_long): ...here.
2740
2741         * dwarf2out.c (new_loc_descr): Use calloc.
2742         (splice_child_die): Remove the die from the right parent.
2743         (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
2744
2745 Mon Aug 28 19:02:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2746
2747         * toplev.c (decode_g_option): Don't give warning for unknown -g
2748         option; return 0 instead.
2749         (main): If -g option is not recognized by front end or
2750         language-independent code, give warning.
2751
2752 2000-08-28  Greg McGary  <greg@mcgary.org>
2753
2754         * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
2755         * config/i386/i386.c (ix86_expand_compare): Remove `static'.
2756         * config/i386/i386.md (trap, conditional_trap): New insn & expand.
2757
2758 2000-08-27  Greg McGary  <greg@mcgary.org>
2759
2760         * cpplex.c (parse_string): Don't look for backslash
2761         before first char in `namebuf'.
2762         * loop.c (strength_reduce): Skip NOTEs.
2763
2764 2000-08-27  Jason Merrill  <jason@redhat.com>
2765
2766         * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
2767         DECL_EXTERNAL on a local extern.  Don't set DECL_IGNORED_P or
2768         TREE_ASM_WRITTEN, either.
2769         (finish_decl): Adjust.
2770
2771 2000-08-28  Philipp Thomas  <pthomas@suse.de>
2772
2773         * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
2774         they have been incorporated into the gettext CVS. Change the text to
2775         reflect the current status of NLS. Add instructions for accessing
2776         the gettext CVS and add the patch from Martin v. Loewis.
2777
2778 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
2779
2780         * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
2781         by using gen_lowpart_common.
2782         (movdi_internal64+6): Likewise.
2783
2784 2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
2785
2786         * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
2787         Document.
2788
2789         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
2790         numbers to the ranges used by GDB.
2791
2792 2000-08-25  Richard Henderson  <rth@cygnus.com>
2793
2794         * config/ia64/ia64.h (struct machine_function): Add n_varargs.
2795         * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
2796         (ia64_expand_prologue): Likewise.
2797         (ia64_setup_incoming_varargs): Set it.  Properly skip the current
2798         argument for stdargs.
2799
2800 2000-08-25  Jason Merrill  <jason@redhat.com>
2801
2802         * integrate.c (expand_inline_function): Pull out the original decl.
2803
2804 2000-08-25  Jim Wilson  <wilson@cygnus.com>
2805
2806         * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
2807
2808         * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
2809
2810 2000-08-25  Greg McGary  <greg@mcgary.org>
2811
2812         * flow.c (dump_edge_info): Use ARRAY_SIZE.
2813         * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
2814
2815 2000-08-25  Richard Earnshaw  <rearnsha@arm.com>
2816
2817         * arm.h (STRUCT_VALUE): Define to 0, not NULL.
2818
2819 Fri Aug 25 12:52:49 EDT 2000  John Wehle  (john@feith.com)
2820
2821         * i386.c (ix86_find_base_term): New.
2822         * i386-protos.h (ix86_find_base_term): Prototype.
2823         * i386.h (FIND_BASE_TERM): Define.
2824         * alias.c (find_base_term): Use it.
2825         * tm.texi (FIND_BASE_TERM): Document it.
2826
2827         * alias.c (true_dependence, write_dependence_p): Unchanging
2828         memory can't conflict with non-unchanging memory.
2829
2830         * alias.c (memrefs_conflict_p): A BLKmode reference
2831         to a symbol (or CONST_INT address) always conflicts
2832         with a reference to another symbol.
2833
2834 2000-08-25  Joseph S. Myers  <jsm28@cam.ac.uk>
2835
2836         * c-common.c (time_char_table): Don't allow width and flags with
2837         "z" format.
2838
2839 2000-08-25  Jakub Jelinek  <jakub@redhat.com>
2840
2841         * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
2842         way as LT and LTU when the second operand has 0 in low word.
2843
2844 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
2845
2846         * basic-block.h (struct loop): Rename `exits' field to
2847         `exit_edges'.  Add `entry_edges' and `num_entries' fields.
2848
2849         * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
2850         (flow_loop_entry_edges_find): Add.
2851         (flow_edge_list_print): Rename from flow_exits_print.
2852         (flow_loops_find): Call flow_loop_entry_edges_find.
2853         (flow_loop_dump): Dump entry_edges list.
2854         (flow_loops_free): Free entry_edges.
2855
2856 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
2857
2858         * loop.c (loop_dump_aux, debug_loop): New functions.
2859         (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
2860
2861         * flow.c (flow_loops_dump): Add callback parameter.
2862         (flow_loop_dump): Add callback parameter and call it.  Move
2863         loop note debugging code to loop_dump_aux.
2864
2865         * basic-block.h (flow_loop_dump): Add callback parameter
2866         (flow_loops_dump): Likewise.
2867
2868         * toplev.c (rest_of_compilation): Add NULL callback function pointer
2869         to call to flow_loops_dump.
2870
2871 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
2872
2873         * loop.c (count_loop_regs_set): Replace start and end arguments
2874         with loop argument.  All callers udated.
2875
2876 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
2877
2878         * loop.c (constant_high_bytes): Delete.
2879
2880 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
2881
2882         * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
2883         and NOTE_INSN_LOOP_VTOP to...
2884         (find_and_verify_loops) ...here.
2885
2886 Fri Aug 25 04:21:13 2000  Alexandre Oliva  <aoliva@redhat.com>
2887
2888         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
2889         (fini_dummy, init_dummy): Use it.
2890
2891 Fri 25-Aug-2000 08:03:27 BST  Neil Booth  <NeilB@earthling.net>
2892
2893         * cpplex.c (is_macro_disabled): Caller has already checked
2894         that we're not a preprocessed file.
2895
2896 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
2897
2898         * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
2899         (c-iterate.o): Remove target.
2900         * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
2901         * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
2902         (finish_decl): Don't handle iterators.
2903         (grokdeclarator): Likewise.
2904         * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
2905         * gcc/c-gperf.h: Regenerated.
2906         * gcc/c-iterate.c: Removed.
2907         * gcc/c-lex.c (init_lex): Don't handle iterators.
2908         * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
2909         (compstmt_primary_start): Remove push_iterator_stack call.
2910         (stmt): Don't allow iterator statements.  Replace iterator_expand
2911         with expand_expr_stmt.
2912         (all_iter_stmt): Remove.
2913         (all_iter_stmt_simple): Likewise.
2914         (all_iter_stmt_with_decl): Likewise.
2915         * gcc/c-tree.h (ITERATOR_P): Remove.
2916         (ITERATOR_BOUND_P): Likewise.
2917         (init_iterators): Remove declaration.
2918         (iterator_expand): Likewise.
2919         (iterator_for_loop_start): Likewise.
2920         (iterator_for_loop_end): Likewise.
2921         (iterator_for_loop_record): Likewise.
2922         (push_iterator_stack): Likewise.
2923         (pop_iterator_stack): Likewise.
2924         * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
2925         (readonly_warning): Likewise.
2926         * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
2927
2928 2000-08-24  Jim Wilson  <wilson@cygnus.com>
2929
2930         * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
2931         Copy type in a TYPE_DECL, just like pushdecl does.
2932
2933 2000-08-24  Richard Henderson  <rth@cygnus.com>
2934
2935         * toplev.c (main): Enable flag_reorder_blocks at -O2.
2936
2937 2000-08-24  Zack Weinberg  <zack@wolery.cumb.org>
2938
2939         * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
2940         asked for one page, allocate GGC_QUIRE_SIZE of them and put
2941         the extras on the free list.
2942         (release_pages): Clean up.
2943         (ggc_set_mark): Don't adjust G.allocated here...
2944         (sweep_pages): ... do it here.
2945
2946 2000-08-24  Zack Weinberg  <zack@wolery.cumb.org>
2947
2948         * cppfiles.c (read_include_file): Rearrange initializations.
2949
2950 2000-08-24  Richard Henderson  <rth@cygnus.com>
2951
2952         * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
2953
2954         * config/ia64/ia64-protos.h: Update.
2955         * config/ia64/ia64.c (gr_register_operand): New.
2956         (fr_register_operand, grfr_register_operand): New.
2957         (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
2958         (grfr_reg_or_8bit_operand): New.
2959         (gr_reg_or_0_operand): Rename from reg_or_0_operand and
2960         use gr_register_operand.
2961         (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
2962         (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
2963         (gr_reg_or_8bit_and_adjusted_operand): Likewise.
2964         (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
2965         (fr_reg_or_fp01_operand): Likewise.
2966         (not_postinc_memory_operand): New.
2967         (ia64_split_timode): Remove unused variables.
2968         (rtx_needs_barrier): Check arguments to cmpxchg.
2969         (builtin_description): Remove.
2970         (bdesc_2argsi, bdesc_2argdi): Remove.
2971         (ia64_init_builtins): Declare all builtins directly.
2972         (ia64_expand_fetch_and_op): Rewrite to be called from
2973         ia64_expand_builtin directly.  Use expand_binop and co.
2974         (ia64_expand_op_and_fetch): Likewise.
2975         (ia64_expand_compare_and_swap): Likewise.
2976         (ia64_expand_binop_builtin): Remove.
2977         (ia64_expand_lock_test_and_set): New.
2978         (ia64_expand_lock_release): New.
2979         (ia64_expand_builtin): Use them.
2980         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
2981         (EXTRA_CONSTRAINT): Use it.
2982         (PREDICATE_CODES): Update.
2983         * config/ia64/ia64.md (*): Use gr_register_operand and co.
2984         (mf): Indicate that we set memory as well as use it.
2985         (fetchadd_acq_si): Show memory being modified as well.
2986         (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
2987         (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
2988         (lock_test_and_set_si, lock_test_and_set_di): Remove.
2989         (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
2990         (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
2991         (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
2992         (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
2993         (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
2994         (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
2995         (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
2996         (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
2997         * config/ia64/ia64intrin.h (*): Cast result to the appropriate
2998         return type.  Pretty print definitions.
2999
3000 2000-08-24  Jim Wilson  <wilson@cygnus.com>
3001
3002         * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
3003         we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
3004
3005 2000-08-24  Jason Merrill  <jason@redhat.com>
3006
3007         * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
3008         AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
3009         (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
3010         get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
3011
3012 2000-08-24  Greg McGary  <greg@mcgary.org>
3013
3014         * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
3015         and extendtab within their proper array boundaries.
3016         * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
3017         for the entire array.
3018
3019         * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
3020         * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
3021         * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
3022         * config/fr30/fr30.c (fr30_print_operand): Likewise.
3023         * config/i386/dgux.c (output_options): Likewise.
3024         * config/i386/dgux.h (ASM_FILE_START): Likewise.
3025         * config/m88k/m88k.c (output_options): Likewise.
3026         * config/m88k/m88k.h (ASM_FILE_START): Likewise.
3027         * config/mcore/mcore.c (mcore_output_inline_const_forced,
3028         layout_mcore_frame, handle_structs_in_regs): Likewise.
3029         * config/mips/mips.c (output_block_move): Likewise.
3030         * config/rs6000/rs6000.c (rs6000_override_options,
3031         rs6000_file_start): Likewise.
3032         * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
3033         * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
3034         * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
3035         * builtins.c (expand_builtin_setjmp): Likewise.
3036         * expr.c (safe_from_p): Likewise.
3037         * flow.c (life_analysis): Likewise.
3038         * fold-const.c (size_int_type_wide): Likewise.
3039         * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
3040         * genattrtab.c (make_length_attrs): Likewise.
3041         * genopinit.c (gen_insn): Likewise.
3042         * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
3043         * global.c (global_alloc): Likewise.
3044         * local-alloc.c (find_free_reg): Likewise.
3045         * mips-tdump.c (print_symbol): Likewise.
3046         * mips-tfile.c (parse_def, parse_input): Likewise.
3047         * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
3048         * stmt.c (expand_nl_goto_receiver): Likewise.
3049         * stor-layout.c (set_sizetype): Likewise.
3050         * varasm.c (decode_reg_name): Likewise.
3051         * toplev.c (decode_f_option, decode_W_option,
3052         set_target_switch, print_switch_values): Likewise.
3053         (NUM_ELEM): Remove macro.
3054         (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
3055
3056 2000-08-24  Greg McGary  <greg@mcgary.org>
3057
3058         * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
3059         (MAIN_NAME_P, main_identifier_node): New macros.
3060         * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
3061         * c-decl.c (start_decl, grokdeclarator, start_function,
3062         store_parm_decls, finish_function): Use MAIN_NAME_P.
3063         * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
3064         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
3065         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
3066         * config/pdp11/pdp11.c (output_function_prologue): Likewise.
3067
3068 2000-08-24  Greg McGary  <greg@mcgary.org>
3069
3070         * cppfiles.c (actual_directory): Don't write beyond `dir'
3071         when it contains "".
3072         * real.c (asctoeg): Stay within bounds of etens[][].
3073
3074 2000-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3075
3076         * dependence.c (dependence_string, direction_string,
3077         dump_one_node, dump_node_dependence): Hide unused identifiers.
3078         (get_low_bound, normalize_coefficients): Match definition to
3079         static prototype.
3080         (get_one_coefficient): Initialize variables `value0_is_idx' and
3081         `value1_is_idx'.
3082         (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
3083         (ziv_test): Delete variable `idx', use parameter `sub' instead.
3084         (direction_merge): Avoid automatic aggregate initialization.
3085         (have_dependence_p): Use `src' not `dest' to set `src_idx'.
3086         Initialize variables `dest_idx' and `src_idx'.
3087         (end_dependence_analysis): Avoid C89 style function definition.
3088
3089 2000-08-24  Joseph S. Myers  <jsm28@cam.ac.uk>
3090
3091         * c-common.c (time_char_table): Don't allow width with %F.
3092         (check_format_info): Don't allow "Z" length with scanf.
3093
3094 2000-08-24  Gabriel Dos Reis  <gdr@codesourcery.com>
3095
3096         * diagnostic.c (finish_diagnostic): Define.
3097         (output_do_printf): Use wrap_text instead of output_add_string.
3098         (default_print_error_function): Avoid embedded '\n'.
3099
3100         * diagnostic.h (flush_diagnostic_buffer): Declare.
3101
3102 2000-08-23  Alexandre Oliva  <aoliva@redhat.com>
3103
3104         * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
3105
3106 2000-08-23  Hans-Peter Nilsson  <hp@axis.com>
3107
3108         * Makefile.in (GCC_PASSES): Add specs.
3109
3110 2000-08-23  Jim Wilson  <wilson@cygnus.com>
3111
3112         * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
3113         * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
3114         EHANDLER nor UHANDLER bit is set.
3115         (__get_except_table): Likewise.
3116
3117 2000-08-23  Nick Clifton  <nickc@redhat.com>
3118
3119         * config/arm/lib1funcs.asm: Replace upper case condition codes
3120         with lower case versions.
3121
3122         * config/arm/arm.h (STRUCT_VALUE): Define.
3123         (STRUCT_VALUE_REGNUM): Delete.
3124
3125 2000-08-23  Zack Weinberg  <zack@wolery.cumb.org>
3126
3127         * cpphash.h (IN_I): New flag for directive table.
3128         * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
3129         #pragma with IN_I.
3130         (_cpp_check_directive): If -fpreprocessed, execute directives
3131         marked with IN_I.  Issue no warnings in this case.
3132         * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
3133
3134 2000-08-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3135
3136         * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
3137         %u.
3138         (check_format_info): Support printf 'I' flag; warn about it with
3139         -pedantic.
3140
3141 2000-08-23  Richard Earnshaw  (rearnsha@arm.com)
3142
3143         * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
3144         barrier can't be ignored by the alias analysis code.
3145
3146 2000-08-12  Eli Zaretskii  <eliz@is.elta.co.il>
3147
3148         * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
3149         works inside fixincl.
3150
3151 Wed Aug 23 04:55:48 2000  Alexandre Oliva  <aoliva@redhat.com>
3152
3153         * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
3154         simplify_relational_operation() unless both operands are of
3155         VOIDmode.
3156         * cse.c (fold_rtx): Likewise.
3157
3158 Tue Aug 22 23:53:27 EDT 2000  John Wehle  (john@feith.com)
3159
3160         * rtlanal.c (rtx_unstable_p): The pic register is stable
3161         (within one function) and the actual rtx should be used
3162         when checking the registers.
3163         (rtx_addr_can_trap_p): Pic memory addresses can't trap.
3164
3165         * alias.c (true_dependence, write_dependence_p): Fix
3166         bug in previous patch.
3167
3168         * i386.c (ix86_GOT_alias_set): New.
3169         (legitimize_pic_address): Use it.
3170
3171         * rtlanal.c (rtx_unstable_p): An unchanging MEM is
3172         only stable if its address is stable.
3173         (rtx_varies_p): An unchanging MEM can't vary if
3174         its address doesn't vary.
3175
3176 2000-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3177
3178         * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
3179
3180 2000-08-22  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3181
3182         * vax.h (ASM_SPEC): Pass `-J' to assembler.
3183         * x-vax-gcc: New file for bootstrapping with gcc.
3184         * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
3185         * configure.in: Use x-vax-gcc with gcc.
3186         * configure: Rebuilt.
3187
3188 Tue Aug 22 21:21:05 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
3189
3190         * toplev.c (rest_of_compilation): Rebuild label notes after
3191         post-reload splitting pass if new labels have been created.
3192
3193 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
3194
3195         * diagnostic.h (output_buffer_state): New macro.
3196         * diagnostic.c (diagnostic_for_decl, sorry,
3197         default_print_error_function, output_do_verbatim,
3198         report_diagnostic, report_problematic_module): Use it.
3199         (wrap_text): Tweak.
3200         (output_format): Use wrap_text instead of maybe_wrap_text.
3201
3202 2000-08-22  Nick Clifton  <nickc@redhat.com>
3203
3204         * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
3205         Common code for ARM divide and modulus functions.
3206         (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
3207         ARM_DIV_MOD_BODY.
3208         (FUNC_END): New macro: Common code at the end of the division and
3209         modulo functions.
3210         (THUMB_FUNCTION_START): New macro:  Common code at the start of
3211         Thumb functions.
3212         (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
3213
3214 Tue Aug 22 20:34:52 2000  Kaz Kojima <kkojima@rr.iij4u.or.jp>
3215
3216         * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
3217
3218         * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
3219         sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
3220         const0_rtx.
3221
3222 2000-08-22  Nick Clifton  <nickc@redhat.com>
3223
3224         * config/arm/lib1funcs.asm (__umodsi3): Before performing any
3225         restorative additions, test for bottom bits of IP being set,
3226         rather than relying upon the RORs not matching.
3227         (__modsi3): Ditto.
3228
3229 2000-08-22  David Edelsohn  <edelsohn@gnu.org>
3230
3231         * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
3232         text_section() as appropriate instead of emitting text csect
3233         pseudo-op directly.
3234         (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
3235         (UNIQUE_SECTION): Define macro.
3236         (ASM_OUTPUT_SECTION_NAME): Define macro.
3237         * rs6000.c (rs6000_override_options): Disable -ffunction-sections
3238         on AIX if debugging and -fdata-sections always.
3239
3240 2000-08-22  Steven King  <sxking@uswest.net>
3241
3242         * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
3243         machinery.
3244         (LDBL_MAX): Same here.
3245
3246 2000-08-22  Richard Henderson  <rth@cygnus.com>
3247
3248         * flow.c (tidy_fallthru_edge): Update b->end properly.
3249
3250 2000-08-22  Stan Cox  <scox@redhat.com>
3251
3252         * Makefile.in (OBJS): Add dependence.o.
3253         * dependence.c: New file.
3254
3255 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>, John David Anglin  <dave.anglin@nrc.ca>
3256
3257         * calls.c (check_sibcall_argument_overlap_1): Adjust for
3258         ARGS_GROW_DOWNWARD.
3259         (check_sibcall_argument_overlap): Likewise.
3260
3261 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
3262
3263         * invoke.texi (SH Options): Document -m4-nofpu,
3264         -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
3265         -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
3266
3267 2000-08-22  Joseph S. Myers  <jsm28@cam.ac.uk>
3268
3269         * c-common.c (check_format_info): Give the 'some locales' warning
3270         for strftime %Ey rather than the unconditional 'only last 2 digits
3271         of year' one.
3272
3273 2000-08-22  Richard Henderson  <rth@cygnus.com>
3274
3275         * alias.c (init_alias_analysis): Do not register
3276         struct_value_incoming_rtx or static_chain_rtx as pointing
3277         to stack memory.
3278
3279 Tue Aug 22 01:44:43 2000  Jeffrey A Law  (law@cygnus.com)
3280
3281         * protoize.c (munge_compile_params): Fix typo and formatting buglets.
3282
3283 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
3284
3285         * diagnostic.h (report_problematic_module): Declare.
3286         * diagnostic.c (report_problematic_module): New function.
3287         (report_error_function): Tweak.
3288
3289 Tue Aug 22 02:31:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3290
3291         * stmt.c (expand_goto_internal, fixup_gotos): Only check
3292         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
3293
3294 2000-08-21  Richard Henderson  <rth@cygnus.com>
3295
3296         * flow.c (calculate_global_regs_live): Mark frame pointer live
3297         everywhere before reload.
3298
3299 2000-08-21  Jim Wilson  <wilson@cygnus.com>
3300
3301         * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
3302         INTEL_EXTENDED_IEEE_FORMAT.
3303         (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support.  Unconditionally
3304         clear last two bytes of output FP value.
3305
3306 2000-08-21  Graham Stott  <grahams@cygnus.co.uk>
3307
3308         * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
3309
3310 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
3311
3312         * unroll.c (loop_find_equiv_value): If ret is modified between
3313         insn and loop_start, ret might not be equivalent to reg.
3314
3315 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
3316
3317         * c-common.c (init_dollar_format_checking,
3318         maybe_read_dollar_number, finish_dollar_format_checking): New
3319         functions.
3320         (dollar_arguments_used, dollar_arguments_count,
3321         dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
3322         New variables.
3323         (check_format_info): Support $ formats for scanf and printf width
3324         and precision.  Always increment format_chars to advance past the
3325         '*' of precision, not just when the format parameters are
3326         available to check.
3327
3328 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3329
3330         * mips.c (block_move_loop, expand_block_move,
3331         function_arg_partial_nregs, save_restore_insns, function_prologue,
3332         mips_expand_prologue, RA_MASK): Avoid using the `U' integer
3333         constant suffix.
3334         (function_arg_advance, function_arg): Match argument to format
3335         specifier `%p'.
3336
3337 2000-08-21  Nix  <nix@esperi.demon.co.uk>
3338
3339         * gcc.c (do_spec_1): Implement %j spec flag.
3340         Remove dead comment.
3341
3342         * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
3343         * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
3344         * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
3345         * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
3346
3347         * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
3348         writable) instead of hardcoded value.
3349
3350         * toplev.c (compile_file): Output to a file even if -fsyntax-only.
3351
3352         * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
3353         MKTEMP_EACH_FILE.
3354
3355         * gcc.c (cc1_options): Do not process -o or run the assembler if
3356         -fsyntax-only.
3357         * objc/lang-spec.h: Likewise.
3358
3359 2000-08-21  Eli Zaretskii  <eliz@is.elta.co.il>
3360
3361         * fixinc/fixincl.c (fix_with_system): Pipe the output of
3362         "external" fixes through `cat', to avoid truncating the input
3363         file by redirection.
3364
3365 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
3366
3367         * config/i386/i386.md (lea_general_1): Copy insn condition to split
3368         condition.
3369         (lea_general_2, lea_general_3): Likewise.
3370
3371 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3372
3373         * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
3374         warnings to user code.
3375
3376         * c-lex.c (readescape, yylex): Likewise.
3377
3378         * c-typeck.c (store_init_value, process_init_element): Likewise
3379         (c_expand_start_case): Format.
3380
3381 2000-08-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3382
3383         * mips/linux.h (LINK_SPEC): Use %(endian_spec).
3384
3385         * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
3386         and linker_endian_spec to endian_spec.
3387         (ENDIAN_SPEC): Add %{EB} and %{EL}.
3388         (LINK_SPEC): Remove %{EB} and %{EL}.
3389         (ASM_SPEC): Likewise.  Use %(endian_spec).
3390
3391 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
3392
3393         * c-tree.h (flag_hosted): Move declaration from here...
3394         * c-common.h (flag_hosted): ... to here.
3395         (flag_noniso_default_format_attributes): New declaration.
3396         * c-decl.c (flag_noniso_default_format_attributes): New variable.
3397         (c_decode_option): Set it appropriately for options choosing
3398         language standard variant.
3399         * c-common.c (init_function_format_info): Only provide default
3400         format attributes if flag_hosted.  Only provide the gettext
3401         formats if flag_noniso_default_format_attributes.  Update
3402         comments.
3403         (check_format_info): Disable treatment of %a as a scanf flag in
3404         C99 mode.
3405
3406 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
3407
3408         * c-common.c (scan_char_table): Add 'w' to flags for all formats
3409         except 'n'.
3410         (check_format_info): Set 'wide' for scanf format widths.  Warn for
3411         a zero scanf width.  Make the check for writing into a constant
3412         object at the first level of indirection; at later levels, warn if
3413         any type qualifiers are encountered.
3414
3415 Mon Aug 21 07:41:12 2000  Jeffrey A Law  (law@cygnus.com)
3416
3417         * reload.c (reload_inner_reg_of_subreg): New function broken out of
3418         push_reload.
3419         (push_reload): Use reload_inner_reg_of_subreg.
3420         (combine_reloads): Do not combine reloads if the input reload
3421         is a SUBREG in which the inner part will need reloading.
3422
3423         * global.c (global_alloc): Avoid passing dumpfile argument to
3424         reload routines.
3425         * toplev.c (rest_of_compilation): Likewise.
3426         * reload.h (reload): Remove dumpfile argument.  Callers changed.
3427         (debug_reload, debug_reload_to_stream): Move prototypes here.
3428         * rtl.h  (reload): Remove dumpfile argument.
3429         * reload.c (debug_reload): Remove prototype.
3430         (debug_reload_to_stream): Likewise.
3431         * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
3432         instead.
3433
3434 2000-08-21  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3435
3436         * diagnostic.c (context_as_prefix): Export.
3437         (need_error_newline): Remove.
3438         (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
3439         (error_module_changed, record_last_error_module,
3440         error_function_changed, record_last_error_function): New functions.
3441         (initialize_diagnostics): Default intialize
3442         lang_diagnostic_starter, lang_diagnostic_finalizer.
3443         (init_output_buffer): Tweak.
3444         (file_name_as_prefix): New function.
3445         (announce_function, default_print_error_function,
3446         report_error_function, set_diagnostic_context): Tweak.
3447
3448 2000-08-21  Richard Earnshaw  <rearnsha@arm.com>
3449
3450         * flow.c (init_propagate_block_info): Handle SUBREG in a jump
3451         condition expression.
3452
3453 2000-08-20  Richard Henderson  <rth@cygnus.com>
3454
3455         * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
3456
3457 2000-08-20  Zack Weinberg  <zack@wolery.cumb.org>
3458
3459         * cppinit.c (cpp_init): Set global flag when called.
3460         (cpp_reader_init): Bomb out if cpp_init hasn't been called.
3461
3462 Sun Aug 20 01:41:35 2000  Dennis Chernoivanov  <cdi@sparc.spb.su>
3463
3464         * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
3465         before `process_directive' so that newlines won't be missed
3466         for directives.
3467         (cpp_printf): Increment `print->lineno' when newline is emitted.
3468
3469         * cppmain.c (cb_ident): Likewise.
3470         (cb_define): Likewise.
3471         (cb_undef): Likewise.
3472         (cb_include): Likewise.
3473         (cb_def_pragma): Likewise.
3474         (dump_macros_helper): Likewise.
3475
3476 2000-08-20  Richard Henderson  <rth@cygnus.com>
3477
3478         * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
3479         assigned before a loop.
3480
3481         * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
3482         (ashrsi3, lshrsi3): Likewise.
3483
3484 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
3485
3486         * c-lang.c: #include diagnostic.h
3487         (c_tree_printer): New function.
3488         (lang_init): Initialize lang_printer.
3489
3490         * Makefile.in (c-lang.o): Depends on diagnostic.h
3491
3492 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
3493
3494         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
3495
3496         * diagnostic.c (default_diagnostic_starter,
3497         default_diagnostic_finalizer): New functions.
3498         (diagnostic_for_asm, diagnostic_for_decl): Tweak.
3499         (pedwarn, pedwarn_with_file_and_line, error,
3500         error_with_file_and_line, fatal, warning,
3501         warning_with_file_and_line): Adjust call to report_diagnostic.
3502         (report_diagnostic): Rework.
3503         (set_diagnostic_context): New function.
3504
3505         * diagnostic.h (struct diagnostic_context): New data structure.
3506         (diagnostic_message, diagnostic_argument_list,
3507         diagnostic_file_location, diagnostic_line_location,
3508         diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
3509         diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
3510         (set_diagnostic_context): Declare.
3511         (report_diagnostic): Change prototype.
3512
3513 Sun 20-Aug-2000 09:25:45 BST  Neil Booth  <NeilB@earthling.net>
3514
3515         * fix-header.c (main): Initialize cpplib.
3516
3517 2000-08-19  Michael Meissner  <meissner@redhat.com>
3518
3519         * ifcvt.c (find_if_block): Do not assume that a THEN block has any
3520         instructions in it before checking for indirect jumps.
3521
3522         * ifcvt.c (find_if_block): Do not consider a THEN block that ends
3523         in a indirect jump as a potential for conditional execution.
3524
3525         * d30v.h (d30v_init_expanders): Don't declare here.
3526         * d30v-protos.h (d30v_init_expanders): Declare here with a valid
3527         prototype.
3528
3529 Sat 19-Aug-2000 21:11:45 BST  Neil Booth  <NeilB@earthling.net>
3530
3531         * cpp.texi: Add @section for assertions.
3532
3533 Sat Aug 19 12:37:08 EDT 2000  John Wehle  (john@feith.com)
3534
3535         * loop.c (scan_loop): Use CONST_CALL_P instead of
3536         checking for REG_LIBCALL / REG_RETVAL.
3537
3538 Sat Aug 19 09:18:47 2000  Jeffrey A Law  (law@cygnus.com)
3539
3540         * reload1.c (reload_as_needed): Accept dumpfile argument,
3541         pass it to emit_reload_insns.
3542         (emit_reload_insns): Add new dumpfile argument.  If non-null
3543         then dump the reloads for each insn into the dumpfile.
3544         (reload): Pass dumpfile to reload_as_needed.
3545
3546         * invoke.texi: Clean up linux-gnu vs linux comments.
3547
3548 2000-08-19  Richard Henderson  <rth@cygnus.com>
3549
3550         * config/ia64/ia64.c (reg_or_5bit_operand): New.
3551         (ia64_depz_field_mask): New.
3552         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
3553         (PREDICATE_CODES): Update.
3554         * config/ia64/ia64.md: Update commentary.
3555         (depz_internal): New.
3556         (ashlsi3): Implement directly.
3557         (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
3558         (ashldi3): Use shladd.
3559         * config/ia64/ia64-protos.h: Update.
3560
3561 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
3562
3563         * toplev.c (independent_decode_option): Always process -g.
3564         Remove third argument, now unused.  Adjust caller to match.
3565
3566 2000-08-18  Richard Henderson  <rth@cygnus.com>
3567
3568         * combine.c (make_compound_operation): Break after creating
3569         the extraction.
3570
3571 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
3572
3573         * cpplib.c (cpp_register_pragma_space): Just return if the
3574         namespace is already registered.
3575
3576 2000-08-18  Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton  <nickc@redhat.com>
3577
3578         * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
3579         constant amount.  Do not generate ROTL instruction.
3580
3581 Fri Aug 18 16:22:20 2000  Alexandre Oliva  <aoliva@redhat.com>
3582
3583         * config/sh/elf.h: Do not include sh/sh.h.
3584         * config/sh/rtems.h: Likewise.
3585         * config/sh/rtemself.h: Do not include sh/elf.h.
3586         * configure.in: Get them included with `tm_file's.
3587         * configure: Rebuilt.
3588
3589         * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
3590         * config/sh/sh.c (fpscr_set_from_mem): Use them.
3591
3592 Fri Aug 18 14:23:18 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3593
3594         * stor-layout.c (compute_record_type): Don't use mode of single
3595         field as mode of record if not integer mode of same type.
3596
3597         * regmove.c (perhaps_ends_bb_p): New function.
3598         (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
3599         (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
3600         (fixup_match_1): Likewise.
3601         (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
3602         avoid signed/unsigned warnings.
3603
3604         * function.c (fixup_var_refs_1, case MEM): Update CODE after
3605         updating X.
3606
3607 Fri 18-Aug-2000 18:33:45 BST  Neil Booth  <NeilB@earthling.net>
3608
3609         * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
3610         (_cpp_trigraph_map): Declaration moved from cpplex.c
3611
3612         * cppinit.c: Define _cpp_trigraph_map.  Use UCHAR_MAX + 1
3613         instead of 256.  Use consistent test for designated initializers.
3614         (cpp_init): Initialize trigraph_map.
3615         (initialize_standard_includes, parse_option):  Use memcmp
3616         instead of strncmp.
3617
3618         * cpplex.c (init_trigraph_map): Remove.
3619         (trigraph_ok, trigraph_replace, lex_line): Refer to
3620         _cpp_trigraph_map.
3621
3622         * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
3623         (do_unassert): Remove unused "next" local.
3624
3625         * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
3626
3627 2000-08-18  Emmanuel Marty  <emarty@suntech.fr>
3628
3629         * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
3630         insn.
3631
3632 2000-08-17  Richard Henderson  <rth@cygnus.com>
3633
3634         * config/ia64/ia64.c (spill_restore_mem): Handle emitting
3635         the first insn in a sequence.
3636
3637 Thu Aug 17 22:40:05 EDT 2000  John Wehle  (john@feith.com)
3638
3639         * alias.c (true_dependence, write_dependence_p): A read
3640         involving a label_ref or the constant pool doesn't create
3641         a dependency.
3642
3643         * rtl.h (unchanging): Improve documentation.
3644
3645 2000-08-17  Rodney Brown  <RodneyBrown@mynd.com>
3646
3647         * cse.c (insert_regs): Remove unused `regno'.
3648
3649 2000-08-17  Neil Booth  <NeilB@earthling.net>
3650
3651         * (cppinit.c) merge_include_chains: Use remove_dup_dir,
3652         remove_dup_dirs.  If qtail == brack, remove brack not
3653         qtail.
3654         (remove_dup_dir, remove_dup_dirs): New functions.
3655
3656 2000-08-17  Neil Booth  <NeilB@earthling.net>
3657
3658         * cppinit.c (cpp_cleanup): Free include dir chains.
3659         * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
3660         (do_unassert): Free the assert with _cpp_free_definition.
3661         * cppmacro.c (_cpp_free_definition): Free memory allocated for
3662         assertions.  Make the node a T_VOID node.
3663
3664 2000-08-17  Neil Booth  <NeilB@earthling.net>
3665
3666         * cppinit.c (path_include, append_include_chain):
3667         Remove 2nd parameter (struct cpp_pending *).
3668         (path_include, initialize_standard_includes, cpp_handle_option):
3669         Update callers appropriately.
3670         (cpp_handle_option): Use pend.
3671
3672 2000-08-17  Neil Booth  <NeilB@earthling.net>
3673
3674         * cppinit.c (sort_options): Remove, put functionality in
3675         cpp_init.
3676         (cpp_init): New.
3677         (initialize_builtins): Free memory.
3678         (cpp_start_read): Move init_IStable to cpp_init.
3679
3680         * cpplib.h (cpp_init): New prototype.
3681         * cppmain.c (main): Call cpp_init.
3682
3683 Thu Aug 17 13:20:32 EDT 2000  John Wehle  (john@feith.com)
3684
3685         * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
3686         (rtx_unstable_p, rtx_varies_p): Process vectors.
3687
3688 2000-08-16  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3689
3690         * config/sh/lib1funcs.asm (GLOBAL): Define.  Use for all
3691         references to GLOBAL symbols.  Use LOCAL where appropriate.
3692
3693 2000-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3694
3695         * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.  Always
3696         use t-aix41 when host == target.
3697
3698 2000-08-16  Richard Henderson  <rth@cygnus.com>
3699
3700         * reload.c (push_secondary_reload): Revert last change.
3701         If we use a reload_in/out pattern, make the when the same
3702         as the primary reload.
3703         (find_reloads): Likewise.
3704
3705 2000-08-16  Manfred Hollstein  <manfredh@redhat.com>
3706
3707         * configure.in (libstdcxx-v3): Fix test.
3708         * configure: Regenerate.
3709
3710 Wed Aug 16 08:10:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3711
3712         * calls.c (calls_function_1, expand_call): Only test
3713         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
3714         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3715
3716 2000-08-16  Richard Henderson  <rth@cygnus.com>
3717
3718         * combine.c (simplify_shift_const): Revert previous two
3719         changes.  If SHIFT_COUNT_TRUNCATED, crop the shift count
3720         before the main loop.
3721
3722 2000-08-15  Richard Henderson  <rth@cygnus.com>
3723
3724         * combine.c (simplify_shift_const): Bound shift count when
3725         combining shifts.
3726
3727 Tue Aug 15 17:33:05 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3728
3729         * calls.c (ECF_SP_DEPRESSED): New macro.
3730         (calls_function_1): Treat calling sp-depressed function as alloca.
3731         (emit_call_1): Don't adjust SP if calling sp-depressed function.
3732         (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
3733         If sp-depressed, ensure block saves and restores SP.
3734         * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
3735         for INTEGER_TYPE.
3736         * function.c (keep_stack_depressed): New function.
3737         (thread_prologue_and_epilogue_insns): Call it.
3738         * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
3739         to print DECL_OFFSET_ALIGN.
3740         Print no-force-blk and transparent-union flags properly.
3741         * stmt.c (expand_goto_internal): Don't restore stack if last block
3742         and function returns with sp depressed.
3743         (fixup_gotos): Likewise.
3744         (save_stack_pointer): New function, from code in expand_decl.
3745         (expand_decl): Call new function.
3746         * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
3747         (TYPE_RETURNS_STACK_DEPRESSED): New macro.
3748         (save_stack_pointer): New declaration.
3749
3750         * diagnostic.c (fatal_function): New variable.
3751         (set_fatal_function): New function.
3752         (fatal): Call it.
3753         * diagnostic.h (set_fatal_function): New declaration.
3754
3755 2000-08-15  William Cohen  <wcohen@redhat.com>
3756
3757         * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
3758         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
3759         (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
3760
3761 2000-08-15  Richard Henderson  <rth@cygnus.com>
3762
3763         * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
3764
3765 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
3766
3767         * arm.c (arm_function_ok_for_sibcall): New function.
3768         * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
3769         * arm.md (call expanders): Don't check here for calls that can't
3770         be sibling calls.
3771
3772 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
3773
3774         * arm.md (splits generating cond_exec): Disable.
3775
3776 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
3777
3778         * arm/linux-elf.h (text_section): Delete declaration.
3779
3780 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
3781
3782         ARM support for unordered FP operations.
3783         * arm-protos.h (arm_comparison_operator): Declare.
3784         * arm.c (arm_comparison_operator): New function.
3785         (arm_select_cc_mode): Add unordered comparison codes.
3786         (get_arm_condition_code): Likewise.
3787         (arm_final_prescan_insn): Can't handle unordered jumps that can't
3788         be done in one insn.
3789         * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
3790         * arm.md (all uses of comparison_operator): Replace with
3791         arm_comparison_operator.
3792         (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
3793         expands.
3794         (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
3795         patterns.
3796
3797 Tue Aug 15 00:36:36 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
3798
3799         * gthr-posix.h: Conditionally include <sched.h>; include
3800         <config.h> from libobjc/.
3801
3802 2000-08-14  Richard Henderson  <rth@cygnus.com>
3803
3804         * config/i386/i386.c (legitimize_pic_address): Use Pmode
3805         for all CONSTs.
3806
3807 2000-08-14  Richard Henderson  <rth@cygnus.com>
3808
3809         * configure.in (ia64-*): Set float_format for i386 long double.
3810
3811         * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
3812         as we would for i386 XFmode.
3813         (PUT_REAL): Likewise.
3814         (endian, ereal_atof, real_value_truncate): Likewise.
3815         (ereal_isneg, toe64, etens, make_nan): Likewise.
3816         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
3817
3818         * config/ia64/ia64-protos.h: Update.
3819         * config/ia64/ia64.c (general_tfmode_operand): New.
3820         (destination_tfmode_operand): New.
3821         (tfreg_or_fp01_operand): New.
3822         (ia64_split_timode): New.
3823         (spill_tfmode_operand): New.
3824         (ia64_expand_prologue): Use TFmode not XFmode.
3825         (ia64_expand_epilogue): Likewise.
3826         (ia64_function_arg): Likewise.
3827         (ia64_function_arg_advance): Likewise.
3828         (ia64_return_in_memory): Likewise.
3829         (ia64_function_value): Likewise.
3830         (ia64_print_operand): Likewise.
3831         (ia64_register_move_cost): Set GR<->FR to 5.
3832         (ia64_secondary_reload_class): Get GR for TImode memory op.
3833         * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
3834         (ROUND_TYPE_ALIGN): Remove.
3835         (LONG_DOUBLE_TYPE_SIZE): Set to 128.
3836         (INTEL_EXTENDED_IEEE_FORMAT): Define.
3837         (HARD_REGNO_NREGS): Use TFmode, not XFmode.
3838         (HARD_REGNO_MODE_OK): Likewise.  Disallow TImode in FRs.
3839         (MODES_TIEABLE_P): Use TFmode, not XFmode.
3840         (CLASS_MAX_NREGS): Likewise.
3841         (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
3842         (PREDICATE_CODES): Update.
3843         * config/ia64/ia64.md (movti): New.
3844         (movti_internal): Use a clobber for memory alternatives.
3845         (reload_inti, reload_outti): New.
3846         (movsfcc_astep): Predicate properly.
3847         (movdfcc_astep): Likewise.
3848         (movxf): Remove.
3849         (movtf): New.
3850         (extendsftf2, extenddftf2): New.
3851         (trunctfsf2, trunctfdf2): New.
3852         (floatditf2, fix_trunctfdi2): New.
3853         (floatunsditf2, fixuns_trunctfdi2): New.
3854         (addtf3, subtf3, multf3, abstf2): New.
3855         (negtf2, nabstf2, mintf3, maxtf3): New.
3856         (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
3857         (cmptf): New.
3858         (fr_spill): Use TFmode, not XFmode.
3859         (fr_restore): Likewise.
3860         * config/ia64/lib1funcs.asm (__divtf3): New.
3861         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
3862
3863 2000-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3864
3865         * cse.c (fold_rtx): Avoid empty body in an if-statement.
3866
3867         * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
3868         `U' integer constant suffix.
3869
3870         * dwarf2out.c (add_subscript_info): Avoid empty body in an
3871         else-statement.
3872
3873         * sparc/sol2.h (__enable_execute_stack): Prototype.
3874
3875 2000-08-14  David Edelsohn  <edelsohn@gnu.org>
3876
3877         * collect2.c: Remove use of AIX import file.
3878
3879         * longlong.h: Test ARCH_PWR not ARCH_POWER.
3880
3881         * rs6000.c (print_operand, case 'E'): Add else.
3882
3883 2000-08-14  Richard Henderson  <rth@cygnus.com>
3884
3885         * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
3886         (movdi_symbolic): New.
3887
3888 2000-08-14  Jim Wilson  <wilson@cygnus.com>
3889
3890         * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
3891         to GNU as.  For Intel as, pass -M const_gp and -M no_plabel.
3892         * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
3893         to GNU as.
3894
3895 2000-08-14  Richard Henderson  <rth@cygnus.com>
3896
3897         * expr.c (emit_group_load): Don't force constants into registers.
3898         Special case source already in the correct mode.
3899
3900 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
3901
3902         * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
3903         * fixinc/inclhack.def: Likewise.
3904         * fixinc/mkfixinc.sh: Likewise.
3905         * configure: Regenerate.
3906         * fixinc/fixincl.x: Regenerate.
3907         * install.texi: Document equivalence of linux and linux-gnu.
3908
3909 Mon Aug 14 18:51:44 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
3910
3911         * cse.c (insert_regs): Also in REG case: When finding an invalid
3912         value, and we make a new quantity, make sure that it won't be
3913         mistaken by for a valid one by mention_regs.
3914
3915 2000-08-13  Ralf Gütlein <ralf.guetlein@aranea.de>
3916
3917         * h8300.md: Remove obsolete peepholes.
3918
3919 2000-08-13  Kazu Hirata  <kazu@hxi.com>
3920
3921         * invoke.texi (H8/300 Options): Fix typos.
3922         * config/h8300.c: Fix formatting.
3923         * config/h8300.h: Fix comment typos.
3924         (OVERRIDE_OPTIONS): Fix formatting.
3925
3926         * function.c: Fix formatting.
3927
3928         * cse.c: Fix formatting.
3929
3930 2000-08-13  Geoff Keating  <geoffk@cygnus.com>
3931
3932         * flow.c (attempt_auto_inc): Remove unused variable `bb'.
3933         (attempt_auto_inc): Suppress parentheses warning.
3934         * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
3935         * loop.c (load_mems): Remove `u' suffix in two places.
3936         * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
3937         hex constants.
3938         * config/rs6000/rs6000.h: Likewise.
3939         * config/rs6000/sol-c0.c: Prototype some functions.  Remove the
3940         __eabi dummy routine.
3941         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
3942         variable `buf_ptr'.
3943
3944         * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
3945         not put stuff in .sdata unnecessarily.
3946         (rs6000_unique_section): New function.
3947         * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
3948         * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
3949
3950         * c-typeck.c (build_array_ref): Don't complain about non-lvalue
3951         arrays in C99.  Don't try to look at DECL_REGISTER of a
3952         COMPONENT_REF.  Don't complain twice about the same error.
3953
3954         * fixinc/inclhack.def (aix_pthread): New fix.
3955         (aix_sysmachine): New fix.
3956         * fixinc/fixincl.x: Regenerate.
3957
3958         * expr.c (expand_expr): Call convert_modes when turning a large
3959         multiply into a small one.
3960
3961 2000-08-12  Geoff Keating  <geoffk@cygnus.com>
3962
3963         * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
3964         the tree structure an exponent rather than an explicit alignment
3965         so it doesn't overflow.
3966         (SET_DECL_OFFSET_ALIGN): New macro.
3967         * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
3968         rather than DECL_OFFSET_ALIGN.
3969         (place_field): Likewise.
3970         * expmed.c (store_bit_field): Abort on align==0 to avoid
3971         antisocial machine behaviour.
3972
3973 2000-08-12  Richard Henderson  <rth@cygnus.com>
3974
3975         * sibcall.c (uses_addressof): Accept both addressof and
3976         current_function_internal_arg_pointer inside a mem.
3977         (optimize_sibling_and_tail_recursive_call): Fail tail recursion
3978         if current_function_uses_addressof.
3979         * stmt.c (expand_return): Kill tail recursion and HAVE_return
3980         optimizations.
3981
3982 2000-08-11  Richard Henderson  <rth@cygnus.com>
3983
3984         * config/ia64/ia64.md (addsi3): Remove expander.
3985         (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
3986         (*addsi3_shladd): New.
3987
3988 2000-08-11  Richard Henderson  <rth@cygnus.com>
3989
3990         * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
3991         (do_restore): Likewise.
3992         (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
3993         (ia64_expand_prologue, ia64_expand_epilogue): Use them.
3994         (rtx_needs_barrier): Track actual bit manipulation for
3995         ar.unat moves, gr_spill, and gr_restore.
3996         (emit_insn_group_barriers): Special case gr_spill/gr_restore.
3997         (process_set): Don't handle varargs spills.
3998         * config/ia64/ia64.md (gr_spill): Accept cfa offset.  Emit
3999         .mem.offset here instead of in process_set.
4000         (gr_restore): Likewise.
4001
4002 2000-08-11  Richard Henderson  <rth@cygnus.com>
4003
4004         * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
4005
4006 2000-08-11  Mark Elbrecht  <snowball3@bigfoot.com>
4007
4008         * gcc.texi (The Configuration File): Document
4009         COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
4010         UPDATE_PATH_HOST_CANONICALIZATION.
4011
4012 2000-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4013
4014         * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
4015         unprototyped function pointer casts on integer constants.
4016
4017 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
4018
4019         * fixproto: Recognize DOS paths with drive letters as absolute paths.
4020
4021 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
4022
4023         * extend.texi (Volatiles): Fix typos.
4024
4025 2000-08-11  Kazu Hirata  <kazu@hxi.com>
4026
4027         * flow.c: Fix formatting.
4028
4029 2000-08-11  Richard Henderson  <rth@cygnus.com>
4030
4031         * reload.c (push_secondary_reload): When invoking a reload_{in,out}
4032         pattern, always allocate a tertiary scratch register.
4033
4034         * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
4035         (reload_inhi): Likewise.
4036
4037 2000-08-11  Richard Henderson  <rth@cygnus.com>
4038
4039         * function.c (put_reg_into_stack): Allow type to be NULL.
4040         (schedule_fixup_var_refs): Likewise.
4041         (gen_mem_addressof): Allow decl to be NULL.
4042         (put_addressof_into_stack): Likewise.
4043
4044         * flow.c (merge_blocks_nomove): Be more careful about
4045         locating the beginning of block A.
4046
4047         * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
4048
4049 Thu Aug 10 22:47:09 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
4050
4051         * configure.in:
4052         * configure:
4053         * gthr-posix.h:
4054         * config.in: Reverted the check for <sched.h>.
4055
4056 2000-08-10  Chris Demetriou  <cgd@sibyte.com>
4057
4058         * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
4059         macros define the name of CTOR and DTOR sections.
4060         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
4061         DTOR_LIST_END): Change to use attributes to specify
4062         sections.
4063         * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
4064         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
4065         DTOR_LIST_END): Same as in mips/elf.h.
4066
4067 2000-08-10  Drew Moseley  <dmoseley@redhat.com>
4068
4069         * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
4070         disabling just crt0.o.
4071
4072 2000-08-10  Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton  <nickc@cygnus.com>
4073
4074         * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
4075         (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
4076         (EXTRA_SPECS): Add them.
4077         * arm/lib1funcs.asm: Support builds for interworking.
4078         Use macros to eliminate duplicated pieces of code.
4079
4080 2000-08-10  Kazu Hirata  <kazu@hxi.com>
4081
4082         * h8300.c (expand_a_rotate): New.
4083         (emit_a_rotate): Likewise.
4084         (h8300_adjust_insn_length): Add support for the rotate insns.
4085         * h8300.md (rotlqi3): New.
4086         (*rotlqi3_1): Likewise.
4087         (rotlhi3): Likewise.
4088         (*rotlhi3_1): Likewise.
4089         (rotlhi3): Likewise.
4090         (*rotlhi3_1): Likewise.
4091         * h8300-proto.h: Add prototypes for expand_a_rotate and
4092         emit_a_rotate.
4093
4094         * h8300.c: Fix comment typos.
4095         (dosize): Declare the variable amount as unsigned.
4096         (get_shift_alg): Fix a comparison between signed and unsigned.
4097         (emit_a_shift): Likewise.
4098         (h8300_adjust_insn_length): Simplify the code.
4099
4100         * c-decl.c: Fix formatting.
4101
4102 2000-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4103
4104         * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
4105         warning about non-traditional numeric constant suffixes.
4106
4107         * cppexp.c (parse_number): Likewise.
4108
4109         * invoke.texi: (-Wtraditional): Document new behavior.
4110
4111 Thu Aug 10 00:11:04 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
4112
4113         * gthr-posix.h: Include auto-host.h. Conditionally include
4114         <sched.h>.
4115         * configure.in: Check for the <sched.h> header file.
4116         * config.in: Added define for HAVE_SCHED_H.
4117
4118 2000-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4119
4120         * c-typeck.c (process_init_element): For -Wtraditional, warn about
4121         initialization of unions.
4122
4123         * invoke.texi (-Wtraditional): Document new behavior.
4124
4125 2000-08-09  Zack Weinberg  <zack@wolery.cumb.org>
4126
4127         * configure.in (--enable-c-cpplib): Uncomment.  Use AC_DEFINE
4128         instead of extra_c_flags.
4129         (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
4130         * configure: Regenerate.
4131         * config.in: Regenerate.
4132
4133         * cpperror.c (cpp_type2name): New function.
4134         * cpplex.c (lex_line): If we issued an error for an invalid
4135         preprocessing directive, discard that logical line.
4136         * cpplib.c (do_line): Call a hook function if the current file
4137         is renamed by #line.
4138         (do_ident): Pass the contents of the string, not the entire
4139         token, to the callback function.
4140         * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
4141         (cb.rename_file): New hook function.
4142         (cb.ident): Adjust prototype.
4143         (cpp_type2name): Prototype.
4144         * cppmacro.c (dump_macro_args): Correct precedence lossage.
4145
4146         * cppmain.c (cb_ident): Update for changed interface.
4147         (cb_rename_file): New function.
4148         (main): Set rename callback.
4149
4150 2000-08-09  Alexandre Oliva  <aoliva@redhat.com>
4151
4152         * caller-save.c (mark_referenced_regs): Mark partially-overwritten
4153         multi-word registers.
4154
4155 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4156
4157         * c-common.c (combine_strings, check_format_info): Refer to ISO C
4158         or ISO C89 instead of ANSI C.
4159         * c-decl.c (grokdeclarator, xref_tag, finish_struct,
4160         build_enumerator, do_case): Likewise.
4161         * c-lex.c (parse_float, yylex): Likewise.
4162         * c-parse.in: Likewise.
4163         * c-typeck.c (common_type, build_array_ref, build_binary_op,
4164         build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
4165         build_c_cast, convert_for_assignment, set_init_index,
4166         set_init_label, c_expand_start_case): Likewise.
4167         * toplev.c (documented_lang_options, display_help): Likewise.
4168
4169 2000-08-08  Kazu Hirata  <kazu@hxi.com>
4170
4171         * h8300.c: Fix formatting.
4172         * h8300.h: Likewise.
4173         * h8300.md: Likewise.
4174         (movsi_h8300hs): Fix formatting of the resulting assembly code.
4175
4176         * reload1.c: Fix formatting.
4177
4178 2000-08-08  Rodney Brown  <RodneyBrown@mynd.com>
4179
4180         * alpha/alpha.c (alpha_emit_xfloating_libcall):
4181         Use GEN_CALL_VALUE define.
4182         * alpha/alpha.md (untyped_call): Use GEN_CALL define.
4183         * clipper/clipper.md (untyped_call): Likewise.
4184         * dsp16xx/dsp16xx.md (untyped_call): Likewise.
4185         * fx80/fx80.md (untyped_call): Likewise.
4186         * mips/mips.md (untyped_call): Likewise.
4187         * ns32k/ns32k.md (untyped_call): Likewise.
4188         * pa/pa.md (untyped_call): Likewise.
4189         * romp/romp.md (untyped_call): Likewise.
4190         * sparc/sparc.md (untyped_call): Likewise.
4191
4192 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
4193
4194         * config/i860/i860.c (singlemove_string): Do not generate assembler
4195         pseudo instructions that must be expanded (that is, with signed
4196         constants larger than 16 bits).
4197
4198 2000-08-08  Richard Henderson  <rth@cygnus.com>
4199
4200         * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
4201         PROP_AUTOINC at -O0.  Don't collect alias info at -O0.
4202         (init_propagate_block_info): Don't kill memory stores at -O0.
4203         (mark_set_1, mark_used_regs): Likewise.
4204
4205 2000-08-08  David Edelsohn  <edelsohn@gnu.org>
4206
4207         * rs6000.c (optimization_options): Decorate 'level' as
4208         ATTRIBUTE_UNUSED.
4209         (mask64_operand): Remove sign-extend thinko.
4210         (rldic_operand): New function.
4211         (load_multiple_operation): regno's are unsigned ints.
4212         (store_multiple_operation): Likewise.
4213         (lmw_operation): Likewise.
4214         (stmw_operation): Likewise.
4215         (includes_lshift_p): shift_mask is unsigned int.
4216         (includes_lshift64_p): New function.
4217         (addrs_ok_for_quad_peep): unsigned int reg1.
4218         (print_operand): Consistently add "else" after
4219         output_operand_lossage().
4220         (print_operand, case 'b'): Fold in case 'W'.
4221         (print_operand, case 'W'): Print rldic MB value.
4222         (output_epilogue): Update Objective-C language string.
4223         (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
4224         * rs6000.h (PREDICATE_CODES): Add rldic_operand.
4225         * rs6000.md (ashldi3): Add rldic instruction.
4226         (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
4227         (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
4228         modifier.
4229
4230 2000-08-08  Richard Henderson  <rth@cygnus.com>
4231
4232         * config/ia64/ia64-protos.h: Remove duplicates.  Update
4233         for massive code rearrangements.
4234         * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
4235         (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
4236         (ia64_local_regs, ia64_need_regstk): Remove.
4237         (ar_ccv_reg_operand): New.
4238         (ia64_gp_save_reg): New.
4239         (struct ia64_frame_info): Combine most of the size elements;
4240         add new gr save elements.
4241         (find_gr_spill): New.
4242         (next_scratch_gr_reg): New.
4243         (mark_reg_gr_used_mask): New.
4244         (ia64_compute_frame_size): Rewrite.  Allocate special AR regs
4245         to GR backing store regs when possible.
4246         (ia64_initial_elimination_offset): New.
4247         (ia64_rap_fp_offset): Remove.
4248         (save_restore_insns): Remove.
4249         (setup_spill_pointers): New.
4250         (finish_spill_pointers): New.
4251         (spill_restore_mem): New.
4252         (do_spill, do_restore): New.
4253         (ia64_expand_prologue): Rewrite to use them.
4254         (ia64_expand_epilogue): Likewise.
4255         (ia64_direct_return): Update for current_frame_info changes.
4256         (ia64_function_prologue): Simplify .prologue emission.  Emit
4257         .spill when needed.
4258         (ia64_setup_incoming_varargs): Don't ever emit rtl.
4259         (ia64_dbx_register_number): New.
4260         (ia64_initialize_trampoline): New.
4261         (ia64_secondary_reload_class): Request GR_REGS for integer
4262         arithmetic destined for FR_REGS.
4263         (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
4264         (ia64_mark_machine_status): Mark ia64_gp_save.
4265         (rws_access_regno): Rename from rws_access_reg; don't treat
4266         predicates specially.
4267         (rws_access_reg): New.  Update all callers.
4268         (rtx_needs_barrier): Remove dead unspecs.
4269         (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
4270         (ia64_encode_section_info): Silence signed/unsigned warnings.
4271         (spill_offset, sp_offset, spill_offset_emitted): Remove.
4272         (tmp_reg, tmp_saved): Remove.
4273         (process_set): Rewrite to expect complicated bits via
4274         REG_FRAME_RELATED_EXPR.
4275         (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
4276         in the use of ar.ccv; never set RTX_UNCHANGING_P.
4277         (ia64_expand_op_and_fetch): Likewise.
4278         (ia64_expand_compare_and_swap): Likewise.
4279         (ia64_expand_builtin): Likewise.
4280         * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
4281         (FIRST_PSEUDO_REGISTER): Update.
4282         (AR_M_REGNO_P): Update.
4283         (FIXED_REGS): Don't mark three local registers as used.
4284         (EXTRA_CC_MODES): New.
4285         (SELECT_CC_MODE): New.
4286         (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
4287         (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
4288         (FRAME_GROWS_DOWNWARD): Unset.
4289         (STARTING_FRAME_OFFSET): Zero.
4290         (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
4291         (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
4292         (HARD_FRAME_POINTER_REGNUM): New.
4293         (CAN_DEBUG_WITHOUT_FP): Define.
4294         (TRAMPOLINE_TEMPLATE): Remove.
4295         (TRAMPOLINE_SIZE): Lower to 32.
4296         (TRAMPOLINE_ALIGNMENT): Lower to 64.
4297         (INITIALIZE_TRAMPOLINE): Defer to out of line function.
4298         (PREDICATE_CODES): Update.
4299         (struct machine_function): Add ia64_gp_save.
4300         * config/ia64/ia64.md: Purge unused unspecs.
4301         (movsi patterns): Allow moves to/from AR_M_REGS.
4302         (movdi patterns): Allow moves to/from p0.
4303         (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
4304         (gr_spill, gr_restore): Indicate ar.unat read/written.
4305         (nonlocal_goto): Don't pass old frame_pointer.
4306         (nonlocal_goto_receiver): Remove.
4307         (exception_receiver): New.
4308         (builtin_setjmp_setup): New.
4309         (builtin_setjmp_receiver): New.
4310         * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
4311         (__ia64_nonlocal_goto): Bundle.  Don't kill r7.
4312         (__ia64_restore_stack_nonlocal): Likewise.
4313         (__ia64_trampoline): New.
4314         * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
4315         function.
4316         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
4317
4318 2000-08-08  Richard Henderson  <rth@cygnus.com>
4319
4320         * frame.h (ia64_frame_state): Add my_psp.
4321         * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
4322         (__throw): Pass it in.  Don't clobber r7.
4323         * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
4324         (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
4325         and nothing to do with sp.
4326         (normalize_reg_loc): Use frame->my_psp.
4327         (frame_translate): Handle frame-pointer-less functions.  Set
4328         spill_base correctly, in absence of being told.
4329         (__build_ia64_frame_state): New sp argument.  Fill in frame->my_sp.
4330         (__ia64_backtrace_helper): New sp argument.  Use
4331         builtin_return_address instead of label addresses.
4332         (print_record) [mem_stack_v]: No size member.
4333
4334 2000-08-08  Richard Henderson  <rth@cygnus.com>
4335
4336         * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
4337
4338 2000-08-08  Richard Henderson  <rth@cygnus.com>
4339
4340         * tm.texi (LOCAL_REGNO): Document.
4341         * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
4342         (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
4343         * reload1.c (reload): Likewise when considering nonlocal labels.
4344
4345         * config/ia64/ia64.h (LOCAL_REGNO): New.
4346         * config/sparc/sparc.h (LOCAL_REGNO): New.
4347
4348 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4349
4350         * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
4351
4352 2000-08-07  Nick Clifton  <nickc@redhat.com>
4353
4354         * config/mips/mips.c: Fix compile time warning messages.
4355         * config/mips/mips-protos.h: Add prototype for equality_op.
4356
4357         * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
4358
4359 2000-08-07  Graham Stott  <grahams@cygnus.co.uk>
4360
4361         * mn10300.md: Use nonimmediate_operand instead of general_operand
4362         on output operands.
4363
4364         * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
4365
4366 2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
4367
4368         * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
4369         * sh.c (expand_block_move): Break long lines.
4370         (expand_ashiftrt, fpscr_set_from_mem): Likewise.
4371         * sh.md (mulsi3): Likewise.
4372         (movdi): Adjust spacing.
4373
4374 2000-08-07  Richard Henderson  <rth@cygnus.com>
4375
4376         * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
4377         * expr.c (emit_group_store): Don't set it.
4378
4379 2000-08-07  Kazu Hirata  <kazu@hxi.com>
4380
4381         * invoke.texi (Options for Debugging Your Program or GCC): Remove
4382         duplicate entries for 'w' and 'z'.
4383
4384         * flow.c: Fix a comment typo.
4385
4386 Sun Aug  6 23:47:35 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
4387
4388         * c-parse.in: Changed the language string for Objective-C to "GNU
4389         Objective-C".
4390
4391 Sun Aug  6 11:54:03 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
4392
4393         * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
4394         to improve the Posix thread support for Objective-C.
4395
4396 2000-08-06  Joseph S. Myers  <jsm28@cam.ac.uk>
4397
4398         * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
4399         CTI_UNSIGNED_PTRDIFF_TYPE.
4400         (signed_size_type_node): Define.
4401         (unsigned_ptrdiff_type_node): Define.
4402         * c-decl.c (init_decl_processing): Create the
4403         signed_size_type_node and unsigned_ptrdiff_type_node types.
4404         * c-common.c (T_SC): Define.
4405         (T_SST): Define.
4406         (T_UPD): Define.
4407         (print_char_table): Use T_SST for %zd, %zi, %zn.  Use T_UPD for
4408         %to, %tu, %tx, %tX.  Allow %hhn (T_SC).  Add "c" to the flags for
4409         %s and %p.
4410         (scan_char_table): Use T_SC for %hhd, %hhi, %hhn.  Use T_SST for
4411         %zd, %zi, %zn.  Use T_UPD for %to, %tu, %tx, %tX.  Add "c" to the
4412         flags for %c, %s and %[.
4413         (check_format_info): Only allow leniency for signedness of targets
4414         of character pointers (when pedantic) for formats flagged with
4415         "c", so for strings but not for %hh formats.  When pedantic, don't
4416         allow character pointers to substitute for void pointers if a
4417         second level of indirection is present.
4418
4419 2000-08-06  Kazu Hirata  <kazu@hxi.com>
4420
4421         * invoke.texi (Options for Debugging Your Program or GCC): Update
4422         the names of dump files.
4423
4424         * h8300.c (dosize): Rearrange code for conciseness.
4425         (split_adds_subs): Likewise.
4426
4427         * loop.c: Fix formatting.
4428
4429         * dwarf2out.c: Fix formatting.
4430
4431         * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
4432
4433         * expr.c: Fix formatting.
4434
4435 2000-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4436
4437         * rs6000.c (rs6000_maybe_dead): Prototype.
4438
4439 2000-08-06  Richard Henderson  <rth@cygnus.com>
4440
4441         * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
4442         HAVE_nonlocal_goto as well.
4443         * config/i960/i960.md (nonlocal_goto): Don't do it here.
4444         * config/pj/pj.md (nonlocal_goto): Likewise.
4445
4446 2000-08-07  Michael Hayes  <mhayes@cygnus.com>
4447
4448         * loop.c (try_swap_copy_prop): New function.
4449         (load_mems): Rename copies to load_copies and add new regset
4450         store_copies.  Check for sets of shadow registers and mark
4451         in store_copies.   Call try_swap_copy_prop for registers
4452         marked in store_copies.
4453
4454 Sun Aug  6 00:54:42 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
4455
4456         * objc/objc-act.c: New command line option -fconstant-string-class
4457         to allow specifying a user defined constant string class,
4458         different from NXConstantString.
4459
4460         * toplev.c: Moved the Objective-C specific options to
4461         objc/lang-options.h.
4462
4463         * objc/lang-options.h: Moved the Objective-C specific options from
4464         toplev.c. Added -fconstant-string-class.
4465
4466 2000-08-05  Chris Demetriou  <cgd@sibyte.com>
4467
4468         * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
4469         DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
4470         __CTOR_LIST__ from func_ptr array to just func_ptr, to
4471         avoid extra alignment imposed on arrays.
4472         * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
4473         DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
4474
4475         * mips.h: Clean up comments and spacing near MASKs.
4476         (TARGET_UNIX_ASM): Delete.
4477         (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
4478         MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
4479         values contiguous.
4480
4481 2000-08-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4482
4483         * c-common.c (print_char_table): Add entries for the X/Open '
4484         format flag (print decimals with locale's thousands grouping
4485         character).  Make %C expect wint_t.
4486         (check_format_info): If pedantic, warn when the %n$ operand
4487         number form is used.  Allow for the ' flag; warn about it if
4488         pedantic.
4489
4490 2000-08-05  Zack Weinberg  <zack@wolery.cumb.org>
4491
4492         * i386.h (FUNCTION_OK_FOR_SIBCALL):  Not OK if DECL's return
4493         type is a float mode, cfun->decl's return type is not, and
4494         TARGET_FLOAT_RETURNS_IN_80387.
4495
4496 2000-08-04  Andreas Schwab  <schwab@suse.de>
4497
4498         * cppmain.c (cb_def_pragma): Skip the first two tokens from the
4499         token list, which are always `#' and `pragma'.
4500
4501 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
4502
4503         * tree.c (tree_expr_nonnegative_p): Move to...
4504         * fold-const.c: ... here.  Also handle BIND_EXPR and RTL_EXPR.
4505         (rtl_expr_nonnegative_p): New.
4506         * tree.h: Add prototype for rtl_expr_nonnegative_p.
4507
4508         * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
4509         CONST_DOUBLE_CHAIN: Move to...
4510         * rtl.h: ...here.  Use XCINT/XCEXP.
4511
4512         * Makefile.in: Remove toplev.o from OBJS.  Add rule to make
4513         libbackend.a; add libbackend.a to STAGESTUFF.  Add BACKEND
4514         variable.  Use BACKEND when linking cc1, not OBJS.  Add BACKEND
4515         to VOL_FILES.
4516
4517         * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
4518
4519 2000-08-05  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4520
4521         * config/c4x/c4x.md (return_indirect_internal): New.
4522         * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
4523
4524 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4525
4526         * c-common.c (time_char_table): Mark up formats added in C99 and
4527         make other corrections.  %D and %g were added in C99.  %Og is an
4528         extension.  %EX is permitted.  %R, %T, %n, %r, %t were added in
4529         C99.  %e was added in C99.  %Oj is an extension.  %G and %z are in
4530         C99 rather than GNU extensions, but %OG and %Oz are extensions.
4531         %h was added in C99.  %C was added in C99.  %OY and %OC are
4532         extensions.  Add the C99 format %F.
4533         (check_format_info): If pedantic and not in C99 mode, warn for C99
4534         formats, %E and %O.
4535
4536 Fri Aug  4 23:01:58 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4537
4538         * function.c (schedule_fixup_var_refs): New function, broken out
4539         of put_reg_into_stack.
4540         (put_reg_into_stack): Use it.
4541         (put_var_into_stack): In CONCAT case, fixup up references for
4542         components only after fixing up references to the whole concat.
4543
4544 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
4545
4546         * alias.c (mark_constant_function): Use INSN_P.
4547         (init_alias_analysis): Likewise.
4548         * combine.c (combine_instructions): Use INSN_P.
4549         (can_combine_p): Likewise.
4550         (try_combine): Likewise.
4551         (distribute_notes): Likewise.
4552         (distribute_links): Likewise.
4553         * cse.c (cse_around_loop): Use INSN_P.
4554         (invalidate_skipped_block): Likewise.
4555         (cse_set_around_loop): Likewise.
4556         (cse_end_of_basic_block): Likewise.
4557         (delete_trivially_dead_insns): Likewise.
4558         * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
4559         (unshare_all_rtl_1): Likewise.
4560         (next_cc0_user): Likewise.
4561         (try_split make_insn_raw): Likewise.
4562         (remove_unnecessary_notes): Likewise.
4563         * final.c (shorten_branches): Use INSN_P.
4564         (leaf_renumber_regs): Likewise.
4565         (leaf_renumber_regs_insn): Likewise.
4566         * flow.c (find_label_refs): Use INSN_P.
4567         (verify_wide_reg): Likewise.
4568         (notice_stack_pointer_modification): Likewise.
4569         (count_or_remove_death_notes): Likewise.
4570         (verify_flow_info): Likewise.
4571         (clear_log_links): Likewise.
4572         * function.c (fixup_var_refs_insns): Use INSN_P.
4573         (compute_insns_for_mem): Likewise.
4574         * gcse.c (alloc_gcse_mem): Use INSN_P.
4575         (compute_sets): Likewise.
4576         (compute_hash_table): Likewise.
4577         (classic_gcse): Likewise.
4578         (cprop): Likewise.
4579         (insert_insn_end_bb): Likewise.
4580         (delete_null_pointer_checks_1): Likewise.
4581         * global.c (expand_preferences): Use INSN_P.
4582         (build_insn_chain): Likewise.
4583         * graph.c (node_data): Use INSN_P.
4584         * haifa-sched.c (priority): Use INSN_P.
4585         (rm_line_notes): Likewise.
4586         (rm_other_notes): Likewise.
4587         (find_insn_reg_weight): Likewise.
4588         (init_target_units): Likewise.
4589         (schedule_block): Likewise.
4590         (compute_block_forward_dependences): Likewise.
4591         (debug_dependencies): Likewise.
4592         (set_priorities): Likewise.
4593         * integrate.c (function_cannot_inline_p): Use INSN_P.
4594         (save_parm_insns): Likewise.
4595         (copy_insn_list): Likewise.
4596         * jump.c (mark_all_labels): Use INSN_P.
4597         (never_reached_warning): Likewise.
4598         * lcm.c (optimize_mode_switching): Use INSN_P.
4599         * local-alloc.c (validate_equiv_mem): Use INSN_P.
4600         (memref_used_between_p): Likewise.
4601         (update_equiv_regs): Likewise.
4602         (block_alloc): Likewise.
4603         (no_conflict_p): Likewise.
4604         * loop.c (scan_loop): Use INSN_P.
4605         (find_and_verify_loops): Likewise.
4606         (count_loop_regs_set): Likewise.
4607         (loop_reg_used_before_p): Likewise.
4608         (strength_reduce): Likewise.
4609         (recombine_givs): Likewise.
4610         (check_dbra_loop): Likewise.
4611         (load_mems): Likewise.
4612         (try_copy_prop): Likewise.
4613         * print-rtl.c (print_rtx): Use INSN_P.
4614         * recog.c (find_single_use): Use INSN_P.
4615         * reg-stack.c (stack_regs_mentioned): Use INSN_P.
4616         (next_flags_user): Likewise.
4617         (swap_rtx_condition): Likewise.
4618         * regmove.c (mark_flags_life_zones): Use INSN_P.
4619         (optimize_reg_copy_1): Likewise.
4620         (optimize_reg_copy_2): Likewise.
4621         (optimize_reg_copy_3): Likewise.
4622         (reg_is_remote_constant_p): Likewise.
4623         (fixup_match_2): Likewise.
4624         (regmove_optimize): Likewise.
4625         (fixup_match_1): Likewise.
4626         * regrename.c (build_def_use): Use INSN_P.
4627         (replace_reg_in_block): Likewise.
4628         (consider_use): Likewise.
4629         * reload.c (find_equiv_reg): Use INSN_P.
4630         * reload1.c (reload): Use INSN_P.
4631         (maybe_fix_stack_asms): Likewise.
4632         (calculate_needs_all_insns): Likewise.
4633         (reload_as_needed): Likewise.
4634         (emit_output_reload_insns): Likewise.
4635         (delete_address_reloads_1): Likewise.
4636         (reload_cse_regs_1): Likewise.
4637         (reload_combine): Likewise.
4638         (reload_cse_move2add): Likewise.
4639         * reorg.c (redundant_insn): Use INSN_P.
4640         (dbr_schedule): Likewise.
4641         * resource.c (find_dead_or_set_registers): Use INSN_P.
4642         (mark_target_live_regs): Likewise.
4643         * rtlanal.c (reg_used_between_p): Use INSN_P.
4644         (reg_referenced_between_p): Likewise.
4645         (reg_set_between_p): Likewise.
4646         (reg_set_p): Likewise.
4647         (single_set): Likewise.
4648         (multiple_sets): Likewise.
4649         (find_last_value): Likewise.
4650         (reg_set_last): Likewise.
4651         (find_reg_note): Likewise.
4652         (find_regno_note): Likewise.
4653         * sibcall.c (sequence_uses_addressof): Use INSN_P.
4654         * simplify-rtx.c (cselib_process_insn): Use INSN_P.
4655         * ssa.c (find_evaluations): Use INSN_P.
4656         (rename_block): Likewise.
4657         (rename_equivalent_regs): Likewise.
4658         * unroll.c (loop_find_equiv_value): Use INSN_P.
4659         (set_dominates_use): Likewise.
4660         * varasm.c (mark_constant_pool): Use INSN_P.
4661         (mark_constants): Likewise.
4662         * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
4663         (alphaev4_next_group): Likewise.
4664         (alphaev5_next_group): Likewise.
4665         * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
4666         (c4x_rptb_rpts_p): Likewise.
4667         * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
4668         * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
4669         (rs6000_adjust_priority): Likewise.
4670         * config/sh/sh.c (sh_loop_align): Use INSN_P.
4671         (machine_dependent_reorg): Likewise.
4672         (split_branches): Likewise.
4673         * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
4674
4675 Fri Aug  4 11:43:49 2000  John Wehle  (john@feith.com)
4676
4677         * combine.c (recog_for_combine): Remove the old notes
4678         prior to attempting to recognize the new pattern.
4679         (distribute_notes): Ignore REG_NONNEG notes.
4680
4681 2000-08-04  Chandrakala Chavva  <cchavva@redhat.com>
4682
4683         * varasm.c (output_constructor): Add .align 0 for packed vars.
4684
4685 2000-08-04  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
4686
4687         * configure.in: Use default thread_file even when enable_threads is
4688         yes or dce because hpux10.20 pa port uses MULTILIB implementation.
4689         * configure: Rebuilt.
4690
4691         * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
4692
4693 2000-08-04  Donn Terry (donnte@microsoft.com)
4694
4695         * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
4696
4697 2000-08-04  Mark Elbrecht  <snowball3@bigfoot.com>
4698
4699         * i386/x-djgpp: Delete code that conditionally modifies target_alias.
4700         Delete code that conditionally modifies 'version'.
4701         Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
4702         * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
4703         * gcc.c (main): Use it.
4704         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
4705         * prefix.c (update_path): Use it.
4706         * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
4707         (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
4708         (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
4709         code.
4710         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
4711         (SUBTARGET_SWITCHES): Adjust.
4712         (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
4713         defining.
4714         (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
4715
4716 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4717
4718         * c-common.h (flag_isoc94): Declare.
4719         * c-decl.c (flag_isoc94): Define.
4720         (c_decode_option): Set flag_isoc94 as appropriate.
4721         * c-common.c (T_PD, T_IM, T_UIM): Define.
4722         (format_char_info): Add tlen and jlen.
4723         (print_char_table): Add entries for %t and %j.  Allow %zn.  Allow
4724         %F.  Allow %lf.
4725         (scan_char_table): Add entries for %t and %j.  Allow %F.  Allow
4726         %l[.
4727         (time_char_table): Add NULL entries for %t and %j.
4728         (check_format_info): Allow for %t and %j.  Warn for %F if pedantic
4729         and not C99.  Warn for %lc, %ls and %l[ if pedantic and not C94.
4730         Warn for printf %lf if pedantic and not C99.  Don't warn for empty
4731         precision.  Allow precision argument to be unsigned int.  If
4732         pedantic, warn for %p passed an argument not a pointer to possibly
4733         qualified void or a possibly qualified character type, and for
4734         pointer targets of the wrong sign, except for character pointers.
4735
4736 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4737
4738         * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
4739         * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
4740         (wint_type_node): Define.
4741         * c-decl.c (WINT_TYPE): Define.
4742         (init_decl_processing): Create the wint_type_node type.
4743         * c-common.c (T_WI): Define.
4744         (print_char_table): Use T_WI for %lc format.
4745
4746 2000-08-04  Bruce Korb  <bkorb@gnu.org>
4747
4748         * fixinc/:  Verified that the MSDOS patch does not break
4749         the UNIX functionality and applied the next three patches
4750         from July:
4751
4752 2000-07-28  Eli Zaretskii  <eliz@is.elta.co.il>
4753
4754         * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
4755         output file with the temporary one by appending ".X" to generate
4756         the temporary fuile's name.  If the output file already has an
4757         extension, replace it with ".X".
4758
4759         * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
4760         not $DESTDIR, to find applyfix.  Use sprintf instead of snprintf;
4761         reallocate the command buffer while copying the command-line
4762         argument.  Redirect the output directly to the temporary file,
4763         instead of going through another temporary file.
4764         (process): Close the temporary file before unlinking it.
4765         (machine_matches) [__MSDOS__]: If the machine doesn't match, set
4766         the FD_SKIP_TEST flag.  Pay attention to the FD_MACH_IFNOT flag.
4767         (run_compiles): Pass p_fixd argument to machine_matches, as it
4768         expects.
4769
4770         * fixinc/fixincl.sh: Export ORIGDIR.  If $DJDIR is set in the
4771         environment, assume there are no symlinks in the include
4772         directory.  When cleaning up the DONE files, look for them
4773         case-insensitively.  Don't try to remove symlinks if they aren't
4774         there.
4775
4776         * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
4777         all callers changed.  Declare pz "const char *", to avoid compiler
4778         warnings.
4779
4780         * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
4781         Change prototype of make_raw_shell_str.
4782
4783 2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>
4784
4785         * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
4786         (initialize) [__MSDOS__]: Use tempnam.
4787         (initialize): Don't use SIGPIPE if it is not defined.
4788
4789         * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
4790         return stdout.
4791
4792 2000-07-25  Bruce Korb  <bkorb@gnu.org>
4793
4794         * fixinc/fix*.[ch]: substantially reworked to make it possible
4795         to run this program without using fork(2) or pipe(2) (i.e. in
4796         a DOS environment).
4797
4798 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4799
4800         * cppdefault.h (WINT_TYPE): Define.
4801         * cppinit.c (builtin_array): Define __WINT_TYPE__.
4802         * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
4803         * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
4804
4805 Fri Aug  4 06:53:46 2000  Clinton Popetz  <cpopetz@cygnus.com>
4806
4807         * (mips_legitimate_address_p): Don't allow register+offset
4808         if the offset is large and negative, and we are compiling
4809         for 64 bit registers.
4810
4811 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4812
4813         * gencodes.c (main): Define CODE_FOR_nothing as the last possible
4814         insn_code_number + 1.
4815
4816 2000-08-04  Kazu Hirata  <kazu@hxi.com>
4817
4818         * h8300.c (function_prologue): Rearrange code for conciseness.
4819         (function_epilogue): Likewise.
4820         * h8300.h (OK_FOR_U): Fix formatting.
4821
4822         * cse.c: Fix a comment typo. Fix formatting.
4823
4824 2000-08-03  Richard Henderson  <rth@cygnus.com>
4825
4826         * config/i386/i386.md (return_indirect_internal): New.
4827         * config/i386/i386.c (ix86_expand_epilogue): Use it.
4828
4829 2000-08-03  Zack Weinberg  <zack@wolery.cumb.org>
4830
4831         * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
4832         before the name.
4833         (lex_line): Glue @ onto the beginning of identifiers and
4834         string constants, in Objective-C mode.
4835         (output_token, spell_token): Handle CPP_OSTRING.
4836         (can_paste, maybe_paste_with_next): Handle pasting @ onto the
4837         beginning of a NAME or a STRING, in objc mode.
4838
4839         * cpplib.c (get_define_node): Do not permit identifiers that
4840         begin with @ to be #defined.
4841         * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
4842         * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
4843
4844         * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
4845         * c-tree.h (build_objc_string): Delete prototype.
4846         * objc/objc-tree.def: Delete OBJC_STRING_CST.
4847         * c-lex.c (yylex): Use build_string for all three kinds of strings.
4848
4849         * c-parse.in, objc/objc-act.c: Update commentary.
4850
4851 2000-08-03  Mark Mitchell  <mark@codesourcery.com>
4852
4853         * extend.texi: Fix typo in last change.
4854
4855         * extend.texi: Add commentary on statement-expressions and their
4856         interactions with C++.
4857
4858 2000-08-03  Nick Clifton  <nickc@cygnus.com>
4859
4860         * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
4861         * dwarf.h (LANG_JAVA): Change value to 0x000b.
4862
4863 2000-08-03  Anthony Green  <green@cygnus.com>
4864
4865         * dwarf2out.c (gen_compile_unit_die): Add java language support.
4866         (add_bound_info): Check for java language.
4867         (is_java): New function.
4868         * dwarfout.c (output_compile_unit_die): Ditto.
4869         * dwarf.h (dwarf_source_language): Add java source language type.
4870         * dwarf2.h (dwarf_source_language): Ditto.
4871
4872 Thu Aug  3 20:32:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4873
4874         * reg-stack.c (subst_stack_regs_pat):  Use replace_reg to swap
4875         operands.
4876
4877         * i386.c (ix86_expand_branch): Mode of comparison in
4878         IF_THEN_ELSE is VOIDmode.
4879
4880 Thu Aug  3 10:05:53 2000  Akiko Matsushita <matusita@sra.co.jp>
4881
4882         * gengenrtl.c, rtl.c: Avoid #elif.
4883
4884 2000-08-03  Michael Poole  <poole@troilus.org>
4885
4886         * tm.texi (Register Classes): Clarify order of sub-initializers
4887         in REG_CLASS_CONTENTS.
4888
4889 Thu Aug  3 15:53:03 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4890
4891         From SAITOH Masanobu:
4892         * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
4893
4894 2000-08-03  David Billinghurst  <David.Billinghurst@riotinto.com.au>
4895
4896         * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
4897         is not supported by tradcpp and isn't actually needed for cygwin.
4898
4899 2000-08-03  Kazu Hirata  <kazu@hxi.com>
4900
4901         * h8300.c: Fix a comment typo.
4902         * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
4903
4904         * jump.c: Fix formatting.
4905
4906         * toplev.c: Fix formatting.
4907
4908 Thu Aug  3 01:05:32 2000  Jeffrey A Law  (law@cygnus.com)
4909
4910         * flow.c (find_auto_inc): Verify that we've got a REG before
4911         peeking at its regno.  Fail, don't abort if we can't find
4912         the increment of the desired register.
4913
4914         * pa.md (shadd height reduction patterns/splitters): Remove.
4915
4916 2000-08-02  Jim Wilson  <wilson@cygnus.com>
4917
4918         * config/ia64/ia64-protos.h (flag_ssa): Declare.
4919         * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
4920
4921 2000-08-02  Mark Mitchell  <mark@codesourcery.com>
4922
4923         * dce.c: Remove all uses of assert.
4924         * dwarf2out.c: Likewise.
4925         * dwarfout.c: Likewise.
4926         * ssa.c: Likewise.
4927
4928 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
4929
4930         * gcc.h (lang_specific_driver): Constify second argument.
4931         * gcc.c (translate_options, process_command, main): Likewise.
4932         Constify variables to match.  Cast second argument to
4933         pexecute.
4934
4935         * cppspec.c, gccspec.c: Adjust type of second argument to
4936         lang_specific_driver, and update code as necessary.
4937
4938 2000-08-02  Jakub Jelinek  <jakub@redhat.com>
4939
4940         * loop.c (scan_loop): Ensure update_end label does not
4941         go away until reg_scan_update is run.
4942
4943 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
4944
4945         * c-common.h: Prototype min_precision and c_build_qualified_type here...
4946         * c-tree.h: ... not here.
4947         * errors.h: Prototype fancy_abort.
4948
4949         * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
4950         HOST_BITS_PER_WIDE_INT == 64 ifdef block.
4951         * regrename.c (regrename_optimize): Make control flow explicit.
4952         (replace_reg_in_block): Initialize reg_use to 0.
4953
4954         * i386.c (legitimate_address_p): Rename error label to
4955         report_error to avoid namespace clash.
4956
4957 2000-08-02  Kazu Hirata  <kazu@hxi.com>
4958
4959         * fold-const.c: Fix formatting.
4960
4961 Wed Aug  2 16:26:15 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4962
4963         * i386.c (legitimate_address_p): Accept other bases than
4964         pic_offset_table_rtx for GOTOFF constructs.
4965
4966 Wed Aug  2 15:59:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4967
4968         * i386.md (shift to lea splitter): Use const_int_operand.
4969
4970 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
4971
4972         * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
4973         cppspec.c: Do not use 'legal' or 'illegal' in error messages
4974         and comments.
4975
4976         * cppmain.c (cb_define, cb_undef): Don't generate any output
4977         if not done_initializing.
4978         * cpplex.c (maybe_paste_with_next): When the token after a ##
4979         is an omitted rest argument, only delete the token before it
4980         if that token is a comma.  Do not warn about bogus token
4981         pastes for , ## rest_arg.
4982
4983         * cpp.texi: Update.
4984         * cpp.1: Regenerate.
4985
4986 2000-08-02  Fred Fish  <fnf@be.com>
4987
4988         * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
4989         when user gives -p option.  Add init_term_dyn.o for BeOS 5.0
4990         and later.
4991
4992         * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
4993         Be directories to search path.
4994
4995         Remove support for __declspec(dllimport) and __declspec(dllexport).
4996         This is leftover cruft from the earlier BeOS gcc port when BeOS
4997         used Microsoft's PE object file format.
4998         * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
4999         * config/i386/t-beos (winnt.o): Remove Makefile frag.
5000         * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
5001         (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
5002         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
5003         (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
5004         (REDO_SECTION_INFO_P): Remove.
5005         (ASM_EXPORT_DECL): Remove.
5006         (ASM_DECLARE_FUNCTION_NAME): Remove.
5007         (ASM_DECLARE_OBJECT_NAME): Remove.
5008         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
5009         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
5010         (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
5011         (STRIP_NAME_ENCODING): Remove.
5012
5013         Remove support for obsolete version of BeOS that is no longer
5014         supported by Be.
5015         * configure.in (i*86-*-beospe*): Remove.
5016         * config/i386/beos-pe.h: Remove.
5017
5018 2000-08-01  Jeffrey Oldham  <oldham@codesourcery.com>
5019             Mark Mitchell <mark@codesourcery.com>
5020
5021         * Makefile.in (OBJS): Added dce.o.
5022         (ssa.o): Updated target to include ssa.h.
5023         (flow.o): Likewise.
5024         (toplev.o): Likewise.
5025         (dce.o): Created target.
5026         * basic-block.h: Added comments.
5027         (INVALID_BLOCK): Added definition.
5028         (connect_infinite_loops_to_exit): Added declaration.
5029         Moved SSA declarations to ssa.h.
5030         * flow.c: Added inclusion of ssa.h.
5031         (struct depth_first_search_dsS, depth_first_search_ds):
5032         Added definitions.
5033         (compute_immediate_postdominators): Added definition.
5034         (connect_infinite_loops_to_exit): Likewise.
5035         (flow_dfs_compute_reverse_init): Likewise.
5036         (flow_dfs_compute_reverse_add_bb): Likewise.
5037         (flow_dfs_compute_reverse_execute): Likewise.
5038         (flow_dfs_compute_reverse_finish): Likewise.
5039         * rtl.h (rtx/in_struct): Added use to determine insn necessity.
5040         (LABEL_P): Added definition.
5041         (JUMP_P): Likewise.
5042         (NOTE_P): Likewise.
5043         (BARRIER_P): Likewise.
5044         (JUMP_TABLE_DATA_P): Likewise.
5045         (INSN_DEAD_CODE_P): Likewise.
5046         * ssa.c: Replaced inclusions with ssa.h inclusion.
5047         (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
5048         (rename_registers): Removed unnecessary variables.
5049         * ssa.h: Created by moving declarations from ssa.c and
5050         basic-block.h.
5051         * timevar.def: Defined TV_DEAD_CODE_ELIM.
5052         * toplev.c: Added ssa.h inclusion.
5053         (dump_file_index): Added DFI_dce.
5054         (dump_file): Added "dce" entry.
5055         Defined flag_ssa.
5056         (f_options): Added dce entry.
5057         * invoke.texi: Document -fdce.  Emphasize experimental status of
5058         -fssa.
5059         * dce.c: New file.
5060
5061 2000-08-01  Zack Weinberg  <zack@wolery.cumb.org>
5062
5063         * cpperror.c (v_message): Split into _cpp_begin_message and
5064         v_message macro.  All callers updated.
5065         (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
5066         checks here.
5067
5068         * cppfiles.c (cpp_syshdr_flags): New function.
5069         (read_include_file): Don't call cpp_output_tokens.  Call
5070         enter_file hook.
5071         * cppinit.c (dump_macros_helper): Moved to cppmain.c.
5072         (cpp_reader_init): Don't initialize token_buffer.  Call
5073         _cpp_init_internal_pragmas.
5074         (cpp_cleanup): Don't clear token_buffer.
5075         (cpp_start_read): Don't worry about output from -D processing.
5076         Don't call cpp_output_tokens.
5077         (cpp_finish): Don't dump macros here.  Don't call
5078         cpp_output_tokens.
5079         * cppmacro.c (_cpp_dump_definition): Rename
5080         cpp_dump_definition.  Write directly to a FILE *.
5081         (dump_funlike_macro): Delete.
5082         (dump_macro_args): New.
5083
5084         * cpplex.c (TOKEN_LEN): Convert to inline function.
5085         (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
5086         cpp_scan_line, _cpp_dump_list): Delete.
5087         (cpp_printf, cpp_output_list): New.
5088         (output_line_command): Don't worry about entering or leaving files.
5089         (cpp_scan_buffer): Just output each token as we hit it.
5090         (process_directive): Don't call cpp_output_tokens.
5091         (_cpp_glue_header_name): Don't use token_buffer.
5092         (output_token, dump_param_spelling): Write directly to a FILE *.
5093
5094         * cpplib.c (pass_thru_directive, dump_macro_name,
5095         pragma_dispatch, do_pragma_gcc): Delete.
5096         (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
5097         do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
5098         functions.
5099         (do_error, do_warning, pragma_dependency): Call
5100         _cpp_begin_message, then cpp_output_list.
5101         (cpp_register_pragma, cpp_register_pragma_space,
5102         _cpp_init_internal_pragmas): New.
5103         (do_pragma): Walk the pragmas table here.
5104         (do_pragma_once, do_pragma_poison, do_pragma_system_header,
5105         do_pragma_dependency): Return void.
5106         (do_pragma_implementation): Moved to cppmain.c.
5107
5108         * cpplib.h: Update prototypes.
5109          (struct cpp_reader): Remove printer, token_buffer,
5110         token_buffer_size, and limit.  Add struct cb, and pragmas.
5111         (struct cpp_printer): Remove last_id and written.
5112         (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
5113         CPP_ADJUST_WRITTEN): Delete.
5114         * cpphash.h: Update prototypes.
5115         (ufputs): New wrapper.
5116
5117         * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
5118         cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
5119         (main): Set up callbacks.  Register #pragma implementation.
5120         Dump macros from here.
5121
5122 2000-08-01  Geoff Keating  <geoffk@cygnus.com>
5123
5124         * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
5125         * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
5126         * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
5127         insns if they have a REG_MAYBE_DEAD note attached.
5128         * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
5129         (rs6000_emit_load_toc_table): TOC loads may go dead.
5130
5131 2000-08-01  Jim Wilson  <wilson@cygnus.com>
5132
5133         * config/ia64/ia64.c (ia64_function_arg): Fix last change.  Verify
5134         type exists before using it.  Use number of words as alignment
5135         otherwise.
5136         (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
5137         ia64_va_arg): Propagate ia64_function_args changes here.
5138
5139 2000-08-01  Richard Henderson  <rth@cygnus.com>
5140
5141         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
5142         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5143
5144 2000-08-01  Bernd Schmidt  <bernds@cygnus.co.uk>
5145
5146         From Joern Rennecke:
5147         * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
5148         * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
5149         unless TARGET_SH3E is set.
5150         * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
5151
5152         * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
5153         (ashlsi3_std): New pattern.
5154         (ashlsi3 expander): Use it for TARGET_SH3.
5155         * sh.c (gen_ashift): Use it instead of ashlsi3_k.
5156
5157 Tue Aug  1 12:34:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5158
5159         * loop.c (canonicalize_condition):  Use destination, not source to
5160         determine SET's mode.
5161
5162 2000-07-31  Mark Mitchell  <mark@codesourcery.com>
5163
5164         * flow.c (clear_log_links): Fix typo.
5165
5166 Mon Jul 31 22:19:24 2000  Jeffrey A Law  (law@cygnus.com)
5167
5168         * loop.c (check_dbra_loop): Make change from July 17, 2000 work
5169         on targets which need more than one insn for a compare/cbranch
5170         operation.
5171
5172 2000-07-31  Jim Wilson  <wilson@cygnus.com>
5173
5174         * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
5175         when computing offset.
5176
5177 Mon Jul 31 20:35:50 2000  Denis Chertykov  <denisc@overta.ru>
5178
5179         * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
5180
5181 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
5182
5183         * flow.c (clear_log_links): Nuke global_live_at_start and
5184         global_live_at_end data, since if the log_links stuff is invalid
5185         so is global_live_at_*.
5186
5187 2000-07-31  Richard Henderson  <rth@cygnus.com>
5188
5189         * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
5190
5191 2000-07-31  Jakub Jelinek  <jakub@redhat.com>
5192
5193         * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
5194         (_cpp_get_token): Don't macro expand a just pasted token if it
5195         was pasted at no_expand_level.
5196
5197 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
5198
5199         * cppmacro.c (find_param, count_params, save_expansion):
5200         Permit 'defined' as a macro parameter name.
5201
5202 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
5203
5204         * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
5205         xcpp to cpp throughout.
5206         (native): Remove unnecessary dependency on cpp.
5207
5208         * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
5209         tradcpp to tradcpp0.
5210         (.i spec): Add missing output-file spec to cc1 command line.
5211         * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
5212
5213 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
5214
5215         * c-decl.c (mesg_implicit_function_declaration): Init to -1.
5216         (implicit_decl_warning): New function.
5217         (implicitly_declare): Use it.
5218         * c-typeck.c (build_external_ref): Use implicit_decl_warning
5219         to complain about implicit decls of builtins.
5220
5221         * c-lang.c (lang_init): Set mesg_implicit_function_declaration
5222         based on pedantic && flag_isoc99, if not already set.
5223         * c-tree.h: Declare mesg_implicit_function_declaration.
5224         Prototype implicit_decl_warning.
5225
5226 2000-07-30  Jeffrey D. Oldham  <oldham@codesourcery.com>
5227
5228         * Makefile.in (ssa.o): Updated header files in dependences.
5229         * basic-block.h: Added compute_immediate_postdominators declaration.
5230         * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
5231         definition.
5232         * flow.c (compute_immediate_dominators): Updated comment.
5233         (compute_immediate_postdominators): Added definition.
5234         * rtl.h (HARD_REGISTER_P): Added definition.
5235         * ssa.c: Include additional header files.
5236         (assert): Added definition.
5237         (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
5238         include select hard registers.
5239         (ssa_rename_to_insert): Likewise.
5240         (ssa_rename_from_initialize): Likewise.
5241         (ssa_rename_from_lookup): Likewise.
5242         (original_register): Likewise.
5243         (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
5244         include select hard reigsters.
5245         (ssa_rename_from_traverse): Likewise.
5246         (ssa_rename_from_free): Likewise.
5247         (ssa_rename_from_print): Likewise.
5248         (ssa_rename_from_print_1): Likewise.
5249         (ssa_rename_from_hash_function): Likewise.
5250         (ssa_rename_from_equal): Likewise.
5251         (ssa_rename_from_delete): Likewise.
5252         (simplify_to_immediate_dominators): Removed in favor of
5253         flow.c:compute_immediate_dominators.
5254         (find_evaluations_1): Modified to work with hard registers.
5255         (insert_phi_node): Likewise.
5256         (insert_phi_nodes): Likewise.
5257         (struct rename_set_data): Updated prev_reg comment.
5258         (create_delayed_rename): Modified to work with hard registers.
5259         (RENAME_NO_RTX): Updated comment.
5260         (apply_delayed_renames): Modified to work with hard registers.
5261         (rename_insn_1): Likewise and added handling of CLOBBER rtls.
5262         (rename_block): Updated to use revised ssa_rename_to interface.
5263         (rename_registers): Updated to use revised ssa_rename_to and
5264         ssa_rename_from interface.
5265         (convert_to_ssa): Revised to use compute_immediate_dominators and
5266         deal with hard registers.
5267         (make_regs_equivalent_over_bad_edges): Modified to work with hard
5268         registers.  Added check for illegal unification of hard register.
5269         (make_equivalent_phi_alternatives_equivalent): Modified to work
5270         with hard registers.
5271         (compute_conservative_reg_partition): Likewise.
5272         (coalesce_if_unconflicting): Modified to work with hard registers
5273         and check for conflicting hard registers.
5274         (mark_phi_and_copy_regs): Revised loop to work only on pseudo
5275         registers.
5276         (rename_equivalent_regs_in_insn): Modified to work with hard
5277         registers.
5278         (record_canonical_element_1): Added definition.
5279         (check_hard_regs_in_partition): Added definition.
5280         (convert_from_ssa): Added data structure deallocation and check
5281         for illegal hard register unification.
5282         (conflict_hard_regs_p): Added definition.
5283         * toplev.c (rest_of_compilation): Added comment.
5284
5285 2000-07-31  Anthony Green  <green@redhat.com>
5286
5287         * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
5288
5289 2000-07-31  Jason McMullan  <jmcmullan@linuxcare.com>
5290
5291         * builtins.c (expand_builtin_apply): Don't defer pop during
5292         argument setup.
5293
5294 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5295
5296         * calls.c (combine_pending_stack_adjustment_and_call): Only use
5297         preferred_unit_stack_boundary when it is > 1.
5298
5299 2000-07-31  Joseph S. Myers  <jsm28@cam.ac.uk>
5300
5301         * c-common.c (init_function_format_info): Add C99 format functions
5302         in C99 mode.
5303
5304         * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
5305         void' or 'register void' as being the special case of 'void' alone
5306         in a parameter list.
5307
5308         * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
5309         discarding qualifiers into a plain warning.
5310
5311 2000-07-31  Kazu Hirata  <kazu@hxi.com>
5312
5313         * combine.c: Fix formatting.
5314
5315         * h8300.md: Fix formatting.
5316
5317         * local-alloc.c: Fix formatting.
5318
5319         * h8300.c (get_shift_alg): Remove the variable alg.
5320         (emit_a_shift): Rearrange code to improve readability.
5321
5322         * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
5323
5324         * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
5325         HImode on all architectures and a combination of HImode and SImode
5326         on H8/300H and H8/S.
5327
5328         * h8300.c (split_adds_subs): Rearrange code for conciseness.
5329
5330 Mon Jul 31 12:27:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5331
5332         * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
5333         in my last checkin.
5334
5335 Mon Jul 31 10:41:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5336
5337         * recog.c (extract_insn): Set operand_mode according to
5338         operand if match_operand is VOIDmode.
5339
5340 Mon Jul 31 10:36:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5341
5342         * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
5343
5344 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
5345
5346         * c-parse.in (extdefs): Call ggc_collect between external
5347         definitions.
5348
5349 2000-07-30  Michael Hayes  <mhayes@cygnus.com>
5350             Richard Henderson  <rth@cygnus.com>
5351
5352         * Makefile.in (OBJS): Add doloop.o.
5353         * doloop.c: New file.
5354
5355         * final.c (insn_current_reference_address): Return 0 before final.
5356         * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
5357         * jump.c (any_uncondjump_p): Likewise.
5358         * loop.c (indirect_jump_in_function): Make static.
5359         (strength_reduce): Call doloop_optimize.
5360         (insert_bct, instrument_loop_bct): Remove.
5361         * loop.h (doloop_optimize): Prototype.
5362         * recog.c (split_all_insns): Split all INSN_P.
5363         * toplev.c (flag_branch_on_count_reg): Default on.
5364
5365         * config/c4x/c4x.c (c4x_optimization_options): Don't set
5366         flag_branch_on_count_reg.
5367         * config/i386/i386.c (override_options): Likewise.
5368         * config/rs6000/rs6000.c (optimization_options): Likewise.
5369
5370         * config/i386/i386.md (decrement_and_branch_on_count): Remove.
5371         (doloop_end): New.
5372         (dbra_ge): Remove, as well as all it's splitters.
5373
5374         * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
5375         (doloop_end): New.
5376
5377         * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
5378         (ia64_register_move_cost): Declare.
5379         * config/ia64/ia64.c (ar_lc_reg_operand): New.
5380         (struct ia64_frame_info): Add ar_size.
5381         (ia64_compute_frame_size): Set it.
5382         (save_restore_insns): Save and restore ar.lc.
5383         (ia64_register_move_cost): New, moved from header file.  Handle
5384         application registers.
5385         (REG_AR_PFS, REG_AR_EC): Remove.  Replace with AR_*_REGNUM numbers.
5386         (emit_insn_group_barriers): Special case doloop_end_internal.
5387         (ia64_epilogue_uses): Mark ar.lc live at end.
5388         * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
5389         (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
5390         (FIRST_PSEUDO_REGISTER): Make room.
5391         (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
5392         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
5393         (REG_ALLOC_ORDER): Update.
5394         (HARD_REGNO_MODE_OK): Update.
5395         (REGISTER_NAMES): Update.
5396         (enum reg_class): Add AR_M_REGS and AR_I_REGS.
5397         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
5398         (REGNO_REG_CLASS): Update.
5399         (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
5400         (REGISTER_MOVE_COST): Move out of line.
5401         (PREDICATE_CODES): Update.
5402         * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
5403         (addsi3_plus1_alt, adddi3_plus1_alt): New.
5404         (shladd_elim splitter): Allow constants in the predicate.
5405         (doloop_end, doloop_end_internal): New.
5406
5407 2000-07-30  Richard Henderson  <rth@cygnus.com>
5408
5409         * genattrtab.c (struct insn_def): Add lineno member.
5410         (struct insn_ent): Likewise.
5411         (struct attr_desc): Likewise.
5412         (struct delay_desc): Likewise.
5413         (struct function_unit_op): Likewise.
5414         (struct function_unit): Likewise.
5415         (check_attr_value): Use message_with_line.
5416         (check_defs): Likewise.
5417         (expand_units): Likewise.
5418         (check_attr_test): Take a lineno argument.
5419         (gen_attr): Likewise.
5420         (gen_insn): Likewise.
5421         (gen_delay): Likewise.
5422         (gen_unit): Likewise.
5423         (main): Give it to them.
5424         (convert_set_attr_alternative): Take an insn_def argument
5425         instead of num_alt and insn_index.
5426         (convert_set_attr): Likewise.
5427         (write_test_expr): Protect INSN_ADDRESSES load
5428         with INSN_ADDRESSES_SET_P.
5429
5430 2000-07-30  Richard Henderson  <rth@cygnus.com>
5431
5432         * flow.c (init_propagate_block_info): Use pc_set.
5433
5434 Sun Jul 30 20:58:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5435
5436         * i386.md (*lea_general_[123]) New insns and splits.
5437         (addsi3 to lea splitter): Handle other modes too.
5438         (shlsi3 to lea splitter): Likewise.
5439         (addhi_1_lea, shlhi_1_lea): New patterns.
5440         (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
5441
5442 Sun Jul 30 20:51:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5443
5444         * recog.c (general_operand, nonimmediate_operand): Accept
5445         any mode for VOIDmode CONSTANT_P operands.
5446
5447 Sun Jul 30 20:42:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5448
5449         * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
5450         instead of replace_rtx.
5451         * recog.c (validate_replace_rtx_subexp): New function.
5452         * recog.h (validate_replace_rtx_subexp): Declare.
5453
5454 Sun Jul 30 20:38:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5455
5456         * combine.c (simplify_set, make_extraction, make_compound_operation
5457         make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
5458         as force_to_mode argument.
5459
5460 Sun Jul 30 20:30:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5461
5462         * combine.c (if_then_else_cond): Be sure that mode fits in
5463         HOST_WIDE_INT.
5464
5465 Sun Jul 30 20:27:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5466
5467         * combine.c (record_promoted_value):  Allow bitsize of mode
5468         to be equivalent to HOST_BITS_PER_WISE_INT.
5469
5470 Sun Jul 30 20:25:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5471
5472         * function.c (assign_stack_local_1, assign_stack_temp_for_type):
5473         Do not call gen_mode_alignment when mode is BLKmode.
5474
5475 Sun Jul 30 20:21:54 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5476
5477         * loop.c (express_from_1): Fix call of simplify_gen_binary.
5478
5479 Sun Jul 30 20:08:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5480
5481         * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
5482         VOIDmode implies both operands to be VOIDmode.
5483         (simplify_ternary_operation): Compute properly the mode of comparison.
5484         * combine.c (combine_simplify_rtx): Likewise.
5485
5486 2000-07-25  Michael Hayes  <mph@paradise.net.nz>
5487
5488         * basic-block.h (struct loops): New field rc_order.
5489         * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
5490         (flow_loops_free): Free rc_order.
5491         (flow_depth_first_order_compute): New parameter rc_order.
5492         (flow_loops_find): Allocate rc_order and swap usage with
5493         dfs_order.
5494
5495 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5496            Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5497
5498         * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
5499         (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
5500         (nodb_call, return_from_epilogue): Likewise.
5501         (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
5502         * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
5503         * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
5504         (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
5505         (c4x_valid_type_attribute_p): Likewise.
5506         * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
5507         (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
5508
5509 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5510
5511         * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
5512         and loadhi_big_constant if applicable.
5513         * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
5514         and add new splitter.s
5515
5516 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5517
5518         * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
5519
5520 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5521
5522         * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
5523
5524 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5525
5526         * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
5527
5528 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5529
5530         * config/c4x/libgcc.S (divqf3): Improve accuracy.
5531
5532 2000-07-27  Mark Mitchell  <mark@codesourcery.com>
5533
5534         Put phi nodes after NOTE_INSN_BASIC_BLOCK.
5535         * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
5536         * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
5537         (get_prev_bb_note): Likewise.
5538         (remove_scope_notes): Likewise.
5539         * flow.c (commit_one_edge_insertion): Likewise.
5540         (merge_blocks_nomove): Likewise.
5541         (verify_flow_info): Likewise.
5542         * gcse.c (insert_insn_end_bb): Likewise.
5543         * reg-stack.c (emit_swap_insn): Likewise.
5544         * ssa.c (first_insn_after_basic_block_note): New function.
5545         (insert_phi_node): Use it.
5546         (rename_block): Likewise.
5547         (eliminate_phi): Likewise.
5548         (make_regs_equivalent_over_bad_edges): Likewise.
5549         (make_equivalent_phi_alternatives_equivalent): Likewise.
5550         (for_each_successor_phi): Likewise.
5551         (convert_from_ssa): Modify phi-node deletion algorithm.
5552
5553 2000-07-29  Andreas Jaeger  <aj@suse.de>
5554
5555         * configure.in (mips*-*-linux*): Use mips*el to check for little
5556         endian MIPS, add tmake_file.
5557
5558         * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
5559         (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
5560         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
5561
5562 2000-07-28  Richard Henderson  <rth@cygnus.com>
5563
5564         * config/ia64/ia64.c (ia64_print_operand): Fix typos.
5565         Sign extend mode size before negating.
5566
5567 2000-07-28  Richard Henderson  <rth@cygnus.com>
5568
5569         * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
5570
5571 2000-07-28  Bernd Schmidt  <bernds@cygnus.co.uk>
5572
5573         * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
5574         (cse_insn): Likewise.
5575         (addr_affects_sp_p): Likewise.
5576         * expr.c (move_by_pieces): Likewise.
5577         (clear_by_pieces): Likewise.
5578         * gcse.c (oprs_unchanged_p): Likewise.
5579         * haifa-sched.c (sched_analyze_2): Likewise.
5580         * recog.c (offsettable_address_p): Likewise.
5581         * regclass.c (record_address_regs): Likewise.
5582         * reload.c (find_reusable_reload): Likewise.
5583         (push_reload): Likewise.
5584         (operands_match_p): Likewise.
5585         (decompose): Likewise.
5586         (find_reloads_address_1): Likewise.
5587         (find_inc_amount): Likewise.
5588         * reload1.c (elimination_effects): Likewise.
5589         * resource.c (mark_set_resources): Likewise.
5590         * flow.c (attempt_auto_inc): New function; mostly broken out
5591         of find_auto_inc.
5592         (find_auto_inc): Split into two functions and enhanced to
5593         generate POST_MODIFY.
5594         * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
5595         * rtl.h (count_all_occurrences):  Declare.
5596         (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
5597         defined.
5598         * rtlanal.c (count_all_occurrences): New function.
5599         * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
5600         HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
5601
5602         * config/ia64/ia64-protos.h (destination_operand): Declare.
5603         * config/ia64/ia64.c (destination_operand): New function.
5604         (ia64_print_operand): Handle POST_MODIFY.
5605         (rtx_needs_barrier): Likewise.
5606         * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
5607         (HAVE_POST_MODIFY_REG): Define to 1.
5608         (MAX_REGS_PER_ADDRESS): Change to 2.
5609         (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
5610         (LEGITIMATE_ADDRESS_REG): New helper macro.
5611         (LEGITIMATE_ADDRESS_DISP): Likewise.
5612         (PREDICATE_CODES): Add entry for destination_operand.
5613         * config/ia64/ia64.md (all mov patterns): Use destination_operand
5614         predicate for operand 0.
5615
5616 2000-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5617
5618         * dwarf2out.c: Indent #error directive.
5619
5620         * gbl-ctors.h: Fix typo in comment.
5621         (__do_global_ctors): Prototype.
5622
5623         * gcse.c (record_one_set, pre_delete): Remove unused variables.
5624
5625         * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
5626         (print_operand): Initialize variable `t'.
5627
5628 2000-07-27  Aldy Hernandez  <aldyh@redhat.com>
5629
5630         * config/arm/arm.md ("call_value"): removed constraints.
5631         Constraints are ignored in expanders.
5632         (*call_value_reg): split =rf into various constraints.
5633         (*call_value_mem): same
5634         (*call_value_symbol): same
5635         (*sibcall_value_insn): same
5636
5637 2000-07-28  Philipp Thomas  <pthomas@suse.de>
5638
5639         * install.texi (--enable-nls): Change the description of the NLS
5640         related configure options to match the current state.
5641         (--with-included-gettext): Likewise.
5642         (--enable-maintainer-mode): New description added.
5643         * extend.texi (-fstrict-prototype): Add missing '.'.
5644
5645 2000-07-27  Jim Wilson  <wilson@cygnus.com>
5646
5647         * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
5648         DECL_INITIAL (decl) == NULL_TREE.
5649
5650 2000-07-27  Alexandre Oliva  <aoliva@redhat.com>
5651
5652         * Makefile.in (INSN_ATTR_H): New macro.  Replace all dependencies
5653         on insn-attr.h with it.
5654         * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
5655         * insn-addr.h: New header.
5656         (insn_addresses_): Renamed from insn_addresses.
5657         (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
5658         INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
5659         INSN_ADDRESSES_NEW): New macros.
5660         * genattrtab.c (write_test_expr): Use new macros.
5661         * final.c (insn_addresses, init_insn_lengths): Likewise.
5662         (align_fuzz, shorten_branches): Likewise.
5663         (final): Likewise.  Do not reject new insns if their addresses
5664         have been added to INSN_ADDRESSES.
5665         * config/arm/arm.c, config/avr/avr.c: Use new macros.
5666         * config/h8300/h8300.c, config/i370/i370.c: Likewise.
5667         * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
5668         * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
5669         * config/sh/sh.c: Likewise.
5670         (output_branchy_insn): Use INSN_ADDRESSES_NEW.
5671
5672         * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
5673
5674 2000-07-27  Andrew Cagney  <cagney@b1.cygnus.com>
5675
5676         * gcc.c (struct prefix_list): Add member priority.
5677         (enum path_prefix_priority): Declare.
5678         (add_prefix): Replace ``first'' with ``priority''.  Append new
5679         entry but keep list in priority order.
5680         (process_command): Update.  Pass PREFIX_PRIORITY_B_OPT or
5681         PREFIX_PRIORITY_LAST to add_prefix.
5682         (process_command): Move include kludge - foo/stageN - to before
5683         foo/include.
5684
5685 2000-07-27  Jason Merrill  <jason@redhat.com>
5686
5687         * dwarf2out.c (gen_typedef_die): Abort if we get identical
5688         TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
5689
5690 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
5691
5692         * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
5693         * tree.h (get_alias_set, lang_get_alias_set): Prototype.
5694
5695 2000-07-27  Joseph S. Myers  <jsm28@cam.ac.uk>
5696
5697         * c-decl.c (finish_function): Don't treat 'main' specially unless
5698         flag_hosted.  In C99 mode, return 0 from 'main' unless
5699         DEFAULT_MAIN_RETURN is otherwise defined.
5700
5701         * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
5702         parameters defaulting to int in an old-style function definition.
5703
5704 2000-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5705
5706         * c-parse.in (string): For -Wtraditional, warn about string
5707         concatenation only once per line.
5708
5709 Thu Jul 27 09:25:17 2000  Akiko Matsushita  <matusita@sra.co.jp>
5710
5711         * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
5712         for HI-UX/WE2 systems.
5713
5714 2000-07-24  Bruce Korb  <bkorb@gnu.org>
5715
5716         * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
5717         defining the __xxx_TYPE__ macros.
5718         * fixincl/fixincl.tpl(gnu_type_map): now obsolete
5719         * fixincl/fixlib.h: don't need to include "tm.h" anymore
5720         * fixincl/inclhack.def(type_map): now obsolete
5721
5722 Thu Jul 27 11:54:17 2000  Andrew Cagney  <cagney@b1.cygnus.com>
5723
5724         * cpp.texi: Append a trailing full-stop to xrefs where needed.
5725
5726 2000-07-26  Dave Pitts  <dpitts@cozx.com>
5727
5728         * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
5729         routine constants.
5730         (mvs_hash_alias): New function.
5731         (mvs_add_alias): Change argument spacing.
5732         (mvs_need_alias): Change aliasing criteria. Added documentation.
5733         (mvs_get_alias): Change to use hashed name. The hashed name prevents
5734         CSECT name collisions.
5735         (mvs_check_alias): Likewise.
5736         (handle_pragma): Change documentation.
5737         * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
5738         mode from SImode to DImode.
5739         (iorhi3): Changed LTORG size for insn.
5740
5741 Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
5742
5743         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
5744         mem if the address is a mode_dependent_address_p.
5745
5746 2000-07-26  Kazu Hirata  <kazu@hxi.com>
5747
5748         * h8300.c (print_operand): Print ":8" when the 'R' operand is
5749         suitable for 8-bit absolute.
5750         * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
5751         (OK_FOR_U): Add a case for the 8-bit constant address on the
5752         H8/300H.
5753
5754 Wed Jul 26 19:26:21 2000  Hans-Peter Nilsson  <hp@axis.com>
5755
5756         * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
5757         && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
5758         ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
5759         lack of implemented alignment.
5760
5761 2000-07-26  Geoffrey Keating  <geoffk@cygnus.com>
5762
5763         * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
5764         cross-compiling between 64-bit and 32-bit machines.
5765
5766 2000-07-27  Richard Henderson  <rth@cygnus.com>
5767
5768         * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
5769         (movhicc_astep, movhi_internal_astep): New.
5770         (movsicc_astep, movsi_internal_astep): New.
5771         (movdicc_astep, movdi_internal_astep): New.
5772         (movsfcc_astep, movsf_internal_astep): New.
5773         (movdfcc_astep, movdf_internal_astep): New.
5774         (movxfcc_astep, movxf_internal_astep): New.
5775         (cmovdi_internal_astep, cmovsi_internal_astep): New.
5776         Unify the cmov[ds]i splitters.
5777
5778 2000-07-27  Rodney Brown  <RodneyBrown@pmsc.com>
5779
5780         * real.c (asctoeg): Rename `error' label to unexpected_char_error
5781
5782 2000-07-26  Nick Clifton  <nickc@cygnus.com>
5783
5784         * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
5785         __arm__.  Allow it to be defined by CPP_ISA_SPEC in arm.h
5786
5787         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
5788         well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
5789
5790 2000-07-26  Alexandre Oliva  <aoliva@redhat.com>
5791
5792         * c-decl.c (finish_enum): Convert enumerations that fit in an
5793         `int' to `int'.
5794         (build_enumerator): In pedantic mode, cast to `int' those that
5795         don't.
5796
5797 2000-07-25  Rodney Brown  <RodneyBrown@pmsc.com>
5798
5799         * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
5800
5801 Tue Jul 25 23:08:33 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5802
5803         * sh.md (cmpgtdi_t): Must be split.
5804         (cmpgtdi_t+1): New splitter.
5805
5806 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
5807
5808         * cpplib.c (_cpp_check_directive): Issue -Wtraditional
5809         warnings for indented directives even if we are skipping.
5810
5811 2000-07-25  Nathan Sidwell  <nathan@codesourcery.com>
5812
5813         * invoke.texi (strict-prototypes): Remove.
5814         * extend.texi (Deprecated Features): Add strict-prototypes.
5815         (Backwards Compatibility): New node.
5816
5817 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
5818
5819         * config/i386/i386.md (andsi_1+1): Allow HImode.
5820         (andsi_1+2): Require q_regs_operand.
5821
5822 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
5823
5824         * config/i386/i386.md (call_pop): Check operands[0],
5825         not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
5826         (call): Likewise.
5827         (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
5828         (call_value): Likewise.
5829
5830 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
5831
5832         * toplev.c (pipe_closed): Delete.
5833         (crash_signal): New.  Generate ICE for a fatal signal.
5834         (float_signal): Call crash_signal outside a float-handler
5835         block, not abort.
5836         (main): Install crash_signal as handler for core-dumping signals.
5837
5838 2000-07-25  David Edelsohn  <edelsohn@gnu.org>
5839
5840         * rs6000.c (print_operand, case 'T'): New case.
5841
5842         * rs6000.md (call_indirect_aix32): Convert to expander of
5843         scheduled instructions.
5844         (call_indirect_aix64): Likewise.
5845         (call_value_indirect_aix{32,64}): Likewise.
5846         (call, call_value): Invoke expanders for AIX.  Fall through to
5847         matchers for SysV.
5848         (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
5849         (call_value_indirect_nonlocal_aix{32,64}): New patterns.
5850         (call_nonlocal_aix32): Remove CALL_LONG alternative.  Operand 1
5851         only "g" constraint.
5852         (call_nonlocal_aix64): Likewise.
5853         (call_value_nonlocal_aix{32,64}): Likewise.
5854         (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
5855         operands.
5856         (call_value_nonlocal_sysv): New pattern.
5857         (indirect_jump{si,di}): Use new 'T' modifier.
5858         (tablejump{si,di} matchers): Likewise.
5859         (return_internal_{si,di}): Likewise.
5860         (return_eh_{si,di}): Likewise.
5861
5862 2000-07-24  Richard Henderson  <rth@cygnus.com>
5863
5864         * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
5865         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5866         * config/ia64/ia64.md (movdi_internal): Use it.
5867
5868 2000-07-24  Zack Weinberg  <zack@wolery.cumb.org>
5869
5870         * cppexp.c: Warn about unary + if -Wtraditional.
5871         * cpplex.c (lex_line): Always set BOL on the first token of a line.
5872
5873 2000-07-24  Michael Meissner  <meissner@redhat.com>
5874
5875         * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
5876         unsupported macro.
5877
5878 2000-07-24  Nick Clifton  <nickc@cygnus.com>
5879
5880         * config/arm/arm.c (emit_multi_reg_push): Generate a
5881         REG_FRAME_RELEATED_NOTE that is compatable with the code in
5882         dwarf2out_debug_frame_expr.
5883
5884 2000-07-24  Jason Merrill  <jason@redhat.com>
5885
5886         * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
5887         UNALIGNED_INT_ASM_OP.
5888         (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
5889         a location expression.
5890         (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff.  Don't
5891         assume indirect access if we're saving the CFA address exactly.
5892
5893         * Makefile.in (bootstrap): Move -BstageN/ to the end.
5894
5895 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
5896
5897         * tradcpp.c (main): Update max_include_len for cpp_include_defaults
5898         as well.
5899
5900 2000-07-24  Michael Meissner  <meissner@redhat.com>
5901
5902         * invoke.texi (D30V Options): Add d30v options.
5903
5904 Mon Jul 24 02:04:52 2000  Jeffrey A Law  (law@cygnus.com)
5905
5906         * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
5907         needed by our gcse pass anymore.
5908         (free_pre_mem): Corresponding changes.
5909         (compute_pre_data): Do not call compute_transpout anymore.
5910
5911         * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
5912         (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
5913         changes.
5914
5915         * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
5916         (compute_pre_data): Do it here instead.
5917
5918         * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
5919         'temp_bitmap'.
5920         (pre_delete): Corresponding changes.
5921
5922 2000-07-23  Mark Mitchell  <mark@codesourcery.com>
5923
5924         * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
5925         to figure out whether or not a variable has already been emitted.
5926
5927 Sun Jul 23 14:49:12 2000  Jason Eckhardt  <jle@cygnus.com>
5928
5929         * config/i860/i860.md (untyped_call expander): Use GEN_CALL
5930         instead of gen_call.
5931
5932 Sun Jul 23 11:52:03 2000  George Helffrich (george@gly.bris.ac.uk)
5933
5934         * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
5935
5936 2000-07-23  Kazu Hirata  <kazu@hxi.com>
5937
5938         * h8300.c: Fix formatting.
5939
5940 2000-07-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5941
5942         * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
5943         for `long' switch expression into a plain warning.
5944
5945         * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
5946         (yylex): Don't pedwarn for "inline" in C99 mode.
5947
5948         * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
5949         with %p.
5950         * ggc-page.c (debug_print_page_list, alloc_page, free_page,
5951         ggc_alloc): Likewise.
5952         * bb-reorder.c (dump_scope_forest_1): Likewise.
5953
5954 2000-07-22  Aldy Hernandez  <aldyh@redhat.com>
5955
5956         * reload.c (find_reloads_toplev): Add new parameter
5957         "address_reloaded".
5958         (find_reloads): Add new parameter to find_reloads_toplev calls.
5959
5960 2000-07-22  Jeffrey Oldham  <oldham@codesourcery.com>
5961
5962         * collect2.c (main): Typo fixed.
5963         * diagnostic.c: Typo fixed.
5964         * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
5965         * eh-common.h: Typo fixed.
5966         * emit-rtl.c (start_sequence): Typo fixed.
5967         * flow.c (find_label_refs): Typo fixed.
5968         (calculate_global_regs_live): Typo fixed.
5969         (mark_regno_cond_dead): Typo fixed.
5970         (create_edge_list): Typos fixed.
5971         (verify_edge_list): Typo fixed.
5972         * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
5973         * loop.c (strength_reduce): Typo in function name fixed.
5974         * rtl.h: Added comments.  Typo in function name fixed.
5975         * rtlanal.c: Typo in function name fixed.
5976         (insn_dependant_p): Rename to ...
5977         (insn_dependent_p): ... this.
5978         (computed_jumo_p): Typo fixed.
5979
5980 2000-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5981
5982         * system.h (__FUNCTION__): Wrap definition in #ifndef.
5983
5984 2000-07-21  David Edelsohn  <edelsohn@gnu.org>
5985
5986         * rs6000.h (SIZE_TYPE): Define.
5987
5988 2000-07-21  Mark Mitchell  <mark@codesourcery.com>
5989
5990         * ssa.c (rename_insn_1): Don't rename registers that are
5991         CLOBBERed.
5992
5993 2000-07-21  Zack Weinberg  <zack@wolery.cumb.org>
5994
5995         * diagnostic.c (trim_filename, fancy_abort): Moved here from
5996         rtl.c.
5997         (fatal_function, set_fatal_function): Removed.
5998         (fatal): Don't prepare for or call the fatal_function.
5999         (diagnostic_lock, error_recursion): New.
6000         (diagnostic_for_decl, report_diagnostic): Guard against
6001         re-entering the error reporting routines.
6002         (fancy_abort): Assume function is not NULL.
6003
6004         * errors.c (fancy_abort): New.  Assume function is not NULL.
6005         * tradcpp.c (fancy_abort): Assume function is not NULL.
6006
6007         * system.h: Provide default definition of __FUNCTION__.
6008         * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
6009         Always use __FUNCTION__ in definition of abort.
6010         * tree.h: Likewise.
6011         * varray.h: Likewise.
6012         * toplev.h: Likewise.  Don't prototype set_fatal_function.
6013
6014 2000-07-20  Geoff Keating  <geoffk@cygnus.com>
6015
6016         * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
6017         in 64-bit mode.
6018         * glimits.h: Don't do #if defined for ARCH_PPC.
6019
6020         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
6021         constants of size no larger than a pointer should go in the TOC.
6022         Add 'MODE' parameter.
6023         (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
6024         ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
6025         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
6026         * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
6027         * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
6028         * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
6029         (rs6000_legitimize_address): Likewise.
6030         (rs6000_emit_move): Likewise.
6031         (rs6000_select_rtx_section): Likewise.
6032         (output_toc): Deal properly with outputting small constants like
6033         HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
6034         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
6035         MODE parameter.  Put small constants in the TOC.
6036
6037         * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
6038         easy in SImode.
6039         (rs6000_emit_move): When reload calls us with an illegitimate
6040         address, exit early.  Move the change_address calls to one place
6041         at the end of the routine.  Merge the SImode and DImode expanders.
6042         When called by reload to put an integer into a FP register, force
6043         it to memory.
6044
6045         * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
6046         field.
6047         (rs6000_hash_constant): Hash mode too.
6048         (toc_hash_function): Allow for key_mode.
6049         (toc_hash_eq): Structures are different if key_mode differs.
6050         (output_toc): Add 'mode' parameter.  Save key_mode.
6051         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
6052         Pass 'mode' parameter.
6053         * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
6054
6055         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
6056         for vtable references.
6057
6058         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
6059         choice, don't put integer values in FP regs.
6060
6061 Thu Jul 20 18:13:52 2000  Jeffrey A Law  (law@cygnus.com)
6062
6063         * flow.c (verify_flow_info): Revamp code to verify that the
6064         head and end of each basic block are in the insn chain.
6065
6066 Thu Jul 20 18:02:35 2000  Michael Matz <matzmich@cs.tu-berlin.de>
6067
6068         * gcse.c (record_one_set): Prepend instead of append onto
6069         reg_set_table, making it O(n) instead O(n^2).
6070         * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
6071         Use a queue instead of a stack as worklist.
6072
6073 2000-07-20  Kazu Hirata  <kazu@hxi.com>
6074
6075         * h8300.c (two_insn_adds_subs_operand): Fix a typo.
6076         * h8300.h (OK_FOR_T): New.
6077         (EXTRA_CONSTRAINT): Support OK_FOR_T.
6078         * h8300.md: Use inc/dec.[wl] for increment/decrement
6079         by 1 and 2 in HI and SI modes.
6080
6081 2000-07-20  Jim Wilson  <wilson@cygnus.com>
6082
6083         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
6084         larger than 14 bits.
6085
6086 2000-07-20  Zack Weinberg  <zack@wolery.cumb.org>
6087
6088         * cppmacro.c (CAN_PASTE_AFTER): New macro.
6089         (count_params): Don't set GNU_REST_ARGS on anything.
6090         (save_expansion): Set PASTE_LEFT only on tokens for which
6091         CAN_PASTE_AFTER is true, or which are named operators.
6092
6093         * cpplex.c (parse_args): Distinguish between a rest argument
6094         given one empty argument, and a rest argument given zero arguments.
6095         (maybe_paste_with_next): Look for VOID_REST tag, and trigger
6096         deletion of previous token based on that.
6097         (get_raw_token): Flatten some control structure.
6098
6099         * cpplib.h (CPP_LAST_EQ): Correct.
6100         (VOID_REST): New token flag.
6101         (GNU_REST_ARGS): Delete.
6102
6103         * tradcpp.c (main): Don't munge -D options.
6104         (make_definition): Bring -D handling in line with cpplib.
6105         (do_define): Strip all leading whitespace from macro definitions.
6106
6107 2000-07-20  David Billinghurst <David.Billinghurst@riotinto.com.au>
6108
6109         * Makefile.in (tradcpp): Depend on intl.o and version.o.
6110
6111 2000-07-20  Bruce Korb  <bkorb@gnu.org>
6112
6113         * fixincl/check.tpl: strip the platform specific types before testing
6114         * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
6115         * fixincl/fixincl.tpl: use platform specific types
6116         * fixincl/fixlib.h: include the platform specific types
6117         * fixincl/inclhack.def(gnu_types): don't supply the types
6118         * fixincl/fixincl.x: regen
6119
6120 2000-07-19  Jim Wilson  <wilson@cygnus.com>
6121
6122         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
6123         GR_REGS.
6124
6125 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
6126
6127         * tradcpp.c (rescan): Do not recognize directives when the #
6128         is indented.
6129
6130 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
6131
6132         Implement C++ named operators.
6133
6134         * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
6135         of operators allowed in #if and having an _EQ variant.  Add
6136         CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
6137         (cpp_token flags): Add NAMED_OP.
6138         (enum node_type): Add T_OPERATOR.
6139         (struct cpp_hashnode): Add code slot to value union.
6140         * cpphash.h (spec_nodes): Remove n_defined.
6141
6142         * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
6143         (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
6144         (is_macro_disabled): Tweak error messages.
6145
6146         * cpplib.c (get_define_node): Disallow all named operators as
6147         macro names.  Tweak error messages.
6148         (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
6149
6150         * cppinit.c (builtin_array): Add entries for the named operators.
6151         * cppexp.c (lex): Check for CPP_DEFINED token.
6152         (priority table): Add entries for CPP_MIN and CPP_MAX.
6153         (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
6154
6155 2000-07-19  Bernd Schmidt  <bernds@cygnus.co.uk>
6156
6157         * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
6158         larger than the array of cuids.
6159         (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
6160         cuids.
6161
6162 2000-07-19  Bruce Korb  <bkorb@gnu.org>
6163
6164         * fixinc/fixincl.c:  Convert to using a table of environment variables
6165         and activate the auto-edit marker on the fixed output files.
6166         * fixinc/fixlib.h:  Define the environment table
6167         * fixinc/fixincl.sh: export the ${INPUT} dir
6168         * fixinc/check.tpl: likewise
6169
6170 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
6171
6172         * gcc.c (.h spec): Fix typo.
6173
6174 Wed Jul 19 01:22:15 CEST 2000  Marc Espie  <espie@cvs.openbsd.org>
6175
6176         * Makefile.in: Fix tradcif.c path.
6177
6178 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
6179
6180         * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
6181           macros, not five.
6182
6183         * cpphash.h (TOKEN_NAME): New macro.
6184         (_cpp_spell_operator): Deleted.
6185         (token_spellings): Now _cpp_token_spellings.
6186
6187         * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
6188         * cpplex.c: Use OP and TK macros when expanding the
6189         TTYPE_TABLE.  Eliminate token_names.  For non-OPERATOR tokens,
6190         store the stringification of the enumeration name (CPP_CHAR,
6191         etc.) in the name slot of token_spellings.
6192         Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
6193         token_spellings directly.
6194         * cpplib.c: Use TOKEN_SPELL.
6195
6196         * cpplex.c (_cpp_push_token): If the token being pushed back
6197         is the previous token in this context, just subtract one from
6198         context->posn.
6199         * cppmacro.c (save_expansion): Clear aux field when storing a
6200         placemarker.
6201
6202 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
6203
6204         * cpplex.c (cpp_scan_buffer): Output line command even at the stop
6205         buffer, provided it is not NULL.
6206
6207 2000-07-18  Alexandre Oliva  <aoliva@redhat.com>
6208
6209         * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
6210         case of invalid volatile re-declaration.
6211
6212 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
6213
6214         * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
6215         (expand_call): Adjust caller.
6216
6217 2000-07-17  Gabriel Dos Reis  <gdr@codesourcery.com>
6218
6219         * diagnostic.h (report_diagnostic): Change prototype.
6220
6221         * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
6222         diagnostic_for_decl):  Change prototype.
6223         (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
6224         error, warning, error_with_file_and_line,
6225         warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
6226         Adjust call to report_diagnostic, diagnostic_for_decl.
6227         (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
6228         (output_verbatim, verbatim): Adjust call to output_do_verbatim.
6229
6230         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
6231         varaible argument list.
6232
6233 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
6234
6235         * cpphash.c: Don't include hashtab.h.  Most macro-handling code
6236         moved to cppmacro.c.
6237         (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
6238         dump_hash_helper): Delete.
6239         (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
6240         cpp_forall_identifiers): New. Implement specialized version of
6241         Vlad's expandable hash table.
6242         (cpp_lookup): Use new functions.
6243         (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
6244         implementation.
6245         * cppmacro.c: New file.
6246         * cppinit.c (dump_macros_helper): New.
6247         (cpp_finish): Iterate over the identifier table directly.
6248         * cpplex.c (parse_name): Calculate the hash of the identifier
6249         while we scan it.  Use _cpp_lookup_with_hash when we can.
6250
6251         * cpphash.h: Update prototypes.
6252         (xcnewvec, HASHSTEP): New helper macros.
6253         * cpplib.h: Update prototypes.
6254         * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
6255         (cppmacro.o): New rule.
6256         (cpphash.o): Update deps.
6257
6258         * cppmain.c: Do not set pfile->printer if no_output is on.
6259
6260 2000-07-15  Neil Booth  <neilb@earthling.net>
6261
6262         * cpplib.c: Change all directive-handler functions to return
6263         void, not int.
6264         * cpphash.h: Update typedefs.
6265
6266 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
6267
6268         * configure: Regenerate.
6269
6270         * extend.texi (Extended Asm): Mention that a memory clobber
6271         does not count as a side-effect.
6272
6273         * unroll.c (copy_loop_body): Fix one instance of using host
6274         arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
6275         cross-compile.
6276
6277         * tlink.c (scan_linker_output): Tweak for output of AIX ld.
6278
6279 2000-07-17  Richard Henderson  <rth@cygnus.com>
6280
6281         * config/ia64/ia64.md (movdi): Split out load address code.
6282         New post-reload splitter for symbolic operands.
6283         (movdi_internal): Abort if we didn't split symbolic operands
6284         when we should have.
6285         * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
6286         (ia64_reorg): Split insns when not optimizing.
6287         * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
6288
6289 Mon Jul 17 23:43:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6290
6291         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
6292         instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
6293
6294 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
6295
6296         * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
6297
6298 2000-07-17  Jason Merrill  <jason@redhat.com>
6299
6300         * Makefile.in (clean): Remove libgcc directory.
6301
6302         * configure.in (-Wno-long-long check): Use higher-level macros.
6303
6304 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
6305
6306         * simplify-rtx.c (simplify_binary_operation): Recognize
6307            (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
6308         (simplify_ternary_operation):  Do not examine MODE_BITSIZE of
6309            a CONST_INT, it will always be zero.
6310
6311 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
6312
6313         * loop.c (check_dbra_loop) : Return if more than one condition is
6314         present to control the loop.
6315
6316 Mon Jul 17 08:26:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
6317
6318         * mips.c (mips_expand_prologue): Don't calculate the last argument
6319         register unless we need it.  When we are calculating this, make
6320         sure FUNCTION_ARG is giving us a REG.
6321
6322 2000-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6323
6324         * flow.c (libcall_dead_p): Use single_set to verify the insn
6325         has only one set and get for analysis.
6326         (propagate_one_insn): Don't pass the PATTERN of the insn.
6327
6328 2000-07-17  Mark Klein <mklein@dis.com>
6329
6330          * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
6331
6332 2000-07-17  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
6333
6334         * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
6335         * configure.in (TARGET_GETGROUPS_T): Evaluate.
6336         * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
6337         of second argument of getgroups.
6338         * configure, config.in: Rebuilt.
6339
6340 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
6341
6342         * simplify-rtx.c (simplify_relational_operation): Two signed
6343         values with equal high words are less/greater than each other if
6344         their low words are less/greater when considered as unsigned.
6345
6346 Mon Jul 17 02:37:06 2000  Marc Espie <espie@openbsd.org>
6347
6348         * configure.in (vax-*-openbsd):  Change to new style configuration,
6349         add collect2/float_format information.
6350         * configure:  Rebuilt.
6351         * config/vax/openbsd1.h:  New.
6352         * config/vax/openbsd.h:  New.
6353         * config/vax/t-openbsd:  New.
6354
6355 2000-07-17  Chip Salzenberg  <chip@valinux.com>
6356
6357         * c-common.c (shorten_compare): Quiet warnings about unsigned
6358         comparisons with zero when they occur in a system header.
6359
6360 2000-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
6361
6362         * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
6363         update to describe current practice.
6364
6365         * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
6366
6367         * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
6368         references to C9X.  Change references to -fstd and -flang-isoc9x
6369         to refer to -std.
6370
6371         * c-common.c (scan_char_table): Allow "z" length modifiers on
6372         diouxXn formats.
6373         (check_format_info): Use TYPE_DOMAIN on the type matched against
6374         for "z" formats, to retrieve the language size_t rather than the
6375         internal one.
6376
6377         * c-common.c (check_format_info): Do not make a pedantic objection
6378         to the 'L' length modifier if used with a floating point type
6379         character.
6380
6381         * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
6382         constants in C99 mode.
6383
6384 2000-07-17  Kazu Hirata  <kazu@hxi.com>
6385
6386         * h8300.md: Fix the format of mac.
6387         (movsi_h8300hs): Output a tab after stmac instead of a space.
6388
6389         * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
6390         profitable adds/subs sequences.
6391
6392         * fold-const.c: Fix comment typos.
6393
6394 2000-07-16  Laurynas Biveinis  <lauras@softhome.net>
6395
6396         * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
6397
6398 2000-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6399
6400         * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
6401
6402 2000-07-16  Neil Booth  <NeilB@earthling.net>
6403
6404         * cpplex.c: Update comments.
6405         * README.Portability: Small update.
6406
6407 2000-07-16  Neil Booth  <NeilB@earthling.net>
6408
6409         * README.Portability:  Small update.
6410
6411 2000-07-15  Richard Henderson  <rth@cygnus.com>
6412
6413         * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
6414         * config/ia64/ia64.c (ia64_move_ok): New function.
6415         * config/ia64/ia64.md (movqi, movqi_internal): Use it.
6416         (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
6417
6418 2000-07-15  Zack Weinberg  <zack@wolery.cumb.org>
6419
6420         * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
6421         immediately following a paste operator.
6422         * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
6423         (cpp_reader_init): Call it, if HOST_EBCDIC.
6424         (cpp_handle_options): Do not sort option list here.
6425         (handle_option): Rename to cpp_handle_option and export.
6426         * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
6427         _cpp_get_token directly.
6428         (cpp_scan_line): Return 0 at EOF, 1 otherwise.
6429         * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
6430         * cpplib.h: Prototype cpp_handle_option.  Update prototype of
6431         cpp_scan_line.
6432
6433 2000-07-15  Richard Henderson  <rth@cygnus.com>
6434
6435         * fold-const.c (extract_muldiv): Don't optimize past an unsigned
6436         cast around an expression.  Tidy other unsigned tests.
6437
6438 2000-07-15  Gabriel Dos Reis  <gdr@codesourcery.com>
6439
6440         * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
6441         v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
6442         (v_message_with_decl): Rename to ...
6443         (format_with_decl): ... this. Tweak
6444         (diagnostic_for_decl): New function.
6445         (fatal_io_error): Use verbatim in lieu of notice.
6446         (announce_function): Use verbatim.
6447         (default_print_error_function): Likewise.
6448         (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
6449         infratructure.
6450
6451 2000-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6452
6453         * mips.c (function_arg_pass_by_reference): Don't do automatic
6454         aggregate initialization.
6455         (machine_dependent_reorg): Initialize variable `mode'.
6456
6457         * mips.md (absdi2): Change variable `regno1' to unsigned int.
6458         (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
6459         conflicts with sys/param.h macro of the same name.
6460         (reload_outdi): Likewise.
6461
6462 2000-07-15  Michael Meissner  <meissner@redhat.com>
6463
6464         * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
6465         == CONST + INCREMENT, don't overwrite the tree node for FOO++,
6466         create a new node instead.
6467
6468 2000-07-15  Neil Booth  <NeilB@earthling.net>
6469
6470         * README.Portability: Correct example about calling a function
6471         through a pointer to function.  Format wide paragraphs.
6472
6473 2000-07-15  Michael Meissner  <meissner@redhat.com>
6474
6475         * README.Portability: Update integer suffixes and function
6476         prototype sections.
6477
6478 2000-07-15  Neil Booth  <NeilB@earthling.net>
6479
6480         * README.Portability: Small update.
6481
6482 2000-07-15  Neil Booth  <NeilB@earthling.net>
6483
6484         * README.Portability: New file.
6485
6486 Fri Jul 14 18:13:53 2000  Mark P Mitchell  <mark@codesourcery.com>
6487
6488         * INSTALL: Give special instructions for building GCC on Irix 6.
6489         * config/mips/x-iris6 (CC): Don't set it.
6490         (OLDCC): Likewise.
6491
6492 2000-07-14  Jason Merrill  <jason@redhat.com>
6493
6494         * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
6495         register in the stack and later in another register, use the new
6496         register.
6497
6498 Fri Jul 14 10:25:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
6499
6500         * config/mips/mips.md: (absdi2): Handle sign_extend for
6501         second operand.
6502
6503 2000-07-14  Nathan Sidwell  <nathan@codesourcery.com>
6504
6505         * cpplib.c (do_pragma_dependency): Tidy warning messages.
6506
6507 2000-07-14  Zack Weinberg  <zack@wolery.cumb.org>
6508
6509         * .cvsignore: Correct typo.
6510
6511 2000-07-13  Mark Mitchell  <mark@codesourcery.com>
6512
6513         * .cvsignore: Add generated YACC files.
6514         * objc/.cvsignore: New file.
6515
6516 2000-07-14  Neil Booth  <NeilB@earthling.net>
6517
6518         * cpplex.c (adjust_column): New funcion.
6519         (skip_whitespace): Use it.
6520         (skip_block_comment): Use it, and warn about /*/* with
6521         -Wcomments.
6522
6523 2000-07-14  Neil Booth  <NeilB@earthling.net>
6524
6525         * cpphash.c (struct macro_info): Add new members.
6526         (_cpp_free_definition): Delete the macro directly.
6527         (count_params): Return void, with first token of
6528         expansion in struct macro_info on success.
6529         (parse_define): Return int.  Hoist syntax checking from
6530         save_macro_expansion.  Leave call to save_expansion to
6531         _cpp_create_definition.
6532         (alloc_macro): Needs just 2 arguments.
6533         (free_macro): Delete.
6534         (save_expansion): Don't perform syntax check.
6535         (_cpp_create_definition): Call save_expansion.
6536
6537 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6538
6539         * genrecog.c (write_header): Split long string.
6540
6541         * cpphash.c (macro_info): Don't use the `signed' keyword.
6542
6543         * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
6544
6545 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
6546
6547         * calls.c (stored_args_map): New variable.
6548         (check_sibcall_argument_overlap_1): New.
6549         (check_sibcall_argument_overlap): New.
6550         (expand_call): Initialize stored_args_map.
6551         Call check_sibcall_argument_overlap.
6552
6553 2000-07-13  Bruce Korb  <bkorb@gnu.org>
6554
6555         * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
6556         (emit_gnu_type): utility procedure for gnu_type_fix
6557         (gnu_type_fix): implement various pre-processor guards around
6558         standard types so these types can be defined over and over
6559         * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
6560         types alluded to above will have GNU-compliant base types
6561         * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
6562         * fixinc/inclhack.def: add test_text entries and utilize the new
6563         "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
6564         * fixinc/fixincl.x: regenerate
6565
6566 2000-07-12  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6567
6568         * diagnostic.c (vline_wrapper_message_with_location,
6569         v_message_with_file_and_line, v_error_with_file_and_file,
6570         v_error_for_asm, v_warning_for_asm, vfatal,
6571         v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
6572         vsorry, verror, vwarning, vpedwarn): Remove.
6573         (diagnostic_for_asm): New function.
6574         (pedwarn, error, warning, pedwarn_with_file_and_line,
6575         error_with_file_and_line, warning_with_file_and_line, sorry,
6576         error_for_asm, warning_for_asm, fatal): Reimplement.
6577         (finish_diagnostic): Clear diagnostic info as well.
6578
6579 2000-07-13  Neil Booth  <NeilB@earthling.net>
6580
6581         * c-common.h (flag_digraphs): New.
6582         * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
6583         * c-lex.c (yylex): Use flag_digraphs to decide whether to
6584         honour digraphs.
6585
6586 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
6587
6588         * gcc.c (do_spec_1): Add new %B operator.
6589         (set_input): Prepare for %B.
6590
6591         (link_command_spec): Move up with the other tm.h-
6592         overrideable specs.  Factor out the portion conditional on
6593         LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
6594         (struct compiler): Just have a single spec string.  All users
6595         updated.
6596         (default_compilers): Remove unnecessary braces.
6597         (static_specs): Update.
6598
6599         (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
6600         named specs.
6601         (C and assembly specs): Use the new named specs, as appropriate.
6602
6603         * objc/lang-specs.h: Use the new named specs.
6604         Remove unnecessary braces.
6605
6606 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
6607
6608         * gcc.c (execute): If a subprocess gets a fatal signal, report
6609         strsignal() of the signal number, and ask for a bug report.
6610         Do not do this for SIGPIPE if there's already been an error.
6611
6612         * tradcpp.c: Don't include signal.h.  Don't catch SIGPIPE.
6613         Delete pipe_closed.
6614
6615         * tradcif.c: Remove.
6616
6617 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
6618
6619         * final.c (profile_function): Do not emit profile counters in
6620         the data section, if NO_PROFILE_COUNTERS is defined.
6621         * tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
6622         FUNCTION_PROFILER.
6623
6624         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
6625         (FUNCTION_PROFILER): Just emit a call to mcount.
6626
6627 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
6628
6629         * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
6630
6631         * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
6632         cpplib.c, cpplib.h: Eradicate all traces of code dependent on
6633         traditional, lang_chill, or lang_fortran.
6634
6635         * cppfiles.c: #undef strcmp to suppress warning about macros
6636         used without arguments.
6637         (_cpp_execute_include): Use f, not fname, in "No include path"
6638         error.
6639         (_cpp_pop_file_buffer): New function.
6640         * cpplib.c: Don't include <sys/mman.h>.
6641         (cpp_push_buffer): Set line_base and lineno in new buffer.
6642         (cpp_pop_buffer): Use _cpp_pop_file_buffer.
6643
6644         * cpplex.c: Move all prototypes and structure declarations to the
6645         top of the file.  Properly parenthesise some macro arguments.
6646         (cpp_scan_line): New function.
6647         (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
6648         don't need to walk up the stack counting.
6649
6650 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6651
6652         * c-common.c (combine_strings): Emit a pedantic warning when a
6653         string length is greater than the minimum ANSI C is required
6654         to support.
6655
6656 Wed Jul 12 13:24:30 2000  Jeffrey A Law  (law@cygnus.com)
6657
6658         * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
6659         * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
6660
6661 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6662
6663         * c-decl.c (define_label): Warn about identifier conflicts with
6664         labels in traditional C.
6665
6666         * c-parse.in (unop +): Warn about the unary plus operator for
6667         traditional C.
6668
6669         * c-typeck.c (store_init_value): Warn about automatic aggregate
6670         initialization for traditional C.
6671
6672         * invoke.texi (-Wtraditional): Document new warnings.
6673
6674 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
6675
6676         * Makefile.in (c-errors.o): Fix thinko in dependency.
6677
6678 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
6679
6680         * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
6681         -traditional, -ftraditional, or -traditional-cpp was given.
6682         Do not pass -traditional to the preprocessor.
6683         (.S spec): Likewise.  Don't bother defining __ASSEMBLER__, the
6684         preprocessor does it automatically.
6685         * objc/lang-specs.h: Likewise.  Don't bother defining __OBJC__.
6686
6687         * ch/lang-specs.h: Always use tradcpp.  Do not pass
6688         -traditional, -trigraphs, or -pedantic to the preprocessor.
6689         * f/lang-specs.h (.F spec): Likewise.  Don't bother defining
6690         _LANGUAGE_FORTRAN.
6691
6692 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
6693
6694         * cppexp.c (LOGICAL): Delete macro.
6695         (_cpp_parse_expr): Do not use UNARY for unary +.  Implement ||
6696         and && directly.
6697
6698         * cpphash.c (HASHSIZE): Increase to 4096.
6699         (struct hashdummy): Add hash field.
6700         (eq_HASHNODE): Compare unreduced hashes, then lengths, then
6701         the string values using memcmp.
6702         (cpp_lookup): Set dummy.hash.
6703
6704 Wed Jul 12 13:15:16 2000  Marc Espie <espie@openbsd.org>
6705
6706         * configure.in (m88k-openbsd): Express configuration using new fragment
6707         style.
6708         * configure: Rebuilt.
6709         * m88k/aout-dbx.h: New.
6710         * m88k/openbsd.h: New.
6711         * m88k/xm-openbsd.h: New.
6712
6713 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6714
6715         * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
6716
6717 2000-07-12  Richard Henderson  <rth@cygnus.com>
6718
6719         * reload.c (push_secondary_reload): Make sure to add the new
6720         reload at the end, after acquiring secondary memory.
6721
6722 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6723
6724         * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
6725
6726         * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
6727         lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
6728
6729         * c-parse.in (stmt): Delete unused variables.
6730
6731         * convert.c (convert_to_vector): Likewise.
6732
6733         * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
6734
6735         * tree.c (finish_vector_type): Prototype.
6736
6737 2000-07-12  Bruce Korb  <bkorb@gnu.org>
6738
6739         * fixinc/fixfixes.c: use xmalloc
6740         * fixinc/fixincl.c(initialize): set program name for xmalloc
6741         * fixinc/fixlib.c(must_malloc): obsolete
6742         (is_cxx_header): no longer used - disabled
6743         (skip_quote): inserted and disabled for future use
6744         * fixinc/fixlib.h: reflects above
6745         * fixinc/fixtests.c: removed dinkleberries
6746
6747 2000-07-12  Neil Booth  <NeilB@earthling.net>
6748
6749         * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
6750         * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
6751
6752         * cpphash.c: (struct macro_info, alloc_macro, free_macro,
6753         struct toklist_dummy): New.
6754         (cpp_free_definition): Free macros with free_macro.
6755         (count_params): Don't save paramter spellings.  Save macro
6756         information in a struct macro_info.
6757         (parse_define): Don't allocate a token list.
6758         (save_expansion): Allocate the macro's token list, and
6759         save parameter spellings if necessary.  Use TOKEN_SPELL.
6760         (cpp_create_definition): Make list const.
6761
6762 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
6763
6764         * c-typeck.c (pedwarn_c99): Move to
6765         * c-errors.c: ... Here.
6766         * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
6767         * diagnostic.c (verror, vwarning, vpedwarn): Make static.
6768         * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
6769         (c-errors.o): List dependency.
6770
6771 2000-07-12  Mark Mitchell  <mark@codesourcery.com>
6772
6773         * c-parse.c: Remove.
6774         * c-parse.h: Likewise.
6775         * c-parse.y: Likewise.
6776         * objc/objc-parse.c: Likewise.
6777         * objc/objc-pasre.y: Likewise.
6778
6779 2000-07-11  Rodney Brown  <RodneyBrown@pmsc.com>
6780
6781         * gcc.texi: Fix minor typos
6782         * extend.texi: Fix minor typos
6783
6784 2000-07-11  Marc Espie <espie@openbsd.org>
6785
6786         * collect2.c (main): Recognize .lo as object files.
6787
6788 2000-07-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
6789
6790         * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
6791         true.
6792
6793         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
6794         with MAP_ANONYMOUS and MAP_ANON.
6795         * configure, config.in: Rebuilt.
6796
6797 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
6798
6799         * diagnostic.c (save_output_state): Remove.
6800         (restore_output_state): Likewise.
6801         (clear_text_info): New function.
6802         (clear_diagnostic_info): Likewise.
6803         (output_text_length, is_starting_newline, output_prefix,
6804         line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
6805         prefixing_policy, output_buffer_ptr_to_format_args): New macros
6806         (set_real_maximum_length, output_set_maximum_length,
6807         output_set_prefix, output_get_prefix, output_set_maximum_length,
6808         output_destroy_prefix, init_output_buffer,
6809         reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
6810         output_add_newline, output_add_character, output_add_space,
6811         output_append_r, output_append, wrap_text, output_format,
6812         output_do_printf, output_printf, output_do_verbatim,
6813         output_verbatim, verbatim): Use them.
6814         (output_clear): Split into cleat_text_info and
6815         clear_diagnostic_info.
6816         (struct output_state): Move to...
6817
6818         * diagnostic.h: ...Here
6819         (struct output_buffer): Adjust.
6820
6821 2000-07-11  Zack Weinberg  <zack@wolery.cumb.org>
6822
6823         * cpplex.c (parse_name): No longer inline (premature optimization).
6824         (do_pop_context): Fold into pop_context.
6825         (pop_context): Returns int.
6826         (lex_next): Hoist test for end of directive into pop_context.
6827         (push_macro_context): Returns int; takes just reader and token.
6828         Hoist test for excessive nesting to caller.
6829         (push_arg_context): Returns void; takes just reader and token.
6830         Do not call stringify_arg or get_raw_token.
6831         (get_raw_token): Convert tail recursion through push_arg_context
6832         to a loop at this level.  Call stringify_arg here if appropriate.
6833         (maybe_paste_with_next): Convert tail recursion to a while loop.
6834         Hoist test of paste_level to caller.
6835
6836         (stringify_arg): Push arg context at beginning.
6837         (cpp_get_token): Split out core into _cpp_get_token.  Call
6838         process_directive here.  Throw away CPP_PLACEMARKER tokens.
6839         (_cpp_get_token): Convert tail recursion through
6840         push_macro_context to a loop at this level.
6841         (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
6842         _cpp_get_raw_token): Use _cpp_get_token.
6843         (_cpp_skip_rest_of_line): Drop the context stack directly; do
6844         not call pop_context.
6845         (_cpp_run_directive): Call lex_next directly.
6846
6847         * cpphash.h: Prototype _cpp_get_token.
6848         * cppexp.c (lex): Use it.
6849         * cpphash.c (parse_define): Use it.
6850         * cpplib.c (get_define_node, do_undef, parse_include,
6851         read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
6852         do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
6853         parse_ifdef, validate_else): Use it.
6854         (cpp_push_buffer): Tweak error message; abort if anyone tries
6855         to push a buffer while macro expansions are stacked.
6856
6857 2000-07-11  Donn Terry  <donnte@microsoft.com>
6858
6859         * cpplex.c (free_macro_args, save_token): Cast arg of free
6860         and/or xrealloc to PTR.
6861         (_cpp_init_input_buffer): Clear all fields of the base context.
6862
6863 Tue Jul 11 15:28:21 CDT 2000  Clinton Popetz  <cpopetz@cygnus.com>
6864
6865         * gensupport.c (process_rtx): Make rtl checking stop
6866         complaining about the define_insn while it is being
6867         converted from a define_insn_and_split.
6868
6869 Tue Jul 11 16:26:17 2000  Clinton Popetz  <cpopetz@cygnus.com>
6870
6871         * config/mips/mips.c (simple_memory_operand): Access the
6872         INTVAL of the address, not it's containing MEM.
6873
6874 2000-07-11  Bruce Korb  <bkorb@gnu.org>
6875
6876         * fixinc/fixtests.c(double_slash): obsolete
6877         (else_endif_label): likewise
6878         * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
6879         (libc1_ifdefd_memx): correct initial comment
6880         and omit the #if/#endif pair from the memxxx declarations
6881         * fixinc/fixincl.x: regen
6882
6883 2000-07-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6884
6885         * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
6886
6887 2000-07-11  Neil Booth  <NeilB@earthling.net>
6888
6889         * cpp.texi: Update.
6890
6891 2000-07-11  Neil Booth  <NeilB@earthling.net>
6892
6893         * cppinit.c: (cpp_reader_init): Allow digraphs by default.
6894         (handle_option): Set digraphs according to standard.
6895         Merge OPT_lang_c89 handler with OPT_std_c89.
6896
6897         * cpplex.c: (lex_line, can_paste): Honour digraphs in
6898         accordance with the digraphs flag.
6899
6900         * cpplib.h: (struct cpp_options): New option digraphs.
6901
6902 2000-07-10  Hans-Peter Nilsson  <hp@axis.com>
6903             Bruce Korb  <bkorb@gnu.org>
6904
6905         * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
6906         * fixinc/fixincl.x: Regenerate.
6907         * fixinc/tests/base/testing.h: Add testcase.
6908
6909 2000-07-10  Richard Henderson  <rth@cygnus.com>
6910
6911         * config/ia64/ia64.c (got_symbolic_operand): New.
6912         (symbolic_operand, move_operand): Revert 0701 change.
6913         * config/ia64/ia64.h (PREDICATE_CODES): Update.
6914         * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
6915         * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
6916         split the offset into a 14-bit low part instead of a 13-bit low part.
6917         (load_fptr): Mark the mem as unchanging.
6918         (load_symptr): Use got_symbolic_operand.
6919
6920 2000-07-10  Nick Clifton  <nickc@cygnus.com>
6921
6922         * libgcc2.c (next_stack_level): Cast result of computation to
6923         (void **) so that the assignment does not generate a warning.
6924
6925 2000-07-10  Chandrakala Chavva  <cchavva@redhat.com>
6926
6927         * flags.h : Add new variable flag_single_precision_constant.
6928         * toplev.c (display_help) : Add -fsingle-precision-constant option.
6929         (flag_single_precision_constant): New.
6930         * c-lex.c (yylex): Convert floating point constant to single
6931         precision constant.
6932         * invoke.texi : Add documentation for this new option.
6933
6934 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
6935
6936         * diagnostic.c (output_octal): Second parameter is unsigned.
6937         (output_long_octal): Likewise.
6938         (output_hexadecimal): Likewise.
6939         (output_long_hexadecimal): Likewise.
6940         (output_format): Adjust arguments extraction. Tweak.
6941         (output_verbatim, verbatim): End variable argument list.
6942         (report_diagnostic): Improve documentation.
6943
6944 2000-07-10  Benjamin Chelf  <chelf@codesourcery.com>
6945
6946         * c-common.h (build_stmt): Declare.
6947         (build_continue_stmt): Likewise.
6948         (build_break_stmt): Likewise.
6949         (build_return_stmt): Likewise.
6950
6951         * c-decl.c (do_case): Rewrite to do what previously done in
6952         c-parse.in.
6953
6954         * c-semantics.c (build_stmt): Define.
6955         (build_return_stmt): Likewise.
6956         (build_break_stmt): Likewise.
6957         (build_continue_stmt): Likewise.
6958         (build_case_label): Likewise.
6959
6960         * c-parse.in (BREAK): Change to build tree, then generate RTL.
6961         (CONTINUE): Likewise.
6962         (RETURN): Likewise.
6963         (CASE): Likewise.
6964         (DEFAULT): Likewise.
6965
6966         * c-parse.y: Regenerate.
6967         * c-pasre.c: Likewise.
6968
6969 2000-07-09  Jason Merrill  <jason@redhat.com>
6970
6971         * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
6972
6973         * tree.h (STRIP_NOPS): Check for error_mark_node.
6974         (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
6975         (dwarf2out_*): Remove duplicate declarations.
6976
6977         * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
6978         DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
6979
6980 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
6981
6982         * diagnostic.c (wrap_text): New function.
6983         (maybe_wrap_text): Likewise.
6984         (output_add_string): Use it.
6985         (output_format): Likewise.
6986         (count_error): Use verbatim instead of notice.
6987         (report_error_function): Likewise. Don't use plain fprintf.
6988         (finish_diagnostic): New function.
6989         (output_do_verbatim): Tweak.  Commonalize functionalities in
6990         output_verbatim and verbatim.
6991         (output_verbatim): Adjust.
6992         (verbatim): Likewise.
6993         (report_diagnostic): Define.
6994
6995         * diagnostic.h (report_diagnostic): Prototype.
6996
6997 2000-07-09  Zack Weinberg  <zack@wolery.cumb.org>
6998
6999         * cppexp.c (_cpp_parse_expr): Don't use unary plus.
7000
7001 2000-07-09  Neil Booth  <NeilB@earthling.net>
7002
7003         * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
7004         IShspace, ISspace: Update.
7005
7006         * cppinit.c: ISTABLE: Update.
7007         V: New.
7008
7009         * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
7010         (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
7011         (skip_block_comment, skip_line_comment, parse_string,
7012         lex_line): Use is_vspace rather than IS_NEWLINE.
7013         (skip_whitespace, lex_line): Clean up to use is_nvspace.
7014         (lex_line): Use KNOWN_DIRECTIVE.  Any kind of directive
7015         gets a BOL flag.
7016         (lex_next): Unconditionally stop if within a directive.
7017         Treat directives within macro invocations as directives
7018         (after parse_args emits error), not as the argument.
7019
7020 2000-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
7021
7022         * diagnostic.c (diagnostic_args): New macro.
7023         (diagnostic_msg): Likewise.
7024         (output_formatted_integer): Likewise.
7025         (output_state): New data type.
7026         (digit_buffer): Make global.
7027         (output_add_integer): Rename to output_decimal. Squeeze
7028         digit_buffer.
7029         (output_long_decimal, output_unsigned_decimal,
7030         output_long_unsigned_decimal, output_octal, output_long_octal,
7031         output_hexadecimal, output_long_hexadecimal): New functions.
7032         (output_append_r): New function.
7033         (output_append): Tweak.
7034         (output_flush_on): Rename to output_to_stream.
7035         (output_format): Change prototype.  Improve documentation. Handle
7036         more format specifiers.
7037         (build_location_prefix): Rename to context_as_prefix.
7038         (output_notice): Rename to output_do_printf.
7039         (output_printf): Tweak.
7040         (line_wrapper_printf): Likewise.
7041         (vline_wrapper_message_with_location): Adjust call to renamed
7042         functions.
7043         (v_message_with_decl): Likewise.
7044         (default_print_error_function): Likewise.
7045         (save_output_state): New function.
7046         (restore_output_state): Likewise.
7047         (output_do_verbatim): Likewise.
7048         (output_verbatim): Define.
7049         (verbatim): Likewise.
7050
7051         * diagnostic.h (printer_fn): Change return type from void to int.
7052         Improve documentation.
7053         (output_add_integer): Rename to output_decimal.
7054         (output_flush_on, output_format): Don't export.
7055         (output_verbatim, verbatim): Declare.
7056
7057 2000-07-08  Toon Moene  <toon@moene.indiv.nluug.nl>
7058
7059         * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
7060         Check whether c divides op1 exactly if operation is not
7061         multiplication.
7062
7063 2000-07-08  Richard Henderson  <rth@cygnus.com>
7064
7065         * final.c (final): Do not abort when reg-stack introduces
7066         a new insn.
7067
7068 2000-07-08  Zack Weinberg  <zack@wolery.cumb.org>
7069
7070         * cpplib.h (struct cpp_name): Now struct cpp_string.
7071         (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
7072         CPP_HEADER_NAME): Change to type S.
7073         (struct cpp_token): Rename 'name' field to 'str'.  Add 'node'
7074         field, a cpp_hashnode *.  All references to val.name updated
7075         to use val.str or val.node as appropriate.
7076         (struct cpp_reader): Add spec_nodes field.
7077         (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
7078
7079         * cpphash.h (struct spec_nodes): New.
7080         (enum spell_type): Reorder.  Only SPELL_STRING tokens use
7081         val.str.  All references to 'spelling > SPELL_NONE' updated to
7082         match.
7083
7084         (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
7085         pfile->buffer->inc are not NULL before dereferencing them.
7086
7087         * cpplex.c (parse_name): Take a pointer to the current token,
7088         plus current position and limit as args; return the new
7089         position; don't copy the text of a name into the string
7090         buffer, instead call cpp_lookup and store the node pointer.
7091         If extending a token, copy out the text of the old into a
7092         scratch buffer, append the new, look that up and store the new
7093         node pointer.  Inline.
7094         (maybe_paste_with_next): If the result of paste is a NAME,
7095         then look up the pasted text and store its node pointer.
7096         (lex_line): Adjust for new parse_name interface.
7097         Check for L"str", L'str' using spec_nodes->n_L.
7098         (spell_token): SPELL_IDENT tokens have their spelling in
7099         val.node->name.  Handle SPELL_STRING tokens that don't have
7100         string delimiters.
7101         (_cpp_expand_name_space,
7102         (can_paste): Check for L ## "str" using spec_nodes->n_L.
7103         (cpp_get_token, special_symbol): No need to call cpp_lookup.
7104         (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
7105         return 1=equal 0=not, not a tristate.
7106
7107         * cpphash.c (var_args_str): Delete.
7108         (find_param): Compare node fields directly.
7109         (is__va_args__): Use CPP_PEDANTIC.  Just compare
7110         token->val.node with spec_nodes->n__VA_ARGS__.
7111         (dump_funlike_macro): Don't use var_args_str.
7112
7113         * cpplib.c (_cpp_check_directive): Just walk through
7114         spec_nodes->dirs comparing pointers.
7115         (get_define_node, do_pragma_poison, detect_if_not_defined,
7116         parse_ifdef): The identifier has already been looked up.
7117         (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
7118         node.
7119         (do_if): Only call detect_if_not_defined at beginning of file.
7120         (_cpp_parse_assertion): Only copy string pointers for
7121         SPELL_STRING tokens.
7122         (pragma_dispatch): Take a node pointer and examine its name
7123         field.
7124         (_cpp_init_stacks): Also initialize the spec_nodes structure.
7125
7126         * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
7127         _cpp_init_macros.
7128         (cpp_cleanup): Free pfile->spec_nodes.  Call _cpp_cleanup_* in
7129         reverse order from the corresponding _cpp_init_* routines.
7130
7131         * cppexp.c (parse_number, parse_charconst, parse_defined,
7132         lex): Check val.node->type instead of calling cpp_defined.
7133         Use spec_nodes entries where appropriate.
7134
7135         * fix-header.c, scan-decls.c: Update for interface changes.
7136
7137 2000-07-08  Geoffrey Keating  <geoffk@cygnus.com>
7138
7139         * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
7140         emitting aux_truncdfsf2.
7141
7142 2000-07-03  Donn Terry  (donnte@microsoft.com)
7143
7144         * cppinit.c (print_help): split overlong line into ISO C89
7145         maximum chunks.
7146
7147 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
7148
7149         * cppexp.c: Update all code for new lexer interface.
7150         (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
7151         (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
7152         * cpplex.c (token_names): Trim leading CPP_ from names; make
7153         the strings unsigned.
7154         (_cpp_spell_operator): New.
7155         (is_macro_disabled): Disable all macros if rescanning
7156         preprocessed text.
7157         (_cpp_get_directive_token): Remove.
7158
7159         * cppinit.c: Don't set no_macro_expand.
7160         * cpplib.c (read_line_number, do_line): Check only for EOF,
7161         not VSPACE.
7162         * cpphash.h: Update prototypes.
7163         * cpplib.h (CPP_VSPACE): Remove.
7164         (struct cpp_reader): Remove no_macro_expand.
7165
7166 2000-07-08  Neil Booth  <NeilB@earthling.net>
7167
7168         * cpphash.c (is__va_args__): New function.
7169         (count_params): Fix line reported in error messages.  Use
7170         is__va_args__.  Don't return ')' on error.  Flag GNU style
7171         rest args macro definitions.
7172         (parse_define): Check macro name is not __VA_ARGS__.
7173         (save_expansion): Check identifier in non-varargs-macro is
7174         not __VA_ARGS__.  Don't flag GNU_VARARGS.
7175         * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
7176         (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
7177          than per-token GNU_VARARGS.
7178         * cpplib.h (GNU_VARARGS): Remove.
7179         (GNU_REST_ARGS): New.
7180
7181 Sat Jul  8 01:38:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7182
7183         * i386.md (call_pop, call, call_value_pop): Do not set
7184         current_function_uses_pic_offset_table for calls to static
7185         functions or indirect calls.
7186
7187 2000-07-07  Jim Wilson  <wilson@cygnus.com>
7188
7189         * config/ia64/ia64.c (rws_access_reg): New local write_count.  If
7190         is_predicate_reg, then take max write_count of register pair.
7191
7192 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7193
7194         * tradcpp.c (main): Rename label `include' to `add_include' to
7195         avoid conflicts with variable `include' in traditional C.
7196
7197 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
7198
7199         * integrate.c (copy_insn_list): Remove REG_LABEL notes.
7200
7201 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
7202
7203         * sibcall.c (uses_addressof): Add INMEM argument, check for
7204         current_function_internal_arg_pointer outside of MEM rtxs in addition
7205         to ADDRESSOFs.
7206         (sequence_uses_addressof): Update caller.
7207
7208 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
7209
7210         * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
7211         and friends.
7212
7213 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7214
7215         * system.h (UNION_INIT_ZERO): New macro for initializing union
7216         members in structs.
7217
7218         * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
7219
7220 2000-07-07  Neil Booth  <NeilB@earthling.net>
7221
7222         * cpp.texi: Update.
7223
7224 Fri Jul  7 07:47:35 2000  Jeffrey A Law  (law@cygnus.com)
7225
7226         * final.c (final): Detect out of bounds array access to
7227         the insn_lengths array.
7228
7229 2000-07-07  Kazu Hirata  <kazu@hxi.com>
7230
7231         * fold-const.c (fold): Fix a comment typo.
7232
7233 2000-07-07  Neil Booth  <NeilB@earthling.net>
7234
7235         * cpp.texi: Update to new lexer.
7236
7237 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
7238
7239         * tradcpp.c: New file.
7240         * tradcif.y: New file.
7241         * tradcif.c: New generated file.
7242
7243         * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
7244         $(srcdir)/tradcif.c.  Add tradcpp to STAGESTUFF and
7245         dependencies of C.  Install tradcpp from install-common, in
7246         $(libsubdir).
7247
7248 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
7249
7250         * cppinit.c: Include cppdefault.h.  Refer to
7251         cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
7252         to GCC_INCLUDE_DIR and its length.
7253         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
7254         USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
7255         STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT):  Move to
7256         cppdefault.h.
7257         (include_defaults_array): Move to cppdefault.c.
7258
7259         * cppdefault.h: New file.
7260         * cppdefault.c: New file.
7261
7262         * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
7263         (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
7264         (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
7265         this file.
7266
7267 Thu Jul  6 18:30:36 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7268
7269         * reload.c (push_reload): When seeing if can reuse a register,
7270         check extra registers against widest of INMODE and OUTMODE.
7271
7272 2000-07-06  Neil Booth  <NeilB@earthling.net>
7273
7274         * cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
7275         based on full length of predicate.
7276
7277 2000-07-06  Hans-Peter Nilsson  <hp@axis.com>
7278
7279         * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
7280         [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
7281
7282 2000-07-05  Kazu Hirata  <kazu@hxi.com>
7283
7284         * h8300-proto.h: Fix formatting.
7285         * h8300.c: Likewise.
7286         * h8300.h: Likewise.
7287
7288 2000-07-05  Jim Wilson  <wilson@cygnus.com>
7289
7290         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
7291         CCmode.
7292
7293 2000-07-05  Rodney Brown  <RodneyBrown@pmsc.com>
7294
7295         * invoke.texi: Fix minor typos
7296         * md.texi: Fix minor typos
7297
7298 2000-07-05  Zack Weinberg  <zack@wolery.cumb.org>
7299
7300         * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
7301
7302 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
7303
7304         * cpplex.c: Don't include sys/mman.h.
7305         (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
7306
7307         * cpplib.c: Include sys/mman.h and obstack.h.
7308         (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
7309         obstack.
7310         (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
7311         (_cpp_unwind_if_stack): Now static, unwind_if_stack.  Don't
7312         bother freeing if stack entries (they will be freed with their buffer).
7313         (do_endif): Free if stack entries from the buffer obstack.
7314         (push_conditional): Allocate if stack entries from the buffer obstack.
7315
7316         (find_answer): Rename to _cpp_find_answer.
7317         (do_assert, do_unassert): Update.
7318
7319         * cpphash.h: Update prototypes.
7320         (xobnew): New convenience macro.
7321         * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
7322         Update comments.
7323         (struct cpp_hashnode): Remove disabled field.
7324
7325         * cppinit.c: Don't include hashtab.h or splay-tree.h.
7326         (report_missing_guard): Moved to cppfiles.c.
7327         (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
7328         cpp_init_includes.
7329         (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
7330         cpp_cleanup_includes.  Don't destroy hashtab or
7331         all_include_files here.
7332         (cpp_finish): Use _cpp_report_missing_guards.
7333
7334         * cppfiles.c (report_missing_guard): Moved from cppinit.c.
7335         (_cpp_init_include_table): Rename _cpp_init_includes.
7336         (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
7337
7338         * cppexp.c (parse_assertion): Update for new name of
7339         find_answer.
7340
7341         * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
7342
7343 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
7344
7345         * cpplib.c (do_ident): s/VSPACE/EOF/
7346
7347 2000-07-05  Neil Booth  <NeilB@earthling.net>
7348
7349         * cpplex.c: Fix trigraph replacement within strings.
7350
7351 2000-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7352
7353         * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
7354
7355         * xcoffout.c (assign_type_number): Constify.
7356         (xcoffout_source_file): Add static prototype.  Don't needlessly
7357         cast away const-ness.
7358
7359 2000-07-04  Jason Merrill  <jason@redhat.com>
7360
7361         * frame.h (frame_state): Move base_offset to end.
7362
7363 Mon Jul  3 21:31:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
7364
7365         * calls.c (emit_library_call_value_1): Revert previous change.
7366
7367 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
7368
7369         * fix-header.c (struct partial_proto): Remove unnecessary fields.
7370         (recognized_extern, recognized_function, read_scan_file):
7371         Update for new scheme.
7372         (check_protection): It's still a multiple include guard even
7373         if it doesn't always trigger.
7374         * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
7375         new scheme.
7376         * scan.h: Declare struct cpp_token.  Update prototypes.
7377
7378 2000-07-03  Neil Booth  <neilb@earthling.net>
7379             Zack Weinberg  <zack@wolery.cumb.org>
7380
7381         Complete overhaul of the lexer and macro expander.
7382
7383         * cpphash.c (object_defn, funct_defn, push_macro_expansion,
7384         arg, arglist, argdata, reflist, collect_objlike_expansion,
7385         collect_funlike_expansion, collect_params,
7386         warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
7387         unsafe_chars, macarg, compare_defs, special_symbol,
7388         scan_arguments, stringify, funlike_macroexpand,
7389         _cpp_quote_string, monthnames): Delete.
7390         (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
7391         _cpp_create_definition, _cpp_dump_definition,
7392         dump_hash_helper): Adjust.
7393         (find_param, count_params, parse_define, var_args_str,
7394         check_macro_redefinition, save_expansion): New.
7395
7396         * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
7397         parse_string, output_line_command, trigraph_replace,
7398         lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
7399         cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
7400         cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
7401         _cpp_skip_rest_of_line): Modify.
7402
7403         (maybe_macroexpand, skip_comment, copy_comment, skip_string,
7404         find_position, null_warning, bump_column, expand_name_space,
7405         pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
7406         _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
7407         _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
7408         _cpp_prescan): Delete.
7409
7410         (dump_param_spelling, process_directive, lex_next,
7411         is_macro_disabled, stringify_arg, expand_context_stack,
7412         output_token, make_string_token, alloc_number_token,
7413         special_symbol, duplicate_token, maybe_paste_with_next,
7414         can_paste, prevent_macro_expansion, restore_macro_expansion,
7415         get_temp_token, release_temp_tokens, quote_string,
7416         token_names, token_spellings, _cpp_expand_name_space,
7417         _cpp_glue_header_name, _cpp_reserve_name_space,
7418         digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
7419         placemarker_token, eof_token, cpp_context, macro_args,
7420         get_raw_token, parse_arg, parse_args, save_token,
7421         push_arg_context, push_macro_context, pop_context,
7422         do_pop_context, free_macro_args, _cpp_get_line,
7423         _cpp_run_directive): New.
7424
7425         * cpplib.c (validate_else, parse_include, push_conditional,
7426         pass_thru_directive, read_line_number, parse_ifdef,
7427         detect_if_not_defined, _cpp_check_directive, do_define,
7428         do_undef, do_include, do_import, do_include_next, do_error,
7429         do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
7430         top_pragmas, do_pragma_gcc, do_pragma_implementation,
7431         do_pragma_poison, do_pragma_system_header,
7432         do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
7433         dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
7434         do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
7435         cpp_defined): Update for new scheme.
7436         (strtoul_for_line, get_define_node, dump_macro_name,
7437         _cpp_check_linemarker, _cpp_parse_assertion): New.
7438         (_cpp_handle_directive, do_pragma_default): Delete.
7439
7440         * cpphash.h (struct predicate): Now struct answer.
7441         (enum spell_type, struct token_spelling, struct directive,
7442         directive_handler): New.
7443         Update prototypes.  Remove unused macros.
7444         * cpplib.h: Update prototypes.  Remove unused macros,
7445         structure definitions, and fields.
7446
7447         * cpperror.c (print_containing_files, v_message): Adjust.
7448         * cppexp.c (parse_assertion, lex, parse_escape,
7449         _cpp_parse_expr): Adjust.
7450         * cppfiles.c (open_include_file, _cpp_execute_include,
7451         _cpp_compare_file_date, cpp_read_file, read_include_file):
7452         Adjust.
7453         * cppinit.c (dump_special_to_buffer): Delete.
7454         (append_include_chain, merge_include_chains, cpp_reader_init,
7455         cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
7456         cpp_finish, handle_option, print_help): Adjust.
7457         * cppmain.c (main): Adjust.
7458
7459 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
7460
7461         * cppspec.c (lang_specific_driver): Use double quotes in error
7462         message.
7463
7464 Mon Jul  3 16:53:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
7465
7466         * calls.c (emit_library_call_value_1): Use valreg instead
7467         of hard_libcall_value.
7468
7469 2000-07-03  Geoff Keating  <geoffk@cygnus.com>
7470
7471         * config/rs6000/rs6000.c (rs6000_emit_move): New function.
7472         * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
7473         * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
7474         (movhi): Likewise.
7475         (movqi): Likewise.
7476         (movdf): Likewise.
7477         (movsf): Likewise.
7478         (movdi): Likewise.
7479         (movti): Likewise.
7480
7481         * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
7482         mode instead of wider_mode is being used.
7483
7484 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
7485
7486         * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
7487         of 'r'. Use q_regs_operand.
7488         (andsi_1+2): Use q_regs_operand.
7489
7490 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
7491
7492         * builtins.c (get_memory_rtx): Always put into alias set 0.
7493
7494 2000-07-03  Nick Clifton  <nickc@cygnus.com>
7495
7496         * config/arm/arm.md: Fix post increment and pre increment
7497         peepholes so that they do not generate UNPREDICATBLE opcodes.
7498         (ie ones where the increment clobbers the source/destination).
7499
7500 2000-07-01  Marek Michalkiewicz  <marekm@linux.org.pl>
7501
7502         * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
7503         change too big for -mtiny-stack" a warning, if larger than 63.
7504         (out_set_stack_ptr): Change the logic so -mno-interrupts is
7505         always safe to use on possible future devices.
7506         (function_prologue): Write SPH before SPL, for consistency.
7507         If interrupt_func_p true, we know we have enabled interrupts.
7508         (avr_num_arg_regs): New function.  Round up to even number of
7509         bytes if no -mpack-args or if calling a libgcc function.
7510         (function_arg, function_arg_advance): Use it.
7511         (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
7512         Output "movw" if available.
7513         (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
7514         of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
7515         (asm_output_section_name): Add blanks for consistent output.
7516         (encode_section_info): Set TREE_READONLY for progmem data to
7517         avoid gas warnings about changed section attributes.
7518         (avr_hard_regno_mode_ok): Force non-QImode data to start in
7519         even numbered registers on devices with "movw".
7520         * config/avr/avr.h (MASK_*): Define bits for target_flags.
7521         (TARGET_SWITCHES): Mark help strings for translation.
7522         Add new -mpack-args and -menhanced switches.
7523         (TARGET_OPTIONS): Mark help strings for translation.
7524         (progmem_section): Add section attributes.
7525         * config/avr/avr.md (*movhi, call_insn, call_value_insn):
7526         Output "movw" if available.
7527         (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
7528         New patterns.
7529         * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
7530         call convention (arguments aligned on even registers).
7531         (_cleanup, _exit): Make weak symbols libc can override.
7532
7533 2000-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7534
7535         * fp-bit.h: New file.
7536
7537         * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
7538         Comment #endif statements.
7539         (__thenan_sf, __thenan_df): Add missing braces around initializer.
7540
7541 Mon Jul  3 00:32:47 2000  Jeffrey A Law  (law@cygnus.com)
7542
7543         * gcse.c (compute_pre_data): Compute ae_kill using other local
7544         properties instead of calling compute_ae_kill.
7545
7546         * alias.c (init_alias_analysis): Do not call
7547         prologue_epilogue_contains until after reload has completed.
7548
7549 2000-07-02  Benjamin Chelf  <chelf@codesourcery.com>
7550
7551         * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
7552         (genrtl_finish_compound_stmt): Likewise.
7553         (genrtl_compound_stmt): Change to return void.
7554
7555         * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
7556         move code from here to ...
7557         (genrtl_compound_stmt): ... here.
7558         (genrtl_finish_compound_stmt): Remove.
7559         (expand_stmt): Add comment.
7560
7561 2000-07-02  Zack Weinberg  <zack@wolery.cumb.org>
7562
7563         * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
7564         and VOID_TYPE_P.
7565
7566 2000-07-02  Jakub Jelinek  <jakub@redhat.com>
7567
7568         * cpplib.h (struct cpp_reader): New field include_depth.
7569         (struct cpp_printer): Rename last_bsd to last_id.
7570         * cppfiles.c (read_include_file): Bump include_depth.
7571         * cpplex.c (cpp_pop_buffer): Decrement include_depth.
7572         (output_line_command): Output correct #line if a header
7573         is including itself and is not protected against multiple inclusion.
7574         Use include_depth instead of buffer_stack_depth, last_id instead of
7575         last_bsd.
7576         * cppinit.c (cpp_start_read): Initialize last_id instead of
7577         last_bsd.
7578
7579 2000-07-01  Benjamin Chelf  <chelf@codesourcery.com>
7580
7581         * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
7582         (c-semantics.o): New target.
7583
7584         * c-common.h (TREE_LANG_FLAG_?): Added documentation.
7585         (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
7586         (genrtl_clear_out_block): Likewise.
7587         (genrtl_goto_stmt): Likewise.
7588         (genrtl_expr_stmt): Likewise.
7589         (genrtl_decl_stmt): Likewise.
7590         (genrtl_if_stmt): Likewise.
7591         (genrtl_while_stmt): Likewise.
7592         (genrtl_do_stmt): Likewise.
7593         (genrtl_return_stmt): Likewise.
7594         (genrtl_for_stmt): Likewise.
7595         (genrtl_break_stmt): Likewise.
7596         (genrtl_continue_stmt): Likewise.
7597         (genrtl_scope_stmt): Likewise.
7598         (genrtl_switch_stmt): Likewise.
7599         (genrtl_case_label): Likewise.
7600         (genrtl_begin_compound_stmt): Likewise.
7601         (gerntl_finish_compound_stmt): Likewise.
7602         (genrtl_compound_stmt): Likewise.
7603         (genrtl_asm_stmt): Likewise.
7604         (genrtl_decl_cleanup): Likewise.
7605         (DECL_ANON_UNION_ELEMS): Likewise.
7606         (emit_local_var): Likewise.
7607         (make_rtl_for_local_static): Likewise.
7608         (expand_cond): Likewise.
7609         (expand_stmt): Likewise.
7610         (c_expand_return): Likewise.
7611         (c_expand_start_case): Likewise.
7612         (do_case): Likewise.
7613         (COMPOUND_STMT_NO_SCOPE): Likewise.
7614         (c_expand_asm_operands): Likewise.
7615         (NEW_FOR_SCOPE_P): New macro.
7616         (expand_expr_stmt_fn): New type.
7617
7618         (set_current_function_name_declared): Likewise.
7619         (current_function_name_declared): Likewise.
7620         (lang_expand_stmt): Likewise.
7621         (stmts_are_full_exprs_p): Likewise.
7622         (anon_aggr_type_p): Likewise.
7623         (lang_expand_expr_stmt): Likewise.
7624         (build_case_label): Likewise.
7625
7626         * c-decl.c (lang_expand_expr_stmt): Initialize.
7627         (stmts_are_full_exprs_p): Define.
7628         (current_function_name_declared): Likewise.
7629         (do_case): Likewise.
7630         (lang_expand_stmt): Likewise.
7631         (set_current_function_name_declared): Likewise.
7632         (anon_aggr_type_p): Likewise.
7633
7634         * c-semantics.c: New file.
7635         (expand_cond): Moved from cp/semantics.c.
7636         (genrtl_do_pushlevel): Likewise.
7637         (genrtl_clear_out_block): Likewise.
7638         (genrtl_goto_stmt): Likewise.
7639         (genrtl_expr_stmt): Likewise.
7640         (genrtl_decl_stmt): Likewise.
7641         (genrtl_if_stmt): Likewise.
7642         (genrtl_while_stmt): Likewise.
7643         (genrtl_do_stmt): Likewise.
7644         (genrtl_return_stmt): Likewise.
7645         (genrtl_for_stmt): Likewise.
7646         (genrtl_break_stmt): Likewise.
7647         (genrtl_continue_stmt): Likewise.
7648         (genrtl_scope_stmt): Likewise.
7649         (genrtl_switch_stmt): Likewise.
7650         (genrtl_case_label): Likewise.
7651         (genrtl_begin_compound_stmt): Likewise.
7652         (genrtl_finish_compound_stmt): Likewise.
7653         (genrtl_compound_stmt): Likewise.
7654         (genrtl_asm_stmt): Likewise.
7655         (genrtl_decl_cleanup): Likewise.
7656         (make_rtl_for_local_static): Moved from cp/decl.c.
7657         (emit_local_var): Likewise.
7658         (expand_stmt): Define.
7659
7660         * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
7661         (c_expand_return): Likewise.
7662         (c_expand_start_case): Likewise.
7663
7664 2000-07-01  Richard Henderson  <rth@cygnus.com>
7665
7666         * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
7667         with the low 13 bits set.
7668         (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
7669         * config/ia64/ia64.md (movdi): Likewise.  Expand a CONST with one
7670         of the low 13 bits into a CONST plus an adddi3.
7671         (load_symptr): Set RTX_UNCHANGING_P.
7672
7673 See ChangeLog.3 for earlier changes.