OSDN Git Service

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